@rivetkit/engine-envoy-protocol 2.3.4 → 2.3.5-rc.1

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
@@ -328,6 +328,20 @@ type SqliteExecuteRequest = {
328
328
  };
329
329
  declare function readSqliteExecuteRequest(bc: bare.ByteCursor): SqliteExecuteRequest;
330
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;
331
345
  type SqliteExecOk = {
332
346
  readonly result: SqliteQueryResult;
333
347
  };
@@ -338,6 +352,11 @@ type SqliteExecuteOk = {
338
352
  };
339
353
  declare function readSqliteExecuteOk(bc: bare.ByteCursor): SqliteExecuteOk;
340
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;
341
360
  type SqliteExecResponse = {
342
361
  readonly tag: "SqliteExecOk";
343
362
  readonly val: SqliteExecOk;
@@ -356,6 +375,15 @@ type SqliteExecuteResponse = {
356
375
  };
357
376
  declare function readSqliteExecuteResponse(bc: bare.ByteCursor): SqliteExecuteResponse;
358
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;
359
387
  /**
360
388
  * Core
361
389
  */
@@ -758,6 +786,12 @@ type ToRivetSqliteExecuteRequest = {
758
786
  };
759
787
  declare function readToRivetSqliteExecuteRequest(bc: bare.ByteCursor): ToRivetSqliteExecuteRequest;
760
788
  declare function writeToRivetSqliteExecuteRequest(bc: bare.ByteCursor, x: ToRivetSqliteExecuteRequest): void;
789
+ type ToRivetSqliteExecuteBatchRequest = {
790
+ readonly requestId: u32;
791
+ readonly data: SqliteExecuteBatchRequest;
792
+ };
793
+ declare function readToRivetSqliteExecuteBatchRequest(bc: bare.ByteCursor): ToRivetSqliteExecuteBatchRequest;
794
+ declare function writeToRivetSqliteExecuteBatchRequest(bc: bare.ByteCursor, x: ToRivetSqliteExecuteBatchRequest): void;
761
795
  type ToRivet = {
762
796
  readonly tag: "ToRivetMetadata";
763
797
  readonly val: ToRivetMetadata;
@@ -791,6 +825,9 @@ type ToRivet = {
791
825
  } | {
792
826
  readonly tag: "ToRivetSqliteExecuteRequest";
793
827
  readonly val: ToRivetSqliteExecuteRequest;
828
+ } | {
829
+ readonly tag: "ToRivetSqliteExecuteBatchRequest";
830
+ readonly val: ToRivetSqliteExecuteBatchRequest;
794
831
  };
795
832
  declare function readToRivet(bc: bare.ByteCursor): ToRivet;
796
833
  declare function writeToRivet(bc: bare.ByteCursor, x: ToRivet): void;
@@ -849,6 +886,12 @@ type ToEnvoySqliteExecuteResponse = {
849
886
  };
850
887
  declare function readToEnvoySqliteExecuteResponse(bc: bare.ByteCursor): ToEnvoySqliteExecuteResponse;
851
888
  declare function writeToEnvoySqliteExecuteResponse(bc: bare.ByteCursor, x: ToEnvoySqliteExecuteResponse): void;
889
+ type ToEnvoySqliteExecuteBatchResponse = {
890
+ readonly requestId: u32;
891
+ readonly data: SqliteExecuteBatchResponse;
892
+ };
893
+ declare function readToEnvoySqliteExecuteBatchResponse(bc: bare.ByteCursor): ToEnvoySqliteExecuteBatchResponse;
894
+ declare function writeToEnvoySqliteExecuteBatchResponse(bc: bare.ByteCursor, x: ToEnvoySqliteExecuteBatchResponse): void;
852
895
  type ToEnvoy = {
853
896
  readonly tag: "ToEnvoyInit";
854
897
  readonly val: ToEnvoyInit;
@@ -879,6 +922,9 @@ type ToEnvoy = {
879
922
  } | {
880
923
  readonly tag: "ToEnvoySqliteExecuteResponse";
881
924
  readonly val: ToEnvoySqliteExecuteResponse;
925
+ } | {
926
+ readonly tag: "ToEnvoySqliteExecuteBatchResponse";
927
+ readonly val: ToEnvoySqliteExecuteBatchResponse;
882
928
  };
883
929
  declare function readToEnvoy(bc: bare.ByteCursor): ToEnvoy;
884
930
  declare function writeToEnvoy(bc: bare.ByteCursor, x: ToEnvoy): void;
@@ -954,6 +1000,6 @@ declare function readToOutbound(bc: bare.ByteCursor): ToOutbound;
954
1000
  declare function writeToOutbound(bc: bare.ByteCursor, x: ToOutbound): void;
955
1001
  declare function encodeToOutbound(x: ToOutbound, config?: Partial<bare.Config>): Uint8Array;
956
1002
  declare function decodeToOutbound(bytes: Uint8Array): ToOutbound;
957
- declare const VERSION = 5;
1003
+ declare const VERSION = 6;
958
1004
 
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 };
1005
+ 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 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 ToEnvoyRequestChunk, type ToEnvoyRequestStart, 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 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, 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, readToEnvoyRequestChunk, readToEnvoyRequestStart, readToEnvoySqliteCommitResponse, readToEnvoySqliteExecResponse, readToEnvoySqliteExecuteBatchResponse, readToEnvoySqliteExecuteResponse, readToEnvoySqliteGetPagesResponse, readToEnvoyTunnelMessage, readToEnvoyTunnelMessageKind, readToEnvoyWebSocketClose, readToEnvoyWebSocketMessage, readToEnvoyWebSocketOpen, readToGateway, readToGatewayPong, readToOutbound, readToOutboundActorStart, readToRivet, readToRivetAckCommands, readToRivetEvents, readToRivetKvRequest, readToRivetMetadata, readToRivetPong, 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, 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, writeToEnvoyRequestChunk, writeToEnvoyRequestStart, writeToEnvoySqliteCommitResponse, writeToEnvoySqliteExecResponse, writeToEnvoySqliteExecuteBatchResponse, writeToEnvoySqliteExecuteResponse, writeToEnvoySqliteGetPagesResponse, writeToEnvoyTunnelMessage, writeToEnvoyTunnelMessageKind, writeToEnvoyWebSocketClose, writeToEnvoyWebSocketMessage, writeToEnvoyWebSocketOpen, writeToGateway, writeToGatewayPong, writeToOutbound, writeToOutboundActorStart, writeToRivet, writeToRivetAckCommands, writeToRivetEvents, writeToRivetKvRequest, writeToRivetMetadata, writeToRivetPong, writeToRivetResponseChunk, writeToRivetResponseStart, writeToRivetSqliteCommitRequest, writeToRivetSqliteExecRequest, writeToRivetSqliteExecuteBatchRequest, writeToRivetSqliteExecuteRequest, writeToRivetSqliteGetPagesRequest, writeToRivetTunnelMessage, writeToRivetTunnelMessageKind, writeToRivetWebSocketClose, writeToRivetWebSocketMessage, writeToRivetWebSocketMessageAck, writeToRivetWebSocketOpen };
package/dist/index.js CHANGED
@@ -853,6 +853,47 @@ function writeSqliteExecuteRequest(bc, x) {
853
853
  bare.writeString(bc, x.sql);
854
854
  write14(bc, x.params);
855
855
  }
856
+ function readSqliteBatchStatement(bc) {
857
+ return {
858
+ sql: bare.readString(bc),
859
+ params: read14(bc)
860
+ };
861
+ }
862
+ function writeSqliteBatchStatement(bc, x) {
863
+ bare.writeString(bc, x.sql);
864
+ write14(bc, x.params);
865
+ }
866
+ function read15(bc) {
867
+ const len = bare.readUintSafe(bc);
868
+ if (len === 0) {
869
+ return [];
870
+ }
871
+ const result = [readSqliteBatchStatement(bc)];
872
+ for (let i = 1; i < len; i++) {
873
+ result[i] = readSqliteBatchStatement(bc);
874
+ }
875
+ return result;
876
+ }
877
+ function write15(bc, x) {
878
+ bare.writeUintSafe(bc, x.length);
879
+ for (let i = 0; i < x.length; i++) {
880
+ writeSqliteBatchStatement(bc, x[i]);
881
+ }
882
+ }
883
+ function readSqliteExecuteBatchRequest(bc) {
884
+ return {
885
+ namespaceId: readId(bc),
886
+ actorId: readId(bc),
887
+ generation: readSqliteGeneration(bc),
888
+ statements: read15(bc)
889
+ };
890
+ }
891
+ function writeSqliteExecuteBatchRequest(bc, x) {
892
+ writeId(bc, x.namespaceId);
893
+ writeId(bc, x.actorId);
894
+ writeSqliteGeneration(bc, x.generation);
895
+ write15(bc, x.statements);
896
+ }
856
897
  function readSqliteExecOk(bc) {
857
898
  return {
858
899
  result: readSqliteQueryResult(bc)
@@ -869,6 +910,31 @@ function readSqliteExecuteOk(bc) {
869
910
  function writeSqliteExecuteOk(bc, x) {
870
911
  writeSqliteExecuteResult(bc, x.result);
871
912
  }
913
+ function read16(bc) {
914
+ const len = bare.readUintSafe(bc);
915
+ if (len === 0) {
916
+ return [];
917
+ }
918
+ const result = [readSqliteExecuteResult(bc)];
919
+ for (let i = 1; i < len; i++) {
920
+ result[i] = readSqliteExecuteResult(bc);
921
+ }
922
+ return result;
923
+ }
924
+ function write16(bc, x) {
925
+ bare.writeUintSafe(bc, x.length);
926
+ for (let i = 0; i < x.length; i++) {
927
+ writeSqliteExecuteResult(bc, x[i]);
928
+ }
929
+ }
930
+ function readSqliteExecuteBatchOk(bc) {
931
+ return {
932
+ results: read16(bc)
933
+ };
934
+ }
935
+ function writeSqliteExecuteBatchOk(bc, x) {
936
+ write16(bc, x.results);
937
+ }
872
938
  function readSqliteExecResponse(bc) {
873
939
  const offset = bc.offset;
874
940
  const tag = bare.readU8(bc);
@@ -925,6 +991,34 @@ function writeSqliteExecuteResponse(bc, x) {
925
991
  }
926
992
  }
927
993
  }
994
+ function readSqliteExecuteBatchResponse(bc) {
995
+ const offset = bc.offset;
996
+ const tag = bare.readU8(bc);
997
+ switch (tag) {
998
+ case 0:
999
+ return { tag: "SqliteExecuteBatchOk", val: readSqliteExecuteBatchOk(bc) };
1000
+ case 1:
1001
+ return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
1002
+ default: {
1003
+ bc.offset = offset;
1004
+ throw new bare.BareError(offset, "invalid tag");
1005
+ }
1006
+ }
1007
+ }
1008
+ function writeSqliteExecuteBatchResponse(bc, x) {
1009
+ switch (x.tag) {
1010
+ case "SqliteExecuteBatchOk": {
1011
+ bare.writeU8(bc, 0);
1012
+ writeSqliteExecuteBatchOk(bc, x.val);
1013
+ break;
1014
+ }
1015
+ case "SqliteErrorResponse": {
1016
+ bare.writeU8(bc, 1);
1017
+ writeSqliteErrorResponse(bc, x.val);
1018
+ break;
1019
+ }
1020
+ }
1021
+ }
928
1022
  var StopCode = /* @__PURE__ */ ((StopCode2) => {
929
1023
  StopCode2["Ok"] = "Ok";
930
1024
  StopCode2["Error"] = "Error";
@@ -964,19 +1058,19 @@ function readActorName(bc) {
964
1058
  function writeActorName(bc, x) {
965
1059
  writeJson(bc, x.metadata);
966
1060
  }
967
- function read15(bc) {
1061
+ function read17(bc) {
968
1062
  return bare.readBool(bc) ? bare.readString(bc) : null;
969
1063
  }
970
- function write15(bc, x) {
1064
+ function write17(bc, x) {
971
1065
  bare.writeBool(bc, x != null);
972
1066
  if (x != null) {
973
1067
  bare.writeString(bc, x);
974
1068
  }
975
1069
  }
976
- function read16(bc) {
1070
+ function read18(bc) {
977
1071
  return bare.readBool(bc) ? bare.readData(bc) : null;
978
1072
  }
979
- function write16(bc, x) {
1073
+ function write18(bc, x) {
980
1074
  bare.writeBool(bc, x != null);
981
1075
  if (x != null) {
982
1076
  bare.writeData(bc, x);
@@ -985,16 +1079,16 @@ function write16(bc, x) {
985
1079
  function readActorConfig(bc) {
986
1080
  return {
987
1081
  name: bare.readString(bc),
988
- key: read15(bc),
1082
+ key: read17(bc),
989
1083
  createTs: bare.readI64(bc),
990
- input: read16(bc)
1084
+ input: read18(bc)
991
1085
  };
992
1086
  }
993
1087
  function writeActorConfig(bc, x) {
994
1088
  bare.writeString(bc, x.name);
995
- write15(bc, x.key);
1089
+ write17(bc, x.key);
996
1090
  bare.writeI64(bc, x.createTs);
997
- write16(bc, x.input);
1091
+ write18(bc, x.input);
998
1092
  }
999
1093
  function readActorCheckpoint(bc) {
1000
1094
  return {
@@ -1037,12 +1131,12 @@ function writeActorIntent(bc, x) {
1037
1131
  function readActorStateStopped(bc) {
1038
1132
  return {
1039
1133
  code: readStopCode(bc),
1040
- message: read15(bc)
1134
+ message: read17(bc)
1041
1135
  };
1042
1136
  }
1043
1137
  function writeActorStateStopped(bc, x) {
1044
1138
  writeStopCode(bc, x.code);
1045
- write15(bc, x.message);
1139
+ write17(bc, x.message);
1046
1140
  }
1047
1141
  function readActorState(bc) {
1048
1142
  const offset = bc.offset;
@@ -1152,7 +1246,7 @@ function writePreloadedKvEntry(bc, x) {
1152
1246
  writeKvValue(bc, x.value);
1153
1247
  writeKvMetadata(bc, x.metadata);
1154
1248
  }
1155
- function read17(bc) {
1249
+ function read19(bc) {
1156
1250
  const len = bare.readUintSafe(bc);
1157
1251
  if (len === 0) {
1158
1252
  return [];
@@ -1163,7 +1257,7 @@ function read17(bc) {
1163
1257
  }
1164
1258
  return result;
1165
1259
  }
1166
- function write17(bc, x) {
1260
+ function write19(bc, x) {
1167
1261
  bare.writeUintSafe(bc, x.length);
1168
1262
  for (let i = 0; i < x.length; i++) {
1169
1263
  writePreloadedKvEntry(bc, x[i]);
@@ -1171,13 +1265,13 @@ function write17(bc, x) {
1171
1265
  }
1172
1266
  function readPreloadedKv(bc) {
1173
1267
  return {
1174
- entries: read17(bc),
1268
+ entries: read19(bc),
1175
1269
  requestedGetKeys: read0(bc),
1176
1270
  requestedPrefixes: read0(bc)
1177
1271
  };
1178
1272
  }
1179
1273
  function writePreloadedKv(bc, x) {
1180
- write17(bc, x.entries);
1274
+ write19(bc, x.entries);
1181
1275
  write0(bc, x.requestedGetKeys);
1182
1276
  write0(bc, x.requestedPrefixes);
1183
1277
  }
@@ -1191,7 +1285,7 @@ function writeHibernatingRequest(bc, x) {
1191
1285
  writeGatewayId(bc, x.gatewayId);
1192
1286
  writeRequestId(bc, x.requestId);
1193
1287
  }
1194
- function read18(bc) {
1288
+ function read20(bc) {
1195
1289
  const len = bare.readUintSafe(bc);
1196
1290
  if (len === 0) {
1197
1291
  return [];
@@ -1202,16 +1296,16 @@ function read18(bc) {
1202
1296
  }
1203
1297
  return result;
1204
1298
  }
1205
- function write18(bc, x) {
1299
+ function write20(bc, x) {
1206
1300
  bare.writeUintSafe(bc, x.length);
1207
1301
  for (let i = 0; i < x.length; i++) {
1208
1302
  writeHibernatingRequest(bc, x[i]);
1209
1303
  }
1210
1304
  }
1211
- function read19(bc) {
1305
+ function read21(bc) {
1212
1306
  return bare.readBool(bc) ? readPreloadedKv(bc) : null;
1213
1307
  }
1214
- function write19(bc, x) {
1308
+ function write21(bc, x) {
1215
1309
  bare.writeBool(bc, x != null);
1216
1310
  if (x != null) {
1217
1311
  writePreloadedKv(bc, x);
@@ -1220,14 +1314,14 @@ function write19(bc, x) {
1220
1314
  function readCommandStartActor(bc) {
1221
1315
  return {
1222
1316
  config: readActorConfig(bc),
1223
- hibernatingRequests: read18(bc),
1224
- preloadedKv: read19(bc)
1317
+ hibernatingRequests: read20(bc),
1318
+ preloadedKv: read21(bc)
1225
1319
  };
1226
1320
  }
1227
1321
  function writeCommandStartActor(bc, x) {
1228
1322
  writeActorConfig(bc, x.config);
1229
- write18(bc, x.hibernatingRequests);
1230
- write19(bc, x.preloadedKv);
1323
+ write20(bc, x.hibernatingRequests);
1324
+ write21(bc, x.preloadedKv);
1231
1325
  }
1232
1326
  var StopActorReason = /* @__PURE__ */ ((StopActorReason2) => {
1233
1327
  StopActorReason2["SleepIntent"] = "SleepIntent";
@@ -1384,7 +1478,7 @@ function writeMessageId(bc, x) {
1384
1478
  writeRequestId(bc, x.requestId);
1385
1479
  writeMessageIndex(bc, x.messageIndex);
1386
1480
  }
1387
- function read20(bc) {
1481
+ function read22(bc) {
1388
1482
  const len = bare.readUintSafe(bc);
1389
1483
  const result = /* @__PURE__ */ new Map();
1390
1484
  for (let i = 0; i < len; i++) {
@@ -1398,7 +1492,7 @@ function read20(bc) {
1398
1492
  }
1399
1493
  return result;
1400
1494
  }
1401
- function write20(bc, x) {
1495
+ function write22(bc, x) {
1402
1496
  bare.writeUintSafe(bc, x.size);
1403
1497
  for (const kv of x) {
1404
1498
  bare.writeString(bc, kv[0]);
@@ -1410,8 +1504,8 @@ function readToEnvoyRequestStart(bc) {
1410
1504
  actorId: readId(bc),
1411
1505
  method: bare.readString(bc),
1412
1506
  path: bare.readString(bc),
1413
- headers: read20(bc),
1414
- body: read16(bc),
1507
+ headers: read22(bc),
1508
+ body: read18(bc),
1415
1509
  stream: bare.readBool(bc)
1416
1510
  };
1417
1511
  }
@@ -1419,8 +1513,8 @@ function writeToEnvoyRequestStart(bc, x) {
1419
1513
  writeId(bc, x.actorId);
1420
1514
  bare.writeString(bc, x.method);
1421
1515
  bare.writeString(bc, x.path);
1422
- write20(bc, x.headers);
1423
- write16(bc, x.body);
1516
+ write22(bc, x.headers);
1517
+ write18(bc, x.body);
1424
1518
  bare.writeBool(bc, x.stream);
1425
1519
  }
1426
1520
  function readToEnvoyRequestChunk(bc) {
@@ -1436,15 +1530,15 @@ function writeToEnvoyRequestChunk(bc, x) {
1436
1530
  function readToRivetResponseStart(bc) {
1437
1531
  return {
1438
1532
  status: bare.readU16(bc),
1439
- headers: read20(bc),
1440
- body: read16(bc),
1533
+ headers: read22(bc),
1534
+ body: read18(bc),
1441
1535
  stream: bare.readBool(bc)
1442
1536
  };
1443
1537
  }
1444
1538
  function writeToRivetResponseStart(bc, x) {
1445
1539
  bare.writeU16(bc, x.status);
1446
- write20(bc, x.headers);
1447
- write16(bc, x.body);
1540
+ write22(bc, x.headers);
1541
+ write18(bc, x.body);
1448
1542
  bare.writeBool(bc, x.stream);
1449
1543
  }
1450
1544
  function readToRivetResponseChunk(bc) {
@@ -1461,13 +1555,13 @@ function readToEnvoyWebSocketOpen(bc) {
1461
1555
  return {
1462
1556
  actorId: readId(bc),
1463
1557
  path: bare.readString(bc),
1464
- headers: read20(bc)
1558
+ headers: read22(bc)
1465
1559
  };
1466
1560
  }
1467
1561
  function writeToEnvoyWebSocketOpen(bc, x) {
1468
1562
  writeId(bc, x.actorId);
1469
1563
  bare.writeString(bc, x.path);
1470
- write20(bc, x.headers);
1564
+ write22(bc, x.headers);
1471
1565
  }
1472
1566
  function readToEnvoyWebSocketMessage(bc) {
1473
1567
  return {
@@ -1479,10 +1573,10 @@ function writeToEnvoyWebSocketMessage(bc, x) {
1479
1573
  bare.writeData(bc, x.data);
1480
1574
  bare.writeBool(bc, x.binary);
1481
1575
  }
1482
- function read21(bc) {
1576
+ function read23(bc) {
1483
1577
  return bare.readBool(bc) ? bare.readU16(bc) : null;
1484
1578
  }
1485
- function write21(bc, x) {
1579
+ function write23(bc, x) {
1486
1580
  bare.writeBool(bc, x != null);
1487
1581
  if (x != null) {
1488
1582
  bare.writeU16(bc, x);
@@ -1490,13 +1584,13 @@ function write21(bc, x) {
1490
1584
  }
1491
1585
  function readToEnvoyWebSocketClose(bc) {
1492
1586
  return {
1493
- code: read21(bc),
1494
- reason: read15(bc)
1587
+ code: read23(bc),
1588
+ reason: read17(bc)
1495
1589
  };
1496
1590
  }
1497
1591
  function writeToEnvoyWebSocketClose(bc, x) {
1498
- write21(bc, x.code);
1499
- write15(bc, x.reason);
1592
+ write23(bc, x.code);
1593
+ write17(bc, x.reason);
1500
1594
  }
1501
1595
  function readToRivetWebSocketOpen(bc) {
1502
1596
  return {
@@ -1526,14 +1620,14 @@ function writeToRivetWebSocketMessageAck(bc, x) {
1526
1620
  }
1527
1621
  function readToRivetWebSocketClose(bc) {
1528
1622
  return {
1529
- code: read21(bc),
1530
- reason: read15(bc),
1623
+ code: read23(bc),
1624
+ reason: read17(bc),
1531
1625
  hibernate: bare.readBool(bc)
1532
1626
  };
1533
1627
  }
1534
1628
  function writeToRivetWebSocketClose(bc, x) {
1535
- write21(bc, x.code);
1536
- write15(bc, x.reason);
1629
+ write23(bc, x.code);
1630
+ write17(bc, x.reason);
1537
1631
  bare.writeBool(bc, x.hibernate);
1538
1632
  }
1539
1633
  function readToRivetTunnelMessageKind(bc) {
@@ -1681,7 +1775,7 @@ function readToEnvoyPing(bc) {
1681
1775
  function writeToEnvoyPing(bc, x) {
1682
1776
  bare.writeI64(bc, x.ts);
1683
1777
  }
1684
- function read22(bc) {
1778
+ function read24(bc) {
1685
1779
  const len = bare.readUintSafe(bc);
1686
1780
  const result = /* @__PURE__ */ new Map();
1687
1781
  for (let i = 0; i < len; i++) {
@@ -1695,26 +1789,26 @@ function read22(bc) {
1695
1789
  }
1696
1790
  return result;
1697
1791
  }
1698
- function write22(bc, x) {
1792
+ function write24(bc, x) {
1699
1793
  bare.writeUintSafe(bc, x.size);
1700
1794
  for (const kv of x) {
1701
1795
  bare.writeString(bc, kv[0]);
1702
1796
  writeActorName(bc, kv[1]);
1703
1797
  }
1704
1798
  }
1705
- function read23(bc) {
1706
- return bare.readBool(bc) ? read22(bc) : null;
1799
+ function read25(bc) {
1800
+ return bare.readBool(bc) ? read24(bc) : null;
1707
1801
  }
1708
- function write23(bc, x) {
1802
+ function write25(bc, x) {
1709
1803
  bare.writeBool(bc, x != null);
1710
1804
  if (x != null) {
1711
- write22(bc, x);
1805
+ write24(bc, x);
1712
1806
  }
1713
1807
  }
1714
- function read24(bc) {
1808
+ function read26(bc) {
1715
1809
  return bare.readBool(bc) ? readJson(bc) : null;
1716
1810
  }
1717
- function write24(bc, x) {
1811
+ function write26(bc, x) {
1718
1812
  bare.writeBool(bc, x != null);
1719
1813
  if (x != null) {
1720
1814
  writeJson(bc, x);
@@ -1722,13 +1816,13 @@ function write24(bc, x) {
1722
1816
  }
1723
1817
  function readToRivetMetadata(bc) {
1724
1818
  return {
1725
- prepopulateActorNames: read23(bc),
1726
- metadata: read24(bc)
1819
+ prepopulateActorNames: read25(bc),
1820
+ metadata: read26(bc)
1727
1821
  };
1728
1822
  }
1729
1823
  function writeToRivetMetadata(bc, x) {
1730
- write23(bc, x.prepopulateActorNames);
1731
- write24(bc, x.metadata);
1824
+ write25(bc, x.prepopulateActorNames);
1825
+ write26(bc, x.metadata);
1732
1826
  }
1733
1827
  function readToRivetEvents(bc) {
1734
1828
  const len = bare.readUintSafe(bc);
@@ -1747,7 +1841,7 @@ function writeToRivetEvents(bc, x) {
1747
1841
  writeEventWrapper(bc, x[i]);
1748
1842
  }
1749
1843
  }
1750
- function read25(bc) {
1844
+ function read27(bc) {
1751
1845
  const len = bare.readUintSafe(bc);
1752
1846
  if (len === 0) {
1753
1847
  return [];
@@ -1758,7 +1852,7 @@ function read25(bc) {
1758
1852
  }
1759
1853
  return result;
1760
1854
  }
1761
- function write25(bc, x) {
1855
+ function write27(bc, x) {
1762
1856
  bare.writeUintSafe(bc, x.length);
1763
1857
  for (let i = 0; i < x.length; i++) {
1764
1858
  writeActorCheckpoint(bc, x[i]);
@@ -1766,11 +1860,11 @@ function write25(bc, x) {
1766
1860
  }
1767
1861
  function readToRivetAckCommands(bc) {
1768
1862
  return {
1769
- lastCommandCheckpoints: read25(bc)
1863
+ lastCommandCheckpoints: read27(bc)
1770
1864
  };
1771
1865
  }
1772
1866
  function writeToRivetAckCommands(bc, x) {
1773
- write25(bc, x.lastCommandCheckpoints);
1867
+ write27(bc, x.lastCommandCheckpoints);
1774
1868
  }
1775
1869
  function readToRivetPong(bc) {
1776
1870
  return {
@@ -1832,6 +1926,16 @@ function writeToRivetSqliteExecuteRequest(bc, x) {
1832
1926
  bare.writeU32(bc, x.requestId);
1833
1927
  writeSqliteExecuteRequest(bc, x.data);
1834
1928
  }
1929
+ function readToRivetSqliteExecuteBatchRequest(bc) {
1930
+ return {
1931
+ requestId: bare.readU32(bc),
1932
+ data: readSqliteExecuteBatchRequest(bc)
1933
+ };
1934
+ }
1935
+ function writeToRivetSqliteExecuteBatchRequest(bc, x) {
1936
+ bare.writeU32(bc, x.requestId);
1937
+ writeSqliteExecuteBatchRequest(bc, x.data);
1938
+ }
1835
1939
  function readToRivet(bc) {
1836
1940
  const offset = bc.offset;
1837
1941
  const tag = bare.readU8(bc);
@@ -1858,6 +1962,8 @@ function readToRivet(bc) {
1858
1962
  return { tag: "ToRivetSqliteExecRequest", val: readToRivetSqliteExecRequest(bc) };
1859
1963
  case 10:
1860
1964
  return { tag: "ToRivetSqliteExecuteRequest", val: readToRivetSqliteExecuteRequest(bc) };
1965
+ case 11:
1966
+ return { tag: "ToRivetSqliteExecuteBatchRequest", val: readToRivetSqliteExecuteBatchRequest(bc) };
1861
1967
  default: {
1862
1968
  bc.offset = offset;
1863
1969
  throw new bare.BareError(offset, "invalid tag");
@@ -1920,6 +2026,11 @@ function writeToRivet(bc, x) {
1920
2026
  writeToRivetSqliteExecuteRequest(bc, x.val);
1921
2027
  break;
1922
2028
  }
2029
+ case "ToRivetSqliteExecuteBatchRequest": {
2030
+ bare.writeU8(bc, 11);
2031
+ writeToRivetSqliteExecuteBatchRequest(bc, x.val);
2032
+ break;
2033
+ }
1923
2034
  }
1924
2035
  }
1925
2036
  function encodeToRivet(x, config) {
@@ -1978,11 +2089,11 @@ function writeToEnvoyCommands(bc, x) {
1978
2089
  }
1979
2090
  function readToEnvoyAckEvents(bc) {
1980
2091
  return {
1981
- lastEventCheckpoints: read25(bc)
2092
+ lastEventCheckpoints: read27(bc)
1982
2093
  };
1983
2094
  }
1984
2095
  function writeToEnvoyAckEvents(bc, x) {
1985
- write25(bc, x.lastEventCheckpoints);
2096
+ write27(bc, x.lastEventCheckpoints);
1986
2097
  }
1987
2098
  function readToEnvoyKvResponse(bc) {
1988
2099
  return {
@@ -2034,6 +2145,16 @@ function writeToEnvoySqliteExecuteResponse(bc, x) {
2034
2145
  bare.writeU32(bc, x.requestId);
2035
2146
  writeSqliteExecuteResponse(bc, x.data);
2036
2147
  }
2148
+ function readToEnvoySqliteExecuteBatchResponse(bc) {
2149
+ return {
2150
+ requestId: bare.readU32(bc),
2151
+ data: readSqliteExecuteBatchResponse(bc)
2152
+ };
2153
+ }
2154
+ function writeToEnvoySqliteExecuteBatchResponse(bc, x) {
2155
+ bare.writeU32(bc, x.requestId);
2156
+ writeSqliteExecuteBatchResponse(bc, x.data);
2157
+ }
2037
2158
  function readToEnvoy(bc) {
2038
2159
  const offset = bc.offset;
2039
2160
  const tag = bare.readU8(bc);
@@ -2058,6 +2179,8 @@ function readToEnvoy(bc) {
2058
2179
  return { tag: "ToEnvoySqliteExecResponse", val: readToEnvoySqliteExecResponse(bc) };
2059
2180
  case 9:
2060
2181
  return { tag: "ToEnvoySqliteExecuteResponse", val: readToEnvoySqliteExecuteResponse(bc) };
2182
+ case 10:
2183
+ return { tag: "ToEnvoySqliteExecuteBatchResponse", val: readToEnvoySqliteExecuteBatchResponse(bc) };
2061
2184
  default: {
2062
2185
  bc.offset = offset;
2063
2186
  throw new bare.BareError(offset, "invalid tag");
@@ -2116,6 +2239,11 @@ function writeToEnvoy(bc, x) {
2116
2239
  writeToEnvoySqliteExecuteResponse(bc, x.val);
2117
2240
  break;
2118
2241
  }
2242
+ case "ToEnvoySqliteExecuteBatchResponse": {
2243
+ bare.writeU8(bc, 10);
2244
+ writeToEnvoySqliteExecuteBatchResponse(bc, x.val);
2245
+ break;
2246
+ }
2119
2247
  }
2120
2248
  }
2121
2249
  function encodeToEnvoy(x, config) {
@@ -2322,7 +2450,7 @@ function decodeToOutbound(bytes) {
2322
2450
  function assert(condition, message) {
2323
2451
  if (!condition) throw new Error(message ?? "Assertion failed");
2324
2452
  }
2325
- var VERSION = 5;
2453
+ var VERSION = 6;
2326
2454
  export {
2327
2455
  StopActorReason,
2328
2456
  StopCode,
@@ -2381,6 +2509,7 @@ export {
2381
2509
  readPreloadedKvEntry,
2382
2510
  readProtocolMetadata,
2383
2511
  readRequestId,
2512
+ readSqliteBatchStatement,
2384
2513
  readSqliteBindParam,
2385
2514
  readSqliteColumnValue,
2386
2515
  readSqliteCommitOk,
@@ -2391,6 +2520,9 @@ export {
2391
2520
  readSqliteExecOk,
2392
2521
  readSqliteExecRequest,
2393
2522
  readSqliteExecResponse,
2523
+ readSqliteExecuteBatchOk,
2524
+ readSqliteExecuteBatchRequest,
2525
+ readSqliteExecuteBatchResponse,
2394
2526
  readSqliteExecuteOk,
2395
2527
  readSqliteExecuteRequest,
2396
2528
  readSqliteExecuteResponse,
@@ -2421,6 +2553,7 @@ export {
2421
2553
  readToEnvoyRequestStart,
2422
2554
  readToEnvoySqliteCommitResponse,
2423
2555
  readToEnvoySqliteExecResponse,
2556
+ readToEnvoySqliteExecuteBatchResponse,
2424
2557
  readToEnvoySqliteExecuteResponse,
2425
2558
  readToEnvoySqliteGetPagesResponse,
2426
2559
  readToEnvoyTunnelMessage,
@@ -2442,6 +2575,7 @@ export {
2442
2575
  readToRivetResponseStart,
2443
2576
  readToRivetSqliteCommitRequest,
2444
2577
  readToRivetSqliteExecRequest,
2578
+ readToRivetSqliteExecuteBatchRequest,
2445
2579
  readToRivetSqliteExecuteRequest,
2446
2580
  readToRivetSqliteGetPagesRequest,
2447
2581
  readToRivetTunnelMessage,
@@ -2492,6 +2626,7 @@ export {
2492
2626
  writePreloadedKvEntry,
2493
2627
  writeProtocolMetadata,
2494
2628
  writeRequestId,
2629
+ writeSqliteBatchStatement,
2495
2630
  writeSqliteBindParam,
2496
2631
  writeSqliteColumnValue,
2497
2632
  writeSqliteCommitOk,
@@ -2502,6 +2637,9 @@ export {
2502
2637
  writeSqliteExecOk,
2503
2638
  writeSqliteExecRequest,
2504
2639
  writeSqliteExecResponse,
2640
+ writeSqliteExecuteBatchOk,
2641
+ writeSqliteExecuteBatchRequest,
2642
+ writeSqliteExecuteBatchResponse,
2505
2643
  writeSqliteExecuteOk,
2506
2644
  writeSqliteExecuteRequest,
2507
2645
  writeSqliteExecuteResponse,
@@ -2532,6 +2670,7 @@ export {
2532
2670
  writeToEnvoyRequestStart,
2533
2671
  writeToEnvoySqliteCommitResponse,
2534
2672
  writeToEnvoySqliteExecResponse,
2673
+ writeToEnvoySqliteExecuteBatchResponse,
2535
2674
  writeToEnvoySqliteExecuteResponse,
2536
2675
  writeToEnvoySqliteGetPagesResponse,
2537
2676
  writeToEnvoyTunnelMessage,
@@ -2553,6 +2692,7 @@ export {
2553
2692
  writeToRivetResponseStart,
2554
2693
  writeToRivetSqliteCommitRequest,
2555
2694
  writeToRivetSqliteExecRequest,
2695
+ writeToRivetSqliteExecuteBatchRequest,
2556
2696
  writeToRivetSqliteExecuteRequest,
2557
2697
  writeToRivetSqliteGetPagesRequest,
2558
2698
  writeToRivetTunnelMessage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivetkit/engine-envoy-protocol",
3
- "version": "2.3.4",
3
+ "version": "2.3.5-rc.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {