@rivetkit/engine-envoy-protocol 2.3.13 → 2.3.15-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +154 -2
- package/dist/index.js +297 -11
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -240,6 +240,104 @@ type SqliteCommitResponse = {
|
|
|
240
240
|
};
|
|
241
241
|
declare function readSqliteCommitResponse(bc: bare.ByteCursor): SqliteCommitResponse;
|
|
242
242
|
declare function writeSqliteCommitResponse(bc: bare.ByteCursor, x: SqliteCommitResponse): void;
|
|
243
|
+
/**
|
|
244
|
+
* Staged commit. A commit too large for one transaction is written as a sequence of shard-aligned
|
|
245
|
+
* segments and then made visible by a single finalize. Nothing staged is readable until finalize:
|
|
246
|
+
* no PIDX row, no COMMIT row, no head advance, so an abandoned stage is indistinguishable from no
|
|
247
|
+
* commit at all. The single-shot SqliteCommitRequest above stays the path for small commits.
|
|
248
|
+
*/
|
|
249
|
+
type SqliteCommitStageBeginRequest = {
|
|
250
|
+
readonly actorId: Id;
|
|
251
|
+
readonly expectedGeneration: u64 | null;
|
|
252
|
+
/**
|
|
253
|
+
* Fences before any bytes are staged, so an actor that lost its generation does not pay for a
|
|
254
|
+
* full payload before finding out.
|
|
255
|
+
*/
|
|
256
|
+
readonly expectedHeadTxid: u64 | null;
|
|
257
|
+
};
|
|
258
|
+
declare function readSqliteCommitStageBeginRequest(bc: bare.ByteCursor): SqliteCommitStageBeginRequest;
|
|
259
|
+
declare function writeSqliteCommitStageBeginRequest(bc: bare.ByteCursor, x: SqliteCommitStageBeginRequest): void;
|
|
260
|
+
type SqliteCommitStageBeginOk = {
|
|
261
|
+
/**
|
|
262
|
+
* The engine allocates the txid (head + 1). Actor exclusivity makes that safe without an
|
|
263
|
+
* allocator.
|
|
264
|
+
*/
|
|
265
|
+
readonly txid: u64;
|
|
266
|
+
};
|
|
267
|
+
declare function readSqliteCommitStageBeginOk(bc: bare.ByteCursor): SqliteCommitStageBeginOk;
|
|
268
|
+
declare function writeSqliteCommitStageBeginOk(bc: bare.ByteCursor, x: SqliteCommitStageBeginOk): void;
|
|
269
|
+
type SqliteCommitStageBeginResponse = {
|
|
270
|
+
readonly tag: "SqliteCommitStageBeginOk";
|
|
271
|
+
readonly val: SqliteCommitStageBeginOk;
|
|
272
|
+
} | {
|
|
273
|
+
readonly tag: "SqliteErrorResponse";
|
|
274
|
+
readonly val: SqliteErrorResponse;
|
|
275
|
+
};
|
|
276
|
+
declare function readSqliteCommitStageBeginResponse(bc: bare.ByteCursor): SqliteCommitStageBeginResponse;
|
|
277
|
+
declare function writeSqliteCommitStageBeginResponse(bc: bare.ByteCursor, x: SqliteCommitStageBeginResponse): void;
|
|
278
|
+
type SqliteCommitStageSegmentRequest = {
|
|
279
|
+
readonly actorId: Id;
|
|
280
|
+
readonly expectedGeneration: u64 | null;
|
|
281
|
+
readonly txid: u64;
|
|
282
|
+
/**
|
|
283
|
+
* Shard-aligned and strictly ascending across a commit's segments. The engine rejects a
|
|
284
|
+
* misaligned or out-of-order value rather than trusting the client to have produced it
|
|
285
|
+
* correctly: a shard split across two segments could be folded from one of them and written as
|
|
286
|
+
* a shard image missing the other's newer pages.
|
|
287
|
+
*/
|
|
288
|
+
readonly firstPgno: u32;
|
|
289
|
+
readonly dirtyPages: readonly SqliteDirtyPage[];
|
|
290
|
+
};
|
|
291
|
+
declare function readSqliteCommitStageSegmentRequest(bc: bare.ByteCursor): SqliteCommitStageSegmentRequest;
|
|
292
|
+
declare function writeSqliteCommitStageSegmentRequest(bc: bare.ByteCursor, x: SqliteCommitStageSegmentRequest): void;
|
|
293
|
+
type SqliteCommitStageSegmentOk = {
|
|
294
|
+
readonly stagedBytes: u64;
|
|
295
|
+
};
|
|
296
|
+
declare function readSqliteCommitStageSegmentOk(bc: bare.ByteCursor): SqliteCommitStageSegmentOk;
|
|
297
|
+
declare function writeSqliteCommitStageSegmentOk(bc: bare.ByteCursor, x: SqliteCommitStageSegmentOk): void;
|
|
298
|
+
type SqliteCommitStageSegmentResponse = {
|
|
299
|
+
readonly tag: "SqliteCommitStageSegmentOk";
|
|
300
|
+
readonly val: SqliteCommitStageSegmentOk;
|
|
301
|
+
} | {
|
|
302
|
+
readonly tag: "SqliteErrorResponse";
|
|
303
|
+
readonly val: SqliteErrorResponse;
|
|
304
|
+
};
|
|
305
|
+
declare function readSqliteCommitStageSegmentResponse(bc: bare.ByteCursor): SqliteCommitStageSegmentResponse;
|
|
306
|
+
declare function writeSqliteCommitStageSegmentResponse(bc: bare.ByteCursor, x: SqliteCommitStageSegmentResponse): void;
|
|
307
|
+
type SqliteCommitFinalizeRequest = {
|
|
308
|
+
readonly actorId: Id;
|
|
309
|
+
readonly expectedGeneration: u64 | null;
|
|
310
|
+
/**
|
|
311
|
+
* The txid begin allocated. It is the head fence as well as the identity: finalize requires it to
|
|
312
|
+
* still be `head + 1`, so a separate expectedHeadTxid would only ever restate `txid - 1`.
|
|
313
|
+
*/
|
|
314
|
+
readonly txid: u64;
|
|
315
|
+
readonly newDbSizePages: u32;
|
|
316
|
+
readonly nowMs: i64;
|
|
317
|
+
/**
|
|
318
|
+
* Exactly what the client believes it staged. Finalize verifies each one exists, so a client
|
|
319
|
+
* that lost a stage reply and finalized anyway is rejected instead of publishing a commit with
|
|
320
|
+
* a hole in it. Dirty page numbers are not carried here: the engine derives them from the
|
|
321
|
+
* staged segments' own page indexes.
|
|
322
|
+
*/
|
|
323
|
+
readonly segmentFirstPgnos: Uint32Array;
|
|
324
|
+
};
|
|
325
|
+
declare function readSqliteCommitFinalizeRequest(bc: bare.ByteCursor): SqliteCommitFinalizeRequest;
|
|
326
|
+
declare function writeSqliteCommitFinalizeRequest(bc: bare.ByteCursor, x: SqliteCommitFinalizeRequest): void;
|
|
327
|
+
type SqliteCommitFinalizeOk = {
|
|
328
|
+
readonly headTxid: u64 | null;
|
|
329
|
+
};
|
|
330
|
+
declare function readSqliteCommitFinalizeOk(bc: bare.ByteCursor): SqliteCommitFinalizeOk;
|
|
331
|
+
declare function writeSqliteCommitFinalizeOk(bc: bare.ByteCursor, x: SqliteCommitFinalizeOk): void;
|
|
332
|
+
type SqliteCommitFinalizeResponse = {
|
|
333
|
+
readonly tag: "SqliteCommitFinalizeOk";
|
|
334
|
+
readonly val: SqliteCommitFinalizeOk;
|
|
335
|
+
} | {
|
|
336
|
+
readonly tag: "SqliteErrorResponse";
|
|
337
|
+
readonly val: SqliteErrorResponse;
|
|
338
|
+
};
|
|
339
|
+
declare function readSqliteCommitFinalizeResponse(bc: bare.ByteCursor): SqliteCommitFinalizeResponse;
|
|
340
|
+
declare function writeSqliteCommitFinalizeResponse(bc: bare.ByteCursor, x: SqliteCommitFinalizeResponse): void;
|
|
243
341
|
type SqliteValueNull = null;
|
|
244
342
|
type SqliteValueInteger = {
|
|
245
343
|
readonly value: i64;
|
|
@@ -855,6 +953,24 @@ type ToRivetSqliteCommitRequest = {
|
|
|
855
953
|
};
|
|
856
954
|
declare function readToRivetSqliteCommitRequest(bc: bare.ByteCursor): ToRivetSqliteCommitRequest;
|
|
857
955
|
declare function writeToRivetSqliteCommitRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitRequest): void;
|
|
956
|
+
type ToRivetSqliteCommitStageBeginRequest = {
|
|
957
|
+
readonly requestId: u32;
|
|
958
|
+
readonly data: SqliteCommitStageBeginRequest;
|
|
959
|
+
};
|
|
960
|
+
declare function readToRivetSqliteCommitStageBeginRequest(bc: bare.ByteCursor): ToRivetSqliteCommitStageBeginRequest;
|
|
961
|
+
declare function writeToRivetSqliteCommitStageBeginRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitStageBeginRequest): void;
|
|
962
|
+
type ToRivetSqliteCommitStageSegmentRequest = {
|
|
963
|
+
readonly requestId: u32;
|
|
964
|
+
readonly data: SqliteCommitStageSegmentRequest;
|
|
965
|
+
};
|
|
966
|
+
declare function readToRivetSqliteCommitStageSegmentRequest(bc: bare.ByteCursor): ToRivetSqliteCommitStageSegmentRequest;
|
|
967
|
+
declare function writeToRivetSqliteCommitStageSegmentRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitStageSegmentRequest): void;
|
|
968
|
+
type ToRivetSqliteCommitFinalizeRequest = {
|
|
969
|
+
readonly requestId: u32;
|
|
970
|
+
readonly data: SqliteCommitFinalizeRequest;
|
|
971
|
+
};
|
|
972
|
+
declare function readToRivetSqliteCommitFinalizeRequest(bc: bare.ByteCursor): ToRivetSqliteCommitFinalizeRequest;
|
|
973
|
+
declare function writeToRivetSqliteCommitFinalizeRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitFinalizeRequest): void;
|
|
858
974
|
type ToRivetSqliteExecRequest = {
|
|
859
975
|
readonly requestId: u32;
|
|
860
976
|
readonly data: SqliteExecRequest;
|
|
@@ -900,6 +1016,15 @@ type ToRivet = {
|
|
|
900
1016
|
} | {
|
|
901
1017
|
readonly tag: "ToRivetSqliteCommitRequest";
|
|
902
1018
|
readonly val: ToRivetSqliteCommitRequest;
|
|
1019
|
+
} | {
|
|
1020
|
+
readonly tag: "ToRivetSqliteCommitStageBeginRequest";
|
|
1021
|
+
readonly val: ToRivetSqliteCommitStageBeginRequest;
|
|
1022
|
+
} | {
|
|
1023
|
+
readonly tag: "ToRivetSqliteCommitStageSegmentRequest";
|
|
1024
|
+
readonly val: ToRivetSqliteCommitStageSegmentRequest;
|
|
1025
|
+
} | {
|
|
1026
|
+
readonly tag: "ToRivetSqliteCommitFinalizeRequest";
|
|
1027
|
+
readonly val: ToRivetSqliteCommitFinalizeRequest;
|
|
903
1028
|
} | {
|
|
904
1029
|
readonly tag: "ToRivetSqliteExecRequest";
|
|
905
1030
|
readonly val: ToRivetSqliteExecRequest;
|
|
@@ -955,6 +1080,24 @@ type ToEnvoySqliteCommitResponse = {
|
|
|
955
1080
|
};
|
|
956
1081
|
declare function readToEnvoySqliteCommitResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitResponse;
|
|
957
1082
|
declare function writeToEnvoySqliteCommitResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitResponse): void;
|
|
1083
|
+
type ToEnvoySqliteCommitStageBeginResponse = {
|
|
1084
|
+
readonly requestId: u32;
|
|
1085
|
+
readonly data: SqliteCommitStageBeginResponse;
|
|
1086
|
+
};
|
|
1087
|
+
declare function readToEnvoySqliteCommitStageBeginResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitStageBeginResponse;
|
|
1088
|
+
declare function writeToEnvoySqliteCommitStageBeginResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitStageBeginResponse): void;
|
|
1089
|
+
type ToEnvoySqliteCommitStageSegmentResponse = {
|
|
1090
|
+
readonly requestId: u32;
|
|
1091
|
+
readonly data: SqliteCommitStageSegmentResponse;
|
|
1092
|
+
};
|
|
1093
|
+
declare function readToEnvoySqliteCommitStageSegmentResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitStageSegmentResponse;
|
|
1094
|
+
declare function writeToEnvoySqliteCommitStageSegmentResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitStageSegmentResponse): void;
|
|
1095
|
+
type ToEnvoySqliteCommitFinalizeResponse = {
|
|
1096
|
+
readonly requestId: u32;
|
|
1097
|
+
readonly data: SqliteCommitFinalizeResponse;
|
|
1098
|
+
};
|
|
1099
|
+
declare function readToEnvoySqliteCommitFinalizeResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitFinalizeResponse;
|
|
1100
|
+
declare function writeToEnvoySqliteCommitFinalizeResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitFinalizeResponse): void;
|
|
958
1101
|
type ToEnvoySqliteExecResponse = {
|
|
959
1102
|
readonly requestId: u32;
|
|
960
1103
|
readonly data: SqliteExecResponse;
|
|
@@ -997,6 +1140,15 @@ type ToEnvoy = {
|
|
|
997
1140
|
} | {
|
|
998
1141
|
readonly tag: "ToEnvoySqliteCommitResponse";
|
|
999
1142
|
readonly val: ToEnvoySqliteCommitResponse;
|
|
1143
|
+
} | {
|
|
1144
|
+
readonly tag: "ToEnvoySqliteCommitStageBeginResponse";
|
|
1145
|
+
readonly val: ToEnvoySqliteCommitStageBeginResponse;
|
|
1146
|
+
} | {
|
|
1147
|
+
readonly tag: "ToEnvoySqliteCommitStageSegmentResponse";
|
|
1148
|
+
readonly val: ToEnvoySqliteCommitStageSegmentResponse;
|
|
1149
|
+
} | {
|
|
1150
|
+
readonly tag: "ToEnvoySqliteCommitFinalizeResponse";
|
|
1151
|
+
readonly val: ToEnvoySqliteCommitFinalizeResponse;
|
|
1000
1152
|
} | {
|
|
1001
1153
|
readonly tag: "ToEnvoySqliteExecResponse";
|
|
1002
1154
|
readonly val: ToEnvoySqliteExecResponse;
|
|
@@ -1081,6 +1233,6 @@ declare function readToOutbound(bc: bare.ByteCursor): ToOutbound;
|
|
|
1081
1233
|
declare function writeToOutbound(bc: bare.ByteCursor, x: ToOutbound): void;
|
|
1082
1234
|
declare function encodeToOutbound(x: ToOutbound, config?: Partial<bare.Config>): Uint8Array;
|
|
1083
1235
|
declare function decodeToOutbound(bytes: Uint8Array): ToOutbound;
|
|
1084
|
-
declare const VERSION =
|
|
1236
|
+
declare const VERSION = 8;
|
|
1085
1237
|
|
|
1086
|
-
export { type ActorCheckpoint, type ActorCommandKeyData, type ActorConfig, type ActorIntent, type ActorIntentSleep, type ActorIntentStop, type ActorName, type ActorState, type ActorStateRunning, type ActorStateStopped, type Command, type CommandStartActor, type CommandStopActor, type CommandWrapper, type Event, type EventActorIntent, type EventActorSetAlarm, type EventActorStateUpdate, type EventWrapper, type GatewayId, type HibernatingRequest, type HttpStreamAbortReason, HttpStreamAbortReasonKind, type Id, type Json, type KvDeleteRangeRequest, type KvDeleteRequest, type KvDeleteResponse, type KvDropRequest, type KvDropResponse, type KvErrorResponse, type KvGetRequest, type KvGetResponse, type KvKey, type KvListAllQuery, type KvListPrefixQuery, type KvListQuery, type KvListRangeQuery, type KvListRequest, type KvListResponse, type KvMetadata, type KvPutRequest, type KvPutResponse, type KvRequestData, type KvResponseData, type KvValue, type MessageId, type MessageIndex, type PreloadedKv, type PreloadedKvEntry, type ProtocolMetadata, type RequestId, type SqliteBatchStatement, type SqliteBindParam, type SqliteColumnValue, type SqliteCommitOk, type SqliteCommitRequest, type SqliteCommitResponse, type SqliteDirtyPage, type SqliteErrorResponse, type SqliteExecOk, type SqliteExecRequest, type SqliteExecResponse, type SqliteExecuteBatchOk, type SqliteExecuteBatchRequest, type SqliteExecuteBatchResponse, type SqliteExecuteOk, type SqliteExecuteRequest, type SqliteExecuteResponse, type SqliteExecuteResult, type SqliteFetchedPage, type SqliteGeneration, type SqliteGetPagesOk, type SqliteGetPagesRequest, type SqliteGetPagesResponse, type SqlitePageBytes, type SqlitePgno, type SqliteQueryResult, type SqliteValueBlob, type SqliteValueFloat, type SqliteValueInteger, type SqliteValueNull, type SqliteValueText, StopActorReason, StopCode, type ToEnvoy, type ToEnvoyAckEvents, type ToEnvoyCommands, type ToEnvoyConn, type ToEnvoyConnClose, type ToEnvoyConnPing, type ToEnvoyInit, type ToEnvoyKvResponse, type ToEnvoyPing, type ToEnvoyRequestAbort, type ToEnvoyRequestBodyCancel, type ToEnvoyRequestChunk, type ToEnvoyRequestStart, type ToEnvoyResponseBodyWindowUpdate, type ToEnvoySqliteCommitResponse, type ToEnvoySqliteExecResponse, type ToEnvoySqliteExecuteBatchResponse, type ToEnvoySqliteExecuteResponse, type ToEnvoySqliteGetPagesResponse, type ToEnvoyTunnelMessage, type ToEnvoyTunnelMessageKind, type ToEnvoyWebSocketClose, type ToEnvoyWebSocketMessage, type ToEnvoyWebSocketOpen, type ToGateway, type ToGatewayPong, type ToOutbound, type ToOutboundActorStart, type ToRivet, type ToRivetAckCommands, type ToRivetEvents, type ToRivetKvRequest, type ToRivetMetadata, type ToRivetPong, type ToRivetRequestBodyCancel, type ToRivetRequestBodyWindowUpdate, type ToRivetResponseAbort, type ToRivetResponseChunk, type ToRivetResponseStart, type ToRivetSqliteCommitRequest, type ToRivetSqliteExecRequest, type ToRivetSqliteExecuteBatchRequest, type ToRivetSqliteExecuteRequest, type ToRivetSqliteGetPagesRequest, type ToRivetStopping, type ToRivetTunnelMessage, type ToRivetTunnelMessageKind, type ToRivetWebSocketClose, type ToRivetWebSocketMessage, type ToRivetWebSocketMessageAck, type ToRivetWebSocketOpen, VERSION, decodeActorCommandKeyData, decodeToEnvoy, decodeToEnvoyConn, decodeToGateway, decodeToOutbound, decodeToRivet, encodeActorCommandKeyData, encodeToEnvoy, encodeToEnvoyConn, encodeToGateway, encodeToOutbound, encodeToRivet, type i64, readActorCheckpoint, readActorCommandKeyData, readActorConfig, readActorIntent, readActorName, readActorState, readActorStateStopped, readCommand, readCommandStartActor, readCommandStopActor, readCommandWrapper, readEvent, readEventActorIntent, readEventActorSetAlarm, readEventActorStateUpdate, readEventWrapper, readGatewayId, readHibernatingRequest, readHttpStreamAbortReason, readHttpStreamAbortReasonKind, readId, readJson, readKvDeleteRangeRequest, readKvDeleteRequest, readKvErrorResponse, readKvGetRequest, readKvGetResponse, readKvKey, readKvListPrefixQuery, readKvListQuery, readKvListRangeQuery, readKvListRequest, readKvListResponse, readKvMetadata, readKvPutRequest, readKvRequestData, readKvResponseData, readKvValue, readMessageId, readMessageIndex, readPreloadedKv, readPreloadedKvEntry, readProtocolMetadata, readRequestId, readSqliteBatchStatement, readSqliteBindParam, readSqliteColumnValue, readSqliteCommitOk, readSqliteCommitRequest, readSqliteCommitResponse, readSqliteDirtyPage, readSqliteErrorResponse, readSqliteExecOk, readSqliteExecRequest, readSqliteExecResponse, readSqliteExecuteBatchOk, readSqliteExecuteBatchRequest, readSqliteExecuteBatchResponse, readSqliteExecuteOk, readSqliteExecuteRequest, readSqliteExecuteResponse, readSqliteExecuteResult, readSqliteFetchedPage, readSqliteGeneration, readSqliteGetPagesOk, readSqliteGetPagesRequest, readSqliteGetPagesResponse, readSqlitePageBytes, readSqlitePgno, readSqliteQueryResult, readSqliteValueBlob, readSqliteValueFloat, readSqliteValueInteger, readSqliteValueText, readStopActorReason, readStopCode, readToEnvoy, readToEnvoyAckEvents, readToEnvoyCommands, readToEnvoyConn, readToEnvoyConnPing, readToEnvoyInit, readToEnvoyKvResponse, readToEnvoyPing, readToEnvoyRequestAbort, readToEnvoyRequestChunk, readToEnvoyRequestStart, readToEnvoyResponseBodyWindowUpdate, readToEnvoySqliteCommitResponse, readToEnvoySqliteExecResponse, readToEnvoySqliteExecuteBatchResponse, readToEnvoySqliteExecuteResponse, readToEnvoySqliteGetPagesResponse, readToEnvoyTunnelMessage, readToEnvoyTunnelMessageKind, readToEnvoyWebSocketClose, readToEnvoyWebSocketMessage, readToEnvoyWebSocketOpen, readToGateway, readToGatewayPong, readToOutbound, readToOutboundActorStart, readToRivet, readToRivetAckCommands, readToRivetEvents, readToRivetKvRequest, readToRivetMetadata, readToRivetPong, readToRivetRequestBodyWindowUpdate, readToRivetResponseAbort, readToRivetResponseChunk, readToRivetResponseStart, readToRivetSqliteCommitRequest, readToRivetSqliteExecRequest, readToRivetSqliteExecuteBatchRequest, readToRivetSqliteExecuteRequest, readToRivetSqliteGetPagesRequest, readToRivetTunnelMessage, readToRivetTunnelMessageKind, readToRivetWebSocketClose, readToRivetWebSocketMessage, readToRivetWebSocketMessageAck, readToRivetWebSocketOpen, type u16, type u32, type u64, writeActorCheckpoint, writeActorCommandKeyData, writeActorConfig, writeActorIntent, writeActorName, writeActorState, writeActorStateStopped, writeCommand, writeCommandStartActor, writeCommandStopActor, writeCommandWrapper, writeEvent, writeEventActorIntent, writeEventActorSetAlarm, writeEventActorStateUpdate, writeEventWrapper, writeGatewayId, writeHibernatingRequest, writeHttpStreamAbortReason, writeHttpStreamAbortReasonKind, writeId, writeJson, writeKvDeleteRangeRequest, writeKvDeleteRequest, writeKvErrorResponse, writeKvGetRequest, writeKvGetResponse, writeKvKey, writeKvListPrefixQuery, writeKvListQuery, writeKvListRangeQuery, writeKvListRequest, writeKvListResponse, writeKvMetadata, writeKvPutRequest, writeKvRequestData, writeKvResponseData, writeKvValue, writeMessageId, writeMessageIndex, writePreloadedKv, writePreloadedKvEntry, writeProtocolMetadata, writeRequestId, writeSqliteBatchStatement, writeSqliteBindParam, writeSqliteColumnValue, writeSqliteCommitOk, writeSqliteCommitRequest, writeSqliteCommitResponse, writeSqliteDirtyPage, writeSqliteErrorResponse, writeSqliteExecOk, writeSqliteExecRequest, writeSqliteExecResponse, writeSqliteExecuteBatchOk, writeSqliteExecuteBatchRequest, writeSqliteExecuteBatchResponse, writeSqliteExecuteOk, writeSqliteExecuteRequest, writeSqliteExecuteResponse, writeSqliteExecuteResult, writeSqliteFetchedPage, writeSqliteGeneration, writeSqliteGetPagesOk, writeSqliteGetPagesRequest, writeSqliteGetPagesResponse, writeSqlitePageBytes, writeSqlitePgno, writeSqliteQueryResult, writeSqliteValueBlob, writeSqliteValueFloat, writeSqliteValueInteger, writeSqliteValueText, writeStopActorReason, writeStopCode, writeToEnvoy, writeToEnvoyAckEvents, writeToEnvoyCommands, writeToEnvoyConn, writeToEnvoyConnPing, writeToEnvoyInit, writeToEnvoyKvResponse, writeToEnvoyPing, writeToEnvoyRequestAbort, writeToEnvoyRequestChunk, writeToEnvoyRequestStart, writeToEnvoyResponseBodyWindowUpdate, writeToEnvoySqliteCommitResponse, writeToEnvoySqliteExecResponse, writeToEnvoySqliteExecuteBatchResponse, writeToEnvoySqliteExecuteResponse, writeToEnvoySqliteGetPagesResponse, writeToEnvoyTunnelMessage, writeToEnvoyTunnelMessageKind, writeToEnvoyWebSocketClose, writeToEnvoyWebSocketMessage, writeToEnvoyWebSocketOpen, writeToGateway, writeToGatewayPong, writeToOutbound, writeToOutboundActorStart, writeToRivet, writeToRivetAckCommands, writeToRivetEvents, writeToRivetKvRequest, writeToRivetMetadata, writeToRivetPong, writeToRivetRequestBodyWindowUpdate, writeToRivetResponseAbort, writeToRivetResponseChunk, writeToRivetResponseStart, writeToRivetSqliteCommitRequest, writeToRivetSqliteExecRequest, writeToRivetSqliteExecuteBatchRequest, writeToRivetSqliteExecuteRequest, writeToRivetSqliteGetPagesRequest, writeToRivetTunnelMessage, writeToRivetTunnelMessageKind, writeToRivetWebSocketClose, writeToRivetWebSocketMessage, writeToRivetWebSocketMessageAck, writeToRivetWebSocketOpen };
|
|
1238
|
+
export { type ActorCheckpoint, type ActorCommandKeyData, type ActorConfig, type ActorIntent, type ActorIntentSleep, type ActorIntentStop, type ActorName, type ActorState, type ActorStateRunning, type ActorStateStopped, type Command, type CommandStartActor, type CommandStopActor, type CommandWrapper, type Event, type EventActorIntent, type EventActorSetAlarm, type EventActorStateUpdate, type EventWrapper, type GatewayId, type HibernatingRequest, type HttpStreamAbortReason, HttpStreamAbortReasonKind, type Id, type Json, type KvDeleteRangeRequest, type KvDeleteRequest, type KvDeleteResponse, type KvDropRequest, type KvDropResponse, type KvErrorResponse, type KvGetRequest, type KvGetResponse, type KvKey, type KvListAllQuery, type KvListPrefixQuery, type KvListQuery, type KvListRangeQuery, type KvListRequest, type KvListResponse, type KvMetadata, type KvPutRequest, type KvPutResponse, type KvRequestData, type KvResponseData, type KvValue, type MessageId, type MessageIndex, type PreloadedKv, type PreloadedKvEntry, type ProtocolMetadata, type RequestId, type SqliteBatchStatement, type SqliteBindParam, type SqliteColumnValue, type SqliteCommitFinalizeOk, type SqliteCommitFinalizeRequest, type SqliteCommitFinalizeResponse, type SqliteCommitOk, type SqliteCommitRequest, type SqliteCommitResponse, type SqliteCommitStageBeginOk, type SqliteCommitStageBeginRequest, type SqliteCommitStageBeginResponse, type SqliteCommitStageSegmentOk, type SqliteCommitStageSegmentRequest, type SqliteCommitStageSegmentResponse, type SqliteDirtyPage, type SqliteErrorResponse, type SqliteExecOk, type SqliteExecRequest, type SqliteExecResponse, type SqliteExecuteBatchOk, type SqliteExecuteBatchRequest, type SqliteExecuteBatchResponse, type SqliteExecuteOk, type SqliteExecuteRequest, type SqliteExecuteResponse, type SqliteExecuteResult, type SqliteFetchedPage, type SqliteGeneration, type SqliteGetPagesOk, type SqliteGetPagesRequest, type SqliteGetPagesResponse, type SqlitePageBytes, type SqlitePgno, type SqliteQueryResult, type SqliteValueBlob, type SqliteValueFloat, type SqliteValueInteger, type SqliteValueNull, type SqliteValueText, StopActorReason, StopCode, type ToEnvoy, type ToEnvoyAckEvents, type ToEnvoyCommands, type ToEnvoyConn, type ToEnvoyConnClose, type ToEnvoyConnPing, type ToEnvoyInit, type ToEnvoyKvResponse, type ToEnvoyPing, type ToEnvoyRequestAbort, type ToEnvoyRequestBodyCancel, type ToEnvoyRequestChunk, type ToEnvoyRequestStart, type ToEnvoyResponseBodyWindowUpdate, type ToEnvoySqliteCommitFinalizeResponse, type ToEnvoySqliteCommitResponse, type ToEnvoySqliteCommitStageBeginResponse, type ToEnvoySqliteCommitStageSegmentResponse, type ToEnvoySqliteExecResponse, type ToEnvoySqliteExecuteBatchResponse, type ToEnvoySqliteExecuteResponse, type ToEnvoySqliteGetPagesResponse, type ToEnvoyTunnelMessage, type ToEnvoyTunnelMessageKind, type ToEnvoyWebSocketClose, type ToEnvoyWebSocketMessage, type ToEnvoyWebSocketOpen, type ToGateway, type ToGatewayPong, type ToOutbound, type ToOutboundActorStart, type ToRivet, type ToRivetAckCommands, type ToRivetEvents, type ToRivetKvRequest, type ToRivetMetadata, type ToRivetPong, type ToRivetRequestBodyCancel, type ToRivetRequestBodyWindowUpdate, type ToRivetResponseAbort, type ToRivetResponseChunk, type ToRivetResponseStart, type ToRivetSqliteCommitFinalizeRequest, type ToRivetSqliteCommitRequest, type ToRivetSqliteCommitStageBeginRequest, type ToRivetSqliteCommitStageSegmentRequest, type ToRivetSqliteExecRequest, type ToRivetSqliteExecuteBatchRequest, type ToRivetSqliteExecuteRequest, type ToRivetSqliteGetPagesRequest, type ToRivetStopping, type ToRivetTunnelMessage, type ToRivetTunnelMessageKind, type ToRivetWebSocketClose, type ToRivetWebSocketMessage, type ToRivetWebSocketMessageAck, type ToRivetWebSocketOpen, VERSION, decodeActorCommandKeyData, decodeToEnvoy, decodeToEnvoyConn, decodeToGateway, decodeToOutbound, decodeToRivet, encodeActorCommandKeyData, encodeToEnvoy, encodeToEnvoyConn, encodeToGateway, encodeToOutbound, encodeToRivet, type i64, readActorCheckpoint, readActorCommandKeyData, readActorConfig, readActorIntent, readActorName, readActorState, readActorStateStopped, readCommand, readCommandStartActor, readCommandStopActor, readCommandWrapper, readEvent, readEventActorIntent, readEventActorSetAlarm, readEventActorStateUpdate, readEventWrapper, readGatewayId, readHibernatingRequest, readHttpStreamAbortReason, readHttpStreamAbortReasonKind, readId, readJson, readKvDeleteRangeRequest, readKvDeleteRequest, readKvErrorResponse, readKvGetRequest, readKvGetResponse, readKvKey, readKvListPrefixQuery, readKvListQuery, readKvListRangeQuery, readKvListRequest, readKvListResponse, readKvMetadata, readKvPutRequest, readKvRequestData, readKvResponseData, readKvValue, readMessageId, readMessageIndex, readPreloadedKv, readPreloadedKvEntry, readProtocolMetadata, readRequestId, readSqliteBatchStatement, readSqliteBindParam, readSqliteColumnValue, readSqliteCommitFinalizeOk, readSqliteCommitFinalizeRequest, readSqliteCommitFinalizeResponse, readSqliteCommitOk, readSqliteCommitRequest, readSqliteCommitResponse, readSqliteCommitStageBeginOk, readSqliteCommitStageBeginRequest, readSqliteCommitStageBeginResponse, readSqliteCommitStageSegmentOk, readSqliteCommitStageSegmentRequest, readSqliteCommitStageSegmentResponse, readSqliteDirtyPage, readSqliteErrorResponse, readSqliteExecOk, readSqliteExecRequest, readSqliteExecResponse, readSqliteExecuteBatchOk, readSqliteExecuteBatchRequest, readSqliteExecuteBatchResponse, readSqliteExecuteOk, readSqliteExecuteRequest, readSqliteExecuteResponse, readSqliteExecuteResult, readSqliteFetchedPage, readSqliteGeneration, readSqliteGetPagesOk, readSqliteGetPagesRequest, readSqliteGetPagesResponse, readSqlitePageBytes, readSqlitePgno, readSqliteQueryResult, readSqliteValueBlob, readSqliteValueFloat, readSqliteValueInteger, readSqliteValueText, readStopActorReason, readStopCode, readToEnvoy, readToEnvoyAckEvents, readToEnvoyCommands, readToEnvoyConn, readToEnvoyConnPing, readToEnvoyInit, readToEnvoyKvResponse, readToEnvoyPing, readToEnvoyRequestAbort, readToEnvoyRequestChunk, readToEnvoyRequestStart, readToEnvoyResponseBodyWindowUpdate, readToEnvoySqliteCommitFinalizeResponse, readToEnvoySqliteCommitResponse, readToEnvoySqliteCommitStageBeginResponse, readToEnvoySqliteCommitStageSegmentResponse, readToEnvoySqliteExecResponse, readToEnvoySqliteExecuteBatchResponse, readToEnvoySqliteExecuteResponse, readToEnvoySqliteGetPagesResponse, readToEnvoyTunnelMessage, readToEnvoyTunnelMessageKind, readToEnvoyWebSocketClose, readToEnvoyWebSocketMessage, readToEnvoyWebSocketOpen, readToGateway, readToGatewayPong, readToOutbound, readToOutboundActorStart, readToRivet, readToRivetAckCommands, readToRivetEvents, readToRivetKvRequest, readToRivetMetadata, readToRivetPong, readToRivetRequestBodyWindowUpdate, readToRivetResponseAbort, readToRivetResponseChunk, readToRivetResponseStart, readToRivetSqliteCommitFinalizeRequest, readToRivetSqliteCommitRequest, readToRivetSqliteCommitStageBeginRequest, readToRivetSqliteCommitStageSegmentRequest, readToRivetSqliteExecRequest, readToRivetSqliteExecuteBatchRequest, readToRivetSqliteExecuteRequest, readToRivetSqliteGetPagesRequest, readToRivetTunnelMessage, readToRivetTunnelMessageKind, readToRivetWebSocketClose, readToRivetWebSocketMessage, readToRivetWebSocketMessageAck, readToRivetWebSocketOpen, type u16, type u32, type u64, writeActorCheckpoint, writeActorCommandKeyData, writeActorConfig, writeActorIntent, writeActorName, writeActorState, writeActorStateStopped, writeCommand, writeCommandStartActor, writeCommandStopActor, writeCommandWrapper, writeEvent, writeEventActorIntent, writeEventActorSetAlarm, writeEventActorStateUpdate, writeEventWrapper, writeGatewayId, writeHibernatingRequest, writeHttpStreamAbortReason, writeHttpStreamAbortReasonKind, writeId, writeJson, writeKvDeleteRangeRequest, writeKvDeleteRequest, writeKvErrorResponse, writeKvGetRequest, writeKvGetResponse, writeKvKey, writeKvListPrefixQuery, writeKvListQuery, writeKvListRangeQuery, writeKvListRequest, writeKvListResponse, writeKvMetadata, writeKvPutRequest, writeKvRequestData, writeKvResponseData, writeKvValue, writeMessageId, writeMessageIndex, writePreloadedKv, writePreloadedKvEntry, writeProtocolMetadata, writeRequestId, writeSqliteBatchStatement, writeSqliteBindParam, writeSqliteColumnValue, writeSqliteCommitFinalizeOk, writeSqliteCommitFinalizeRequest, writeSqliteCommitFinalizeResponse, writeSqliteCommitOk, writeSqliteCommitRequest, writeSqliteCommitResponse, writeSqliteCommitStageBeginOk, writeSqliteCommitStageBeginRequest, writeSqliteCommitStageBeginResponse, writeSqliteCommitStageSegmentOk, writeSqliteCommitStageSegmentRequest, writeSqliteCommitStageSegmentResponse, writeSqliteDirtyPage, writeSqliteErrorResponse, writeSqliteExecOk, writeSqliteExecRequest, writeSqliteExecResponse, writeSqliteExecuteBatchOk, writeSqliteExecuteBatchRequest, writeSqliteExecuteBatchResponse, writeSqliteExecuteOk, writeSqliteExecuteRequest, writeSqliteExecuteResponse, writeSqliteExecuteResult, writeSqliteFetchedPage, writeSqliteGeneration, writeSqliteGetPagesOk, writeSqliteGetPagesRequest, writeSqliteGetPagesResponse, writeSqlitePageBytes, writeSqlitePgno, writeSqliteQueryResult, writeSqliteValueBlob, writeSqliteValueFloat, writeSqliteValueInteger, writeSqliteValueText, writeStopActorReason, writeStopCode, writeToEnvoy, writeToEnvoyAckEvents, writeToEnvoyCommands, writeToEnvoyConn, writeToEnvoyConnPing, writeToEnvoyInit, writeToEnvoyKvResponse, writeToEnvoyPing, writeToEnvoyRequestAbort, writeToEnvoyRequestChunk, writeToEnvoyRequestStart, writeToEnvoyResponseBodyWindowUpdate, writeToEnvoySqliteCommitFinalizeResponse, writeToEnvoySqliteCommitResponse, writeToEnvoySqliteCommitStageBeginResponse, writeToEnvoySqliteCommitStageSegmentResponse, writeToEnvoySqliteExecResponse, writeToEnvoySqliteExecuteBatchResponse, writeToEnvoySqliteExecuteResponse, writeToEnvoySqliteGetPagesResponse, writeToEnvoyTunnelMessage, writeToEnvoyTunnelMessageKind, writeToEnvoyWebSocketClose, writeToEnvoyWebSocketMessage, writeToEnvoyWebSocketOpen, writeToGateway, writeToGatewayPong, writeToOutbound, writeToOutboundActorStart, writeToRivet, writeToRivetAckCommands, writeToRivetEvents, writeToRivetKvRequest, writeToRivetMetadata, writeToRivetPong, writeToRivetRequestBodyWindowUpdate, writeToRivetResponseAbort, writeToRivetResponseChunk, writeToRivetResponseStart, writeToRivetSqliteCommitFinalizeRequest, writeToRivetSqliteCommitRequest, writeToRivetSqliteCommitStageBeginRequest, writeToRivetSqliteCommitStageSegmentRequest, writeToRivetSqliteExecRequest, writeToRivetSqliteExecuteBatchRequest, writeToRivetSqliteExecuteRequest, writeToRivetSqliteGetPagesRequest, writeToRivetTunnelMessage, writeToRivetTunnelMessageKind, writeToRivetWebSocketClose, writeToRivetWebSocketMessage, writeToRivetWebSocketMessageAck, writeToRivetWebSocketOpen };
|
package/dist/index.js
CHANGED
|
@@ -582,6 +582,160 @@ function writeSqliteCommitResponse(bc, x) {
|
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
|
+
function readSqliteCommitStageBeginRequest(bc) {
|
|
586
|
+
return {
|
|
587
|
+
actorId: readId(bc),
|
|
588
|
+
expectedGeneration: read2(bc),
|
|
589
|
+
expectedHeadTxid: read2(bc)
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
function writeSqliteCommitStageBeginRequest(bc, x) {
|
|
593
|
+
writeId(bc, x.actorId);
|
|
594
|
+
write2(bc, x.expectedGeneration);
|
|
595
|
+
write2(bc, x.expectedHeadTxid);
|
|
596
|
+
}
|
|
597
|
+
function readSqliteCommitStageBeginOk(bc) {
|
|
598
|
+
return {
|
|
599
|
+
txid: bare.readU64(bc)
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
function writeSqliteCommitStageBeginOk(bc, x) {
|
|
603
|
+
bare.writeU64(bc, x.txid);
|
|
604
|
+
}
|
|
605
|
+
function readSqliteCommitStageBeginResponse(bc) {
|
|
606
|
+
const offset = bc.offset;
|
|
607
|
+
const tag = bare.readU8(bc);
|
|
608
|
+
switch (tag) {
|
|
609
|
+
case 0:
|
|
610
|
+
return { tag: "SqliteCommitStageBeginOk", val: readSqliteCommitStageBeginOk(bc) };
|
|
611
|
+
case 1:
|
|
612
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
613
|
+
default: {
|
|
614
|
+
bc.offset = offset;
|
|
615
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
function writeSqliteCommitStageBeginResponse(bc, x) {
|
|
620
|
+
switch (x.tag) {
|
|
621
|
+
case "SqliteCommitStageBeginOk": {
|
|
622
|
+
bare.writeU8(bc, 0);
|
|
623
|
+
writeSqliteCommitStageBeginOk(bc, x.val);
|
|
624
|
+
break;
|
|
625
|
+
}
|
|
626
|
+
case "SqliteErrorResponse": {
|
|
627
|
+
bare.writeU8(bc, 1);
|
|
628
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
629
|
+
break;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
function readSqliteCommitStageSegmentRequest(bc) {
|
|
634
|
+
return {
|
|
635
|
+
actorId: readId(bc),
|
|
636
|
+
expectedGeneration: read2(bc),
|
|
637
|
+
txid: bare.readU64(bc),
|
|
638
|
+
firstPgno: bare.readU32(bc),
|
|
639
|
+
dirtyPages: read8(bc)
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
function writeSqliteCommitStageSegmentRequest(bc, x) {
|
|
643
|
+
writeId(bc, x.actorId);
|
|
644
|
+
write2(bc, x.expectedGeneration);
|
|
645
|
+
bare.writeU64(bc, x.txid);
|
|
646
|
+
bare.writeU32(bc, x.firstPgno);
|
|
647
|
+
write8(bc, x.dirtyPages);
|
|
648
|
+
}
|
|
649
|
+
function readSqliteCommitStageSegmentOk(bc) {
|
|
650
|
+
return {
|
|
651
|
+
stagedBytes: bare.readU64(bc)
|
|
652
|
+
};
|
|
653
|
+
}
|
|
654
|
+
function writeSqliteCommitStageSegmentOk(bc, x) {
|
|
655
|
+
bare.writeU64(bc, x.stagedBytes);
|
|
656
|
+
}
|
|
657
|
+
function readSqliteCommitStageSegmentResponse(bc) {
|
|
658
|
+
const offset = bc.offset;
|
|
659
|
+
const tag = bare.readU8(bc);
|
|
660
|
+
switch (tag) {
|
|
661
|
+
case 0:
|
|
662
|
+
return { tag: "SqliteCommitStageSegmentOk", val: readSqliteCommitStageSegmentOk(bc) };
|
|
663
|
+
case 1:
|
|
664
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
665
|
+
default: {
|
|
666
|
+
bc.offset = offset;
|
|
667
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
function writeSqliteCommitStageSegmentResponse(bc, x) {
|
|
672
|
+
switch (x.tag) {
|
|
673
|
+
case "SqliteCommitStageSegmentOk": {
|
|
674
|
+
bare.writeU8(bc, 0);
|
|
675
|
+
writeSqliteCommitStageSegmentOk(bc, x.val);
|
|
676
|
+
break;
|
|
677
|
+
}
|
|
678
|
+
case "SqliteErrorResponse": {
|
|
679
|
+
bare.writeU8(bc, 1);
|
|
680
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
681
|
+
break;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
function readSqliteCommitFinalizeRequest(bc) {
|
|
686
|
+
return {
|
|
687
|
+
actorId: readId(bc),
|
|
688
|
+
expectedGeneration: read2(bc),
|
|
689
|
+
txid: bare.readU64(bc),
|
|
690
|
+
newDbSizePages: bare.readU32(bc),
|
|
691
|
+
nowMs: bare.readI64(bc),
|
|
692
|
+
segmentFirstPgnos: bare.readU32Array(bc)
|
|
693
|
+
};
|
|
694
|
+
}
|
|
695
|
+
function writeSqliteCommitFinalizeRequest(bc, x) {
|
|
696
|
+
writeId(bc, x.actorId);
|
|
697
|
+
write2(bc, x.expectedGeneration);
|
|
698
|
+
bare.writeU64(bc, x.txid);
|
|
699
|
+
bare.writeU32(bc, x.newDbSizePages);
|
|
700
|
+
bare.writeI64(bc, x.nowMs);
|
|
701
|
+
bare.writeU32Array(bc, x.segmentFirstPgnos);
|
|
702
|
+
}
|
|
703
|
+
function readSqliteCommitFinalizeOk(bc) {
|
|
704
|
+
return {
|
|
705
|
+
headTxid: read2(bc)
|
|
706
|
+
};
|
|
707
|
+
}
|
|
708
|
+
function writeSqliteCommitFinalizeOk(bc, x) {
|
|
709
|
+
write2(bc, x.headTxid);
|
|
710
|
+
}
|
|
711
|
+
function readSqliteCommitFinalizeResponse(bc) {
|
|
712
|
+
const offset = bc.offset;
|
|
713
|
+
const tag = bare.readU8(bc);
|
|
714
|
+
switch (tag) {
|
|
715
|
+
case 0:
|
|
716
|
+
return { tag: "SqliteCommitFinalizeOk", val: readSqliteCommitFinalizeOk(bc) };
|
|
717
|
+
case 1:
|
|
718
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
719
|
+
default: {
|
|
720
|
+
bc.offset = offset;
|
|
721
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
function writeSqliteCommitFinalizeResponse(bc, x) {
|
|
726
|
+
switch (x.tag) {
|
|
727
|
+
case "SqliteCommitFinalizeOk": {
|
|
728
|
+
bare.writeU8(bc, 0);
|
|
729
|
+
writeSqliteCommitFinalizeOk(bc, x.val);
|
|
730
|
+
break;
|
|
731
|
+
}
|
|
732
|
+
case "SqliteErrorResponse": {
|
|
733
|
+
bare.writeU8(bc, 1);
|
|
734
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
735
|
+
break;
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
}
|
|
585
739
|
function readSqliteValueInteger(bc) {
|
|
586
740
|
return {
|
|
587
741
|
value: bare.readI64(bc)
|
|
@@ -2049,6 +2203,36 @@ function writeToRivetSqliteCommitRequest(bc, x) {
|
|
|
2049
2203
|
bare.writeU32(bc, x.requestId);
|
|
2050
2204
|
writeSqliteCommitRequest(bc, x.data);
|
|
2051
2205
|
}
|
|
2206
|
+
function readToRivetSqliteCommitStageBeginRequest(bc) {
|
|
2207
|
+
return {
|
|
2208
|
+
requestId: bare.readU32(bc),
|
|
2209
|
+
data: readSqliteCommitStageBeginRequest(bc)
|
|
2210
|
+
};
|
|
2211
|
+
}
|
|
2212
|
+
function writeToRivetSqliteCommitStageBeginRequest(bc, x) {
|
|
2213
|
+
bare.writeU32(bc, x.requestId);
|
|
2214
|
+
writeSqliteCommitStageBeginRequest(bc, x.data);
|
|
2215
|
+
}
|
|
2216
|
+
function readToRivetSqliteCommitStageSegmentRequest(bc) {
|
|
2217
|
+
return {
|
|
2218
|
+
requestId: bare.readU32(bc),
|
|
2219
|
+
data: readSqliteCommitStageSegmentRequest(bc)
|
|
2220
|
+
};
|
|
2221
|
+
}
|
|
2222
|
+
function writeToRivetSqliteCommitStageSegmentRequest(bc, x) {
|
|
2223
|
+
bare.writeU32(bc, x.requestId);
|
|
2224
|
+
writeSqliteCommitStageSegmentRequest(bc, x.data);
|
|
2225
|
+
}
|
|
2226
|
+
function readToRivetSqliteCommitFinalizeRequest(bc) {
|
|
2227
|
+
return {
|
|
2228
|
+
requestId: bare.readU32(bc),
|
|
2229
|
+
data: readSqliteCommitFinalizeRequest(bc)
|
|
2230
|
+
};
|
|
2231
|
+
}
|
|
2232
|
+
function writeToRivetSqliteCommitFinalizeRequest(bc, x) {
|
|
2233
|
+
bare.writeU32(bc, x.requestId);
|
|
2234
|
+
writeSqliteCommitFinalizeRequest(bc, x.data);
|
|
2235
|
+
}
|
|
2052
2236
|
function readToRivetSqliteExecRequest(bc) {
|
|
2053
2237
|
return {
|
|
2054
2238
|
requestId: bare.readU32(bc),
|
|
@@ -2102,10 +2286,16 @@ function readToRivet(bc) {
|
|
|
2102
2286
|
case 8:
|
|
2103
2287
|
return { tag: "ToRivetSqliteCommitRequest", val: readToRivetSqliteCommitRequest(bc) };
|
|
2104
2288
|
case 9:
|
|
2105
|
-
return { tag: "
|
|
2289
|
+
return { tag: "ToRivetSqliteCommitStageBeginRequest", val: readToRivetSqliteCommitStageBeginRequest(bc) };
|
|
2106
2290
|
case 10:
|
|
2107
|
-
return { tag: "
|
|
2291
|
+
return { tag: "ToRivetSqliteCommitStageSegmentRequest", val: readToRivetSqliteCommitStageSegmentRequest(bc) };
|
|
2108
2292
|
case 11:
|
|
2293
|
+
return { tag: "ToRivetSqliteCommitFinalizeRequest", val: readToRivetSqliteCommitFinalizeRequest(bc) };
|
|
2294
|
+
case 12:
|
|
2295
|
+
return { tag: "ToRivetSqliteExecRequest", val: readToRivetSqliteExecRequest(bc) };
|
|
2296
|
+
case 13:
|
|
2297
|
+
return { tag: "ToRivetSqliteExecuteRequest", val: readToRivetSqliteExecuteRequest(bc) };
|
|
2298
|
+
case 14:
|
|
2109
2299
|
return { tag: "ToRivetSqliteExecuteBatchRequest", val: readToRivetSqliteExecuteBatchRequest(bc) };
|
|
2110
2300
|
default: {
|
|
2111
2301
|
bc.offset = offset;
|
|
@@ -2159,18 +2349,33 @@ function writeToRivet(bc, x) {
|
|
|
2159
2349
|
writeToRivetSqliteCommitRequest(bc, x.val);
|
|
2160
2350
|
break;
|
|
2161
2351
|
}
|
|
2162
|
-
case "
|
|
2352
|
+
case "ToRivetSqliteCommitStageBeginRequest": {
|
|
2163
2353
|
bare.writeU8(bc, 9);
|
|
2354
|
+
writeToRivetSqliteCommitStageBeginRequest(bc, x.val);
|
|
2355
|
+
break;
|
|
2356
|
+
}
|
|
2357
|
+
case "ToRivetSqliteCommitStageSegmentRequest": {
|
|
2358
|
+
bare.writeU8(bc, 10);
|
|
2359
|
+
writeToRivetSqliteCommitStageSegmentRequest(bc, x.val);
|
|
2360
|
+
break;
|
|
2361
|
+
}
|
|
2362
|
+
case "ToRivetSqliteCommitFinalizeRequest": {
|
|
2363
|
+
bare.writeU8(bc, 11);
|
|
2364
|
+
writeToRivetSqliteCommitFinalizeRequest(bc, x.val);
|
|
2365
|
+
break;
|
|
2366
|
+
}
|
|
2367
|
+
case "ToRivetSqliteExecRequest": {
|
|
2368
|
+
bare.writeU8(bc, 12);
|
|
2164
2369
|
writeToRivetSqliteExecRequest(bc, x.val);
|
|
2165
2370
|
break;
|
|
2166
2371
|
}
|
|
2167
2372
|
case "ToRivetSqliteExecuteRequest": {
|
|
2168
|
-
bare.writeU8(bc,
|
|
2373
|
+
bare.writeU8(bc, 13);
|
|
2169
2374
|
writeToRivetSqliteExecuteRequest(bc, x.val);
|
|
2170
2375
|
break;
|
|
2171
2376
|
}
|
|
2172
2377
|
case "ToRivetSqliteExecuteBatchRequest": {
|
|
2173
|
-
bare.writeU8(bc,
|
|
2378
|
+
bare.writeU8(bc, 14);
|
|
2174
2379
|
writeToRivetSqliteExecuteBatchRequest(bc, x.val);
|
|
2175
2380
|
break;
|
|
2176
2381
|
}
|
|
@@ -2268,6 +2473,36 @@ function writeToEnvoySqliteCommitResponse(bc, x) {
|
|
|
2268
2473
|
bare.writeU32(bc, x.requestId);
|
|
2269
2474
|
writeSqliteCommitResponse(bc, x.data);
|
|
2270
2475
|
}
|
|
2476
|
+
function readToEnvoySqliteCommitStageBeginResponse(bc) {
|
|
2477
|
+
return {
|
|
2478
|
+
requestId: bare.readU32(bc),
|
|
2479
|
+
data: readSqliteCommitStageBeginResponse(bc)
|
|
2480
|
+
};
|
|
2481
|
+
}
|
|
2482
|
+
function writeToEnvoySqliteCommitStageBeginResponse(bc, x) {
|
|
2483
|
+
bare.writeU32(bc, x.requestId);
|
|
2484
|
+
writeSqliteCommitStageBeginResponse(bc, x.data);
|
|
2485
|
+
}
|
|
2486
|
+
function readToEnvoySqliteCommitStageSegmentResponse(bc) {
|
|
2487
|
+
return {
|
|
2488
|
+
requestId: bare.readU32(bc),
|
|
2489
|
+
data: readSqliteCommitStageSegmentResponse(bc)
|
|
2490
|
+
};
|
|
2491
|
+
}
|
|
2492
|
+
function writeToEnvoySqliteCommitStageSegmentResponse(bc, x) {
|
|
2493
|
+
bare.writeU32(bc, x.requestId);
|
|
2494
|
+
writeSqliteCommitStageSegmentResponse(bc, x.data);
|
|
2495
|
+
}
|
|
2496
|
+
function readToEnvoySqliteCommitFinalizeResponse(bc) {
|
|
2497
|
+
return {
|
|
2498
|
+
requestId: bare.readU32(bc),
|
|
2499
|
+
data: readSqliteCommitFinalizeResponse(bc)
|
|
2500
|
+
};
|
|
2501
|
+
}
|
|
2502
|
+
function writeToEnvoySqliteCommitFinalizeResponse(bc, x) {
|
|
2503
|
+
bare.writeU32(bc, x.requestId);
|
|
2504
|
+
writeSqliteCommitFinalizeResponse(bc, x.data);
|
|
2505
|
+
}
|
|
2271
2506
|
function readToEnvoySqliteExecResponse(bc) {
|
|
2272
2507
|
return {
|
|
2273
2508
|
requestId: bare.readU32(bc),
|
|
@@ -2319,10 +2554,16 @@ function readToEnvoy(bc) {
|
|
|
2319
2554
|
case 7:
|
|
2320
2555
|
return { tag: "ToEnvoySqliteCommitResponse", val: readToEnvoySqliteCommitResponse(bc) };
|
|
2321
2556
|
case 8:
|
|
2322
|
-
return { tag: "
|
|
2557
|
+
return { tag: "ToEnvoySqliteCommitStageBeginResponse", val: readToEnvoySqliteCommitStageBeginResponse(bc) };
|
|
2323
2558
|
case 9:
|
|
2324
|
-
return { tag: "
|
|
2559
|
+
return { tag: "ToEnvoySqliteCommitStageSegmentResponse", val: readToEnvoySqliteCommitStageSegmentResponse(bc) };
|
|
2325
2560
|
case 10:
|
|
2561
|
+
return { tag: "ToEnvoySqliteCommitFinalizeResponse", val: readToEnvoySqliteCommitFinalizeResponse(bc) };
|
|
2562
|
+
case 11:
|
|
2563
|
+
return { tag: "ToEnvoySqliteExecResponse", val: readToEnvoySqliteExecResponse(bc) };
|
|
2564
|
+
case 12:
|
|
2565
|
+
return { tag: "ToEnvoySqliteExecuteResponse", val: readToEnvoySqliteExecuteResponse(bc) };
|
|
2566
|
+
case 13:
|
|
2326
2567
|
return { tag: "ToEnvoySqliteExecuteBatchResponse", val: readToEnvoySqliteExecuteBatchResponse(bc) };
|
|
2327
2568
|
default: {
|
|
2328
2569
|
bc.offset = offset;
|
|
@@ -2372,18 +2613,33 @@ function writeToEnvoy(bc, x) {
|
|
|
2372
2613
|
writeToEnvoySqliteCommitResponse(bc, x.val);
|
|
2373
2614
|
break;
|
|
2374
2615
|
}
|
|
2375
|
-
case "
|
|
2616
|
+
case "ToEnvoySqliteCommitStageBeginResponse": {
|
|
2376
2617
|
bare.writeU8(bc, 8);
|
|
2618
|
+
writeToEnvoySqliteCommitStageBeginResponse(bc, x.val);
|
|
2619
|
+
break;
|
|
2620
|
+
}
|
|
2621
|
+
case "ToEnvoySqliteCommitStageSegmentResponse": {
|
|
2622
|
+
bare.writeU8(bc, 9);
|
|
2623
|
+
writeToEnvoySqliteCommitStageSegmentResponse(bc, x.val);
|
|
2624
|
+
break;
|
|
2625
|
+
}
|
|
2626
|
+
case "ToEnvoySqliteCommitFinalizeResponse": {
|
|
2627
|
+
bare.writeU8(bc, 10);
|
|
2628
|
+
writeToEnvoySqliteCommitFinalizeResponse(bc, x.val);
|
|
2629
|
+
break;
|
|
2630
|
+
}
|
|
2631
|
+
case "ToEnvoySqliteExecResponse": {
|
|
2632
|
+
bare.writeU8(bc, 11);
|
|
2377
2633
|
writeToEnvoySqliteExecResponse(bc, x.val);
|
|
2378
2634
|
break;
|
|
2379
2635
|
}
|
|
2380
2636
|
case "ToEnvoySqliteExecuteResponse": {
|
|
2381
|
-
bare.writeU8(bc,
|
|
2637
|
+
bare.writeU8(bc, 12);
|
|
2382
2638
|
writeToEnvoySqliteExecuteResponse(bc, x.val);
|
|
2383
2639
|
break;
|
|
2384
2640
|
}
|
|
2385
2641
|
case "ToEnvoySqliteExecuteBatchResponse": {
|
|
2386
|
-
bare.writeU8(bc,
|
|
2642
|
+
bare.writeU8(bc, 13);
|
|
2387
2643
|
writeToEnvoySqliteExecuteBatchResponse(bc, x.val);
|
|
2388
2644
|
break;
|
|
2389
2645
|
}
|
|
@@ -2593,7 +2849,7 @@ function decodeToOutbound(bytes) {
|
|
|
2593
2849
|
function assert(condition, message) {
|
|
2594
2850
|
if (!condition) throw new Error(message ?? "Assertion failed");
|
|
2595
2851
|
}
|
|
2596
|
-
var VERSION =
|
|
2852
|
+
var VERSION = 8;
|
|
2597
2853
|
export {
|
|
2598
2854
|
HttpStreamAbortReasonKind,
|
|
2599
2855
|
StopActorReason,
|
|
@@ -2658,9 +2914,18 @@ export {
|
|
|
2658
2914
|
readSqliteBatchStatement,
|
|
2659
2915
|
readSqliteBindParam,
|
|
2660
2916
|
readSqliteColumnValue,
|
|
2917
|
+
readSqliteCommitFinalizeOk,
|
|
2918
|
+
readSqliteCommitFinalizeRequest,
|
|
2919
|
+
readSqliteCommitFinalizeResponse,
|
|
2661
2920
|
readSqliteCommitOk,
|
|
2662
2921
|
readSqliteCommitRequest,
|
|
2663
2922
|
readSqliteCommitResponse,
|
|
2923
|
+
readSqliteCommitStageBeginOk,
|
|
2924
|
+
readSqliteCommitStageBeginRequest,
|
|
2925
|
+
readSqliteCommitStageBeginResponse,
|
|
2926
|
+
readSqliteCommitStageSegmentOk,
|
|
2927
|
+
readSqliteCommitStageSegmentRequest,
|
|
2928
|
+
readSqliteCommitStageSegmentResponse,
|
|
2664
2929
|
readSqliteDirtyPage,
|
|
2665
2930
|
readSqliteErrorResponse,
|
|
2666
2931
|
readSqliteExecOk,
|
|
@@ -2699,7 +2964,10 @@ export {
|
|
|
2699
2964
|
readToEnvoyRequestChunk,
|
|
2700
2965
|
readToEnvoyRequestStart,
|
|
2701
2966
|
readToEnvoyResponseBodyWindowUpdate,
|
|
2967
|
+
readToEnvoySqliteCommitFinalizeResponse,
|
|
2702
2968
|
readToEnvoySqliteCommitResponse,
|
|
2969
|
+
readToEnvoySqliteCommitStageBeginResponse,
|
|
2970
|
+
readToEnvoySqliteCommitStageSegmentResponse,
|
|
2703
2971
|
readToEnvoySqliteExecResponse,
|
|
2704
2972
|
readToEnvoySqliteExecuteBatchResponse,
|
|
2705
2973
|
readToEnvoySqliteExecuteResponse,
|
|
@@ -2723,7 +2991,10 @@ export {
|
|
|
2723
2991
|
readToRivetResponseAbort,
|
|
2724
2992
|
readToRivetResponseChunk,
|
|
2725
2993
|
readToRivetResponseStart,
|
|
2994
|
+
readToRivetSqliteCommitFinalizeRequest,
|
|
2726
2995
|
readToRivetSqliteCommitRequest,
|
|
2996
|
+
readToRivetSqliteCommitStageBeginRequest,
|
|
2997
|
+
readToRivetSqliteCommitStageSegmentRequest,
|
|
2727
2998
|
readToRivetSqliteExecRequest,
|
|
2728
2999
|
readToRivetSqliteExecuteBatchRequest,
|
|
2729
3000
|
readToRivetSqliteExecuteRequest,
|
|
@@ -2781,9 +3052,18 @@ export {
|
|
|
2781
3052
|
writeSqliteBatchStatement,
|
|
2782
3053
|
writeSqliteBindParam,
|
|
2783
3054
|
writeSqliteColumnValue,
|
|
3055
|
+
writeSqliteCommitFinalizeOk,
|
|
3056
|
+
writeSqliteCommitFinalizeRequest,
|
|
3057
|
+
writeSqliteCommitFinalizeResponse,
|
|
2784
3058
|
writeSqliteCommitOk,
|
|
2785
3059
|
writeSqliteCommitRequest,
|
|
2786
3060
|
writeSqliteCommitResponse,
|
|
3061
|
+
writeSqliteCommitStageBeginOk,
|
|
3062
|
+
writeSqliteCommitStageBeginRequest,
|
|
3063
|
+
writeSqliteCommitStageBeginResponse,
|
|
3064
|
+
writeSqliteCommitStageSegmentOk,
|
|
3065
|
+
writeSqliteCommitStageSegmentRequest,
|
|
3066
|
+
writeSqliteCommitStageSegmentResponse,
|
|
2787
3067
|
writeSqliteDirtyPage,
|
|
2788
3068
|
writeSqliteErrorResponse,
|
|
2789
3069
|
writeSqliteExecOk,
|
|
@@ -2822,7 +3102,10 @@ export {
|
|
|
2822
3102
|
writeToEnvoyRequestChunk,
|
|
2823
3103
|
writeToEnvoyRequestStart,
|
|
2824
3104
|
writeToEnvoyResponseBodyWindowUpdate,
|
|
3105
|
+
writeToEnvoySqliteCommitFinalizeResponse,
|
|
2825
3106
|
writeToEnvoySqliteCommitResponse,
|
|
3107
|
+
writeToEnvoySqliteCommitStageBeginResponse,
|
|
3108
|
+
writeToEnvoySqliteCommitStageSegmentResponse,
|
|
2826
3109
|
writeToEnvoySqliteExecResponse,
|
|
2827
3110
|
writeToEnvoySqliteExecuteBatchResponse,
|
|
2828
3111
|
writeToEnvoySqliteExecuteResponse,
|
|
@@ -2846,7 +3129,10 @@ export {
|
|
|
2846
3129
|
writeToRivetResponseAbort,
|
|
2847
3130
|
writeToRivetResponseChunk,
|
|
2848
3131
|
writeToRivetResponseStart,
|
|
3132
|
+
writeToRivetSqliteCommitFinalizeRequest,
|
|
2849
3133
|
writeToRivetSqliteCommitRequest,
|
|
3134
|
+
writeToRivetSqliteCommitStageBeginRequest,
|
|
3135
|
+
writeToRivetSqliteCommitStageSegmentRequest,
|
|
2850
3136
|
writeToRivetSqliteExecRequest,
|
|
2851
3137
|
writeToRivetSqliteExecuteBatchRequest,
|
|
2852
3138
|
writeToRivetSqliteExecuteRequest,
|