@rivetkit/engine-envoy-protocol 0.0.0-pr.4854.b12798b → 0.0.0-pr.4857.3a10f72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +98 -2
- package/dist/index.js +321 -85
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -216,12 +216,28 @@ type SqliteGetPagesRequest = {
|
|
|
216
216
|
};
|
|
217
217
|
declare function readSqliteGetPagesRequest(bc: bare.ByteCursor): SqliteGetPagesRequest;
|
|
218
218
|
declare function writeSqliteGetPagesRequest(bc: bare.ByteCursor, x: SqliteGetPagesRequest): void;
|
|
219
|
+
type SqliteGetPageRangeRequest = {
|
|
220
|
+
readonly actorId: Id;
|
|
221
|
+
readonly generation: SqliteGeneration;
|
|
222
|
+
readonly startPgno: SqlitePgno;
|
|
223
|
+
readonly maxPages: u32;
|
|
224
|
+
readonly maxBytes: u64;
|
|
225
|
+
};
|
|
226
|
+
declare function readSqliteGetPageRangeRequest(bc: bare.ByteCursor): SqliteGetPageRangeRequest;
|
|
227
|
+
declare function writeSqliteGetPageRangeRequest(bc: bare.ByteCursor, x: SqliteGetPageRangeRequest): void;
|
|
219
228
|
type SqliteGetPagesOk = {
|
|
220
229
|
readonly pages: readonly SqliteFetchedPage[];
|
|
221
230
|
readonly meta: SqliteMeta;
|
|
222
231
|
};
|
|
223
232
|
declare function readSqliteGetPagesOk(bc: bare.ByteCursor): SqliteGetPagesOk;
|
|
224
233
|
declare function writeSqliteGetPagesOk(bc: bare.ByteCursor, x: SqliteGetPagesOk): void;
|
|
234
|
+
type SqliteGetPageRangeOk = {
|
|
235
|
+
readonly startPgno: SqlitePgno;
|
|
236
|
+
readonly pages: readonly SqliteFetchedPage[];
|
|
237
|
+
readonly meta: SqliteMeta;
|
|
238
|
+
};
|
|
239
|
+
declare function readSqliteGetPageRangeOk(bc: bare.ByteCursor): SqliteGetPageRangeOk;
|
|
240
|
+
declare function writeSqliteGetPageRangeOk(bc: bare.ByteCursor, x: SqliteGetPageRangeOk): void;
|
|
225
241
|
type SqliteErrorResponse = {
|
|
226
242
|
readonly message: string;
|
|
227
243
|
};
|
|
@@ -239,6 +255,18 @@ type SqliteGetPagesResponse = {
|
|
|
239
255
|
};
|
|
240
256
|
declare function readSqliteGetPagesResponse(bc: bare.ByteCursor): SqliteGetPagesResponse;
|
|
241
257
|
declare function writeSqliteGetPagesResponse(bc: bare.ByteCursor, x: SqliteGetPagesResponse): void;
|
|
258
|
+
type SqliteGetPageRangeResponse = {
|
|
259
|
+
readonly tag: "SqliteGetPageRangeOk";
|
|
260
|
+
readonly val: SqliteGetPageRangeOk;
|
|
261
|
+
} | {
|
|
262
|
+
readonly tag: "SqliteFenceMismatch";
|
|
263
|
+
readonly val: SqliteFenceMismatch;
|
|
264
|
+
} | {
|
|
265
|
+
readonly tag: "SqliteErrorResponse";
|
|
266
|
+
readonly val: SqliteErrorResponse;
|
|
267
|
+
};
|
|
268
|
+
declare function readSqliteGetPageRangeResponse(bc: bare.ByteCursor): SqliteGetPageRangeResponse;
|
|
269
|
+
declare function writeSqliteGetPageRangeResponse(bc: bare.ByteCursor, x: SqliteGetPageRangeResponse): void;
|
|
242
270
|
type SqliteCommitRequest = {
|
|
243
271
|
readonly actorId: Id;
|
|
244
272
|
readonly generation: SqliteGeneration;
|
|
@@ -360,6 +388,38 @@ type SqliteCommitFinalizeResponse = {
|
|
|
360
388
|
};
|
|
361
389
|
declare function readSqliteCommitFinalizeResponse(bc: bare.ByteCursor): SqliteCommitFinalizeResponse;
|
|
362
390
|
declare function writeSqliteCommitFinalizeResponse(bc: bare.ByteCursor, x: SqliteCommitFinalizeResponse): void;
|
|
391
|
+
type SqlitePreloadHintRange = {
|
|
392
|
+
readonly startPgno: SqlitePgno;
|
|
393
|
+
readonly pageCount: u32;
|
|
394
|
+
};
|
|
395
|
+
declare function readSqlitePreloadHintRange(bc: bare.ByteCursor): SqlitePreloadHintRange;
|
|
396
|
+
declare function writeSqlitePreloadHintRange(bc: bare.ByteCursor, x: SqlitePreloadHintRange): void;
|
|
397
|
+
type SqlitePreloadHints = {
|
|
398
|
+
readonly pgnos: readonly SqlitePgno[];
|
|
399
|
+
readonly ranges: readonly SqlitePreloadHintRange[];
|
|
400
|
+
};
|
|
401
|
+
declare function readSqlitePreloadHints(bc: bare.ByteCursor): SqlitePreloadHints;
|
|
402
|
+
declare function writeSqlitePreloadHints(bc: bare.ByteCursor, x: SqlitePreloadHints): void;
|
|
403
|
+
type SqlitePersistPreloadHintsRequest = {
|
|
404
|
+
readonly actorId: Id;
|
|
405
|
+
readonly generation: SqliteGeneration;
|
|
406
|
+
readonly hints: SqlitePreloadHints;
|
|
407
|
+
};
|
|
408
|
+
declare function readSqlitePersistPreloadHintsRequest(bc: bare.ByteCursor): SqlitePersistPreloadHintsRequest;
|
|
409
|
+
declare function writeSqlitePersistPreloadHintsRequest(bc: bare.ByteCursor, x: SqlitePersistPreloadHintsRequest): void;
|
|
410
|
+
type SqlitePersistPreloadHintsOk = null;
|
|
411
|
+
type SqlitePersistPreloadHintsResponse = {
|
|
412
|
+
readonly tag: "SqlitePersistPreloadHintsOk";
|
|
413
|
+
readonly val: SqlitePersistPreloadHintsOk;
|
|
414
|
+
} | {
|
|
415
|
+
readonly tag: "SqliteFenceMismatch";
|
|
416
|
+
readonly val: SqliteFenceMismatch;
|
|
417
|
+
} | {
|
|
418
|
+
readonly tag: "SqliteErrorResponse";
|
|
419
|
+
readonly val: SqliteErrorResponse;
|
|
420
|
+
};
|
|
421
|
+
declare function readSqlitePersistPreloadHintsResponse(bc: bare.ByteCursor): SqlitePersistPreloadHintsResponse;
|
|
422
|
+
declare function writeSqlitePersistPreloadHintsResponse(bc: bare.ByteCursor, x: SqlitePersistPreloadHintsResponse): void;
|
|
363
423
|
type SqliteStartupData = {
|
|
364
424
|
readonly generation: SqliteGeneration;
|
|
365
425
|
readonly meta: SqliteMeta;
|
|
@@ -752,6 +812,12 @@ type ToRivetSqliteGetPagesRequest = {
|
|
|
752
812
|
};
|
|
753
813
|
declare function readToRivetSqliteGetPagesRequest(bc: bare.ByteCursor): ToRivetSqliteGetPagesRequest;
|
|
754
814
|
declare function writeToRivetSqliteGetPagesRequest(bc: bare.ByteCursor, x: ToRivetSqliteGetPagesRequest): void;
|
|
815
|
+
type ToRivetSqliteGetPageRangeRequest = {
|
|
816
|
+
readonly requestId: u32;
|
|
817
|
+
readonly data: SqliteGetPageRangeRequest;
|
|
818
|
+
};
|
|
819
|
+
declare function readToRivetSqliteGetPageRangeRequest(bc: bare.ByteCursor): ToRivetSqliteGetPageRangeRequest;
|
|
820
|
+
declare function writeToRivetSqliteGetPageRangeRequest(bc: bare.ByteCursor, x: ToRivetSqliteGetPageRangeRequest): void;
|
|
755
821
|
type ToRivetSqliteCommitRequest = {
|
|
756
822
|
readonly requestId: u32;
|
|
757
823
|
readonly data: SqliteCommitRequest;
|
|
@@ -776,6 +842,12 @@ type ToRivetSqliteCommitFinalizeRequest = {
|
|
|
776
842
|
};
|
|
777
843
|
declare function readToRivetSqliteCommitFinalizeRequest(bc: bare.ByteCursor): ToRivetSqliteCommitFinalizeRequest;
|
|
778
844
|
declare function writeToRivetSqliteCommitFinalizeRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitFinalizeRequest): void;
|
|
845
|
+
type ToRivetSqlitePersistPreloadHintsRequest = {
|
|
846
|
+
readonly requestId: u32;
|
|
847
|
+
readonly data: SqlitePersistPreloadHintsRequest;
|
|
848
|
+
};
|
|
849
|
+
declare function readToRivetSqlitePersistPreloadHintsRequest(bc: bare.ByteCursor): ToRivetSqlitePersistPreloadHintsRequest;
|
|
850
|
+
declare function writeToRivetSqlitePersistPreloadHintsRequest(bc: bare.ByteCursor, x: ToRivetSqlitePersistPreloadHintsRequest): void;
|
|
779
851
|
type ToRivet = {
|
|
780
852
|
readonly tag: "ToRivetMetadata";
|
|
781
853
|
readonly val: ToRivetMetadata;
|
|
@@ -800,6 +872,9 @@ type ToRivet = {
|
|
|
800
872
|
} | {
|
|
801
873
|
readonly tag: "ToRivetSqliteGetPagesRequest";
|
|
802
874
|
readonly val: ToRivetSqliteGetPagesRequest;
|
|
875
|
+
} | {
|
|
876
|
+
readonly tag: "ToRivetSqliteGetPageRangeRequest";
|
|
877
|
+
readonly val: ToRivetSqliteGetPageRangeRequest;
|
|
803
878
|
} | {
|
|
804
879
|
readonly tag: "ToRivetSqliteCommitRequest";
|
|
805
880
|
readonly val: ToRivetSqliteCommitRequest;
|
|
@@ -812,6 +887,9 @@ type ToRivet = {
|
|
|
812
887
|
} | {
|
|
813
888
|
readonly tag: "ToRivetSqliteCommitFinalizeRequest";
|
|
814
889
|
readonly val: ToRivetSqliteCommitFinalizeRequest;
|
|
890
|
+
} | {
|
|
891
|
+
readonly tag: "ToRivetSqlitePersistPreloadHintsRequest";
|
|
892
|
+
readonly val: ToRivetSqlitePersistPreloadHintsRequest;
|
|
815
893
|
};
|
|
816
894
|
declare function readToRivet(bc: bare.ByteCursor): ToRivet;
|
|
817
895
|
declare function writeToRivet(bc: bare.ByteCursor, x: ToRivet): void;
|
|
@@ -852,6 +930,12 @@ type ToEnvoySqliteGetPagesResponse = {
|
|
|
852
930
|
};
|
|
853
931
|
declare function readToEnvoySqliteGetPagesResponse(bc: bare.ByteCursor): ToEnvoySqliteGetPagesResponse;
|
|
854
932
|
declare function writeToEnvoySqliteGetPagesResponse(bc: bare.ByteCursor, x: ToEnvoySqliteGetPagesResponse): void;
|
|
933
|
+
type ToEnvoySqliteGetPageRangeResponse = {
|
|
934
|
+
readonly requestId: u32;
|
|
935
|
+
readonly data: SqliteGetPageRangeResponse;
|
|
936
|
+
};
|
|
937
|
+
declare function readToEnvoySqliteGetPageRangeResponse(bc: bare.ByteCursor): ToEnvoySqliteGetPageRangeResponse;
|
|
938
|
+
declare function writeToEnvoySqliteGetPageRangeResponse(bc: bare.ByteCursor, x: ToEnvoySqliteGetPageRangeResponse): void;
|
|
855
939
|
type ToEnvoySqliteCommitResponse = {
|
|
856
940
|
readonly requestId: u32;
|
|
857
941
|
readonly data: SqliteCommitResponse;
|
|
@@ -876,6 +960,12 @@ type ToEnvoySqliteCommitFinalizeResponse = {
|
|
|
876
960
|
};
|
|
877
961
|
declare function readToEnvoySqliteCommitFinalizeResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitFinalizeResponse;
|
|
878
962
|
declare function writeToEnvoySqliteCommitFinalizeResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitFinalizeResponse): void;
|
|
963
|
+
type ToEnvoySqlitePersistPreloadHintsResponse = {
|
|
964
|
+
readonly requestId: u32;
|
|
965
|
+
readonly data: SqlitePersistPreloadHintsResponse;
|
|
966
|
+
};
|
|
967
|
+
declare function readToEnvoySqlitePersistPreloadHintsResponse(bc: bare.ByteCursor): ToEnvoySqlitePersistPreloadHintsResponse;
|
|
968
|
+
declare function writeToEnvoySqlitePersistPreloadHintsResponse(bc: bare.ByteCursor, x: ToEnvoySqlitePersistPreloadHintsResponse): void;
|
|
879
969
|
type ToEnvoy = {
|
|
880
970
|
readonly tag: "ToEnvoyInit";
|
|
881
971
|
readonly val: ToEnvoyInit;
|
|
@@ -897,6 +987,9 @@ type ToEnvoy = {
|
|
|
897
987
|
} | {
|
|
898
988
|
readonly tag: "ToEnvoySqliteGetPagesResponse";
|
|
899
989
|
readonly val: ToEnvoySqliteGetPagesResponse;
|
|
990
|
+
} | {
|
|
991
|
+
readonly tag: "ToEnvoySqliteGetPageRangeResponse";
|
|
992
|
+
readonly val: ToEnvoySqliteGetPageRangeResponse;
|
|
900
993
|
} | {
|
|
901
994
|
readonly tag: "ToEnvoySqliteCommitResponse";
|
|
902
995
|
readonly val: ToEnvoySqliteCommitResponse;
|
|
@@ -909,6 +1002,9 @@ type ToEnvoy = {
|
|
|
909
1002
|
} | {
|
|
910
1003
|
readonly tag: "ToEnvoySqliteCommitFinalizeResponse";
|
|
911
1004
|
readonly val: ToEnvoySqliteCommitFinalizeResponse;
|
|
1005
|
+
} | {
|
|
1006
|
+
readonly tag: "ToEnvoySqlitePersistPreloadHintsResponse";
|
|
1007
|
+
readonly val: ToEnvoySqlitePersistPreloadHintsResponse;
|
|
912
1008
|
};
|
|
913
1009
|
declare function readToEnvoy(bc: bare.ByteCursor): ToEnvoy;
|
|
914
1010
|
declare function writeToEnvoy(bc: bare.ByteCursor, x: ToEnvoy): void;
|
|
@@ -984,6 +1080,6 @@ declare function readToOutbound(bc: bare.ByteCursor): ToOutbound;
|
|
|
984
1080
|
declare function writeToOutbound(bc: bare.ByteCursor, x: ToOutbound): void;
|
|
985
1081
|
declare function encodeToOutbound(x: ToOutbound, config?: Partial<bare.Config>): Uint8Array;
|
|
986
1082
|
declare function decodeToOutbound(bytes: Uint8Array): ToOutbound;
|
|
987
|
-
declare const VERSION =
|
|
1083
|
+
declare const VERSION = 3;
|
|
988
1084
|
|
|
989
|
-
export { type ActorCheckpoint, type ActorCommandKeyData, type ActorConfig, type ActorIntent, type ActorIntentSleep, type ActorIntentStop, type ActorName, type ActorState, type ActorStateRunning, type ActorStateStopped, type Command, type CommandStartActor, type CommandStopActor, type CommandWrapper, type Event, type EventActorIntent, type EventActorSetAlarm, type EventActorStateUpdate, type EventWrapper, type GatewayId, type HibernatingRequest, type Id, type Json, type KvDeleteRangeRequest, type KvDeleteRequest, type KvDeleteResponse, type KvDropRequest, type KvDropResponse, type KvErrorResponse, type KvGetRequest, type KvGetResponse, type KvKey, type KvListAllQuery, type KvListPrefixQuery, type KvListQuery, type KvListRangeQuery, type KvListRequest, type KvListResponse, type KvMetadata, type KvPutRequest, type KvPutResponse, type KvRequestData, type KvResponseData, type KvValue, type MessageId, type MessageIndex, type PreloadedKv, type PreloadedKvEntry, type ProtocolMetadata, type RequestId, type SqliteCommitFinalizeOk, type SqliteCommitFinalizeRequest, type SqliteCommitFinalizeResponse, type SqliteCommitOk, type SqliteCommitRequest, type SqliteCommitResponse, type SqliteCommitStageBeginOk, type SqliteCommitStageBeginRequest, type SqliteCommitStageBeginResponse, type SqliteCommitStageOk, type SqliteCommitStageRequest, type SqliteCommitStageResponse, type SqliteCommitTooLarge, type SqliteDirtyPage, type SqliteErrorResponse, type SqliteFenceMismatch, type SqliteFetchedPage, type SqliteGeneration, type SqliteGetPagesOk, type SqliteGetPagesRequest, type SqliteGetPagesResponse, type SqliteMeta, type SqlitePageBytes, type SqlitePgno, type SqliteStageId, type SqliteStageNotFound, type SqliteStartupData, type SqliteTxid, StopActorReason, StopCode, type ToEnvoy, type ToEnvoyAckEvents, type ToEnvoyCommands, type ToEnvoyConn, type ToEnvoyConnClose, type ToEnvoyConnPing, type ToEnvoyInit, type ToEnvoyKvResponse, type ToEnvoyPing, type ToEnvoyRequestAbort, type ToEnvoyRequestChunk, type ToEnvoyRequestStart, type ToEnvoySqliteCommitFinalizeResponse, type ToEnvoySqliteCommitResponse, type ToEnvoySqliteCommitStageBeginResponse, type ToEnvoySqliteCommitStageResponse, type 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 ToRivetSqliteCommitFinalizeRequest, type ToRivetSqliteCommitRequest, type ToRivetSqliteCommitStageBeginRequest, type ToRivetSqliteCommitStageRequest, 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, readSqliteCommitFinalizeOk, readSqliteCommitFinalizeRequest, readSqliteCommitFinalizeResponse, readSqliteCommitOk, readSqliteCommitRequest, readSqliteCommitResponse, readSqliteCommitStageBeginOk, readSqliteCommitStageBeginRequest, readSqliteCommitStageBeginResponse, readSqliteCommitStageOk, readSqliteCommitStageRequest, readSqliteCommitStageResponse, readSqliteCommitTooLarge, readSqliteDirtyPage, readSqliteErrorResponse, readSqliteFenceMismatch, readSqliteFetchedPage, readSqliteGeneration, readSqliteGetPagesOk, readSqliteGetPagesRequest, readSqliteGetPagesResponse, readSqliteMeta, readSqlitePageBytes, readSqlitePgno, readSqliteStageId, readSqliteStageNotFound, readSqliteStartupData, readSqliteTxid, readStopActorReason, readStopCode, readToEnvoy, readToEnvoyAckEvents, readToEnvoyCommands, readToEnvoyConn, readToEnvoyConnPing, readToEnvoyInit, readToEnvoyKvResponse, readToEnvoyPing, readToEnvoyRequestChunk, readToEnvoyRequestStart, readToEnvoySqliteCommitFinalizeResponse, readToEnvoySqliteCommitResponse, readToEnvoySqliteCommitStageBeginResponse, readToEnvoySqliteCommitStageResponse, readToEnvoySqliteGetPagesResponse, readToEnvoyTunnelMessage, readToEnvoyTunnelMessageKind, readToEnvoyWebSocketClose, readToEnvoyWebSocketMessage, readToEnvoyWebSocketOpen, readToGateway, readToGatewayPong, readToOutbound, readToOutboundActorStart, readToRivet, readToRivetAckCommands, readToRivetEvents, readToRivetKvRequest, readToRivetMetadata, readToRivetPong, readToRivetResponseChunk, readToRivetResponseStart, readToRivetSqliteCommitFinalizeRequest, readToRivetSqliteCommitRequest, readToRivetSqliteCommitStageBeginRequest, readToRivetSqliteCommitStageRequest, 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, writeSqliteCommitFinalizeOk, writeSqliteCommitFinalizeRequest, writeSqliteCommitFinalizeResponse, writeSqliteCommitOk, writeSqliteCommitRequest, writeSqliteCommitResponse, writeSqliteCommitStageBeginOk, writeSqliteCommitStageBeginRequest, writeSqliteCommitStageBeginResponse, writeSqliteCommitStageOk, writeSqliteCommitStageRequest, writeSqliteCommitStageResponse, writeSqliteCommitTooLarge, writeSqliteDirtyPage, writeSqliteErrorResponse, writeSqliteFenceMismatch, writeSqliteFetchedPage, writeSqliteGeneration, writeSqliteGetPagesOk, writeSqliteGetPagesRequest, writeSqliteGetPagesResponse, writeSqliteMeta, writeSqlitePageBytes, writeSqlitePgno, writeSqliteStageId, writeSqliteStageNotFound, writeSqliteStartupData, writeSqliteTxid, writeStopActorReason, writeStopCode, writeToEnvoy, writeToEnvoyAckEvents, writeToEnvoyCommands, writeToEnvoyConn, writeToEnvoyConnPing, writeToEnvoyInit, writeToEnvoyKvResponse, writeToEnvoyPing, writeToEnvoyRequestChunk, writeToEnvoyRequestStart, writeToEnvoySqliteCommitFinalizeResponse, writeToEnvoySqliteCommitResponse, writeToEnvoySqliteCommitStageBeginResponse, writeToEnvoySqliteCommitStageResponse, writeToEnvoySqliteGetPagesResponse, writeToEnvoyTunnelMessage, writeToEnvoyTunnelMessageKind, writeToEnvoyWebSocketClose, writeToEnvoyWebSocketMessage, writeToEnvoyWebSocketOpen, writeToGateway, writeToGatewayPong, writeToOutbound, writeToOutboundActorStart, writeToRivet, writeToRivetAckCommands, writeToRivetEvents, writeToRivetKvRequest, writeToRivetMetadata, writeToRivetPong, writeToRivetResponseChunk, writeToRivetResponseStart, writeToRivetSqliteCommitFinalizeRequest, writeToRivetSqliteCommitRequest, writeToRivetSqliteCommitStageBeginRequest, writeToRivetSqliteCommitStageRequest, writeToRivetSqliteGetPagesRequest, writeToRivetTunnelMessage, writeToRivetTunnelMessageKind, writeToRivetWebSocketClose, writeToRivetWebSocketMessage, writeToRivetWebSocketMessageAck, writeToRivetWebSocketOpen };
|
|
1085
|
+
export { type ActorCheckpoint, type ActorCommandKeyData, type ActorConfig, type ActorIntent, type ActorIntentSleep, type ActorIntentStop, type ActorName, type ActorState, type ActorStateRunning, type ActorStateStopped, type Command, type CommandStartActor, type CommandStopActor, type CommandWrapper, type Event, type EventActorIntent, type EventActorSetAlarm, type EventActorStateUpdate, type EventWrapper, type GatewayId, type HibernatingRequest, type Id, type Json, type KvDeleteRangeRequest, type KvDeleteRequest, type KvDeleteResponse, type KvDropRequest, type KvDropResponse, type KvErrorResponse, type KvGetRequest, type KvGetResponse, type KvKey, type KvListAllQuery, type KvListPrefixQuery, type KvListQuery, type KvListRangeQuery, type KvListRequest, type KvListResponse, type KvMetadata, type KvPutRequest, type KvPutResponse, type KvRequestData, type KvResponseData, type KvValue, type MessageId, type MessageIndex, type PreloadedKv, type PreloadedKvEntry, type ProtocolMetadata, type RequestId, type SqliteCommitFinalizeOk, type SqliteCommitFinalizeRequest, type SqliteCommitFinalizeResponse, type SqliteCommitOk, type SqliteCommitRequest, type SqliteCommitResponse, type SqliteCommitStageBeginOk, type SqliteCommitStageBeginRequest, type SqliteCommitStageBeginResponse, type SqliteCommitStageOk, type SqliteCommitStageRequest, type SqliteCommitStageResponse, type SqliteCommitTooLarge, type SqliteDirtyPage, type SqliteErrorResponse, type SqliteFenceMismatch, type SqliteFetchedPage, type SqliteGeneration, type SqliteGetPageRangeOk, type SqliteGetPageRangeRequest, type SqliteGetPageRangeResponse, type SqliteGetPagesOk, type SqliteGetPagesRequest, type SqliteGetPagesResponse, type SqliteMeta, type SqlitePageBytes, type SqlitePersistPreloadHintsOk, type SqlitePersistPreloadHintsRequest, type SqlitePersistPreloadHintsResponse, type SqlitePgno, type SqlitePreloadHintRange, type SqlitePreloadHints, type SqliteStageId, type SqliteStageNotFound, type SqliteStartupData, type SqliteTxid, StopActorReason, StopCode, type ToEnvoy, type ToEnvoyAckEvents, type ToEnvoyCommands, type ToEnvoyConn, type ToEnvoyConnClose, type ToEnvoyConnPing, type ToEnvoyInit, type ToEnvoyKvResponse, type ToEnvoyPing, type ToEnvoyRequestAbort, type ToEnvoyRequestChunk, type ToEnvoyRequestStart, type ToEnvoySqliteCommitFinalizeResponse, type ToEnvoySqliteCommitResponse, type ToEnvoySqliteCommitStageBeginResponse, type ToEnvoySqliteCommitStageResponse, type ToEnvoySqliteGetPageRangeResponse, type ToEnvoySqliteGetPagesResponse, type ToEnvoySqlitePersistPreloadHintsResponse, type ToEnvoyTunnelMessage, type ToEnvoyTunnelMessageKind, type ToEnvoyWebSocketClose, type ToEnvoyWebSocketMessage, type ToEnvoyWebSocketOpen, type ToGateway, type ToGatewayPong, type ToOutbound, type ToOutboundActorStart, type ToRivet, type ToRivetAckCommands, type ToRivetEvents, type ToRivetKvRequest, type ToRivetMetadata, type ToRivetPong, type ToRivetResponseAbort, type ToRivetResponseChunk, type ToRivetResponseStart, type ToRivetSqliteCommitFinalizeRequest, type ToRivetSqliteCommitRequest, type ToRivetSqliteCommitStageBeginRequest, type ToRivetSqliteCommitStageRequest, type ToRivetSqliteGetPageRangeRequest, type ToRivetSqliteGetPagesRequest, type ToRivetSqlitePersistPreloadHintsRequest, type ToRivetStopping, type ToRivetTunnelMessage, type ToRivetTunnelMessageKind, type ToRivetWebSocketClose, type ToRivetWebSocketMessage, type ToRivetWebSocketMessageAck, type ToRivetWebSocketOpen, VERSION, decodeActorCommandKeyData, decodeToEnvoy, decodeToEnvoyConn, decodeToGateway, decodeToOutbound, decodeToRivet, encodeActorCommandKeyData, encodeToEnvoy, encodeToEnvoyConn, encodeToGateway, encodeToOutbound, encodeToRivet, type i64, readActorCheckpoint, readActorCommandKeyData, readActorConfig, readActorIntent, readActorName, readActorState, readActorStateStopped, readCommand, readCommandStartActor, readCommandStopActor, readCommandWrapper, readEvent, readEventActorIntent, readEventActorSetAlarm, readEventActorStateUpdate, readEventWrapper, readGatewayId, readHibernatingRequest, readId, readJson, readKvDeleteRangeRequest, readKvDeleteRequest, readKvErrorResponse, readKvGetRequest, readKvGetResponse, readKvKey, readKvListPrefixQuery, readKvListQuery, readKvListRangeQuery, readKvListRequest, readKvListResponse, readKvMetadata, readKvPutRequest, readKvRequestData, readKvResponseData, readKvValue, readMessageId, readMessageIndex, readPreloadedKv, readPreloadedKvEntry, readProtocolMetadata, readRequestId, readSqliteCommitFinalizeOk, readSqliteCommitFinalizeRequest, readSqliteCommitFinalizeResponse, readSqliteCommitOk, readSqliteCommitRequest, readSqliteCommitResponse, readSqliteCommitStageBeginOk, readSqliteCommitStageBeginRequest, readSqliteCommitStageBeginResponse, readSqliteCommitStageOk, readSqliteCommitStageRequest, readSqliteCommitStageResponse, readSqliteCommitTooLarge, readSqliteDirtyPage, readSqliteErrorResponse, readSqliteFenceMismatch, readSqliteFetchedPage, readSqliteGeneration, readSqliteGetPageRangeOk, readSqliteGetPageRangeRequest, readSqliteGetPageRangeResponse, readSqliteGetPagesOk, readSqliteGetPagesRequest, readSqliteGetPagesResponse, readSqliteMeta, readSqlitePageBytes, readSqlitePersistPreloadHintsRequest, readSqlitePersistPreloadHintsResponse, readSqlitePgno, readSqlitePreloadHintRange, readSqlitePreloadHints, readSqliteStageId, readSqliteStageNotFound, readSqliteStartupData, readSqliteTxid, readStopActorReason, readStopCode, readToEnvoy, readToEnvoyAckEvents, readToEnvoyCommands, readToEnvoyConn, readToEnvoyConnPing, readToEnvoyInit, readToEnvoyKvResponse, readToEnvoyPing, readToEnvoyRequestChunk, readToEnvoyRequestStart, readToEnvoySqliteCommitFinalizeResponse, readToEnvoySqliteCommitResponse, readToEnvoySqliteCommitStageBeginResponse, readToEnvoySqliteCommitStageResponse, readToEnvoySqliteGetPageRangeResponse, readToEnvoySqliteGetPagesResponse, readToEnvoySqlitePersistPreloadHintsResponse, readToEnvoyTunnelMessage, readToEnvoyTunnelMessageKind, readToEnvoyWebSocketClose, readToEnvoyWebSocketMessage, readToEnvoyWebSocketOpen, readToGateway, readToGatewayPong, readToOutbound, readToOutboundActorStart, readToRivet, readToRivetAckCommands, readToRivetEvents, readToRivetKvRequest, readToRivetMetadata, readToRivetPong, readToRivetResponseChunk, readToRivetResponseStart, readToRivetSqliteCommitFinalizeRequest, readToRivetSqliteCommitRequest, readToRivetSqliteCommitStageBeginRequest, readToRivetSqliteCommitStageRequest, readToRivetSqliteGetPageRangeRequest, readToRivetSqliteGetPagesRequest, readToRivetSqlitePersistPreloadHintsRequest, readToRivetTunnelMessage, readToRivetTunnelMessageKind, readToRivetWebSocketClose, readToRivetWebSocketMessage, readToRivetWebSocketMessageAck, readToRivetWebSocketOpen, type u16, type u32, type u64, writeActorCheckpoint, writeActorCommandKeyData, writeActorConfig, writeActorIntent, writeActorName, writeActorState, writeActorStateStopped, writeCommand, writeCommandStartActor, writeCommandStopActor, writeCommandWrapper, writeEvent, writeEventActorIntent, writeEventActorSetAlarm, writeEventActorStateUpdate, writeEventWrapper, writeGatewayId, writeHibernatingRequest, writeId, writeJson, writeKvDeleteRangeRequest, writeKvDeleteRequest, writeKvErrorResponse, writeKvGetRequest, writeKvGetResponse, writeKvKey, writeKvListPrefixQuery, writeKvListQuery, writeKvListRangeQuery, writeKvListRequest, writeKvListResponse, writeKvMetadata, writeKvPutRequest, writeKvRequestData, writeKvResponseData, writeKvValue, writeMessageId, writeMessageIndex, writePreloadedKv, writePreloadedKvEntry, writeProtocolMetadata, writeRequestId, writeSqliteCommitFinalizeOk, writeSqliteCommitFinalizeRequest, writeSqliteCommitFinalizeResponse, writeSqliteCommitOk, writeSqliteCommitRequest, writeSqliteCommitResponse, writeSqliteCommitStageBeginOk, writeSqliteCommitStageBeginRequest, writeSqliteCommitStageBeginResponse, writeSqliteCommitStageOk, writeSqliteCommitStageRequest, writeSqliteCommitStageResponse, writeSqliteCommitTooLarge, writeSqliteDirtyPage, writeSqliteErrorResponse, writeSqliteFenceMismatch, writeSqliteFetchedPage, writeSqliteGeneration, writeSqliteGetPageRangeOk, writeSqliteGetPageRangeRequest, writeSqliteGetPageRangeResponse, writeSqliteGetPagesOk, writeSqliteGetPagesRequest, writeSqliteGetPagesResponse, writeSqliteMeta, writeSqlitePageBytes, writeSqlitePersistPreloadHintsRequest, writeSqlitePersistPreloadHintsResponse, writeSqlitePgno, writeSqlitePreloadHintRange, writeSqlitePreloadHints, writeSqliteStageId, writeSqliteStageNotFound, writeSqliteStartupData, writeSqliteTxid, writeStopActorReason, writeStopCode, writeToEnvoy, writeToEnvoyAckEvents, writeToEnvoyCommands, writeToEnvoyConn, writeToEnvoyConnPing, writeToEnvoyInit, writeToEnvoyKvResponse, writeToEnvoyPing, writeToEnvoyRequestChunk, writeToEnvoyRequestStart, writeToEnvoySqliteCommitFinalizeResponse, writeToEnvoySqliteCommitResponse, writeToEnvoySqliteCommitStageBeginResponse, writeToEnvoySqliteCommitStageResponse, writeToEnvoySqliteGetPageRangeResponse, writeToEnvoySqliteGetPagesResponse, writeToEnvoySqlitePersistPreloadHintsResponse, writeToEnvoyTunnelMessage, writeToEnvoyTunnelMessageKind, writeToEnvoyWebSocketClose, writeToEnvoyWebSocketMessage, writeToEnvoyWebSocketOpen, writeToGateway, writeToGatewayPong, writeToOutbound, writeToOutboundActorStart, writeToRivet, writeToRivetAckCommands, writeToRivetEvents, writeToRivetKvRequest, writeToRivetMetadata, writeToRivetPong, writeToRivetResponseChunk, writeToRivetResponseStart, writeToRivetSqliteCommitFinalizeRequest, writeToRivetSqliteCommitRequest, writeToRivetSqliteCommitStageBeginRequest, writeToRivetSqliteCommitStageRequest, writeToRivetSqliteGetPageRangeRequest, writeToRivetSqliteGetPagesRequest, writeToRivetSqlitePersistPreloadHintsRequest, writeToRivetTunnelMessage, writeToRivetTunnelMessageKind, writeToRivetWebSocketClose, writeToRivetWebSocketMessage, writeToRivetWebSocketMessageAck, writeToRivetWebSocketOpen };
|
package/dist/index.js
CHANGED
|
@@ -484,6 +484,22 @@ function writeSqliteGetPagesRequest(bc, x) {
|
|
|
484
484
|
writeSqliteGeneration(bc, x.generation);
|
|
485
485
|
write6(bc, x.pgnos);
|
|
486
486
|
}
|
|
487
|
+
function readSqliteGetPageRangeRequest(bc) {
|
|
488
|
+
return {
|
|
489
|
+
actorId: readId(bc),
|
|
490
|
+
generation: readSqliteGeneration(bc),
|
|
491
|
+
startPgno: readSqlitePgno(bc),
|
|
492
|
+
maxPages: bare.readU32(bc),
|
|
493
|
+
maxBytes: bare.readU64(bc)
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
function writeSqliteGetPageRangeRequest(bc, x) {
|
|
497
|
+
writeId(bc, x.actorId);
|
|
498
|
+
writeSqliteGeneration(bc, x.generation);
|
|
499
|
+
writeSqlitePgno(bc, x.startPgno);
|
|
500
|
+
bare.writeU32(bc, x.maxPages);
|
|
501
|
+
bare.writeU64(bc, x.maxBytes);
|
|
502
|
+
}
|
|
487
503
|
function read7(bc) {
|
|
488
504
|
const len = bare.readUintSafe(bc);
|
|
489
505
|
if (len === 0) {
|
|
@@ -511,6 +527,18 @@ function writeSqliteGetPagesOk(bc, x) {
|
|
|
511
527
|
write7(bc, x.pages);
|
|
512
528
|
writeSqliteMeta(bc, x.meta);
|
|
513
529
|
}
|
|
530
|
+
function readSqliteGetPageRangeOk(bc) {
|
|
531
|
+
return {
|
|
532
|
+
startPgno: readSqlitePgno(bc),
|
|
533
|
+
pages: read7(bc),
|
|
534
|
+
meta: readSqliteMeta(bc)
|
|
535
|
+
};
|
|
536
|
+
}
|
|
537
|
+
function writeSqliteGetPageRangeOk(bc, x) {
|
|
538
|
+
writeSqlitePgno(bc, x.startPgno);
|
|
539
|
+
write7(bc, x.pages);
|
|
540
|
+
writeSqliteMeta(bc, x.meta);
|
|
541
|
+
}
|
|
514
542
|
function readSqliteErrorResponse(bc) {
|
|
515
543
|
return {
|
|
516
544
|
message: bare.readString(bc)
|
|
@@ -554,6 +582,41 @@ function writeSqliteGetPagesResponse(bc, x) {
|
|
|
554
582
|
}
|
|
555
583
|
}
|
|
556
584
|
}
|
|
585
|
+
function readSqliteGetPageRangeResponse(bc) {
|
|
586
|
+
const offset = bc.offset;
|
|
587
|
+
const tag = bare.readU8(bc);
|
|
588
|
+
switch (tag) {
|
|
589
|
+
case 0:
|
|
590
|
+
return { tag: "SqliteGetPageRangeOk", val: readSqliteGetPageRangeOk(bc) };
|
|
591
|
+
case 1:
|
|
592
|
+
return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
|
|
593
|
+
case 2:
|
|
594
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
595
|
+
default: {
|
|
596
|
+
bc.offset = offset;
|
|
597
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
function writeSqliteGetPageRangeResponse(bc, x) {
|
|
602
|
+
switch (x.tag) {
|
|
603
|
+
case "SqliteGetPageRangeOk": {
|
|
604
|
+
bare.writeU8(bc, 0);
|
|
605
|
+
writeSqliteGetPageRangeOk(bc, x.val);
|
|
606
|
+
break;
|
|
607
|
+
}
|
|
608
|
+
case "SqliteFenceMismatch": {
|
|
609
|
+
bare.writeU8(bc, 1);
|
|
610
|
+
writeSqliteFenceMismatch(bc, x.val);
|
|
611
|
+
break;
|
|
612
|
+
}
|
|
613
|
+
case "SqliteErrorResponse": {
|
|
614
|
+
bare.writeU8(bc, 2);
|
|
615
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
616
|
+
break;
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
}
|
|
557
620
|
function read8(bc) {
|
|
558
621
|
const len = bare.readUintSafe(bc);
|
|
559
622
|
if (len === 0) {
|
|
@@ -839,6 +902,89 @@ function writeSqliteCommitFinalizeResponse(bc, x) {
|
|
|
839
902
|
}
|
|
840
903
|
}
|
|
841
904
|
}
|
|
905
|
+
function readSqlitePreloadHintRange(bc) {
|
|
906
|
+
return {
|
|
907
|
+
startPgno: readSqlitePgno(bc),
|
|
908
|
+
pageCount: bare.readU32(bc)
|
|
909
|
+
};
|
|
910
|
+
}
|
|
911
|
+
function writeSqlitePreloadHintRange(bc, x) {
|
|
912
|
+
writeSqlitePgno(bc, x.startPgno);
|
|
913
|
+
bare.writeU32(bc, x.pageCount);
|
|
914
|
+
}
|
|
915
|
+
function read9(bc) {
|
|
916
|
+
const len = bare.readUintSafe(bc);
|
|
917
|
+
if (len === 0) {
|
|
918
|
+
return [];
|
|
919
|
+
}
|
|
920
|
+
const result = [readSqlitePreloadHintRange(bc)];
|
|
921
|
+
for (let i = 1; i < len; i++) {
|
|
922
|
+
result[i] = readSqlitePreloadHintRange(bc);
|
|
923
|
+
}
|
|
924
|
+
return result;
|
|
925
|
+
}
|
|
926
|
+
function write9(bc, x) {
|
|
927
|
+
bare.writeUintSafe(bc, x.length);
|
|
928
|
+
for (let i = 0; i < x.length; i++) {
|
|
929
|
+
writeSqlitePreloadHintRange(bc, x[i]);
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
function readSqlitePreloadHints(bc) {
|
|
933
|
+
return {
|
|
934
|
+
pgnos: read6(bc),
|
|
935
|
+
ranges: read9(bc)
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
function writeSqlitePreloadHints(bc, x) {
|
|
939
|
+
write6(bc, x.pgnos);
|
|
940
|
+
write9(bc, x.ranges);
|
|
941
|
+
}
|
|
942
|
+
function readSqlitePersistPreloadHintsRequest(bc) {
|
|
943
|
+
return {
|
|
944
|
+
actorId: readId(bc),
|
|
945
|
+
generation: readSqliteGeneration(bc),
|
|
946
|
+
hints: readSqlitePreloadHints(bc)
|
|
947
|
+
};
|
|
948
|
+
}
|
|
949
|
+
function writeSqlitePersistPreloadHintsRequest(bc, x) {
|
|
950
|
+
writeId(bc, x.actorId);
|
|
951
|
+
writeSqliteGeneration(bc, x.generation);
|
|
952
|
+
writeSqlitePreloadHints(bc, x.hints);
|
|
953
|
+
}
|
|
954
|
+
function readSqlitePersistPreloadHintsResponse(bc) {
|
|
955
|
+
const offset = bc.offset;
|
|
956
|
+
const tag = bare.readU8(bc);
|
|
957
|
+
switch (tag) {
|
|
958
|
+
case 0:
|
|
959
|
+
return { tag: "SqlitePersistPreloadHintsOk", val: null };
|
|
960
|
+
case 1:
|
|
961
|
+
return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
|
|
962
|
+
case 2:
|
|
963
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
964
|
+
default: {
|
|
965
|
+
bc.offset = offset;
|
|
966
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
function writeSqlitePersistPreloadHintsResponse(bc, x) {
|
|
971
|
+
switch (x.tag) {
|
|
972
|
+
case "SqlitePersistPreloadHintsOk": {
|
|
973
|
+
bare.writeU8(bc, 0);
|
|
974
|
+
break;
|
|
975
|
+
}
|
|
976
|
+
case "SqliteFenceMismatch": {
|
|
977
|
+
bare.writeU8(bc, 1);
|
|
978
|
+
writeSqliteFenceMismatch(bc, x.val);
|
|
979
|
+
break;
|
|
980
|
+
}
|
|
981
|
+
case "SqliteErrorResponse": {
|
|
982
|
+
bare.writeU8(bc, 2);
|
|
983
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
984
|
+
break;
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
}
|
|
842
988
|
function readSqliteStartupData(bc) {
|
|
843
989
|
return {
|
|
844
990
|
generation: readSqliteGeneration(bc),
|
|
@@ -890,19 +1036,19 @@ function readActorName(bc) {
|
|
|
890
1036
|
function writeActorName(bc, x) {
|
|
891
1037
|
writeJson(bc, x.metadata);
|
|
892
1038
|
}
|
|
893
|
-
function
|
|
1039
|
+
function read10(bc) {
|
|
894
1040
|
return bare.readBool(bc) ? bare.readString(bc) : null;
|
|
895
1041
|
}
|
|
896
|
-
function
|
|
1042
|
+
function write10(bc, x) {
|
|
897
1043
|
bare.writeBool(bc, x != null);
|
|
898
1044
|
if (x != null) {
|
|
899
1045
|
bare.writeString(bc, x);
|
|
900
1046
|
}
|
|
901
1047
|
}
|
|
902
|
-
function
|
|
1048
|
+
function read11(bc) {
|
|
903
1049
|
return bare.readBool(bc) ? bare.readData(bc) : null;
|
|
904
1050
|
}
|
|
905
|
-
function
|
|
1051
|
+
function write11(bc, x) {
|
|
906
1052
|
bare.writeBool(bc, x != null);
|
|
907
1053
|
if (x != null) {
|
|
908
1054
|
bare.writeData(bc, x);
|
|
@@ -911,16 +1057,16 @@ function write10(bc, x) {
|
|
|
911
1057
|
function readActorConfig(bc) {
|
|
912
1058
|
return {
|
|
913
1059
|
name: bare.readString(bc),
|
|
914
|
-
key:
|
|
1060
|
+
key: read10(bc),
|
|
915
1061
|
createTs: bare.readI64(bc),
|
|
916
|
-
input:
|
|
1062
|
+
input: read11(bc)
|
|
917
1063
|
};
|
|
918
1064
|
}
|
|
919
1065
|
function writeActorConfig(bc, x) {
|
|
920
1066
|
bare.writeString(bc, x.name);
|
|
921
|
-
|
|
1067
|
+
write10(bc, x.key);
|
|
922
1068
|
bare.writeI64(bc, x.createTs);
|
|
923
|
-
|
|
1069
|
+
write11(bc, x.input);
|
|
924
1070
|
}
|
|
925
1071
|
function readActorCheckpoint(bc) {
|
|
926
1072
|
return {
|
|
@@ -963,12 +1109,12 @@ function writeActorIntent(bc, x) {
|
|
|
963
1109
|
function readActorStateStopped(bc) {
|
|
964
1110
|
return {
|
|
965
1111
|
code: readStopCode(bc),
|
|
966
|
-
message:
|
|
1112
|
+
message: read10(bc)
|
|
967
1113
|
};
|
|
968
1114
|
}
|
|
969
1115
|
function writeActorStateStopped(bc, x) {
|
|
970
1116
|
writeStopCode(bc, x.code);
|
|
971
|
-
|
|
1117
|
+
write10(bc, x.message);
|
|
972
1118
|
}
|
|
973
1119
|
function readActorState(bc) {
|
|
974
1120
|
const offset = bc.offset;
|
|
@@ -1013,10 +1159,10 @@ function readEventActorStateUpdate(bc) {
|
|
|
1013
1159
|
function writeEventActorStateUpdate(bc, x) {
|
|
1014
1160
|
writeActorState(bc, x.state);
|
|
1015
1161
|
}
|
|
1016
|
-
function
|
|
1162
|
+
function read12(bc) {
|
|
1017
1163
|
return bare.readBool(bc) ? bare.readI64(bc) : null;
|
|
1018
1164
|
}
|
|
1019
|
-
function
|
|
1165
|
+
function write12(bc, x) {
|
|
1020
1166
|
bare.writeBool(bc, x != null);
|
|
1021
1167
|
if (x != null) {
|
|
1022
1168
|
bare.writeI64(bc, x);
|
|
@@ -1024,11 +1170,11 @@ function write11(bc, x) {
|
|
|
1024
1170
|
}
|
|
1025
1171
|
function readEventActorSetAlarm(bc) {
|
|
1026
1172
|
return {
|
|
1027
|
-
alarmTs:
|
|
1173
|
+
alarmTs: read12(bc)
|
|
1028
1174
|
};
|
|
1029
1175
|
}
|
|
1030
1176
|
function writeEventActorSetAlarm(bc, x) {
|
|
1031
|
-
|
|
1177
|
+
write12(bc, x.alarmTs);
|
|
1032
1178
|
}
|
|
1033
1179
|
function readEvent(bc) {
|
|
1034
1180
|
const offset = bc.offset;
|
|
@@ -1087,7 +1233,7 @@ function writePreloadedKvEntry(bc, x) {
|
|
|
1087
1233
|
writeKvValue(bc, x.value);
|
|
1088
1234
|
writeKvMetadata(bc, x.metadata);
|
|
1089
1235
|
}
|
|
1090
|
-
function
|
|
1236
|
+
function read13(bc) {
|
|
1091
1237
|
const len = bare.readUintSafe(bc);
|
|
1092
1238
|
if (len === 0) {
|
|
1093
1239
|
return [];
|
|
@@ -1098,7 +1244,7 @@ function read12(bc) {
|
|
|
1098
1244
|
}
|
|
1099
1245
|
return result;
|
|
1100
1246
|
}
|
|
1101
|
-
function
|
|
1247
|
+
function write13(bc, x) {
|
|
1102
1248
|
bare.writeUintSafe(bc, x.length);
|
|
1103
1249
|
for (let i = 0; i < x.length; i++) {
|
|
1104
1250
|
writePreloadedKvEntry(bc, x[i]);
|
|
@@ -1106,13 +1252,13 @@ function write12(bc, x) {
|
|
|
1106
1252
|
}
|
|
1107
1253
|
function readPreloadedKv(bc) {
|
|
1108
1254
|
return {
|
|
1109
|
-
entries:
|
|
1255
|
+
entries: read13(bc),
|
|
1110
1256
|
requestedGetKeys: read0(bc),
|
|
1111
1257
|
requestedPrefixes: read0(bc)
|
|
1112
1258
|
};
|
|
1113
1259
|
}
|
|
1114
1260
|
function writePreloadedKv(bc, x) {
|
|
1115
|
-
|
|
1261
|
+
write13(bc, x.entries);
|
|
1116
1262
|
write0(bc, x.requestedGetKeys);
|
|
1117
1263
|
write0(bc, x.requestedPrefixes);
|
|
1118
1264
|
}
|
|
@@ -1126,7 +1272,7 @@ function writeHibernatingRequest(bc, x) {
|
|
|
1126
1272
|
writeGatewayId(bc, x.gatewayId);
|
|
1127
1273
|
writeRequestId(bc, x.requestId);
|
|
1128
1274
|
}
|
|
1129
|
-
function
|
|
1275
|
+
function read14(bc) {
|
|
1130
1276
|
const len = bare.readUintSafe(bc);
|
|
1131
1277
|
if (len === 0) {
|
|
1132
1278
|
return [];
|
|
@@ -1137,25 +1283,25 @@ function read13(bc) {
|
|
|
1137
1283
|
}
|
|
1138
1284
|
return result;
|
|
1139
1285
|
}
|
|
1140
|
-
function
|
|
1286
|
+
function write14(bc, x) {
|
|
1141
1287
|
bare.writeUintSafe(bc, x.length);
|
|
1142
1288
|
for (let i = 0; i < x.length; i++) {
|
|
1143
1289
|
writeHibernatingRequest(bc, x[i]);
|
|
1144
1290
|
}
|
|
1145
1291
|
}
|
|
1146
|
-
function
|
|
1292
|
+
function read15(bc) {
|
|
1147
1293
|
return bare.readBool(bc) ? readPreloadedKv(bc) : null;
|
|
1148
1294
|
}
|
|
1149
|
-
function
|
|
1295
|
+
function write15(bc, x) {
|
|
1150
1296
|
bare.writeBool(bc, x != null);
|
|
1151
1297
|
if (x != null) {
|
|
1152
1298
|
writePreloadedKv(bc, x);
|
|
1153
1299
|
}
|
|
1154
1300
|
}
|
|
1155
|
-
function
|
|
1301
|
+
function read16(bc) {
|
|
1156
1302
|
return bare.readBool(bc) ? readSqliteStartupData(bc) : null;
|
|
1157
1303
|
}
|
|
1158
|
-
function
|
|
1304
|
+
function write16(bc, x) {
|
|
1159
1305
|
bare.writeBool(bc, x != null);
|
|
1160
1306
|
if (x != null) {
|
|
1161
1307
|
writeSqliteStartupData(bc, x);
|
|
@@ -1164,16 +1310,16 @@ function write15(bc, x) {
|
|
|
1164
1310
|
function readCommandStartActor(bc) {
|
|
1165
1311
|
return {
|
|
1166
1312
|
config: readActorConfig(bc),
|
|
1167
|
-
hibernatingRequests:
|
|
1168
|
-
preloadedKv:
|
|
1169
|
-
sqliteStartupData:
|
|
1313
|
+
hibernatingRequests: read14(bc),
|
|
1314
|
+
preloadedKv: read15(bc),
|
|
1315
|
+
sqliteStartupData: read16(bc)
|
|
1170
1316
|
};
|
|
1171
1317
|
}
|
|
1172
1318
|
function writeCommandStartActor(bc, x) {
|
|
1173
1319
|
writeActorConfig(bc, x.config);
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1320
|
+
write14(bc, x.hibernatingRequests);
|
|
1321
|
+
write15(bc, x.preloadedKv);
|
|
1322
|
+
write16(bc, x.sqliteStartupData);
|
|
1177
1323
|
}
|
|
1178
1324
|
var StopActorReason = /* @__PURE__ */ ((StopActorReason2) => {
|
|
1179
1325
|
StopActorReason2["SleepIntent"] = "SleepIntent";
|
|
@@ -1330,7 +1476,7 @@ function writeMessageId(bc, x) {
|
|
|
1330
1476
|
writeRequestId(bc, x.requestId);
|
|
1331
1477
|
writeMessageIndex(bc, x.messageIndex);
|
|
1332
1478
|
}
|
|
1333
|
-
function
|
|
1479
|
+
function read17(bc) {
|
|
1334
1480
|
const len = bare.readUintSafe(bc);
|
|
1335
1481
|
const result = /* @__PURE__ */ new Map();
|
|
1336
1482
|
for (let i = 0; i < len; i++) {
|
|
@@ -1344,7 +1490,7 @@ function read16(bc) {
|
|
|
1344
1490
|
}
|
|
1345
1491
|
return result;
|
|
1346
1492
|
}
|
|
1347
|
-
function
|
|
1493
|
+
function write17(bc, x) {
|
|
1348
1494
|
bare.writeUintSafe(bc, x.size);
|
|
1349
1495
|
for (const kv of x) {
|
|
1350
1496
|
bare.writeString(bc, kv[0]);
|
|
@@ -1356,8 +1502,8 @@ function readToEnvoyRequestStart(bc) {
|
|
|
1356
1502
|
actorId: readId(bc),
|
|
1357
1503
|
method: bare.readString(bc),
|
|
1358
1504
|
path: bare.readString(bc),
|
|
1359
|
-
headers:
|
|
1360
|
-
body:
|
|
1505
|
+
headers: read17(bc),
|
|
1506
|
+
body: read11(bc),
|
|
1361
1507
|
stream: bare.readBool(bc)
|
|
1362
1508
|
};
|
|
1363
1509
|
}
|
|
@@ -1365,8 +1511,8 @@ function writeToEnvoyRequestStart(bc, x) {
|
|
|
1365
1511
|
writeId(bc, x.actorId);
|
|
1366
1512
|
bare.writeString(bc, x.method);
|
|
1367
1513
|
bare.writeString(bc, x.path);
|
|
1368
|
-
|
|
1369
|
-
|
|
1514
|
+
write17(bc, x.headers);
|
|
1515
|
+
write11(bc, x.body);
|
|
1370
1516
|
bare.writeBool(bc, x.stream);
|
|
1371
1517
|
}
|
|
1372
1518
|
function readToEnvoyRequestChunk(bc) {
|
|
@@ -1382,15 +1528,15 @@ function writeToEnvoyRequestChunk(bc, x) {
|
|
|
1382
1528
|
function readToRivetResponseStart(bc) {
|
|
1383
1529
|
return {
|
|
1384
1530
|
status: bare.readU16(bc),
|
|
1385
|
-
headers:
|
|
1386
|
-
body:
|
|
1531
|
+
headers: read17(bc),
|
|
1532
|
+
body: read11(bc),
|
|
1387
1533
|
stream: bare.readBool(bc)
|
|
1388
1534
|
};
|
|
1389
1535
|
}
|
|
1390
1536
|
function writeToRivetResponseStart(bc, x) {
|
|
1391
1537
|
bare.writeU16(bc, x.status);
|
|
1392
|
-
|
|
1393
|
-
|
|
1538
|
+
write17(bc, x.headers);
|
|
1539
|
+
write11(bc, x.body);
|
|
1394
1540
|
bare.writeBool(bc, x.stream);
|
|
1395
1541
|
}
|
|
1396
1542
|
function readToRivetResponseChunk(bc) {
|
|
@@ -1407,13 +1553,13 @@ function readToEnvoyWebSocketOpen(bc) {
|
|
|
1407
1553
|
return {
|
|
1408
1554
|
actorId: readId(bc),
|
|
1409
1555
|
path: bare.readString(bc),
|
|
1410
|
-
headers:
|
|
1556
|
+
headers: read17(bc)
|
|
1411
1557
|
};
|
|
1412
1558
|
}
|
|
1413
1559
|
function writeToEnvoyWebSocketOpen(bc, x) {
|
|
1414
1560
|
writeId(bc, x.actorId);
|
|
1415
1561
|
bare.writeString(bc, x.path);
|
|
1416
|
-
|
|
1562
|
+
write17(bc, x.headers);
|
|
1417
1563
|
}
|
|
1418
1564
|
function readToEnvoyWebSocketMessage(bc) {
|
|
1419
1565
|
return {
|
|
@@ -1425,10 +1571,10 @@ function writeToEnvoyWebSocketMessage(bc, x) {
|
|
|
1425
1571
|
bare.writeData(bc, x.data);
|
|
1426
1572
|
bare.writeBool(bc, x.binary);
|
|
1427
1573
|
}
|
|
1428
|
-
function
|
|
1574
|
+
function read18(bc) {
|
|
1429
1575
|
return bare.readBool(bc) ? bare.readU16(bc) : null;
|
|
1430
1576
|
}
|
|
1431
|
-
function
|
|
1577
|
+
function write18(bc, x) {
|
|
1432
1578
|
bare.writeBool(bc, x != null);
|
|
1433
1579
|
if (x != null) {
|
|
1434
1580
|
bare.writeU16(bc, x);
|
|
@@ -1436,13 +1582,13 @@ function write17(bc, x) {
|
|
|
1436
1582
|
}
|
|
1437
1583
|
function readToEnvoyWebSocketClose(bc) {
|
|
1438
1584
|
return {
|
|
1439
|
-
code:
|
|
1440
|
-
reason:
|
|
1585
|
+
code: read18(bc),
|
|
1586
|
+
reason: read10(bc)
|
|
1441
1587
|
};
|
|
1442
1588
|
}
|
|
1443
1589
|
function writeToEnvoyWebSocketClose(bc, x) {
|
|
1444
|
-
|
|
1445
|
-
|
|
1590
|
+
write18(bc, x.code);
|
|
1591
|
+
write10(bc, x.reason);
|
|
1446
1592
|
}
|
|
1447
1593
|
function readToRivetWebSocketOpen(bc) {
|
|
1448
1594
|
return {
|
|
@@ -1472,14 +1618,14 @@ function writeToRivetWebSocketMessageAck(bc, x) {
|
|
|
1472
1618
|
}
|
|
1473
1619
|
function readToRivetWebSocketClose(bc) {
|
|
1474
1620
|
return {
|
|
1475
|
-
code:
|
|
1476
|
-
reason:
|
|
1621
|
+
code: read18(bc),
|
|
1622
|
+
reason: read10(bc),
|
|
1477
1623
|
hibernate: bare.readBool(bc)
|
|
1478
1624
|
};
|
|
1479
1625
|
}
|
|
1480
1626
|
function writeToRivetWebSocketClose(bc, x) {
|
|
1481
|
-
|
|
1482
|
-
|
|
1627
|
+
write18(bc, x.code);
|
|
1628
|
+
write10(bc, x.reason);
|
|
1483
1629
|
bare.writeBool(bc, x.hibernate);
|
|
1484
1630
|
}
|
|
1485
1631
|
function readToRivetTunnelMessageKind(bc) {
|
|
@@ -1627,7 +1773,7 @@ function readToEnvoyPing(bc) {
|
|
|
1627
1773
|
function writeToEnvoyPing(bc, x) {
|
|
1628
1774
|
bare.writeI64(bc, x.ts);
|
|
1629
1775
|
}
|
|
1630
|
-
function
|
|
1776
|
+
function read19(bc) {
|
|
1631
1777
|
const len = bare.readUintSafe(bc);
|
|
1632
1778
|
const result = /* @__PURE__ */ new Map();
|
|
1633
1779
|
for (let i = 0; i < len; i++) {
|
|
@@ -1641,26 +1787,26 @@ function read18(bc) {
|
|
|
1641
1787
|
}
|
|
1642
1788
|
return result;
|
|
1643
1789
|
}
|
|
1644
|
-
function
|
|
1790
|
+
function write19(bc, x) {
|
|
1645
1791
|
bare.writeUintSafe(bc, x.size);
|
|
1646
1792
|
for (const kv of x) {
|
|
1647
1793
|
bare.writeString(bc, kv[0]);
|
|
1648
1794
|
writeActorName(bc, kv[1]);
|
|
1649
1795
|
}
|
|
1650
1796
|
}
|
|
1651
|
-
function
|
|
1652
|
-
return bare.readBool(bc) ?
|
|
1797
|
+
function read20(bc) {
|
|
1798
|
+
return bare.readBool(bc) ? read19(bc) : null;
|
|
1653
1799
|
}
|
|
1654
|
-
function
|
|
1800
|
+
function write20(bc, x) {
|
|
1655
1801
|
bare.writeBool(bc, x != null);
|
|
1656
1802
|
if (x != null) {
|
|
1657
|
-
|
|
1803
|
+
write19(bc, x);
|
|
1658
1804
|
}
|
|
1659
1805
|
}
|
|
1660
|
-
function
|
|
1806
|
+
function read21(bc) {
|
|
1661
1807
|
return bare.readBool(bc) ? readJson(bc) : null;
|
|
1662
1808
|
}
|
|
1663
|
-
function
|
|
1809
|
+
function write21(bc, x) {
|
|
1664
1810
|
bare.writeBool(bc, x != null);
|
|
1665
1811
|
if (x != null) {
|
|
1666
1812
|
writeJson(bc, x);
|
|
@@ -1668,13 +1814,13 @@ function write20(bc, x) {
|
|
|
1668
1814
|
}
|
|
1669
1815
|
function readToRivetMetadata(bc) {
|
|
1670
1816
|
return {
|
|
1671
|
-
prepopulateActorNames:
|
|
1672
|
-
metadata:
|
|
1817
|
+
prepopulateActorNames: read20(bc),
|
|
1818
|
+
metadata: read21(bc)
|
|
1673
1819
|
};
|
|
1674
1820
|
}
|
|
1675
1821
|
function writeToRivetMetadata(bc, x) {
|
|
1676
|
-
|
|
1677
|
-
|
|
1822
|
+
write20(bc, x.prepopulateActorNames);
|
|
1823
|
+
write21(bc, x.metadata);
|
|
1678
1824
|
}
|
|
1679
1825
|
function readToRivetEvents(bc) {
|
|
1680
1826
|
const len = bare.readUintSafe(bc);
|
|
@@ -1693,7 +1839,7 @@ function writeToRivetEvents(bc, x) {
|
|
|
1693
1839
|
writeEventWrapper(bc, x[i]);
|
|
1694
1840
|
}
|
|
1695
1841
|
}
|
|
1696
|
-
function
|
|
1842
|
+
function read22(bc) {
|
|
1697
1843
|
const len = bare.readUintSafe(bc);
|
|
1698
1844
|
if (len === 0) {
|
|
1699
1845
|
return [];
|
|
@@ -1704,7 +1850,7 @@ function read21(bc) {
|
|
|
1704
1850
|
}
|
|
1705
1851
|
return result;
|
|
1706
1852
|
}
|
|
1707
|
-
function
|
|
1853
|
+
function write22(bc, x) {
|
|
1708
1854
|
bare.writeUintSafe(bc, x.length);
|
|
1709
1855
|
for (let i = 0; i < x.length; i++) {
|
|
1710
1856
|
writeActorCheckpoint(bc, x[i]);
|
|
@@ -1712,11 +1858,11 @@ function write21(bc, x) {
|
|
|
1712
1858
|
}
|
|
1713
1859
|
function readToRivetAckCommands(bc) {
|
|
1714
1860
|
return {
|
|
1715
|
-
lastCommandCheckpoints:
|
|
1861
|
+
lastCommandCheckpoints: read22(bc)
|
|
1716
1862
|
};
|
|
1717
1863
|
}
|
|
1718
1864
|
function writeToRivetAckCommands(bc, x) {
|
|
1719
|
-
|
|
1865
|
+
write22(bc, x.lastCommandCheckpoints);
|
|
1720
1866
|
}
|
|
1721
1867
|
function readToRivetPong(bc) {
|
|
1722
1868
|
return {
|
|
@@ -1748,6 +1894,16 @@ function writeToRivetSqliteGetPagesRequest(bc, x) {
|
|
|
1748
1894
|
bare.writeU32(bc, x.requestId);
|
|
1749
1895
|
writeSqliteGetPagesRequest(bc, x.data);
|
|
1750
1896
|
}
|
|
1897
|
+
function readToRivetSqliteGetPageRangeRequest(bc) {
|
|
1898
|
+
return {
|
|
1899
|
+
requestId: bare.readU32(bc),
|
|
1900
|
+
data: readSqliteGetPageRangeRequest(bc)
|
|
1901
|
+
};
|
|
1902
|
+
}
|
|
1903
|
+
function writeToRivetSqliteGetPageRangeRequest(bc, x) {
|
|
1904
|
+
bare.writeU32(bc, x.requestId);
|
|
1905
|
+
writeSqliteGetPageRangeRequest(bc, x.data);
|
|
1906
|
+
}
|
|
1751
1907
|
function readToRivetSqliteCommitRequest(bc) {
|
|
1752
1908
|
return {
|
|
1753
1909
|
requestId: bare.readU32(bc),
|
|
@@ -1788,6 +1944,16 @@ function writeToRivetSqliteCommitFinalizeRequest(bc, x) {
|
|
|
1788
1944
|
bare.writeU32(bc, x.requestId);
|
|
1789
1945
|
writeSqliteCommitFinalizeRequest(bc, x.data);
|
|
1790
1946
|
}
|
|
1947
|
+
function readToRivetSqlitePersistPreloadHintsRequest(bc) {
|
|
1948
|
+
return {
|
|
1949
|
+
requestId: bare.readU32(bc),
|
|
1950
|
+
data: readSqlitePersistPreloadHintsRequest(bc)
|
|
1951
|
+
};
|
|
1952
|
+
}
|
|
1953
|
+
function writeToRivetSqlitePersistPreloadHintsRequest(bc, x) {
|
|
1954
|
+
bare.writeU32(bc, x.requestId);
|
|
1955
|
+
writeSqlitePersistPreloadHintsRequest(bc, x.data);
|
|
1956
|
+
}
|
|
1791
1957
|
function readToRivet(bc) {
|
|
1792
1958
|
const offset = bc.offset;
|
|
1793
1959
|
const tag = bare.readU8(bc);
|
|
@@ -1809,13 +1975,17 @@ function readToRivet(bc) {
|
|
|
1809
1975
|
case 7:
|
|
1810
1976
|
return { tag: "ToRivetSqliteGetPagesRequest", val: readToRivetSqliteGetPagesRequest(bc) };
|
|
1811
1977
|
case 8:
|
|
1812
|
-
return { tag: "
|
|
1978
|
+
return { tag: "ToRivetSqliteGetPageRangeRequest", val: readToRivetSqliteGetPageRangeRequest(bc) };
|
|
1813
1979
|
case 9:
|
|
1814
|
-
return { tag: "
|
|
1980
|
+
return { tag: "ToRivetSqliteCommitRequest", val: readToRivetSqliteCommitRequest(bc) };
|
|
1815
1981
|
case 10:
|
|
1816
|
-
return { tag: "
|
|
1982
|
+
return { tag: "ToRivetSqliteCommitStageBeginRequest", val: readToRivetSqliteCommitStageBeginRequest(bc) };
|
|
1817
1983
|
case 11:
|
|
1984
|
+
return { tag: "ToRivetSqliteCommitStageRequest", val: readToRivetSqliteCommitStageRequest(bc) };
|
|
1985
|
+
case 12:
|
|
1818
1986
|
return { tag: "ToRivetSqliteCommitFinalizeRequest", val: readToRivetSqliteCommitFinalizeRequest(bc) };
|
|
1987
|
+
case 13:
|
|
1988
|
+
return { tag: "ToRivetSqlitePersistPreloadHintsRequest", val: readToRivetSqlitePersistPreloadHintsRequest(bc) };
|
|
1819
1989
|
default: {
|
|
1820
1990
|
bc.offset = offset;
|
|
1821
1991
|
throw new bare.BareError(offset, "invalid tag");
|
|
@@ -1863,26 +2033,36 @@ function writeToRivet(bc, x) {
|
|
|
1863
2033
|
writeToRivetSqliteGetPagesRequest(bc, x.val);
|
|
1864
2034
|
break;
|
|
1865
2035
|
}
|
|
1866
|
-
case "
|
|
2036
|
+
case "ToRivetSqliteGetPageRangeRequest": {
|
|
1867
2037
|
bare.writeU8(bc, 8);
|
|
2038
|
+
writeToRivetSqliteGetPageRangeRequest(bc, x.val);
|
|
2039
|
+
break;
|
|
2040
|
+
}
|
|
2041
|
+
case "ToRivetSqliteCommitRequest": {
|
|
2042
|
+
bare.writeU8(bc, 9);
|
|
1868
2043
|
writeToRivetSqliteCommitRequest(bc, x.val);
|
|
1869
2044
|
break;
|
|
1870
2045
|
}
|
|
1871
2046
|
case "ToRivetSqliteCommitStageBeginRequest": {
|
|
1872
|
-
bare.writeU8(bc,
|
|
2047
|
+
bare.writeU8(bc, 10);
|
|
1873
2048
|
writeToRivetSqliteCommitStageBeginRequest(bc, x.val);
|
|
1874
2049
|
break;
|
|
1875
2050
|
}
|
|
1876
2051
|
case "ToRivetSqliteCommitStageRequest": {
|
|
1877
|
-
bare.writeU8(bc,
|
|
2052
|
+
bare.writeU8(bc, 11);
|
|
1878
2053
|
writeToRivetSqliteCommitStageRequest(bc, x.val);
|
|
1879
2054
|
break;
|
|
1880
2055
|
}
|
|
1881
2056
|
case "ToRivetSqliteCommitFinalizeRequest": {
|
|
1882
|
-
bare.writeU8(bc,
|
|
2057
|
+
bare.writeU8(bc, 12);
|
|
1883
2058
|
writeToRivetSqliteCommitFinalizeRequest(bc, x.val);
|
|
1884
2059
|
break;
|
|
1885
2060
|
}
|
|
2061
|
+
case "ToRivetSqlitePersistPreloadHintsRequest": {
|
|
2062
|
+
bare.writeU8(bc, 13);
|
|
2063
|
+
writeToRivetSqlitePersistPreloadHintsRequest(bc, x.val);
|
|
2064
|
+
break;
|
|
2065
|
+
}
|
|
1886
2066
|
}
|
|
1887
2067
|
}
|
|
1888
2068
|
function encodeToRivet(x, config) {
|
|
@@ -1941,11 +2121,11 @@ function writeToEnvoyCommands(bc, x) {
|
|
|
1941
2121
|
}
|
|
1942
2122
|
function readToEnvoyAckEvents(bc) {
|
|
1943
2123
|
return {
|
|
1944
|
-
lastEventCheckpoints:
|
|
2124
|
+
lastEventCheckpoints: read22(bc)
|
|
1945
2125
|
};
|
|
1946
2126
|
}
|
|
1947
2127
|
function writeToEnvoyAckEvents(bc, x) {
|
|
1948
|
-
|
|
2128
|
+
write22(bc, x.lastEventCheckpoints);
|
|
1949
2129
|
}
|
|
1950
2130
|
function readToEnvoyKvResponse(bc) {
|
|
1951
2131
|
return {
|
|
@@ -1967,6 +2147,16 @@ function writeToEnvoySqliteGetPagesResponse(bc, x) {
|
|
|
1967
2147
|
bare.writeU32(bc, x.requestId);
|
|
1968
2148
|
writeSqliteGetPagesResponse(bc, x.data);
|
|
1969
2149
|
}
|
|
2150
|
+
function readToEnvoySqliteGetPageRangeResponse(bc) {
|
|
2151
|
+
return {
|
|
2152
|
+
requestId: bare.readU32(bc),
|
|
2153
|
+
data: readSqliteGetPageRangeResponse(bc)
|
|
2154
|
+
};
|
|
2155
|
+
}
|
|
2156
|
+
function writeToEnvoySqliteGetPageRangeResponse(bc, x) {
|
|
2157
|
+
bare.writeU32(bc, x.requestId);
|
|
2158
|
+
writeSqliteGetPageRangeResponse(bc, x.data);
|
|
2159
|
+
}
|
|
1970
2160
|
function readToEnvoySqliteCommitResponse(bc) {
|
|
1971
2161
|
return {
|
|
1972
2162
|
requestId: bare.readU32(bc),
|
|
@@ -2007,6 +2197,16 @@ function writeToEnvoySqliteCommitFinalizeResponse(bc, x) {
|
|
|
2007
2197
|
bare.writeU32(bc, x.requestId);
|
|
2008
2198
|
writeSqliteCommitFinalizeResponse(bc, x.data);
|
|
2009
2199
|
}
|
|
2200
|
+
function readToEnvoySqlitePersistPreloadHintsResponse(bc) {
|
|
2201
|
+
return {
|
|
2202
|
+
requestId: bare.readU32(bc),
|
|
2203
|
+
data: readSqlitePersistPreloadHintsResponse(bc)
|
|
2204
|
+
};
|
|
2205
|
+
}
|
|
2206
|
+
function writeToEnvoySqlitePersistPreloadHintsResponse(bc, x) {
|
|
2207
|
+
bare.writeU32(bc, x.requestId);
|
|
2208
|
+
writeSqlitePersistPreloadHintsResponse(bc, x.data);
|
|
2209
|
+
}
|
|
2010
2210
|
function readToEnvoy(bc) {
|
|
2011
2211
|
const offset = bc.offset;
|
|
2012
2212
|
const tag = bare.readU8(bc);
|
|
@@ -2026,13 +2226,17 @@ function readToEnvoy(bc) {
|
|
|
2026
2226
|
case 6:
|
|
2027
2227
|
return { tag: "ToEnvoySqliteGetPagesResponse", val: readToEnvoySqliteGetPagesResponse(bc) };
|
|
2028
2228
|
case 7:
|
|
2029
|
-
return { tag: "
|
|
2229
|
+
return { tag: "ToEnvoySqliteGetPageRangeResponse", val: readToEnvoySqliteGetPageRangeResponse(bc) };
|
|
2030
2230
|
case 8:
|
|
2031
|
-
return { tag: "
|
|
2231
|
+
return { tag: "ToEnvoySqliteCommitResponse", val: readToEnvoySqliteCommitResponse(bc) };
|
|
2032
2232
|
case 9:
|
|
2033
|
-
return { tag: "
|
|
2233
|
+
return { tag: "ToEnvoySqliteCommitStageBeginResponse", val: readToEnvoySqliteCommitStageBeginResponse(bc) };
|
|
2034
2234
|
case 10:
|
|
2235
|
+
return { tag: "ToEnvoySqliteCommitStageResponse", val: readToEnvoySqliteCommitStageResponse(bc) };
|
|
2236
|
+
case 11:
|
|
2035
2237
|
return { tag: "ToEnvoySqliteCommitFinalizeResponse", val: readToEnvoySqliteCommitFinalizeResponse(bc) };
|
|
2238
|
+
case 12:
|
|
2239
|
+
return { tag: "ToEnvoySqlitePersistPreloadHintsResponse", val: readToEnvoySqlitePersistPreloadHintsResponse(bc) };
|
|
2036
2240
|
default: {
|
|
2037
2241
|
bc.offset = offset;
|
|
2038
2242
|
throw new bare.BareError(offset, "invalid tag");
|
|
@@ -2076,26 +2280,36 @@ function writeToEnvoy(bc, x) {
|
|
|
2076
2280
|
writeToEnvoySqliteGetPagesResponse(bc, x.val);
|
|
2077
2281
|
break;
|
|
2078
2282
|
}
|
|
2079
|
-
case "
|
|
2283
|
+
case "ToEnvoySqliteGetPageRangeResponse": {
|
|
2080
2284
|
bare.writeU8(bc, 7);
|
|
2285
|
+
writeToEnvoySqliteGetPageRangeResponse(bc, x.val);
|
|
2286
|
+
break;
|
|
2287
|
+
}
|
|
2288
|
+
case "ToEnvoySqliteCommitResponse": {
|
|
2289
|
+
bare.writeU8(bc, 8);
|
|
2081
2290
|
writeToEnvoySqliteCommitResponse(bc, x.val);
|
|
2082
2291
|
break;
|
|
2083
2292
|
}
|
|
2084
2293
|
case "ToEnvoySqliteCommitStageBeginResponse": {
|
|
2085
|
-
bare.writeU8(bc,
|
|
2294
|
+
bare.writeU8(bc, 9);
|
|
2086
2295
|
writeToEnvoySqliteCommitStageBeginResponse(bc, x.val);
|
|
2087
2296
|
break;
|
|
2088
2297
|
}
|
|
2089
2298
|
case "ToEnvoySqliteCommitStageResponse": {
|
|
2090
|
-
bare.writeU8(bc,
|
|
2299
|
+
bare.writeU8(bc, 10);
|
|
2091
2300
|
writeToEnvoySqliteCommitStageResponse(bc, x.val);
|
|
2092
2301
|
break;
|
|
2093
2302
|
}
|
|
2094
2303
|
case "ToEnvoySqliteCommitFinalizeResponse": {
|
|
2095
|
-
bare.writeU8(bc,
|
|
2304
|
+
bare.writeU8(bc, 11);
|
|
2096
2305
|
writeToEnvoySqliteCommitFinalizeResponse(bc, x.val);
|
|
2097
2306
|
break;
|
|
2098
2307
|
}
|
|
2308
|
+
case "ToEnvoySqlitePersistPreloadHintsResponse": {
|
|
2309
|
+
bare.writeU8(bc, 12);
|
|
2310
|
+
writeToEnvoySqlitePersistPreloadHintsResponse(bc, x.val);
|
|
2311
|
+
break;
|
|
2312
|
+
}
|
|
2099
2313
|
}
|
|
2100
2314
|
}
|
|
2101
2315
|
function encodeToEnvoy(x, config) {
|
|
@@ -2302,7 +2516,7 @@ function decodeToOutbound(bytes) {
|
|
|
2302
2516
|
function assert(condition, message) {
|
|
2303
2517
|
if (!condition) throw new Error(message ?? "Assertion failed");
|
|
2304
2518
|
}
|
|
2305
|
-
var VERSION =
|
|
2519
|
+
var VERSION = 3;
|
|
2306
2520
|
export {
|
|
2307
2521
|
StopActorReason,
|
|
2308
2522
|
StopCode,
|
|
@@ -2379,12 +2593,19 @@ export {
|
|
|
2379
2593
|
readSqliteFenceMismatch,
|
|
2380
2594
|
readSqliteFetchedPage,
|
|
2381
2595
|
readSqliteGeneration,
|
|
2596
|
+
readSqliteGetPageRangeOk,
|
|
2597
|
+
readSqliteGetPageRangeRequest,
|
|
2598
|
+
readSqliteGetPageRangeResponse,
|
|
2382
2599
|
readSqliteGetPagesOk,
|
|
2383
2600
|
readSqliteGetPagesRequest,
|
|
2384
2601
|
readSqliteGetPagesResponse,
|
|
2385
2602
|
readSqliteMeta,
|
|
2386
2603
|
readSqlitePageBytes,
|
|
2604
|
+
readSqlitePersistPreloadHintsRequest,
|
|
2605
|
+
readSqlitePersistPreloadHintsResponse,
|
|
2387
2606
|
readSqlitePgno,
|
|
2607
|
+
readSqlitePreloadHintRange,
|
|
2608
|
+
readSqlitePreloadHints,
|
|
2388
2609
|
readSqliteStageId,
|
|
2389
2610
|
readSqliteStageNotFound,
|
|
2390
2611
|
readSqliteStartupData,
|
|
@@ -2405,7 +2626,9 @@ export {
|
|
|
2405
2626
|
readToEnvoySqliteCommitResponse,
|
|
2406
2627
|
readToEnvoySqliteCommitStageBeginResponse,
|
|
2407
2628
|
readToEnvoySqliteCommitStageResponse,
|
|
2629
|
+
readToEnvoySqliteGetPageRangeResponse,
|
|
2408
2630
|
readToEnvoySqliteGetPagesResponse,
|
|
2631
|
+
readToEnvoySqlitePersistPreloadHintsResponse,
|
|
2409
2632
|
readToEnvoyTunnelMessage,
|
|
2410
2633
|
readToEnvoyTunnelMessageKind,
|
|
2411
2634
|
readToEnvoyWebSocketClose,
|
|
@@ -2427,7 +2650,9 @@ export {
|
|
|
2427
2650
|
readToRivetSqliteCommitRequest,
|
|
2428
2651
|
readToRivetSqliteCommitStageBeginRequest,
|
|
2429
2652
|
readToRivetSqliteCommitStageRequest,
|
|
2653
|
+
readToRivetSqliteGetPageRangeRequest,
|
|
2430
2654
|
readToRivetSqliteGetPagesRequest,
|
|
2655
|
+
readToRivetSqlitePersistPreloadHintsRequest,
|
|
2431
2656
|
readToRivetTunnelMessage,
|
|
2432
2657
|
readToRivetTunnelMessageKind,
|
|
2433
2658
|
readToRivetWebSocketClose,
|
|
@@ -2494,12 +2719,19 @@ export {
|
|
|
2494
2719
|
writeSqliteFenceMismatch,
|
|
2495
2720
|
writeSqliteFetchedPage,
|
|
2496
2721
|
writeSqliteGeneration,
|
|
2722
|
+
writeSqliteGetPageRangeOk,
|
|
2723
|
+
writeSqliteGetPageRangeRequest,
|
|
2724
|
+
writeSqliteGetPageRangeResponse,
|
|
2497
2725
|
writeSqliteGetPagesOk,
|
|
2498
2726
|
writeSqliteGetPagesRequest,
|
|
2499
2727
|
writeSqliteGetPagesResponse,
|
|
2500
2728
|
writeSqliteMeta,
|
|
2501
2729
|
writeSqlitePageBytes,
|
|
2730
|
+
writeSqlitePersistPreloadHintsRequest,
|
|
2731
|
+
writeSqlitePersistPreloadHintsResponse,
|
|
2502
2732
|
writeSqlitePgno,
|
|
2733
|
+
writeSqlitePreloadHintRange,
|
|
2734
|
+
writeSqlitePreloadHints,
|
|
2503
2735
|
writeSqliteStageId,
|
|
2504
2736
|
writeSqliteStageNotFound,
|
|
2505
2737
|
writeSqliteStartupData,
|
|
@@ -2520,7 +2752,9 @@ export {
|
|
|
2520
2752
|
writeToEnvoySqliteCommitResponse,
|
|
2521
2753
|
writeToEnvoySqliteCommitStageBeginResponse,
|
|
2522
2754
|
writeToEnvoySqliteCommitStageResponse,
|
|
2755
|
+
writeToEnvoySqliteGetPageRangeResponse,
|
|
2523
2756
|
writeToEnvoySqliteGetPagesResponse,
|
|
2757
|
+
writeToEnvoySqlitePersistPreloadHintsResponse,
|
|
2524
2758
|
writeToEnvoyTunnelMessage,
|
|
2525
2759
|
writeToEnvoyTunnelMessageKind,
|
|
2526
2760
|
writeToEnvoyWebSocketClose,
|
|
@@ -2542,7 +2776,9 @@ export {
|
|
|
2542
2776
|
writeToRivetSqliteCommitRequest,
|
|
2543
2777
|
writeToRivetSqliteCommitStageBeginRequest,
|
|
2544
2778
|
writeToRivetSqliteCommitStageRequest,
|
|
2779
|
+
writeToRivetSqliteGetPageRangeRequest,
|
|
2545
2780
|
writeToRivetSqliteGetPagesRequest,
|
|
2781
|
+
writeToRivetSqlitePersistPreloadHintsRequest,
|
|
2546
2782
|
writeToRivetTunnelMessage,
|
|
2547
2783
|
writeToRivetTunnelMessageKind,
|
|
2548
2784
|
writeToRivetWebSocketClose,
|