@rivetkit/rivetkit-wasm 0.0.0-main.3118df2 → 0.0.0-main.49693dc
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 -190
- package/package.json +7 -2
- package/pkg/package.json +19 -0
- package/pkg/rivetkit_wasm.d.ts +59 -24
- package/pkg/rivetkit_wasm.js +378 -160
- package/pkg/rivetkit_wasm_bg.wasm +0 -0
- package/pkg/rivetkit_wasm_bg.wasm.d.ts +23 -7
package/index.d.ts
CHANGED
|
@@ -1,190 +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
|
-
saveStateAndWorkflowBatch(
|
|
12
|
-
writes: Array<{ key: Uint8Array; value: Uint8Array }>,
|
|
13
|
-
): Promise<void>;
|
|
14
|
-
waitUntil(promise: Promise<any>): void;
|
|
15
|
-
abortSignal(): any;
|
|
16
|
-
connectConn(params: Uint8Array, request: any): Promise<ConnHandle>;
|
|
17
|
-
requestSave(opts: any): void;
|
|
18
|
-
registerTask(promise: Promise<any>): void;
|
|
19
|
-
runtimeState(): any;
|
|
20
|
-
endKeepAwake(region_id: number): void;
|
|
21
|
-
beginKeepAwake(): number;
|
|
22
|
-
inspectorSnapshot(): object;
|
|
23
|
-
endOnStateChange(): void;
|
|
24
|
-
restartRunHandler(): void;
|
|
25
|
-
beginOnStateChange(): void;
|
|
26
|
-
requestSaveAndWait(opts: any): Promise<void>;
|
|
27
|
-
verifyInspectorAuth(bearer_token?: string | null): Promise<void>;
|
|
28
|
-
endWebsocketCallback(region_id: number): void;
|
|
29
|
-
beginWebsocketCallback(): number;
|
|
30
|
-
dirtyHibernatableConns(): Array<any>;
|
|
31
|
-
kv(): Kv;
|
|
32
|
-
waitForTrackedShutdownWork(): Promise<boolean>;
|
|
33
|
-
takePendingHibernationChanges(): Array<any>;
|
|
34
|
-
key(): any;
|
|
35
|
-
constructor();
|
|
36
|
-
sql(): SqliteDb;
|
|
37
|
-
name(): string;
|
|
38
|
-
conns(): Array<any>;
|
|
39
|
-
queue(): Queue;
|
|
40
|
-
sleep(): void;
|
|
41
|
-
state(): Uint8Array;
|
|
42
|
-
region(): string;
|
|
43
|
-
destroy(): void;
|
|
44
|
-
actorId(): string;
|
|
45
|
-
schedule(): Schedule;
|
|
46
|
-
broadcast(name: string, args: Uint8Array): void;
|
|
47
|
-
setAlarm(timestamp_ms?: number | null): void;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export class ActorFactory {
|
|
51
|
-
free(): void;
|
|
52
|
-
constructor(callbacks: any, config: any);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export class CancellationToken {
|
|
56
|
-
free(): void;
|
|
57
|
-
onCancelled(callback: Function): void;
|
|
58
|
-
constructor();
|
|
59
|
-
cancel(): void;
|
|
60
|
-
aborted(): boolean;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export class ConnHandle {
|
|
64
|
-
private constructor();
|
|
65
|
-
free(): void;
|
|
66
|
-
disconnect(reason?: string | null): Promise<void>;
|
|
67
|
-
isHibernatable(): boolean;
|
|
68
|
-
id(): string;
|
|
69
|
-
send(name: string, args: Uint8Array): void;
|
|
70
|
-
state(): Uint8Array;
|
|
71
|
-
params(): Uint8Array;
|
|
72
|
-
setState(state: Uint8Array): void;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export class CoreRegistry {
|
|
76
|
-
free(): void;
|
|
77
|
-
handleServerlessRequest(
|
|
78
|
-
req: any,
|
|
79
|
-
on_stream_event: Function,
|
|
80
|
-
cancel_token: CancellationToken,
|
|
81
|
-
config: any,
|
|
82
|
-
): Promise<any>;
|
|
83
|
-
constructor();
|
|
84
|
-
serve(config: any): Promise<void>;
|
|
85
|
-
register(name: string, factory: ActorFactory): void;
|
|
86
|
-
shutdown(): Promise<void>;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export class Kv {
|
|
90
|
-
private constructor();
|
|
91
|
-
free(): void;
|
|
92
|
-
delete(key: Uint8Array): Promise<void>;
|
|
93
|
-
listRange(start: Uint8Array, end: Uint8Array, options: any): Promise<any>;
|
|
94
|
-
listPrefix(prefix: Uint8Array, options: any): Promise<any>;
|
|
95
|
-
batchDelete(keys: Array<any>): Promise<void>;
|
|
96
|
-
deleteRange(start: Uint8Array, end: Uint8Array): Promise<void>;
|
|
97
|
-
get(key: Uint8Array): Promise<any>;
|
|
98
|
-
put(key: Uint8Array, value: Uint8Array): Promise<void>;
|
|
99
|
-
batchGet(keys: Array<any>): Promise<any>;
|
|
100
|
-
batchPut(entries: Array<any>): Promise<void>;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export class Queue {
|
|
104
|
-
private constructor();
|
|
105
|
-
free(): void;
|
|
106
|
-
nextBatch(
|
|
107
|
-
options: any,
|
|
108
|
-
signal?: CancellationToken | null,
|
|
109
|
-
): Promise<Array<any>>;
|
|
110
|
-
tryNextBatch(options: any): Array<any>;
|
|
111
|
-
waitForNames(
|
|
112
|
-
names: any,
|
|
113
|
-
options: any,
|
|
114
|
-
signal?: CancellationToken | null,
|
|
115
|
-
): Promise<QueueMessage>;
|
|
116
|
-
enqueueAndWait(
|
|
117
|
-
name: string,
|
|
118
|
-
body: Uint8Array,
|
|
119
|
-
options: any,
|
|
120
|
-
signal?: CancellationToken | null,
|
|
121
|
-
): Promise<Uint8Array | undefined>;
|
|
122
|
-
inspectMessages(): Promise<Array<any>>;
|
|
123
|
-
waitForNamesAvailable(names: any, options: any): Promise<void>;
|
|
124
|
-
send(name: string, body: Uint8Array): Promise<QueueMessage>;
|
|
125
|
-
maxSize(): number;
|
|
126
|
-
reset(): Promise<void>;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export class QueueMessage {
|
|
130
|
-
private constructor();
|
|
131
|
-
free(): void;
|
|
132
|
-
createdAt(): number;
|
|
133
|
-
isCompletable(): boolean;
|
|
134
|
-
id(): bigint;
|
|
135
|
-
body(): Uint8Array;
|
|
136
|
-
name(): string;
|
|
137
|
-
complete(response: any): Promise<void>;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export class Schedule {
|
|
141
|
-
private constructor();
|
|
142
|
-
free(): void;
|
|
143
|
-
at(timestamp_ms: number, action_name: string, args: Uint8Array): void;
|
|
144
|
-
after(duration_ms: number, action_name: string, args: Uint8Array): void;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export class SqliteDb {
|
|
148
|
-
private constructor();
|
|
149
|
-
free(): void;
|
|
150
|
-
run(sql: string, params: any): Promise<any>;
|
|
151
|
-
exec(sql: string): Promise<any>;
|
|
152
|
-
close(): Promise<void>;
|
|
153
|
-
query(sql: string, params: any): Promise<any>;
|
|
154
|
-
execute(sql: string, params: any): Promise<any>;
|
|
155
|
-
executeBatch(statements: Array<any>): Promise<Array<any>>;
|
|
156
|
-
beginTransaction(timeout_ms?: number | null): Promise<SqliteTransaction>;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export class SqliteTransaction {
|
|
160
|
-
private constructor();
|
|
161
|
-
free(): void;
|
|
162
|
-
exec(sql: string): Promise<any>;
|
|
163
|
-
execute(sql: string, params: any): Promise<any>;
|
|
164
|
-
commit(): Promise<void>;
|
|
165
|
-
rollback(): Promise<void>;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
export class WebSocketHandle {
|
|
169
|
-
private constructor();
|
|
170
|
-
free(): void;
|
|
171
|
-
setEventCallback(callback: Function): void;
|
|
172
|
-
send(data: Uint8Array, binary: boolean): void;
|
|
173
|
-
close(code?: number | null, reason?: string | null): Promise<void>;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
export type InitInput =
|
|
177
|
-
| RequestInfo
|
|
178
|
-
| URL
|
|
179
|
-
| Response
|
|
180
|
-
| BufferSource
|
|
181
|
-
| WebAssembly.Module;
|
|
182
|
-
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
183
|
-
export interface InitOutput {
|
|
184
|
-
readonly memory: WebAssembly.Memory;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
declare function init(
|
|
188
|
-
module_or_path?: InitInput | Promise<InitInput>,
|
|
189
|
-
): Promise<InitOutput>;
|
|
190
|
-
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-main.
|
|
3
|
+
"version": "0.0.0-main.49693dc",
|
|
4
4
|
"description": "WebAssembly bindings for RivetKit core on edge JavaScript runtimes",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -32,12 +32,17 @@
|
|
|
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
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"typescript": "^5.9.2",
|
|
41
41
|
"wasm-pack": "0.15.0"
|
|
42
|
+
},
|
|
43
|
+
"repository": {
|
|
44
|
+
"type": "git",
|
|
45
|
+
"url": "https://github.com/rivet-dev/actors.git",
|
|
46
|
+
"directory": "rivetkit-typescript/packages/rivetkit-wasm"
|
|
42
47
|
}
|
|
43
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": "2.3.11",
|
|
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
|
+
}
|
package/pkg/rivetkit_wasm.d.ts
CHANGED
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
4
3
|
export function start(): void;
|
|
5
|
-
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
6
4
|
export function bridgeRivetErrorPrefix(): string;
|
|
7
5
|
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
6
|
+
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
7
|
+
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
8
8
|
export class ActorContext {
|
|
9
9
|
free(): void;
|
|
10
|
-
keepAwake(promise: Promise<any>): void;
|
|
11
10
|
saveState(payload: any): Promise<void>;
|
|
11
|
+
connectConn(params: Uint8Array, request: any): Promise<ConnHandle>;
|
|
12
|
+
setRunWakeAt(timestamp_ms?: number | null): Promise<void>;
|
|
13
|
+
requestSaveAndWait(opts: any): Promise<void>;
|
|
14
|
+
verifyInspectorAuth(bearer_token?: string | null): Promise<void>;
|
|
15
|
+
beginStateTransaction(timeout_ms?: number | null): Promise<ActorStateTransaction>;
|
|
16
|
+
saveStateAndWorkflowBatch(writes: any): Promise<void>;
|
|
17
|
+
waitForTrackedShutdownWork(): Promise<boolean>;
|
|
18
|
+
waitForTrackedShutdownWorkUnbounded(): Promise<void>;
|
|
19
|
+
keepAwake(promise: Promise<any>): void;
|
|
12
20
|
waitUntil(promise: Promise<any>): void;
|
|
13
21
|
abortSignal(): any;
|
|
14
|
-
connectConn(params: Uint8Array, request: any): Promise<ConnHandle>;
|
|
15
22
|
requestSave(opts: any): void;
|
|
16
23
|
registerTask(promise: Promise<any>): void;
|
|
17
24
|
runtimeState(): any;
|
|
@@ -21,19 +28,14 @@ export class ActorContext {
|
|
|
21
28
|
endOnStateChange(): void;
|
|
22
29
|
restartRunHandler(): void;
|
|
23
30
|
beginOnStateChange(): void;
|
|
24
|
-
requestSaveAndWait(opts: any): Promise<void>;
|
|
25
|
-
verifyInspectorAuth(bearer_token?: string | null): Promise<void>;
|
|
26
31
|
endWebsocketCallback(region_id: number): void;
|
|
27
32
|
beginWebsocketCallback(): number;
|
|
28
33
|
dirtyHibernatableConns(): Array<any>;
|
|
29
|
-
saveStateAndWorkflowBatch(writes: any): Promise<void>;
|
|
30
34
|
kv(): Kv;
|
|
31
|
-
waitForTrackedShutdownWork(): Promise<boolean>;
|
|
32
35
|
takePendingHibernationChanges(): Array<any>;
|
|
33
36
|
key(): any;
|
|
34
37
|
constructor();
|
|
35
38
|
sql(): SqliteDb;
|
|
36
|
-
waitForTrackedShutdownWorkUnbounded(): Promise<void>;
|
|
37
39
|
name(): string;
|
|
38
40
|
conns(): Array<any>;
|
|
39
41
|
queue(): Queue;
|
|
@@ -50,6 +52,13 @@ export class ActorFactory {
|
|
|
50
52
|
free(): void;
|
|
51
53
|
constructor(callbacks: any, config: any);
|
|
52
54
|
}
|
|
55
|
+
export class ActorStateTransaction {
|
|
56
|
+
private constructor();
|
|
57
|
+
free(): void;
|
|
58
|
+
commit(payload: any): Promise<void>;
|
|
59
|
+
execute(sql: string, params: any): Promise<any>;
|
|
60
|
+
rollback(): Promise<void>;
|
|
61
|
+
}
|
|
53
62
|
export class CancellationToken {
|
|
54
63
|
free(): void;
|
|
55
64
|
onCancelled(callback: Function): void;
|
|
@@ -71,10 +80,10 @@ export class ConnHandle {
|
|
|
71
80
|
export class CoreRegistry {
|
|
72
81
|
free(): void;
|
|
73
82
|
handleServerlessRequest(req: any, on_stream_event: Function, cancel_token: CancellationToken, config: any): Promise<any>;
|
|
74
|
-
constructor();
|
|
75
83
|
serve(config: any): Promise<void>;
|
|
76
|
-
register(name: string, factory: ActorFactory): void;
|
|
77
84
|
shutdown(): Promise<void>;
|
|
85
|
+
constructor();
|
|
86
|
+
register(name: string, factory: ActorFactory): void;
|
|
78
87
|
}
|
|
79
88
|
export class Kv {
|
|
80
89
|
private constructor();
|
|
@@ -93,36 +102,46 @@ export class Queue {
|
|
|
93
102
|
private constructor();
|
|
94
103
|
free(): void;
|
|
95
104
|
nextBatch(options: any, signal?: CancellationToken | null): Promise<Array<any>>;
|
|
96
|
-
tryNextBatch(options: any): Array<any>;
|
|
97
105
|
waitForNames(names: any, options: any, signal?: CancellationToken | null): Promise<QueueMessage>;
|
|
98
106
|
enqueueAndWait(name: string, body: Uint8Array, options: any, signal?: CancellationToken | null): Promise<Uint8Array | undefined>;
|
|
99
107
|
inspectMessages(): Promise<Array<any>>;
|
|
108
|
+
completePersisted(message_id: bigint, expected_name: string, response?: Uint8Array | null): Promise<boolean>;
|
|
100
109
|
waitForNamesAvailable(names: any, options: any): Promise<void>;
|
|
101
110
|
send(name: string, body: Uint8Array): Promise<QueueMessage>;
|
|
102
111
|
reset(): Promise<void>;
|
|
112
|
+
tryNextBatch(options: any): Array<any>;
|
|
103
113
|
maxSize(): number;
|
|
104
114
|
}
|
|
105
115
|
export class QueueMessage {
|
|
106
116
|
private constructor();
|
|
107
117
|
free(): void;
|
|
118
|
+
complete(response: any): Promise<void>;
|
|
108
119
|
createdAt(): number;
|
|
109
120
|
isCompletable(): boolean;
|
|
110
121
|
id(): bigint;
|
|
111
122
|
body(): Uint8Array;
|
|
112
123
|
name(): string;
|
|
113
|
-
complete(response: any): Promise<void>;
|
|
114
124
|
}
|
|
115
125
|
export class Schedule {
|
|
116
126
|
private constructor();
|
|
117
127
|
free(): void;
|
|
118
|
-
|
|
119
|
-
|
|
128
|
+
cronEvery(name: string, interval_ms: number, action_name: string, args: Uint8Array, max_history?: number | null): Promise<void>;
|
|
129
|
+
cronDelete(name: string): Promise<boolean>;
|
|
130
|
+
cronHistory(name: string, limit?: number | null): Promise<any>;
|
|
131
|
+
at(timestamp_ms: number, action_name: string, args: Uint8Array): Promise<string>;
|
|
132
|
+
get(id: string): Promise<any>;
|
|
133
|
+
list(): Promise<any>;
|
|
134
|
+
after(duration_ms: number, action_name: string, args: Uint8Array): Promise<string>;
|
|
135
|
+
cancel(id: string): Promise<boolean>;
|
|
136
|
+
cronGet(name: string): Promise<any>;
|
|
137
|
+
cronSet(name: string, expression: string, timezone: string | null | undefined, action_name: string, args: Uint8Array, max_history?: number | null): Promise<void>;
|
|
138
|
+
cronList(): Promise<any>;
|
|
120
139
|
}
|
|
121
140
|
export class SqliteDb {
|
|
122
141
|
private constructor();
|
|
123
142
|
free(): void;
|
|
124
143
|
executeBatch(statements: any): Promise<any>;
|
|
125
|
-
beginTransaction(timeout_ms?: number | null): Promise<SqliteTransaction>;
|
|
144
|
+
beginTransaction(timeout_ms?: number | null, name?: string | null): Promise<SqliteTransaction>;
|
|
126
145
|
run(sql: string, params: any): Promise<any>;
|
|
127
146
|
exec(sql: string): Promise<any>;
|
|
128
147
|
close(): Promise<void>;
|
|
@@ -140,9 +159,9 @@ export class SqliteTransaction {
|
|
|
140
159
|
export class WebSocketHandle {
|
|
141
160
|
private constructor();
|
|
142
161
|
free(): void;
|
|
162
|
+
close(code?: number | null, reason?: string | null): Promise<void>;
|
|
143
163
|
setEventCallback(callback: Function): void;
|
|
144
164
|
send(data: Uint8Array, binary: boolean): void;
|
|
145
|
-
close(code?: number | null, reason?: string | null): Promise<void>;
|
|
146
165
|
}
|
|
147
166
|
|
|
148
167
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
@@ -151,6 +170,7 @@ export interface InitOutput {
|
|
|
151
170
|
readonly memory: WebAssembly.Memory;
|
|
152
171
|
readonly __wbg_actorcontext_free: (a: number, b: number) => void;
|
|
153
172
|
readonly __wbg_actorfactory_free: (a: number, b: number) => void;
|
|
173
|
+
readonly __wbg_actorstatetransaction_free: (a: number, b: number) => void;
|
|
154
174
|
readonly __wbg_cancellationtoken_free: (a: number, b: number) => void;
|
|
155
175
|
readonly __wbg_connhandle_free: (a: number, b: number) => void;
|
|
156
176
|
readonly __wbg_coreregistry_free: (a: number, b: number) => void;
|
|
@@ -163,6 +183,7 @@ export interface InitOutput {
|
|
|
163
183
|
readonly actorcontext_actorId: (a: number) => [number, number];
|
|
164
184
|
readonly actorcontext_beginKeepAwake: (a: number) => number;
|
|
165
185
|
readonly actorcontext_beginOnStateChange: (a: number) => void;
|
|
186
|
+
readonly actorcontext_beginStateTransaction: (a: number, b: number, c: number) => any;
|
|
166
187
|
readonly actorcontext_beginWebsocketCallback: (a: number) => number;
|
|
167
188
|
readonly actorcontext_broadcast: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
168
189
|
readonly actorcontext_connectConn: (a: number, b: number, c: number, d: any) => any;
|
|
@@ -182,11 +203,12 @@ export interface InitOutput {
|
|
|
182
203
|
readonly actorcontext_registerTask: (a: number, b: any) => void;
|
|
183
204
|
readonly actorcontext_requestSave: (a: number, b: any) => void;
|
|
184
205
|
readonly actorcontext_requestSaveAndWait: (a: number, b: any) => any;
|
|
185
|
-
readonly actorcontext_restartRunHandler: (a: number) =>
|
|
206
|
+
readonly actorcontext_restartRunHandler: (a: number) => [number, number];
|
|
186
207
|
readonly actorcontext_runtimeState: (a: number) => any;
|
|
187
208
|
readonly actorcontext_saveState: (a: number, b: any) => any;
|
|
188
209
|
readonly actorcontext_saveStateAndWorkflowBatch: (a: number, b: any) => any;
|
|
189
210
|
readonly actorcontext_setAlarm: (a: number, b: number, c: number) => [number, number];
|
|
211
|
+
readonly actorcontext_setRunWakeAt: (a: number, b: number, c: number) => any;
|
|
190
212
|
readonly actorcontext_sleep: (a: number) => [number, number];
|
|
191
213
|
readonly actorcontext_sql: (a: number) => number;
|
|
192
214
|
readonly actorcontext_state: (a: number) => [number, number];
|
|
@@ -196,6 +218,9 @@ export interface InitOutput {
|
|
|
196
218
|
readonly actorcontext_waitForTrackedShutdownWorkUnbounded: (a: number) => any;
|
|
197
219
|
readonly actorcontext_waitUntil: (a: number, b: any) => void;
|
|
198
220
|
readonly actorfactory_new: (a: any, b: any) => [number, number, number];
|
|
221
|
+
readonly actorstatetransaction_commit: (a: number, b: any) => any;
|
|
222
|
+
readonly actorstatetransaction_execute: (a: number, b: number, c: number, d: any) => any;
|
|
223
|
+
readonly actorstatetransaction_rollback: (a: number) => any;
|
|
199
224
|
readonly awaitPromise: (a: any) => any;
|
|
200
225
|
readonly bridgeRivetErrorPrefix: () => [number, number];
|
|
201
226
|
readonly cancellationtoken_aborted: (a: number) => number;
|
|
@@ -223,6 +248,7 @@ export interface InitOutput {
|
|
|
223
248
|
readonly kv_listPrefix: (a: number, b: number, c: number, d: any) => any;
|
|
224
249
|
readonly kv_listRange: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
|
|
225
250
|
readonly kv_put: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
251
|
+
readonly queue_completePersisted: (a: number, b: bigint, c: number, d: number, e: number, f: number) => any;
|
|
226
252
|
readonly queue_enqueueAndWait: (a: number, b: number, c: number, d: number, e: number, f: any, g: number) => any;
|
|
227
253
|
readonly queue_inspectMessages: (a: number) => any;
|
|
228
254
|
readonly queue_maxSize: (a: number) => number;
|
|
@@ -239,9 +265,18 @@ export interface InitOutput {
|
|
|
239
265
|
readonly queuemessage_isCompletable: (a: number) => number;
|
|
240
266
|
readonly queuemessage_name: (a: number) => [number, number];
|
|
241
267
|
readonly roundTripBytes: (a: number, b: number) => [number, number];
|
|
242
|
-
readonly schedule_after: (a: number, b: number, c: number, d: number, e: number, f: number) =>
|
|
243
|
-
readonly schedule_at: (a: number, b: number, c: number, d: number, e: number, f: number) =>
|
|
244
|
-
readonly
|
|
268
|
+
readonly schedule_after: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
269
|
+
readonly schedule_at: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
270
|
+
readonly schedule_cancel: (a: number, b: number, c: number) => any;
|
|
271
|
+
readonly schedule_cronDelete: (a: number, b: number, c: number) => any;
|
|
272
|
+
readonly schedule_cronEvery: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => any;
|
|
273
|
+
readonly schedule_cronGet: (a: number, b: number, c: number) => any;
|
|
274
|
+
readonly schedule_cronHistory: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
275
|
+
readonly schedule_cronList: (a: number) => any;
|
|
276
|
+
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;
|
|
277
|
+
readonly schedule_get: (a: number, b: number, c: number) => any;
|
|
278
|
+
readonly schedule_list: (a: number) => any;
|
|
279
|
+
readonly sqlitedb_beginTransaction: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
245
280
|
readonly sqlitedb_close: (a: number) => any;
|
|
246
281
|
readonly sqlitedb_exec: (a: number, b: number, c: number) => any;
|
|
247
282
|
readonly sqlitedb_execute: (a: number, b: number, c: number, d: any) => any;
|
|
@@ -269,9 +304,9 @@ export interface InitOutput {
|
|
|
269
304
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
270
305
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
271
306
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
272
|
-
readonly
|
|
273
|
-
readonly
|
|
274
|
-
readonly
|
|
307
|
+
readonly closure1967_externref_shim: (a: number, b: number, c: any) => void;
|
|
308
|
+
readonly closure2328_externref_shim: (a: number, b: number, c: any) => void;
|
|
309
|
+
readonly closure2561_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
275
310
|
readonly __wbindgen_start: () => void;
|
|
276
311
|
}
|
|
277
312
|
|
package/pkg/rivetkit_wasm.js
CHANGED
|
@@ -203,48 +203,10 @@ function debugString(val) {
|
|
|
203
203
|
return className;
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
207
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
208
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
209
|
-
WASM_VECTOR_LEN = arg.length;
|
|
210
|
-
return ptr;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
function takeFromExternrefTable0(idx) {
|
|
214
|
-
const value = wasm.__wbindgen_export_4.get(idx);
|
|
215
|
-
wasm.__externref_table_dealloc(idx);
|
|
216
|
-
return value;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
function _assertClass(instance, klass) {
|
|
220
|
-
if (!(instance instanceof klass)) {
|
|
221
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* @param {Uint8Array} bytes
|
|
226
|
-
* @returns {Uint8Array}
|
|
227
|
-
*/
|
|
228
|
-
export function uint8ArrayFromBytes(bytes) {
|
|
229
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
230
|
-
const len0 = WASM_VECTOR_LEN;
|
|
231
|
-
const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
|
|
232
|
-
return ret;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
206
|
export function start() {
|
|
236
207
|
wasm.start();
|
|
237
208
|
}
|
|
238
209
|
|
|
239
|
-
/**
|
|
240
|
-
* @param {Promise<any>} promise
|
|
241
|
-
* @returns {Promise<any>}
|
|
242
|
-
*/
|
|
243
|
-
export function awaitPromise(promise) {
|
|
244
|
-
const ret = wasm.awaitPromise(promise);
|
|
245
|
-
return ret;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
210
|
/**
|
|
249
211
|
* @returns {string}
|
|
250
212
|
*/
|
|
@@ -261,6 +223,12 @@ export function bridgeRivetErrorPrefix() {
|
|
|
261
223
|
}
|
|
262
224
|
}
|
|
263
225
|
|
|
226
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
227
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
228
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
229
|
+
WASM_VECTOR_LEN = arg.length;
|
|
230
|
+
return ptr;
|
|
231
|
+
}
|
|
264
232
|
/**
|
|
265
233
|
* @param {Uint8Array} bytes
|
|
266
234
|
* @returns {Uint8Array}
|
|
@@ -274,16 +242,47 @@ export function roundTripBytes(bytes) {
|
|
|
274
242
|
return v2;
|
|
275
243
|
}
|
|
276
244
|
|
|
277
|
-
|
|
278
|
-
|
|
245
|
+
/**
|
|
246
|
+
* @param {Uint8Array} bytes
|
|
247
|
+
* @returns {Uint8Array}
|
|
248
|
+
*/
|
|
249
|
+
export function uint8ArrayFromBytes(bytes) {
|
|
250
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
251
|
+
const len0 = WASM_VECTOR_LEN;
|
|
252
|
+
const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
|
|
253
|
+
return ret;
|
|
279
254
|
}
|
|
280
255
|
|
|
281
|
-
|
|
282
|
-
|
|
256
|
+
/**
|
|
257
|
+
* @param {Promise<any>} promise
|
|
258
|
+
* @returns {Promise<any>}
|
|
259
|
+
*/
|
|
260
|
+
export function awaitPromise(promise) {
|
|
261
|
+
const ret = wasm.awaitPromise(promise);
|
|
262
|
+
return ret;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
function _assertClass(instance, klass) {
|
|
266
|
+
if (!(instance instanceof klass)) {
|
|
267
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
268
|
+
}
|
|
283
269
|
}
|
|
284
270
|
|
|
285
|
-
function
|
|
286
|
-
wasm.
|
|
271
|
+
function takeFromExternrefTable0(idx) {
|
|
272
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
273
|
+
wasm.__externref_table_dealloc(idx);
|
|
274
|
+
return value;
|
|
275
|
+
}
|
|
276
|
+
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
277
|
+
wasm.closure1967_externref_shim(arg0, arg1, arg2);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
function __wbg_adapter_59(arg0, arg1, arg2) {
|
|
281
|
+
wasm.closure2328_externref_shim(arg0, arg1, arg2);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
function __wbg_adapter_293(arg0, arg1, arg2, arg3) {
|
|
285
|
+
wasm.closure2561_externref_shim(arg0, arg1, arg2, arg3);
|
|
287
286
|
}
|
|
288
287
|
|
|
289
288
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
@@ -313,12 +312,6 @@ export class ActorContext {
|
|
|
313
312
|
const ptr = this.__destroy_into_raw();
|
|
314
313
|
wasm.__wbg_actorcontext_free(ptr, 0);
|
|
315
314
|
}
|
|
316
|
-
/**
|
|
317
|
-
* @param {Promise<any>} promise
|
|
318
|
-
*/
|
|
319
|
-
keepAwake(promise) {
|
|
320
|
-
wasm.actorcontext_keepAwake(this.__wbg_ptr, promise);
|
|
321
|
-
}
|
|
322
315
|
/**
|
|
323
316
|
* @param {any} payload
|
|
324
317
|
* @returns {Promise<void>}
|
|
@@ -327,6 +320,79 @@ export class ActorContext {
|
|
|
327
320
|
const ret = wasm.actorcontext_saveState(this.__wbg_ptr, payload);
|
|
328
321
|
return ret;
|
|
329
322
|
}
|
|
323
|
+
/**
|
|
324
|
+
* @param {Uint8Array} params
|
|
325
|
+
* @param {any} request
|
|
326
|
+
* @returns {Promise<ConnHandle>}
|
|
327
|
+
*/
|
|
328
|
+
connectConn(params, request) {
|
|
329
|
+
const ptr0 = passArray8ToWasm0(params, wasm.__wbindgen_malloc);
|
|
330
|
+
const len0 = WASM_VECTOR_LEN;
|
|
331
|
+
const ret = wasm.actorcontext_connectConn(this.__wbg_ptr, ptr0, len0, request);
|
|
332
|
+
return ret;
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* @param {number | null} [timestamp_ms]
|
|
336
|
+
* @returns {Promise<void>}
|
|
337
|
+
*/
|
|
338
|
+
setRunWakeAt(timestamp_ms) {
|
|
339
|
+
const ret = wasm.actorcontext_setRunWakeAt(this.__wbg_ptr, !isLikeNone(timestamp_ms), isLikeNone(timestamp_ms) ? 0 : timestamp_ms);
|
|
340
|
+
return ret;
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* @param {any} opts
|
|
344
|
+
* @returns {Promise<void>}
|
|
345
|
+
*/
|
|
346
|
+
requestSaveAndWait(opts) {
|
|
347
|
+
const ret = wasm.actorcontext_requestSaveAndWait(this.__wbg_ptr, opts);
|
|
348
|
+
return ret;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* @param {string | null} [bearer_token]
|
|
352
|
+
* @returns {Promise<void>}
|
|
353
|
+
*/
|
|
354
|
+
verifyInspectorAuth(bearer_token) {
|
|
355
|
+
var ptr0 = isLikeNone(bearer_token) ? 0 : passStringToWasm0(bearer_token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
356
|
+
var len0 = WASM_VECTOR_LEN;
|
|
357
|
+
const ret = wasm.actorcontext_verifyInspectorAuth(this.__wbg_ptr, ptr0, len0);
|
|
358
|
+
return ret;
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* @param {number | null} [timeout_ms]
|
|
362
|
+
* @returns {Promise<ActorStateTransaction>}
|
|
363
|
+
*/
|
|
364
|
+
beginStateTransaction(timeout_ms) {
|
|
365
|
+
const ret = wasm.actorcontext_beginStateTransaction(this.__wbg_ptr, !isLikeNone(timeout_ms), isLikeNone(timeout_ms) ? 0 : timeout_ms);
|
|
366
|
+
return ret;
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* @param {any} writes
|
|
370
|
+
* @returns {Promise<void>}
|
|
371
|
+
*/
|
|
372
|
+
saveStateAndWorkflowBatch(writes) {
|
|
373
|
+
const ret = wasm.actorcontext_saveStateAndWorkflowBatch(this.__wbg_ptr, writes);
|
|
374
|
+
return ret;
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* @returns {Promise<boolean>}
|
|
378
|
+
*/
|
|
379
|
+
waitForTrackedShutdownWork() {
|
|
380
|
+
const ret = wasm.actorcontext_waitForTrackedShutdownWork(this.__wbg_ptr);
|
|
381
|
+
return ret;
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* @returns {Promise<void>}
|
|
385
|
+
*/
|
|
386
|
+
waitForTrackedShutdownWorkUnbounded() {
|
|
387
|
+
const ret = wasm.actorcontext_waitForTrackedShutdownWorkUnbounded(this.__wbg_ptr);
|
|
388
|
+
return ret;
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* @param {Promise<any>} promise
|
|
392
|
+
*/
|
|
393
|
+
keepAwake(promise) {
|
|
394
|
+
wasm.actorcontext_keepAwake(this.__wbg_ptr, promise);
|
|
395
|
+
}
|
|
330
396
|
/**
|
|
331
397
|
* @param {Promise<any>} promise
|
|
332
398
|
*/
|
|
@@ -343,17 +409,6 @@ export class ActorContext {
|
|
|
343
409
|
}
|
|
344
410
|
return takeFromExternrefTable0(ret[0]);
|
|
345
411
|
}
|
|
346
|
-
/**
|
|
347
|
-
* @param {Uint8Array} params
|
|
348
|
-
* @param {any} request
|
|
349
|
-
* @returns {Promise<ConnHandle>}
|
|
350
|
-
*/
|
|
351
|
-
connectConn(params, request) {
|
|
352
|
-
const ptr0 = passArray8ToWasm0(params, wasm.__wbindgen_malloc);
|
|
353
|
-
const len0 = WASM_VECTOR_LEN;
|
|
354
|
-
const ret = wasm.actorcontext_connectConn(this.__wbg_ptr, ptr0, len0, request);
|
|
355
|
-
return ret;
|
|
356
|
-
}
|
|
357
412
|
/**
|
|
358
413
|
* @param {any} opts
|
|
359
414
|
*/
|
|
@@ -400,29 +455,14 @@ export class ActorContext {
|
|
|
400
455
|
wasm.actorcontext_endOnStateChange(this.__wbg_ptr);
|
|
401
456
|
}
|
|
402
457
|
restartRunHandler() {
|
|
403
|
-
wasm.actorcontext_restartRunHandler(this.__wbg_ptr);
|
|
458
|
+
const ret = wasm.actorcontext_restartRunHandler(this.__wbg_ptr);
|
|
459
|
+
if (ret[1]) {
|
|
460
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
461
|
+
}
|
|
404
462
|
}
|
|
405
463
|
beginOnStateChange() {
|
|
406
464
|
wasm.actorcontext_beginOnStateChange(this.__wbg_ptr);
|
|
407
465
|
}
|
|
408
|
-
/**
|
|
409
|
-
* @param {any} opts
|
|
410
|
-
* @returns {Promise<void>}
|
|
411
|
-
*/
|
|
412
|
-
requestSaveAndWait(opts) {
|
|
413
|
-
const ret = wasm.actorcontext_requestSaveAndWait(this.__wbg_ptr, opts);
|
|
414
|
-
return ret;
|
|
415
|
-
}
|
|
416
|
-
/**
|
|
417
|
-
* @param {string | null} [bearer_token]
|
|
418
|
-
* @returns {Promise<void>}
|
|
419
|
-
*/
|
|
420
|
-
verifyInspectorAuth(bearer_token) {
|
|
421
|
-
var ptr0 = isLikeNone(bearer_token) ? 0 : passStringToWasm0(bearer_token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
422
|
-
var len0 = WASM_VECTOR_LEN;
|
|
423
|
-
const ret = wasm.actorcontext_verifyInspectorAuth(this.__wbg_ptr, ptr0, len0);
|
|
424
|
-
return ret;
|
|
425
|
-
}
|
|
426
466
|
/**
|
|
427
467
|
* @param {number} region_id
|
|
428
468
|
*/
|
|
@@ -443,14 +483,6 @@ export class ActorContext {
|
|
|
443
483
|
const ret = wasm.actorcontext_dirtyHibernatableConns(this.__wbg_ptr);
|
|
444
484
|
return ret;
|
|
445
485
|
}
|
|
446
|
-
/**
|
|
447
|
-
* @param {any} writes
|
|
448
|
-
* @returns {Promise<void>}
|
|
449
|
-
*/
|
|
450
|
-
saveStateAndWorkflowBatch(writes) {
|
|
451
|
-
const ret = wasm.actorcontext_saveStateAndWorkflowBatch(this.__wbg_ptr, writes);
|
|
452
|
-
return ret;
|
|
453
|
-
}
|
|
454
486
|
/**
|
|
455
487
|
* @returns {Kv}
|
|
456
488
|
*/
|
|
@@ -458,13 +490,6 @@ export class ActorContext {
|
|
|
458
490
|
const ret = wasm.actorcontext_kv(this.__wbg_ptr);
|
|
459
491
|
return Kv.__wrap(ret);
|
|
460
492
|
}
|
|
461
|
-
/**
|
|
462
|
-
* @returns {Promise<boolean>}
|
|
463
|
-
*/
|
|
464
|
-
waitForTrackedShutdownWork() {
|
|
465
|
-
const ret = wasm.actorcontext_waitForTrackedShutdownWork(this.__wbg_ptr);
|
|
466
|
-
return ret;
|
|
467
|
-
}
|
|
468
493
|
/**
|
|
469
494
|
* @returns {Array<any>}
|
|
470
495
|
*/
|
|
@@ -498,13 +523,6 @@ export class ActorContext {
|
|
|
498
523
|
const ret = wasm.actorcontext_sql(this.__wbg_ptr);
|
|
499
524
|
return SqliteDb.__wrap(ret);
|
|
500
525
|
}
|
|
501
|
-
/**
|
|
502
|
-
* @returns {Promise<void>}
|
|
503
|
-
*/
|
|
504
|
-
waitForTrackedShutdownWorkUnbounded() {
|
|
505
|
-
const ret = wasm.actorcontext_waitForTrackedShutdownWorkUnbounded(this.__wbg_ptr);
|
|
506
|
-
return ret;
|
|
507
|
-
}
|
|
508
526
|
/**
|
|
509
527
|
* @returns {string}
|
|
510
528
|
*/
|
|
@@ -646,6 +664,59 @@ export class ActorFactory {
|
|
|
646
664
|
}
|
|
647
665
|
}
|
|
648
666
|
|
|
667
|
+
const ActorStateTransactionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
668
|
+
? { register: () => {}, unregister: () => {} }
|
|
669
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_actorstatetransaction_free(ptr >>> 0, 1));
|
|
670
|
+
|
|
671
|
+
export class ActorStateTransaction {
|
|
672
|
+
|
|
673
|
+
static __wrap(ptr) {
|
|
674
|
+
ptr = ptr >>> 0;
|
|
675
|
+
const obj = Object.create(ActorStateTransaction.prototype);
|
|
676
|
+
obj.__wbg_ptr = ptr;
|
|
677
|
+
ActorStateTransactionFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
678
|
+
return obj;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
__destroy_into_raw() {
|
|
682
|
+
const ptr = this.__wbg_ptr;
|
|
683
|
+
this.__wbg_ptr = 0;
|
|
684
|
+
ActorStateTransactionFinalization.unregister(this);
|
|
685
|
+
return ptr;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
free() {
|
|
689
|
+
const ptr = this.__destroy_into_raw();
|
|
690
|
+
wasm.__wbg_actorstatetransaction_free(ptr, 0);
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
* @param {any} payload
|
|
694
|
+
* @returns {Promise<void>}
|
|
695
|
+
*/
|
|
696
|
+
commit(payload) {
|
|
697
|
+
const ret = wasm.actorstatetransaction_commit(this.__wbg_ptr, payload);
|
|
698
|
+
return ret;
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
* @param {string} sql
|
|
702
|
+
* @param {any} params
|
|
703
|
+
* @returns {Promise<any>}
|
|
704
|
+
*/
|
|
705
|
+
execute(sql, params) {
|
|
706
|
+
const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
707
|
+
const len0 = WASM_VECTOR_LEN;
|
|
708
|
+
const ret = wasm.actorstatetransaction_execute(this.__wbg_ptr, ptr0, len0, params);
|
|
709
|
+
return ret;
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* @returns {Promise<void>}
|
|
713
|
+
*/
|
|
714
|
+
rollback() {
|
|
715
|
+
const ret = wasm.actorstatetransaction_rollback(this.__wbg_ptr);
|
|
716
|
+
return ret;
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
|
|
649
720
|
const CancellationTokenFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
650
721
|
? { register: () => {}, unregister: () => {} }
|
|
651
722
|
: new FinalizationRegistry(ptr => wasm.__wbg_cancellationtoken_free(ptr >>> 0, 1));
|
|
@@ -812,12 +883,6 @@ export class CoreRegistry {
|
|
|
812
883
|
const ret = wasm.coreregistry_handleServerlessRequest(this.__wbg_ptr, req, on_stream_event, cancel_token.__wbg_ptr, config);
|
|
813
884
|
return ret;
|
|
814
885
|
}
|
|
815
|
-
constructor() {
|
|
816
|
-
const ret = wasm.coreregistry_new();
|
|
817
|
-
this.__wbg_ptr = ret >>> 0;
|
|
818
|
-
CoreRegistryFinalization.register(this, this.__wbg_ptr, this);
|
|
819
|
-
return this;
|
|
820
|
-
}
|
|
821
886
|
/**
|
|
822
887
|
* @param {any} config
|
|
823
888
|
* @returns {Promise<void>}
|
|
@@ -826,6 +891,19 @@ export class CoreRegistry {
|
|
|
826
891
|
const ret = wasm.coreregistry_serve(this.__wbg_ptr, config);
|
|
827
892
|
return ret;
|
|
828
893
|
}
|
|
894
|
+
/**
|
|
895
|
+
* @returns {Promise<void>}
|
|
896
|
+
*/
|
|
897
|
+
shutdown() {
|
|
898
|
+
const ret = wasm.coreregistry_shutdown(this.__wbg_ptr);
|
|
899
|
+
return ret;
|
|
900
|
+
}
|
|
901
|
+
constructor() {
|
|
902
|
+
const ret = wasm.coreregistry_new();
|
|
903
|
+
this.__wbg_ptr = ret >>> 0;
|
|
904
|
+
CoreRegistryFinalization.register(this, this.__wbg_ptr, this);
|
|
905
|
+
return this;
|
|
906
|
+
}
|
|
829
907
|
/**
|
|
830
908
|
* @param {string} name
|
|
831
909
|
* @param {ActorFactory} factory
|
|
@@ -839,13 +917,6 @@ export class CoreRegistry {
|
|
|
839
917
|
throw takeFromExternrefTable0(ret[0]);
|
|
840
918
|
}
|
|
841
919
|
}
|
|
842
|
-
/**
|
|
843
|
-
* @returns {Promise<void>}
|
|
844
|
-
*/
|
|
845
|
-
shutdown() {
|
|
846
|
-
const ret = wasm.coreregistry_shutdown(this.__wbg_ptr);
|
|
847
|
-
return ret;
|
|
848
|
-
}
|
|
849
920
|
}
|
|
850
921
|
|
|
851
922
|
const KvFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1009,17 +1080,6 @@ export class Queue {
|
|
|
1009
1080
|
const ret = wasm.queue_nextBatch(this.__wbg_ptr, options, ptr0);
|
|
1010
1081
|
return ret;
|
|
1011
1082
|
}
|
|
1012
|
-
/**
|
|
1013
|
-
* @param {any} options
|
|
1014
|
-
* @returns {Array<any>}
|
|
1015
|
-
*/
|
|
1016
|
-
tryNextBatch(options) {
|
|
1017
|
-
const ret = wasm.queue_tryNextBatch(this.__wbg_ptr, options);
|
|
1018
|
-
if (ret[2]) {
|
|
1019
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1020
|
-
}
|
|
1021
|
-
return takeFromExternrefTable0(ret[0]);
|
|
1022
|
-
}
|
|
1023
1083
|
/**
|
|
1024
1084
|
* @param {any} names
|
|
1025
1085
|
* @param {any} options
|
|
@@ -1062,6 +1122,20 @@ export class Queue {
|
|
|
1062
1122
|
const ret = wasm.queue_inspectMessages(this.__wbg_ptr);
|
|
1063
1123
|
return ret;
|
|
1064
1124
|
}
|
|
1125
|
+
/**
|
|
1126
|
+
* @param {bigint} message_id
|
|
1127
|
+
* @param {string} expected_name
|
|
1128
|
+
* @param {Uint8Array | null} [response]
|
|
1129
|
+
* @returns {Promise<boolean>}
|
|
1130
|
+
*/
|
|
1131
|
+
completePersisted(message_id, expected_name, response) {
|
|
1132
|
+
const ptr0 = passStringToWasm0(expected_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1133
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1134
|
+
var ptr1 = isLikeNone(response) ? 0 : passArray8ToWasm0(response, wasm.__wbindgen_malloc);
|
|
1135
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1136
|
+
const ret = wasm.queue_completePersisted(this.__wbg_ptr, message_id, ptr0, len0, ptr1, len1);
|
|
1137
|
+
return ret;
|
|
1138
|
+
}
|
|
1065
1139
|
/**
|
|
1066
1140
|
* @param {any} names
|
|
1067
1141
|
* @param {any} options
|
|
@@ -1091,6 +1165,17 @@ export class Queue {
|
|
|
1091
1165
|
const ret = wasm.queue_reset(this.__wbg_ptr);
|
|
1092
1166
|
return ret;
|
|
1093
1167
|
}
|
|
1168
|
+
/**
|
|
1169
|
+
* @param {any} options
|
|
1170
|
+
* @returns {Array<any>}
|
|
1171
|
+
*/
|
|
1172
|
+
tryNextBatch(options) {
|
|
1173
|
+
const ret = wasm.queue_tryNextBatch(this.__wbg_ptr, options);
|
|
1174
|
+
if (ret[2]) {
|
|
1175
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1176
|
+
}
|
|
1177
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1178
|
+
}
|
|
1094
1179
|
/**
|
|
1095
1180
|
* @returns {number}
|
|
1096
1181
|
*/
|
|
@@ -1125,6 +1210,14 @@ export class QueueMessage {
|
|
|
1125
1210
|
const ptr = this.__destroy_into_raw();
|
|
1126
1211
|
wasm.__wbg_queuemessage_free(ptr, 0);
|
|
1127
1212
|
}
|
|
1213
|
+
/**
|
|
1214
|
+
* @param {any} response
|
|
1215
|
+
* @returns {Promise<void>}
|
|
1216
|
+
*/
|
|
1217
|
+
complete(response) {
|
|
1218
|
+
const ret = wasm.queuemessage_complete(this.__wbg_ptr, response);
|
|
1219
|
+
return ret;
|
|
1220
|
+
}
|
|
1128
1221
|
/**
|
|
1129
1222
|
* @returns {number}
|
|
1130
1223
|
*/
|
|
@@ -1170,14 +1263,6 @@ export class QueueMessage {
|
|
|
1170
1263
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1171
1264
|
}
|
|
1172
1265
|
}
|
|
1173
|
-
/**
|
|
1174
|
-
* @param {any} response
|
|
1175
|
-
* @returns {Promise<void>}
|
|
1176
|
-
*/
|
|
1177
|
-
complete(response) {
|
|
1178
|
-
const ret = wasm.queuemessage_complete(this.__wbg_ptr, response);
|
|
1179
|
-
return ret;
|
|
1180
|
-
}
|
|
1181
1266
|
}
|
|
1182
1267
|
|
|
1183
1268
|
const ScheduleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1205,29 +1290,139 @@ export class Schedule {
|
|
|
1205
1290
|
const ptr = this.__destroy_into_raw();
|
|
1206
1291
|
wasm.__wbg_schedule_free(ptr, 0);
|
|
1207
1292
|
}
|
|
1293
|
+
/**
|
|
1294
|
+
* @param {string} name
|
|
1295
|
+
* @param {number} interval_ms
|
|
1296
|
+
* @param {string} action_name
|
|
1297
|
+
* @param {Uint8Array} args
|
|
1298
|
+
* @param {number | null} [max_history]
|
|
1299
|
+
* @returns {Promise<void>}
|
|
1300
|
+
*/
|
|
1301
|
+
cronEvery(name, interval_ms, action_name, args, max_history) {
|
|
1302
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1303
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1304
|
+
const ptr1 = passStringToWasm0(action_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1305
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1306
|
+
const ptr2 = passArray8ToWasm0(args, wasm.__wbindgen_malloc);
|
|
1307
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1308
|
+
const ret = wasm.schedule_cronEvery(this.__wbg_ptr, ptr0, len0, interval_ms, ptr1, len1, ptr2, len2, !isLikeNone(max_history), isLikeNone(max_history) ? 0 : max_history);
|
|
1309
|
+
return ret;
|
|
1310
|
+
}
|
|
1311
|
+
/**
|
|
1312
|
+
* @param {string} name
|
|
1313
|
+
* @returns {Promise<boolean>}
|
|
1314
|
+
*/
|
|
1315
|
+
cronDelete(name) {
|
|
1316
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1317
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1318
|
+
const ret = wasm.schedule_cronDelete(this.__wbg_ptr, ptr0, len0);
|
|
1319
|
+
return ret;
|
|
1320
|
+
}
|
|
1321
|
+
/**
|
|
1322
|
+
* @param {string} name
|
|
1323
|
+
* @param {number | null} [limit]
|
|
1324
|
+
* @returns {Promise<any>}
|
|
1325
|
+
*/
|
|
1326
|
+
cronHistory(name, limit) {
|
|
1327
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1328
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1329
|
+
const ret = wasm.schedule_cronHistory(this.__wbg_ptr, ptr0, len0, !isLikeNone(limit), isLikeNone(limit) ? 0 : limit);
|
|
1330
|
+
return ret;
|
|
1331
|
+
}
|
|
1208
1332
|
/**
|
|
1209
1333
|
* @param {number} timestamp_ms
|
|
1210
1334
|
* @param {string} action_name
|
|
1211
1335
|
* @param {Uint8Array} args
|
|
1336
|
+
* @returns {Promise<string>}
|
|
1212
1337
|
*/
|
|
1213
1338
|
at(timestamp_ms, action_name, args) {
|
|
1214
1339
|
const ptr0 = passStringToWasm0(action_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1215
1340
|
const len0 = WASM_VECTOR_LEN;
|
|
1216
1341
|
const ptr1 = passArray8ToWasm0(args, wasm.__wbindgen_malloc);
|
|
1217
1342
|
const len1 = WASM_VECTOR_LEN;
|
|
1218
|
-
wasm.schedule_at(this.__wbg_ptr, timestamp_ms, ptr0, len0, ptr1, len1);
|
|
1343
|
+
const ret = wasm.schedule_at(this.__wbg_ptr, timestamp_ms, ptr0, len0, ptr1, len1);
|
|
1344
|
+
return ret;
|
|
1345
|
+
}
|
|
1346
|
+
/**
|
|
1347
|
+
* @param {string} id
|
|
1348
|
+
* @returns {Promise<any>}
|
|
1349
|
+
*/
|
|
1350
|
+
get(id) {
|
|
1351
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1352
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1353
|
+
const ret = wasm.schedule_get(this.__wbg_ptr, ptr0, len0);
|
|
1354
|
+
return ret;
|
|
1355
|
+
}
|
|
1356
|
+
/**
|
|
1357
|
+
* @returns {Promise<any>}
|
|
1358
|
+
*/
|
|
1359
|
+
list() {
|
|
1360
|
+
const ret = wasm.schedule_list(this.__wbg_ptr);
|
|
1361
|
+
return ret;
|
|
1219
1362
|
}
|
|
1220
1363
|
/**
|
|
1221
1364
|
* @param {number} duration_ms
|
|
1222
1365
|
* @param {string} action_name
|
|
1223
1366
|
* @param {Uint8Array} args
|
|
1367
|
+
* @returns {Promise<string>}
|
|
1224
1368
|
*/
|
|
1225
1369
|
after(duration_ms, action_name, args) {
|
|
1226
1370
|
const ptr0 = passStringToWasm0(action_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1227
1371
|
const len0 = WASM_VECTOR_LEN;
|
|
1228
1372
|
const ptr1 = passArray8ToWasm0(args, wasm.__wbindgen_malloc);
|
|
1229
1373
|
const len1 = WASM_VECTOR_LEN;
|
|
1230
|
-
wasm.schedule_after(this.__wbg_ptr, duration_ms, ptr0, len0, ptr1, len1);
|
|
1374
|
+
const ret = wasm.schedule_after(this.__wbg_ptr, duration_ms, ptr0, len0, ptr1, len1);
|
|
1375
|
+
return ret;
|
|
1376
|
+
}
|
|
1377
|
+
/**
|
|
1378
|
+
* @param {string} id
|
|
1379
|
+
* @returns {Promise<boolean>}
|
|
1380
|
+
*/
|
|
1381
|
+
cancel(id) {
|
|
1382
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1383
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1384
|
+
const ret = wasm.schedule_cancel(this.__wbg_ptr, ptr0, len0);
|
|
1385
|
+
return ret;
|
|
1386
|
+
}
|
|
1387
|
+
/**
|
|
1388
|
+
* @param {string} name
|
|
1389
|
+
* @returns {Promise<any>}
|
|
1390
|
+
*/
|
|
1391
|
+
cronGet(name) {
|
|
1392
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1393
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1394
|
+
const ret = wasm.schedule_cronGet(this.__wbg_ptr, ptr0, len0);
|
|
1395
|
+
return ret;
|
|
1396
|
+
}
|
|
1397
|
+
/**
|
|
1398
|
+
* @param {string} name
|
|
1399
|
+
* @param {string} expression
|
|
1400
|
+
* @param {string | null | undefined} timezone
|
|
1401
|
+
* @param {string} action_name
|
|
1402
|
+
* @param {Uint8Array} args
|
|
1403
|
+
* @param {number | null} [max_history]
|
|
1404
|
+
* @returns {Promise<void>}
|
|
1405
|
+
*/
|
|
1406
|
+
cronSet(name, expression, timezone, action_name, args, max_history) {
|
|
1407
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1408
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1409
|
+
const ptr1 = passStringToWasm0(expression, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1410
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1411
|
+
var ptr2 = isLikeNone(timezone) ? 0 : passStringToWasm0(timezone, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1412
|
+
var len2 = WASM_VECTOR_LEN;
|
|
1413
|
+
const ptr3 = passStringToWasm0(action_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1414
|
+
const len3 = WASM_VECTOR_LEN;
|
|
1415
|
+
const ptr4 = passArray8ToWasm0(args, wasm.__wbindgen_malloc);
|
|
1416
|
+
const len4 = WASM_VECTOR_LEN;
|
|
1417
|
+
const ret = wasm.schedule_cronSet(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, !isLikeNone(max_history), isLikeNone(max_history) ? 0 : max_history);
|
|
1418
|
+
return ret;
|
|
1419
|
+
}
|
|
1420
|
+
/**
|
|
1421
|
+
* @returns {Promise<any>}
|
|
1422
|
+
*/
|
|
1423
|
+
cronList() {
|
|
1424
|
+
const ret = wasm.schedule_cronList(this.__wbg_ptr);
|
|
1425
|
+
return ret;
|
|
1231
1426
|
}
|
|
1232
1427
|
}
|
|
1233
1428
|
|
|
@@ -1266,10 +1461,13 @@ export class SqliteDb {
|
|
|
1266
1461
|
}
|
|
1267
1462
|
/**
|
|
1268
1463
|
* @param {number | null} [timeout_ms]
|
|
1464
|
+
* @param {string | null} [name]
|
|
1269
1465
|
* @returns {Promise<SqliteTransaction>}
|
|
1270
1466
|
*/
|
|
1271
|
-
beginTransaction(timeout_ms) {
|
|
1272
|
-
|
|
1467
|
+
beginTransaction(timeout_ms, name) {
|
|
1468
|
+
var ptr0 = isLikeNone(name) ? 0 : passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1469
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1470
|
+
const ret = wasm.sqlitedb_beginTransaction(this.__wbg_ptr, !isLikeNone(timeout_ms), isLikeNone(timeout_ms) ? 0 : timeout_ms, ptr0, len0);
|
|
1273
1471
|
return ret;
|
|
1274
1472
|
}
|
|
1275
1473
|
/**
|
|
@@ -1411,6 +1609,17 @@ export class WebSocketHandle {
|
|
|
1411
1609
|
const ptr = this.__destroy_into_raw();
|
|
1412
1610
|
wasm.__wbg_websockethandle_free(ptr, 0);
|
|
1413
1611
|
}
|
|
1612
|
+
/**
|
|
1613
|
+
* @param {number | null} [code]
|
|
1614
|
+
* @param {string | null} [reason]
|
|
1615
|
+
* @returns {Promise<void>}
|
|
1616
|
+
*/
|
|
1617
|
+
close(code, reason) {
|
|
1618
|
+
var ptr0 = isLikeNone(reason) ? 0 : passStringToWasm0(reason, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1619
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1620
|
+
const ret = wasm.websockethandle_close(this.__wbg_ptr, isLikeNone(code) ? 0xFFFFFF : code, ptr0, len0);
|
|
1621
|
+
return ret;
|
|
1622
|
+
}
|
|
1414
1623
|
/**
|
|
1415
1624
|
* @param {Function} callback
|
|
1416
1625
|
*/
|
|
@@ -1429,17 +1638,6 @@ export class WebSocketHandle {
|
|
|
1429
1638
|
throw takeFromExternrefTable0(ret[0]);
|
|
1430
1639
|
}
|
|
1431
1640
|
}
|
|
1432
|
-
/**
|
|
1433
|
-
* @param {number | null} [code]
|
|
1434
|
-
* @param {string | null} [reason]
|
|
1435
|
-
* @returns {Promise<void>}
|
|
1436
|
-
*/
|
|
1437
|
-
close(code, reason) {
|
|
1438
|
-
var ptr0 = isLikeNone(reason) ? 0 : passStringToWasm0(reason, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1439
|
-
var len0 = WASM_VECTOR_LEN;
|
|
1440
|
-
const ret = wasm.websockethandle_close(this.__wbg_ptr, isLikeNone(code) ? 0xFFFFFF : code, ptr0, len0);
|
|
1441
|
-
return ret;
|
|
1442
|
-
}
|
|
1443
1641
|
}
|
|
1444
1642
|
|
|
1445
1643
|
async function __wbg_load(module, imports) {
|
|
@@ -1487,6 +1685,10 @@ function __wbg_get_imports() {
|
|
|
1487
1685
|
const ret = ActorContext.__wrap(arg0);
|
|
1488
1686
|
return ret;
|
|
1489
1687
|
};
|
|
1688
|
+
imports.wbg.__wbg_actorstatetransaction_new = function(arg0) {
|
|
1689
|
+
const ret = ActorStateTransaction.__wrap(arg0);
|
|
1690
|
+
return ret;
|
|
1691
|
+
};
|
|
1490
1692
|
imports.wbg.__wbg_buffer_09165b52af8c5237 = function(arg0) {
|
|
1491
1693
|
const ret = arg0.buffer;
|
|
1492
1694
|
return ret;
|
|
@@ -1662,7 +1864,7 @@ function __wbg_get_imports() {
|
|
|
1662
1864
|
const a = state0.a;
|
|
1663
1865
|
state0.a = 0;
|
|
1664
1866
|
try {
|
|
1665
|
-
return
|
|
1867
|
+
return __wbg_adapter_293(a, state0.b, arg0, arg1);
|
|
1666
1868
|
} finally {
|
|
1667
1869
|
state0.a = a;
|
|
1668
1870
|
}
|
|
@@ -1677,6 +1879,10 @@ function __wbg_get_imports() {
|
|
|
1677
1879
|
const ret = new Object();
|
|
1678
1880
|
return ret;
|
|
1679
1881
|
};
|
|
1882
|
+
imports.wbg.__wbg_new_5e0be73521bc8c17 = function() {
|
|
1883
|
+
const ret = new Map();
|
|
1884
|
+
return ret;
|
|
1885
|
+
};
|
|
1680
1886
|
imports.wbg.__wbg_new_78feb108b6472713 = function() {
|
|
1681
1887
|
const ret = new Array();
|
|
1682
1888
|
return ret;
|
|
@@ -1786,6 +1992,10 @@ function __wbg_get_imports() {
|
|
|
1786
1992
|
imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
1787
1993
|
arg0.set(arg1, arg2 >>> 0);
|
|
1788
1994
|
};
|
|
1995
|
+
imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) {
|
|
1996
|
+
const ret = arg0.set(arg1, arg2);
|
|
1997
|
+
return ret;
|
|
1998
|
+
};
|
|
1789
1999
|
imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1790
2000
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1791
2001
|
return ret;
|
|
@@ -1864,6 +2074,14 @@ function __wbg_get_imports() {
|
|
|
1864
2074
|
const ret = +arg0;
|
|
1865
2075
|
return ret;
|
|
1866
2076
|
};
|
|
2077
|
+
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
2078
|
+
const ret = arg0;
|
|
2079
|
+
return ret;
|
|
2080
|
+
};
|
|
2081
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2082
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2083
|
+
return ret;
|
|
2084
|
+
};
|
|
1867
2085
|
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
1868
2086
|
const v = arg0;
|
|
1869
2087
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
@@ -1878,24 +2096,24 @@ function __wbg_get_imports() {
|
|
|
1878
2096
|
const ret = false;
|
|
1879
2097
|
return ret;
|
|
1880
2098
|
};
|
|
1881
|
-
imports.wbg.
|
|
1882
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2099
|
+
imports.wbg.__wbindgen_closure_wrapper4818 = function(arg0, arg1, arg2) {
|
|
2100
|
+
const ret = makeMutClosure(arg0, arg1, 1968, __wbg_adapter_50);
|
|
1883
2101
|
return ret;
|
|
1884
2102
|
};
|
|
1885
|
-
imports.wbg.
|
|
1886
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2103
|
+
imports.wbg.__wbindgen_closure_wrapper4820 = function(arg0, arg1, arg2) {
|
|
2104
|
+
const ret = makeMutClosure(arg0, arg1, 1968, __wbg_adapter_50);
|
|
1887
2105
|
return ret;
|
|
1888
2106
|
};
|
|
1889
|
-
imports.wbg.
|
|
1890
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2107
|
+
imports.wbg.__wbindgen_closure_wrapper4822 = function(arg0, arg1, arg2) {
|
|
2108
|
+
const ret = makeMutClosure(arg0, arg1, 1968, __wbg_adapter_50);
|
|
1891
2109
|
return ret;
|
|
1892
2110
|
};
|
|
1893
|
-
imports.wbg.
|
|
1894
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2111
|
+
imports.wbg.__wbindgen_closure_wrapper4824 = function(arg0, arg1, arg2) {
|
|
2112
|
+
const ret = makeMutClosure(arg0, arg1, 1968, __wbg_adapter_50);
|
|
1895
2113
|
return ret;
|
|
1896
2114
|
};
|
|
1897
|
-
imports.wbg.
|
|
1898
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2115
|
+
imports.wbg.__wbindgen_closure_wrapper5409 = function(arg0, arg1, arg2) {
|
|
2116
|
+
const ret = makeMutClosure(arg0, arg1, 2329, __wbg_adapter_59);
|
|
1899
2117
|
return ret;
|
|
1900
2118
|
};
|
|
1901
2119
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
4
|
export const __wbg_actorcontext_free: (a: number, b: number) => void;
|
|
5
5
|
export const __wbg_actorfactory_free: (a: number, b: number) => void;
|
|
6
|
+
export const __wbg_actorstatetransaction_free: (a: number, b: number) => void;
|
|
6
7
|
export const __wbg_cancellationtoken_free: (a: number, b: number) => void;
|
|
7
8
|
export const __wbg_connhandle_free: (a: number, b: number) => void;
|
|
8
9
|
export const __wbg_coreregistry_free: (a: number, b: number) => void;
|
|
@@ -15,6 +16,7 @@ export const actorcontext_abortSignal: (a: number) => [number, number, number];
|
|
|
15
16
|
export const actorcontext_actorId: (a: number) => [number, number];
|
|
16
17
|
export const actorcontext_beginKeepAwake: (a: number) => number;
|
|
17
18
|
export const actorcontext_beginOnStateChange: (a: number) => void;
|
|
19
|
+
export const actorcontext_beginStateTransaction: (a: number, b: number, c: number) => any;
|
|
18
20
|
export const actorcontext_beginWebsocketCallback: (a: number) => number;
|
|
19
21
|
export const actorcontext_broadcast: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
20
22
|
export const actorcontext_connectConn: (a: number, b: number, c: number, d: any) => any;
|
|
@@ -34,11 +36,12 @@ export const actorcontext_region: (a: number) => [number, number];
|
|
|
34
36
|
export const actorcontext_registerTask: (a: number, b: any) => void;
|
|
35
37
|
export const actorcontext_requestSave: (a: number, b: any) => void;
|
|
36
38
|
export const actorcontext_requestSaveAndWait: (a: number, b: any) => any;
|
|
37
|
-
export const actorcontext_restartRunHandler: (a: number) =>
|
|
39
|
+
export const actorcontext_restartRunHandler: (a: number) => [number, number];
|
|
38
40
|
export const actorcontext_runtimeState: (a: number) => any;
|
|
39
41
|
export const actorcontext_saveState: (a: number, b: any) => any;
|
|
40
42
|
export const actorcontext_saveStateAndWorkflowBatch: (a: number, b: any) => any;
|
|
41
43
|
export const actorcontext_setAlarm: (a: number, b: number, c: number) => [number, number];
|
|
44
|
+
export const actorcontext_setRunWakeAt: (a: number, b: number, c: number) => any;
|
|
42
45
|
export const actorcontext_sleep: (a: number) => [number, number];
|
|
43
46
|
export const actorcontext_sql: (a: number) => number;
|
|
44
47
|
export const actorcontext_state: (a: number) => [number, number];
|
|
@@ -48,6 +51,9 @@ export const actorcontext_waitForTrackedShutdownWork: (a: number) => any;
|
|
|
48
51
|
export const actorcontext_waitForTrackedShutdownWorkUnbounded: (a: number) => any;
|
|
49
52
|
export const actorcontext_waitUntil: (a: number, b: any) => void;
|
|
50
53
|
export const actorfactory_new: (a: any, b: any) => [number, number, number];
|
|
54
|
+
export const actorstatetransaction_commit: (a: number, b: any) => any;
|
|
55
|
+
export const actorstatetransaction_execute: (a: number, b: number, c: number, d: any) => any;
|
|
56
|
+
export const actorstatetransaction_rollback: (a: number) => any;
|
|
51
57
|
export const awaitPromise: (a: any) => any;
|
|
52
58
|
export const bridgeRivetErrorPrefix: () => [number, number];
|
|
53
59
|
export const cancellationtoken_aborted: (a: number) => number;
|
|
@@ -75,6 +81,7 @@ export const kv_get: (a: number, b: number, c: number) => any;
|
|
|
75
81
|
export const kv_listPrefix: (a: number, b: number, c: number, d: any) => any;
|
|
76
82
|
export const kv_listRange: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
|
|
77
83
|
export const kv_put: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
84
|
+
export const queue_completePersisted: (a: number, b: bigint, c: number, d: number, e: number, f: number) => any;
|
|
78
85
|
export const queue_enqueueAndWait: (a: number, b: number, c: number, d: number, e: number, f: any, g: number) => any;
|
|
79
86
|
export const queue_inspectMessages: (a: number) => any;
|
|
80
87
|
export const queue_maxSize: (a: number) => number;
|
|
@@ -91,9 +98,18 @@ export const queuemessage_id: (a: number) => bigint;
|
|
|
91
98
|
export const queuemessage_isCompletable: (a: number) => number;
|
|
92
99
|
export const queuemessage_name: (a: number) => [number, number];
|
|
93
100
|
export const roundTripBytes: (a: number, b: number) => [number, number];
|
|
94
|
-
export const schedule_after: (a: number, b: number, c: number, d: number, e: number, f: number) =>
|
|
95
|
-
export const schedule_at: (a: number, b: number, c: number, d: number, e: number, f: number) =>
|
|
96
|
-
export const
|
|
101
|
+
export const schedule_after: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
102
|
+
export const schedule_at: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
103
|
+
export const schedule_cancel: (a: number, b: number, c: number) => any;
|
|
104
|
+
export const schedule_cronDelete: (a: number, b: number, c: number) => any;
|
|
105
|
+
export const schedule_cronEvery: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => any;
|
|
106
|
+
export const schedule_cronGet: (a: number, b: number, c: number) => any;
|
|
107
|
+
export const schedule_cronHistory: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
108
|
+
export const schedule_cronList: (a: number) => any;
|
|
109
|
+
export const 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;
|
|
110
|
+
export const schedule_get: (a: number, b: number, c: number) => any;
|
|
111
|
+
export const schedule_list: (a: number) => any;
|
|
112
|
+
export const sqlitedb_beginTransaction: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
97
113
|
export const sqlitedb_close: (a: number) => any;
|
|
98
114
|
export const sqlitedb_exec: (a: number, b: number, c: number) => any;
|
|
99
115
|
export const sqlitedb_execute: (a: number, b: number, c: number, d: any) => any;
|
|
@@ -121,7 +137,7 @@ export const __wbindgen_export_4: WebAssembly.Table;
|
|
|
121
137
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
122
138
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
123
139
|
export const __externref_table_dealloc: (a: number) => void;
|
|
124
|
-
export const
|
|
125
|
-
export const
|
|
126
|
-
export const
|
|
140
|
+
export const closure1967_externref_shim: (a: number, b: number, c: any) => void;
|
|
141
|
+
export const closure2328_externref_shim: (a: number, b: number, c: any) => void;
|
|
142
|
+
export const closure2561_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
127
143
|
export const __wbindgen_start: () => void;
|