@rivetkit/engine-envoy-protocol 0.0.0-pr.4856.c68d9cb → 0.0.0-pr.4857.3a10f72

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 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,187 @@ 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 dbSizePages: u32;
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 = null;
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;
233
430
  /**
234
431
  * Core
235
432
  */
@@ -352,6 +549,7 @@ type CommandStartActor = {
352
549
  readonly config: ActorConfig;
353
550
  readonly hibernatingRequests: readonly HibernatingRequest[];
354
551
  readonly preloadedKv: PreloadedKv | null;
552
+ readonly sqliteStartupData: SqliteStartupData | null;
355
553
  };
356
554
  declare function readCommandStartActor(bc: bare.ByteCursor): CommandStartActor;
357
555
  declare function writeCommandStartActor(bc: bare.ByteCursor, x: CommandStartActor): void;
@@ -614,12 +812,42 @@ type ToRivetSqliteGetPagesRequest = {
614
812
  };
615
813
  declare function readToRivetSqliteGetPagesRequest(bc: bare.ByteCursor): ToRivetSqliteGetPagesRequest;
616
814
  declare function writeToRivetSqliteGetPagesRequest(bc: bare.ByteCursor, x: ToRivetSqliteGetPagesRequest): void;
815
+ type ToRivetSqliteGetPageRangeRequest = {
816
+ readonly requestId: u32;
817
+ readonly data: SqliteGetPageRangeRequest;
818
+ };
819
+ declare function readToRivetSqliteGetPageRangeRequest(bc: bare.ByteCursor): ToRivetSqliteGetPageRangeRequest;
820
+ declare function writeToRivetSqliteGetPageRangeRequest(bc: bare.ByteCursor, x: ToRivetSqliteGetPageRangeRequest): void;
617
821
  type ToRivetSqliteCommitRequest = {
618
822
  readonly requestId: u32;
619
823
  readonly data: SqliteCommitRequest;
620
824
  };
621
825
  declare function readToRivetSqliteCommitRequest(bc: bare.ByteCursor): ToRivetSqliteCommitRequest;
622
826
  declare function writeToRivetSqliteCommitRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitRequest): void;
827
+ type ToRivetSqliteCommitStageBeginRequest = {
828
+ readonly requestId: u32;
829
+ readonly data: SqliteCommitStageBeginRequest;
830
+ };
831
+ declare function readToRivetSqliteCommitStageBeginRequest(bc: bare.ByteCursor): ToRivetSqliteCommitStageBeginRequest;
832
+ declare function writeToRivetSqliteCommitStageBeginRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitStageBeginRequest): void;
833
+ type ToRivetSqliteCommitStageRequest = {
834
+ readonly requestId: u32;
835
+ readonly data: SqliteCommitStageRequest;
836
+ };
837
+ declare function readToRivetSqliteCommitStageRequest(bc: bare.ByteCursor): ToRivetSqliteCommitStageRequest;
838
+ declare function writeToRivetSqliteCommitStageRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitStageRequest): void;
839
+ type ToRivetSqliteCommitFinalizeRequest = {
840
+ readonly requestId: u32;
841
+ readonly data: SqliteCommitFinalizeRequest;
842
+ };
843
+ declare function readToRivetSqliteCommitFinalizeRequest(bc: bare.ByteCursor): ToRivetSqliteCommitFinalizeRequest;
844
+ declare function writeToRivetSqliteCommitFinalizeRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitFinalizeRequest): void;
845
+ type ToRivetSqlitePersistPreloadHintsRequest = {
846
+ readonly requestId: u32;
847
+ readonly data: SqlitePersistPreloadHintsRequest;
848
+ };
849
+ declare function readToRivetSqlitePersistPreloadHintsRequest(bc: bare.ByteCursor): ToRivetSqlitePersistPreloadHintsRequest;
850
+ declare function writeToRivetSqlitePersistPreloadHintsRequest(bc: bare.ByteCursor, x: ToRivetSqlitePersistPreloadHintsRequest): void;
623
851
  type ToRivet = {
624
852
  readonly tag: "ToRivetMetadata";
625
853
  readonly val: ToRivetMetadata;
@@ -644,9 +872,24 @@ type ToRivet = {
644
872
  } | {
645
873
  readonly tag: "ToRivetSqliteGetPagesRequest";
646
874
  readonly val: ToRivetSqliteGetPagesRequest;
875
+ } | {
876
+ readonly tag: "ToRivetSqliteGetPageRangeRequest";
877
+ readonly val: ToRivetSqliteGetPageRangeRequest;
647
878
  } | {
648
879
  readonly tag: "ToRivetSqliteCommitRequest";
649
880
  readonly val: ToRivetSqliteCommitRequest;
881
+ } | {
882
+ readonly tag: "ToRivetSqliteCommitStageBeginRequest";
883
+ readonly val: ToRivetSqliteCommitStageBeginRequest;
884
+ } | {
885
+ readonly tag: "ToRivetSqliteCommitStageRequest";
886
+ readonly val: ToRivetSqliteCommitStageRequest;
887
+ } | {
888
+ readonly tag: "ToRivetSqliteCommitFinalizeRequest";
889
+ readonly val: ToRivetSqliteCommitFinalizeRequest;
890
+ } | {
891
+ readonly tag: "ToRivetSqlitePersistPreloadHintsRequest";
892
+ readonly val: ToRivetSqlitePersistPreloadHintsRequest;
650
893
  };
651
894
  declare function readToRivet(bc: bare.ByteCursor): ToRivet;
652
895
  declare function writeToRivet(bc: bare.ByteCursor, x: ToRivet): void;
@@ -687,12 +930,42 @@ type ToEnvoySqliteGetPagesResponse = {
687
930
  };
688
931
  declare function readToEnvoySqliteGetPagesResponse(bc: bare.ByteCursor): ToEnvoySqliteGetPagesResponse;
689
932
  declare function writeToEnvoySqliteGetPagesResponse(bc: bare.ByteCursor, x: ToEnvoySqliteGetPagesResponse): void;
933
+ type ToEnvoySqliteGetPageRangeResponse = {
934
+ readonly requestId: u32;
935
+ readonly data: SqliteGetPageRangeResponse;
936
+ };
937
+ declare function readToEnvoySqliteGetPageRangeResponse(bc: bare.ByteCursor): ToEnvoySqliteGetPageRangeResponse;
938
+ declare function writeToEnvoySqliteGetPageRangeResponse(bc: bare.ByteCursor, x: ToEnvoySqliteGetPageRangeResponse): void;
690
939
  type ToEnvoySqliteCommitResponse = {
691
940
  readonly requestId: u32;
692
941
  readonly data: SqliteCommitResponse;
693
942
  };
694
943
  declare function readToEnvoySqliteCommitResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitResponse;
695
944
  declare function writeToEnvoySqliteCommitResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitResponse): void;
945
+ type ToEnvoySqliteCommitStageBeginResponse = {
946
+ readonly requestId: u32;
947
+ readonly data: SqliteCommitStageBeginResponse;
948
+ };
949
+ declare function readToEnvoySqliteCommitStageBeginResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitStageBeginResponse;
950
+ declare function writeToEnvoySqliteCommitStageBeginResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitStageBeginResponse): void;
951
+ type ToEnvoySqliteCommitStageResponse = {
952
+ readonly requestId: u32;
953
+ readonly data: SqliteCommitStageResponse;
954
+ };
955
+ declare function readToEnvoySqliteCommitStageResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitStageResponse;
956
+ declare function writeToEnvoySqliteCommitStageResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitStageResponse): void;
957
+ type ToEnvoySqliteCommitFinalizeResponse = {
958
+ readonly requestId: u32;
959
+ readonly data: SqliteCommitFinalizeResponse;
960
+ };
961
+ declare function readToEnvoySqliteCommitFinalizeResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitFinalizeResponse;
962
+ declare function writeToEnvoySqliteCommitFinalizeResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitFinalizeResponse): void;
963
+ type ToEnvoySqlitePersistPreloadHintsResponse = {
964
+ readonly requestId: u32;
965
+ readonly data: SqlitePersistPreloadHintsResponse;
966
+ };
967
+ declare function readToEnvoySqlitePersistPreloadHintsResponse(bc: bare.ByteCursor): ToEnvoySqlitePersistPreloadHintsResponse;
968
+ declare function writeToEnvoySqlitePersistPreloadHintsResponse(bc: bare.ByteCursor, x: ToEnvoySqlitePersistPreloadHintsResponse): void;
696
969
  type ToEnvoy = {
697
970
  readonly tag: "ToEnvoyInit";
698
971
  readonly val: ToEnvoyInit;
@@ -714,9 +987,24 @@ type ToEnvoy = {
714
987
  } | {
715
988
  readonly tag: "ToEnvoySqliteGetPagesResponse";
716
989
  readonly val: ToEnvoySqliteGetPagesResponse;
990
+ } | {
991
+ readonly tag: "ToEnvoySqliteGetPageRangeResponse";
992
+ readonly val: ToEnvoySqliteGetPageRangeResponse;
717
993
  } | {
718
994
  readonly tag: "ToEnvoySqliteCommitResponse";
719
995
  readonly val: ToEnvoySqliteCommitResponse;
996
+ } | {
997
+ readonly tag: "ToEnvoySqliteCommitStageBeginResponse";
998
+ readonly val: ToEnvoySqliteCommitStageBeginResponse;
999
+ } | {
1000
+ readonly tag: "ToEnvoySqliteCommitStageResponse";
1001
+ readonly val: ToEnvoySqliteCommitStageResponse;
1002
+ } | {
1003
+ readonly tag: "ToEnvoySqliteCommitFinalizeResponse";
1004
+ readonly val: ToEnvoySqliteCommitFinalizeResponse;
1005
+ } | {
1006
+ readonly tag: "ToEnvoySqlitePersistPreloadHintsResponse";
1007
+ readonly val: ToEnvoySqlitePersistPreloadHintsResponse;
720
1008
  };
721
1009
  declare function readToEnvoy(bc: bare.ByteCursor): ToEnvoy;
722
1010
  declare function writeToEnvoy(bc: bare.ByteCursor, x: ToEnvoy): void;
@@ -794,4 +1082,4 @@ declare function encodeToOutbound(x: ToOutbound, config?: Partial<bare.Config>):
794
1082
  declare function decodeToOutbound(bytes: Uint8Array): ToOutbound;
795
1083
  declare const VERSION = 3;
796
1084
 
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 };
1085
+ 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 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 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 SqliteStageId, type SqliteStageNotFound, type SqliteStartupData, type SqliteTxid, 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 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 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, readSqliteCommitFinalizeOk, readSqliteCommitFinalizeRequest, readSqliteCommitFinalizeResponse, readSqliteCommitOk, readSqliteCommitRequest, readSqliteCommitResponse, readSqliteCommitStageBeginOk, readSqliteCommitStageBeginRequest, readSqliteCommitStageBeginResponse, readSqliteCommitStageOk, readSqliteCommitStageRequest, readSqliteCommitStageResponse, readSqliteCommitTooLarge, readSqliteDirtyPage, readSqliteErrorResponse, readSqliteFenceMismatch, readSqliteFetchedPage, readSqliteGeneration, readSqliteGetPageRangeOk, readSqliteGetPageRangeRequest, readSqliteGetPageRangeResponse, readSqliteGetPagesOk, readSqliteGetPagesRequest, readSqliteGetPagesResponse, readSqliteMeta, readSqlitePageBytes, readSqlitePersistPreloadHintsRequest, readSqlitePersistPreloadHintsResponse, readSqlitePgno, readSqlitePreloadHintRange, readSqlitePreloadHints, readSqliteStageId, readSqliteStageNotFound, readSqliteStartupData, readSqliteTxid, readStopActorReason, readStopCode, readToEnvoy, readToEnvoyAckEvents, readToEnvoyCommands, readToEnvoyConn, readToEnvoyConnPing, readToEnvoyInit, readToEnvoyKvResponse, readToEnvoyPing, readToEnvoyRequestChunk, readToEnvoyRequestStart, readToEnvoySqliteCommitFinalizeResponse, readToEnvoySqliteCommitResponse, readToEnvoySqliteCommitStageBeginResponse, readToEnvoySqliteCommitStageResponse, readToEnvoySqliteGetPageRangeResponse, readToEnvoySqliteGetPagesResponse, readToEnvoySqlitePersistPreloadHintsResponse, readToEnvoyTunnelMessage, readToEnvoyTunnelMessageKind, readToEnvoyWebSocketClose, readToEnvoyWebSocketMessage, readToEnvoyWebSocketOpen, readToGateway, readToGatewayPong, readToOutbound, readToOutboundActorStart, readToRivet, readToRivetAckCommands, readToRivetEvents, readToRivetKvRequest, readToRivetMetadata, readToRivetPong, readToRivetResponseChunk, readToRivetResponseStart, readToRivetSqliteCommitFinalizeRequest, readToRivetSqliteCommitRequest, readToRivetSqliteCommitStageBeginRequest, readToRivetSqliteCommitStageRequest, 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, writeSqliteCommitFinalizeOk, writeSqliteCommitFinalizeRequest, writeSqliteCommitFinalizeResponse, writeSqliteCommitOk, writeSqliteCommitRequest, writeSqliteCommitResponse, writeSqliteCommitStageBeginOk, writeSqliteCommitStageBeginRequest, writeSqliteCommitStageBeginResponse, writeSqliteCommitStageOk, writeSqliteCommitStageRequest, writeSqliteCommitStageResponse, writeSqliteCommitTooLarge, writeSqliteDirtyPage, writeSqliteErrorResponse, writeSqliteFenceMismatch, writeSqliteFetchedPage, writeSqliteGeneration, writeSqliteGetPageRangeOk, writeSqliteGetPageRangeRequest, writeSqliteGetPageRangeResponse, writeSqliteGetPagesOk, writeSqliteGetPagesRequest, writeSqliteGetPagesResponse, writeSqliteMeta, writeSqlitePageBytes, writeSqlitePersistPreloadHintsRequest, writeSqlitePersistPreloadHintsResponse, writeSqlitePgno, writeSqlitePreloadHintRange, writeSqlitePreloadHints, writeSqliteStageId, writeSqliteStageNotFound, writeSqliteStartupData, writeSqliteTxid, writeStopActorReason, writeStopCode, writeToEnvoy, writeToEnvoyAckEvents, writeToEnvoyCommands, writeToEnvoyConn, writeToEnvoyConnPing, writeToEnvoyInit, writeToEnvoyKvResponse, writeToEnvoyPing, writeToEnvoyRequestChunk, writeToEnvoyRequestStart, writeToEnvoySqliteCommitFinalizeResponse, writeToEnvoySqliteCommitResponse, writeToEnvoySqliteCommitStageBeginResponse, writeToEnvoySqliteCommitStageResponse, writeToEnvoySqliteGetPageRangeResponse, writeToEnvoySqliteGetPagesResponse, writeToEnvoySqlitePersistPreloadHintsResponse, writeToEnvoyTunnelMessage, writeToEnvoyTunnelMessageKind, writeToEnvoyWebSocketClose, writeToEnvoyWebSocketMessage, writeToEnvoyWebSocketOpen, writeToGateway, writeToGatewayPong, writeToOutbound, writeToOutboundActorStart, writeToRivet, writeToRivetAckCommands, writeToRivetEvents, writeToRivetKvRequest, writeToRivetMetadata, writeToRivetPong, writeToRivetResponseChunk, writeToRivetResponseStart, writeToRivetSqliteCommitFinalizeRequest, writeToRivetSqliteCommitRequest, writeToRivetSqliteCommitStageBeginRequest, writeToRivetSqliteCommitStageRequest, writeToRivetSqliteGetPageRangeRequest, writeToRivetSqliteGetPagesRequest, writeToRivetSqlitePersistPreloadHintsRequest, writeToRivetTunnelMessage, writeToRivetTunnelMessageKind, writeToRivetWebSocketClose, writeToRivetWebSocketMessage, writeToRivetWebSocketMessageAck, writeToRivetWebSocketOpen };