@rivetkit/rivetkit-wasm 0.0.0-skip-ready-wait-flatten-client-options.1cae221 → 0.0.0-sql-metrics.eac581d
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 +212 -2
- package/package.json +8 -2
- package/pkg/package.json +19 -0
- package/pkg/rivetkit_wasm.d.ts +62 -19
- package/pkg/rivetkit_wasm.js +373 -134
- package/pkg/rivetkit_wasm_bg.wasm +0 -0
- package/pkg/rivetkit_wasm_bg.wasm.d.ts +25 -5
package/index.d.ts
CHANGED
|
@@ -1,2 +1,212 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export function start(): void;
|
|
2
|
+
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
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
|
+
after(duration_ms: number, action_name: string, args: Uint8Array): Promise<string>;
|
|
144
|
+
at(timestamp_ms: number, action_name: string, args: Uint8Array): Promise<string>;
|
|
145
|
+
cancel(id: string): Promise<boolean>;
|
|
146
|
+
get(id: string): Promise<any>;
|
|
147
|
+
list(): Promise<any>;
|
|
148
|
+
cronSet(
|
|
149
|
+
name: string,
|
|
150
|
+
expression: string,
|
|
151
|
+
timezone: string | null | undefined,
|
|
152
|
+
action_name: string,
|
|
153
|
+
args: Uint8Array,
|
|
154
|
+
max_history?: number | null,
|
|
155
|
+
): Promise<void>;
|
|
156
|
+
cronEvery(
|
|
157
|
+
name: string,
|
|
158
|
+
interval_ms: number,
|
|
159
|
+
action_name: string,
|
|
160
|
+
args: Uint8Array,
|
|
161
|
+
max_history?: number | null,
|
|
162
|
+
): Promise<void>;
|
|
163
|
+
cronGet(name: string): Promise<any>;
|
|
164
|
+
cronList(): Promise<any>;
|
|
165
|
+
cronDelete(name: string): Promise<boolean>;
|
|
166
|
+
cronHistory(name: string, limit?: number | null): Promise<any>;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export class SqliteDb {
|
|
170
|
+
private constructor();
|
|
171
|
+
free(): void;
|
|
172
|
+
run(sql: string, params: any): Promise<any>;
|
|
173
|
+
exec(sql: string): Promise<any>;
|
|
174
|
+
close(): Promise<void>;
|
|
175
|
+
query(sql: string, params: any): Promise<any>;
|
|
176
|
+
execute(sql: string, params: any): Promise<any>;
|
|
177
|
+
executeBatch(statements: Array<any>): Promise<Array<any>>;
|
|
178
|
+
beginTransaction(timeout_ms?: number | null, name?: string | null): Promise<SqliteTransaction>;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export class SqliteTransaction {
|
|
182
|
+
private constructor();
|
|
183
|
+
free(): void;
|
|
184
|
+
exec(sql: string): Promise<any>;
|
|
185
|
+
execute(sql: string, params: any): Promise<any>;
|
|
186
|
+
commit(): Promise<void>;
|
|
187
|
+
rollback(): Promise<void>;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export class WebSocketHandle {
|
|
191
|
+
private constructor();
|
|
192
|
+
free(): void;
|
|
193
|
+
setEventCallback(callback: Function): void;
|
|
194
|
+
send(data: Uint8Array, binary: boolean): void;
|
|
195
|
+
close(code?: number | null, reason?: string | null): Promise<void>;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export type InitInput =
|
|
199
|
+
| RequestInfo
|
|
200
|
+
| URL
|
|
201
|
+
| Response
|
|
202
|
+
| BufferSource
|
|
203
|
+
| WebAssembly.Module;
|
|
204
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
205
|
+
export interface InitOutput {
|
|
206
|
+
readonly memory: WebAssembly.Memory;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
declare function init(
|
|
210
|
+
module_or_path?: InitInput | Promise<InitInput>,
|
|
211
|
+
): Promise<InitOutput>;
|
|
212
|
+
export default init;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivetkit/rivetkit-wasm",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-sql-metrics.eac581d",
|
|
4
4
|
"description": "WebAssembly bindings for RivetKit core on edge JavaScript runtimes",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -28,6 +28,7 @@
|
|
|
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",
|
|
@@ -37,6 +38,11 @@
|
|
|
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.7",
|
|
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,22 @@
|
|
|
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
|
+
requestSaveAndWait(opts: any): Promise<void>;
|
|
13
|
+
verifyInspectorAuth(bearer_token?: string | null): Promise<void>;
|
|
14
|
+
saveStateAndWorkflowBatch(writes: any): Promise<void>;
|
|
15
|
+
waitForTrackedShutdownWork(): Promise<boolean>;
|
|
16
|
+
waitForTrackedShutdownWorkUnbounded(): Promise<void>;
|
|
17
|
+
keepAwake(promise: Promise<any>): void;
|
|
12
18
|
waitUntil(promise: Promise<any>): void;
|
|
13
19
|
abortSignal(): any;
|
|
14
|
-
connectConn(params: Uint8Array, request: any): Promise<ConnHandle>;
|
|
15
20
|
requestSave(opts: any): void;
|
|
16
21
|
registerTask(promise: Promise<any>): void;
|
|
17
22
|
runtimeState(): any;
|
|
@@ -21,8 +26,6 @@ export class ActorContext {
|
|
|
21
26
|
endOnStateChange(): void;
|
|
22
27
|
restartRunHandler(): void;
|
|
23
28
|
beginOnStateChange(): void;
|
|
24
|
-
requestSaveAndWait(opts: any): Promise<void>;
|
|
25
|
-
verifyInspectorAuth(bearer_token?: string | null): Promise<void>;
|
|
26
29
|
endWebsocketCallback(region_id: number): void;
|
|
27
30
|
beginWebsocketCallback(): number;
|
|
28
31
|
dirtyHibernatableConns(): Array<any>;
|
|
@@ -68,10 +71,10 @@ export class ConnHandle {
|
|
|
68
71
|
export class CoreRegistry {
|
|
69
72
|
free(): void;
|
|
70
73
|
handleServerlessRequest(req: any, on_stream_event: Function, cancel_token: CancellationToken, config: any): Promise<any>;
|
|
71
|
-
constructor();
|
|
72
74
|
serve(config: any): Promise<void>;
|
|
73
|
-
register(name: string, factory: ActorFactory): void;
|
|
74
75
|
shutdown(): Promise<void>;
|
|
76
|
+
constructor();
|
|
77
|
+
register(name: string, factory: ActorFactory): void;
|
|
75
78
|
}
|
|
76
79
|
export class Kv {
|
|
77
80
|
private constructor();
|
|
@@ -90,45 +93,65 @@ export class Queue {
|
|
|
90
93
|
private constructor();
|
|
91
94
|
free(): void;
|
|
92
95
|
nextBatch(options: any, signal?: CancellationToken | null): Promise<Array<any>>;
|
|
93
|
-
tryNextBatch(options: any): Array<any>;
|
|
94
96
|
waitForNames(names: any, options: any, signal?: CancellationToken | null): Promise<QueueMessage>;
|
|
95
97
|
enqueueAndWait(name: string, body: Uint8Array, options: any, signal?: CancellationToken | null): Promise<Uint8Array | undefined>;
|
|
96
98
|
inspectMessages(): Promise<Array<any>>;
|
|
97
99
|
waitForNamesAvailable(names: any, options: any): Promise<void>;
|
|
98
100
|
send(name: string, body: Uint8Array): Promise<QueueMessage>;
|
|
101
|
+
reset(): Promise<void>;
|
|
102
|
+
tryNextBatch(options: any): Array<any>;
|
|
99
103
|
maxSize(): number;
|
|
100
104
|
}
|
|
101
105
|
export class QueueMessage {
|
|
102
106
|
private constructor();
|
|
103
107
|
free(): void;
|
|
108
|
+
complete(response: any): Promise<void>;
|
|
104
109
|
createdAt(): number;
|
|
105
110
|
isCompletable(): boolean;
|
|
106
111
|
id(): bigint;
|
|
107
112
|
body(): Uint8Array;
|
|
108
113
|
name(): string;
|
|
109
|
-
complete(response: any): Promise<void>;
|
|
110
114
|
}
|
|
111
115
|
export class Schedule {
|
|
112
116
|
private constructor();
|
|
113
117
|
free(): void;
|
|
114
|
-
|
|
115
|
-
|
|
118
|
+
cronEvery(name: string, interval_ms: number, action_name: string, args: Uint8Array, max_history?: number | null): Promise<void>;
|
|
119
|
+
cronDelete(name: string): Promise<boolean>;
|
|
120
|
+
cronHistory(name: string, limit?: number | null): Promise<any>;
|
|
121
|
+
at(timestamp_ms: number, action_name: string, args: Uint8Array): Promise<string>;
|
|
122
|
+
get(id: string): Promise<any>;
|
|
123
|
+
list(): Promise<any>;
|
|
124
|
+
after(duration_ms: number, action_name: string, args: Uint8Array): Promise<string>;
|
|
125
|
+
cancel(id: string): Promise<boolean>;
|
|
126
|
+
cronGet(name: string): Promise<any>;
|
|
127
|
+
cronSet(name: string, expression: string, timezone: string | null | undefined, action_name: string, args: Uint8Array, max_history?: number | null): Promise<void>;
|
|
128
|
+
cronList(): Promise<any>;
|
|
116
129
|
}
|
|
117
130
|
export class SqliteDb {
|
|
118
131
|
private constructor();
|
|
119
132
|
free(): void;
|
|
133
|
+
executeBatch(statements: any): Promise<any>;
|
|
134
|
+
beginTransaction(timeout_ms?: number | null, name?: string | null): Promise<SqliteTransaction>;
|
|
120
135
|
run(sql: string, params: any): Promise<any>;
|
|
121
136
|
exec(sql: string): Promise<any>;
|
|
122
137
|
close(): Promise<void>;
|
|
123
138
|
query(sql: string, params: any): Promise<any>;
|
|
124
139
|
execute(sql: string, params: any): Promise<any>;
|
|
125
140
|
}
|
|
141
|
+
export class SqliteTransaction {
|
|
142
|
+
private constructor();
|
|
143
|
+
free(): void;
|
|
144
|
+
exec(sql: string): Promise<any>;
|
|
145
|
+
commit(): Promise<void>;
|
|
146
|
+
execute(sql: string, params: any): Promise<any>;
|
|
147
|
+
rollback(): Promise<void>;
|
|
148
|
+
}
|
|
126
149
|
export class WebSocketHandle {
|
|
127
150
|
private constructor();
|
|
128
151
|
free(): void;
|
|
152
|
+
close(code?: number | null, reason?: string | null): Promise<void>;
|
|
129
153
|
setEventCallback(callback: Function): void;
|
|
130
154
|
send(data: Uint8Array, binary: boolean): void;
|
|
131
|
-
close(code?: number | null, reason?: string | null): Promise<void>;
|
|
132
155
|
}
|
|
133
156
|
|
|
134
157
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
@@ -143,6 +166,7 @@ export interface InitOutput {
|
|
|
143
166
|
readonly __wbg_kv_free: (a: number, b: number) => void;
|
|
144
167
|
readonly __wbg_queuemessage_free: (a: number, b: number) => void;
|
|
145
168
|
readonly __wbg_sqlitedb_free: (a: number, b: number) => void;
|
|
169
|
+
readonly __wbg_sqlitetransaction_free: (a: number, b: number) => void;
|
|
146
170
|
readonly __wbg_websockethandle_free: (a: number, b: number) => void;
|
|
147
171
|
readonly actorcontext_abortSignal: (a: number) => [number, number, number];
|
|
148
172
|
readonly actorcontext_actorId: (a: number) => [number, number];
|
|
@@ -170,12 +194,15 @@ export interface InitOutput {
|
|
|
170
194
|
readonly actorcontext_restartRunHandler: (a: number) => void;
|
|
171
195
|
readonly actorcontext_runtimeState: (a: number) => any;
|
|
172
196
|
readonly actorcontext_saveState: (a: number, b: any) => any;
|
|
197
|
+
readonly actorcontext_saveStateAndWorkflowBatch: (a: number, b: any) => any;
|
|
173
198
|
readonly actorcontext_setAlarm: (a: number, b: number, c: number) => [number, number];
|
|
174
199
|
readonly actorcontext_sleep: (a: number) => [number, number];
|
|
175
200
|
readonly actorcontext_sql: (a: number) => number;
|
|
176
201
|
readonly actorcontext_state: (a: number) => [number, number];
|
|
177
202
|
readonly actorcontext_takePendingHibernationChanges: (a: number) => any;
|
|
178
203
|
readonly actorcontext_verifyInspectorAuth: (a: number, b: number, c: number) => any;
|
|
204
|
+
readonly actorcontext_waitForTrackedShutdownWork: (a: number) => any;
|
|
205
|
+
readonly actorcontext_waitForTrackedShutdownWorkUnbounded: (a: number) => any;
|
|
179
206
|
readonly actorcontext_waitUntil: (a: number, b: any) => void;
|
|
180
207
|
readonly actorfactory_new: (a: any, b: any) => [number, number, number];
|
|
181
208
|
readonly awaitPromise: (a: any) => any;
|
|
@@ -209,6 +236,7 @@ export interface InitOutput {
|
|
|
209
236
|
readonly queue_inspectMessages: (a: number) => any;
|
|
210
237
|
readonly queue_maxSize: (a: number) => number;
|
|
211
238
|
readonly queue_nextBatch: (a: number, b: any, c: number) => any;
|
|
239
|
+
readonly queue_reset: (a: number) => any;
|
|
212
240
|
readonly queue_send: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
213
241
|
readonly queue_tryNextBatch: (a: number, b: any) => [number, number, number];
|
|
214
242
|
readonly queue_waitForNames: (a: number, b: any, c: any, d: number) => any;
|
|
@@ -220,13 +248,28 @@ export interface InitOutput {
|
|
|
220
248
|
readonly queuemessage_isCompletable: (a: number) => number;
|
|
221
249
|
readonly queuemessage_name: (a: number) => [number, number];
|
|
222
250
|
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) =>
|
|
251
|
+
readonly schedule_after: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
252
|
+
readonly schedule_at: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
253
|
+
readonly schedule_cancel: (a: number, b: number, c: number) => any;
|
|
254
|
+
readonly schedule_cronDelete: (a: number, b: number, c: number) => any;
|
|
255
|
+
readonly schedule_cronEvery: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => any;
|
|
256
|
+
readonly schedule_cronGet: (a: number, b: number, c: number) => any;
|
|
257
|
+
readonly schedule_cronHistory: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
258
|
+
readonly schedule_cronList: (a: number) => any;
|
|
259
|
+
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;
|
|
260
|
+
readonly schedule_get: (a: number, b: number, c: number) => any;
|
|
261
|
+
readonly schedule_list: (a: number) => any;
|
|
262
|
+
readonly sqlitedb_beginTransaction: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
225
263
|
readonly sqlitedb_close: (a: number) => any;
|
|
226
264
|
readonly sqlitedb_exec: (a: number, b: number, c: number) => any;
|
|
227
265
|
readonly sqlitedb_execute: (a: number, b: number, c: number, d: any) => any;
|
|
266
|
+
readonly sqlitedb_executeBatch: (a: number, b: any) => any;
|
|
228
267
|
readonly sqlitedb_query: (a: number, b: number, c: number, d: any) => any;
|
|
229
268
|
readonly sqlitedb_run: (a: number, b: number, c: number, d: any) => any;
|
|
269
|
+
readonly sqlitetransaction_commit: (a: number) => any;
|
|
270
|
+
readonly sqlitetransaction_exec: (a: number, b: number, c: number) => any;
|
|
271
|
+
readonly sqlitetransaction_execute: (a: number, b: number, c: number, d: any) => any;
|
|
272
|
+
readonly sqlitetransaction_rollback: (a: number) => any;
|
|
230
273
|
readonly uint8ArrayFromBytes: (a: number, b: number) => any;
|
|
231
274
|
readonly websockethandle_close: (a: number, b: number, c: number, d: number) => any;
|
|
232
275
|
readonly websockethandle_send: (a: number, b: number, c: number, d: number) => [number, number];
|
|
@@ -244,9 +287,9 @@ export interface InitOutput {
|
|
|
244
287
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
245
288
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
246
289
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
247
|
-
readonly
|
|
248
|
-
readonly
|
|
249
|
-
readonly
|
|
290
|
+
readonly closure1944_externref_shim: (a: number, b: number, c: any) => void;
|
|
291
|
+
readonly closure2305_externref_shim: (a: number, b: number, c: any) => void;
|
|
292
|
+
readonly closure2538_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
250
293
|
readonly __wbindgen_start: () => void;
|
|
251
294
|
}
|
|
252
295
|
|
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.closure1944_externref_shim(arg0, arg1, arg2);
|
|
279
278
|
}
|
|
280
279
|
|
|
281
|
-
function
|
|
282
|
-
wasm.
|
|
280
|
+
function __wbg_adapter_59(arg0, arg1, arg2) {
|
|
281
|
+
wasm.closure2305_externref_shim(arg0, arg1, arg2);
|
|
283
282
|
}
|
|
284
283
|
|
|
285
|
-
function
|
|
286
|
-
wasm.
|
|
284
|
+
function __wbg_adapter_285(arg0, arg1, arg2, arg3) {
|
|
285
|
+
wasm.closure2538_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,63 @@ 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 {any} opts
|
|
336
|
+
* @returns {Promise<void>}
|
|
337
|
+
*/
|
|
338
|
+
requestSaveAndWait(opts) {
|
|
339
|
+
const ret = wasm.actorcontext_requestSaveAndWait(this.__wbg_ptr, opts);
|
|
340
|
+
return ret;
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* @param {string | null} [bearer_token]
|
|
344
|
+
* @returns {Promise<void>}
|
|
345
|
+
*/
|
|
346
|
+
verifyInspectorAuth(bearer_token) {
|
|
347
|
+
var ptr0 = isLikeNone(bearer_token) ? 0 : passStringToWasm0(bearer_token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
348
|
+
var len0 = WASM_VECTOR_LEN;
|
|
349
|
+
const ret = wasm.actorcontext_verifyInspectorAuth(this.__wbg_ptr, ptr0, len0);
|
|
350
|
+
return ret;
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* @param {any} writes
|
|
354
|
+
* @returns {Promise<void>}
|
|
355
|
+
*/
|
|
356
|
+
saveStateAndWorkflowBatch(writes) {
|
|
357
|
+
const ret = wasm.actorcontext_saveStateAndWorkflowBatch(this.__wbg_ptr, writes);
|
|
358
|
+
return ret;
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* @returns {Promise<boolean>}
|
|
362
|
+
*/
|
|
363
|
+
waitForTrackedShutdownWork() {
|
|
364
|
+
const ret = wasm.actorcontext_waitForTrackedShutdownWork(this.__wbg_ptr);
|
|
365
|
+
return ret;
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* @returns {Promise<void>}
|
|
369
|
+
*/
|
|
370
|
+
waitForTrackedShutdownWorkUnbounded() {
|
|
371
|
+
const ret = wasm.actorcontext_waitForTrackedShutdownWorkUnbounded(this.__wbg_ptr);
|
|
372
|
+
return ret;
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* @param {Promise<any>} promise
|
|
376
|
+
*/
|
|
377
|
+
keepAwake(promise) {
|
|
378
|
+
wasm.actorcontext_keepAwake(this.__wbg_ptr, promise);
|
|
379
|
+
}
|
|
330
380
|
/**
|
|
331
381
|
* @param {Promise<any>} promise
|
|
332
382
|
*/
|
|
@@ -343,17 +393,6 @@ export class ActorContext {
|
|
|
343
393
|
}
|
|
344
394
|
return takeFromExternrefTable0(ret[0]);
|
|
345
395
|
}
|
|
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
396
|
/**
|
|
358
397
|
* @param {any} opts
|
|
359
398
|
*/
|
|
@@ -405,24 +444,6 @@ export class ActorContext {
|
|
|
405
444
|
beginOnStateChange() {
|
|
406
445
|
wasm.actorcontext_beginOnStateChange(this.__wbg_ptr);
|
|
407
446
|
}
|
|
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
447
|
/**
|
|
427
448
|
* @param {number} region_id
|
|
428
449
|
*/
|
|
@@ -790,12 +811,6 @@ export class CoreRegistry {
|
|
|
790
811
|
const ret = wasm.coreregistry_handleServerlessRequest(this.__wbg_ptr, req, on_stream_event, cancel_token.__wbg_ptr, config);
|
|
791
812
|
return ret;
|
|
792
813
|
}
|
|
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
814
|
/**
|
|
800
815
|
* @param {any} config
|
|
801
816
|
* @returns {Promise<void>}
|
|
@@ -804,6 +819,19 @@ export class CoreRegistry {
|
|
|
804
819
|
const ret = wasm.coreregistry_serve(this.__wbg_ptr, config);
|
|
805
820
|
return ret;
|
|
806
821
|
}
|
|
822
|
+
/**
|
|
823
|
+
* @returns {Promise<void>}
|
|
824
|
+
*/
|
|
825
|
+
shutdown() {
|
|
826
|
+
const ret = wasm.coreregistry_shutdown(this.__wbg_ptr);
|
|
827
|
+
return ret;
|
|
828
|
+
}
|
|
829
|
+
constructor() {
|
|
830
|
+
const ret = wasm.coreregistry_new();
|
|
831
|
+
this.__wbg_ptr = ret >>> 0;
|
|
832
|
+
CoreRegistryFinalization.register(this, this.__wbg_ptr, this);
|
|
833
|
+
return this;
|
|
834
|
+
}
|
|
807
835
|
/**
|
|
808
836
|
* @param {string} name
|
|
809
837
|
* @param {ActorFactory} factory
|
|
@@ -817,13 +845,6 @@ export class CoreRegistry {
|
|
|
817
845
|
throw takeFromExternrefTable0(ret[0]);
|
|
818
846
|
}
|
|
819
847
|
}
|
|
820
|
-
/**
|
|
821
|
-
* @returns {Promise<void>}
|
|
822
|
-
*/
|
|
823
|
-
shutdown() {
|
|
824
|
-
const ret = wasm.coreregistry_shutdown(this.__wbg_ptr);
|
|
825
|
-
return ret;
|
|
826
|
-
}
|
|
827
848
|
}
|
|
828
849
|
|
|
829
850
|
const KvFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -987,17 +1008,6 @@ export class Queue {
|
|
|
987
1008
|
const ret = wasm.queue_nextBatch(this.__wbg_ptr, options, ptr0);
|
|
988
1009
|
return ret;
|
|
989
1010
|
}
|
|
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
1011
|
/**
|
|
1002
1012
|
* @param {any} names
|
|
1003
1013
|
* @param {any} options
|
|
@@ -1062,6 +1072,24 @@ export class Queue {
|
|
|
1062
1072
|
const ret = wasm.queue_send(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1063
1073
|
return ret;
|
|
1064
1074
|
}
|
|
1075
|
+
/**
|
|
1076
|
+
* @returns {Promise<void>}
|
|
1077
|
+
*/
|
|
1078
|
+
reset() {
|
|
1079
|
+
const ret = wasm.queue_reset(this.__wbg_ptr);
|
|
1080
|
+
return ret;
|
|
1081
|
+
}
|
|
1082
|
+
/**
|
|
1083
|
+
* @param {any} options
|
|
1084
|
+
* @returns {Array<any>}
|
|
1085
|
+
*/
|
|
1086
|
+
tryNextBatch(options) {
|
|
1087
|
+
const ret = wasm.queue_tryNextBatch(this.__wbg_ptr, options);
|
|
1088
|
+
if (ret[2]) {
|
|
1089
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1090
|
+
}
|
|
1091
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1092
|
+
}
|
|
1065
1093
|
/**
|
|
1066
1094
|
* @returns {number}
|
|
1067
1095
|
*/
|
|
@@ -1096,6 +1124,14 @@ export class QueueMessage {
|
|
|
1096
1124
|
const ptr = this.__destroy_into_raw();
|
|
1097
1125
|
wasm.__wbg_queuemessage_free(ptr, 0);
|
|
1098
1126
|
}
|
|
1127
|
+
/**
|
|
1128
|
+
* @param {any} response
|
|
1129
|
+
* @returns {Promise<void>}
|
|
1130
|
+
*/
|
|
1131
|
+
complete(response) {
|
|
1132
|
+
const ret = wasm.queuemessage_complete(this.__wbg_ptr, response);
|
|
1133
|
+
return ret;
|
|
1134
|
+
}
|
|
1099
1135
|
/**
|
|
1100
1136
|
* @returns {number}
|
|
1101
1137
|
*/
|
|
@@ -1141,14 +1177,6 @@ export class QueueMessage {
|
|
|
1141
1177
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1142
1178
|
}
|
|
1143
1179
|
}
|
|
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
1180
|
}
|
|
1153
1181
|
|
|
1154
1182
|
const ScheduleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1176,29 +1204,139 @@ export class Schedule {
|
|
|
1176
1204
|
const ptr = this.__destroy_into_raw();
|
|
1177
1205
|
wasm.__wbg_schedule_free(ptr, 0);
|
|
1178
1206
|
}
|
|
1207
|
+
/**
|
|
1208
|
+
* @param {string} name
|
|
1209
|
+
* @param {number} interval_ms
|
|
1210
|
+
* @param {string} action_name
|
|
1211
|
+
* @param {Uint8Array} args
|
|
1212
|
+
* @param {number | null} [max_history]
|
|
1213
|
+
* @returns {Promise<void>}
|
|
1214
|
+
*/
|
|
1215
|
+
cronEvery(name, interval_ms, action_name, args, max_history) {
|
|
1216
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1217
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1218
|
+
const ptr1 = passStringToWasm0(action_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1219
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1220
|
+
const ptr2 = passArray8ToWasm0(args, wasm.__wbindgen_malloc);
|
|
1221
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1222
|
+
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);
|
|
1223
|
+
return ret;
|
|
1224
|
+
}
|
|
1225
|
+
/**
|
|
1226
|
+
* @param {string} name
|
|
1227
|
+
* @returns {Promise<boolean>}
|
|
1228
|
+
*/
|
|
1229
|
+
cronDelete(name) {
|
|
1230
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1231
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1232
|
+
const ret = wasm.schedule_cronDelete(this.__wbg_ptr, ptr0, len0);
|
|
1233
|
+
return ret;
|
|
1234
|
+
}
|
|
1235
|
+
/**
|
|
1236
|
+
* @param {string} name
|
|
1237
|
+
* @param {number | null} [limit]
|
|
1238
|
+
* @returns {Promise<any>}
|
|
1239
|
+
*/
|
|
1240
|
+
cronHistory(name, limit) {
|
|
1241
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1242
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1243
|
+
const ret = wasm.schedule_cronHistory(this.__wbg_ptr, ptr0, len0, !isLikeNone(limit), isLikeNone(limit) ? 0 : limit);
|
|
1244
|
+
return ret;
|
|
1245
|
+
}
|
|
1179
1246
|
/**
|
|
1180
1247
|
* @param {number} timestamp_ms
|
|
1181
1248
|
* @param {string} action_name
|
|
1182
1249
|
* @param {Uint8Array} args
|
|
1250
|
+
* @returns {Promise<string>}
|
|
1183
1251
|
*/
|
|
1184
1252
|
at(timestamp_ms, action_name, args) {
|
|
1185
1253
|
const ptr0 = passStringToWasm0(action_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1186
1254
|
const len0 = WASM_VECTOR_LEN;
|
|
1187
1255
|
const ptr1 = passArray8ToWasm0(args, wasm.__wbindgen_malloc);
|
|
1188
1256
|
const len1 = WASM_VECTOR_LEN;
|
|
1189
|
-
wasm.schedule_at(this.__wbg_ptr, timestamp_ms, ptr0, len0, ptr1, len1);
|
|
1257
|
+
const ret = wasm.schedule_at(this.__wbg_ptr, timestamp_ms, ptr0, len0, ptr1, len1);
|
|
1258
|
+
return ret;
|
|
1259
|
+
}
|
|
1260
|
+
/**
|
|
1261
|
+
* @param {string} id
|
|
1262
|
+
* @returns {Promise<any>}
|
|
1263
|
+
*/
|
|
1264
|
+
get(id) {
|
|
1265
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1266
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1267
|
+
const ret = wasm.schedule_get(this.__wbg_ptr, ptr0, len0);
|
|
1268
|
+
return ret;
|
|
1269
|
+
}
|
|
1270
|
+
/**
|
|
1271
|
+
* @returns {Promise<any>}
|
|
1272
|
+
*/
|
|
1273
|
+
list() {
|
|
1274
|
+
const ret = wasm.schedule_list(this.__wbg_ptr);
|
|
1275
|
+
return ret;
|
|
1190
1276
|
}
|
|
1191
1277
|
/**
|
|
1192
1278
|
* @param {number} duration_ms
|
|
1193
1279
|
* @param {string} action_name
|
|
1194
1280
|
* @param {Uint8Array} args
|
|
1281
|
+
* @returns {Promise<string>}
|
|
1195
1282
|
*/
|
|
1196
1283
|
after(duration_ms, action_name, args) {
|
|
1197
1284
|
const ptr0 = passStringToWasm0(action_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1198
1285
|
const len0 = WASM_VECTOR_LEN;
|
|
1199
1286
|
const ptr1 = passArray8ToWasm0(args, wasm.__wbindgen_malloc);
|
|
1200
1287
|
const len1 = WASM_VECTOR_LEN;
|
|
1201
|
-
wasm.schedule_after(this.__wbg_ptr, duration_ms, ptr0, len0, ptr1, len1);
|
|
1288
|
+
const ret = wasm.schedule_after(this.__wbg_ptr, duration_ms, ptr0, len0, ptr1, len1);
|
|
1289
|
+
return ret;
|
|
1290
|
+
}
|
|
1291
|
+
/**
|
|
1292
|
+
* @param {string} id
|
|
1293
|
+
* @returns {Promise<boolean>}
|
|
1294
|
+
*/
|
|
1295
|
+
cancel(id) {
|
|
1296
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1297
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1298
|
+
const ret = wasm.schedule_cancel(this.__wbg_ptr, ptr0, len0);
|
|
1299
|
+
return ret;
|
|
1300
|
+
}
|
|
1301
|
+
/**
|
|
1302
|
+
* @param {string} name
|
|
1303
|
+
* @returns {Promise<any>}
|
|
1304
|
+
*/
|
|
1305
|
+
cronGet(name) {
|
|
1306
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1307
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1308
|
+
const ret = wasm.schedule_cronGet(this.__wbg_ptr, ptr0, len0);
|
|
1309
|
+
return ret;
|
|
1310
|
+
}
|
|
1311
|
+
/**
|
|
1312
|
+
* @param {string} name
|
|
1313
|
+
* @param {string} expression
|
|
1314
|
+
* @param {string | null | undefined} timezone
|
|
1315
|
+
* @param {string} action_name
|
|
1316
|
+
* @param {Uint8Array} args
|
|
1317
|
+
* @param {number | null} [max_history]
|
|
1318
|
+
* @returns {Promise<void>}
|
|
1319
|
+
*/
|
|
1320
|
+
cronSet(name, expression, timezone, action_name, args, max_history) {
|
|
1321
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1322
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1323
|
+
const ptr1 = passStringToWasm0(expression, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1324
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1325
|
+
var ptr2 = isLikeNone(timezone) ? 0 : passStringToWasm0(timezone, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1326
|
+
var len2 = WASM_VECTOR_LEN;
|
|
1327
|
+
const ptr3 = passStringToWasm0(action_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1328
|
+
const len3 = WASM_VECTOR_LEN;
|
|
1329
|
+
const ptr4 = passArray8ToWasm0(args, wasm.__wbindgen_malloc);
|
|
1330
|
+
const len4 = WASM_VECTOR_LEN;
|
|
1331
|
+
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);
|
|
1332
|
+
return ret;
|
|
1333
|
+
}
|
|
1334
|
+
/**
|
|
1335
|
+
* @returns {Promise<any>}
|
|
1336
|
+
*/
|
|
1337
|
+
cronList() {
|
|
1338
|
+
const ret = wasm.schedule_cronList(this.__wbg_ptr);
|
|
1339
|
+
return ret;
|
|
1202
1340
|
}
|
|
1203
1341
|
}
|
|
1204
1342
|
|
|
@@ -1227,6 +1365,25 @@ export class SqliteDb {
|
|
|
1227
1365
|
const ptr = this.__destroy_into_raw();
|
|
1228
1366
|
wasm.__wbg_sqlitedb_free(ptr, 0);
|
|
1229
1367
|
}
|
|
1368
|
+
/**
|
|
1369
|
+
* @param {any} statements
|
|
1370
|
+
* @returns {Promise<any>}
|
|
1371
|
+
*/
|
|
1372
|
+
executeBatch(statements) {
|
|
1373
|
+
const ret = wasm.sqlitedb_executeBatch(this.__wbg_ptr, statements);
|
|
1374
|
+
return ret;
|
|
1375
|
+
}
|
|
1376
|
+
/**
|
|
1377
|
+
* @param {number | null} [timeout_ms]
|
|
1378
|
+
* @param {string | null} [name]
|
|
1379
|
+
* @returns {Promise<SqliteTransaction>}
|
|
1380
|
+
*/
|
|
1381
|
+
beginTransaction(timeout_ms, name) {
|
|
1382
|
+
var ptr0 = isLikeNone(name) ? 0 : passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1383
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1384
|
+
const ret = wasm.sqlitedb_beginTransaction(this.__wbg_ptr, !isLikeNone(timeout_ms), isLikeNone(timeout_ms) ? 0 : timeout_ms, ptr0, len0);
|
|
1385
|
+
return ret;
|
|
1386
|
+
}
|
|
1230
1387
|
/**
|
|
1231
1388
|
* @param {string} sql
|
|
1232
1389
|
* @param {any} params
|
|
@@ -1279,6 +1436,68 @@ export class SqliteDb {
|
|
|
1279
1436
|
}
|
|
1280
1437
|
}
|
|
1281
1438
|
|
|
1439
|
+
const SqliteTransactionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1440
|
+
? { register: () => {}, unregister: () => {} }
|
|
1441
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_sqlitetransaction_free(ptr >>> 0, 1));
|
|
1442
|
+
|
|
1443
|
+
export class SqliteTransaction {
|
|
1444
|
+
|
|
1445
|
+
static __wrap(ptr) {
|
|
1446
|
+
ptr = ptr >>> 0;
|
|
1447
|
+
const obj = Object.create(SqliteTransaction.prototype);
|
|
1448
|
+
obj.__wbg_ptr = ptr;
|
|
1449
|
+
SqliteTransactionFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1450
|
+
return obj;
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
__destroy_into_raw() {
|
|
1454
|
+
const ptr = this.__wbg_ptr;
|
|
1455
|
+
this.__wbg_ptr = 0;
|
|
1456
|
+
SqliteTransactionFinalization.unregister(this);
|
|
1457
|
+
return ptr;
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
free() {
|
|
1461
|
+
const ptr = this.__destroy_into_raw();
|
|
1462
|
+
wasm.__wbg_sqlitetransaction_free(ptr, 0);
|
|
1463
|
+
}
|
|
1464
|
+
/**
|
|
1465
|
+
* @param {string} sql
|
|
1466
|
+
* @returns {Promise<any>}
|
|
1467
|
+
*/
|
|
1468
|
+
exec(sql) {
|
|
1469
|
+
const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1470
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1471
|
+
const ret = wasm.sqlitetransaction_exec(this.__wbg_ptr, ptr0, len0);
|
|
1472
|
+
return ret;
|
|
1473
|
+
}
|
|
1474
|
+
/**
|
|
1475
|
+
* @returns {Promise<void>}
|
|
1476
|
+
*/
|
|
1477
|
+
commit() {
|
|
1478
|
+
const ret = wasm.sqlitetransaction_commit(this.__wbg_ptr);
|
|
1479
|
+
return ret;
|
|
1480
|
+
}
|
|
1481
|
+
/**
|
|
1482
|
+
* @param {string} sql
|
|
1483
|
+
* @param {any} params
|
|
1484
|
+
* @returns {Promise<any>}
|
|
1485
|
+
*/
|
|
1486
|
+
execute(sql, params) {
|
|
1487
|
+
const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1488
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1489
|
+
const ret = wasm.sqlitetransaction_execute(this.__wbg_ptr, ptr0, len0, params);
|
|
1490
|
+
return ret;
|
|
1491
|
+
}
|
|
1492
|
+
/**
|
|
1493
|
+
* @returns {Promise<void>}
|
|
1494
|
+
*/
|
|
1495
|
+
rollback() {
|
|
1496
|
+
const ret = wasm.sqlitetransaction_rollback(this.__wbg_ptr);
|
|
1497
|
+
return ret;
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1282
1501
|
const WebSocketHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1283
1502
|
? { register: () => {}, unregister: () => {} }
|
|
1284
1503
|
: new FinalizationRegistry(ptr => wasm.__wbg_websockethandle_free(ptr >>> 0, 1));
|
|
@@ -1304,6 +1523,17 @@ export class WebSocketHandle {
|
|
|
1304
1523
|
const ptr = this.__destroy_into_raw();
|
|
1305
1524
|
wasm.__wbg_websockethandle_free(ptr, 0);
|
|
1306
1525
|
}
|
|
1526
|
+
/**
|
|
1527
|
+
* @param {number | null} [code]
|
|
1528
|
+
* @param {string | null} [reason]
|
|
1529
|
+
* @returns {Promise<void>}
|
|
1530
|
+
*/
|
|
1531
|
+
close(code, reason) {
|
|
1532
|
+
var ptr0 = isLikeNone(reason) ? 0 : passStringToWasm0(reason, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1533
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1534
|
+
const ret = wasm.websockethandle_close(this.__wbg_ptr, isLikeNone(code) ? 0xFFFFFF : code, ptr0, len0);
|
|
1535
|
+
return ret;
|
|
1536
|
+
}
|
|
1307
1537
|
/**
|
|
1308
1538
|
* @param {Function} callback
|
|
1309
1539
|
*/
|
|
@@ -1322,17 +1552,6 @@ export class WebSocketHandle {
|
|
|
1322
1552
|
throw takeFromExternrefTable0(ret[0]);
|
|
1323
1553
|
}
|
|
1324
1554
|
}
|
|
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
1555
|
}
|
|
1337
1556
|
|
|
1338
1557
|
async function __wbg_load(module, imports) {
|
|
@@ -1441,7 +1660,7 @@ function __wbg_get_imports() {
|
|
|
1441
1660
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1442
1661
|
}
|
|
1443
1662
|
};
|
|
1444
|
-
imports.wbg.
|
|
1663
|
+
imports.wbg.__wbg_getRandomValues_6c498bf966d88108 = function() { return handleError(function (arg0, arg1) {
|
|
1445
1664
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1446
1665
|
}, arguments) };
|
|
1447
1666
|
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
@@ -1555,7 +1774,7 @@ function __wbg_get_imports() {
|
|
|
1555
1774
|
const a = state0.a;
|
|
1556
1775
|
state0.a = 0;
|
|
1557
1776
|
try {
|
|
1558
|
-
return
|
|
1777
|
+
return __wbg_adapter_285(a, state0.b, arg0, arg1);
|
|
1559
1778
|
} finally {
|
|
1560
1779
|
state0.a = a;
|
|
1561
1780
|
}
|
|
@@ -1570,6 +1789,10 @@ function __wbg_get_imports() {
|
|
|
1570
1789
|
const ret = new Object();
|
|
1571
1790
|
return ret;
|
|
1572
1791
|
};
|
|
1792
|
+
imports.wbg.__wbg_new_5e0be73521bc8c17 = function() {
|
|
1793
|
+
const ret = new Map();
|
|
1794
|
+
return ret;
|
|
1795
|
+
};
|
|
1573
1796
|
imports.wbg.__wbg_new_78feb108b6472713 = function() {
|
|
1574
1797
|
const ret = new Array();
|
|
1575
1798
|
return ret;
|
|
@@ -1679,6 +1902,10 @@ function __wbg_get_imports() {
|
|
|
1679
1902
|
imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
1680
1903
|
arg0.set(arg1, arg2 >>> 0);
|
|
1681
1904
|
};
|
|
1905
|
+
imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) {
|
|
1906
|
+
const ret = arg0.set(arg1, arg2);
|
|
1907
|
+
return ret;
|
|
1908
|
+
};
|
|
1682
1909
|
imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1683
1910
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1684
1911
|
return ret;
|
|
@@ -1698,6 +1925,10 @@ function __wbg_get_imports() {
|
|
|
1698
1925
|
imports.wbg.__wbg_setonopen_2da654e1f39745d5 = function(arg0, arg1) {
|
|
1699
1926
|
arg0.onopen = arg1;
|
|
1700
1927
|
};
|
|
1928
|
+
imports.wbg.__wbg_sqlitetransaction_new = function(arg0) {
|
|
1929
|
+
const ret = SqliteTransaction.__wrap(arg0);
|
|
1930
|
+
return ret;
|
|
1931
|
+
};
|
|
1701
1932
|
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
1702
1933
|
const ret = arg1.stack;
|
|
1703
1934
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1753,6 +1984,14 @@ function __wbg_get_imports() {
|
|
|
1753
1984
|
const ret = +arg0;
|
|
1754
1985
|
return ret;
|
|
1755
1986
|
};
|
|
1987
|
+
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
1988
|
+
const ret = arg0;
|
|
1989
|
+
return ret;
|
|
1990
|
+
};
|
|
1991
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
1992
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1993
|
+
return ret;
|
|
1994
|
+
};
|
|
1756
1995
|
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
1757
1996
|
const v = arg0;
|
|
1758
1997
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
@@ -1767,24 +2006,24 @@ function __wbg_get_imports() {
|
|
|
1767
2006
|
const ret = false;
|
|
1768
2007
|
return ret;
|
|
1769
2008
|
};
|
|
1770
|
-
imports.wbg.
|
|
1771
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2009
|
+
imports.wbg.__wbindgen_closure_wrapper4748 = function(arg0, arg1, arg2) {
|
|
2010
|
+
const ret = makeMutClosure(arg0, arg1, 1945, __wbg_adapter_50);
|
|
1772
2011
|
return ret;
|
|
1773
2012
|
};
|
|
1774
|
-
imports.wbg.
|
|
1775
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2013
|
+
imports.wbg.__wbindgen_closure_wrapper4750 = function(arg0, arg1, arg2) {
|
|
2014
|
+
const ret = makeMutClosure(arg0, arg1, 1945, __wbg_adapter_50);
|
|
1776
2015
|
return ret;
|
|
1777
2016
|
};
|
|
1778
|
-
imports.wbg.
|
|
1779
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2017
|
+
imports.wbg.__wbindgen_closure_wrapper4752 = function(arg0, arg1, arg2) {
|
|
2018
|
+
const ret = makeMutClosure(arg0, arg1, 1945, __wbg_adapter_50);
|
|
1780
2019
|
return ret;
|
|
1781
2020
|
};
|
|
1782
|
-
imports.wbg.
|
|
1783
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2021
|
+
imports.wbg.__wbindgen_closure_wrapper4754 = function(arg0, arg1, arg2) {
|
|
2022
|
+
const ret = makeMutClosure(arg0, arg1, 1945, __wbg_adapter_50);
|
|
1784
2023
|
return ret;
|
|
1785
2024
|
};
|
|
1786
|
-
imports.wbg.
|
|
1787
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2025
|
+
imports.wbg.__wbindgen_closure_wrapper5337 = function(arg0, arg1, arg2) {
|
|
2026
|
+
const ret = makeMutClosure(arg0, arg1, 2306, __wbg_adapter_59);
|
|
1788
2027
|
return ret;
|
|
1789
2028
|
};
|
|
1790
2029
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -9,6 +9,7 @@ export const __wbg_coreregistry_free: (a: number, b: number) => void;
|
|
|
9
9
|
export const __wbg_kv_free: (a: number, b: number) => void;
|
|
10
10
|
export const __wbg_queuemessage_free: (a: number, b: number) => void;
|
|
11
11
|
export const __wbg_sqlitedb_free: (a: number, b: number) => void;
|
|
12
|
+
export const __wbg_sqlitetransaction_free: (a: number, b: number) => void;
|
|
12
13
|
export const __wbg_websockethandle_free: (a: number, b: number) => void;
|
|
13
14
|
export const actorcontext_abortSignal: (a: number) => [number, number, number];
|
|
14
15
|
export const actorcontext_actorId: (a: number) => [number, number];
|
|
@@ -36,12 +37,15 @@ export const actorcontext_requestSaveAndWait: (a: number, b: any) => any;
|
|
|
36
37
|
export const actorcontext_restartRunHandler: (a: number) => void;
|
|
37
38
|
export const actorcontext_runtimeState: (a: number) => any;
|
|
38
39
|
export const actorcontext_saveState: (a: number, b: any) => any;
|
|
40
|
+
export const actorcontext_saveStateAndWorkflowBatch: (a: number, b: any) => any;
|
|
39
41
|
export const actorcontext_setAlarm: (a: number, b: number, c: number) => [number, number];
|
|
40
42
|
export const actorcontext_sleep: (a: number) => [number, number];
|
|
41
43
|
export const actorcontext_sql: (a: number) => number;
|
|
42
44
|
export const actorcontext_state: (a: number) => [number, number];
|
|
43
45
|
export const actorcontext_takePendingHibernationChanges: (a: number) => any;
|
|
44
46
|
export const actorcontext_verifyInspectorAuth: (a: number, b: number, c: number) => any;
|
|
47
|
+
export const actorcontext_waitForTrackedShutdownWork: (a: number) => any;
|
|
48
|
+
export const actorcontext_waitForTrackedShutdownWorkUnbounded: (a: number) => any;
|
|
45
49
|
export const actorcontext_waitUntil: (a: number, b: any) => void;
|
|
46
50
|
export const actorfactory_new: (a: any, b: any) => [number, number, number];
|
|
47
51
|
export const awaitPromise: (a: any) => any;
|
|
@@ -75,6 +79,7 @@ export const queue_enqueueAndWait: (a: number, b: number, c: number, d: number,
|
|
|
75
79
|
export const queue_inspectMessages: (a: number) => any;
|
|
76
80
|
export const queue_maxSize: (a: number) => number;
|
|
77
81
|
export const queue_nextBatch: (a: number, b: any, c: number) => any;
|
|
82
|
+
export const queue_reset: (a: number) => any;
|
|
78
83
|
export const queue_send: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
79
84
|
export const queue_tryNextBatch: (a: number, b: any) => [number, number, number];
|
|
80
85
|
export const queue_waitForNames: (a: number, b: any, c: any, d: number) => any;
|
|
@@ -86,13 +91,28 @@ export const queuemessage_id: (a: number) => bigint;
|
|
|
86
91
|
export const queuemessage_isCompletable: (a: number) => number;
|
|
87
92
|
export const queuemessage_name: (a: number) => [number, number];
|
|
88
93
|
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) =>
|
|
94
|
+
export const schedule_after: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
95
|
+
export const schedule_at: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
96
|
+
export const schedule_cancel: (a: number, b: number, c: number) => any;
|
|
97
|
+
export const schedule_cronDelete: (a: number, b: number, c: number) => any;
|
|
98
|
+
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;
|
|
99
|
+
export const schedule_cronGet: (a: number, b: number, c: number) => any;
|
|
100
|
+
export const schedule_cronHistory: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
101
|
+
export const schedule_cronList: (a: number) => any;
|
|
102
|
+
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;
|
|
103
|
+
export const schedule_get: (a: number, b: number, c: number) => any;
|
|
104
|
+
export const schedule_list: (a: number) => any;
|
|
105
|
+
export const sqlitedb_beginTransaction: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
91
106
|
export const sqlitedb_close: (a: number) => any;
|
|
92
107
|
export const sqlitedb_exec: (a: number, b: number, c: number) => any;
|
|
93
108
|
export const sqlitedb_execute: (a: number, b: number, c: number, d: any) => any;
|
|
109
|
+
export const sqlitedb_executeBatch: (a: number, b: any) => any;
|
|
94
110
|
export const sqlitedb_query: (a: number, b: number, c: number, d: any) => any;
|
|
95
111
|
export const sqlitedb_run: (a: number, b: number, c: number, d: any) => any;
|
|
112
|
+
export const sqlitetransaction_commit: (a: number) => any;
|
|
113
|
+
export const sqlitetransaction_exec: (a: number, b: number, c: number) => any;
|
|
114
|
+
export const sqlitetransaction_execute: (a: number, b: number, c: number, d: any) => any;
|
|
115
|
+
export const sqlitetransaction_rollback: (a: number) => any;
|
|
96
116
|
export const uint8ArrayFromBytes: (a: number, b: number) => any;
|
|
97
117
|
export const websockethandle_close: (a: number, b: number, c: number, d: number) => any;
|
|
98
118
|
export const websockethandle_send: (a: number, b: number, c: number, d: number) => [number, number];
|
|
@@ -110,7 +130,7 @@ export const __wbindgen_export_4: WebAssembly.Table;
|
|
|
110
130
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
111
131
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
112
132
|
export const __externref_table_dealloc: (a: number) => void;
|
|
113
|
-
export const
|
|
114
|
-
export const
|
|
115
|
-
export const
|
|
133
|
+
export const closure1944_externref_shim: (a: number, b: number, c: any) => void;
|
|
134
|
+
export const closure2305_externref_shim: (a: number, b: number, c: any) => void;
|
|
135
|
+
export const closure2538_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
116
136
|
export const __wbindgen_start: () => void;
|