@rivetkit/engine-envoy-protocol 0.0.0-pr.4856.c68d9cb → 0.0.0-pr.4860.2a8ccdf
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/dist/index.d.ts +507 -9
- package/dist/index.js +1429 -143
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -165,12 +165,38 @@ type KvResponseData = {
|
|
|
165
165
|
};
|
|
166
166
|
declare function readKvResponseData(bc: bare.ByteCursor): KvResponseData;
|
|
167
167
|
declare function writeKvResponseData(bc: bare.ByteCursor, x: KvResponseData): void;
|
|
168
|
+
type SqliteGeneration = u64;
|
|
169
|
+
declare function readSqliteGeneration(bc: bare.ByteCursor): SqliteGeneration;
|
|
170
|
+
declare function writeSqliteGeneration(bc: bare.ByteCursor, x: SqliteGeneration): void;
|
|
171
|
+
type SqliteTxid = u64;
|
|
172
|
+
declare function readSqliteTxid(bc: bare.ByteCursor): SqliteTxid;
|
|
173
|
+
declare function writeSqliteTxid(bc: bare.ByteCursor, x: SqliteTxid): void;
|
|
168
174
|
type SqlitePgno = u32;
|
|
169
175
|
declare function readSqlitePgno(bc: bare.ByteCursor): SqlitePgno;
|
|
170
176
|
declare function writeSqlitePgno(bc: bare.ByteCursor, x: SqlitePgno): void;
|
|
177
|
+
type SqliteStageId = u64;
|
|
178
|
+
declare function readSqliteStageId(bc: bare.ByteCursor): SqliteStageId;
|
|
179
|
+
declare function writeSqliteStageId(bc: bare.ByteCursor, x: SqliteStageId): void;
|
|
171
180
|
type SqlitePageBytes = ArrayBuffer;
|
|
172
181
|
declare function readSqlitePageBytes(bc: bare.ByteCursor): SqlitePageBytes;
|
|
173
182
|
declare function writeSqlitePageBytes(bc: bare.ByteCursor, x: SqlitePageBytes): void;
|
|
183
|
+
type SqliteMeta = {
|
|
184
|
+
readonly generation: SqliteGeneration;
|
|
185
|
+
readonly headTxid: SqliteTxid;
|
|
186
|
+
readonly materializedTxid: SqliteTxid;
|
|
187
|
+
readonly dbSizePages: u32;
|
|
188
|
+
readonly pageSize: u32;
|
|
189
|
+
readonly creationTsMs: i64;
|
|
190
|
+
readonly maxDeltaBytes: u64;
|
|
191
|
+
};
|
|
192
|
+
declare function readSqliteMeta(bc: bare.ByteCursor): SqliteMeta;
|
|
193
|
+
declare function writeSqliteMeta(bc: bare.ByteCursor, x: SqliteMeta): void;
|
|
194
|
+
type SqliteFenceMismatch = {
|
|
195
|
+
readonly actualMeta: SqliteMeta;
|
|
196
|
+
readonly reason: string;
|
|
197
|
+
};
|
|
198
|
+
declare function readSqliteFenceMismatch(bc: bare.ByteCursor): SqliteFenceMismatch;
|
|
199
|
+
declare function writeSqliteFenceMismatch(bc: bare.ByteCursor, x: SqliteFenceMismatch): void;
|
|
174
200
|
type SqliteDirtyPage = {
|
|
175
201
|
readonly pgno: SqlitePgno;
|
|
176
202
|
readonly bytes: SqlitePageBytes;
|
|
@@ -185,17 +211,33 @@ declare function readSqliteFetchedPage(bc: bare.ByteCursor): SqliteFetchedPage;
|
|
|
185
211
|
declare function writeSqliteFetchedPage(bc: bare.ByteCursor, x: SqliteFetchedPage): void;
|
|
186
212
|
type SqliteGetPagesRequest = {
|
|
187
213
|
readonly actorId: Id;
|
|
214
|
+
readonly generation: SqliteGeneration;
|
|
188
215
|
readonly pgnos: readonly SqlitePgno[];
|
|
189
|
-
readonly expectedGeneration: u64 | null;
|
|
190
|
-
readonly expectedHeadTxid: u64 | null;
|
|
191
216
|
};
|
|
192
217
|
declare function readSqliteGetPagesRequest(bc: bare.ByteCursor): SqliteGetPagesRequest;
|
|
193
218
|
declare function writeSqliteGetPagesRequest(bc: bare.ByteCursor, x: SqliteGetPagesRequest): void;
|
|
219
|
+
type SqliteGetPageRangeRequest = {
|
|
220
|
+
readonly actorId: Id;
|
|
221
|
+
readonly generation: SqliteGeneration;
|
|
222
|
+
readonly startPgno: SqlitePgno;
|
|
223
|
+
readonly maxPages: u32;
|
|
224
|
+
readonly maxBytes: u64;
|
|
225
|
+
};
|
|
226
|
+
declare function readSqliteGetPageRangeRequest(bc: bare.ByteCursor): SqliteGetPageRangeRequest;
|
|
227
|
+
declare function writeSqliteGetPageRangeRequest(bc: bare.ByteCursor, x: SqliteGetPageRangeRequest): void;
|
|
194
228
|
type SqliteGetPagesOk = {
|
|
195
229
|
readonly pages: readonly SqliteFetchedPage[];
|
|
230
|
+
readonly meta: SqliteMeta;
|
|
196
231
|
};
|
|
197
232
|
declare function readSqliteGetPagesOk(bc: bare.ByteCursor): SqliteGetPagesOk;
|
|
198
233
|
declare function writeSqliteGetPagesOk(bc: bare.ByteCursor, x: SqliteGetPagesOk): void;
|
|
234
|
+
type SqliteGetPageRangeOk = {
|
|
235
|
+
readonly startPgno: SqlitePgno;
|
|
236
|
+
readonly pages: readonly SqliteFetchedPage[];
|
|
237
|
+
readonly meta: SqliteMeta;
|
|
238
|
+
};
|
|
239
|
+
declare function readSqliteGetPageRangeOk(bc: bare.ByteCursor): SqliteGetPageRangeOk;
|
|
240
|
+
declare function writeSqliteGetPageRangeOk(bc: bare.ByteCursor, x: SqliteGetPageRangeOk): void;
|
|
199
241
|
type SqliteErrorResponse = {
|
|
200
242
|
readonly message: string;
|
|
201
243
|
};
|
|
@@ -204,32 +246,343 @@ declare function writeSqliteErrorResponse(bc: bare.ByteCursor, x: SqliteErrorRes
|
|
|
204
246
|
type SqliteGetPagesResponse = {
|
|
205
247
|
readonly tag: "SqliteGetPagesOk";
|
|
206
248
|
readonly val: SqliteGetPagesOk;
|
|
249
|
+
} | {
|
|
250
|
+
readonly tag: "SqliteFenceMismatch";
|
|
251
|
+
readonly val: SqliteFenceMismatch;
|
|
207
252
|
} | {
|
|
208
253
|
readonly tag: "SqliteErrorResponse";
|
|
209
254
|
readonly val: SqliteErrorResponse;
|
|
210
255
|
};
|
|
211
256
|
declare function readSqliteGetPagesResponse(bc: bare.ByteCursor): SqliteGetPagesResponse;
|
|
212
257
|
declare function writeSqliteGetPagesResponse(bc: bare.ByteCursor, x: SqliteGetPagesResponse): void;
|
|
258
|
+
type SqliteGetPageRangeResponse = {
|
|
259
|
+
readonly tag: "SqliteGetPageRangeOk";
|
|
260
|
+
readonly val: SqliteGetPageRangeOk;
|
|
261
|
+
} | {
|
|
262
|
+
readonly tag: "SqliteFenceMismatch";
|
|
263
|
+
readonly val: SqliteFenceMismatch;
|
|
264
|
+
} | {
|
|
265
|
+
readonly tag: "SqliteErrorResponse";
|
|
266
|
+
readonly val: SqliteErrorResponse;
|
|
267
|
+
};
|
|
268
|
+
declare function readSqliteGetPageRangeResponse(bc: bare.ByteCursor): SqliteGetPageRangeResponse;
|
|
269
|
+
declare function writeSqliteGetPageRangeResponse(bc: bare.ByteCursor, x: SqliteGetPageRangeResponse): void;
|
|
213
270
|
type SqliteCommitRequest = {
|
|
214
271
|
readonly actorId: Id;
|
|
272
|
+
readonly generation: SqliteGeneration;
|
|
273
|
+
readonly expectedHeadTxid: SqliteTxid;
|
|
215
274
|
readonly dirtyPages: readonly SqliteDirtyPage[];
|
|
216
|
-
readonly
|
|
217
|
-
readonly nowMs: i64;
|
|
218
|
-
readonly expectedGeneration: u64 | null;
|
|
219
|
-
readonly expectedHeadTxid: u64 | null;
|
|
275
|
+
readonly newDbSizePages: u32;
|
|
220
276
|
};
|
|
221
277
|
declare function readSqliteCommitRequest(bc: bare.ByteCursor): SqliteCommitRequest;
|
|
222
278
|
declare function writeSqliteCommitRequest(bc: bare.ByteCursor, x: SqliteCommitRequest): void;
|
|
223
|
-
type SqliteCommitOk =
|
|
279
|
+
type SqliteCommitOk = {
|
|
280
|
+
readonly newHeadTxid: SqliteTxid;
|
|
281
|
+
readonly meta: SqliteMeta;
|
|
282
|
+
};
|
|
283
|
+
declare function readSqliteCommitOk(bc: bare.ByteCursor): SqliteCommitOk;
|
|
284
|
+
declare function writeSqliteCommitOk(bc: bare.ByteCursor, x: SqliteCommitOk): void;
|
|
285
|
+
type SqliteCommitTooLarge = {
|
|
286
|
+
readonly actualSizeBytes: u64;
|
|
287
|
+
readonly maxSizeBytes: u64;
|
|
288
|
+
};
|
|
289
|
+
declare function readSqliteCommitTooLarge(bc: bare.ByteCursor): SqliteCommitTooLarge;
|
|
290
|
+
declare function writeSqliteCommitTooLarge(bc: bare.ByteCursor, x: SqliteCommitTooLarge): void;
|
|
224
291
|
type SqliteCommitResponse = {
|
|
225
292
|
readonly tag: "SqliteCommitOk";
|
|
226
293
|
readonly val: SqliteCommitOk;
|
|
294
|
+
} | {
|
|
295
|
+
readonly tag: "SqliteFenceMismatch";
|
|
296
|
+
readonly val: SqliteFenceMismatch;
|
|
297
|
+
} | {
|
|
298
|
+
readonly tag: "SqliteCommitTooLarge";
|
|
299
|
+
readonly val: SqliteCommitTooLarge;
|
|
227
300
|
} | {
|
|
228
301
|
readonly tag: "SqliteErrorResponse";
|
|
229
302
|
readonly val: SqliteErrorResponse;
|
|
230
303
|
};
|
|
231
304
|
declare function readSqliteCommitResponse(bc: bare.ByteCursor): SqliteCommitResponse;
|
|
232
305
|
declare function writeSqliteCommitResponse(bc: bare.ByteCursor, x: SqliteCommitResponse): void;
|
|
306
|
+
type SqliteCommitStageBeginRequest = {
|
|
307
|
+
readonly actorId: Id;
|
|
308
|
+
readonly generation: SqliteGeneration;
|
|
309
|
+
};
|
|
310
|
+
declare function readSqliteCommitStageBeginRequest(bc: bare.ByteCursor): SqliteCommitStageBeginRequest;
|
|
311
|
+
declare function writeSqliteCommitStageBeginRequest(bc: bare.ByteCursor, x: SqliteCommitStageBeginRequest): void;
|
|
312
|
+
type SqliteCommitStageBeginOk = {
|
|
313
|
+
readonly txid: SqliteTxid;
|
|
314
|
+
};
|
|
315
|
+
declare function readSqliteCommitStageBeginOk(bc: bare.ByteCursor): SqliteCommitStageBeginOk;
|
|
316
|
+
declare function writeSqliteCommitStageBeginOk(bc: bare.ByteCursor, x: SqliteCommitStageBeginOk): void;
|
|
317
|
+
type SqliteCommitStageBeginResponse = {
|
|
318
|
+
readonly tag: "SqliteCommitStageBeginOk";
|
|
319
|
+
readonly val: SqliteCommitStageBeginOk;
|
|
320
|
+
} | {
|
|
321
|
+
readonly tag: "SqliteFenceMismatch";
|
|
322
|
+
readonly val: SqliteFenceMismatch;
|
|
323
|
+
} | {
|
|
324
|
+
readonly tag: "SqliteErrorResponse";
|
|
325
|
+
readonly val: SqliteErrorResponse;
|
|
326
|
+
};
|
|
327
|
+
declare function readSqliteCommitStageBeginResponse(bc: bare.ByteCursor): SqliteCommitStageBeginResponse;
|
|
328
|
+
declare function writeSqliteCommitStageBeginResponse(bc: bare.ByteCursor, x: SqliteCommitStageBeginResponse): void;
|
|
329
|
+
type SqliteCommitStageRequest = {
|
|
330
|
+
readonly actorId: Id;
|
|
331
|
+
readonly generation: SqliteGeneration;
|
|
332
|
+
readonly txid: SqliteTxid;
|
|
333
|
+
readonly chunkIdx: u32;
|
|
334
|
+
readonly bytes: ArrayBuffer;
|
|
335
|
+
readonly isLast: boolean;
|
|
336
|
+
};
|
|
337
|
+
declare function readSqliteCommitStageRequest(bc: bare.ByteCursor): SqliteCommitStageRequest;
|
|
338
|
+
declare function writeSqliteCommitStageRequest(bc: bare.ByteCursor, x: SqliteCommitStageRequest): void;
|
|
339
|
+
type SqliteCommitStageOk = {
|
|
340
|
+
readonly chunkIdxCommitted: u32;
|
|
341
|
+
};
|
|
342
|
+
declare function readSqliteCommitStageOk(bc: bare.ByteCursor): SqliteCommitStageOk;
|
|
343
|
+
declare function writeSqliteCommitStageOk(bc: bare.ByteCursor, x: SqliteCommitStageOk): void;
|
|
344
|
+
type SqliteCommitStageResponse = {
|
|
345
|
+
readonly tag: "SqliteCommitStageOk";
|
|
346
|
+
readonly val: SqliteCommitStageOk;
|
|
347
|
+
} | {
|
|
348
|
+
readonly tag: "SqliteFenceMismatch";
|
|
349
|
+
readonly val: SqliteFenceMismatch;
|
|
350
|
+
} | {
|
|
351
|
+
readonly tag: "SqliteErrorResponse";
|
|
352
|
+
readonly val: SqliteErrorResponse;
|
|
353
|
+
};
|
|
354
|
+
declare function readSqliteCommitStageResponse(bc: bare.ByteCursor): SqliteCommitStageResponse;
|
|
355
|
+
declare function writeSqliteCommitStageResponse(bc: bare.ByteCursor, x: SqliteCommitStageResponse): void;
|
|
356
|
+
type SqliteCommitFinalizeRequest = {
|
|
357
|
+
readonly actorId: Id;
|
|
358
|
+
readonly generation: SqliteGeneration;
|
|
359
|
+
readonly expectedHeadTxid: SqliteTxid;
|
|
360
|
+
readonly txid: SqliteTxid;
|
|
361
|
+
readonly newDbSizePages: u32;
|
|
362
|
+
};
|
|
363
|
+
declare function readSqliteCommitFinalizeRequest(bc: bare.ByteCursor): SqliteCommitFinalizeRequest;
|
|
364
|
+
declare function writeSqliteCommitFinalizeRequest(bc: bare.ByteCursor, x: SqliteCommitFinalizeRequest): void;
|
|
365
|
+
type SqliteCommitFinalizeOk = {
|
|
366
|
+
readonly newHeadTxid: SqliteTxid;
|
|
367
|
+
readonly meta: SqliteMeta;
|
|
368
|
+
};
|
|
369
|
+
declare function readSqliteCommitFinalizeOk(bc: bare.ByteCursor): SqliteCommitFinalizeOk;
|
|
370
|
+
declare function writeSqliteCommitFinalizeOk(bc: bare.ByteCursor, x: SqliteCommitFinalizeOk): void;
|
|
371
|
+
type SqliteStageNotFound = {
|
|
372
|
+
readonly stageId: SqliteStageId;
|
|
373
|
+
};
|
|
374
|
+
declare function readSqliteStageNotFound(bc: bare.ByteCursor): SqliteStageNotFound;
|
|
375
|
+
declare function writeSqliteStageNotFound(bc: bare.ByteCursor, x: SqliteStageNotFound): void;
|
|
376
|
+
type SqliteCommitFinalizeResponse = {
|
|
377
|
+
readonly tag: "SqliteCommitFinalizeOk";
|
|
378
|
+
readonly val: SqliteCommitFinalizeOk;
|
|
379
|
+
} | {
|
|
380
|
+
readonly tag: "SqliteFenceMismatch";
|
|
381
|
+
readonly val: SqliteFenceMismatch;
|
|
382
|
+
} | {
|
|
383
|
+
readonly tag: "SqliteStageNotFound";
|
|
384
|
+
readonly val: SqliteStageNotFound;
|
|
385
|
+
} | {
|
|
386
|
+
readonly tag: "SqliteErrorResponse";
|
|
387
|
+
readonly val: SqliteErrorResponse;
|
|
388
|
+
};
|
|
389
|
+
declare function readSqliteCommitFinalizeResponse(bc: bare.ByteCursor): SqliteCommitFinalizeResponse;
|
|
390
|
+
declare function writeSqliteCommitFinalizeResponse(bc: bare.ByteCursor, x: SqliteCommitFinalizeResponse): void;
|
|
391
|
+
type SqlitePreloadHintRange = {
|
|
392
|
+
readonly startPgno: SqlitePgno;
|
|
393
|
+
readonly pageCount: u32;
|
|
394
|
+
};
|
|
395
|
+
declare function readSqlitePreloadHintRange(bc: bare.ByteCursor): SqlitePreloadHintRange;
|
|
396
|
+
declare function writeSqlitePreloadHintRange(bc: bare.ByteCursor, x: SqlitePreloadHintRange): void;
|
|
397
|
+
type SqlitePreloadHints = {
|
|
398
|
+
readonly pgnos: readonly SqlitePgno[];
|
|
399
|
+
readonly ranges: readonly SqlitePreloadHintRange[];
|
|
400
|
+
};
|
|
401
|
+
declare function readSqlitePreloadHints(bc: bare.ByteCursor): SqlitePreloadHints;
|
|
402
|
+
declare function writeSqlitePreloadHints(bc: bare.ByteCursor, x: SqlitePreloadHints): void;
|
|
403
|
+
type SqlitePersistPreloadHintsRequest = {
|
|
404
|
+
readonly actorId: Id;
|
|
405
|
+
readonly generation: SqliteGeneration;
|
|
406
|
+
readonly hints: SqlitePreloadHints;
|
|
407
|
+
};
|
|
408
|
+
declare function readSqlitePersistPreloadHintsRequest(bc: bare.ByteCursor): SqlitePersistPreloadHintsRequest;
|
|
409
|
+
declare function writeSqlitePersistPreloadHintsRequest(bc: bare.ByteCursor, x: SqlitePersistPreloadHintsRequest): void;
|
|
410
|
+
type SqlitePersistPreloadHintsOk = null;
|
|
411
|
+
type SqlitePersistPreloadHintsResponse = {
|
|
412
|
+
readonly tag: "SqlitePersistPreloadHintsOk";
|
|
413
|
+
readonly val: SqlitePersistPreloadHintsOk;
|
|
414
|
+
} | {
|
|
415
|
+
readonly tag: "SqliteFenceMismatch";
|
|
416
|
+
readonly val: SqliteFenceMismatch;
|
|
417
|
+
} | {
|
|
418
|
+
readonly tag: "SqliteErrorResponse";
|
|
419
|
+
readonly val: SqliteErrorResponse;
|
|
420
|
+
};
|
|
421
|
+
declare function readSqlitePersistPreloadHintsResponse(bc: bare.ByteCursor): SqlitePersistPreloadHintsResponse;
|
|
422
|
+
declare function writeSqlitePersistPreloadHintsResponse(bc: bare.ByteCursor, x: SqlitePersistPreloadHintsResponse): void;
|
|
423
|
+
type SqliteStartupData = {
|
|
424
|
+
readonly generation: SqliteGeneration;
|
|
425
|
+
readonly meta: SqliteMeta;
|
|
426
|
+
readonly preloadedPages: readonly SqliteFetchedPage[];
|
|
427
|
+
};
|
|
428
|
+
declare function readSqliteStartupData(bc: bare.ByteCursor): SqliteStartupData;
|
|
429
|
+
declare function writeSqliteStartupData(bc: bare.ByteCursor, x: SqliteStartupData): void;
|
|
430
|
+
type SqliteValueNull = null;
|
|
431
|
+
type SqliteValueInteger = {
|
|
432
|
+
readonly value: i64;
|
|
433
|
+
};
|
|
434
|
+
declare function readSqliteValueInteger(bc: bare.ByteCursor): SqliteValueInteger;
|
|
435
|
+
declare function writeSqliteValueInteger(bc: bare.ByteCursor, x: SqliteValueInteger): void;
|
|
436
|
+
type SqliteValueFloat = {
|
|
437
|
+
readonly value: ArrayBuffer;
|
|
438
|
+
};
|
|
439
|
+
declare function readSqliteValueFloat(bc: bare.ByteCursor): SqliteValueFloat;
|
|
440
|
+
declare function writeSqliteValueFloat(bc: bare.ByteCursor, x: SqliteValueFloat): void;
|
|
441
|
+
type SqliteValueText = {
|
|
442
|
+
readonly value: string;
|
|
443
|
+
};
|
|
444
|
+
declare function readSqliteValueText(bc: bare.ByteCursor): SqliteValueText;
|
|
445
|
+
declare function writeSqliteValueText(bc: bare.ByteCursor, x: SqliteValueText): void;
|
|
446
|
+
type SqliteValueBlob = {
|
|
447
|
+
readonly value: ArrayBuffer;
|
|
448
|
+
};
|
|
449
|
+
declare function readSqliteValueBlob(bc: bare.ByteCursor): SqliteValueBlob;
|
|
450
|
+
declare function writeSqliteValueBlob(bc: bare.ByteCursor, x: SqliteValueBlob): void;
|
|
451
|
+
type SqliteBindParam = {
|
|
452
|
+
readonly tag: "SqliteValueNull";
|
|
453
|
+
readonly val: SqliteValueNull;
|
|
454
|
+
} | {
|
|
455
|
+
readonly tag: "SqliteValueInteger";
|
|
456
|
+
readonly val: SqliteValueInteger;
|
|
457
|
+
} | {
|
|
458
|
+
readonly tag: "SqliteValueFloat";
|
|
459
|
+
readonly val: SqliteValueFloat;
|
|
460
|
+
} | {
|
|
461
|
+
readonly tag: "SqliteValueText";
|
|
462
|
+
readonly val: SqliteValueText;
|
|
463
|
+
} | {
|
|
464
|
+
readonly tag: "SqliteValueBlob";
|
|
465
|
+
readonly val: SqliteValueBlob;
|
|
466
|
+
};
|
|
467
|
+
declare function readSqliteBindParam(bc: bare.ByteCursor): SqliteBindParam;
|
|
468
|
+
declare function writeSqliteBindParam(bc: bare.ByteCursor, x: SqliteBindParam): void;
|
|
469
|
+
type SqliteColumnValue = {
|
|
470
|
+
readonly tag: "SqliteValueNull";
|
|
471
|
+
readonly val: SqliteValueNull;
|
|
472
|
+
} | {
|
|
473
|
+
readonly tag: "SqliteValueInteger";
|
|
474
|
+
readonly val: SqliteValueInteger;
|
|
475
|
+
} | {
|
|
476
|
+
readonly tag: "SqliteValueFloat";
|
|
477
|
+
readonly val: SqliteValueFloat;
|
|
478
|
+
} | {
|
|
479
|
+
readonly tag: "SqliteValueText";
|
|
480
|
+
readonly val: SqliteValueText;
|
|
481
|
+
} | {
|
|
482
|
+
readonly tag: "SqliteValueBlob";
|
|
483
|
+
readonly val: SqliteValueBlob;
|
|
484
|
+
};
|
|
485
|
+
declare function readSqliteColumnValue(bc: bare.ByteCursor): SqliteColumnValue;
|
|
486
|
+
declare function writeSqliteColumnValue(bc: bare.ByteCursor, x: SqliteColumnValue): void;
|
|
487
|
+
type SqliteQueryResult = {
|
|
488
|
+
readonly columns: readonly string[];
|
|
489
|
+
readonly rows: readonly (readonly SqliteColumnValue[])[];
|
|
490
|
+
};
|
|
491
|
+
declare function readSqliteQueryResult(bc: bare.ByteCursor): SqliteQueryResult;
|
|
492
|
+
declare function writeSqliteQueryResult(bc: bare.ByteCursor, x: SqliteQueryResult): void;
|
|
493
|
+
declare enum SqliteExecuteRoute {
|
|
494
|
+
Read = "Read",
|
|
495
|
+
Write = "Write",
|
|
496
|
+
WriteFallback = "WriteFallback"
|
|
497
|
+
}
|
|
498
|
+
declare function readSqliteExecuteRoute(bc: bare.ByteCursor): SqliteExecuteRoute;
|
|
499
|
+
declare function writeSqliteExecuteRoute(bc: bare.ByteCursor, x: SqliteExecuteRoute): void;
|
|
500
|
+
type SqliteExecuteResult = {
|
|
501
|
+
readonly columns: readonly string[];
|
|
502
|
+
readonly rows: readonly (readonly SqliteColumnValue[])[];
|
|
503
|
+
readonly changes: i64;
|
|
504
|
+
readonly lastInsertRowId: i64 | null;
|
|
505
|
+
readonly route: SqliteExecuteRoute;
|
|
506
|
+
};
|
|
507
|
+
declare function readSqliteExecuteResult(bc: bare.ByteCursor): SqliteExecuteResult;
|
|
508
|
+
declare function writeSqliteExecuteResult(bc: bare.ByteCursor, x: SqliteExecuteResult): void;
|
|
509
|
+
type SqliteExecRequest = {
|
|
510
|
+
readonly namespaceId: Id;
|
|
511
|
+
readonly actorId: Id;
|
|
512
|
+
readonly generation: SqliteGeneration;
|
|
513
|
+
readonly sql: string;
|
|
514
|
+
};
|
|
515
|
+
declare function readSqliteExecRequest(bc: bare.ByteCursor): SqliteExecRequest;
|
|
516
|
+
declare function writeSqliteExecRequest(bc: bare.ByteCursor, x: SqliteExecRequest): void;
|
|
517
|
+
type SqliteExecuteRequest = {
|
|
518
|
+
readonly namespaceId: Id;
|
|
519
|
+
readonly actorId: Id;
|
|
520
|
+
readonly generation: SqliteGeneration;
|
|
521
|
+
readonly sql: string;
|
|
522
|
+
readonly params: readonly SqliteBindParam[] | null;
|
|
523
|
+
};
|
|
524
|
+
declare function readSqliteExecuteRequest(bc: bare.ByteCursor): SqliteExecuteRequest;
|
|
525
|
+
declare function writeSqliteExecuteRequest(bc: bare.ByteCursor, x: SqliteExecuteRequest): void;
|
|
526
|
+
type SqliteExecuteWriteRequest = {
|
|
527
|
+
readonly namespaceId: Id;
|
|
528
|
+
readonly actorId: Id;
|
|
529
|
+
readonly generation: SqliteGeneration;
|
|
530
|
+
readonly sql: string;
|
|
531
|
+
readonly params: readonly SqliteBindParam[] | null;
|
|
532
|
+
};
|
|
533
|
+
declare function readSqliteExecuteWriteRequest(bc: bare.ByteCursor): SqliteExecuteWriteRequest;
|
|
534
|
+
declare function writeSqliteExecuteWriteRequest(bc: bare.ByteCursor, x: SqliteExecuteWriteRequest): void;
|
|
535
|
+
type SqliteExecOk = {
|
|
536
|
+
readonly result: SqliteQueryResult;
|
|
537
|
+
};
|
|
538
|
+
declare function readSqliteExecOk(bc: bare.ByteCursor): SqliteExecOk;
|
|
539
|
+
declare function writeSqliteExecOk(bc: bare.ByteCursor, x: SqliteExecOk): void;
|
|
540
|
+
type SqliteExecuteOk = {
|
|
541
|
+
readonly result: SqliteExecuteResult;
|
|
542
|
+
};
|
|
543
|
+
declare function readSqliteExecuteOk(bc: bare.ByteCursor): SqliteExecuteOk;
|
|
544
|
+
declare function writeSqliteExecuteOk(bc: bare.ByteCursor, x: SqliteExecuteOk): void;
|
|
545
|
+
type SqliteExecuteWriteOk = {
|
|
546
|
+
readonly result: SqliteExecuteResult;
|
|
547
|
+
};
|
|
548
|
+
declare function readSqliteExecuteWriteOk(bc: bare.ByteCursor): SqliteExecuteWriteOk;
|
|
549
|
+
declare function writeSqliteExecuteWriteOk(bc: bare.ByteCursor, x: SqliteExecuteWriteOk): void;
|
|
550
|
+
type SqliteExecResponse = {
|
|
551
|
+
readonly tag: "SqliteExecOk";
|
|
552
|
+
readonly val: SqliteExecOk;
|
|
553
|
+
} | {
|
|
554
|
+
readonly tag: "SqliteFenceMismatch";
|
|
555
|
+
readonly val: SqliteFenceMismatch;
|
|
556
|
+
} | {
|
|
557
|
+
readonly tag: "SqliteErrorResponse";
|
|
558
|
+
readonly val: SqliteErrorResponse;
|
|
559
|
+
};
|
|
560
|
+
declare function readSqliteExecResponse(bc: bare.ByteCursor): SqliteExecResponse;
|
|
561
|
+
declare function writeSqliteExecResponse(bc: bare.ByteCursor, x: SqliteExecResponse): void;
|
|
562
|
+
type SqliteExecuteResponse = {
|
|
563
|
+
readonly tag: "SqliteExecuteOk";
|
|
564
|
+
readonly val: SqliteExecuteOk;
|
|
565
|
+
} | {
|
|
566
|
+
readonly tag: "SqliteFenceMismatch";
|
|
567
|
+
readonly val: SqliteFenceMismatch;
|
|
568
|
+
} | {
|
|
569
|
+
readonly tag: "SqliteErrorResponse";
|
|
570
|
+
readonly val: SqliteErrorResponse;
|
|
571
|
+
};
|
|
572
|
+
declare function readSqliteExecuteResponse(bc: bare.ByteCursor): SqliteExecuteResponse;
|
|
573
|
+
declare function writeSqliteExecuteResponse(bc: bare.ByteCursor, x: SqliteExecuteResponse): void;
|
|
574
|
+
type SqliteExecuteWriteResponse = {
|
|
575
|
+
readonly tag: "SqliteExecuteWriteOk";
|
|
576
|
+
readonly val: SqliteExecuteWriteOk;
|
|
577
|
+
} | {
|
|
578
|
+
readonly tag: "SqliteFenceMismatch";
|
|
579
|
+
readonly val: SqliteFenceMismatch;
|
|
580
|
+
} | {
|
|
581
|
+
readonly tag: "SqliteErrorResponse";
|
|
582
|
+
readonly val: SqliteErrorResponse;
|
|
583
|
+
};
|
|
584
|
+
declare function readSqliteExecuteWriteResponse(bc: bare.ByteCursor): SqliteExecuteWriteResponse;
|
|
585
|
+
declare function writeSqliteExecuteWriteResponse(bc: bare.ByteCursor, x: SqliteExecuteWriteResponse): void;
|
|
233
586
|
/**
|
|
234
587
|
* Core
|
|
235
588
|
*/
|
|
@@ -352,6 +705,7 @@ type CommandStartActor = {
|
|
|
352
705
|
readonly config: ActorConfig;
|
|
353
706
|
readonly hibernatingRequests: readonly HibernatingRequest[];
|
|
354
707
|
readonly preloadedKv: PreloadedKv | null;
|
|
708
|
+
readonly sqliteStartupData: SqliteStartupData | null;
|
|
355
709
|
};
|
|
356
710
|
declare function readCommandStartActor(bc: bare.ByteCursor): CommandStartActor;
|
|
357
711
|
declare function writeCommandStartActor(bc: bare.ByteCursor, x: CommandStartActor): void;
|
|
@@ -614,12 +968,60 @@ type ToRivetSqliteGetPagesRequest = {
|
|
|
614
968
|
};
|
|
615
969
|
declare function readToRivetSqliteGetPagesRequest(bc: bare.ByteCursor): ToRivetSqliteGetPagesRequest;
|
|
616
970
|
declare function writeToRivetSqliteGetPagesRequest(bc: bare.ByteCursor, x: ToRivetSqliteGetPagesRequest): void;
|
|
971
|
+
type ToRivetSqliteGetPageRangeRequest = {
|
|
972
|
+
readonly requestId: u32;
|
|
973
|
+
readonly data: SqliteGetPageRangeRequest;
|
|
974
|
+
};
|
|
975
|
+
declare function readToRivetSqliteGetPageRangeRequest(bc: bare.ByteCursor): ToRivetSqliteGetPageRangeRequest;
|
|
976
|
+
declare function writeToRivetSqliteGetPageRangeRequest(bc: bare.ByteCursor, x: ToRivetSqliteGetPageRangeRequest): void;
|
|
617
977
|
type ToRivetSqliteCommitRequest = {
|
|
618
978
|
readonly requestId: u32;
|
|
619
979
|
readonly data: SqliteCommitRequest;
|
|
620
980
|
};
|
|
621
981
|
declare function readToRivetSqliteCommitRequest(bc: bare.ByteCursor): ToRivetSqliteCommitRequest;
|
|
622
982
|
declare function writeToRivetSqliteCommitRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitRequest): void;
|
|
983
|
+
type ToRivetSqliteCommitStageBeginRequest = {
|
|
984
|
+
readonly requestId: u32;
|
|
985
|
+
readonly data: SqliteCommitStageBeginRequest;
|
|
986
|
+
};
|
|
987
|
+
declare function readToRivetSqliteCommitStageBeginRequest(bc: bare.ByteCursor): ToRivetSqliteCommitStageBeginRequest;
|
|
988
|
+
declare function writeToRivetSqliteCommitStageBeginRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitStageBeginRequest): void;
|
|
989
|
+
type ToRivetSqliteCommitStageRequest = {
|
|
990
|
+
readonly requestId: u32;
|
|
991
|
+
readonly data: SqliteCommitStageRequest;
|
|
992
|
+
};
|
|
993
|
+
declare function readToRivetSqliteCommitStageRequest(bc: bare.ByteCursor): ToRivetSqliteCommitStageRequest;
|
|
994
|
+
declare function writeToRivetSqliteCommitStageRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitStageRequest): void;
|
|
995
|
+
type ToRivetSqliteCommitFinalizeRequest = {
|
|
996
|
+
readonly requestId: u32;
|
|
997
|
+
readonly data: SqliteCommitFinalizeRequest;
|
|
998
|
+
};
|
|
999
|
+
declare function readToRivetSqliteCommitFinalizeRequest(bc: bare.ByteCursor): ToRivetSqliteCommitFinalizeRequest;
|
|
1000
|
+
declare function writeToRivetSqliteCommitFinalizeRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitFinalizeRequest): void;
|
|
1001
|
+
type ToRivetSqlitePersistPreloadHintsRequest = {
|
|
1002
|
+
readonly requestId: u32;
|
|
1003
|
+
readonly data: SqlitePersistPreloadHintsRequest;
|
|
1004
|
+
};
|
|
1005
|
+
declare function readToRivetSqlitePersistPreloadHintsRequest(bc: bare.ByteCursor): ToRivetSqlitePersistPreloadHintsRequest;
|
|
1006
|
+
declare function writeToRivetSqlitePersistPreloadHintsRequest(bc: bare.ByteCursor, x: ToRivetSqlitePersistPreloadHintsRequest): void;
|
|
1007
|
+
type ToRivetSqliteExecRequest = {
|
|
1008
|
+
readonly requestId: u32;
|
|
1009
|
+
readonly data: SqliteExecRequest;
|
|
1010
|
+
};
|
|
1011
|
+
declare function readToRivetSqliteExecRequest(bc: bare.ByteCursor): ToRivetSqliteExecRequest;
|
|
1012
|
+
declare function writeToRivetSqliteExecRequest(bc: bare.ByteCursor, x: ToRivetSqliteExecRequest): void;
|
|
1013
|
+
type ToRivetSqliteExecuteRequest = {
|
|
1014
|
+
readonly requestId: u32;
|
|
1015
|
+
readonly data: SqliteExecuteRequest;
|
|
1016
|
+
};
|
|
1017
|
+
declare function readToRivetSqliteExecuteRequest(bc: bare.ByteCursor): ToRivetSqliteExecuteRequest;
|
|
1018
|
+
declare function writeToRivetSqliteExecuteRequest(bc: bare.ByteCursor, x: ToRivetSqliteExecuteRequest): void;
|
|
1019
|
+
type ToRivetSqliteExecuteWriteRequest = {
|
|
1020
|
+
readonly requestId: u32;
|
|
1021
|
+
readonly data: SqliteExecuteWriteRequest;
|
|
1022
|
+
};
|
|
1023
|
+
declare function readToRivetSqliteExecuteWriteRequest(bc: bare.ByteCursor): ToRivetSqliteExecuteWriteRequest;
|
|
1024
|
+
declare function writeToRivetSqliteExecuteWriteRequest(bc: bare.ByteCursor, x: ToRivetSqliteExecuteWriteRequest): void;
|
|
623
1025
|
type ToRivet = {
|
|
624
1026
|
readonly tag: "ToRivetMetadata";
|
|
625
1027
|
readonly val: ToRivetMetadata;
|
|
@@ -644,9 +1046,33 @@ type ToRivet = {
|
|
|
644
1046
|
} | {
|
|
645
1047
|
readonly tag: "ToRivetSqliteGetPagesRequest";
|
|
646
1048
|
readonly val: ToRivetSqliteGetPagesRequest;
|
|
1049
|
+
} | {
|
|
1050
|
+
readonly tag: "ToRivetSqliteGetPageRangeRequest";
|
|
1051
|
+
readonly val: ToRivetSqliteGetPageRangeRequest;
|
|
647
1052
|
} | {
|
|
648
1053
|
readonly tag: "ToRivetSqliteCommitRequest";
|
|
649
1054
|
readonly val: ToRivetSqliteCommitRequest;
|
|
1055
|
+
} | {
|
|
1056
|
+
readonly tag: "ToRivetSqliteCommitStageBeginRequest";
|
|
1057
|
+
readonly val: ToRivetSqliteCommitStageBeginRequest;
|
|
1058
|
+
} | {
|
|
1059
|
+
readonly tag: "ToRivetSqliteCommitStageRequest";
|
|
1060
|
+
readonly val: ToRivetSqliteCommitStageRequest;
|
|
1061
|
+
} | {
|
|
1062
|
+
readonly tag: "ToRivetSqliteCommitFinalizeRequest";
|
|
1063
|
+
readonly val: ToRivetSqliteCommitFinalizeRequest;
|
|
1064
|
+
} | {
|
|
1065
|
+
readonly tag: "ToRivetSqlitePersistPreloadHintsRequest";
|
|
1066
|
+
readonly val: ToRivetSqlitePersistPreloadHintsRequest;
|
|
1067
|
+
} | {
|
|
1068
|
+
readonly tag: "ToRivetSqliteExecRequest";
|
|
1069
|
+
readonly val: ToRivetSqliteExecRequest;
|
|
1070
|
+
} | {
|
|
1071
|
+
readonly tag: "ToRivetSqliteExecuteRequest";
|
|
1072
|
+
readonly val: ToRivetSqliteExecuteRequest;
|
|
1073
|
+
} | {
|
|
1074
|
+
readonly tag: "ToRivetSqliteExecuteWriteRequest";
|
|
1075
|
+
readonly val: ToRivetSqliteExecuteWriteRequest;
|
|
650
1076
|
};
|
|
651
1077
|
declare function readToRivet(bc: bare.ByteCursor): ToRivet;
|
|
652
1078
|
declare function writeToRivet(bc: bare.ByteCursor, x: ToRivet): void;
|
|
@@ -687,12 +1113,60 @@ type ToEnvoySqliteGetPagesResponse = {
|
|
|
687
1113
|
};
|
|
688
1114
|
declare function readToEnvoySqliteGetPagesResponse(bc: bare.ByteCursor): ToEnvoySqliteGetPagesResponse;
|
|
689
1115
|
declare function writeToEnvoySqliteGetPagesResponse(bc: bare.ByteCursor, x: ToEnvoySqliteGetPagesResponse): void;
|
|
1116
|
+
type ToEnvoySqliteGetPageRangeResponse = {
|
|
1117
|
+
readonly requestId: u32;
|
|
1118
|
+
readonly data: SqliteGetPageRangeResponse;
|
|
1119
|
+
};
|
|
1120
|
+
declare function readToEnvoySqliteGetPageRangeResponse(bc: bare.ByteCursor): ToEnvoySqliteGetPageRangeResponse;
|
|
1121
|
+
declare function writeToEnvoySqliteGetPageRangeResponse(bc: bare.ByteCursor, x: ToEnvoySqliteGetPageRangeResponse): void;
|
|
690
1122
|
type ToEnvoySqliteCommitResponse = {
|
|
691
1123
|
readonly requestId: u32;
|
|
692
1124
|
readonly data: SqliteCommitResponse;
|
|
693
1125
|
};
|
|
694
1126
|
declare function readToEnvoySqliteCommitResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitResponse;
|
|
695
1127
|
declare function writeToEnvoySqliteCommitResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitResponse): void;
|
|
1128
|
+
type ToEnvoySqliteCommitStageBeginResponse = {
|
|
1129
|
+
readonly requestId: u32;
|
|
1130
|
+
readonly data: SqliteCommitStageBeginResponse;
|
|
1131
|
+
};
|
|
1132
|
+
declare function readToEnvoySqliteCommitStageBeginResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitStageBeginResponse;
|
|
1133
|
+
declare function writeToEnvoySqliteCommitStageBeginResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitStageBeginResponse): void;
|
|
1134
|
+
type ToEnvoySqliteCommitStageResponse = {
|
|
1135
|
+
readonly requestId: u32;
|
|
1136
|
+
readonly data: SqliteCommitStageResponse;
|
|
1137
|
+
};
|
|
1138
|
+
declare function readToEnvoySqliteCommitStageResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitStageResponse;
|
|
1139
|
+
declare function writeToEnvoySqliteCommitStageResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitStageResponse): void;
|
|
1140
|
+
type ToEnvoySqliteCommitFinalizeResponse = {
|
|
1141
|
+
readonly requestId: u32;
|
|
1142
|
+
readonly data: SqliteCommitFinalizeResponse;
|
|
1143
|
+
};
|
|
1144
|
+
declare function readToEnvoySqliteCommitFinalizeResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitFinalizeResponse;
|
|
1145
|
+
declare function writeToEnvoySqliteCommitFinalizeResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitFinalizeResponse): void;
|
|
1146
|
+
type ToEnvoySqlitePersistPreloadHintsResponse = {
|
|
1147
|
+
readonly requestId: u32;
|
|
1148
|
+
readonly data: SqlitePersistPreloadHintsResponse;
|
|
1149
|
+
};
|
|
1150
|
+
declare function readToEnvoySqlitePersistPreloadHintsResponse(bc: bare.ByteCursor): ToEnvoySqlitePersistPreloadHintsResponse;
|
|
1151
|
+
declare function writeToEnvoySqlitePersistPreloadHintsResponse(bc: bare.ByteCursor, x: ToEnvoySqlitePersistPreloadHintsResponse): void;
|
|
1152
|
+
type ToEnvoySqliteExecResponse = {
|
|
1153
|
+
readonly requestId: u32;
|
|
1154
|
+
readonly data: SqliteExecResponse;
|
|
1155
|
+
};
|
|
1156
|
+
declare function readToEnvoySqliteExecResponse(bc: bare.ByteCursor): ToEnvoySqliteExecResponse;
|
|
1157
|
+
declare function writeToEnvoySqliteExecResponse(bc: bare.ByteCursor, x: ToEnvoySqliteExecResponse): void;
|
|
1158
|
+
type ToEnvoySqliteExecuteResponse = {
|
|
1159
|
+
readonly requestId: u32;
|
|
1160
|
+
readonly data: SqliteExecuteResponse;
|
|
1161
|
+
};
|
|
1162
|
+
declare function readToEnvoySqliteExecuteResponse(bc: bare.ByteCursor): ToEnvoySqliteExecuteResponse;
|
|
1163
|
+
declare function writeToEnvoySqliteExecuteResponse(bc: bare.ByteCursor, x: ToEnvoySqliteExecuteResponse): void;
|
|
1164
|
+
type ToEnvoySqliteExecuteWriteResponse = {
|
|
1165
|
+
readonly requestId: u32;
|
|
1166
|
+
readonly data: SqliteExecuteWriteResponse;
|
|
1167
|
+
};
|
|
1168
|
+
declare function readToEnvoySqliteExecuteWriteResponse(bc: bare.ByteCursor): ToEnvoySqliteExecuteWriteResponse;
|
|
1169
|
+
declare function writeToEnvoySqliteExecuteWriteResponse(bc: bare.ByteCursor, x: ToEnvoySqliteExecuteWriteResponse): void;
|
|
696
1170
|
type ToEnvoy = {
|
|
697
1171
|
readonly tag: "ToEnvoyInit";
|
|
698
1172
|
readonly val: ToEnvoyInit;
|
|
@@ -714,9 +1188,33 @@ type ToEnvoy = {
|
|
|
714
1188
|
} | {
|
|
715
1189
|
readonly tag: "ToEnvoySqliteGetPagesResponse";
|
|
716
1190
|
readonly val: ToEnvoySqliteGetPagesResponse;
|
|
1191
|
+
} | {
|
|
1192
|
+
readonly tag: "ToEnvoySqliteGetPageRangeResponse";
|
|
1193
|
+
readonly val: ToEnvoySqliteGetPageRangeResponse;
|
|
717
1194
|
} | {
|
|
718
1195
|
readonly tag: "ToEnvoySqliteCommitResponse";
|
|
719
1196
|
readonly val: ToEnvoySqliteCommitResponse;
|
|
1197
|
+
} | {
|
|
1198
|
+
readonly tag: "ToEnvoySqliteCommitStageBeginResponse";
|
|
1199
|
+
readonly val: ToEnvoySqliteCommitStageBeginResponse;
|
|
1200
|
+
} | {
|
|
1201
|
+
readonly tag: "ToEnvoySqliteCommitStageResponse";
|
|
1202
|
+
readonly val: ToEnvoySqliteCommitStageResponse;
|
|
1203
|
+
} | {
|
|
1204
|
+
readonly tag: "ToEnvoySqliteCommitFinalizeResponse";
|
|
1205
|
+
readonly val: ToEnvoySqliteCommitFinalizeResponse;
|
|
1206
|
+
} | {
|
|
1207
|
+
readonly tag: "ToEnvoySqlitePersistPreloadHintsResponse";
|
|
1208
|
+
readonly val: ToEnvoySqlitePersistPreloadHintsResponse;
|
|
1209
|
+
} | {
|
|
1210
|
+
readonly tag: "ToEnvoySqliteExecResponse";
|
|
1211
|
+
readonly val: ToEnvoySqliteExecResponse;
|
|
1212
|
+
} | {
|
|
1213
|
+
readonly tag: "ToEnvoySqliteExecuteResponse";
|
|
1214
|
+
readonly val: ToEnvoySqliteExecuteResponse;
|
|
1215
|
+
} | {
|
|
1216
|
+
readonly tag: "ToEnvoySqliteExecuteWriteResponse";
|
|
1217
|
+
readonly val: ToEnvoySqliteExecuteWriteResponse;
|
|
720
1218
|
};
|
|
721
1219
|
declare function readToEnvoy(bc: bare.ByteCursor): ToEnvoy;
|
|
722
1220
|
declare function writeToEnvoy(bc: bare.ByteCursor, x: ToEnvoy): void;
|
|
@@ -792,6 +1290,6 @@ declare function readToOutbound(bc: bare.ByteCursor): ToOutbound;
|
|
|
792
1290
|
declare function writeToOutbound(bc: bare.ByteCursor, x: ToOutbound): void;
|
|
793
1291
|
declare function encodeToOutbound(x: ToOutbound, config?: Partial<bare.Config>): Uint8Array;
|
|
794
1292
|
declare function decodeToOutbound(bytes: Uint8Array): ToOutbound;
|
|
795
|
-
declare const VERSION =
|
|
1293
|
+
declare const VERSION = 4;
|
|
796
1294
|
|
|
797
|
-
export { type ActorCheckpoint, type ActorCommandKeyData, type ActorConfig, type ActorIntent, type ActorIntentSleep, type ActorIntentStop, type ActorName, type ActorState, type ActorStateRunning, type ActorStateStopped, type Command, type CommandStartActor, type CommandStopActor, type CommandWrapper, type Event, type EventActorIntent, type EventActorSetAlarm, type EventActorStateUpdate, type EventWrapper, type GatewayId, type HibernatingRequest, type Id, type Json, type KvDeleteRangeRequest, type KvDeleteRequest, type KvDeleteResponse, type KvDropRequest, type KvDropResponse, type KvErrorResponse, type KvGetRequest, type KvGetResponse, type KvKey, type KvListAllQuery, type KvListPrefixQuery, type KvListQuery, type KvListRangeQuery, type KvListRequest, type KvListResponse, type KvMetadata, type KvPutRequest, type KvPutResponse, type KvRequestData, type KvResponseData, type KvValue, type MessageId, type MessageIndex, type PreloadedKv, type PreloadedKvEntry, type ProtocolMetadata, type RequestId, type SqliteCommitOk, type SqliteCommitRequest, type SqliteCommitResponse, type SqliteDirtyPage, type SqliteErrorResponse, type SqliteFetchedPage, type SqliteGetPagesOk, type SqliteGetPagesRequest, type SqliteGetPagesResponse, type SqlitePageBytes, type SqlitePgno, StopActorReason, StopCode, type ToEnvoy, type ToEnvoyAckEvents, type ToEnvoyCommands, type ToEnvoyConn, type ToEnvoyConnClose, type ToEnvoyConnPing, type ToEnvoyInit, type ToEnvoyKvResponse, type ToEnvoyPing, type ToEnvoyRequestAbort, type ToEnvoyRequestChunk, type ToEnvoyRequestStart, type ToEnvoySqliteCommitResponse, type ToEnvoySqliteGetPagesResponse, type ToEnvoyTunnelMessage, type ToEnvoyTunnelMessageKind, type ToEnvoyWebSocketClose, type ToEnvoyWebSocketMessage, type ToEnvoyWebSocketOpen, type ToGateway, type ToGatewayPong, type ToOutbound, type ToOutboundActorStart, type ToRivet, type ToRivetAckCommands, type ToRivetEvents, type ToRivetKvRequest, type ToRivetMetadata, type ToRivetPong, type ToRivetResponseAbort, type ToRivetResponseChunk, type ToRivetResponseStart, type ToRivetSqliteCommitRequest, type ToRivetSqliteGetPagesRequest, type ToRivetStopping, type ToRivetTunnelMessage, type ToRivetTunnelMessageKind, type ToRivetWebSocketClose, type ToRivetWebSocketMessage, type ToRivetWebSocketMessageAck, type ToRivetWebSocketOpen, VERSION, decodeActorCommandKeyData, decodeToEnvoy, decodeToEnvoyConn, decodeToGateway, decodeToOutbound, decodeToRivet, encodeActorCommandKeyData, encodeToEnvoy, encodeToEnvoyConn, encodeToGateway, encodeToOutbound, encodeToRivet, type i64, readActorCheckpoint, readActorCommandKeyData, readActorConfig, readActorIntent, readActorName, readActorState, readActorStateStopped, readCommand, readCommandStartActor, readCommandStopActor, readCommandWrapper, readEvent, readEventActorIntent, readEventActorSetAlarm, readEventActorStateUpdate, readEventWrapper, readGatewayId, readHibernatingRequest, readId, readJson, readKvDeleteRangeRequest, readKvDeleteRequest, readKvErrorResponse, readKvGetRequest, readKvGetResponse, readKvKey, readKvListPrefixQuery, readKvListQuery, readKvListRangeQuery, readKvListRequest, readKvListResponse, readKvMetadata, readKvPutRequest, readKvRequestData, readKvResponseData, readKvValue, readMessageId, readMessageIndex, readPreloadedKv, readPreloadedKvEntry, readProtocolMetadata, readRequestId, readSqliteCommitRequest, readSqliteCommitResponse, readSqliteDirtyPage, readSqliteErrorResponse, readSqliteFetchedPage, readSqliteGetPagesOk, readSqliteGetPagesRequest, readSqliteGetPagesResponse, readSqlitePageBytes, readSqlitePgno, readStopActorReason, readStopCode, readToEnvoy, readToEnvoyAckEvents, readToEnvoyCommands, readToEnvoyConn, readToEnvoyConnPing, readToEnvoyInit, readToEnvoyKvResponse, readToEnvoyPing, readToEnvoyRequestChunk, readToEnvoyRequestStart, readToEnvoySqliteCommitResponse, readToEnvoySqliteGetPagesResponse, readToEnvoyTunnelMessage, readToEnvoyTunnelMessageKind, readToEnvoyWebSocketClose, readToEnvoyWebSocketMessage, readToEnvoyWebSocketOpen, readToGateway, readToGatewayPong, readToOutbound, readToOutboundActorStart, readToRivet, readToRivetAckCommands, readToRivetEvents, readToRivetKvRequest, readToRivetMetadata, readToRivetPong, readToRivetResponseChunk, readToRivetResponseStart, readToRivetSqliteCommitRequest, readToRivetSqliteGetPagesRequest, readToRivetTunnelMessage, readToRivetTunnelMessageKind, readToRivetWebSocketClose, readToRivetWebSocketMessage, readToRivetWebSocketMessageAck, readToRivetWebSocketOpen, type u16, type u32, type u64, writeActorCheckpoint, writeActorCommandKeyData, writeActorConfig, writeActorIntent, writeActorName, writeActorState, writeActorStateStopped, writeCommand, writeCommandStartActor, writeCommandStopActor, writeCommandWrapper, writeEvent, writeEventActorIntent, writeEventActorSetAlarm, writeEventActorStateUpdate, writeEventWrapper, writeGatewayId, writeHibernatingRequest, writeId, writeJson, writeKvDeleteRangeRequest, writeKvDeleteRequest, writeKvErrorResponse, writeKvGetRequest, writeKvGetResponse, writeKvKey, writeKvListPrefixQuery, writeKvListQuery, writeKvListRangeQuery, writeKvListRequest, writeKvListResponse, writeKvMetadata, writeKvPutRequest, writeKvRequestData, writeKvResponseData, writeKvValue, writeMessageId, writeMessageIndex, writePreloadedKv, writePreloadedKvEntry, writeProtocolMetadata, writeRequestId, writeSqliteCommitRequest, writeSqliteCommitResponse, writeSqliteDirtyPage, writeSqliteErrorResponse, writeSqliteFetchedPage, writeSqliteGetPagesOk, writeSqliteGetPagesRequest, writeSqliteGetPagesResponse, writeSqlitePageBytes, writeSqlitePgno, writeStopActorReason, writeStopCode, writeToEnvoy, writeToEnvoyAckEvents, writeToEnvoyCommands, writeToEnvoyConn, writeToEnvoyConnPing, writeToEnvoyInit, writeToEnvoyKvResponse, writeToEnvoyPing, writeToEnvoyRequestChunk, writeToEnvoyRequestStart, writeToEnvoySqliteCommitResponse, writeToEnvoySqliteGetPagesResponse, writeToEnvoyTunnelMessage, writeToEnvoyTunnelMessageKind, writeToEnvoyWebSocketClose, writeToEnvoyWebSocketMessage, writeToEnvoyWebSocketOpen, writeToGateway, writeToGatewayPong, writeToOutbound, writeToOutboundActorStart, writeToRivet, writeToRivetAckCommands, writeToRivetEvents, writeToRivetKvRequest, writeToRivetMetadata, writeToRivetPong, writeToRivetResponseChunk, writeToRivetResponseStart, writeToRivetSqliteCommitRequest, writeToRivetSqliteGetPagesRequest, writeToRivetTunnelMessage, writeToRivetTunnelMessageKind, writeToRivetWebSocketClose, writeToRivetWebSocketMessage, writeToRivetWebSocketMessageAck, writeToRivetWebSocketOpen };
|
|
1295
|
+
export { type ActorCheckpoint, type ActorCommandKeyData, type ActorConfig, type ActorIntent, type ActorIntentSleep, type ActorIntentStop, type ActorName, type ActorState, type ActorStateRunning, type ActorStateStopped, type Command, type CommandStartActor, type CommandStopActor, type CommandWrapper, type Event, type EventActorIntent, type EventActorSetAlarm, type EventActorStateUpdate, type EventWrapper, type GatewayId, type HibernatingRequest, type Id, type Json, type KvDeleteRangeRequest, type KvDeleteRequest, type KvDeleteResponse, type KvDropRequest, type KvDropResponse, type KvErrorResponse, type KvGetRequest, type KvGetResponse, type KvKey, type KvListAllQuery, type KvListPrefixQuery, type KvListQuery, type KvListRangeQuery, type KvListRequest, type KvListResponse, type KvMetadata, type KvPutRequest, type KvPutResponse, type KvRequestData, type KvResponseData, type KvValue, type MessageId, type MessageIndex, type PreloadedKv, type PreloadedKvEntry, type ProtocolMetadata, type RequestId, type SqliteBindParam, type SqliteColumnValue, type SqliteCommitFinalizeOk, type SqliteCommitFinalizeRequest, type SqliteCommitFinalizeResponse, type SqliteCommitOk, type SqliteCommitRequest, type SqliteCommitResponse, type SqliteCommitStageBeginOk, type SqliteCommitStageBeginRequest, type SqliteCommitStageBeginResponse, type SqliteCommitStageOk, type SqliteCommitStageRequest, type SqliteCommitStageResponse, type SqliteCommitTooLarge, type SqliteDirtyPage, type SqliteErrorResponse, type SqliteExecOk, type SqliteExecRequest, type SqliteExecResponse, type SqliteExecuteOk, type SqliteExecuteRequest, type SqliteExecuteResponse, type SqliteExecuteResult, SqliteExecuteRoute, type SqliteExecuteWriteOk, type SqliteExecuteWriteRequest, type SqliteExecuteWriteResponse, type SqliteFenceMismatch, type SqliteFetchedPage, type SqliteGeneration, type SqliteGetPageRangeOk, type SqliteGetPageRangeRequest, type SqliteGetPageRangeResponse, type SqliteGetPagesOk, type SqliteGetPagesRequest, type SqliteGetPagesResponse, type SqliteMeta, type SqlitePageBytes, type SqlitePersistPreloadHintsOk, type SqlitePersistPreloadHintsRequest, type SqlitePersistPreloadHintsResponse, type SqlitePgno, type SqlitePreloadHintRange, type SqlitePreloadHints, type SqliteQueryResult, type SqliteStageId, type SqliteStageNotFound, type SqliteStartupData, type SqliteTxid, type SqliteValueBlob, type SqliteValueFloat, type SqliteValueInteger, type SqliteValueNull, type SqliteValueText, StopActorReason, StopCode, type ToEnvoy, type ToEnvoyAckEvents, type ToEnvoyCommands, type ToEnvoyConn, type ToEnvoyConnClose, type ToEnvoyConnPing, type ToEnvoyInit, type ToEnvoyKvResponse, type ToEnvoyPing, type ToEnvoyRequestAbort, type ToEnvoyRequestChunk, type ToEnvoyRequestStart, type ToEnvoySqliteCommitFinalizeResponse, type ToEnvoySqliteCommitResponse, type ToEnvoySqliteCommitStageBeginResponse, type ToEnvoySqliteCommitStageResponse, type ToEnvoySqliteExecResponse, type ToEnvoySqliteExecuteResponse, type ToEnvoySqliteExecuteWriteResponse, type ToEnvoySqliteGetPageRangeResponse, type ToEnvoySqliteGetPagesResponse, type ToEnvoySqlitePersistPreloadHintsResponse, type ToEnvoyTunnelMessage, type ToEnvoyTunnelMessageKind, type ToEnvoyWebSocketClose, type ToEnvoyWebSocketMessage, type ToEnvoyWebSocketOpen, type ToGateway, type ToGatewayPong, type ToOutbound, type ToOutboundActorStart, type ToRivet, type ToRivetAckCommands, type ToRivetEvents, type ToRivetKvRequest, type ToRivetMetadata, type ToRivetPong, type ToRivetResponseAbort, type ToRivetResponseChunk, type ToRivetResponseStart, type ToRivetSqliteCommitFinalizeRequest, type ToRivetSqliteCommitRequest, type ToRivetSqliteCommitStageBeginRequest, type ToRivetSqliteCommitStageRequest, type ToRivetSqliteExecRequest, type ToRivetSqliteExecuteRequest, type ToRivetSqliteExecuteWriteRequest, type ToRivetSqliteGetPageRangeRequest, type ToRivetSqliteGetPagesRequest, type ToRivetSqlitePersistPreloadHintsRequest, type ToRivetStopping, type ToRivetTunnelMessage, type ToRivetTunnelMessageKind, type ToRivetWebSocketClose, type ToRivetWebSocketMessage, type ToRivetWebSocketMessageAck, type ToRivetWebSocketOpen, VERSION, decodeActorCommandKeyData, decodeToEnvoy, decodeToEnvoyConn, decodeToGateway, decodeToOutbound, decodeToRivet, encodeActorCommandKeyData, encodeToEnvoy, encodeToEnvoyConn, encodeToGateway, encodeToOutbound, encodeToRivet, type i64, readActorCheckpoint, readActorCommandKeyData, readActorConfig, readActorIntent, readActorName, readActorState, readActorStateStopped, readCommand, readCommandStartActor, readCommandStopActor, readCommandWrapper, readEvent, readEventActorIntent, readEventActorSetAlarm, readEventActorStateUpdate, readEventWrapper, readGatewayId, readHibernatingRequest, readId, readJson, readKvDeleteRangeRequest, readKvDeleteRequest, readKvErrorResponse, readKvGetRequest, readKvGetResponse, readKvKey, readKvListPrefixQuery, readKvListQuery, readKvListRangeQuery, readKvListRequest, readKvListResponse, readKvMetadata, readKvPutRequest, readKvRequestData, readKvResponseData, readKvValue, readMessageId, readMessageIndex, readPreloadedKv, readPreloadedKvEntry, readProtocolMetadata, readRequestId, readSqliteBindParam, readSqliteColumnValue, readSqliteCommitFinalizeOk, readSqliteCommitFinalizeRequest, readSqliteCommitFinalizeResponse, readSqliteCommitOk, readSqliteCommitRequest, readSqliteCommitResponse, readSqliteCommitStageBeginOk, readSqliteCommitStageBeginRequest, readSqliteCommitStageBeginResponse, readSqliteCommitStageOk, readSqliteCommitStageRequest, readSqliteCommitStageResponse, readSqliteCommitTooLarge, readSqliteDirtyPage, readSqliteErrorResponse, readSqliteExecOk, readSqliteExecRequest, readSqliteExecResponse, readSqliteExecuteOk, readSqliteExecuteRequest, readSqliteExecuteResponse, readSqliteExecuteResult, readSqliteExecuteRoute, readSqliteExecuteWriteOk, readSqliteExecuteWriteRequest, readSqliteExecuteWriteResponse, readSqliteFenceMismatch, readSqliteFetchedPage, readSqliteGeneration, readSqliteGetPageRangeOk, readSqliteGetPageRangeRequest, readSqliteGetPageRangeResponse, readSqliteGetPagesOk, readSqliteGetPagesRequest, readSqliteGetPagesResponse, readSqliteMeta, readSqlitePageBytes, readSqlitePersistPreloadHintsRequest, readSqlitePersistPreloadHintsResponse, readSqlitePgno, readSqlitePreloadHintRange, readSqlitePreloadHints, readSqliteQueryResult, readSqliteStageId, readSqliteStageNotFound, readSqliteStartupData, readSqliteTxid, readSqliteValueBlob, readSqliteValueFloat, readSqliteValueInteger, readSqliteValueText, readStopActorReason, readStopCode, readToEnvoy, readToEnvoyAckEvents, readToEnvoyCommands, readToEnvoyConn, readToEnvoyConnPing, readToEnvoyInit, readToEnvoyKvResponse, readToEnvoyPing, readToEnvoyRequestChunk, readToEnvoyRequestStart, readToEnvoySqliteCommitFinalizeResponse, readToEnvoySqliteCommitResponse, readToEnvoySqliteCommitStageBeginResponse, readToEnvoySqliteCommitStageResponse, readToEnvoySqliteExecResponse, readToEnvoySqliteExecuteResponse, readToEnvoySqliteExecuteWriteResponse, readToEnvoySqliteGetPageRangeResponse, readToEnvoySqliteGetPagesResponse, readToEnvoySqlitePersistPreloadHintsResponse, readToEnvoyTunnelMessage, readToEnvoyTunnelMessageKind, readToEnvoyWebSocketClose, readToEnvoyWebSocketMessage, readToEnvoyWebSocketOpen, readToGateway, readToGatewayPong, readToOutbound, readToOutboundActorStart, readToRivet, readToRivetAckCommands, readToRivetEvents, readToRivetKvRequest, readToRivetMetadata, readToRivetPong, readToRivetResponseChunk, readToRivetResponseStart, readToRivetSqliteCommitFinalizeRequest, readToRivetSqliteCommitRequest, readToRivetSqliteCommitStageBeginRequest, readToRivetSqliteCommitStageRequest, readToRivetSqliteExecRequest, readToRivetSqliteExecuteRequest, readToRivetSqliteExecuteWriteRequest, readToRivetSqliteGetPageRangeRequest, readToRivetSqliteGetPagesRequest, readToRivetSqlitePersistPreloadHintsRequest, readToRivetTunnelMessage, readToRivetTunnelMessageKind, readToRivetWebSocketClose, readToRivetWebSocketMessage, readToRivetWebSocketMessageAck, readToRivetWebSocketOpen, type u16, type u32, type u64, writeActorCheckpoint, writeActorCommandKeyData, writeActorConfig, writeActorIntent, writeActorName, writeActorState, writeActorStateStopped, writeCommand, writeCommandStartActor, writeCommandStopActor, writeCommandWrapper, writeEvent, writeEventActorIntent, writeEventActorSetAlarm, writeEventActorStateUpdate, writeEventWrapper, writeGatewayId, writeHibernatingRequest, writeId, writeJson, writeKvDeleteRangeRequest, writeKvDeleteRequest, writeKvErrorResponse, writeKvGetRequest, writeKvGetResponse, writeKvKey, writeKvListPrefixQuery, writeKvListQuery, writeKvListRangeQuery, writeKvListRequest, writeKvListResponse, writeKvMetadata, writeKvPutRequest, writeKvRequestData, writeKvResponseData, writeKvValue, writeMessageId, writeMessageIndex, writePreloadedKv, writePreloadedKvEntry, writeProtocolMetadata, writeRequestId, writeSqliteBindParam, writeSqliteColumnValue, writeSqliteCommitFinalizeOk, writeSqliteCommitFinalizeRequest, writeSqliteCommitFinalizeResponse, writeSqliteCommitOk, writeSqliteCommitRequest, writeSqliteCommitResponse, writeSqliteCommitStageBeginOk, writeSqliteCommitStageBeginRequest, writeSqliteCommitStageBeginResponse, writeSqliteCommitStageOk, writeSqliteCommitStageRequest, writeSqliteCommitStageResponse, writeSqliteCommitTooLarge, writeSqliteDirtyPage, writeSqliteErrorResponse, writeSqliteExecOk, writeSqliteExecRequest, writeSqliteExecResponse, writeSqliteExecuteOk, writeSqliteExecuteRequest, writeSqliteExecuteResponse, writeSqliteExecuteResult, writeSqliteExecuteRoute, writeSqliteExecuteWriteOk, writeSqliteExecuteWriteRequest, writeSqliteExecuteWriteResponse, writeSqliteFenceMismatch, writeSqliteFetchedPage, writeSqliteGeneration, writeSqliteGetPageRangeOk, writeSqliteGetPageRangeRequest, writeSqliteGetPageRangeResponse, writeSqliteGetPagesOk, writeSqliteGetPagesRequest, writeSqliteGetPagesResponse, writeSqliteMeta, writeSqlitePageBytes, writeSqlitePersistPreloadHintsRequest, writeSqlitePersistPreloadHintsResponse, writeSqlitePgno, writeSqlitePreloadHintRange, writeSqlitePreloadHints, writeSqliteQueryResult, writeSqliteStageId, writeSqliteStageNotFound, writeSqliteStartupData, writeSqliteTxid, writeSqliteValueBlob, writeSqliteValueFloat, writeSqliteValueInteger, writeSqliteValueText, writeStopActorReason, writeStopCode, writeToEnvoy, writeToEnvoyAckEvents, writeToEnvoyCommands, writeToEnvoyConn, writeToEnvoyConnPing, writeToEnvoyInit, writeToEnvoyKvResponse, writeToEnvoyPing, writeToEnvoyRequestChunk, writeToEnvoyRequestStart, writeToEnvoySqliteCommitFinalizeResponse, writeToEnvoySqliteCommitResponse, writeToEnvoySqliteCommitStageBeginResponse, writeToEnvoySqliteCommitStageResponse, writeToEnvoySqliteExecResponse, writeToEnvoySqliteExecuteResponse, writeToEnvoySqliteExecuteWriteResponse, writeToEnvoySqliteGetPageRangeResponse, writeToEnvoySqliteGetPagesResponse, writeToEnvoySqlitePersistPreloadHintsResponse, writeToEnvoyTunnelMessage, writeToEnvoyTunnelMessageKind, writeToEnvoyWebSocketClose, writeToEnvoyWebSocketMessage, writeToEnvoyWebSocketOpen, writeToGateway, writeToGatewayPong, writeToOutbound, writeToOutboundActorStart, writeToRivet, writeToRivetAckCommands, writeToRivetEvents, writeToRivetKvRequest, writeToRivetMetadata, writeToRivetPong, writeToRivetResponseChunk, writeToRivetResponseStart, writeToRivetSqliteCommitFinalizeRequest, writeToRivetSqliteCommitRequest, writeToRivetSqliteCommitStageBeginRequest, writeToRivetSqliteCommitStageRequest, writeToRivetSqliteExecRequest, writeToRivetSqliteExecuteRequest, writeToRivetSqliteExecuteWriteRequest, writeToRivetSqliteGetPageRangeRequest, writeToRivetSqliteGetPagesRequest, writeToRivetSqlitePersistPreloadHintsRequest, writeToRivetTunnelMessage, writeToRivetTunnelMessageKind, writeToRivetWebSocketClose, writeToRivetWebSocketMessage, writeToRivetWebSocketMessageAck, writeToRivetWebSocketOpen };
|