@rivetkit/engine-envoy-protocol 0.0.0-main.a980040 → 0.0.0-main.b2d3b94

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +394 -4
  2. package/dist/index.js +1139 -89
  3. package/package.json +9 -2
package/dist/index.d.ts CHANGED
@@ -165,6 +165,225 @@ 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 SqlitePgno = u32;
169
+ declare function readSqlitePgno(bc: bare.ByteCursor): SqlitePgno;
170
+ declare function writeSqlitePgno(bc: bare.ByteCursor, x: SqlitePgno): void;
171
+ type SqliteGeneration = u64;
172
+ declare function readSqliteGeneration(bc: bare.ByteCursor): SqliteGeneration;
173
+ declare function writeSqliteGeneration(bc: bare.ByteCursor, x: SqliteGeneration): void;
174
+ type SqlitePageBytes = ArrayBuffer;
175
+ declare function readSqlitePageBytes(bc: bare.ByteCursor): SqlitePageBytes;
176
+ declare function writeSqlitePageBytes(bc: bare.ByteCursor, x: SqlitePageBytes): void;
177
+ type SqliteDirtyPage = {
178
+ readonly pgno: SqlitePgno;
179
+ readonly bytes: SqlitePageBytes;
180
+ };
181
+ declare function readSqliteDirtyPage(bc: bare.ByteCursor): SqliteDirtyPage;
182
+ declare function writeSqliteDirtyPage(bc: bare.ByteCursor, x: SqliteDirtyPage): void;
183
+ type SqliteFetchedPage = {
184
+ readonly pgno: SqlitePgno;
185
+ readonly bytes: SqlitePageBytes | null;
186
+ };
187
+ declare function readSqliteFetchedPage(bc: bare.ByteCursor): SqliteFetchedPage;
188
+ declare function writeSqliteFetchedPage(bc: bare.ByteCursor, x: SqliteFetchedPage): void;
189
+ type SqliteGetPagesRequest = {
190
+ readonly actorId: Id;
191
+ readonly pgnos: readonly SqlitePgno[];
192
+ readonly expectedGeneration: u64 | null;
193
+ readonly expectedHeadTxid: u64 | null;
194
+ };
195
+ declare function readSqliteGetPagesRequest(bc: bare.ByteCursor): SqliteGetPagesRequest;
196
+ declare function writeSqliteGetPagesRequest(bc: bare.ByteCursor, x: SqliteGetPagesRequest): void;
197
+ type SqliteGetPagesOk = {
198
+ readonly pages: readonly SqliteFetchedPage[];
199
+ readonly headTxid: u64 | null;
200
+ };
201
+ declare function readSqliteGetPagesOk(bc: bare.ByteCursor): SqliteGetPagesOk;
202
+ declare function writeSqliteGetPagesOk(bc: bare.ByteCursor, x: SqliteGetPagesOk): void;
203
+ type SqliteErrorResponse = {
204
+ readonly group: string;
205
+ readonly code: string;
206
+ readonly message: string;
207
+ };
208
+ declare function readSqliteErrorResponse(bc: bare.ByteCursor): SqliteErrorResponse;
209
+ declare function writeSqliteErrorResponse(bc: bare.ByteCursor, x: SqliteErrorResponse): void;
210
+ type SqliteGetPagesResponse = {
211
+ readonly tag: "SqliteGetPagesOk";
212
+ readonly val: SqliteGetPagesOk;
213
+ } | {
214
+ readonly tag: "SqliteErrorResponse";
215
+ readonly val: SqliteErrorResponse;
216
+ };
217
+ declare function readSqliteGetPagesResponse(bc: bare.ByteCursor): SqliteGetPagesResponse;
218
+ declare function writeSqliteGetPagesResponse(bc: bare.ByteCursor, x: SqliteGetPagesResponse): void;
219
+ type SqliteCommitRequest = {
220
+ readonly actorId: Id;
221
+ readonly dirtyPages: readonly SqliteDirtyPage[];
222
+ readonly dbSizePages: u32;
223
+ readonly nowMs: i64;
224
+ readonly expectedGeneration: u64 | null;
225
+ readonly expectedHeadTxid: u64 | null;
226
+ };
227
+ declare function readSqliteCommitRequest(bc: bare.ByteCursor): SqliteCommitRequest;
228
+ declare function writeSqliteCommitRequest(bc: bare.ByteCursor, x: SqliteCommitRequest): void;
229
+ type SqliteCommitOk = {
230
+ readonly headTxid: u64 | null;
231
+ };
232
+ declare function readSqliteCommitOk(bc: bare.ByteCursor): SqliteCommitOk;
233
+ declare function writeSqliteCommitOk(bc: bare.ByteCursor, x: SqliteCommitOk): void;
234
+ type SqliteCommitResponse = {
235
+ readonly tag: "SqliteCommitOk";
236
+ readonly val: SqliteCommitOk;
237
+ } | {
238
+ readonly tag: "SqliteErrorResponse";
239
+ readonly val: SqliteErrorResponse;
240
+ };
241
+ declare function readSqliteCommitResponse(bc: bare.ByteCursor): SqliteCommitResponse;
242
+ declare function writeSqliteCommitResponse(bc: bare.ByteCursor, x: SqliteCommitResponse): void;
243
+ type SqliteValueNull = null;
244
+ type SqliteValueInteger = {
245
+ readonly value: i64;
246
+ };
247
+ declare function readSqliteValueInteger(bc: bare.ByteCursor): SqliteValueInteger;
248
+ declare function writeSqliteValueInteger(bc: bare.ByteCursor, x: SqliteValueInteger): void;
249
+ type SqliteValueFloat = {
250
+ readonly value: ArrayBuffer;
251
+ };
252
+ declare function readSqliteValueFloat(bc: bare.ByteCursor): SqliteValueFloat;
253
+ declare function writeSqliteValueFloat(bc: bare.ByteCursor, x: SqliteValueFloat): void;
254
+ type SqliteValueText = {
255
+ readonly value: string;
256
+ };
257
+ declare function readSqliteValueText(bc: bare.ByteCursor): SqliteValueText;
258
+ declare function writeSqliteValueText(bc: bare.ByteCursor, x: SqliteValueText): void;
259
+ type SqliteValueBlob = {
260
+ readonly value: ArrayBuffer;
261
+ };
262
+ declare function readSqliteValueBlob(bc: bare.ByteCursor): SqliteValueBlob;
263
+ declare function writeSqliteValueBlob(bc: bare.ByteCursor, x: SqliteValueBlob): void;
264
+ type SqliteBindParam = {
265
+ readonly tag: "SqliteValueNull";
266
+ readonly val: SqliteValueNull;
267
+ } | {
268
+ readonly tag: "SqliteValueInteger";
269
+ readonly val: SqliteValueInteger;
270
+ } | {
271
+ readonly tag: "SqliteValueFloat";
272
+ readonly val: SqliteValueFloat;
273
+ } | {
274
+ readonly tag: "SqliteValueText";
275
+ readonly val: SqliteValueText;
276
+ } | {
277
+ readonly tag: "SqliteValueBlob";
278
+ readonly val: SqliteValueBlob;
279
+ };
280
+ declare function readSqliteBindParam(bc: bare.ByteCursor): SqliteBindParam;
281
+ declare function writeSqliteBindParam(bc: bare.ByteCursor, x: SqliteBindParam): void;
282
+ type SqliteColumnValue = {
283
+ readonly tag: "SqliteValueNull";
284
+ readonly val: SqliteValueNull;
285
+ } | {
286
+ readonly tag: "SqliteValueInteger";
287
+ readonly val: SqliteValueInteger;
288
+ } | {
289
+ readonly tag: "SqliteValueFloat";
290
+ readonly val: SqliteValueFloat;
291
+ } | {
292
+ readonly tag: "SqliteValueText";
293
+ readonly val: SqliteValueText;
294
+ } | {
295
+ readonly tag: "SqliteValueBlob";
296
+ readonly val: SqliteValueBlob;
297
+ };
298
+ declare function readSqliteColumnValue(bc: bare.ByteCursor): SqliteColumnValue;
299
+ declare function writeSqliteColumnValue(bc: bare.ByteCursor, x: SqliteColumnValue): void;
300
+ type SqliteQueryResult = {
301
+ readonly columns: readonly string[];
302
+ readonly rows: readonly (readonly SqliteColumnValue[])[];
303
+ };
304
+ declare function readSqliteQueryResult(bc: bare.ByteCursor): SqliteQueryResult;
305
+ declare function writeSqliteQueryResult(bc: bare.ByteCursor, x: SqliteQueryResult): void;
306
+ type SqliteExecuteResult = {
307
+ readonly columns: readonly string[];
308
+ readonly rows: readonly (readonly SqliteColumnValue[])[];
309
+ readonly changes: i64;
310
+ readonly lastInsertRowId: i64 | null;
311
+ };
312
+ declare function readSqliteExecuteResult(bc: bare.ByteCursor): SqliteExecuteResult;
313
+ declare function writeSqliteExecuteResult(bc: bare.ByteCursor, x: SqliteExecuteResult): void;
314
+ type SqliteExecRequest = {
315
+ readonly namespaceId: Id;
316
+ readonly actorId: Id;
317
+ readonly generation: SqliteGeneration;
318
+ readonly sql: string;
319
+ };
320
+ declare function readSqliteExecRequest(bc: bare.ByteCursor): SqliteExecRequest;
321
+ declare function writeSqliteExecRequest(bc: bare.ByteCursor, x: SqliteExecRequest): void;
322
+ type SqliteExecuteRequest = {
323
+ readonly namespaceId: Id;
324
+ readonly actorId: Id;
325
+ readonly generation: SqliteGeneration;
326
+ readonly sql: string;
327
+ readonly params: readonly SqliteBindParam[] | null;
328
+ };
329
+ declare function readSqliteExecuteRequest(bc: bare.ByteCursor): SqliteExecuteRequest;
330
+ declare function writeSqliteExecuteRequest(bc: bare.ByteCursor, x: SqliteExecuteRequest): void;
331
+ type SqliteBatchStatement = {
332
+ readonly sql: string;
333
+ readonly params: readonly SqliteBindParam[] | null;
334
+ };
335
+ declare function readSqliteBatchStatement(bc: bare.ByteCursor): SqliteBatchStatement;
336
+ declare function writeSqliteBatchStatement(bc: bare.ByteCursor, x: SqliteBatchStatement): void;
337
+ type SqliteExecuteBatchRequest = {
338
+ readonly namespaceId: Id;
339
+ readonly actorId: Id;
340
+ readonly generation: SqliteGeneration;
341
+ readonly statements: readonly SqliteBatchStatement[];
342
+ };
343
+ declare function readSqliteExecuteBatchRequest(bc: bare.ByteCursor): SqliteExecuteBatchRequest;
344
+ declare function writeSqliteExecuteBatchRequest(bc: bare.ByteCursor, x: SqliteExecuteBatchRequest): void;
345
+ type SqliteExecOk = {
346
+ readonly result: SqliteQueryResult;
347
+ };
348
+ declare function readSqliteExecOk(bc: bare.ByteCursor): SqliteExecOk;
349
+ declare function writeSqliteExecOk(bc: bare.ByteCursor, x: SqliteExecOk): void;
350
+ type SqliteExecuteOk = {
351
+ readonly result: SqliteExecuteResult;
352
+ };
353
+ declare function readSqliteExecuteOk(bc: bare.ByteCursor): SqliteExecuteOk;
354
+ declare function writeSqliteExecuteOk(bc: bare.ByteCursor, x: SqliteExecuteOk): void;
355
+ type SqliteExecuteBatchOk = {
356
+ readonly results: readonly SqliteExecuteResult[];
357
+ };
358
+ declare function readSqliteExecuteBatchOk(bc: bare.ByteCursor): SqliteExecuteBatchOk;
359
+ declare function writeSqliteExecuteBatchOk(bc: bare.ByteCursor, x: SqliteExecuteBatchOk): void;
360
+ type SqliteExecResponse = {
361
+ readonly tag: "SqliteExecOk";
362
+ readonly val: SqliteExecOk;
363
+ } | {
364
+ readonly tag: "SqliteErrorResponse";
365
+ readonly val: SqliteErrorResponse;
366
+ };
367
+ declare function readSqliteExecResponse(bc: bare.ByteCursor): SqliteExecResponse;
368
+ declare function writeSqliteExecResponse(bc: bare.ByteCursor, x: SqliteExecResponse): void;
369
+ type SqliteExecuteResponse = {
370
+ readonly tag: "SqliteExecuteOk";
371
+ readonly val: SqliteExecuteOk;
372
+ } | {
373
+ readonly tag: "SqliteErrorResponse";
374
+ readonly val: SqliteErrorResponse;
375
+ };
376
+ declare function readSqliteExecuteResponse(bc: bare.ByteCursor): SqliteExecuteResponse;
377
+ declare function writeSqliteExecuteResponse(bc: bare.ByteCursor, x: SqliteExecuteResponse): void;
378
+ type SqliteExecuteBatchResponse = {
379
+ readonly tag: "SqliteExecuteBatchOk";
380
+ readonly val: SqliteExecuteBatchOk;
381
+ } | {
382
+ readonly tag: "SqliteErrorResponse";
383
+ readonly val: SqliteErrorResponse;
384
+ };
385
+ declare function readSqliteExecuteBatchResponse(bc: bare.ByteCursor): SqliteExecuteBatchResponse;
386
+ declare function writeSqliteExecuteBatchResponse(bc: bare.ByteCursor, x: SqliteExecuteBatchResponse): void;
168
387
  /**
169
388
  * Core
170
389
  */
@@ -354,11 +573,20 @@ declare function writeMessageId(bc: bare.ByteCursor, x: MessageId): void;
354
573
  */
355
574
  type ToEnvoyRequestStart = {
356
575
  readonly actorId: Id;
576
+ /**
577
+ * Exact actor generation selected by Gateway 3. Legacy Gateway 2 requests
578
+ * omit this and retain highest-live-generation routing.
579
+ */
580
+ readonly actorGeneration: u32 | null;
357
581
  readonly method: string;
358
582
  readonly path: string;
359
583
  readonly headers: ReadonlyMap<string, string>;
360
584
  readonly body: ArrayBuffer | null;
361
585
  readonly stream: boolean;
586
+ /**
587
+ * Whether the gateway can accept a streamed response body.
588
+ */
589
+ readonly responseStream: boolean;
362
590
  };
363
591
  declare function readToEnvoyRequestStart(bc: bare.ByteCursor): ToEnvoyRequestStart;
364
592
  declare function writeToEnvoyRequestStart(bc: bare.ByteCursor, x: ToEnvoyRequestStart): void;
@@ -368,7 +596,49 @@ type ToEnvoyRequestChunk = {
368
596
  };
369
597
  declare function readToEnvoyRequestChunk(bc: bare.ByteCursor): ToEnvoyRequestChunk;
370
598
  declare function writeToEnvoyRequestChunk(bc: bare.ByteCursor, x: ToEnvoyRequestChunk): void;
371
- type ToEnvoyRequestAbort = null;
599
+ /**
600
+ * Cumulative request-body bytes consumed by the actor handler. This restores
601
+ * sender credit without requiring one acknowledgement per chunk.
602
+ */
603
+ type ToRivetRequestBodyWindowUpdate = {
604
+ readonly consumedBytes: u64;
605
+ };
606
+ declare function readToRivetRequestBodyWindowUpdate(bc: bare.ByteCursor): ToRivetRequestBodyWindowUpdate;
607
+ declare function writeToRivetRequestBodyWindowUpdate(bc: bare.ByteCursor, x: ToRivetRequestBodyWindowUpdate): void;
608
+ /**
609
+ * The actor handler no longer wants request-body bytes. The HTTP response may
610
+ * still continue normally.
611
+ */
612
+ type ToRivetRequestBodyCancel = null;
613
+ declare enum HttpStreamAbortReasonKind {
614
+ Unknown = "Unknown",
615
+ Cancelled = "Cancelled",
616
+ HandlerError = "HandlerError",
617
+ InternalError = "InternalError"
618
+ }
619
+ declare function readHttpStreamAbortReasonKind(bc: bare.ByteCursor): HttpStreamAbortReasonKind;
620
+ declare function writeHttpStreamAbortReasonKind(bc: bare.ByteCursor, x: HttpStreamAbortReasonKind): void;
621
+ type HttpStreamAbortReason = {
622
+ readonly kind: HttpStreamAbortReasonKind;
623
+ readonly detail: string | null;
624
+ };
625
+ declare function readHttpStreamAbortReason(bc: bare.ByteCursor): HttpStreamAbortReason;
626
+ declare function writeHttpStreamAbortReason(bc: bare.ByteCursor, x: HttpStreamAbortReason): void;
627
+ type ToEnvoyRequestAbort = {
628
+ /**
629
+ * Exact admission identity. Gateway 3 always sets both fields so Envoy can
630
+ * suppress a delayed RequestStart after an indeterminate handoff.
631
+ */
632
+ readonly actorId: Id | null;
633
+ readonly actorGeneration: u32 | null;
634
+ readonly reason: HttpStreamAbortReason;
635
+ };
636
+ declare function readToEnvoyRequestAbort(bc: bare.ByteCursor): ToEnvoyRequestAbort;
637
+ declare function writeToEnvoyRequestAbort(bc: bare.ByteCursor, x: ToEnvoyRequestAbort): void;
638
+ /**
639
+ * Stop the actor-side request body without cancelling the HTTP response.
640
+ */
641
+ type ToEnvoyRequestBodyCancel = null;
372
642
  type ToRivetResponseStart = {
373
643
  readonly status: u16;
374
644
  readonly headers: ReadonlyMap<string, string>;
@@ -383,12 +653,30 @@ type ToRivetResponseChunk = {
383
653
  };
384
654
  declare function readToRivetResponseChunk(bc: bare.ByteCursor): ToRivetResponseChunk;
385
655
  declare function writeToRivetResponseChunk(bc: bare.ByteCursor, x: ToRivetResponseChunk): void;
386
- type ToRivetResponseAbort = null;
656
+ /**
657
+ * Cumulative response-body bytes consumed by the gateway client. This restores
658
+ * sender credit without requiring one acknowledgement per chunk.
659
+ */
660
+ type ToEnvoyResponseBodyWindowUpdate = {
661
+ readonly consumedBytes: u64;
662
+ };
663
+ declare function readToEnvoyResponseBodyWindowUpdate(bc: bare.ByteCursor): ToEnvoyResponseBodyWindowUpdate;
664
+ declare function writeToEnvoyResponseBodyWindowUpdate(bc: bare.ByteCursor, x: ToEnvoyResponseBodyWindowUpdate): void;
665
+ type ToRivetResponseAbort = {
666
+ readonly reason: HttpStreamAbortReason;
667
+ };
668
+ declare function readToRivetResponseAbort(bc: bare.ByteCursor): ToRivetResponseAbort;
669
+ declare function writeToRivetResponseAbort(bc: bare.ByteCursor, x: ToRivetResponseAbort): void;
387
670
  /**
388
671
  * WebSocket
389
672
  */
390
673
  type ToEnvoyWebSocketOpen = {
391
674
  readonly actorId: Id;
675
+ /**
676
+ * Exact actor generation selected by Gateway 3. Legacy Gateway 2 requests
677
+ * omit this and retain highest-live-generation routing.
678
+ */
679
+ readonly actorGeneration: u32 | null;
392
680
  readonly path: string;
393
681
  readonly headers: ReadonlyMap<string, string>;
394
682
  };
@@ -445,6 +733,12 @@ type ToRivetTunnelMessageKind =
445
733
  } | {
446
734
  readonly tag: "ToRivetResponseAbort";
447
735
  readonly val: ToRivetResponseAbort;
736
+ } | {
737
+ readonly tag: "ToRivetRequestBodyWindowUpdate";
738
+ readonly val: ToRivetRequestBodyWindowUpdate;
739
+ } | {
740
+ readonly tag: "ToRivetRequestBodyCancel";
741
+ readonly val: ToRivetRequestBodyCancel;
448
742
  }
449
743
  /**
450
744
  * WebSocket
@@ -486,6 +780,12 @@ type ToEnvoyTunnelMessageKind =
486
780
  } | {
487
781
  readonly tag: "ToEnvoyRequestAbort";
488
782
  readonly val: ToEnvoyRequestAbort;
783
+ } | {
784
+ readonly tag: "ToEnvoyRequestBodyCancel";
785
+ readonly val: ToEnvoyRequestBodyCancel;
786
+ } | {
787
+ readonly tag: "ToEnvoyResponseBodyWindowUpdate";
788
+ readonly val: ToEnvoyResponseBodyWindowUpdate;
489
789
  }
490
790
  /**
491
791
  * WebSocket
@@ -543,6 +843,36 @@ type ToRivetKvRequest = {
543
843
  };
544
844
  declare function readToRivetKvRequest(bc: bare.ByteCursor): ToRivetKvRequest;
545
845
  declare function writeToRivetKvRequest(bc: bare.ByteCursor, x: ToRivetKvRequest): void;
846
+ type ToRivetSqliteGetPagesRequest = {
847
+ readonly requestId: u32;
848
+ readonly data: SqliteGetPagesRequest;
849
+ };
850
+ declare function readToRivetSqliteGetPagesRequest(bc: bare.ByteCursor): ToRivetSqliteGetPagesRequest;
851
+ declare function writeToRivetSqliteGetPagesRequest(bc: bare.ByteCursor, x: ToRivetSqliteGetPagesRequest): void;
852
+ type ToRivetSqliteCommitRequest = {
853
+ readonly requestId: u32;
854
+ readonly data: SqliteCommitRequest;
855
+ };
856
+ declare function readToRivetSqliteCommitRequest(bc: bare.ByteCursor): ToRivetSqliteCommitRequest;
857
+ declare function writeToRivetSqliteCommitRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitRequest): void;
858
+ type ToRivetSqliteExecRequest = {
859
+ readonly requestId: u32;
860
+ readonly data: SqliteExecRequest;
861
+ };
862
+ declare function readToRivetSqliteExecRequest(bc: bare.ByteCursor): ToRivetSqliteExecRequest;
863
+ declare function writeToRivetSqliteExecRequest(bc: bare.ByteCursor, x: ToRivetSqliteExecRequest): void;
864
+ type ToRivetSqliteExecuteRequest = {
865
+ readonly requestId: u32;
866
+ readonly data: SqliteExecuteRequest;
867
+ };
868
+ declare function readToRivetSqliteExecuteRequest(bc: bare.ByteCursor): ToRivetSqliteExecuteRequest;
869
+ declare function writeToRivetSqliteExecuteRequest(bc: bare.ByteCursor, x: ToRivetSqliteExecuteRequest): void;
870
+ type ToRivetSqliteExecuteBatchRequest = {
871
+ readonly requestId: u32;
872
+ readonly data: SqliteExecuteBatchRequest;
873
+ };
874
+ declare function readToRivetSqliteExecuteBatchRequest(bc: bare.ByteCursor): ToRivetSqliteExecuteBatchRequest;
875
+ declare function writeToRivetSqliteExecuteBatchRequest(bc: bare.ByteCursor, x: ToRivetSqliteExecuteBatchRequest): void;
546
876
  type ToRivet = {
547
877
  readonly tag: "ToRivetMetadata";
548
878
  readonly val: ToRivetMetadata;
@@ -564,6 +894,21 @@ type ToRivet = {
564
894
  } | {
565
895
  readonly tag: "ToRivetTunnelMessage";
566
896
  readonly val: ToRivetTunnelMessage;
897
+ } | {
898
+ readonly tag: "ToRivetSqliteGetPagesRequest";
899
+ readonly val: ToRivetSqliteGetPagesRequest;
900
+ } | {
901
+ readonly tag: "ToRivetSqliteCommitRequest";
902
+ readonly val: ToRivetSqliteCommitRequest;
903
+ } | {
904
+ readonly tag: "ToRivetSqliteExecRequest";
905
+ readonly val: ToRivetSqliteExecRequest;
906
+ } | {
907
+ readonly tag: "ToRivetSqliteExecuteRequest";
908
+ readonly val: ToRivetSqliteExecuteRequest;
909
+ } | {
910
+ readonly tag: "ToRivetSqliteExecuteBatchRequest";
911
+ readonly val: ToRivetSqliteExecuteBatchRequest;
567
912
  };
568
913
  declare function readToRivet(bc: bare.ByteCursor): ToRivet;
569
914
  declare function writeToRivet(bc: bare.ByteCursor, x: ToRivet): void;
@@ -598,6 +943,36 @@ type ToEnvoyKvResponse = {
598
943
  };
599
944
  declare function readToEnvoyKvResponse(bc: bare.ByteCursor): ToEnvoyKvResponse;
600
945
  declare function writeToEnvoyKvResponse(bc: bare.ByteCursor, x: ToEnvoyKvResponse): void;
946
+ type ToEnvoySqliteGetPagesResponse = {
947
+ readonly requestId: u32;
948
+ readonly data: SqliteGetPagesResponse;
949
+ };
950
+ declare function readToEnvoySqliteGetPagesResponse(bc: bare.ByteCursor): ToEnvoySqliteGetPagesResponse;
951
+ declare function writeToEnvoySqliteGetPagesResponse(bc: bare.ByteCursor, x: ToEnvoySqliteGetPagesResponse): void;
952
+ type ToEnvoySqliteCommitResponse = {
953
+ readonly requestId: u32;
954
+ readonly data: SqliteCommitResponse;
955
+ };
956
+ declare function readToEnvoySqliteCommitResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitResponse;
957
+ declare function writeToEnvoySqliteCommitResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitResponse): void;
958
+ type ToEnvoySqliteExecResponse = {
959
+ readonly requestId: u32;
960
+ readonly data: SqliteExecResponse;
961
+ };
962
+ declare function readToEnvoySqliteExecResponse(bc: bare.ByteCursor): ToEnvoySqliteExecResponse;
963
+ declare function writeToEnvoySqliteExecResponse(bc: bare.ByteCursor, x: ToEnvoySqliteExecResponse): void;
964
+ type ToEnvoySqliteExecuteResponse = {
965
+ readonly requestId: u32;
966
+ readonly data: SqliteExecuteResponse;
967
+ };
968
+ declare function readToEnvoySqliteExecuteResponse(bc: bare.ByteCursor): ToEnvoySqliteExecuteResponse;
969
+ declare function writeToEnvoySqliteExecuteResponse(bc: bare.ByteCursor, x: ToEnvoySqliteExecuteResponse): void;
970
+ type ToEnvoySqliteExecuteBatchResponse = {
971
+ readonly requestId: u32;
972
+ readonly data: SqliteExecuteBatchResponse;
973
+ };
974
+ declare function readToEnvoySqliteExecuteBatchResponse(bc: bare.ByteCursor): ToEnvoySqliteExecuteBatchResponse;
975
+ declare function writeToEnvoySqliteExecuteBatchResponse(bc: bare.ByteCursor, x: ToEnvoySqliteExecuteBatchResponse): void;
601
976
  type ToEnvoy = {
602
977
  readonly tag: "ToEnvoyInit";
603
978
  readonly val: ToEnvoyInit;
@@ -616,6 +991,21 @@ type ToEnvoy = {
616
991
  } | {
617
992
  readonly tag: "ToEnvoyPing";
618
993
  readonly val: ToEnvoyPing;
994
+ } | {
995
+ readonly tag: "ToEnvoySqliteGetPagesResponse";
996
+ readonly val: ToEnvoySqliteGetPagesResponse;
997
+ } | {
998
+ readonly tag: "ToEnvoySqliteCommitResponse";
999
+ readonly val: ToEnvoySqliteCommitResponse;
1000
+ } | {
1001
+ readonly tag: "ToEnvoySqliteExecResponse";
1002
+ readonly val: ToEnvoySqliteExecResponse;
1003
+ } | {
1004
+ readonly tag: "ToEnvoySqliteExecuteResponse";
1005
+ readonly val: ToEnvoySqliteExecuteResponse;
1006
+ } | {
1007
+ readonly tag: "ToEnvoySqliteExecuteBatchResponse";
1008
+ readonly val: ToEnvoySqliteExecuteBatchResponse;
619
1009
  };
620
1010
  declare function readToEnvoy(bc: bare.ByteCursor): ToEnvoy;
621
1011
  declare function writeToEnvoy(bc: bare.ByteCursor, x: ToEnvoy): void;
@@ -691,6 +1081,6 @@ declare function readToOutbound(bc: bare.ByteCursor): ToOutbound;
691
1081
  declare function writeToOutbound(bc: bare.ByteCursor, x: ToOutbound): void;
692
1082
  declare function encodeToOutbound(x: ToOutbound, config?: Partial<bare.Config>): Uint8Array;
693
1083
  declare function decodeToOutbound(bytes: Uint8Array): ToOutbound;
694
- declare const VERSION = 1;
1084
+ declare const VERSION = 7;
695
1085
 
696
- 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, 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 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 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, readStopActorReason, readStopCode, readToEnvoy, readToEnvoyAckEvents, readToEnvoyCommands, readToEnvoyConn, readToEnvoyConnPing, readToEnvoyInit, readToEnvoyKvResponse, readToEnvoyPing, readToEnvoyRequestChunk, readToEnvoyRequestStart, readToEnvoyTunnelMessage, readToEnvoyTunnelMessageKind, readToEnvoyWebSocketClose, readToEnvoyWebSocketMessage, readToEnvoyWebSocketOpen, readToGateway, readToGatewayPong, readToOutbound, readToOutboundActorStart, readToRivet, readToRivetAckCommands, readToRivetEvents, readToRivetKvRequest, readToRivetMetadata, readToRivetPong, readToRivetResponseChunk, readToRivetResponseStart, 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, writeStopActorReason, writeStopCode, writeToEnvoy, writeToEnvoyAckEvents, writeToEnvoyCommands, writeToEnvoyConn, writeToEnvoyConnPing, writeToEnvoyInit, writeToEnvoyKvResponse, writeToEnvoyPing, writeToEnvoyRequestChunk, writeToEnvoyRequestStart, writeToEnvoyTunnelMessage, writeToEnvoyTunnelMessageKind, writeToEnvoyWebSocketClose, writeToEnvoyWebSocketMessage, writeToEnvoyWebSocketOpen, writeToGateway, writeToGatewayPong, writeToOutbound, writeToOutboundActorStart, writeToRivet, writeToRivetAckCommands, writeToRivetEvents, writeToRivetKvRequest, writeToRivetMetadata, writeToRivetPong, writeToRivetResponseChunk, writeToRivetResponseStart, writeToRivetTunnelMessage, writeToRivetTunnelMessageKind, writeToRivetWebSocketClose, writeToRivetWebSocketMessage, writeToRivetWebSocketMessageAck, writeToRivetWebSocketOpen };
1086
+ 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 SqliteCommitOk, type SqliteCommitRequest, type SqliteCommitResponse, 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 ToEnvoySqliteCommitResponse, 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 ToRivetSqliteCommitRequest, 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, readSqliteCommitOk, readSqliteCommitRequest, readSqliteCommitResponse, 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, readToEnvoySqliteCommitResponse, readToEnvoySqliteExecResponse, readToEnvoySqliteExecuteBatchResponse, readToEnvoySqliteExecuteResponse, readToEnvoySqliteGetPagesResponse, readToEnvoyTunnelMessage, readToEnvoyTunnelMessageKind, readToEnvoyWebSocketClose, readToEnvoyWebSocketMessage, readToEnvoyWebSocketOpen, readToGateway, readToGatewayPong, readToOutbound, readToOutboundActorStart, readToRivet, readToRivetAckCommands, readToRivetEvents, readToRivetKvRequest, readToRivetMetadata, readToRivetPong, readToRivetRequestBodyWindowUpdate, readToRivetResponseAbort, readToRivetResponseChunk, readToRivetResponseStart, readToRivetSqliteCommitRequest, 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, writeSqliteCommitOk, writeSqliteCommitRequest, writeSqliteCommitResponse, 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, writeToEnvoySqliteCommitResponse, writeToEnvoySqliteExecResponse, writeToEnvoySqliteExecuteBatchResponse, writeToEnvoySqliteExecuteResponse, writeToEnvoySqliteGetPagesResponse, writeToEnvoyTunnelMessage, writeToEnvoyTunnelMessageKind, writeToEnvoyWebSocketClose, writeToEnvoyWebSocketMessage, writeToEnvoyWebSocketOpen, writeToGateway, writeToGatewayPong, writeToOutbound, writeToOutboundActorStart, writeToRivet, writeToRivetAckCommands, writeToRivetEvents, writeToRivetKvRequest, writeToRivetMetadata, writeToRivetPong, writeToRivetRequestBodyWindowUpdate, writeToRivetResponseAbort, writeToRivetResponseChunk, writeToRivetResponseStart, writeToRivetSqliteCommitRequest, writeToRivetSqliteExecRequest, writeToRivetSqliteExecuteBatchRequest, writeToRivetSqliteExecuteRequest, writeToRivetSqliteGetPagesRequest, writeToRivetTunnelMessage, writeToRivetTunnelMessageKind, writeToRivetWebSocketClose, writeToRivetWebSocketMessage, writeToRivetWebSocketMessageAck, writeToRivetWebSocketOpen };