@rivetkit/rivetkit-wasm 0.0.0-main.337772d → 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/package.json +9 -3
- package/pkg/package.json +19 -0
- package/pkg/rivetkit_wasm.d.ts +80 -20
- package/pkg/rivetkit_wasm.js +464 -135
- package/pkg/rivetkit_wasm_bg.wasm +0 -0
- package/pkg/rivetkit_wasm_bg.wasm.d.ts +33 -6
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",
|
|
@@ -28,15 +28,21 @@
|
|
|
28
28
|
],
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "node scripts/build.mjs",
|
|
31
|
+
"build:embed": "node scripts/build.mjs",
|
|
31
32
|
"build:cloudflare": "node scripts/build.mjs --target bundler --out-dir pkg-cloudflare",
|
|
32
33
|
"build:deno": "node scripts/build.mjs --target web --out-dir pkg-deno",
|
|
33
34
|
"check:package": "node scripts/check-package.mjs",
|
|
34
|
-
"check-types": "tsc --noEmit",
|
|
35
|
+
"check-types": "pnpm run build && tsc --noEmit",
|
|
35
36
|
"check:wasm": "cargo check -p rivetkit-wasm --target wasm32-unknown-unknown",
|
|
36
37
|
"prepack": "node scripts/build.mjs"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
40
|
"typescript": "^5.9.2",
|
|
40
|
-
"wasm-pack": "0.
|
|
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"
|
|
41
47
|
}
|
|
42
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 awaitPromise(promise: Promise<any>): Promise<any>;
|
|
4
|
-
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
5
3
|
export function start(): void;
|
|
6
|
-
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
7
4
|
export function bridgeRivetErrorPrefix(): string;
|
|
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,8 +28,6 @@ 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>;
|
|
@@ -47,6 +52,13 @@ export class ActorFactory {
|
|
|
47
52
|
free(): void;
|
|
48
53
|
constructor(callbacks: any, config: any);
|
|
49
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
|
+
}
|
|
50
62
|
export class CancellationToken {
|
|
51
63
|
free(): void;
|
|
52
64
|
onCancelled(callback: Function): void;
|
|
@@ -68,10 +80,10 @@ export class ConnHandle {
|
|
|
68
80
|
export class CoreRegistry {
|
|
69
81
|
free(): void;
|
|
70
82
|
handleServerlessRequest(req: any, on_stream_event: Function, cancel_token: CancellationToken, config: any): Promise<any>;
|
|
71
|
-
constructor();
|
|
72
83
|
serve(config: any): Promise<void>;
|
|
73
|
-
register(name: string, factory: ActorFactory): void;
|
|
74
84
|
shutdown(): Promise<void>;
|
|
85
|
+
constructor();
|
|
86
|
+
register(name: string, factory: ActorFactory): void;
|
|
75
87
|
}
|
|
76
88
|
export class Kv {
|
|
77
89
|
private constructor();
|
|
@@ -90,45 +102,66 @@ export class Queue {
|
|
|
90
102
|
private constructor();
|
|
91
103
|
free(): void;
|
|
92
104
|
nextBatch(options: any, signal?: CancellationToken | null): Promise<Array<any>>;
|
|
93
|
-
tryNextBatch(options: any): Array<any>;
|
|
94
105
|
waitForNames(names: any, options: any, signal?: CancellationToken | null): Promise<QueueMessage>;
|
|
95
106
|
enqueueAndWait(name: string, body: Uint8Array, options: any, signal?: CancellationToken | null): Promise<Uint8Array | undefined>;
|
|
96
107
|
inspectMessages(): Promise<Array<any>>;
|
|
108
|
+
completePersisted(message_id: bigint, expected_name: string, response?: Uint8Array | null): Promise<boolean>;
|
|
97
109
|
waitForNamesAvailable(names: any, options: any): Promise<void>;
|
|
98
110
|
send(name: string, body: Uint8Array): Promise<QueueMessage>;
|
|
111
|
+
reset(): Promise<void>;
|
|
112
|
+
tryNextBatch(options: any): Array<any>;
|
|
99
113
|
maxSize(): number;
|
|
100
114
|
}
|
|
101
115
|
export class QueueMessage {
|
|
102
116
|
private constructor();
|
|
103
117
|
free(): void;
|
|
118
|
+
complete(response: any): Promise<void>;
|
|
104
119
|
createdAt(): number;
|
|
105
120
|
isCompletable(): boolean;
|
|
106
121
|
id(): bigint;
|
|
107
122
|
body(): Uint8Array;
|
|
108
123
|
name(): string;
|
|
109
|
-
complete(response: any): Promise<void>;
|
|
110
124
|
}
|
|
111
125
|
export class Schedule {
|
|
112
126
|
private constructor();
|
|
113
127
|
free(): void;
|
|
114
|
-
|
|
115
|
-
|
|
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>;
|
|
116
139
|
}
|
|
117
140
|
export class SqliteDb {
|
|
118
141
|
private constructor();
|
|
119
142
|
free(): void;
|
|
143
|
+
executeBatch(statements: any): Promise<any>;
|
|
144
|
+
beginTransaction(timeout_ms?: number | null, name?: string | null): Promise<SqliteTransaction>;
|
|
120
145
|
run(sql: string, params: any): Promise<any>;
|
|
121
146
|
exec(sql: string): Promise<any>;
|
|
122
147
|
close(): Promise<void>;
|
|
123
148
|
query(sql: string, params: any): Promise<any>;
|
|
124
149
|
execute(sql: string, params: any): Promise<any>;
|
|
125
150
|
}
|
|
151
|
+
export class SqliteTransaction {
|
|
152
|
+
private constructor();
|
|
153
|
+
free(): void;
|
|
154
|
+
exec(sql: string): Promise<any>;
|
|
155
|
+
commit(): Promise<void>;
|
|
156
|
+
execute(sql: string, params: any): Promise<any>;
|
|
157
|
+
rollback(): Promise<void>;
|
|
158
|
+
}
|
|
126
159
|
export class WebSocketHandle {
|
|
127
160
|
private constructor();
|
|
128
161
|
free(): void;
|
|
162
|
+
close(code?: number | null, reason?: string | null): Promise<void>;
|
|
129
163
|
setEventCallback(callback: Function): void;
|
|
130
164
|
send(data: Uint8Array, binary: boolean): void;
|
|
131
|
-
close(code?: number | null, reason?: string | null): Promise<void>;
|
|
132
165
|
}
|
|
133
166
|
|
|
134
167
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
@@ -137,17 +170,20 @@ export interface InitOutput {
|
|
|
137
170
|
readonly memory: WebAssembly.Memory;
|
|
138
171
|
readonly __wbg_actorcontext_free: (a: number, b: number) => void;
|
|
139
172
|
readonly __wbg_actorfactory_free: (a: number, b: number) => void;
|
|
173
|
+
readonly __wbg_actorstatetransaction_free: (a: number, b: number) => void;
|
|
140
174
|
readonly __wbg_cancellationtoken_free: (a: number, b: number) => void;
|
|
141
175
|
readonly __wbg_connhandle_free: (a: number, b: number) => void;
|
|
142
176
|
readonly __wbg_coreregistry_free: (a: number, b: number) => void;
|
|
143
177
|
readonly __wbg_kv_free: (a: number, b: number) => void;
|
|
144
178
|
readonly __wbg_queuemessage_free: (a: number, b: number) => void;
|
|
145
179
|
readonly __wbg_sqlitedb_free: (a: number, b: number) => void;
|
|
180
|
+
readonly __wbg_sqlitetransaction_free: (a: number, b: number) => void;
|
|
146
181
|
readonly __wbg_websockethandle_free: (a: number, b: number) => void;
|
|
147
182
|
readonly actorcontext_abortSignal: (a: number) => [number, number, number];
|
|
148
183
|
readonly actorcontext_actorId: (a: number) => [number, number];
|
|
149
184
|
readonly actorcontext_beginKeepAwake: (a: number) => number;
|
|
150
185
|
readonly actorcontext_beginOnStateChange: (a: number) => void;
|
|
186
|
+
readonly actorcontext_beginStateTransaction: (a: number, b: number, c: number) => any;
|
|
151
187
|
readonly actorcontext_beginWebsocketCallback: (a: number) => number;
|
|
152
188
|
readonly actorcontext_broadcast: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
153
189
|
readonly actorcontext_connectConn: (a: number, b: number, c: number, d: any) => any;
|
|
@@ -167,17 +203,24 @@ export interface InitOutput {
|
|
|
167
203
|
readonly actorcontext_registerTask: (a: number, b: any) => void;
|
|
168
204
|
readonly actorcontext_requestSave: (a: number, b: any) => void;
|
|
169
205
|
readonly actorcontext_requestSaveAndWait: (a: number, b: any) => any;
|
|
170
|
-
readonly actorcontext_restartRunHandler: (a: number) =>
|
|
206
|
+
readonly actorcontext_restartRunHandler: (a: number) => [number, number];
|
|
171
207
|
readonly actorcontext_runtimeState: (a: number) => any;
|
|
172
208
|
readonly actorcontext_saveState: (a: number, b: any) => any;
|
|
209
|
+
readonly actorcontext_saveStateAndWorkflowBatch: (a: number, b: any) => any;
|
|
173
210
|
readonly actorcontext_setAlarm: (a: number, b: number, c: number) => [number, number];
|
|
211
|
+
readonly actorcontext_setRunWakeAt: (a: number, b: number, c: number) => any;
|
|
174
212
|
readonly actorcontext_sleep: (a: number) => [number, number];
|
|
175
213
|
readonly actorcontext_sql: (a: number) => number;
|
|
176
214
|
readonly actorcontext_state: (a: number) => [number, number];
|
|
177
215
|
readonly actorcontext_takePendingHibernationChanges: (a: number) => any;
|
|
178
216
|
readonly actorcontext_verifyInspectorAuth: (a: number, b: number, c: number) => any;
|
|
217
|
+
readonly actorcontext_waitForTrackedShutdownWork: (a: number) => any;
|
|
218
|
+
readonly actorcontext_waitForTrackedShutdownWorkUnbounded: (a: number) => any;
|
|
179
219
|
readonly actorcontext_waitUntil: (a: number, b: any) => void;
|
|
180
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;
|
|
181
224
|
readonly awaitPromise: (a: any) => any;
|
|
182
225
|
readonly bridgeRivetErrorPrefix: () => [number, number];
|
|
183
226
|
readonly cancellationtoken_aborted: (a: number) => number;
|
|
@@ -205,10 +248,12 @@ export interface InitOutput {
|
|
|
205
248
|
readonly kv_listPrefix: (a: number, b: number, c: number, d: any) => any;
|
|
206
249
|
readonly kv_listRange: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
|
|
207
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;
|
|
208
252
|
readonly queue_enqueueAndWait: (a: number, b: number, c: number, d: number, e: number, f: any, g: number) => any;
|
|
209
253
|
readonly queue_inspectMessages: (a: number) => any;
|
|
210
254
|
readonly queue_maxSize: (a: number) => number;
|
|
211
255
|
readonly queue_nextBatch: (a: number, b: any, c: number) => any;
|
|
256
|
+
readonly queue_reset: (a: number) => any;
|
|
212
257
|
readonly queue_send: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
213
258
|
readonly queue_tryNextBatch: (a: number, b: any) => [number, number, number];
|
|
214
259
|
readonly queue_waitForNames: (a: number, b: any, c: any, d: number) => any;
|
|
@@ -220,13 +265,28 @@ export interface InitOutput {
|
|
|
220
265
|
readonly queuemessage_isCompletable: (a: number) => number;
|
|
221
266
|
readonly queuemessage_name: (a: number) => [number, number];
|
|
222
267
|
readonly roundTripBytes: (a: number, b: number) => [number, number];
|
|
223
|
-
readonly schedule_after: (a: number, b: number, c: number, d: number, e: number, f: number) =>
|
|
224
|
-
readonly schedule_at: (a: number, b: number, c: number, d: number, e: number, f: number) =>
|
|
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;
|
|
225
280
|
readonly sqlitedb_close: (a: number) => any;
|
|
226
281
|
readonly sqlitedb_exec: (a: number, b: number, c: number) => any;
|
|
227
282
|
readonly sqlitedb_execute: (a: number, b: number, c: number, d: any) => any;
|
|
283
|
+
readonly sqlitedb_executeBatch: (a: number, b: any) => any;
|
|
228
284
|
readonly sqlitedb_query: (a: number, b: number, c: number, d: any) => any;
|
|
229
285
|
readonly sqlitedb_run: (a: number, b: number, c: number, d: any) => any;
|
|
286
|
+
readonly sqlitetransaction_commit: (a: number) => any;
|
|
287
|
+
readonly sqlitetransaction_exec: (a: number, b: number, c: number) => any;
|
|
288
|
+
readonly sqlitetransaction_execute: (a: number, b: number, c: number, d: any) => any;
|
|
289
|
+
readonly sqlitetransaction_rollback: (a: number) => any;
|
|
230
290
|
readonly uint8ArrayFromBytes: (a: number, b: number) => any;
|
|
231
291
|
readonly websockethandle_close: (a: number, b: number, c: number, d: number) => any;
|
|
232
292
|
readonly websockethandle_send: (a: number, b: number, c: number, d: number) => [number, number];
|
|
@@ -244,9 +304,9 @@ export interface InitOutput {
|
|
|
244
304
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
245
305
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
246
306
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
247
|
-
readonly
|
|
248
|
-
readonly
|
|
249
|
-
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;
|
|
250
310
|
readonly __wbindgen_start: () => void;
|
|
251
311
|
}
|
|
252
312
|
|
package/pkg/rivetkit_wasm.js
CHANGED
|
@@ -203,33 +203,32 @@ function debugString(val) {
|
|
|
203
203
|
return className;
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
function
|
|
207
|
-
|
|
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;
|
|
206
|
+
export function start() {
|
|
207
|
+
wasm.start();
|
|
217
208
|
}
|
|
218
209
|
|
|
219
|
-
function _assertClass(instance, klass) {
|
|
220
|
-
if (!(instance instanceof klass)) {
|
|
221
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
210
|
/**
|
|
225
|
-
* @
|
|
226
|
-
* @returns {Promise<any>}
|
|
211
|
+
* @returns {string}
|
|
227
212
|
*/
|
|
228
|
-
export function
|
|
229
|
-
|
|
230
|
-
|
|
213
|
+
export function bridgeRivetErrorPrefix() {
|
|
214
|
+
let deferred1_0;
|
|
215
|
+
let deferred1_1;
|
|
216
|
+
try {
|
|
217
|
+
const ret = wasm.bridgeRivetErrorPrefix();
|
|
218
|
+
deferred1_0 = ret[0];
|
|
219
|
+
deferred1_1 = ret[1];
|
|
220
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
221
|
+
} finally {
|
|
222
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
223
|
+
}
|
|
231
224
|
}
|
|
232
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
|
+
}
|
|
233
232
|
/**
|
|
234
233
|
* @param {Uint8Array} bytes
|
|
235
234
|
* @returns {Uint8Array}
|
|
@@ -243,10 +242,6 @@ export function roundTripBytes(bytes) {
|
|
|
243
242
|
return v2;
|
|
244
243
|
}
|
|
245
244
|
|
|
246
|
-
export function start() {
|
|
247
|
-
wasm.start();
|
|
248
|
-
}
|
|
249
|
-
|
|
250
245
|
/**
|
|
251
246
|
* @param {Uint8Array} bytes
|
|
252
247
|
* @returns {Uint8Array}
|
|
@@ -259,31 +254,35 @@ export function uint8ArrayFromBytes(bytes) {
|
|
|
259
254
|
}
|
|
260
255
|
|
|
261
256
|
/**
|
|
262
|
-
* @
|
|
257
|
+
* @param {Promise<any>} promise
|
|
258
|
+
* @returns {Promise<any>}
|
|
263
259
|
*/
|
|
264
|
-
export function
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
} finally {
|
|
273
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
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}`);
|
|
274
268
|
}
|
|
275
269
|
}
|
|
276
270
|
|
|
277
|
-
function
|
|
278
|
-
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);
|
|
279
278
|
}
|
|
280
279
|
|
|
281
|
-
function
|
|
282
|
-
wasm.
|
|
280
|
+
function __wbg_adapter_59(arg0, arg1, arg2) {
|
|
281
|
+
wasm.closure2328_externref_shim(arg0, arg1, arg2);
|
|
283
282
|
}
|
|
284
283
|
|
|
285
|
-
function
|
|
286
|
-
wasm.
|
|
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
|
*/
|
|
@@ -624,6 +664,59 @@ export class ActorFactory {
|
|
|
624
664
|
}
|
|
625
665
|
}
|
|
626
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
|
+
|
|
627
720
|
const CancellationTokenFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
628
721
|
? { register: () => {}, unregister: () => {} }
|
|
629
722
|
: new FinalizationRegistry(ptr => wasm.__wbg_cancellationtoken_free(ptr >>> 0, 1));
|
|
@@ -790,12 +883,6 @@ export class CoreRegistry {
|
|
|
790
883
|
const ret = wasm.coreregistry_handleServerlessRequest(this.__wbg_ptr, req, on_stream_event, cancel_token.__wbg_ptr, config);
|
|
791
884
|
return ret;
|
|
792
885
|
}
|
|
793
|
-
constructor() {
|
|
794
|
-
const ret = wasm.coreregistry_new();
|
|
795
|
-
this.__wbg_ptr = ret >>> 0;
|
|
796
|
-
CoreRegistryFinalization.register(this, this.__wbg_ptr, this);
|
|
797
|
-
return this;
|
|
798
|
-
}
|
|
799
886
|
/**
|
|
800
887
|
* @param {any} config
|
|
801
888
|
* @returns {Promise<void>}
|
|
@@ -804,6 +891,19 @@ export class CoreRegistry {
|
|
|
804
891
|
const ret = wasm.coreregistry_serve(this.__wbg_ptr, config);
|
|
805
892
|
return ret;
|
|
806
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
|
+
}
|
|
807
907
|
/**
|
|
808
908
|
* @param {string} name
|
|
809
909
|
* @param {ActorFactory} factory
|
|
@@ -817,13 +917,6 @@ export class CoreRegistry {
|
|
|
817
917
|
throw takeFromExternrefTable0(ret[0]);
|
|
818
918
|
}
|
|
819
919
|
}
|
|
820
|
-
/**
|
|
821
|
-
* @returns {Promise<void>}
|
|
822
|
-
*/
|
|
823
|
-
shutdown() {
|
|
824
|
-
const ret = wasm.coreregistry_shutdown(this.__wbg_ptr);
|
|
825
|
-
return ret;
|
|
826
|
-
}
|
|
827
920
|
}
|
|
828
921
|
|
|
829
922
|
const KvFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -987,17 +1080,6 @@ export class Queue {
|
|
|
987
1080
|
const ret = wasm.queue_nextBatch(this.__wbg_ptr, options, ptr0);
|
|
988
1081
|
return ret;
|
|
989
1082
|
}
|
|
990
|
-
/**
|
|
991
|
-
* @param {any} options
|
|
992
|
-
* @returns {Array<any>}
|
|
993
|
-
*/
|
|
994
|
-
tryNextBatch(options) {
|
|
995
|
-
const ret = wasm.queue_tryNextBatch(this.__wbg_ptr, options);
|
|
996
|
-
if (ret[2]) {
|
|
997
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
998
|
-
}
|
|
999
|
-
return takeFromExternrefTable0(ret[0]);
|
|
1000
|
-
}
|
|
1001
1083
|
/**
|
|
1002
1084
|
* @param {any} names
|
|
1003
1085
|
* @param {any} options
|
|
@@ -1040,6 +1122,20 @@ export class Queue {
|
|
|
1040
1122
|
const ret = wasm.queue_inspectMessages(this.__wbg_ptr);
|
|
1041
1123
|
return ret;
|
|
1042
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
|
+
}
|
|
1043
1139
|
/**
|
|
1044
1140
|
* @param {any} names
|
|
1045
1141
|
* @param {any} options
|
|
@@ -1062,6 +1158,24 @@ export class Queue {
|
|
|
1062
1158
|
const ret = wasm.queue_send(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1063
1159
|
return ret;
|
|
1064
1160
|
}
|
|
1161
|
+
/**
|
|
1162
|
+
* @returns {Promise<void>}
|
|
1163
|
+
*/
|
|
1164
|
+
reset() {
|
|
1165
|
+
const ret = wasm.queue_reset(this.__wbg_ptr);
|
|
1166
|
+
return ret;
|
|
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
|
+
}
|
|
1065
1179
|
/**
|
|
1066
1180
|
* @returns {number}
|
|
1067
1181
|
*/
|
|
@@ -1096,6 +1210,14 @@ export class QueueMessage {
|
|
|
1096
1210
|
const ptr = this.__destroy_into_raw();
|
|
1097
1211
|
wasm.__wbg_queuemessage_free(ptr, 0);
|
|
1098
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
|
+
}
|
|
1099
1221
|
/**
|
|
1100
1222
|
* @returns {number}
|
|
1101
1223
|
*/
|
|
@@ -1141,14 +1263,6 @@ export class QueueMessage {
|
|
|
1141
1263
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1142
1264
|
}
|
|
1143
1265
|
}
|
|
1144
|
-
/**
|
|
1145
|
-
* @param {any} response
|
|
1146
|
-
* @returns {Promise<void>}
|
|
1147
|
-
*/
|
|
1148
|
-
complete(response) {
|
|
1149
|
-
const ret = wasm.queuemessage_complete(this.__wbg_ptr, response);
|
|
1150
|
-
return ret;
|
|
1151
|
-
}
|
|
1152
1266
|
}
|
|
1153
1267
|
|
|
1154
1268
|
const ScheduleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1176,29 +1290,139 @@ export class Schedule {
|
|
|
1176
1290
|
const ptr = this.__destroy_into_raw();
|
|
1177
1291
|
wasm.__wbg_schedule_free(ptr, 0);
|
|
1178
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
|
+
}
|
|
1179
1332
|
/**
|
|
1180
1333
|
* @param {number} timestamp_ms
|
|
1181
1334
|
* @param {string} action_name
|
|
1182
1335
|
* @param {Uint8Array} args
|
|
1336
|
+
* @returns {Promise<string>}
|
|
1183
1337
|
*/
|
|
1184
1338
|
at(timestamp_ms, action_name, args) {
|
|
1185
1339
|
const ptr0 = passStringToWasm0(action_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1186
1340
|
const len0 = WASM_VECTOR_LEN;
|
|
1187
1341
|
const ptr1 = passArray8ToWasm0(args, wasm.__wbindgen_malloc);
|
|
1188
1342
|
const len1 = WASM_VECTOR_LEN;
|
|
1189
|
-
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;
|
|
1190
1362
|
}
|
|
1191
1363
|
/**
|
|
1192
1364
|
* @param {number} duration_ms
|
|
1193
1365
|
* @param {string} action_name
|
|
1194
1366
|
* @param {Uint8Array} args
|
|
1367
|
+
* @returns {Promise<string>}
|
|
1195
1368
|
*/
|
|
1196
1369
|
after(duration_ms, action_name, args) {
|
|
1197
1370
|
const ptr0 = passStringToWasm0(action_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1198
1371
|
const len0 = WASM_VECTOR_LEN;
|
|
1199
1372
|
const ptr1 = passArray8ToWasm0(args, wasm.__wbindgen_malloc);
|
|
1200
1373
|
const len1 = WASM_VECTOR_LEN;
|
|
1201
|
-
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;
|
|
1202
1426
|
}
|
|
1203
1427
|
}
|
|
1204
1428
|
|
|
@@ -1227,6 +1451,25 @@ export class SqliteDb {
|
|
|
1227
1451
|
const ptr = this.__destroy_into_raw();
|
|
1228
1452
|
wasm.__wbg_sqlitedb_free(ptr, 0);
|
|
1229
1453
|
}
|
|
1454
|
+
/**
|
|
1455
|
+
* @param {any} statements
|
|
1456
|
+
* @returns {Promise<any>}
|
|
1457
|
+
*/
|
|
1458
|
+
executeBatch(statements) {
|
|
1459
|
+
const ret = wasm.sqlitedb_executeBatch(this.__wbg_ptr, statements);
|
|
1460
|
+
return ret;
|
|
1461
|
+
}
|
|
1462
|
+
/**
|
|
1463
|
+
* @param {number | null} [timeout_ms]
|
|
1464
|
+
* @param {string | null} [name]
|
|
1465
|
+
* @returns {Promise<SqliteTransaction>}
|
|
1466
|
+
*/
|
|
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);
|
|
1471
|
+
return ret;
|
|
1472
|
+
}
|
|
1230
1473
|
/**
|
|
1231
1474
|
* @param {string} sql
|
|
1232
1475
|
* @param {any} params
|
|
@@ -1279,6 +1522,68 @@ export class SqliteDb {
|
|
|
1279
1522
|
}
|
|
1280
1523
|
}
|
|
1281
1524
|
|
|
1525
|
+
const SqliteTransactionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1526
|
+
? { register: () => {}, unregister: () => {} }
|
|
1527
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_sqlitetransaction_free(ptr >>> 0, 1));
|
|
1528
|
+
|
|
1529
|
+
export class SqliteTransaction {
|
|
1530
|
+
|
|
1531
|
+
static __wrap(ptr) {
|
|
1532
|
+
ptr = ptr >>> 0;
|
|
1533
|
+
const obj = Object.create(SqliteTransaction.prototype);
|
|
1534
|
+
obj.__wbg_ptr = ptr;
|
|
1535
|
+
SqliteTransactionFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1536
|
+
return obj;
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
__destroy_into_raw() {
|
|
1540
|
+
const ptr = this.__wbg_ptr;
|
|
1541
|
+
this.__wbg_ptr = 0;
|
|
1542
|
+
SqliteTransactionFinalization.unregister(this);
|
|
1543
|
+
return ptr;
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
free() {
|
|
1547
|
+
const ptr = this.__destroy_into_raw();
|
|
1548
|
+
wasm.__wbg_sqlitetransaction_free(ptr, 0);
|
|
1549
|
+
}
|
|
1550
|
+
/**
|
|
1551
|
+
* @param {string} sql
|
|
1552
|
+
* @returns {Promise<any>}
|
|
1553
|
+
*/
|
|
1554
|
+
exec(sql) {
|
|
1555
|
+
const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1556
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1557
|
+
const ret = wasm.sqlitetransaction_exec(this.__wbg_ptr, ptr0, len0);
|
|
1558
|
+
return ret;
|
|
1559
|
+
}
|
|
1560
|
+
/**
|
|
1561
|
+
* @returns {Promise<void>}
|
|
1562
|
+
*/
|
|
1563
|
+
commit() {
|
|
1564
|
+
const ret = wasm.sqlitetransaction_commit(this.__wbg_ptr);
|
|
1565
|
+
return ret;
|
|
1566
|
+
}
|
|
1567
|
+
/**
|
|
1568
|
+
* @param {string} sql
|
|
1569
|
+
* @param {any} params
|
|
1570
|
+
* @returns {Promise<any>}
|
|
1571
|
+
*/
|
|
1572
|
+
execute(sql, params) {
|
|
1573
|
+
const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1574
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1575
|
+
const ret = wasm.sqlitetransaction_execute(this.__wbg_ptr, ptr0, len0, params);
|
|
1576
|
+
return ret;
|
|
1577
|
+
}
|
|
1578
|
+
/**
|
|
1579
|
+
* @returns {Promise<void>}
|
|
1580
|
+
*/
|
|
1581
|
+
rollback() {
|
|
1582
|
+
const ret = wasm.sqlitetransaction_rollback(this.__wbg_ptr);
|
|
1583
|
+
return ret;
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1282
1587
|
const WebSocketHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1283
1588
|
? { register: () => {}, unregister: () => {} }
|
|
1284
1589
|
: new FinalizationRegistry(ptr => wasm.__wbg_websockethandle_free(ptr >>> 0, 1));
|
|
@@ -1304,6 +1609,17 @@ export class WebSocketHandle {
|
|
|
1304
1609
|
const ptr = this.__destroy_into_raw();
|
|
1305
1610
|
wasm.__wbg_websockethandle_free(ptr, 0);
|
|
1306
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
|
+
}
|
|
1307
1623
|
/**
|
|
1308
1624
|
* @param {Function} callback
|
|
1309
1625
|
*/
|
|
@@ -1322,17 +1638,6 @@ export class WebSocketHandle {
|
|
|
1322
1638
|
throw takeFromExternrefTable0(ret[0]);
|
|
1323
1639
|
}
|
|
1324
1640
|
}
|
|
1325
|
-
/**
|
|
1326
|
-
* @param {number | null} [code]
|
|
1327
|
-
* @param {string | null} [reason]
|
|
1328
|
-
* @returns {Promise<void>}
|
|
1329
|
-
*/
|
|
1330
|
-
close(code, reason) {
|
|
1331
|
-
var ptr0 = isLikeNone(reason) ? 0 : passStringToWasm0(reason, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1332
|
-
var len0 = WASM_VECTOR_LEN;
|
|
1333
|
-
const ret = wasm.websockethandle_close(this.__wbg_ptr, isLikeNone(code) ? 0xFFFFFF : code, ptr0, len0);
|
|
1334
|
-
return ret;
|
|
1335
|
-
}
|
|
1336
1641
|
}
|
|
1337
1642
|
|
|
1338
1643
|
async function __wbg_load(module, imports) {
|
|
@@ -1380,6 +1685,10 @@ function __wbg_get_imports() {
|
|
|
1380
1685
|
const ret = ActorContext.__wrap(arg0);
|
|
1381
1686
|
return ret;
|
|
1382
1687
|
};
|
|
1688
|
+
imports.wbg.__wbg_actorstatetransaction_new = function(arg0) {
|
|
1689
|
+
const ret = ActorStateTransaction.__wrap(arg0);
|
|
1690
|
+
return ret;
|
|
1691
|
+
};
|
|
1383
1692
|
imports.wbg.__wbg_buffer_09165b52af8c5237 = function(arg0) {
|
|
1384
1693
|
const ret = arg0.buffer;
|
|
1385
1694
|
return ret;
|
|
@@ -1441,7 +1750,7 @@ function __wbg_get_imports() {
|
|
|
1441
1750
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1442
1751
|
}
|
|
1443
1752
|
};
|
|
1444
|
-
imports.wbg.
|
|
1753
|
+
imports.wbg.__wbg_getRandomValues_6c498bf966d88108 = function() { return handleError(function (arg0, arg1) {
|
|
1445
1754
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1446
1755
|
}, arguments) };
|
|
1447
1756
|
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
@@ -1555,7 +1864,7 @@ function __wbg_get_imports() {
|
|
|
1555
1864
|
const a = state0.a;
|
|
1556
1865
|
state0.a = 0;
|
|
1557
1866
|
try {
|
|
1558
|
-
return
|
|
1867
|
+
return __wbg_adapter_293(a, state0.b, arg0, arg1);
|
|
1559
1868
|
} finally {
|
|
1560
1869
|
state0.a = a;
|
|
1561
1870
|
}
|
|
@@ -1570,6 +1879,10 @@ function __wbg_get_imports() {
|
|
|
1570
1879
|
const ret = new Object();
|
|
1571
1880
|
return ret;
|
|
1572
1881
|
};
|
|
1882
|
+
imports.wbg.__wbg_new_5e0be73521bc8c17 = function() {
|
|
1883
|
+
const ret = new Map();
|
|
1884
|
+
return ret;
|
|
1885
|
+
};
|
|
1573
1886
|
imports.wbg.__wbg_new_78feb108b6472713 = function() {
|
|
1574
1887
|
const ret = new Array();
|
|
1575
1888
|
return ret;
|
|
@@ -1679,6 +1992,10 @@ function __wbg_get_imports() {
|
|
|
1679
1992
|
imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
1680
1993
|
arg0.set(arg1, arg2 >>> 0);
|
|
1681
1994
|
};
|
|
1995
|
+
imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) {
|
|
1996
|
+
const ret = arg0.set(arg1, arg2);
|
|
1997
|
+
return ret;
|
|
1998
|
+
};
|
|
1682
1999
|
imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1683
2000
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1684
2001
|
return ret;
|
|
@@ -1698,6 +2015,10 @@ function __wbg_get_imports() {
|
|
|
1698
2015
|
imports.wbg.__wbg_setonopen_2da654e1f39745d5 = function(arg0, arg1) {
|
|
1699
2016
|
arg0.onopen = arg1;
|
|
1700
2017
|
};
|
|
2018
|
+
imports.wbg.__wbg_sqlitetransaction_new = function(arg0) {
|
|
2019
|
+
const ret = SqliteTransaction.__wrap(arg0);
|
|
2020
|
+
return ret;
|
|
2021
|
+
};
|
|
1701
2022
|
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
1702
2023
|
const ret = arg1.stack;
|
|
1703
2024
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1753,6 +2074,14 @@ function __wbg_get_imports() {
|
|
|
1753
2074
|
const ret = +arg0;
|
|
1754
2075
|
return ret;
|
|
1755
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
|
+
};
|
|
1756
2085
|
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
1757
2086
|
const v = arg0;
|
|
1758
2087
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
@@ -1767,24 +2096,24 @@ function __wbg_get_imports() {
|
|
|
1767
2096
|
const ret = false;
|
|
1768
2097
|
return ret;
|
|
1769
2098
|
};
|
|
1770
|
-
imports.wbg.
|
|
1771
|
-
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);
|
|
1772
2101
|
return ret;
|
|
1773
2102
|
};
|
|
1774
|
-
imports.wbg.
|
|
1775
|
-
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);
|
|
1776
2105
|
return ret;
|
|
1777
2106
|
};
|
|
1778
|
-
imports.wbg.
|
|
1779
|
-
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);
|
|
1780
2109
|
return ret;
|
|
1781
2110
|
};
|
|
1782
|
-
imports.wbg.
|
|
1783
|
-
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);
|
|
1784
2113
|
return ret;
|
|
1785
2114
|
};
|
|
1786
|
-
imports.wbg.
|
|
1787
|
-
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);
|
|
1788
2117
|
return ret;
|
|
1789
2118
|
};
|
|
1790
2119
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -3,17 +3,20 @@
|
|
|
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;
|
|
9
10
|
export const __wbg_kv_free: (a: number, b: number) => void;
|
|
10
11
|
export const __wbg_queuemessage_free: (a: number, b: number) => void;
|
|
11
12
|
export const __wbg_sqlitedb_free: (a: number, b: number) => void;
|
|
13
|
+
export const __wbg_sqlitetransaction_free: (a: number, b: number) => void;
|
|
12
14
|
export const __wbg_websockethandle_free: (a: number, b: number) => void;
|
|
13
15
|
export const actorcontext_abortSignal: (a: number) => [number, number, number];
|
|
14
16
|
export const actorcontext_actorId: (a: number) => [number, number];
|
|
15
17
|
export const actorcontext_beginKeepAwake: (a: number) => number;
|
|
16
18
|
export const actorcontext_beginOnStateChange: (a: number) => void;
|
|
19
|
+
export const actorcontext_beginStateTransaction: (a: number, b: number, c: number) => any;
|
|
17
20
|
export const actorcontext_beginWebsocketCallback: (a: number) => number;
|
|
18
21
|
export const actorcontext_broadcast: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
19
22
|
export const actorcontext_connectConn: (a: number, b: number, c: number, d: any) => any;
|
|
@@ -33,17 +36,24 @@ export const actorcontext_region: (a: number) => [number, number];
|
|
|
33
36
|
export const actorcontext_registerTask: (a: number, b: any) => void;
|
|
34
37
|
export const actorcontext_requestSave: (a: number, b: any) => void;
|
|
35
38
|
export const actorcontext_requestSaveAndWait: (a: number, b: any) => any;
|
|
36
|
-
export const actorcontext_restartRunHandler: (a: number) =>
|
|
39
|
+
export const actorcontext_restartRunHandler: (a: number) => [number, number];
|
|
37
40
|
export const actorcontext_runtimeState: (a: number) => any;
|
|
38
41
|
export const actorcontext_saveState: (a: number, b: any) => any;
|
|
42
|
+
export const actorcontext_saveStateAndWorkflowBatch: (a: number, b: any) => any;
|
|
39
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;
|
|
40
45
|
export const actorcontext_sleep: (a: number) => [number, number];
|
|
41
46
|
export const actorcontext_sql: (a: number) => number;
|
|
42
47
|
export const actorcontext_state: (a: number) => [number, number];
|
|
43
48
|
export const actorcontext_takePendingHibernationChanges: (a: number) => any;
|
|
44
49
|
export const actorcontext_verifyInspectorAuth: (a: number, b: number, c: number) => any;
|
|
50
|
+
export const actorcontext_waitForTrackedShutdownWork: (a: number) => any;
|
|
51
|
+
export const actorcontext_waitForTrackedShutdownWorkUnbounded: (a: number) => any;
|
|
45
52
|
export const actorcontext_waitUntil: (a: number, b: any) => void;
|
|
46
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;
|
|
47
57
|
export const awaitPromise: (a: any) => any;
|
|
48
58
|
export const bridgeRivetErrorPrefix: () => [number, number];
|
|
49
59
|
export const cancellationtoken_aborted: (a: number) => number;
|
|
@@ -71,10 +81,12 @@ export const kv_get: (a: number, b: number, c: number) => any;
|
|
|
71
81
|
export const kv_listPrefix: (a: number, b: number, c: number, d: any) => any;
|
|
72
82
|
export const kv_listRange: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
|
|
73
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;
|
|
74
85
|
export const queue_enqueueAndWait: (a: number, b: number, c: number, d: number, e: number, f: any, g: number) => any;
|
|
75
86
|
export const queue_inspectMessages: (a: number) => any;
|
|
76
87
|
export const queue_maxSize: (a: number) => number;
|
|
77
88
|
export const queue_nextBatch: (a: number, b: any, c: number) => any;
|
|
89
|
+
export const queue_reset: (a: number) => any;
|
|
78
90
|
export const queue_send: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
79
91
|
export const queue_tryNextBatch: (a: number, b: any) => [number, number, number];
|
|
80
92
|
export const queue_waitForNames: (a: number, b: any, c: any, d: number) => any;
|
|
@@ -86,13 +98,28 @@ export const queuemessage_id: (a: number) => bigint;
|
|
|
86
98
|
export const queuemessage_isCompletable: (a: number) => number;
|
|
87
99
|
export const queuemessage_name: (a: number) => [number, number];
|
|
88
100
|
export const roundTripBytes: (a: number, b: number) => [number, number];
|
|
89
|
-
export const schedule_after: (a: number, b: number, c: number, d: number, e: number, f: number) =>
|
|
90
|
-
export const schedule_at: (a: number, b: number, c: number, d: number, e: number, f: number) =>
|
|
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;
|
|
91
113
|
export const sqlitedb_close: (a: number) => any;
|
|
92
114
|
export const sqlitedb_exec: (a: number, b: number, c: number) => any;
|
|
93
115
|
export const sqlitedb_execute: (a: number, b: number, c: number, d: any) => any;
|
|
116
|
+
export const sqlitedb_executeBatch: (a: number, b: any) => any;
|
|
94
117
|
export const sqlitedb_query: (a: number, b: number, c: number, d: any) => any;
|
|
95
118
|
export const sqlitedb_run: (a: number, b: number, c: number, d: any) => any;
|
|
119
|
+
export const sqlitetransaction_commit: (a: number) => any;
|
|
120
|
+
export const sqlitetransaction_exec: (a: number, b: number, c: number) => any;
|
|
121
|
+
export const sqlitetransaction_execute: (a: number, b: number, c: number, d: any) => any;
|
|
122
|
+
export const sqlitetransaction_rollback: (a: number) => any;
|
|
96
123
|
export const uint8ArrayFromBytes: (a: number, b: number) => any;
|
|
97
124
|
export const websockethandle_close: (a: number, b: number, c: number, d: number) => any;
|
|
98
125
|
export const websockethandle_send: (a: number, b: number, c: number, d: number) => [number, number];
|
|
@@ -110,7 +137,7 @@ export const __wbindgen_export_4: WebAssembly.Table;
|
|
|
110
137
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
111
138
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
112
139
|
export const __externref_table_dealloc: (a: number) => void;
|
|
113
|
-
export const
|
|
114
|
-
export const
|
|
115
|
-
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;
|
|
116
143
|
export const __wbindgen_start: () => void;
|