@rivetkit/engine-envoy-protocol 0.0.0-pr.4673.1370953 → 0.0.0-pr.4673.33edc3b
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 +64 -6
- package/dist/index.js +151 -16
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -223,12 +223,20 @@ type SqliteGetPagesOk = {
|
|
|
223
223
|
};
|
|
224
224
|
declare function readSqliteGetPagesOk(bc: bare.ByteCursor): SqliteGetPagesOk;
|
|
225
225
|
declare function writeSqliteGetPagesOk(bc: bare.ByteCursor, x: SqliteGetPagesOk): void;
|
|
226
|
+
type SqliteErrorResponse = {
|
|
227
|
+
readonly message: string;
|
|
228
|
+
};
|
|
229
|
+
declare function readSqliteErrorResponse(bc: bare.ByteCursor): SqliteErrorResponse;
|
|
230
|
+
declare function writeSqliteErrorResponse(bc: bare.ByteCursor, x: SqliteErrorResponse): void;
|
|
226
231
|
type SqliteGetPagesResponse = {
|
|
227
232
|
readonly tag: "SqliteGetPagesOk";
|
|
228
233
|
readonly val: SqliteGetPagesOk;
|
|
229
234
|
} | {
|
|
230
235
|
readonly tag: "SqliteFenceMismatch";
|
|
231
236
|
readonly val: SqliteFenceMismatch;
|
|
237
|
+
} | {
|
|
238
|
+
readonly tag: "SqliteErrorResponse";
|
|
239
|
+
readonly val: SqliteErrorResponse;
|
|
232
240
|
};
|
|
233
241
|
declare function readSqliteGetPagesResponse(bc: bare.ByteCursor): SqliteGetPagesResponse;
|
|
234
242
|
declare function writeSqliteGetPagesResponse(bc: bare.ByteCursor, x: SqliteGetPagesResponse): void;
|
|
@@ -262,21 +270,47 @@ type SqliteCommitResponse = {
|
|
|
262
270
|
} | {
|
|
263
271
|
readonly tag: "SqliteCommitTooLarge";
|
|
264
272
|
readonly val: SqliteCommitTooLarge;
|
|
273
|
+
} | {
|
|
274
|
+
readonly tag: "SqliteErrorResponse";
|
|
275
|
+
readonly val: SqliteErrorResponse;
|
|
265
276
|
};
|
|
266
277
|
declare function readSqliteCommitResponse(bc: bare.ByteCursor): SqliteCommitResponse;
|
|
267
278
|
declare function writeSqliteCommitResponse(bc: bare.ByteCursor, x: SqliteCommitResponse): void;
|
|
279
|
+
type SqliteCommitStageBeginRequest = {
|
|
280
|
+
readonly actorId: Id;
|
|
281
|
+
readonly generation: SqliteGeneration;
|
|
282
|
+
};
|
|
283
|
+
declare function readSqliteCommitStageBeginRequest(bc: bare.ByteCursor): SqliteCommitStageBeginRequest;
|
|
284
|
+
declare function writeSqliteCommitStageBeginRequest(bc: bare.ByteCursor, x: SqliteCommitStageBeginRequest): void;
|
|
285
|
+
type SqliteCommitStageBeginOk = {
|
|
286
|
+
readonly txid: SqliteTxid;
|
|
287
|
+
};
|
|
288
|
+
declare function readSqliteCommitStageBeginOk(bc: bare.ByteCursor): SqliteCommitStageBeginOk;
|
|
289
|
+
declare function writeSqliteCommitStageBeginOk(bc: bare.ByteCursor, x: SqliteCommitStageBeginOk): void;
|
|
290
|
+
type SqliteCommitStageBeginResponse = {
|
|
291
|
+
readonly tag: "SqliteCommitStageBeginOk";
|
|
292
|
+
readonly val: SqliteCommitStageBeginOk;
|
|
293
|
+
} | {
|
|
294
|
+
readonly tag: "SqliteFenceMismatch";
|
|
295
|
+
readonly val: SqliteFenceMismatch;
|
|
296
|
+
} | {
|
|
297
|
+
readonly tag: "SqliteErrorResponse";
|
|
298
|
+
readonly val: SqliteErrorResponse;
|
|
299
|
+
};
|
|
300
|
+
declare function readSqliteCommitStageBeginResponse(bc: bare.ByteCursor): SqliteCommitStageBeginResponse;
|
|
301
|
+
declare function writeSqliteCommitStageBeginResponse(bc: bare.ByteCursor, x: SqliteCommitStageBeginResponse): void;
|
|
268
302
|
type SqliteCommitStageRequest = {
|
|
269
303
|
readonly actorId: Id;
|
|
270
304
|
readonly generation: SqliteGeneration;
|
|
271
|
-
readonly
|
|
272
|
-
readonly chunkIdx:
|
|
273
|
-
readonly
|
|
305
|
+
readonly txid: SqliteTxid;
|
|
306
|
+
readonly chunkIdx: u32;
|
|
307
|
+
readonly bytes: ArrayBuffer;
|
|
274
308
|
readonly isLast: boolean;
|
|
275
309
|
};
|
|
276
310
|
declare function readSqliteCommitStageRequest(bc: bare.ByteCursor): SqliteCommitStageRequest;
|
|
277
311
|
declare function writeSqliteCommitStageRequest(bc: bare.ByteCursor, x: SqliteCommitStageRequest): void;
|
|
278
312
|
type SqliteCommitStageOk = {
|
|
279
|
-
readonly chunkIdxCommitted:
|
|
313
|
+
readonly chunkIdxCommitted: u32;
|
|
280
314
|
};
|
|
281
315
|
declare function readSqliteCommitStageOk(bc: bare.ByteCursor): SqliteCommitStageOk;
|
|
282
316
|
declare function writeSqliteCommitStageOk(bc: bare.ByteCursor, x: SqliteCommitStageOk): void;
|
|
@@ -286,6 +320,9 @@ type SqliteCommitStageResponse = {
|
|
|
286
320
|
} | {
|
|
287
321
|
readonly tag: "SqliteFenceMismatch";
|
|
288
322
|
readonly val: SqliteFenceMismatch;
|
|
323
|
+
} | {
|
|
324
|
+
readonly tag: "SqliteErrorResponse";
|
|
325
|
+
readonly val: SqliteErrorResponse;
|
|
289
326
|
};
|
|
290
327
|
declare function readSqliteCommitStageResponse(bc: bare.ByteCursor): SqliteCommitStageResponse;
|
|
291
328
|
declare function writeSqliteCommitStageResponse(bc: bare.ByteCursor, x: SqliteCommitStageResponse): void;
|
|
@@ -293,7 +330,7 @@ type SqliteCommitFinalizeRequest = {
|
|
|
293
330
|
readonly actorId: Id;
|
|
294
331
|
readonly generation: SqliteGeneration;
|
|
295
332
|
readonly expectedHeadTxid: SqliteTxid;
|
|
296
|
-
readonly
|
|
333
|
+
readonly txid: SqliteTxid;
|
|
297
334
|
readonly newDbSizePages: u32;
|
|
298
335
|
};
|
|
299
336
|
declare function readSqliteCommitFinalizeRequest(bc: bare.ByteCursor): SqliteCommitFinalizeRequest;
|
|
@@ -318,6 +355,9 @@ type SqliteCommitFinalizeResponse = {
|
|
|
318
355
|
} | {
|
|
319
356
|
readonly tag: "SqliteStageNotFound";
|
|
320
357
|
readonly val: SqliteStageNotFound;
|
|
358
|
+
} | {
|
|
359
|
+
readonly tag: "SqliteErrorResponse";
|
|
360
|
+
readonly val: SqliteErrorResponse;
|
|
321
361
|
};
|
|
322
362
|
declare function readSqliteCommitFinalizeResponse(bc: bare.ByteCursor): SqliteCommitFinalizeResponse;
|
|
323
363
|
declare function writeSqliteCommitFinalizeResponse(bc: bare.ByteCursor, x: SqliteCommitFinalizeResponse): void;
|
|
@@ -720,6 +760,12 @@ type ToRivetSqliteCommitRequest = {
|
|
|
720
760
|
};
|
|
721
761
|
declare function readToRivetSqliteCommitRequest(bc: bare.ByteCursor): ToRivetSqliteCommitRequest;
|
|
722
762
|
declare function writeToRivetSqliteCommitRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitRequest): void;
|
|
763
|
+
type ToRivetSqliteCommitStageBeginRequest = {
|
|
764
|
+
readonly requestId: u32;
|
|
765
|
+
readonly data: SqliteCommitStageBeginRequest;
|
|
766
|
+
};
|
|
767
|
+
declare function readToRivetSqliteCommitStageBeginRequest(bc: bare.ByteCursor): ToRivetSqliteCommitStageBeginRequest;
|
|
768
|
+
declare function writeToRivetSqliteCommitStageBeginRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitStageBeginRequest): void;
|
|
723
769
|
type ToRivetSqliteCommitStageRequest = {
|
|
724
770
|
readonly requestId: u32;
|
|
725
771
|
readonly data: SqliteCommitStageRequest;
|
|
@@ -759,6 +805,9 @@ type ToRivet = {
|
|
|
759
805
|
} | {
|
|
760
806
|
readonly tag: "ToRivetSqliteCommitRequest";
|
|
761
807
|
readonly val: ToRivetSqliteCommitRequest;
|
|
808
|
+
} | {
|
|
809
|
+
readonly tag: "ToRivetSqliteCommitStageBeginRequest";
|
|
810
|
+
readonly val: ToRivetSqliteCommitStageBeginRequest;
|
|
762
811
|
} | {
|
|
763
812
|
readonly tag: "ToRivetSqliteCommitStageRequest";
|
|
764
813
|
readonly val: ToRivetSqliteCommitStageRequest;
|
|
@@ -811,6 +860,12 @@ type ToEnvoySqliteCommitResponse = {
|
|
|
811
860
|
};
|
|
812
861
|
declare function readToEnvoySqliteCommitResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitResponse;
|
|
813
862
|
declare function writeToEnvoySqliteCommitResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitResponse): void;
|
|
863
|
+
type ToEnvoySqliteCommitStageBeginResponse = {
|
|
864
|
+
readonly requestId: u32;
|
|
865
|
+
readonly data: SqliteCommitStageBeginResponse;
|
|
866
|
+
};
|
|
867
|
+
declare function readToEnvoySqliteCommitStageBeginResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitStageBeginResponse;
|
|
868
|
+
declare function writeToEnvoySqliteCommitStageBeginResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitStageBeginResponse): void;
|
|
814
869
|
type ToEnvoySqliteCommitStageResponse = {
|
|
815
870
|
readonly requestId: u32;
|
|
816
871
|
readonly data: SqliteCommitStageResponse;
|
|
@@ -847,6 +902,9 @@ type ToEnvoy = {
|
|
|
847
902
|
} | {
|
|
848
903
|
readonly tag: "ToEnvoySqliteCommitResponse";
|
|
849
904
|
readonly val: ToEnvoySqliteCommitResponse;
|
|
905
|
+
} | {
|
|
906
|
+
readonly tag: "ToEnvoySqliteCommitStageBeginResponse";
|
|
907
|
+
readonly val: ToEnvoySqliteCommitStageBeginResponse;
|
|
850
908
|
} | {
|
|
851
909
|
readonly tag: "ToEnvoySqliteCommitStageResponse";
|
|
852
910
|
readonly val: ToEnvoySqliteCommitStageResponse;
|
|
@@ -930,4 +988,4 @@ declare function encodeToOutbound(x: ToOutbound, config?: Partial<bare.Config>):
|
|
|
930
988
|
declare function decodeToOutbound(bytes: Uint8Array): ToOutbound;
|
|
931
989
|
declare const VERSION = 2;
|
|
932
990
|
|
|
933
|
-
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 SqliteCommitStageOk, type SqliteCommitStageRequest, type SqliteCommitStageResponse, type SqliteCommitTooLarge, type SqliteDirtyPage, 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 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 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, readSqliteCommitStageOk, readSqliteCommitStageRequest, readSqliteCommitStageResponse, readSqliteCommitTooLarge, readSqliteDirtyPage, 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, readToEnvoySqliteCommitStageResponse, readToEnvoySqliteGetPagesResponse, readToEnvoyTunnelMessage, readToEnvoyTunnelMessageKind, readToEnvoyWebSocketClose, readToEnvoyWebSocketMessage, readToEnvoyWebSocketOpen, readToGateway, readToGatewayPong, readToOutbound, readToOutboundActorStart, readToRivet, readToRivetAckCommands, readToRivetEvents, readToRivetKvRequest, readToRivetMetadata, readToRivetPong, readToRivetResponseChunk, readToRivetResponseStart, readToRivetSqliteCommitFinalizeRequest, readToRivetSqliteCommitRequest, 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, writeSqliteCommitStageOk, writeSqliteCommitStageRequest, writeSqliteCommitStageResponse, writeSqliteCommitTooLarge, writeSqliteDirtyPage, 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, writeToEnvoySqliteCommitStageResponse, writeToEnvoySqliteGetPagesResponse, writeToEnvoyTunnelMessage, writeToEnvoyTunnelMessageKind, writeToEnvoyWebSocketClose, writeToEnvoyWebSocketMessage, writeToEnvoyWebSocketOpen, writeToGateway, writeToGatewayPong, writeToOutbound, writeToOutboundActorStart, writeToRivet, writeToRivetAckCommands, writeToRivetEvents, writeToRivetKvRequest, writeToRivetMetadata, writeToRivetPong, writeToRivetResponseChunk, writeToRivetResponseStart, writeToRivetSqliteCommitFinalizeRequest, writeToRivetSqliteCommitRequest, writeToRivetSqliteCommitStageRequest, writeToRivetSqliteGetPagesRequest, writeToRivetTunnelMessage, writeToRivetTunnelMessageKind, writeToRivetWebSocketClose, writeToRivetWebSocketMessage, writeToRivetWebSocketMessageAck, writeToRivetWebSocketOpen };
|
|
991
|
+
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 };
|
package/dist/index.js
CHANGED
|
@@ -513,6 +513,14 @@ function writeSqliteGetPagesOk(bc, x) {
|
|
|
513
513
|
write7(bc, x.pages);
|
|
514
514
|
writeSqliteMeta(bc, x.meta);
|
|
515
515
|
}
|
|
516
|
+
function readSqliteErrorResponse(bc) {
|
|
517
|
+
return {
|
|
518
|
+
message: bare.readString(bc)
|
|
519
|
+
};
|
|
520
|
+
}
|
|
521
|
+
function writeSqliteErrorResponse(bc, x) {
|
|
522
|
+
bare.writeString(bc, x.message);
|
|
523
|
+
}
|
|
516
524
|
function readSqliteGetPagesResponse(bc) {
|
|
517
525
|
const offset = bc.offset;
|
|
518
526
|
const tag = bare.readU8(bc);
|
|
@@ -521,6 +529,8 @@ function readSqliteGetPagesResponse(bc) {
|
|
|
521
529
|
return { tag: "SqliteGetPagesOk", val: readSqliteGetPagesOk(bc) };
|
|
522
530
|
case 1:
|
|
523
531
|
return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
|
|
532
|
+
case 2:
|
|
533
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
524
534
|
default: {
|
|
525
535
|
bc.offset = offset;
|
|
526
536
|
throw new bare.BareError(offset, "invalid tag");
|
|
@@ -539,6 +549,11 @@ function writeSqliteGetPagesResponse(bc, x) {
|
|
|
539
549
|
writeSqliteFenceMismatch(bc, x.val);
|
|
540
550
|
break;
|
|
541
551
|
}
|
|
552
|
+
case "SqliteErrorResponse": {
|
|
553
|
+
bare.writeU8(bc, 2);
|
|
554
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
555
|
+
break;
|
|
556
|
+
}
|
|
542
557
|
}
|
|
543
558
|
}
|
|
544
559
|
function read8(bc) {
|
|
@@ -604,6 +619,8 @@ function readSqliteCommitResponse(bc) {
|
|
|
604
619
|
return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
|
|
605
620
|
case 2:
|
|
606
621
|
return { tag: "SqliteCommitTooLarge", val: readSqliteCommitTooLarge(bc) };
|
|
622
|
+
case 3:
|
|
623
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
607
624
|
default: {
|
|
608
625
|
bc.offset = offset;
|
|
609
626
|
throw new bare.BareError(offset, "invalid tag");
|
|
@@ -627,33 +644,91 @@ function writeSqliteCommitResponse(bc, x) {
|
|
|
627
644
|
writeSqliteCommitTooLarge(bc, x.val);
|
|
628
645
|
break;
|
|
629
646
|
}
|
|
647
|
+
case "SqliteErrorResponse": {
|
|
648
|
+
bare.writeU8(bc, 3);
|
|
649
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
650
|
+
break;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
function readSqliteCommitStageBeginRequest(bc) {
|
|
655
|
+
return {
|
|
656
|
+
actorId: readId(bc),
|
|
657
|
+
generation: readSqliteGeneration(bc)
|
|
658
|
+
};
|
|
659
|
+
}
|
|
660
|
+
function writeSqliteCommitStageBeginRequest(bc, x) {
|
|
661
|
+
writeId(bc, x.actorId);
|
|
662
|
+
writeSqliteGeneration(bc, x.generation);
|
|
663
|
+
}
|
|
664
|
+
function readSqliteCommitStageBeginOk(bc) {
|
|
665
|
+
return {
|
|
666
|
+
txid: readSqliteTxid(bc)
|
|
667
|
+
};
|
|
668
|
+
}
|
|
669
|
+
function writeSqliteCommitStageBeginOk(bc, x) {
|
|
670
|
+
writeSqliteTxid(bc, x.txid);
|
|
671
|
+
}
|
|
672
|
+
function readSqliteCommitStageBeginResponse(bc) {
|
|
673
|
+
const offset = bc.offset;
|
|
674
|
+
const tag = bare.readU8(bc);
|
|
675
|
+
switch (tag) {
|
|
676
|
+
case 0:
|
|
677
|
+
return { tag: "SqliteCommitStageBeginOk", val: readSqliteCommitStageBeginOk(bc) };
|
|
678
|
+
case 1:
|
|
679
|
+
return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
|
|
680
|
+
case 2:
|
|
681
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
682
|
+
default: {
|
|
683
|
+
bc.offset = offset;
|
|
684
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
function writeSqliteCommitStageBeginResponse(bc, x) {
|
|
689
|
+
switch (x.tag) {
|
|
690
|
+
case "SqliteCommitStageBeginOk": {
|
|
691
|
+
bare.writeU8(bc, 0);
|
|
692
|
+
writeSqliteCommitStageBeginOk(bc, x.val);
|
|
693
|
+
break;
|
|
694
|
+
}
|
|
695
|
+
case "SqliteFenceMismatch": {
|
|
696
|
+
bare.writeU8(bc, 1);
|
|
697
|
+
writeSqliteFenceMismatch(bc, x.val);
|
|
698
|
+
break;
|
|
699
|
+
}
|
|
700
|
+
case "SqliteErrorResponse": {
|
|
701
|
+
bare.writeU8(bc, 2);
|
|
702
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
703
|
+
break;
|
|
704
|
+
}
|
|
630
705
|
}
|
|
631
706
|
}
|
|
632
707
|
function readSqliteCommitStageRequest(bc) {
|
|
633
708
|
return {
|
|
634
709
|
actorId: readId(bc),
|
|
635
710
|
generation: readSqliteGeneration(bc),
|
|
636
|
-
|
|
637
|
-
chunkIdx: bare.
|
|
638
|
-
|
|
711
|
+
txid: readSqliteTxid(bc),
|
|
712
|
+
chunkIdx: bare.readU32(bc),
|
|
713
|
+
bytes: bare.readData(bc),
|
|
639
714
|
isLast: bare.readBool(bc)
|
|
640
715
|
};
|
|
641
716
|
}
|
|
642
717
|
function writeSqliteCommitStageRequest(bc, x) {
|
|
643
718
|
writeId(bc, x.actorId);
|
|
644
719
|
writeSqliteGeneration(bc, x.generation);
|
|
645
|
-
|
|
646
|
-
bare.
|
|
647
|
-
|
|
720
|
+
writeSqliteTxid(bc, x.txid);
|
|
721
|
+
bare.writeU32(bc, x.chunkIdx);
|
|
722
|
+
bare.writeData(bc, x.bytes);
|
|
648
723
|
bare.writeBool(bc, x.isLast);
|
|
649
724
|
}
|
|
650
725
|
function readSqliteCommitStageOk(bc) {
|
|
651
726
|
return {
|
|
652
|
-
chunkIdxCommitted: bare.
|
|
727
|
+
chunkIdxCommitted: bare.readU32(bc)
|
|
653
728
|
};
|
|
654
729
|
}
|
|
655
730
|
function writeSqliteCommitStageOk(bc, x) {
|
|
656
|
-
bare.
|
|
731
|
+
bare.writeU32(bc, x.chunkIdxCommitted);
|
|
657
732
|
}
|
|
658
733
|
function readSqliteCommitStageResponse(bc) {
|
|
659
734
|
const offset = bc.offset;
|
|
@@ -663,6 +738,8 @@ function readSqliteCommitStageResponse(bc) {
|
|
|
663
738
|
return { tag: "SqliteCommitStageOk", val: readSqliteCommitStageOk(bc) };
|
|
664
739
|
case 1:
|
|
665
740
|
return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
|
|
741
|
+
case 2:
|
|
742
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
666
743
|
default: {
|
|
667
744
|
bc.offset = offset;
|
|
668
745
|
throw new bare.BareError(offset, "invalid tag");
|
|
@@ -681,6 +758,11 @@ function writeSqliteCommitStageResponse(bc, x) {
|
|
|
681
758
|
writeSqliteFenceMismatch(bc, x.val);
|
|
682
759
|
break;
|
|
683
760
|
}
|
|
761
|
+
case "SqliteErrorResponse": {
|
|
762
|
+
bare.writeU8(bc, 2);
|
|
763
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
764
|
+
break;
|
|
765
|
+
}
|
|
684
766
|
}
|
|
685
767
|
}
|
|
686
768
|
function readSqliteCommitFinalizeRequest(bc) {
|
|
@@ -688,7 +770,7 @@ function readSqliteCommitFinalizeRequest(bc) {
|
|
|
688
770
|
actorId: readId(bc),
|
|
689
771
|
generation: readSqliteGeneration(bc),
|
|
690
772
|
expectedHeadTxid: readSqliteTxid(bc),
|
|
691
|
-
|
|
773
|
+
txid: readSqliteTxid(bc),
|
|
692
774
|
newDbSizePages: bare.readU32(bc)
|
|
693
775
|
};
|
|
694
776
|
}
|
|
@@ -696,7 +778,7 @@ function writeSqliteCommitFinalizeRequest(bc, x) {
|
|
|
696
778
|
writeId(bc, x.actorId);
|
|
697
779
|
writeSqliteGeneration(bc, x.generation);
|
|
698
780
|
writeSqliteTxid(bc, x.expectedHeadTxid);
|
|
699
|
-
|
|
781
|
+
writeSqliteTxid(bc, x.txid);
|
|
700
782
|
bare.writeU32(bc, x.newDbSizePages);
|
|
701
783
|
}
|
|
702
784
|
function readSqliteCommitFinalizeOk(bc) {
|
|
@@ -727,6 +809,8 @@ function readSqliteCommitFinalizeResponse(bc) {
|
|
|
727
809
|
return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
|
|
728
810
|
case 2:
|
|
729
811
|
return { tag: "SqliteStageNotFound", val: readSqliteStageNotFound(bc) };
|
|
812
|
+
case 3:
|
|
813
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
730
814
|
default: {
|
|
731
815
|
bc.offset = offset;
|
|
732
816
|
throw new bare.BareError(offset, "invalid tag");
|
|
@@ -750,6 +834,11 @@ function writeSqliteCommitFinalizeResponse(bc, x) {
|
|
|
750
834
|
writeSqliteStageNotFound(bc, x.val);
|
|
751
835
|
break;
|
|
752
836
|
}
|
|
837
|
+
case "SqliteErrorResponse": {
|
|
838
|
+
bare.writeU8(bc, 3);
|
|
839
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
840
|
+
break;
|
|
841
|
+
}
|
|
753
842
|
}
|
|
754
843
|
}
|
|
755
844
|
function readSqliteStartupData(bc) {
|
|
@@ -1673,6 +1762,16 @@ function writeToRivetSqliteCommitRequest(bc, x) {
|
|
|
1673
1762
|
bare.writeU32(bc, x.requestId);
|
|
1674
1763
|
writeSqliteCommitRequest(bc, x.data);
|
|
1675
1764
|
}
|
|
1765
|
+
function readToRivetSqliteCommitStageBeginRequest(bc) {
|
|
1766
|
+
return {
|
|
1767
|
+
requestId: bare.readU32(bc),
|
|
1768
|
+
data: readSqliteCommitStageBeginRequest(bc)
|
|
1769
|
+
};
|
|
1770
|
+
}
|
|
1771
|
+
function writeToRivetSqliteCommitStageBeginRequest(bc, x) {
|
|
1772
|
+
bare.writeU32(bc, x.requestId);
|
|
1773
|
+
writeSqliteCommitStageBeginRequest(bc, x.data);
|
|
1774
|
+
}
|
|
1676
1775
|
function readToRivetSqliteCommitStageRequest(bc) {
|
|
1677
1776
|
return {
|
|
1678
1777
|
requestId: bare.readU32(bc),
|
|
@@ -1716,8 +1815,10 @@ function readToRivet(bc) {
|
|
|
1716
1815
|
case 8:
|
|
1717
1816
|
return { tag: "ToRivetSqliteCommitRequest", val: readToRivetSqliteCommitRequest(bc) };
|
|
1718
1817
|
case 9:
|
|
1719
|
-
return { tag: "
|
|
1818
|
+
return { tag: "ToRivetSqliteCommitStageBeginRequest", val: readToRivetSqliteCommitStageBeginRequest(bc) };
|
|
1720
1819
|
case 10:
|
|
1820
|
+
return { tag: "ToRivetSqliteCommitStageRequest", val: readToRivetSqliteCommitStageRequest(bc) };
|
|
1821
|
+
case 11:
|
|
1721
1822
|
return { tag: "ToRivetSqliteCommitFinalizeRequest", val: readToRivetSqliteCommitFinalizeRequest(bc) };
|
|
1722
1823
|
default: {
|
|
1723
1824
|
bc.offset = offset;
|
|
@@ -1771,13 +1872,18 @@ function writeToRivet(bc, x) {
|
|
|
1771
1872
|
writeToRivetSqliteCommitRequest(bc, x.val);
|
|
1772
1873
|
break;
|
|
1773
1874
|
}
|
|
1774
|
-
case "
|
|
1875
|
+
case "ToRivetSqliteCommitStageBeginRequest": {
|
|
1775
1876
|
bare.writeU8(bc, 9);
|
|
1877
|
+
writeToRivetSqliteCommitStageBeginRequest(bc, x.val);
|
|
1878
|
+
break;
|
|
1879
|
+
}
|
|
1880
|
+
case "ToRivetSqliteCommitStageRequest": {
|
|
1881
|
+
bare.writeU8(bc, 10);
|
|
1776
1882
|
writeToRivetSqliteCommitStageRequest(bc, x.val);
|
|
1777
1883
|
break;
|
|
1778
1884
|
}
|
|
1779
1885
|
case "ToRivetSqliteCommitFinalizeRequest": {
|
|
1780
|
-
bare.writeU8(bc,
|
|
1886
|
+
bare.writeU8(bc, 11);
|
|
1781
1887
|
writeToRivetSqliteCommitFinalizeRequest(bc, x.val);
|
|
1782
1888
|
break;
|
|
1783
1889
|
}
|
|
@@ -1875,6 +1981,16 @@ function writeToEnvoySqliteCommitResponse(bc, x) {
|
|
|
1875
1981
|
bare.writeU32(bc, x.requestId);
|
|
1876
1982
|
writeSqliteCommitResponse(bc, x.data);
|
|
1877
1983
|
}
|
|
1984
|
+
function readToEnvoySqliteCommitStageBeginResponse(bc) {
|
|
1985
|
+
return {
|
|
1986
|
+
requestId: bare.readU32(bc),
|
|
1987
|
+
data: readSqliteCommitStageBeginResponse(bc)
|
|
1988
|
+
};
|
|
1989
|
+
}
|
|
1990
|
+
function writeToEnvoySqliteCommitStageBeginResponse(bc, x) {
|
|
1991
|
+
bare.writeU32(bc, x.requestId);
|
|
1992
|
+
writeSqliteCommitStageBeginResponse(bc, x.data);
|
|
1993
|
+
}
|
|
1878
1994
|
function readToEnvoySqliteCommitStageResponse(bc) {
|
|
1879
1995
|
return {
|
|
1880
1996
|
requestId: bare.readU32(bc),
|
|
@@ -1916,8 +2032,10 @@ function readToEnvoy(bc) {
|
|
|
1916
2032
|
case 7:
|
|
1917
2033
|
return { tag: "ToEnvoySqliteCommitResponse", val: readToEnvoySqliteCommitResponse(bc) };
|
|
1918
2034
|
case 8:
|
|
1919
|
-
return { tag: "
|
|
2035
|
+
return { tag: "ToEnvoySqliteCommitStageBeginResponse", val: readToEnvoySqliteCommitStageBeginResponse(bc) };
|
|
1920
2036
|
case 9:
|
|
2037
|
+
return { tag: "ToEnvoySqliteCommitStageResponse", val: readToEnvoySqliteCommitStageResponse(bc) };
|
|
2038
|
+
case 10:
|
|
1921
2039
|
return { tag: "ToEnvoySqliteCommitFinalizeResponse", val: readToEnvoySqliteCommitFinalizeResponse(bc) };
|
|
1922
2040
|
default: {
|
|
1923
2041
|
bc.offset = offset;
|
|
@@ -1967,13 +2085,18 @@ function writeToEnvoy(bc, x) {
|
|
|
1967
2085
|
writeToEnvoySqliteCommitResponse(bc, x.val);
|
|
1968
2086
|
break;
|
|
1969
2087
|
}
|
|
1970
|
-
case "
|
|
2088
|
+
case "ToEnvoySqliteCommitStageBeginResponse": {
|
|
1971
2089
|
bare.writeU8(bc, 8);
|
|
2090
|
+
writeToEnvoySqliteCommitStageBeginResponse(bc, x.val);
|
|
2091
|
+
break;
|
|
2092
|
+
}
|
|
2093
|
+
case "ToEnvoySqliteCommitStageResponse": {
|
|
2094
|
+
bare.writeU8(bc, 9);
|
|
1972
2095
|
writeToEnvoySqliteCommitStageResponse(bc, x.val);
|
|
1973
2096
|
break;
|
|
1974
2097
|
}
|
|
1975
2098
|
case "ToEnvoySqliteCommitFinalizeResponse": {
|
|
1976
|
-
bare.writeU8(bc,
|
|
2099
|
+
bare.writeU8(bc, 10);
|
|
1977
2100
|
writeToEnvoySqliteCommitFinalizeResponse(bc, x.val);
|
|
1978
2101
|
break;
|
|
1979
2102
|
}
|
|
@@ -2248,11 +2371,15 @@ export {
|
|
|
2248
2371
|
readSqliteCommitOk,
|
|
2249
2372
|
readSqliteCommitRequest,
|
|
2250
2373
|
readSqliteCommitResponse,
|
|
2374
|
+
readSqliteCommitStageBeginOk,
|
|
2375
|
+
readSqliteCommitStageBeginRequest,
|
|
2376
|
+
readSqliteCommitStageBeginResponse,
|
|
2251
2377
|
readSqliteCommitStageOk,
|
|
2252
2378
|
readSqliteCommitStageRequest,
|
|
2253
2379
|
readSqliteCommitStageResponse,
|
|
2254
2380
|
readSqliteCommitTooLarge,
|
|
2255
2381
|
readSqliteDirtyPage,
|
|
2382
|
+
readSqliteErrorResponse,
|
|
2256
2383
|
readSqliteFenceMismatch,
|
|
2257
2384
|
readSqliteFetchedPage,
|
|
2258
2385
|
readSqliteGeneration,
|
|
@@ -2280,6 +2407,7 @@ export {
|
|
|
2280
2407
|
readToEnvoyRequestStart,
|
|
2281
2408
|
readToEnvoySqliteCommitFinalizeResponse,
|
|
2282
2409
|
readToEnvoySqliteCommitResponse,
|
|
2410
|
+
readToEnvoySqliteCommitStageBeginResponse,
|
|
2283
2411
|
readToEnvoySqliteCommitStageResponse,
|
|
2284
2412
|
readToEnvoySqliteGetPagesResponse,
|
|
2285
2413
|
readToEnvoyTunnelMessage,
|
|
@@ -2301,6 +2429,7 @@ export {
|
|
|
2301
2429
|
readToRivetResponseStart,
|
|
2302
2430
|
readToRivetSqliteCommitFinalizeRequest,
|
|
2303
2431
|
readToRivetSqliteCommitRequest,
|
|
2432
|
+
readToRivetSqliteCommitStageBeginRequest,
|
|
2304
2433
|
readToRivetSqliteCommitStageRequest,
|
|
2305
2434
|
readToRivetSqliteGetPagesRequest,
|
|
2306
2435
|
readToRivetTunnelMessage,
|
|
@@ -2357,11 +2486,15 @@ export {
|
|
|
2357
2486
|
writeSqliteCommitOk,
|
|
2358
2487
|
writeSqliteCommitRequest,
|
|
2359
2488
|
writeSqliteCommitResponse,
|
|
2489
|
+
writeSqliteCommitStageBeginOk,
|
|
2490
|
+
writeSqliteCommitStageBeginRequest,
|
|
2491
|
+
writeSqliteCommitStageBeginResponse,
|
|
2360
2492
|
writeSqliteCommitStageOk,
|
|
2361
2493
|
writeSqliteCommitStageRequest,
|
|
2362
2494
|
writeSqliteCommitStageResponse,
|
|
2363
2495
|
writeSqliteCommitTooLarge,
|
|
2364
2496
|
writeSqliteDirtyPage,
|
|
2497
|
+
writeSqliteErrorResponse,
|
|
2365
2498
|
writeSqliteFenceMismatch,
|
|
2366
2499
|
writeSqliteFetchedPage,
|
|
2367
2500
|
writeSqliteGeneration,
|
|
@@ -2389,6 +2522,7 @@ export {
|
|
|
2389
2522
|
writeToEnvoyRequestStart,
|
|
2390
2523
|
writeToEnvoySqliteCommitFinalizeResponse,
|
|
2391
2524
|
writeToEnvoySqliteCommitResponse,
|
|
2525
|
+
writeToEnvoySqliteCommitStageBeginResponse,
|
|
2392
2526
|
writeToEnvoySqliteCommitStageResponse,
|
|
2393
2527
|
writeToEnvoySqliteGetPagesResponse,
|
|
2394
2528
|
writeToEnvoyTunnelMessage,
|
|
@@ -2410,6 +2544,7 @@ export {
|
|
|
2410
2544
|
writeToRivetResponseStart,
|
|
2411
2545
|
writeToRivetSqliteCommitFinalizeRequest,
|
|
2412
2546
|
writeToRivetSqliteCommitRequest,
|
|
2547
|
+
writeToRivetSqliteCommitStageBeginRequest,
|
|
2413
2548
|
writeToRivetSqliteCommitStageRequest,
|
|
2414
2549
|
writeToRivetSqliteGetPagesRequest,
|
|
2415
2550
|
writeToRivetTunnelMessage,
|