@rivetkit/engine-envoy-protocol 0.0.0-main.72cbc7c → 0.0.0-main.78336a1

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
@@ -240,6 +240,104 @@ type SqliteCommitResponse = {
240
240
  };
241
241
  declare function readSqliteCommitResponse(bc: bare.ByteCursor): SqliteCommitResponse;
242
242
  declare function writeSqliteCommitResponse(bc: bare.ByteCursor, x: SqliteCommitResponse): void;
243
+ /**
244
+ * Staged commit. A commit too large for one transaction is written as a sequence of shard-aligned
245
+ * segments and then made visible by a single finalize. Nothing staged is readable until finalize:
246
+ * no PIDX row, no COMMIT row, no head advance, so an abandoned stage is indistinguishable from no
247
+ * commit at all. The single-shot SqliteCommitRequest above stays the path for small commits.
248
+ */
249
+ type SqliteCommitStageBeginRequest = {
250
+ readonly actorId: Id;
251
+ readonly expectedGeneration: u64 | null;
252
+ /**
253
+ * Fences before any bytes are staged, so an actor that lost its generation does not pay for a
254
+ * full payload before finding out.
255
+ */
256
+ readonly expectedHeadTxid: u64 | null;
257
+ };
258
+ declare function readSqliteCommitStageBeginRequest(bc: bare.ByteCursor): SqliteCommitStageBeginRequest;
259
+ declare function writeSqliteCommitStageBeginRequest(bc: bare.ByteCursor, x: SqliteCommitStageBeginRequest): void;
260
+ type SqliteCommitStageBeginOk = {
261
+ /**
262
+ * The engine allocates the txid (head + 1). Actor exclusivity makes that safe without an
263
+ * allocator.
264
+ */
265
+ readonly txid: u64;
266
+ };
267
+ declare function readSqliteCommitStageBeginOk(bc: bare.ByteCursor): SqliteCommitStageBeginOk;
268
+ declare function writeSqliteCommitStageBeginOk(bc: bare.ByteCursor, x: SqliteCommitStageBeginOk): void;
269
+ type SqliteCommitStageBeginResponse = {
270
+ readonly tag: "SqliteCommitStageBeginOk";
271
+ readonly val: SqliteCommitStageBeginOk;
272
+ } | {
273
+ readonly tag: "SqliteErrorResponse";
274
+ readonly val: SqliteErrorResponse;
275
+ };
276
+ declare function readSqliteCommitStageBeginResponse(bc: bare.ByteCursor): SqliteCommitStageBeginResponse;
277
+ declare function writeSqliteCommitStageBeginResponse(bc: bare.ByteCursor, x: SqliteCommitStageBeginResponse): void;
278
+ type SqliteCommitStageSegmentRequest = {
279
+ readonly actorId: Id;
280
+ readonly expectedGeneration: u64 | null;
281
+ readonly txid: u64;
282
+ /**
283
+ * Shard-aligned and strictly ascending across a commit's segments. The engine rejects a
284
+ * misaligned or out-of-order value rather than trusting the client to have produced it
285
+ * correctly: a shard split across two segments could be folded from one of them and written as
286
+ * a shard image missing the other's newer pages.
287
+ */
288
+ readonly firstPgno: u32;
289
+ readonly dirtyPages: readonly SqliteDirtyPage[];
290
+ };
291
+ declare function readSqliteCommitStageSegmentRequest(bc: bare.ByteCursor): SqliteCommitStageSegmentRequest;
292
+ declare function writeSqliteCommitStageSegmentRequest(bc: bare.ByteCursor, x: SqliteCommitStageSegmentRequest): void;
293
+ type SqliteCommitStageSegmentOk = {
294
+ readonly stagedBytes: u64;
295
+ };
296
+ declare function readSqliteCommitStageSegmentOk(bc: bare.ByteCursor): SqliteCommitStageSegmentOk;
297
+ declare function writeSqliteCommitStageSegmentOk(bc: bare.ByteCursor, x: SqliteCommitStageSegmentOk): void;
298
+ type SqliteCommitStageSegmentResponse = {
299
+ readonly tag: "SqliteCommitStageSegmentOk";
300
+ readonly val: SqliteCommitStageSegmentOk;
301
+ } | {
302
+ readonly tag: "SqliteErrorResponse";
303
+ readonly val: SqliteErrorResponse;
304
+ };
305
+ declare function readSqliteCommitStageSegmentResponse(bc: bare.ByteCursor): SqliteCommitStageSegmentResponse;
306
+ declare function writeSqliteCommitStageSegmentResponse(bc: bare.ByteCursor, x: SqliteCommitStageSegmentResponse): void;
307
+ type SqliteCommitFinalizeRequest = {
308
+ readonly actorId: Id;
309
+ readonly expectedGeneration: u64 | null;
310
+ /**
311
+ * The txid begin allocated. It is the head fence as well as the identity: finalize requires it to
312
+ * still be `head + 1`, so a separate expectedHeadTxid would only ever restate `txid - 1`.
313
+ */
314
+ readonly txid: u64;
315
+ readonly newDbSizePages: u32;
316
+ readonly nowMs: i64;
317
+ /**
318
+ * Exactly what the client believes it staged. Finalize verifies each one exists, so a client
319
+ * that lost a stage reply and finalized anyway is rejected instead of publishing a commit with
320
+ * a hole in it. Dirty page numbers are not carried here: the engine derives them from the
321
+ * staged segments' own page indexes.
322
+ */
323
+ readonly segmentFirstPgnos: Uint32Array;
324
+ };
325
+ declare function readSqliteCommitFinalizeRequest(bc: bare.ByteCursor): SqliteCommitFinalizeRequest;
326
+ declare function writeSqliteCommitFinalizeRequest(bc: bare.ByteCursor, x: SqliteCommitFinalizeRequest): void;
327
+ type SqliteCommitFinalizeOk = {
328
+ readonly headTxid: u64 | null;
329
+ };
330
+ declare function readSqliteCommitFinalizeOk(bc: bare.ByteCursor): SqliteCommitFinalizeOk;
331
+ declare function writeSqliteCommitFinalizeOk(bc: bare.ByteCursor, x: SqliteCommitFinalizeOk): void;
332
+ type SqliteCommitFinalizeResponse = {
333
+ readonly tag: "SqliteCommitFinalizeOk";
334
+ readonly val: SqliteCommitFinalizeOk;
335
+ } | {
336
+ readonly tag: "SqliteErrorResponse";
337
+ readonly val: SqliteErrorResponse;
338
+ };
339
+ declare function readSqliteCommitFinalizeResponse(bc: bare.ByteCursor): SqliteCommitFinalizeResponse;
340
+ declare function writeSqliteCommitFinalizeResponse(bc: bare.ByteCursor, x: SqliteCommitFinalizeResponse): void;
243
341
  type SqliteValueNull = null;
244
342
  type SqliteValueInteger = {
245
343
  readonly value: i64;
@@ -328,6 +426,20 @@ type SqliteExecuteRequest = {
328
426
  };
329
427
  declare function readSqliteExecuteRequest(bc: bare.ByteCursor): SqliteExecuteRequest;
330
428
  declare function writeSqliteExecuteRequest(bc: bare.ByteCursor, x: SqliteExecuteRequest): void;
429
+ type SqliteBatchStatement = {
430
+ readonly sql: string;
431
+ readonly params: readonly SqliteBindParam[] | null;
432
+ };
433
+ declare function readSqliteBatchStatement(bc: bare.ByteCursor): SqliteBatchStatement;
434
+ declare function writeSqliteBatchStatement(bc: bare.ByteCursor, x: SqliteBatchStatement): void;
435
+ type SqliteExecuteBatchRequest = {
436
+ readonly namespaceId: Id;
437
+ readonly actorId: Id;
438
+ readonly generation: SqliteGeneration;
439
+ readonly statements: readonly SqliteBatchStatement[];
440
+ };
441
+ declare function readSqliteExecuteBatchRequest(bc: bare.ByteCursor): SqliteExecuteBatchRequest;
442
+ declare function writeSqliteExecuteBatchRequest(bc: bare.ByteCursor, x: SqliteExecuteBatchRequest): void;
331
443
  type SqliteExecOk = {
332
444
  readonly result: SqliteQueryResult;
333
445
  };
@@ -338,6 +450,11 @@ type SqliteExecuteOk = {
338
450
  };
339
451
  declare function readSqliteExecuteOk(bc: bare.ByteCursor): SqliteExecuteOk;
340
452
  declare function writeSqliteExecuteOk(bc: bare.ByteCursor, x: SqliteExecuteOk): void;
453
+ type SqliteExecuteBatchOk = {
454
+ readonly results: readonly SqliteExecuteResult[];
455
+ };
456
+ declare function readSqliteExecuteBatchOk(bc: bare.ByteCursor): SqliteExecuteBatchOk;
457
+ declare function writeSqliteExecuteBatchOk(bc: bare.ByteCursor, x: SqliteExecuteBatchOk): void;
341
458
  type SqliteExecResponse = {
342
459
  readonly tag: "SqliteExecOk";
343
460
  readonly val: SqliteExecOk;
@@ -356,6 +473,15 @@ type SqliteExecuteResponse = {
356
473
  };
357
474
  declare function readSqliteExecuteResponse(bc: bare.ByteCursor): SqliteExecuteResponse;
358
475
  declare function writeSqliteExecuteResponse(bc: bare.ByteCursor, x: SqliteExecuteResponse): void;
476
+ type SqliteExecuteBatchResponse = {
477
+ readonly tag: "SqliteExecuteBatchOk";
478
+ readonly val: SqliteExecuteBatchOk;
479
+ } | {
480
+ readonly tag: "SqliteErrorResponse";
481
+ readonly val: SqliteErrorResponse;
482
+ };
483
+ declare function readSqliteExecuteBatchResponse(bc: bare.ByteCursor): SqliteExecuteBatchResponse;
484
+ declare function writeSqliteExecuteBatchResponse(bc: bare.ByteCursor, x: SqliteExecuteBatchResponse): void;
359
485
  /**
360
486
  * Core
361
487
  */
@@ -545,11 +671,20 @@ declare function writeMessageId(bc: bare.ByteCursor, x: MessageId): void;
545
671
  */
546
672
  type ToEnvoyRequestStart = {
547
673
  readonly actorId: Id;
674
+ /**
675
+ * Exact actor generation selected by Gateway 3. Legacy Gateway 2 requests
676
+ * omit this and retain highest-live-generation routing.
677
+ */
678
+ readonly actorGeneration: u32 | null;
548
679
  readonly method: string;
549
680
  readonly path: string;
550
681
  readonly headers: ReadonlyMap<string, string>;
551
682
  readonly body: ArrayBuffer | null;
552
683
  readonly stream: boolean;
684
+ /**
685
+ * Whether the gateway can accept a streamed response body.
686
+ */
687
+ readonly responseStream: boolean;
553
688
  };
554
689
  declare function readToEnvoyRequestStart(bc: bare.ByteCursor): ToEnvoyRequestStart;
555
690
  declare function writeToEnvoyRequestStart(bc: bare.ByteCursor, x: ToEnvoyRequestStart): void;
@@ -559,7 +694,49 @@ type ToEnvoyRequestChunk = {
559
694
  };
560
695
  declare function readToEnvoyRequestChunk(bc: bare.ByteCursor): ToEnvoyRequestChunk;
561
696
  declare function writeToEnvoyRequestChunk(bc: bare.ByteCursor, x: ToEnvoyRequestChunk): void;
562
- type ToEnvoyRequestAbort = null;
697
+ /**
698
+ * Cumulative request-body bytes consumed by the actor handler. This restores
699
+ * sender credit without requiring one acknowledgement per chunk.
700
+ */
701
+ type ToRivetRequestBodyWindowUpdate = {
702
+ readonly consumedBytes: u64;
703
+ };
704
+ declare function readToRivetRequestBodyWindowUpdate(bc: bare.ByteCursor): ToRivetRequestBodyWindowUpdate;
705
+ declare function writeToRivetRequestBodyWindowUpdate(bc: bare.ByteCursor, x: ToRivetRequestBodyWindowUpdate): void;
706
+ /**
707
+ * The actor handler no longer wants request-body bytes. The HTTP response may
708
+ * still continue normally.
709
+ */
710
+ type ToRivetRequestBodyCancel = null;
711
+ declare enum HttpStreamAbortReasonKind {
712
+ Unknown = "Unknown",
713
+ Cancelled = "Cancelled",
714
+ HandlerError = "HandlerError",
715
+ InternalError = "InternalError"
716
+ }
717
+ declare function readHttpStreamAbortReasonKind(bc: bare.ByteCursor): HttpStreamAbortReasonKind;
718
+ declare function writeHttpStreamAbortReasonKind(bc: bare.ByteCursor, x: HttpStreamAbortReasonKind): void;
719
+ type HttpStreamAbortReason = {
720
+ readonly kind: HttpStreamAbortReasonKind;
721
+ readonly detail: string | null;
722
+ };
723
+ declare function readHttpStreamAbortReason(bc: bare.ByteCursor): HttpStreamAbortReason;
724
+ declare function writeHttpStreamAbortReason(bc: bare.ByteCursor, x: HttpStreamAbortReason): void;
725
+ type ToEnvoyRequestAbort = {
726
+ /**
727
+ * Exact admission identity. Gateway 3 always sets both fields so Envoy can
728
+ * suppress a delayed RequestStart after an indeterminate handoff.
729
+ */
730
+ readonly actorId: Id | null;
731
+ readonly actorGeneration: u32 | null;
732
+ readonly reason: HttpStreamAbortReason;
733
+ };
734
+ declare function readToEnvoyRequestAbort(bc: bare.ByteCursor): ToEnvoyRequestAbort;
735
+ declare function writeToEnvoyRequestAbort(bc: bare.ByteCursor, x: ToEnvoyRequestAbort): void;
736
+ /**
737
+ * Stop the actor-side request body without cancelling the HTTP response.
738
+ */
739
+ type ToEnvoyRequestBodyCancel = null;
563
740
  type ToRivetResponseStart = {
564
741
  readonly status: u16;
565
742
  readonly headers: ReadonlyMap<string, string>;
@@ -574,12 +751,30 @@ type ToRivetResponseChunk = {
574
751
  };
575
752
  declare function readToRivetResponseChunk(bc: bare.ByteCursor): ToRivetResponseChunk;
576
753
  declare function writeToRivetResponseChunk(bc: bare.ByteCursor, x: ToRivetResponseChunk): void;
577
- type ToRivetResponseAbort = null;
754
+ /**
755
+ * Cumulative response-body bytes consumed by the gateway client. This restores
756
+ * sender credit without requiring one acknowledgement per chunk.
757
+ */
758
+ type ToEnvoyResponseBodyWindowUpdate = {
759
+ readonly consumedBytes: u64;
760
+ };
761
+ declare function readToEnvoyResponseBodyWindowUpdate(bc: bare.ByteCursor): ToEnvoyResponseBodyWindowUpdate;
762
+ declare function writeToEnvoyResponseBodyWindowUpdate(bc: bare.ByteCursor, x: ToEnvoyResponseBodyWindowUpdate): void;
763
+ type ToRivetResponseAbort = {
764
+ readonly reason: HttpStreamAbortReason;
765
+ };
766
+ declare function readToRivetResponseAbort(bc: bare.ByteCursor): ToRivetResponseAbort;
767
+ declare function writeToRivetResponseAbort(bc: bare.ByteCursor, x: ToRivetResponseAbort): void;
578
768
  /**
579
769
  * WebSocket
580
770
  */
581
771
  type ToEnvoyWebSocketOpen = {
582
772
  readonly actorId: Id;
773
+ /**
774
+ * Exact actor generation selected by Gateway 3. Legacy Gateway 2 requests
775
+ * omit this and retain highest-live-generation routing.
776
+ */
777
+ readonly actorGeneration: u32 | null;
583
778
  readonly path: string;
584
779
  readonly headers: ReadonlyMap<string, string>;
585
780
  };
@@ -636,6 +831,12 @@ type ToRivetTunnelMessageKind =
636
831
  } | {
637
832
  readonly tag: "ToRivetResponseAbort";
638
833
  readonly val: ToRivetResponseAbort;
834
+ } | {
835
+ readonly tag: "ToRivetRequestBodyWindowUpdate";
836
+ readonly val: ToRivetRequestBodyWindowUpdate;
837
+ } | {
838
+ readonly tag: "ToRivetRequestBodyCancel";
839
+ readonly val: ToRivetRequestBodyCancel;
639
840
  }
640
841
  /**
641
842
  * WebSocket
@@ -677,6 +878,12 @@ type ToEnvoyTunnelMessageKind =
677
878
  } | {
678
879
  readonly tag: "ToEnvoyRequestAbort";
679
880
  readonly val: ToEnvoyRequestAbort;
881
+ } | {
882
+ readonly tag: "ToEnvoyRequestBodyCancel";
883
+ readonly val: ToEnvoyRequestBodyCancel;
884
+ } | {
885
+ readonly tag: "ToEnvoyResponseBodyWindowUpdate";
886
+ readonly val: ToEnvoyResponseBodyWindowUpdate;
680
887
  }
681
888
  /**
682
889
  * WebSocket
@@ -746,6 +953,24 @@ type ToRivetSqliteCommitRequest = {
746
953
  };
747
954
  declare function readToRivetSqliteCommitRequest(bc: bare.ByteCursor): ToRivetSqliteCommitRequest;
748
955
  declare function writeToRivetSqliteCommitRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitRequest): void;
956
+ type ToRivetSqliteCommitStageBeginRequest = {
957
+ readonly requestId: u32;
958
+ readonly data: SqliteCommitStageBeginRequest;
959
+ };
960
+ declare function readToRivetSqliteCommitStageBeginRequest(bc: bare.ByteCursor): ToRivetSqliteCommitStageBeginRequest;
961
+ declare function writeToRivetSqliteCommitStageBeginRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitStageBeginRequest): void;
962
+ type ToRivetSqliteCommitStageSegmentRequest = {
963
+ readonly requestId: u32;
964
+ readonly data: SqliteCommitStageSegmentRequest;
965
+ };
966
+ declare function readToRivetSqliteCommitStageSegmentRequest(bc: bare.ByteCursor): ToRivetSqliteCommitStageSegmentRequest;
967
+ declare function writeToRivetSqliteCommitStageSegmentRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitStageSegmentRequest): void;
968
+ type ToRivetSqliteCommitFinalizeRequest = {
969
+ readonly requestId: u32;
970
+ readonly data: SqliteCommitFinalizeRequest;
971
+ };
972
+ declare function readToRivetSqliteCommitFinalizeRequest(bc: bare.ByteCursor): ToRivetSqliteCommitFinalizeRequest;
973
+ declare function writeToRivetSqliteCommitFinalizeRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitFinalizeRequest): void;
749
974
  type ToRivetSqliteExecRequest = {
750
975
  readonly requestId: u32;
751
976
  readonly data: SqliteExecRequest;
@@ -758,6 +983,12 @@ type ToRivetSqliteExecuteRequest = {
758
983
  };
759
984
  declare function readToRivetSqliteExecuteRequest(bc: bare.ByteCursor): ToRivetSqliteExecuteRequest;
760
985
  declare function writeToRivetSqliteExecuteRequest(bc: bare.ByteCursor, x: ToRivetSqliteExecuteRequest): void;
986
+ type ToRivetSqliteExecuteBatchRequest = {
987
+ readonly requestId: u32;
988
+ readonly data: SqliteExecuteBatchRequest;
989
+ };
990
+ declare function readToRivetSqliteExecuteBatchRequest(bc: bare.ByteCursor): ToRivetSqliteExecuteBatchRequest;
991
+ declare function writeToRivetSqliteExecuteBatchRequest(bc: bare.ByteCursor, x: ToRivetSqliteExecuteBatchRequest): void;
761
992
  type ToRivet = {
762
993
  readonly tag: "ToRivetMetadata";
763
994
  readonly val: ToRivetMetadata;
@@ -785,12 +1016,24 @@ type ToRivet = {
785
1016
  } | {
786
1017
  readonly tag: "ToRivetSqliteCommitRequest";
787
1018
  readonly val: ToRivetSqliteCommitRequest;
1019
+ } | {
1020
+ readonly tag: "ToRivetSqliteCommitStageBeginRequest";
1021
+ readonly val: ToRivetSqliteCommitStageBeginRequest;
1022
+ } | {
1023
+ readonly tag: "ToRivetSqliteCommitStageSegmentRequest";
1024
+ readonly val: ToRivetSqliteCommitStageSegmentRequest;
1025
+ } | {
1026
+ readonly tag: "ToRivetSqliteCommitFinalizeRequest";
1027
+ readonly val: ToRivetSqliteCommitFinalizeRequest;
788
1028
  } | {
789
1029
  readonly tag: "ToRivetSqliteExecRequest";
790
1030
  readonly val: ToRivetSqliteExecRequest;
791
1031
  } | {
792
1032
  readonly tag: "ToRivetSqliteExecuteRequest";
793
1033
  readonly val: ToRivetSqliteExecuteRequest;
1034
+ } | {
1035
+ readonly tag: "ToRivetSqliteExecuteBatchRequest";
1036
+ readonly val: ToRivetSqliteExecuteBatchRequest;
794
1037
  };
795
1038
  declare function readToRivet(bc: bare.ByteCursor): ToRivet;
796
1039
  declare function writeToRivet(bc: bare.ByteCursor, x: ToRivet): void;
@@ -837,6 +1080,24 @@ type ToEnvoySqliteCommitResponse = {
837
1080
  };
838
1081
  declare function readToEnvoySqliteCommitResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitResponse;
839
1082
  declare function writeToEnvoySqliteCommitResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitResponse): void;
1083
+ type ToEnvoySqliteCommitStageBeginResponse = {
1084
+ readonly requestId: u32;
1085
+ readonly data: SqliteCommitStageBeginResponse;
1086
+ };
1087
+ declare function readToEnvoySqliteCommitStageBeginResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitStageBeginResponse;
1088
+ declare function writeToEnvoySqliteCommitStageBeginResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitStageBeginResponse): void;
1089
+ type ToEnvoySqliteCommitStageSegmentResponse = {
1090
+ readonly requestId: u32;
1091
+ readonly data: SqliteCommitStageSegmentResponse;
1092
+ };
1093
+ declare function readToEnvoySqliteCommitStageSegmentResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitStageSegmentResponse;
1094
+ declare function writeToEnvoySqliteCommitStageSegmentResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitStageSegmentResponse): void;
1095
+ type ToEnvoySqliteCommitFinalizeResponse = {
1096
+ readonly requestId: u32;
1097
+ readonly data: SqliteCommitFinalizeResponse;
1098
+ };
1099
+ declare function readToEnvoySqliteCommitFinalizeResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitFinalizeResponse;
1100
+ declare function writeToEnvoySqliteCommitFinalizeResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitFinalizeResponse): void;
840
1101
  type ToEnvoySqliteExecResponse = {
841
1102
  readonly requestId: u32;
842
1103
  readonly data: SqliteExecResponse;
@@ -849,6 +1110,12 @@ type ToEnvoySqliteExecuteResponse = {
849
1110
  };
850
1111
  declare function readToEnvoySqliteExecuteResponse(bc: bare.ByteCursor): ToEnvoySqliteExecuteResponse;
851
1112
  declare function writeToEnvoySqliteExecuteResponse(bc: bare.ByteCursor, x: ToEnvoySqliteExecuteResponse): void;
1113
+ type ToEnvoySqliteExecuteBatchResponse = {
1114
+ readonly requestId: u32;
1115
+ readonly data: SqliteExecuteBatchResponse;
1116
+ };
1117
+ declare function readToEnvoySqliteExecuteBatchResponse(bc: bare.ByteCursor): ToEnvoySqliteExecuteBatchResponse;
1118
+ declare function writeToEnvoySqliteExecuteBatchResponse(bc: bare.ByteCursor, x: ToEnvoySqliteExecuteBatchResponse): void;
852
1119
  type ToEnvoy = {
853
1120
  readonly tag: "ToEnvoyInit";
854
1121
  readonly val: ToEnvoyInit;
@@ -873,12 +1140,24 @@ type ToEnvoy = {
873
1140
  } | {
874
1141
  readonly tag: "ToEnvoySqliteCommitResponse";
875
1142
  readonly val: ToEnvoySqliteCommitResponse;
1143
+ } | {
1144
+ readonly tag: "ToEnvoySqliteCommitStageBeginResponse";
1145
+ readonly val: ToEnvoySqliteCommitStageBeginResponse;
1146
+ } | {
1147
+ readonly tag: "ToEnvoySqliteCommitStageSegmentResponse";
1148
+ readonly val: ToEnvoySqliteCommitStageSegmentResponse;
1149
+ } | {
1150
+ readonly tag: "ToEnvoySqliteCommitFinalizeResponse";
1151
+ readonly val: ToEnvoySqliteCommitFinalizeResponse;
876
1152
  } | {
877
1153
  readonly tag: "ToEnvoySqliteExecResponse";
878
1154
  readonly val: ToEnvoySqliteExecResponse;
879
1155
  } | {
880
1156
  readonly tag: "ToEnvoySqliteExecuteResponse";
881
1157
  readonly val: ToEnvoySqliteExecuteResponse;
1158
+ } | {
1159
+ readonly tag: "ToEnvoySqliteExecuteBatchResponse";
1160
+ readonly val: ToEnvoySqliteExecuteBatchResponse;
882
1161
  };
883
1162
  declare function readToEnvoy(bc: bare.ByteCursor): ToEnvoy;
884
1163
  declare function writeToEnvoy(bc: bare.ByteCursor, x: ToEnvoy): void;
@@ -954,6 +1233,6 @@ declare function readToOutbound(bc: bare.ByteCursor): ToOutbound;
954
1233
  declare function writeToOutbound(bc: bare.ByteCursor, x: ToOutbound): void;
955
1234
  declare function encodeToOutbound(x: ToOutbound, config?: Partial<bare.Config>): Uint8Array;
956
1235
  declare function decodeToOutbound(bytes: Uint8Array): ToOutbound;
957
- declare const VERSION = 5;
1236
+ declare const VERSION = 8;
958
1237
 
959
- 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 SqliteCommitOk, type SqliteCommitRequest, type SqliteCommitResponse, type SqliteDirtyPage, type SqliteErrorResponse, type SqliteExecOk, type SqliteExecRequest, type SqliteExecResponse, type SqliteExecuteOk, type SqliteExecuteRequest, type SqliteExecuteResponse, type SqliteExecuteResult, type SqliteFetchedPage, type SqliteGeneration, type SqliteGetPagesOk, type SqliteGetPagesRequest, type SqliteGetPagesResponse, type SqlitePageBytes, type SqlitePgno, type SqliteQueryResult, 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 ToEnvoySqliteCommitResponse, type ToEnvoySqliteExecResponse, type ToEnvoySqliteExecuteResponse, 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 ToRivetSqliteExecRequest, type ToRivetSqliteExecuteRequest, 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, readSqliteBindParam, readSqliteColumnValue, readSqliteCommitOk, readSqliteCommitRequest, readSqliteCommitResponse, readSqliteDirtyPage, readSqliteErrorResponse, readSqliteExecOk, readSqliteExecRequest, readSqliteExecResponse, readSqliteExecuteOk, readSqliteExecuteRequest, readSqliteExecuteResponse, readSqliteExecuteResult, readSqliteFetchedPage, readSqliteGeneration, readSqliteGetPagesOk, readSqliteGetPagesRequest, readSqliteGetPagesResponse, readSqlitePageBytes, readSqlitePgno, readSqliteQueryResult, readSqliteValueBlob, readSqliteValueFloat, readSqliteValueInteger, readSqliteValueText, readStopActorReason, readStopCode, readToEnvoy, readToEnvoyAckEvents, readToEnvoyCommands, readToEnvoyConn, readToEnvoyConnPing, readToEnvoyInit, readToEnvoyKvResponse, readToEnvoyPing, readToEnvoyRequestChunk, readToEnvoyRequestStart, readToEnvoySqliteCommitResponse, readToEnvoySqliteExecResponse, readToEnvoySqliteExecuteResponse, readToEnvoySqliteGetPagesResponse, readToEnvoyTunnelMessage, readToEnvoyTunnelMessageKind, readToEnvoyWebSocketClose, readToEnvoyWebSocketMessage, readToEnvoyWebSocketOpen, readToGateway, readToGatewayPong, readToOutbound, readToOutboundActorStart, readToRivet, readToRivetAckCommands, readToRivetEvents, readToRivetKvRequest, readToRivetMetadata, readToRivetPong, readToRivetResponseChunk, readToRivetResponseStart, readToRivetSqliteCommitRequest, readToRivetSqliteExecRequest, readToRivetSqliteExecuteRequest, 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, writeSqliteBindParam, writeSqliteColumnValue, writeSqliteCommitOk, writeSqliteCommitRequest, writeSqliteCommitResponse, writeSqliteDirtyPage, writeSqliteErrorResponse, writeSqliteExecOk, writeSqliteExecRequest, writeSqliteExecResponse, writeSqliteExecuteOk, writeSqliteExecuteRequest, writeSqliteExecuteResponse, writeSqliteExecuteResult, writeSqliteFetchedPage, writeSqliteGeneration, writeSqliteGetPagesOk, writeSqliteGetPagesRequest, writeSqliteGetPagesResponse, writeSqlitePageBytes, writeSqlitePgno, writeSqliteQueryResult, writeSqliteValueBlob, writeSqliteValueFloat, writeSqliteValueInteger, writeSqliteValueText, writeStopActorReason, writeStopCode, writeToEnvoy, writeToEnvoyAckEvents, writeToEnvoyCommands, writeToEnvoyConn, writeToEnvoyConnPing, writeToEnvoyInit, writeToEnvoyKvResponse, writeToEnvoyPing, writeToEnvoyRequestChunk, writeToEnvoyRequestStart, writeToEnvoySqliteCommitResponse, writeToEnvoySqliteExecResponse, writeToEnvoySqliteExecuteResponse, writeToEnvoySqliteGetPagesResponse, writeToEnvoyTunnelMessage, writeToEnvoyTunnelMessageKind, writeToEnvoyWebSocketClose, writeToEnvoyWebSocketMessage, writeToEnvoyWebSocketOpen, writeToGateway, writeToGatewayPong, writeToOutbound, writeToOutboundActorStart, writeToRivet, writeToRivetAckCommands, writeToRivetEvents, writeToRivetKvRequest, writeToRivetMetadata, writeToRivetPong, writeToRivetResponseChunk, writeToRivetResponseStart, writeToRivetSqliteCommitRequest, writeToRivetSqliteExecRequest, writeToRivetSqliteExecuteRequest, writeToRivetSqliteGetPagesRequest, writeToRivetTunnelMessage, writeToRivetTunnelMessageKind, writeToRivetWebSocketClose, writeToRivetWebSocketMessage, writeToRivetWebSocketMessageAck, writeToRivetWebSocketOpen };
1238
+ 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 HttpStreamAbortReason, HttpStreamAbortReasonKind, 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 SqliteBatchStatement, type SqliteBindParam, type SqliteColumnValue, type SqliteCommitFinalizeOk, type SqliteCommitFinalizeRequest, type SqliteCommitFinalizeResponse, type SqliteCommitOk, type SqliteCommitRequest, type SqliteCommitResponse, type SqliteCommitStageBeginOk, type SqliteCommitStageBeginRequest, type SqliteCommitStageBeginResponse, type SqliteCommitStageSegmentOk, type SqliteCommitStageSegmentRequest, type SqliteCommitStageSegmentResponse, type SqliteDirtyPage, type SqliteErrorResponse, type SqliteExecOk, type SqliteExecRequest, type SqliteExecResponse, type SqliteExecuteBatchOk, type SqliteExecuteBatchRequest, type SqliteExecuteBatchResponse, type SqliteExecuteOk, type SqliteExecuteRequest, type SqliteExecuteResponse, type SqliteExecuteResult, type SqliteFetchedPage, type SqliteGeneration, type SqliteGetPagesOk, type SqliteGetPagesRequest, type SqliteGetPagesResponse, type SqlitePageBytes, type SqlitePgno, type SqliteQueryResult, 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 ToEnvoyRequestBodyCancel, type ToEnvoyRequestChunk, type ToEnvoyRequestStart, type ToEnvoyResponseBodyWindowUpdate, type ToEnvoySqliteCommitFinalizeResponse, type ToEnvoySqliteCommitResponse, type ToEnvoySqliteCommitStageBeginResponse, type ToEnvoySqliteCommitStageSegmentResponse, type ToEnvoySqliteExecResponse, type ToEnvoySqliteExecuteBatchResponse, type ToEnvoySqliteExecuteResponse, 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 ToRivetRequestBodyCancel, type ToRivetRequestBodyWindowUpdate, type ToRivetResponseAbort, type ToRivetResponseChunk, type ToRivetResponseStart, type ToRivetSqliteCommitFinalizeRequest, type ToRivetSqliteCommitRequest, type ToRivetSqliteCommitStageBeginRequest, type ToRivetSqliteCommitStageSegmentRequest, type ToRivetSqliteExecRequest, type ToRivetSqliteExecuteBatchRequest, type ToRivetSqliteExecuteRequest, 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, readHttpStreamAbortReason, readHttpStreamAbortReasonKind, readId, readJson, readKvDeleteRangeRequest, readKvDeleteRequest, readKvErrorResponse, readKvGetRequest, readKvGetResponse, readKvKey, readKvListPrefixQuery, readKvListQuery, readKvListRangeQuery, readKvListRequest, readKvListResponse, readKvMetadata, readKvPutRequest, readKvRequestData, readKvResponseData, readKvValue, readMessageId, readMessageIndex, readPreloadedKv, readPreloadedKvEntry, readProtocolMetadata, readRequestId, readSqliteBatchStatement, readSqliteBindParam, readSqliteColumnValue, readSqliteCommitFinalizeOk, readSqliteCommitFinalizeRequest, readSqliteCommitFinalizeResponse, readSqliteCommitOk, readSqliteCommitRequest, readSqliteCommitResponse, readSqliteCommitStageBeginOk, readSqliteCommitStageBeginRequest, readSqliteCommitStageBeginResponse, readSqliteCommitStageSegmentOk, readSqliteCommitStageSegmentRequest, readSqliteCommitStageSegmentResponse, readSqliteDirtyPage, readSqliteErrorResponse, readSqliteExecOk, readSqliteExecRequest, readSqliteExecResponse, readSqliteExecuteBatchOk, readSqliteExecuteBatchRequest, readSqliteExecuteBatchResponse, readSqliteExecuteOk, readSqliteExecuteRequest, readSqliteExecuteResponse, readSqliteExecuteResult, readSqliteFetchedPage, readSqliteGeneration, readSqliteGetPagesOk, readSqliteGetPagesRequest, readSqliteGetPagesResponse, readSqlitePageBytes, readSqlitePgno, readSqliteQueryResult, readSqliteValueBlob, readSqliteValueFloat, readSqliteValueInteger, readSqliteValueText, readStopActorReason, readStopCode, readToEnvoy, readToEnvoyAckEvents, readToEnvoyCommands, readToEnvoyConn, readToEnvoyConnPing, readToEnvoyInit, readToEnvoyKvResponse, readToEnvoyPing, readToEnvoyRequestAbort, readToEnvoyRequestChunk, readToEnvoyRequestStart, readToEnvoyResponseBodyWindowUpdate, readToEnvoySqliteCommitFinalizeResponse, readToEnvoySqliteCommitResponse, readToEnvoySqliteCommitStageBeginResponse, readToEnvoySqliteCommitStageSegmentResponse, readToEnvoySqliteExecResponse, readToEnvoySqliteExecuteBatchResponse, readToEnvoySqliteExecuteResponse, readToEnvoySqliteGetPagesResponse, readToEnvoyTunnelMessage, readToEnvoyTunnelMessageKind, readToEnvoyWebSocketClose, readToEnvoyWebSocketMessage, readToEnvoyWebSocketOpen, readToGateway, readToGatewayPong, readToOutbound, readToOutboundActorStart, readToRivet, readToRivetAckCommands, readToRivetEvents, readToRivetKvRequest, readToRivetMetadata, readToRivetPong, readToRivetRequestBodyWindowUpdate, readToRivetResponseAbort, readToRivetResponseChunk, readToRivetResponseStart, readToRivetSqliteCommitFinalizeRequest, readToRivetSqliteCommitRequest, readToRivetSqliteCommitStageBeginRequest, readToRivetSqliteCommitStageSegmentRequest, readToRivetSqliteExecRequest, readToRivetSqliteExecuteBatchRequest, readToRivetSqliteExecuteRequest, 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, writeHttpStreamAbortReason, writeHttpStreamAbortReasonKind, writeId, writeJson, writeKvDeleteRangeRequest, writeKvDeleteRequest, writeKvErrorResponse, writeKvGetRequest, writeKvGetResponse, writeKvKey, writeKvListPrefixQuery, writeKvListQuery, writeKvListRangeQuery, writeKvListRequest, writeKvListResponse, writeKvMetadata, writeKvPutRequest, writeKvRequestData, writeKvResponseData, writeKvValue, writeMessageId, writeMessageIndex, writePreloadedKv, writePreloadedKvEntry, writeProtocolMetadata, writeRequestId, writeSqliteBatchStatement, writeSqliteBindParam, writeSqliteColumnValue, writeSqliteCommitFinalizeOk, writeSqliteCommitFinalizeRequest, writeSqliteCommitFinalizeResponse, writeSqliteCommitOk, writeSqliteCommitRequest, writeSqliteCommitResponse, writeSqliteCommitStageBeginOk, writeSqliteCommitStageBeginRequest, writeSqliteCommitStageBeginResponse, writeSqliteCommitStageSegmentOk, writeSqliteCommitStageSegmentRequest, writeSqliteCommitStageSegmentResponse, writeSqliteDirtyPage, writeSqliteErrorResponse, writeSqliteExecOk, writeSqliteExecRequest, writeSqliteExecResponse, writeSqliteExecuteBatchOk, writeSqliteExecuteBatchRequest, writeSqliteExecuteBatchResponse, writeSqliteExecuteOk, writeSqliteExecuteRequest, writeSqliteExecuteResponse, writeSqliteExecuteResult, writeSqliteFetchedPage, writeSqliteGeneration, writeSqliteGetPagesOk, writeSqliteGetPagesRequest, writeSqliteGetPagesResponse, writeSqlitePageBytes, writeSqlitePgno, writeSqliteQueryResult, writeSqliteValueBlob, writeSqliteValueFloat, writeSqliteValueInteger, writeSqliteValueText, writeStopActorReason, writeStopCode, writeToEnvoy, writeToEnvoyAckEvents, writeToEnvoyCommands, writeToEnvoyConn, writeToEnvoyConnPing, writeToEnvoyInit, writeToEnvoyKvResponse, writeToEnvoyPing, writeToEnvoyRequestAbort, writeToEnvoyRequestChunk, writeToEnvoyRequestStart, writeToEnvoyResponseBodyWindowUpdate, writeToEnvoySqliteCommitFinalizeResponse, writeToEnvoySqliteCommitResponse, writeToEnvoySqliteCommitStageBeginResponse, writeToEnvoySqliteCommitStageSegmentResponse, writeToEnvoySqliteExecResponse, writeToEnvoySqliteExecuteBatchResponse, writeToEnvoySqliteExecuteResponse, writeToEnvoySqliteGetPagesResponse, writeToEnvoyTunnelMessage, writeToEnvoyTunnelMessageKind, writeToEnvoyWebSocketClose, writeToEnvoyWebSocketMessage, writeToEnvoyWebSocketOpen, writeToGateway, writeToGatewayPong, writeToOutbound, writeToOutboundActorStart, writeToRivet, writeToRivetAckCommands, writeToRivetEvents, writeToRivetKvRequest, writeToRivetMetadata, writeToRivetPong, writeToRivetRequestBodyWindowUpdate, writeToRivetResponseAbort, writeToRivetResponseChunk, writeToRivetResponseStart, writeToRivetSqliteCommitFinalizeRequest, writeToRivetSqliteCommitRequest, writeToRivetSqliteCommitStageBeginRequest, writeToRivetSqliteCommitStageSegmentRequest, writeToRivetSqliteExecRequest, writeToRivetSqliteExecuteBatchRequest, writeToRivetSqliteExecuteRequest, writeToRivetSqliteGetPagesRequest, writeToRivetTunnelMessage, writeToRivetTunnelMessageKind, writeToRivetWebSocketClose, writeToRivetWebSocketMessage, writeToRivetWebSocketMessageAck, writeToRivetWebSocketOpen };