@rivetkit/rivetkit-wasm 0.0.0-main.3118df2 → 0.0.0-main.4994268
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 +24 -2
- package/package.json +1 -1
- package/pkg/package.json +19 -0
- package/pkg/rivetkit_wasm.d.ts +39 -21
- package/pkg/rivetkit_wasm.js +294 -157
- package/pkg/rivetkit_wasm_bg.wasm +0 -0
- package/pkg/rivetkit_wasm_bg.wasm.d.ts +14 -5
package/index.d.ts
CHANGED
|
@@ -140,8 +140,30 @@ export class QueueMessage {
|
|
|
140
140
|
export class Schedule {
|
|
141
141
|
private constructor();
|
|
142
142
|
free(): void;
|
|
143
|
-
|
|
144
|
-
|
|
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>;
|
|
145
167
|
}
|
|
146
168
|
|
|
147
169
|
export class SqliteDb {
|
package/package.json
CHANGED
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 uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
4
3
|
export function start(): void;
|
|
5
|
-
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
6
4
|
export function bridgeRivetErrorPrefix(): string;
|
|
7
5
|
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
6
|
+
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
7
|
+
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
8
8
|
export class ActorContext {
|
|
9
9
|
free(): void;
|
|
10
|
-
keepAwake(promise: Promise<any>): void;
|
|
11
10
|
saveState(payload: any): Promise<void>;
|
|
11
|
+
connectConn(params: Uint8Array, request: any): Promise<ConnHandle>;
|
|
12
|
+
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,19 +26,14 @@ 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>;
|
|
29
|
-
saveStateAndWorkflowBatch(writes: any): Promise<void>;
|
|
30
32
|
kv(): Kv;
|
|
31
|
-
waitForTrackedShutdownWork(): Promise<boolean>;
|
|
32
33
|
takePendingHibernationChanges(): Array<any>;
|
|
33
34
|
key(): any;
|
|
34
35
|
constructor();
|
|
35
36
|
sql(): SqliteDb;
|
|
36
|
-
waitForTrackedShutdownWorkUnbounded(): Promise<void>;
|
|
37
37
|
name(): string;
|
|
38
38
|
conns(): Array<any>;
|
|
39
39
|
queue(): Queue;
|
|
@@ -71,10 +71,10 @@ export class ConnHandle {
|
|
|
71
71
|
export class CoreRegistry {
|
|
72
72
|
free(): void;
|
|
73
73
|
handleServerlessRequest(req: any, on_stream_event: Function, cancel_token: CancellationToken, config: any): Promise<any>;
|
|
74
|
-
constructor();
|
|
75
74
|
serve(config: any): Promise<void>;
|
|
76
|
-
register(name: string, factory: ActorFactory): void;
|
|
77
75
|
shutdown(): Promise<void>;
|
|
76
|
+
constructor();
|
|
77
|
+
register(name: string, factory: ActorFactory): void;
|
|
78
78
|
}
|
|
79
79
|
export class Kv {
|
|
80
80
|
private constructor();
|
|
@@ -93,30 +93,39 @@ export class Queue {
|
|
|
93
93
|
private constructor();
|
|
94
94
|
free(): void;
|
|
95
95
|
nextBatch(options: any, signal?: CancellationToken | null): Promise<Array<any>>;
|
|
96
|
-
tryNextBatch(options: any): Array<any>;
|
|
97
96
|
waitForNames(names: any, options: any, signal?: CancellationToken | null): Promise<QueueMessage>;
|
|
98
97
|
enqueueAndWait(name: string, body: Uint8Array, options: any, signal?: CancellationToken | null): Promise<Uint8Array | undefined>;
|
|
99
98
|
inspectMessages(): Promise<Array<any>>;
|
|
100
99
|
waitForNamesAvailable(names: any, options: any): Promise<void>;
|
|
101
100
|
send(name: string, body: Uint8Array): Promise<QueueMessage>;
|
|
102
101
|
reset(): Promise<void>;
|
|
102
|
+
tryNextBatch(options: any): Array<any>;
|
|
103
103
|
maxSize(): number;
|
|
104
104
|
}
|
|
105
105
|
export class QueueMessage {
|
|
106
106
|
private constructor();
|
|
107
107
|
free(): void;
|
|
108
|
+
complete(response: any): Promise<void>;
|
|
108
109
|
createdAt(): number;
|
|
109
110
|
isCompletable(): boolean;
|
|
110
111
|
id(): bigint;
|
|
111
112
|
body(): Uint8Array;
|
|
112
113
|
name(): string;
|
|
113
|
-
complete(response: any): Promise<void>;
|
|
114
114
|
}
|
|
115
115
|
export class Schedule {
|
|
116
116
|
private constructor();
|
|
117
117
|
free(): void;
|
|
118
|
-
|
|
119
|
-
|
|
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>;
|
|
120
129
|
}
|
|
121
130
|
export class SqliteDb {
|
|
122
131
|
private constructor();
|
|
@@ -140,9 +149,9 @@ export class SqliteTransaction {
|
|
|
140
149
|
export class WebSocketHandle {
|
|
141
150
|
private constructor();
|
|
142
151
|
free(): void;
|
|
152
|
+
close(code?: number | null, reason?: string | null): Promise<void>;
|
|
143
153
|
setEventCallback(callback: Function): void;
|
|
144
154
|
send(data: Uint8Array, binary: boolean): void;
|
|
145
|
-
close(code?: number | null, reason?: string | null): Promise<void>;
|
|
146
155
|
}
|
|
147
156
|
|
|
148
157
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
@@ -239,8 +248,17 @@ export interface InitOutput {
|
|
|
239
248
|
readonly queuemessage_isCompletable: (a: number) => number;
|
|
240
249
|
readonly queuemessage_name: (a: number) => [number, number];
|
|
241
250
|
readonly roundTripBytes: (a: number, b: number) => [number, number];
|
|
242
|
-
readonly schedule_after: (a: number, b: number, c: number, d: number, e: number, f: number) =>
|
|
243
|
-
readonly schedule_at: (a: number, b: number, c: number, d: number, e: number, f: number) =>
|
|
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;
|
|
244
262
|
readonly sqlitedb_beginTransaction: (a: number, b: number, c: number) => any;
|
|
245
263
|
readonly sqlitedb_close: (a: number) => any;
|
|
246
264
|
readonly sqlitedb_exec: (a: number, b: number, c: number) => any;
|
|
@@ -269,9 +287,9 @@ export interface InitOutput {
|
|
|
269
287
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
270
288
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
271
289
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
272
|
-
readonly
|
|
273
|
-
readonly
|
|
274
|
-
readonly
|
|
290
|
+
readonly closure1960_externref_shim: (a: number, b: number, c: any) => void;
|
|
291
|
+
readonly closure2339_externref_shim: (a: number, b: number, c: any) => void;
|
|
292
|
+
readonly closure2576_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
275
293
|
readonly __wbindgen_start: () => void;
|
|
276
294
|
}
|
|
277
295
|
|
package/pkg/rivetkit_wasm.js
CHANGED
|
@@ -203,48 +203,10 @@ function debugString(val) {
|
|
|
203
203
|
return className;
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
207
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
208
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
209
|
-
WASM_VECTOR_LEN = arg.length;
|
|
210
|
-
return ptr;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
function takeFromExternrefTable0(idx) {
|
|
214
|
-
const value = wasm.__wbindgen_export_4.get(idx);
|
|
215
|
-
wasm.__externref_table_dealloc(idx);
|
|
216
|
-
return value;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
function _assertClass(instance, klass) {
|
|
220
|
-
if (!(instance instanceof klass)) {
|
|
221
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* @param {Uint8Array} bytes
|
|
226
|
-
* @returns {Uint8Array}
|
|
227
|
-
*/
|
|
228
|
-
export function uint8ArrayFromBytes(bytes) {
|
|
229
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
230
|
-
const len0 = WASM_VECTOR_LEN;
|
|
231
|
-
const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
|
|
232
|
-
return ret;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
206
|
export function start() {
|
|
236
207
|
wasm.start();
|
|
237
208
|
}
|
|
238
209
|
|
|
239
|
-
/**
|
|
240
|
-
* @param {Promise<any>} promise
|
|
241
|
-
* @returns {Promise<any>}
|
|
242
|
-
*/
|
|
243
|
-
export function awaitPromise(promise) {
|
|
244
|
-
const ret = wasm.awaitPromise(promise);
|
|
245
|
-
return ret;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
210
|
/**
|
|
249
211
|
* @returns {string}
|
|
250
212
|
*/
|
|
@@ -261,6 +223,12 @@ export function bridgeRivetErrorPrefix() {
|
|
|
261
223
|
}
|
|
262
224
|
}
|
|
263
225
|
|
|
226
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
227
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
228
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
229
|
+
WASM_VECTOR_LEN = arg.length;
|
|
230
|
+
return ptr;
|
|
231
|
+
}
|
|
264
232
|
/**
|
|
265
233
|
* @param {Uint8Array} bytes
|
|
266
234
|
* @returns {Uint8Array}
|
|
@@ -274,16 +242,47 @@ export function roundTripBytes(bytes) {
|
|
|
274
242
|
return v2;
|
|
275
243
|
}
|
|
276
244
|
|
|
277
|
-
|
|
278
|
-
|
|
245
|
+
/**
|
|
246
|
+
* @param {Uint8Array} bytes
|
|
247
|
+
* @returns {Uint8Array}
|
|
248
|
+
*/
|
|
249
|
+
export function uint8ArrayFromBytes(bytes) {
|
|
250
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
251
|
+
const len0 = WASM_VECTOR_LEN;
|
|
252
|
+
const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
|
|
253
|
+
return ret;
|
|
279
254
|
}
|
|
280
255
|
|
|
281
|
-
|
|
282
|
-
|
|
256
|
+
/**
|
|
257
|
+
* @param {Promise<any>} promise
|
|
258
|
+
* @returns {Promise<any>}
|
|
259
|
+
*/
|
|
260
|
+
export function awaitPromise(promise) {
|
|
261
|
+
const ret = wasm.awaitPromise(promise);
|
|
262
|
+
return ret;
|
|
283
263
|
}
|
|
284
264
|
|
|
285
|
-
function
|
|
286
|
-
|
|
265
|
+
function _assertClass(instance, klass) {
|
|
266
|
+
if (!(instance instanceof klass)) {
|
|
267
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
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.closure1960_externref_shim(arg0, arg1, arg2);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
function __wbg_adapter_59(arg0, arg1, arg2) {
|
|
281
|
+
wasm.closure2339_externref_shim(arg0, arg1, arg2);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
function __wbg_adapter_287(arg0, arg1, arg2, arg3) {
|
|
285
|
+
wasm.closure2576_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
|
*/
|
|
@@ -443,14 +464,6 @@ export class ActorContext {
|
|
|
443
464
|
const ret = wasm.actorcontext_dirtyHibernatableConns(this.__wbg_ptr);
|
|
444
465
|
return ret;
|
|
445
466
|
}
|
|
446
|
-
/**
|
|
447
|
-
* @param {any} writes
|
|
448
|
-
* @returns {Promise<void>}
|
|
449
|
-
*/
|
|
450
|
-
saveStateAndWorkflowBatch(writes) {
|
|
451
|
-
const ret = wasm.actorcontext_saveStateAndWorkflowBatch(this.__wbg_ptr, writes);
|
|
452
|
-
return ret;
|
|
453
|
-
}
|
|
454
467
|
/**
|
|
455
468
|
* @returns {Kv}
|
|
456
469
|
*/
|
|
@@ -458,13 +471,6 @@ export class ActorContext {
|
|
|
458
471
|
const ret = wasm.actorcontext_kv(this.__wbg_ptr);
|
|
459
472
|
return Kv.__wrap(ret);
|
|
460
473
|
}
|
|
461
|
-
/**
|
|
462
|
-
* @returns {Promise<boolean>}
|
|
463
|
-
*/
|
|
464
|
-
waitForTrackedShutdownWork() {
|
|
465
|
-
const ret = wasm.actorcontext_waitForTrackedShutdownWork(this.__wbg_ptr);
|
|
466
|
-
return ret;
|
|
467
|
-
}
|
|
468
474
|
/**
|
|
469
475
|
* @returns {Array<any>}
|
|
470
476
|
*/
|
|
@@ -498,13 +504,6 @@ export class ActorContext {
|
|
|
498
504
|
const ret = wasm.actorcontext_sql(this.__wbg_ptr);
|
|
499
505
|
return SqliteDb.__wrap(ret);
|
|
500
506
|
}
|
|
501
|
-
/**
|
|
502
|
-
* @returns {Promise<void>}
|
|
503
|
-
*/
|
|
504
|
-
waitForTrackedShutdownWorkUnbounded() {
|
|
505
|
-
const ret = wasm.actorcontext_waitForTrackedShutdownWorkUnbounded(this.__wbg_ptr);
|
|
506
|
-
return ret;
|
|
507
|
-
}
|
|
508
507
|
/**
|
|
509
508
|
* @returns {string}
|
|
510
509
|
*/
|
|
@@ -652,6 +651,14 @@ const CancellationTokenFinalization = (typeof FinalizationRegistry === 'undefine
|
|
|
652
651
|
|
|
653
652
|
export class CancellationToken {
|
|
654
653
|
|
|
654
|
+
static __wrap(ptr) {
|
|
655
|
+
ptr = ptr >>> 0;
|
|
656
|
+
const obj = Object.create(CancellationToken.prototype);
|
|
657
|
+
obj.__wbg_ptr = ptr;
|
|
658
|
+
CancellationTokenFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
659
|
+
return obj;
|
|
660
|
+
}
|
|
661
|
+
|
|
655
662
|
__destroy_into_raw() {
|
|
656
663
|
const ptr = this.__wbg_ptr;
|
|
657
664
|
this.__wbg_ptr = 0;
|
|
@@ -812,12 +819,6 @@ export class CoreRegistry {
|
|
|
812
819
|
const ret = wasm.coreregistry_handleServerlessRequest(this.__wbg_ptr, req, on_stream_event, cancel_token.__wbg_ptr, config);
|
|
813
820
|
return ret;
|
|
814
821
|
}
|
|
815
|
-
constructor() {
|
|
816
|
-
const ret = wasm.coreregistry_new();
|
|
817
|
-
this.__wbg_ptr = ret >>> 0;
|
|
818
|
-
CoreRegistryFinalization.register(this, this.__wbg_ptr, this);
|
|
819
|
-
return this;
|
|
820
|
-
}
|
|
821
822
|
/**
|
|
822
823
|
* @param {any} config
|
|
823
824
|
* @returns {Promise<void>}
|
|
@@ -826,6 +827,19 @@ export class CoreRegistry {
|
|
|
826
827
|
const ret = wasm.coreregistry_serve(this.__wbg_ptr, config);
|
|
827
828
|
return ret;
|
|
828
829
|
}
|
|
830
|
+
/**
|
|
831
|
+
* @returns {Promise<void>}
|
|
832
|
+
*/
|
|
833
|
+
shutdown() {
|
|
834
|
+
const ret = wasm.coreregistry_shutdown(this.__wbg_ptr);
|
|
835
|
+
return ret;
|
|
836
|
+
}
|
|
837
|
+
constructor() {
|
|
838
|
+
const ret = wasm.coreregistry_new();
|
|
839
|
+
this.__wbg_ptr = ret >>> 0;
|
|
840
|
+
CoreRegistryFinalization.register(this, this.__wbg_ptr, this);
|
|
841
|
+
return this;
|
|
842
|
+
}
|
|
829
843
|
/**
|
|
830
844
|
* @param {string} name
|
|
831
845
|
* @param {ActorFactory} factory
|
|
@@ -839,13 +853,6 @@ export class CoreRegistry {
|
|
|
839
853
|
throw takeFromExternrefTable0(ret[0]);
|
|
840
854
|
}
|
|
841
855
|
}
|
|
842
|
-
/**
|
|
843
|
-
* @returns {Promise<void>}
|
|
844
|
-
*/
|
|
845
|
-
shutdown() {
|
|
846
|
-
const ret = wasm.coreregistry_shutdown(this.__wbg_ptr);
|
|
847
|
-
return ret;
|
|
848
|
-
}
|
|
849
856
|
}
|
|
850
857
|
|
|
851
858
|
const KvFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1009,17 +1016,6 @@ export class Queue {
|
|
|
1009
1016
|
const ret = wasm.queue_nextBatch(this.__wbg_ptr, options, ptr0);
|
|
1010
1017
|
return ret;
|
|
1011
1018
|
}
|
|
1012
|
-
/**
|
|
1013
|
-
* @param {any} options
|
|
1014
|
-
* @returns {Array<any>}
|
|
1015
|
-
*/
|
|
1016
|
-
tryNextBatch(options) {
|
|
1017
|
-
const ret = wasm.queue_tryNextBatch(this.__wbg_ptr, options);
|
|
1018
|
-
if (ret[2]) {
|
|
1019
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1020
|
-
}
|
|
1021
|
-
return takeFromExternrefTable0(ret[0]);
|
|
1022
|
-
}
|
|
1023
1019
|
/**
|
|
1024
1020
|
* @param {any} names
|
|
1025
1021
|
* @param {any} options
|
|
@@ -1091,6 +1087,17 @@ export class Queue {
|
|
|
1091
1087
|
const ret = wasm.queue_reset(this.__wbg_ptr);
|
|
1092
1088
|
return ret;
|
|
1093
1089
|
}
|
|
1090
|
+
/**
|
|
1091
|
+
* @param {any} options
|
|
1092
|
+
* @returns {Array<any>}
|
|
1093
|
+
*/
|
|
1094
|
+
tryNextBatch(options) {
|
|
1095
|
+
const ret = wasm.queue_tryNextBatch(this.__wbg_ptr, options);
|
|
1096
|
+
if (ret[2]) {
|
|
1097
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1098
|
+
}
|
|
1099
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1100
|
+
}
|
|
1094
1101
|
/**
|
|
1095
1102
|
* @returns {number}
|
|
1096
1103
|
*/
|
|
@@ -1125,6 +1132,14 @@ export class QueueMessage {
|
|
|
1125
1132
|
const ptr = this.__destroy_into_raw();
|
|
1126
1133
|
wasm.__wbg_queuemessage_free(ptr, 0);
|
|
1127
1134
|
}
|
|
1135
|
+
/**
|
|
1136
|
+
* @param {any} response
|
|
1137
|
+
* @returns {Promise<void>}
|
|
1138
|
+
*/
|
|
1139
|
+
complete(response) {
|
|
1140
|
+
const ret = wasm.queuemessage_complete(this.__wbg_ptr, response);
|
|
1141
|
+
return ret;
|
|
1142
|
+
}
|
|
1128
1143
|
/**
|
|
1129
1144
|
* @returns {number}
|
|
1130
1145
|
*/
|
|
@@ -1170,14 +1185,6 @@ export class QueueMessage {
|
|
|
1170
1185
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1171
1186
|
}
|
|
1172
1187
|
}
|
|
1173
|
-
/**
|
|
1174
|
-
* @param {any} response
|
|
1175
|
-
* @returns {Promise<void>}
|
|
1176
|
-
*/
|
|
1177
|
-
complete(response) {
|
|
1178
|
-
const ret = wasm.queuemessage_complete(this.__wbg_ptr, response);
|
|
1179
|
-
return ret;
|
|
1180
|
-
}
|
|
1181
1188
|
}
|
|
1182
1189
|
|
|
1183
1190
|
const ScheduleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1205,29 +1212,139 @@ export class Schedule {
|
|
|
1205
1212
|
const ptr = this.__destroy_into_raw();
|
|
1206
1213
|
wasm.__wbg_schedule_free(ptr, 0);
|
|
1207
1214
|
}
|
|
1215
|
+
/**
|
|
1216
|
+
* @param {string} name
|
|
1217
|
+
* @param {number} interval_ms
|
|
1218
|
+
* @param {string} action_name
|
|
1219
|
+
* @param {Uint8Array} args
|
|
1220
|
+
* @param {number | null} [max_history]
|
|
1221
|
+
* @returns {Promise<void>}
|
|
1222
|
+
*/
|
|
1223
|
+
cronEvery(name, interval_ms, action_name, args, max_history) {
|
|
1224
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1225
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1226
|
+
const ptr1 = passStringToWasm0(action_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1227
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1228
|
+
const ptr2 = passArray8ToWasm0(args, wasm.__wbindgen_malloc);
|
|
1229
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1230
|
+
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);
|
|
1231
|
+
return ret;
|
|
1232
|
+
}
|
|
1233
|
+
/**
|
|
1234
|
+
* @param {string} name
|
|
1235
|
+
* @returns {Promise<boolean>}
|
|
1236
|
+
*/
|
|
1237
|
+
cronDelete(name) {
|
|
1238
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1239
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1240
|
+
const ret = wasm.schedule_cronDelete(this.__wbg_ptr, ptr0, len0);
|
|
1241
|
+
return ret;
|
|
1242
|
+
}
|
|
1243
|
+
/**
|
|
1244
|
+
* @param {string} name
|
|
1245
|
+
* @param {number | null} [limit]
|
|
1246
|
+
* @returns {Promise<any>}
|
|
1247
|
+
*/
|
|
1248
|
+
cronHistory(name, limit) {
|
|
1249
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1250
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1251
|
+
const ret = wasm.schedule_cronHistory(this.__wbg_ptr, ptr0, len0, !isLikeNone(limit), isLikeNone(limit) ? 0 : limit);
|
|
1252
|
+
return ret;
|
|
1253
|
+
}
|
|
1208
1254
|
/**
|
|
1209
1255
|
* @param {number} timestamp_ms
|
|
1210
1256
|
* @param {string} action_name
|
|
1211
1257
|
* @param {Uint8Array} args
|
|
1258
|
+
* @returns {Promise<string>}
|
|
1212
1259
|
*/
|
|
1213
1260
|
at(timestamp_ms, action_name, args) {
|
|
1214
1261
|
const ptr0 = passStringToWasm0(action_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1215
1262
|
const len0 = WASM_VECTOR_LEN;
|
|
1216
1263
|
const ptr1 = passArray8ToWasm0(args, wasm.__wbindgen_malloc);
|
|
1217
1264
|
const len1 = WASM_VECTOR_LEN;
|
|
1218
|
-
wasm.schedule_at(this.__wbg_ptr, timestamp_ms, ptr0, len0, ptr1, len1);
|
|
1265
|
+
const ret = wasm.schedule_at(this.__wbg_ptr, timestamp_ms, ptr0, len0, ptr1, len1);
|
|
1266
|
+
return ret;
|
|
1267
|
+
}
|
|
1268
|
+
/**
|
|
1269
|
+
* @param {string} id
|
|
1270
|
+
* @returns {Promise<any>}
|
|
1271
|
+
*/
|
|
1272
|
+
get(id) {
|
|
1273
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1274
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1275
|
+
const ret = wasm.schedule_get(this.__wbg_ptr, ptr0, len0);
|
|
1276
|
+
return ret;
|
|
1277
|
+
}
|
|
1278
|
+
/**
|
|
1279
|
+
* @returns {Promise<any>}
|
|
1280
|
+
*/
|
|
1281
|
+
list() {
|
|
1282
|
+
const ret = wasm.schedule_list(this.__wbg_ptr);
|
|
1283
|
+
return ret;
|
|
1219
1284
|
}
|
|
1220
1285
|
/**
|
|
1221
1286
|
* @param {number} duration_ms
|
|
1222
1287
|
* @param {string} action_name
|
|
1223
1288
|
* @param {Uint8Array} args
|
|
1289
|
+
* @returns {Promise<string>}
|
|
1224
1290
|
*/
|
|
1225
1291
|
after(duration_ms, action_name, args) {
|
|
1226
1292
|
const ptr0 = passStringToWasm0(action_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1227
1293
|
const len0 = WASM_VECTOR_LEN;
|
|
1228
1294
|
const ptr1 = passArray8ToWasm0(args, wasm.__wbindgen_malloc);
|
|
1229
1295
|
const len1 = WASM_VECTOR_LEN;
|
|
1230
|
-
wasm.schedule_after(this.__wbg_ptr, duration_ms, ptr0, len0, ptr1, len1);
|
|
1296
|
+
const ret = wasm.schedule_after(this.__wbg_ptr, duration_ms, ptr0, len0, ptr1, len1);
|
|
1297
|
+
return ret;
|
|
1298
|
+
}
|
|
1299
|
+
/**
|
|
1300
|
+
* @param {string} id
|
|
1301
|
+
* @returns {Promise<boolean>}
|
|
1302
|
+
*/
|
|
1303
|
+
cancel(id) {
|
|
1304
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1305
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1306
|
+
const ret = wasm.schedule_cancel(this.__wbg_ptr, ptr0, len0);
|
|
1307
|
+
return ret;
|
|
1308
|
+
}
|
|
1309
|
+
/**
|
|
1310
|
+
* @param {string} name
|
|
1311
|
+
* @returns {Promise<any>}
|
|
1312
|
+
*/
|
|
1313
|
+
cronGet(name) {
|
|
1314
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1315
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1316
|
+
const ret = wasm.schedule_cronGet(this.__wbg_ptr, ptr0, len0);
|
|
1317
|
+
return ret;
|
|
1318
|
+
}
|
|
1319
|
+
/**
|
|
1320
|
+
* @param {string} name
|
|
1321
|
+
* @param {string} expression
|
|
1322
|
+
* @param {string | null | undefined} timezone
|
|
1323
|
+
* @param {string} action_name
|
|
1324
|
+
* @param {Uint8Array} args
|
|
1325
|
+
* @param {number | null} [max_history]
|
|
1326
|
+
* @returns {Promise<void>}
|
|
1327
|
+
*/
|
|
1328
|
+
cronSet(name, expression, timezone, action_name, args, max_history) {
|
|
1329
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1330
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1331
|
+
const ptr1 = passStringToWasm0(expression, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1332
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1333
|
+
var ptr2 = isLikeNone(timezone) ? 0 : passStringToWasm0(timezone, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1334
|
+
var len2 = WASM_VECTOR_LEN;
|
|
1335
|
+
const ptr3 = passStringToWasm0(action_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1336
|
+
const len3 = WASM_VECTOR_LEN;
|
|
1337
|
+
const ptr4 = passArray8ToWasm0(args, wasm.__wbindgen_malloc);
|
|
1338
|
+
const len4 = WASM_VECTOR_LEN;
|
|
1339
|
+
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);
|
|
1340
|
+
return ret;
|
|
1341
|
+
}
|
|
1342
|
+
/**
|
|
1343
|
+
* @returns {Promise<any>}
|
|
1344
|
+
*/
|
|
1345
|
+
cronList() {
|
|
1346
|
+
const ret = wasm.schedule_cronList(this.__wbg_ptr);
|
|
1347
|
+
return ret;
|
|
1231
1348
|
}
|
|
1232
1349
|
}
|
|
1233
1350
|
|
|
@@ -1411,6 +1528,17 @@ export class WebSocketHandle {
|
|
|
1411
1528
|
const ptr = this.__destroy_into_raw();
|
|
1412
1529
|
wasm.__wbg_websockethandle_free(ptr, 0);
|
|
1413
1530
|
}
|
|
1531
|
+
/**
|
|
1532
|
+
* @param {number | null} [code]
|
|
1533
|
+
* @param {string | null} [reason]
|
|
1534
|
+
* @returns {Promise<void>}
|
|
1535
|
+
*/
|
|
1536
|
+
close(code, reason) {
|
|
1537
|
+
var ptr0 = isLikeNone(reason) ? 0 : passStringToWasm0(reason, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1538
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1539
|
+
const ret = wasm.websockethandle_close(this.__wbg_ptr, isLikeNone(code) ? 0xFFFFFF : code, ptr0, len0);
|
|
1540
|
+
return ret;
|
|
1541
|
+
}
|
|
1414
1542
|
/**
|
|
1415
1543
|
* @param {Function} callback
|
|
1416
1544
|
*/
|
|
@@ -1429,17 +1557,6 @@ export class WebSocketHandle {
|
|
|
1429
1557
|
throw takeFromExternrefTable0(ret[0]);
|
|
1430
1558
|
}
|
|
1431
1559
|
}
|
|
1432
|
-
/**
|
|
1433
|
-
* @param {number | null} [code]
|
|
1434
|
-
* @param {string | null} [reason]
|
|
1435
|
-
* @returns {Promise<void>}
|
|
1436
|
-
*/
|
|
1437
|
-
close(code, reason) {
|
|
1438
|
-
var ptr0 = isLikeNone(reason) ? 0 : passStringToWasm0(reason, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1439
|
-
var len0 = WASM_VECTOR_LEN;
|
|
1440
|
-
const ret = wasm.websockethandle_close(this.__wbg_ptr, isLikeNone(code) ? 0xFFFFFF : code, ptr0, len0);
|
|
1441
|
-
return ret;
|
|
1442
|
-
}
|
|
1443
1560
|
}
|
|
1444
1561
|
|
|
1445
1562
|
async function __wbg_load(module, imports) {
|
|
@@ -1507,6 +1624,10 @@ function __wbg_get_imports() {
|
|
|
1507
1624
|
const ret = arg0.call(arg1, arg2, arg3);
|
|
1508
1625
|
return ret;
|
|
1509
1626
|
}, arguments) };
|
|
1627
|
+
imports.wbg.__wbg_cancellationtoken_new = function(arg0) {
|
|
1628
|
+
const ret = CancellationToken.__wrap(arg0);
|
|
1629
|
+
return ret;
|
|
1630
|
+
};
|
|
1510
1631
|
imports.wbg.__wbg_close_2893b7d056a0627d = function() { return handleError(function (arg0) {
|
|
1511
1632
|
arg0.close();
|
|
1512
1633
|
}, arguments) };
|
|
@@ -1662,7 +1783,7 @@ function __wbg_get_imports() {
|
|
|
1662
1783
|
const a = state0.a;
|
|
1663
1784
|
state0.a = 0;
|
|
1664
1785
|
try {
|
|
1665
|
-
return
|
|
1786
|
+
return __wbg_adapter_287(a, state0.b, arg0, arg1);
|
|
1666
1787
|
} finally {
|
|
1667
1788
|
state0.a = a;
|
|
1668
1789
|
}
|
|
@@ -1677,6 +1798,10 @@ function __wbg_get_imports() {
|
|
|
1677
1798
|
const ret = new Object();
|
|
1678
1799
|
return ret;
|
|
1679
1800
|
};
|
|
1801
|
+
imports.wbg.__wbg_new_5e0be73521bc8c17 = function() {
|
|
1802
|
+
const ret = new Map();
|
|
1803
|
+
return ret;
|
|
1804
|
+
};
|
|
1680
1805
|
imports.wbg.__wbg_new_78feb108b6472713 = function() {
|
|
1681
1806
|
const ret = new Array();
|
|
1682
1807
|
return ret;
|
|
@@ -1786,6 +1911,10 @@ function __wbg_get_imports() {
|
|
|
1786
1911
|
imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
1787
1912
|
arg0.set(arg1, arg2 >>> 0);
|
|
1788
1913
|
};
|
|
1914
|
+
imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) {
|
|
1915
|
+
const ret = arg0.set(arg1, arg2);
|
|
1916
|
+
return ret;
|
|
1917
|
+
};
|
|
1789
1918
|
imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1790
1919
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1791
1920
|
return ret;
|
|
@@ -1864,6 +1993,14 @@ function __wbg_get_imports() {
|
|
|
1864
1993
|
const ret = +arg0;
|
|
1865
1994
|
return ret;
|
|
1866
1995
|
};
|
|
1996
|
+
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
1997
|
+
const ret = arg0;
|
|
1998
|
+
return ret;
|
|
1999
|
+
};
|
|
2000
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2001
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2002
|
+
return ret;
|
|
2003
|
+
};
|
|
1867
2004
|
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
1868
2005
|
const v = arg0;
|
|
1869
2006
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
@@ -1878,24 +2015,24 @@ function __wbg_get_imports() {
|
|
|
1878
2015
|
const ret = false;
|
|
1879
2016
|
return ret;
|
|
1880
2017
|
};
|
|
1881
|
-
imports.wbg.
|
|
1882
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2018
|
+
imports.wbg.__wbindgen_closure_wrapper4808 = function(arg0, arg1, arg2) {
|
|
2019
|
+
const ret = makeMutClosure(arg0, arg1, 1961, __wbg_adapter_50);
|
|
1883
2020
|
return ret;
|
|
1884
2021
|
};
|
|
1885
|
-
imports.wbg.
|
|
1886
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2022
|
+
imports.wbg.__wbindgen_closure_wrapper4810 = function(arg0, arg1, arg2) {
|
|
2023
|
+
const ret = makeMutClosure(arg0, arg1, 1961, __wbg_adapter_50);
|
|
1887
2024
|
return ret;
|
|
1888
2025
|
};
|
|
1889
|
-
imports.wbg.
|
|
1890
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2026
|
+
imports.wbg.__wbindgen_closure_wrapper4812 = function(arg0, arg1, arg2) {
|
|
2027
|
+
const ret = makeMutClosure(arg0, arg1, 1961, __wbg_adapter_50);
|
|
1891
2028
|
return ret;
|
|
1892
2029
|
};
|
|
1893
|
-
imports.wbg.
|
|
1894
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2030
|
+
imports.wbg.__wbindgen_closure_wrapper4814 = function(arg0, arg1, arg2) {
|
|
2031
|
+
const ret = makeMutClosure(arg0, arg1, 1961, __wbg_adapter_50);
|
|
1895
2032
|
return ret;
|
|
1896
2033
|
};
|
|
1897
|
-
imports.wbg.
|
|
1898
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2034
|
+
imports.wbg.__wbindgen_closure_wrapper5411 = function(arg0, arg1, arg2) {
|
|
2035
|
+
const ret = makeMutClosure(arg0, arg1, 2340, __wbg_adapter_59);
|
|
1899
2036
|
return ret;
|
|
1900
2037
|
};
|
|
1901
2038
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -91,8 +91,17 @@ export const queuemessage_id: (a: number) => bigint;
|
|
|
91
91
|
export const queuemessage_isCompletable: (a: number) => number;
|
|
92
92
|
export const queuemessage_name: (a: number) => [number, number];
|
|
93
93
|
export const roundTripBytes: (a: number, b: number) => [number, number];
|
|
94
|
-
export const schedule_after: (a: number, b: number, c: number, d: number, e: number, f: number) =>
|
|
95
|
-
export const schedule_at: (a: number, b: number, c: number, d: number, e: number, f: number) =>
|
|
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;
|
|
96
105
|
export const sqlitedb_beginTransaction: (a: number, b: number, c: number) => any;
|
|
97
106
|
export const sqlitedb_close: (a: number) => any;
|
|
98
107
|
export const sqlitedb_exec: (a: number, b: number, c: number) => any;
|
|
@@ -121,7 +130,7 @@ export const __wbindgen_export_4: WebAssembly.Table;
|
|
|
121
130
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
122
131
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
123
132
|
export const __externref_table_dealloc: (a: number) => void;
|
|
124
|
-
export const
|
|
125
|
-
export const
|
|
126
|
-
export const
|
|
133
|
+
export const closure1960_externref_shim: (a: number, b: number, c: any) => void;
|
|
134
|
+
export const closure2339_externref_shim: (a: number, b: number, c: any) => void;
|
|
135
|
+
export const closure2576_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
127
136
|
export const __wbindgen_start: () => void;
|