@rivetkit/rivetkit-wasm 2.3.6 → 2.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pkg/rivetkit_wasm.d.ts +18 -18
- package/pkg/rivetkit_wasm.js +153 -142
- package/pkg/rivetkit_wasm_bg.wasm +0 -0
- package/pkg/rivetkit_wasm_bg.wasm.d.ts +4 -4
package/package.json
CHANGED
package/pkg/rivetkit_wasm.d.ts
CHANGED
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function
|
|
3
|
+
export function start(): void;
|
|
4
4
|
export function bridgeRivetErrorPrefix(): string;
|
|
5
5
|
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
6
6
|
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
7
|
-
export function
|
|
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,24 +93,24 @@ 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();
|
|
@@ -149,9 +149,9 @@ export class SqliteTransaction {
|
|
|
149
149
|
export class WebSocketHandle {
|
|
150
150
|
private constructor();
|
|
151
151
|
free(): void;
|
|
152
|
+
close(code?: number | null, reason?: string | null): Promise<void>;
|
|
152
153
|
setEventCallback(callback: Function): void;
|
|
153
154
|
send(data: Uint8Array, binary: boolean): void;
|
|
154
|
-
close(code?: number | null, reason?: string | null): Promise<void>;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
@@ -277,8 +277,8 @@ export interface InitOutput {
|
|
|
277
277
|
readonly start: () => void;
|
|
278
278
|
readonly actorcontext_queue: (a: number) => number;
|
|
279
279
|
readonly actorcontext_schedule: (a: number) => number;
|
|
280
|
-
readonly __wbg_queue_free: (a: number, b: number) => void;
|
|
281
280
|
readonly __wbg_schedule_free: (a: number, b: number) => void;
|
|
281
|
+
readonly __wbg_queue_free: (a: number, b: number) => void;
|
|
282
282
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
283
283
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
284
284
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
@@ -287,9 +287,9 @@ export interface InitOutput {
|
|
|
287
287
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
288
288
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
289
289
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
290
|
-
readonly
|
|
291
|
-
readonly
|
|
292
|
-
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;
|
|
293
293
|
readonly __wbindgen_start: () => void;
|
|
294
294
|
}
|
|
295
295
|
|
package/pkg/rivetkit_wasm.js
CHANGED
|
@@ -203,31 +203,8 @@ 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;
|
|
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 {Promise<any>} promise
|
|
226
|
-
* @returns {Promise<any>}
|
|
227
|
-
*/
|
|
228
|
-
export function awaitPromise(promise) {
|
|
229
|
-
const ret = wasm.awaitPromise(promise);
|
|
230
|
-
return ret;
|
|
206
|
+
export function start() {
|
|
207
|
+
wasm.start();
|
|
231
208
|
}
|
|
232
209
|
|
|
233
210
|
/**
|
|
@@ -246,6 +223,12 @@ export function bridgeRivetErrorPrefix() {
|
|
|
246
223
|
}
|
|
247
224
|
}
|
|
248
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
|
+
}
|
|
249
232
|
/**
|
|
250
233
|
* @param {Uint8Array} bytes
|
|
251
234
|
* @returns {Uint8Array}
|
|
@@ -270,20 +253,36 @@ export function uint8ArrayFromBytes(bytes) {
|
|
|
270
253
|
return ret;
|
|
271
254
|
}
|
|
272
255
|
|
|
273
|
-
|
|
274
|
-
|
|
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;
|
|
275
263
|
}
|
|
276
264
|
|
|
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
|
+
}
|
|
277
276
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
278
|
-
wasm.
|
|
277
|
+
wasm.closure1960_externref_shim(arg0, arg1, arg2);
|
|
279
278
|
}
|
|
280
279
|
|
|
281
280
|
function __wbg_adapter_59(arg0, arg1, arg2) {
|
|
282
|
-
wasm.
|
|
281
|
+
wasm.closure2339_externref_shim(arg0, arg1, arg2);
|
|
283
282
|
}
|
|
284
283
|
|
|
285
|
-
function
|
|
286
|
-
wasm.
|
|
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')
|
|
@@ -1521,6 +1528,17 @@ export class WebSocketHandle {
|
|
|
1521
1528
|
const ptr = this.__destroy_into_raw();
|
|
1522
1529
|
wasm.__wbg_websockethandle_free(ptr, 0);
|
|
1523
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
|
+
}
|
|
1524
1542
|
/**
|
|
1525
1543
|
* @param {Function} callback
|
|
1526
1544
|
*/
|
|
@@ -1539,17 +1557,6 @@ export class WebSocketHandle {
|
|
|
1539
1557
|
throw takeFromExternrefTable0(ret[0]);
|
|
1540
1558
|
}
|
|
1541
1559
|
}
|
|
1542
|
-
/**
|
|
1543
|
-
* @param {number | null} [code]
|
|
1544
|
-
* @param {string | null} [reason]
|
|
1545
|
-
* @returns {Promise<void>}
|
|
1546
|
-
*/
|
|
1547
|
-
close(code, reason) {
|
|
1548
|
-
var ptr0 = isLikeNone(reason) ? 0 : passStringToWasm0(reason, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1549
|
-
var len0 = WASM_VECTOR_LEN;
|
|
1550
|
-
const ret = wasm.websockethandle_close(this.__wbg_ptr, isLikeNone(code) ? 0xFFFFFF : code, ptr0, len0);
|
|
1551
|
-
return ret;
|
|
1552
|
-
}
|
|
1553
1560
|
}
|
|
1554
1561
|
|
|
1555
1562
|
async function __wbg_load(module, imports) {
|
|
@@ -1617,6 +1624,10 @@ function __wbg_get_imports() {
|
|
|
1617
1624
|
const ret = arg0.call(arg1, arg2, arg3);
|
|
1618
1625
|
return ret;
|
|
1619
1626
|
}, arguments) };
|
|
1627
|
+
imports.wbg.__wbg_cancellationtoken_new = function(arg0) {
|
|
1628
|
+
const ret = CancellationToken.__wrap(arg0);
|
|
1629
|
+
return ret;
|
|
1630
|
+
};
|
|
1620
1631
|
imports.wbg.__wbg_close_2893b7d056a0627d = function() { return handleError(function (arg0) {
|
|
1621
1632
|
arg0.close();
|
|
1622
1633
|
}, arguments) };
|
|
@@ -1772,7 +1783,7 @@ function __wbg_get_imports() {
|
|
|
1772
1783
|
const a = state0.a;
|
|
1773
1784
|
state0.a = 0;
|
|
1774
1785
|
try {
|
|
1775
|
-
return
|
|
1786
|
+
return __wbg_adapter_287(a, state0.b, arg0, arg1);
|
|
1776
1787
|
} finally {
|
|
1777
1788
|
state0.a = a;
|
|
1778
1789
|
}
|
|
@@ -2004,24 +2015,24 @@ function __wbg_get_imports() {
|
|
|
2004
2015
|
const ret = false;
|
|
2005
2016
|
return ret;
|
|
2006
2017
|
};
|
|
2007
|
-
imports.wbg.
|
|
2008
|
-
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);
|
|
2009
2020
|
return ret;
|
|
2010
2021
|
};
|
|
2011
|
-
imports.wbg.
|
|
2012
|
-
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);
|
|
2013
2024
|
return ret;
|
|
2014
2025
|
};
|
|
2015
|
-
imports.wbg.
|
|
2016
|
-
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);
|
|
2017
2028
|
return ret;
|
|
2018
2029
|
};
|
|
2019
|
-
imports.wbg.
|
|
2020
|
-
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);
|
|
2021
2032
|
return ret;
|
|
2022
2033
|
};
|
|
2023
|
-
imports.wbg.
|
|
2024
|
-
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);
|
|
2025
2036
|
return ret;
|
|
2026
2037
|
};
|
|
2027
2038
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -120,8 +120,8 @@ export const websockethandle_setEventCallback: (a: number, b: any) => void;
|
|
|
120
120
|
export const start: () => void;
|
|
121
121
|
export const actorcontext_queue: (a: number) => number;
|
|
122
122
|
export const actorcontext_schedule: (a: number) => number;
|
|
123
|
-
export const __wbg_queue_free: (a: number, b: number) => void;
|
|
124
123
|
export const __wbg_schedule_free: (a: number, b: number) => void;
|
|
124
|
+
export const __wbg_queue_free: (a: number, b: number) => void;
|
|
125
125
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
126
126
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
127
127
|
export const __wbindgen_exn_store: (a: number) => void;
|
|
@@ -130,7 +130,7 @@ export const __wbindgen_export_4: WebAssembly.Table;
|
|
|
130
130
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
131
131
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
132
132
|
export const __externref_table_dealloc: (a: number) => void;
|
|
133
|
-
export const
|
|
134
|
-
export const
|
|
135
|
-
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;
|
|
136
136
|
export const __wbindgen_start: () => void;
|