@rivetkit/engine-envoy-protocol 0.0.0-fix-ws-size.7d55b4f → 0.0.0-http-body-streaming.064e07d
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 +77 -4
- package/dist/index.js +322 -65
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -328,6 +328,20 @@ type SqliteExecuteRequest = {
|
|
|
328
328
|
};
|
|
329
329
|
declare function readSqliteExecuteRequest(bc: bare.ByteCursor): SqliteExecuteRequest;
|
|
330
330
|
declare function writeSqliteExecuteRequest(bc: bare.ByteCursor, x: SqliteExecuteRequest): void;
|
|
331
|
+
type SqliteBatchStatement = {
|
|
332
|
+
readonly sql: string;
|
|
333
|
+
readonly params: readonly SqliteBindParam[] | null;
|
|
334
|
+
};
|
|
335
|
+
declare function readSqliteBatchStatement(bc: bare.ByteCursor): SqliteBatchStatement;
|
|
336
|
+
declare function writeSqliteBatchStatement(bc: bare.ByteCursor, x: SqliteBatchStatement): void;
|
|
337
|
+
type SqliteExecuteBatchRequest = {
|
|
338
|
+
readonly namespaceId: Id;
|
|
339
|
+
readonly actorId: Id;
|
|
340
|
+
readonly generation: SqliteGeneration;
|
|
341
|
+
readonly statements: readonly SqliteBatchStatement[];
|
|
342
|
+
};
|
|
343
|
+
declare function readSqliteExecuteBatchRequest(bc: bare.ByteCursor): SqliteExecuteBatchRequest;
|
|
344
|
+
declare function writeSqliteExecuteBatchRequest(bc: bare.ByteCursor, x: SqliteExecuteBatchRequest): void;
|
|
331
345
|
type SqliteExecOk = {
|
|
332
346
|
readonly result: SqliteQueryResult;
|
|
333
347
|
};
|
|
@@ -338,6 +352,11 @@ type SqliteExecuteOk = {
|
|
|
338
352
|
};
|
|
339
353
|
declare function readSqliteExecuteOk(bc: bare.ByteCursor): SqliteExecuteOk;
|
|
340
354
|
declare function writeSqliteExecuteOk(bc: bare.ByteCursor, x: SqliteExecuteOk): void;
|
|
355
|
+
type SqliteExecuteBatchOk = {
|
|
356
|
+
readonly results: readonly SqliteExecuteResult[];
|
|
357
|
+
};
|
|
358
|
+
declare function readSqliteExecuteBatchOk(bc: bare.ByteCursor): SqliteExecuteBatchOk;
|
|
359
|
+
declare function writeSqliteExecuteBatchOk(bc: bare.ByteCursor, x: SqliteExecuteBatchOk): void;
|
|
341
360
|
type SqliteExecResponse = {
|
|
342
361
|
readonly tag: "SqliteExecOk";
|
|
343
362
|
readonly val: SqliteExecOk;
|
|
@@ -356,6 +375,15 @@ type SqliteExecuteResponse = {
|
|
|
356
375
|
};
|
|
357
376
|
declare function readSqliteExecuteResponse(bc: bare.ByteCursor): SqliteExecuteResponse;
|
|
358
377
|
declare function writeSqliteExecuteResponse(bc: bare.ByteCursor, x: SqliteExecuteResponse): void;
|
|
378
|
+
type SqliteExecuteBatchResponse = {
|
|
379
|
+
readonly tag: "SqliteExecuteBatchOk";
|
|
380
|
+
readonly val: SqliteExecuteBatchOk;
|
|
381
|
+
} | {
|
|
382
|
+
readonly tag: "SqliteErrorResponse";
|
|
383
|
+
readonly val: SqliteErrorResponse;
|
|
384
|
+
};
|
|
385
|
+
declare function readSqliteExecuteBatchResponse(bc: bare.ByteCursor): SqliteExecuteBatchResponse;
|
|
386
|
+
declare function writeSqliteExecuteBatchResponse(bc: bare.ByteCursor, x: SqliteExecuteBatchResponse): void;
|
|
359
387
|
/**
|
|
360
388
|
* Core
|
|
361
389
|
*/
|
|
@@ -559,7 +587,30 @@ type ToEnvoyRequestChunk = {
|
|
|
559
587
|
};
|
|
560
588
|
declare function readToEnvoyRequestChunk(bc: bare.ByteCursor): ToEnvoyRequestChunk;
|
|
561
589
|
declare function writeToEnvoyRequestChunk(bc: bare.ByteCursor, x: ToEnvoyRequestChunk): void;
|
|
562
|
-
|
|
590
|
+
declare enum HttpStreamAbortReasonKind {
|
|
591
|
+
Unknown = "Unknown",
|
|
592
|
+
ClientDisconnect = "ClientDisconnect",
|
|
593
|
+
HandlerError = "HandlerError",
|
|
594
|
+
IdleTimeout = "IdleTimeout",
|
|
595
|
+
Overloaded = "Overloaded",
|
|
596
|
+
BodyTooLarge = "BodyTooLarge",
|
|
597
|
+
OutOfMemory = "OutOfMemory",
|
|
598
|
+
Shutdown = "Shutdown",
|
|
599
|
+
InternalError = "InternalError"
|
|
600
|
+
}
|
|
601
|
+
declare function readHttpStreamAbortReasonKind(bc: bare.ByteCursor): HttpStreamAbortReasonKind;
|
|
602
|
+
declare function writeHttpStreamAbortReasonKind(bc: bare.ByteCursor, x: HttpStreamAbortReasonKind): void;
|
|
603
|
+
type HttpStreamAbortReason = {
|
|
604
|
+
readonly kind: HttpStreamAbortReasonKind;
|
|
605
|
+
readonly detail: string | null;
|
|
606
|
+
};
|
|
607
|
+
declare function readHttpStreamAbortReason(bc: bare.ByteCursor): HttpStreamAbortReason;
|
|
608
|
+
declare function writeHttpStreamAbortReason(bc: bare.ByteCursor, x: HttpStreamAbortReason): void;
|
|
609
|
+
type ToEnvoyRequestAbort = {
|
|
610
|
+
readonly reason: HttpStreamAbortReason;
|
|
611
|
+
};
|
|
612
|
+
declare function readToEnvoyRequestAbort(bc: bare.ByteCursor): ToEnvoyRequestAbort;
|
|
613
|
+
declare function writeToEnvoyRequestAbort(bc: bare.ByteCursor, x: ToEnvoyRequestAbort): void;
|
|
563
614
|
type ToRivetResponseStart = {
|
|
564
615
|
readonly status: u16;
|
|
565
616
|
readonly headers: ReadonlyMap<string, string>;
|
|
@@ -574,7 +625,11 @@ type ToRivetResponseChunk = {
|
|
|
574
625
|
};
|
|
575
626
|
declare function readToRivetResponseChunk(bc: bare.ByteCursor): ToRivetResponseChunk;
|
|
576
627
|
declare function writeToRivetResponseChunk(bc: bare.ByteCursor, x: ToRivetResponseChunk): void;
|
|
577
|
-
type ToRivetResponseAbort =
|
|
628
|
+
type ToRivetResponseAbort = {
|
|
629
|
+
readonly reason: HttpStreamAbortReason;
|
|
630
|
+
};
|
|
631
|
+
declare function readToRivetResponseAbort(bc: bare.ByteCursor): ToRivetResponseAbort;
|
|
632
|
+
declare function writeToRivetResponseAbort(bc: bare.ByteCursor, x: ToRivetResponseAbort): void;
|
|
578
633
|
/**
|
|
579
634
|
* WebSocket
|
|
580
635
|
*/
|
|
@@ -758,6 +813,12 @@ type ToRivetSqliteExecuteRequest = {
|
|
|
758
813
|
};
|
|
759
814
|
declare function readToRivetSqliteExecuteRequest(bc: bare.ByteCursor): ToRivetSqliteExecuteRequest;
|
|
760
815
|
declare function writeToRivetSqliteExecuteRequest(bc: bare.ByteCursor, x: ToRivetSqliteExecuteRequest): void;
|
|
816
|
+
type ToRivetSqliteExecuteBatchRequest = {
|
|
817
|
+
readonly requestId: u32;
|
|
818
|
+
readonly data: SqliteExecuteBatchRequest;
|
|
819
|
+
};
|
|
820
|
+
declare function readToRivetSqliteExecuteBatchRequest(bc: bare.ByteCursor): ToRivetSqliteExecuteBatchRequest;
|
|
821
|
+
declare function writeToRivetSqliteExecuteBatchRequest(bc: bare.ByteCursor, x: ToRivetSqliteExecuteBatchRequest): void;
|
|
761
822
|
type ToRivet = {
|
|
762
823
|
readonly tag: "ToRivetMetadata";
|
|
763
824
|
readonly val: ToRivetMetadata;
|
|
@@ -791,6 +852,9 @@ type ToRivet = {
|
|
|
791
852
|
} | {
|
|
792
853
|
readonly tag: "ToRivetSqliteExecuteRequest";
|
|
793
854
|
readonly val: ToRivetSqliteExecuteRequest;
|
|
855
|
+
} | {
|
|
856
|
+
readonly tag: "ToRivetSqliteExecuteBatchRequest";
|
|
857
|
+
readonly val: ToRivetSqliteExecuteBatchRequest;
|
|
794
858
|
};
|
|
795
859
|
declare function readToRivet(bc: bare.ByteCursor): ToRivet;
|
|
796
860
|
declare function writeToRivet(bc: bare.ByteCursor, x: ToRivet): void;
|
|
@@ -849,6 +913,12 @@ type ToEnvoySqliteExecuteResponse = {
|
|
|
849
913
|
};
|
|
850
914
|
declare function readToEnvoySqliteExecuteResponse(bc: bare.ByteCursor): ToEnvoySqliteExecuteResponse;
|
|
851
915
|
declare function writeToEnvoySqliteExecuteResponse(bc: bare.ByteCursor, x: ToEnvoySqliteExecuteResponse): void;
|
|
916
|
+
type ToEnvoySqliteExecuteBatchResponse = {
|
|
917
|
+
readonly requestId: u32;
|
|
918
|
+
readonly data: SqliteExecuteBatchResponse;
|
|
919
|
+
};
|
|
920
|
+
declare function readToEnvoySqliteExecuteBatchResponse(bc: bare.ByteCursor): ToEnvoySqliteExecuteBatchResponse;
|
|
921
|
+
declare function writeToEnvoySqliteExecuteBatchResponse(bc: bare.ByteCursor, x: ToEnvoySqliteExecuteBatchResponse): void;
|
|
852
922
|
type ToEnvoy = {
|
|
853
923
|
readonly tag: "ToEnvoyInit";
|
|
854
924
|
readonly val: ToEnvoyInit;
|
|
@@ -879,6 +949,9 @@ type ToEnvoy = {
|
|
|
879
949
|
} | {
|
|
880
950
|
readonly tag: "ToEnvoySqliteExecuteResponse";
|
|
881
951
|
readonly val: ToEnvoySqliteExecuteResponse;
|
|
952
|
+
} | {
|
|
953
|
+
readonly tag: "ToEnvoySqliteExecuteBatchResponse";
|
|
954
|
+
readonly val: ToEnvoySqliteExecuteBatchResponse;
|
|
882
955
|
};
|
|
883
956
|
declare function readToEnvoy(bc: bare.ByteCursor): ToEnvoy;
|
|
884
957
|
declare function writeToEnvoy(bc: bare.ByteCursor, x: ToEnvoy): void;
|
|
@@ -954,6 +1027,6 @@ declare function readToOutbound(bc: bare.ByteCursor): ToOutbound;
|
|
|
954
1027
|
declare function writeToOutbound(bc: bare.ByteCursor, x: ToOutbound): void;
|
|
955
1028
|
declare function encodeToOutbound(x: ToOutbound, config?: Partial<bare.Config>): Uint8Array;
|
|
956
1029
|
declare function decodeToOutbound(bytes: Uint8Array): ToOutbound;
|
|
957
|
-
declare const VERSION =
|
|
1030
|
+
declare const VERSION = 7;
|
|
958
1031
|
|
|
959
|
-
export { type ActorCheckpoint, type ActorCommandKeyData, type ActorConfig, type ActorIntent, type ActorIntentSleep, type ActorIntentStop, type ActorName, type ActorState, type ActorStateRunning, type ActorStateStopped, type Command, type CommandStartActor, type CommandStopActor, type CommandWrapper, type Event, type EventActorIntent, type EventActorSetAlarm, type EventActorStateUpdate, type EventWrapper, type GatewayId, type HibernatingRequest, type Id, type Json, type KvDeleteRangeRequest, type KvDeleteRequest, type KvDeleteResponse, type KvDropRequest, type KvDropResponse, type KvErrorResponse, type KvGetRequest, type KvGetResponse, type KvKey, type KvListAllQuery, type KvListPrefixQuery, type KvListQuery, type KvListRangeQuery, type KvListRequest, type KvListResponse, type KvMetadata, type KvPutRequest, type KvPutResponse, type KvRequestData, type KvResponseData, type KvValue, type MessageId, type MessageIndex, type PreloadedKv, type PreloadedKvEntry, type ProtocolMetadata, type RequestId, type SqliteBindParam, type SqliteColumnValue, type SqliteCommitOk, type SqliteCommitRequest, type SqliteCommitResponse, type SqliteDirtyPage, type SqliteErrorResponse, type SqliteExecOk, type SqliteExecRequest, type SqliteExecResponse, type SqliteExecuteOk, type SqliteExecuteRequest, type SqliteExecuteResponse, type SqliteExecuteResult, type SqliteFetchedPage, type SqliteGeneration, type SqliteGetPagesOk, type SqliteGetPagesRequest, type SqliteGetPagesResponse, type SqlitePageBytes, type SqlitePgno, type SqliteQueryResult, type SqliteValueBlob, type SqliteValueFloat, type SqliteValueInteger, type SqliteValueNull, type SqliteValueText, StopActorReason, StopCode, type ToEnvoy, type ToEnvoyAckEvents, type ToEnvoyCommands, type ToEnvoyConn, type ToEnvoyConnClose, type ToEnvoyConnPing, type ToEnvoyInit, type ToEnvoyKvResponse, type ToEnvoyPing, type ToEnvoyRequestAbort, type ToEnvoyRequestChunk, type ToEnvoyRequestStart, type ToEnvoySqliteCommitResponse, type ToEnvoySqliteExecResponse, type ToEnvoySqliteExecuteResponse, type ToEnvoySqliteGetPagesResponse, type ToEnvoyTunnelMessage, type ToEnvoyTunnelMessageKind, type ToEnvoyWebSocketClose, type ToEnvoyWebSocketMessage, type ToEnvoyWebSocketOpen, type ToGateway, type ToGatewayPong, type ToOutbound, type ToOutboundActorStart, type ToRivet, type ToRivetAckCommands, type ToRivetEvents, type ToRivetKvRequest, type ToRivetMetadata, type ToRivetPong, type ToRivetResponseAbort, type ToRivetResponseChunk, type ToRivetResponseStart, type ToRivetSqliteCommitRequest, type ToRivetSqliteExecRequest, type ToRivetSqliteExecuteRequest, type ToRivetSqliteGetPagesRequest, type ToRivetStopping, type ToRivetTunnelMessage, type ToRivetTunnelMessageKind, type ToRivetWebSocketClose, type ToRivetWebSocketMessage, type ToRivetWebSocketMessageAck, type ToRivetWebSocketOpen, VERSION, decodeActorCommandKeyData, decodeToEnvoy, decodeToEnvoyConn, decodeToGateway, decodeToOutbound, decodeToRivet, encodeActorCommandKeyData, encodeToEnvoy, encodeToEnvoyConn, encodeToGateway, encodeToOutbound, encodeToRivet, type i64, readActorCheckpoint, readActorCommandKeyData, readActorConfig, readActorIntent, readActorName, readActorState, readActorStateStopped, readCommand, readCommandStartActor, readCommandStopActor, readCommandWrapper, readEvent, readEventActorIntent, readEventActorSetAlarm, readEventActorStateUpdate, readEventWrapper, readGatewayId, readHibernatingRequest, readId, readJson, readKvDeleteRangeRequest, readKvDeleteRequest, readKvErrorResponse, readKvGetRequest, readKvGetResponse, readKvKey, readKvListPrefixQuery, readKvListQuery, readKvListRangeQuery, readKvListRequest, readKvListResponse, readKvMetadata, readKvPutRequest, readKvRequestData, readKvResponseData, readKvValue, readMessageId, readMessageIndex, readPreloadedKv, readPreloadedKvEntry, readProtocolMetadata, readRequestId, readSqliteBindParam, readSqliteColumnValue, readSqliteCommitOk, readSqliteCommitRequest, readSqliteCommitResponse, readSqliteDirtyPage, readSqliteErrorResponse, readSqliteExecOk, readSqliteExecRequest, readSqliteExecResponse, readSqliteExecuteOk, readSqliteExecuteRequest, readSqliteExecuteResponse, readSqliteExecuteResult, readSqliteFetchedPage, readSqliteGeneration, readSqliteGetPagesOk, readSqliteGetPagesRequest, readSqliteGetPagesResponse, readSqlitePageBytes, readSqlitePgno, readSqliteQueryResult, readSqliteValueBlob, readSqliteValueFloat, readSqliteValueInteger, readSqliteValueText, readStopActorReason, readStopCode, readToEnvoy, readToEnvoyAckEvents, readToEnvoyCommands, readToEnvoyConn, readToEnvoyConnPing, readToEnvoyInit, readToEnvoyKvResponse, readToEnvoyPing, readToEnvoyRequestChunk, readToEnvoyRequestStart, readToEnvoySqliteCommitResponse, readToEnvoySqliteExecResponse, readToEnvoySqliteExecuteResponse, readToEnvoySqliteGetPagesResponse, readToEnvoyTunnelMessage, readToEnvoyTunnelMessageKind, readToEnvoyWebSocketClose, readToEnvoyWebSocketMessage, readToEnvoyWebSocketOpen, readToGateway, readToGatewayPong, readToOutbound, readToOutboundActorStart, readToRivet, readToRivetAckCommands, readToRivetEvents, readToRivetKvRequest, readToRivetMetadata, readToRivetPong, readToRivetResponseChunk, readToRivetResponseStart, readToRivetSqliteCommitRequest, readToRivetSqliteExecRequest, readToRivetSqliteExecuteRequest, readToRivetSqliteGetPagesRequest, readToRivetTunnelMessage, readToRivetTunnelMessageKind, readToRivetWebSocketClose, readToRivetWebSocketMessage, readToRivetWebSocketMessageAck, readToRivetWebSocketOpen, type u16, type u32, type u64, writeActorCheckpoint, writeActorCommandKeyData, writeActorConfig, writeActorIntent, writeActorName, writeActorState, writeActorStateStopped, writeCommand, writeCommandStartActor, writeCommandStopActor, writeCommandWrapper, writeEvent, writeEventActorIntent, writeEventActorSetAlarm, writeEventActorStateUpdate, writeEventWrapper, writeGatewayId, writeHibernatingRequest, writeId, writeJson, writeKvDeleteRangeRequest, writeKvDeleteRequest, writeKvErrorResponse, writeKvGetRequest, writeKvGetResponse, writeKvKey, writeKvListPrefixQuery, writeKvListQuery, writeKvListRangeQuery, writeKvListRequest, writeKvListResponse, writeKvMetadata, writeKvPutRequest, writeKvRequestData, writeKvResponseData, writeKvValue, writeMessageId, writeMessageIndex, writePreloadedKv, writePreloadedKvEntry, writeProtocolMetadata, writeRequestId, writeSqliteBindParam, writeSqliteColumnValue, writeSqliteCommitOk, writeSqliteCommitRequest, writeSqliteCommitResponse, writeSqliteDirtyPage, writeSqliteErrorResponse, writeSqliteExecOk, writeSqliteExecRequest, writeSqliteExecResponse, writeSqliteExecuteOk, writeSqliteExecuteRequest, writeSqliteExecuteResponse, writeSqliteExecuteResult, writeSqliteFetchedPage, writeSqliteGeneration, writeSqliteGetPagesOk, writeSqliteGetPagesRequest, writeSqliteGetPagesResponse, writeSqlitePageBytes, writeSqlitePgno, writeSqliteQueryResult, writeSqliteValueBlob, writeSqliteValueFloat, writeSqliteValueInteger, writeSqliteValueText, writeStopActorReason, writeStopCode, writeToEnvoy, writeToEnvoyAckEvents, writeToEnvoyCommands, writeToEnvoyConn, writeToEnvoyConnPing, writeToEnvoyInit, writeToEnvoyKvResponse, writeToEnvoyPing, writeToEnvoyRequestChunk, writeToEnvoyRequestStart, writeToEnvoySqliteCommitResponse, writeToEnvoySqliteExecResponse, writeToEnvoySqliteExecuteResponse, writeToEnvoySqliteGetPagesResponse, writeToEnvoyTunnelMessage, writeToEnvoyTunnelMessageKind, writeToEnvoyWebSocketClose, writeToEnvoyWebSocketMessage, writeToEnvoyWebSocketOpen, writeToGateway, writeToGatewayPong, writeToOutbound, writeToOutboundActorStart, writeToRivet, writeToRivetAckCommands, writeToRivetEvents, writeToRivetKvRequest, writeToRivetMetadata, writeToRivetPong, writeToRivetResponseChunk, writeToRivetResponseStart, writeToRivetSqliteCommitRequest, writeToRivetSqliteExecRequest, writeToRivetSqliteExecuteRequest, writeToRivetSqliteGetPagesRequest, writeToRivetTunnelMessage, writeToRivetTunnelMessageKind, writeToRivetWebSocketClose, writeToRivetWebSocketMessage, writeToRivetWebSocketMessageAck, writeToRivetWebSocketOpen };
|
|
1032
|
+
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 ToEnvoyRequestChunk, type ToEnvoyRequestStart, type ToEnvoySqliteCommitResponse, type ToEnvoySqliteExecResponse, type ToEnvoySqliteExecuteBatchResponse, type ToEnvoySqliteExecuteResponse, type ToEnvoySqliteGetPagesResponse, type ToEnvoyTunnelMessage, type ToEnvoyTunnelMessageKind, type ToEnvoyWebSocketClose, type ToEnvoyWebSocketMessage, type ToEnvoyWebSocketOpen, type ToGateway, type ToGatewayPong, type ToOutbound, type ToOutboundActorStart, type ToRivet, type ToRivetAckCommands, type ToRivetEvents, type ToRivetKvRequest, type ToRivetMetadata, type ToRivetPong, type ToRivetResponseAbort, type ToRivetResponseChunk, type ToRivetResponseStart, type ToRivetSqliteCommitRequest, type ToRivetSqliteExecRequest, type ToRivetSqliteExecuteBatchRequest, type ToRivetSqliteExecuteRequest, type ToRivetSqliteGetPagesRequest, type ToRivetStopping, type ToRivetTunnelMessage, type ToRivetTunnelMessageKind, type ToRivetWebSocketClose, type ToRivetWebSocketMessage, type ToRivetWebSocketMessageAck, type ToRivetWebSocketOpen, VERSION, decodeActorCommandKeyData, decodeToEnvoy, decodeToEnvoyConn, decodeToGateway, decodeToOutbound, decodeToRivet, encodeActorCommandKeyData, encodeToEnvoy, encodeToEnvoyConn, encodeToGateway, encodeToOutbound, encodeToRivet, type i64, readActorCheckpoint, readActorCommandKeyData, readActorConfig, readActorIntent, readActorName, readActorState, readActorStateStopped, readCommand, readCommandStartActor, readCommandStopActor, readCommandWrapper, readEvent, readEventActorIntent, readEventActorSetAlarm, readEventActorStateUpdate, readEventWrapper, readGatewayId, readHibernatingRequest, 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, readToEnvoySqliteCommitResponse, readToEnvoySqliteExecResponse, readToEnvoySqliteExecuteBatchResponse, readToEnvoySqliteExecuteResponse, readToEnvoySqliteGetPagesResponse, readToEnvoyTunnelMessage, readToEnvoyTunnelMessageKind, readToEnvoyWebSocketClose, readToEnvoyWebSocketMessage, readToEnvoyWebSocketOpen, readToGateway, readToGatewayPong, readToOutbound, readToOutboundActorStart, readToRivet, readToRivetAckCommands, readToRivetEvents, readToRivetKvRequest, readToRivetMetadata, readToRivetPong, 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, writeToEnvoySqliteCommitResponse, writeToEnvoySqliteExecResponse, writeToEnvoySqliteExecuteBatchResponse, writeToEnvoySqliteExecuteResponse, writeToEnvoySqliteGetPagesResponse, writeToEnvoyTunnelMessage, writeToEnvoyTunnelMessageKind, writeToEnvoyWebSocketClose, writeToEnvoyWebSocketMessage, writeToEnvoyWebSocketOpen, writeToGateway, writeToGatewayPong, writeToOutbound, writeToOutboundActorStart, writeToRivet, writeToRivetAckCommands, writeToRivetEvents, writeToRivetKvRequest, writeToRivetMetadata, writeToRivetPong, writeToRivetResponseAbort, writeToRivetResponseChunk, writeToRivetResponseStart, writeToRivetSqliteCommitRequest, writeToRivetSqliteExecRequest, writeToRivetSqliteExecuteBatchRequest, writeToRivetSqliteExecuteRequest, writeToRivetSqliteGetPagesRequest, writeToRivetTunnelMessage, writeToRivetTunnelMessageKind, writeToRivetWebSocketClose, writeToRivetWebSocketMessage, writeToRivetWebSocketMessageAck, writeToRivetWebSocketOpen };
|
package/dist/index.js
CHANGED
|
@@ -853,6 +853,47 @@ function writeSqliteExecuteRequest(bc, x) {
|
|
|
853
853
|
bare.writeString(bc, x.sql);
|
|
854
854
|
write14(bc, x.params);
|
|
855
855
|
}
|
|
856
|
+
function readSqliteBatchStatement(bc) {
|
|
857
|
+
return {
|
|
858
|
+
sql: bare.readString(bc),
|
|
859
|
+
params: read14(bc)
|
|
860
|
+
};
|
|
861
|
+
}
|
|
862
|
+
function writeSqliteBatchStatement(bc, x) {
|
|
863
|
+
bare.writeString(bc, x.sql);
|
|
864
|
+
write14(bc, x.params);
|
|
865
|
+
}
|
|
866
|
+
function read15(bc) {
|
|
867
|
+
const len = bare.readUintSafe(bc);
|
|
868
|
+
if (len === 0) {
|
|
869
|
+
return [];
|
|
870
|
+
}
|
|
871
|
+
const result = [readSqliteBatchStatement(bc)];
|
|
872
|
+
for (let i = 1; i < len; i++) {
|
|
873
|
+
result[i] = readSqliteBatchStatement(bc);
|
|
874
|
+
}
|
|
875
|
+
return result;
|
|
876
|
+
}
|
|
877
|
+
function write15(bc, x) {
|
|
878
|
+
bare.writeUintSafe(bc, x.length);
|
|
879
|
+
for (let i = 0; i < x.length; i++) {
|
|
880
|
+
writeSqliteBatchStatement(bc, x[i]);
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
function readSqliteExecuteBatchRequest(bc) {
|
|
884
|
+
return {
|
|
885
|
+
namespaceId: readId(bc),
|
|
886
|
+
actorId: readId(bc),
|
|
887
|
+
generation: readSqliteGeneration(bc),
|
|
888
|
+
statements: read15(bc)
|
|
889
|
+
};
|
|
890
|
+
}
|
|
891
|
+
function writeSqliteExecuteBatchRequest(bc, x) {
|
|
892
|
+
writeId(bc, x.namespaceId);
|
|
893
|
+
writeId(bc, x.actorId);
|
|
894
|
+
writeSqliteGeneration(bc, x.generation);
|
|
895
|
+
write15(bc, x.statements);
|
|
896
|
+
}
|
|
856
897
|
function readSqliteExecOk(bc) {
|
|
857
898
|
return {
|
|
858
899
|
result: readSqliteQueryResult(bc)
|
|
@@ -869,6 +910,31 @@ function readSqliteExecuteOk(bc) {
|
|
|
869
910
|
function writeSqliteExecuteOk(bc, x) {
|
|
870
911
|
writeSqliteExecuteResult(bc, x.result);
|
|
871
912
|
}
|
|
913
|
+
function read16(bc) {
|
|
914
|
+
const len = bare.readUintSafe(bc);
|
|
915
|
+
if (len === 0) {
|
|
916
|
+
return [];
|
|
917
|
+
}
|
|
918
|
+
const result = [readSqliteExecuteResult(bc)];
|
|
919
|
+
for (let i = 1; i < len; i++) {
|
|
920
|
+
result[i] = readSqliteExecuteResult(bc);
|
|
921
|
+
}
|
|
922
|
+
return result;
|
|
923
|
+
}
|
|
924
|
+
function write16(bc, x) {
|
|
925
|
+
bare.writeUintSafe(bc, x.length);
|
|
926
|
+
for (let i = 0; i < x.length; i++) {
|
|
927
|
+
writeSqliteExecuteResult(bc, x[i]);
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
function readSqliteExecuteBatchOk(bc) {
|
|
931
|
+
return {
|
|
932
|
+
results: read16(bc)
|
|
933
|
+
};
|
|
934
|
+
}
|
|
935
|
+
function writeSqliteExecuteBatchOk(bc, x) {
|
|
936
|
+
write16(bc, x.results);
|
|
937
|
+
}
|
|
872
938
|
function readSqliteExecResponse(bc) {
|
|
873
939
|
const offset = bc.offset;
|
|
874
940
|
const tag = bare.readU8(bc);
|
|
@@ -925,6 +991,34 @@ function writeSqliteExecuteResponse(bc, x) {
|
|
|
925
991
|
}
|
|
926
992
|
}
|
|
927
993
|
}
|
|
994
|
+
function readSqliteExecuteBatchResponse(bc) {
|
|
995
|
+
const offset = bc.offset;
|
|
996
|
+
const tag = bare.readU8(bc);
|
|
997
|
+
switch (tag) {
|
|
998
|
+
case 0:
|
|
999
|
+
return { tag: "SqliteExecuteBatchOk", val: readSqliteExecuteBatchOk(bc) };
|
|
1000
|
+
case 1:
|
|
1001
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
1002
|
+
default: {
|
|
1003
|
+
bc.offset = offset;
|
|
1004
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
function writeSqliteExecuteBatchResponse(bc, x) {
|
|
1009
|
+
switch (x.tag) {
|
|
1010
|
+
case "SqliteExecuteBatchOk": {
|
|
1011
|
+
bare.writeU8(bc, 0);
|
|
1012
|
+
writeSqliteExecuteBatchOk(bc, x.val);
|
|
1013
|
+
break;
|
|
1014
|
+
}
|
|
1015
|
+
case "SqliteErrorResponse": {
|
|
1016
|
+
bare.writeU8(bc, 1);
|
|
1017
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
1018
|
+
break;
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
928
1022
|
var StopCode = /* @__PURE__ */ ((StopCode2) => {
|
|
929
1023
|
StopCode2["Ok"] = "Ok";
|
|
930
1024
|
StopCode2["Error"] = "Error";
|
|
@@ -964,19 +1058,19 @@ function readActorName(bc) {
|
|
|
964
1058
|
function writeActorName(bc, x) {
|
|
965
1059
|
writeJson(bc, x.metadata);
|
|
966
1060
|
}
|
|
967
|
-
function
|
|
1061
|
+
function read17(bc) {
|
|
968
1062
|
return bare.readBool(bc) ? bare.readString(bc) : null;
|
|
969
1063
|
}
|
|
970
|
-
function
|
|
1064
|
+
function write17(bc, x) {
|
|
971
1065
|
bare.writeBool(bc, x != null);
|
|
972
1066
|
if (x != null) {
|
|
973
1067
|
bare.writeString(bc, x);
|
|
974
1068
|
}
|
|
975
1069
|
}
|
|
976
|
-
function
|
|
1070
|
+
function read18(bc) {
|
|
977
1071
|
return bare.readBool(bc) ? bare.readData(bc) : null;
|
|
978
1072
|
}
|
|
979
|
-
function
|
|
1073
|
+
function write18(bc, x) {
|
|
980
1074
|
bare.writeBool(bc, x != null);
|
|
981
1075
|
if (x != null) {
|
|
982
1076
|
bare.writeData(bc, x);
|
|
@@ -985,16 +1079,16 @@ function write16(bc, x) {
|
|
|
985
1079
|
function readActorConfig(bc) {
|
|
986
1080
|
return {
|
|
987
1081
|
name: bare.readString(bc),
|
|
988
|
-
key:
|
|
1082
|
+
key: read17(bc),
|
|
989
1083
|
createTs: bare.readI64(bc),
|
|
990
|
-
input:
|
|
1084
|
+
input: read18(bc)
|
|
991
1085
|
};
|
|
992
1086
|
}
|
|
993
1087
|
function writeActorConfig(bc, x) {
|
|
994
1088
|
bare.writeString(bc, x.name);
|
|
995
|
-
|
|
1089
|
+
write17(bc, x.key);
|
|
996
1090
|
bare.writeI64(bc, x.createTs);
|
|
997
|
-
|
|
1091
|
+
write18(bc, x.input);
|
|
998
1092
|
}
|
|
999
1093
|
function readActorCheckpoint(bc) {
|
|
1000
1094
|
return {
|
|
@@ -1037,12 +1131,12 @@ function writeActorIntent(bc, x) {
|
|
|
1037
1131
|
function readActorStateStopped(bc) {
|
|
1038
1132
|
return {
|
|
1039
1133
|
code: readStopCode(bc),
|
|
1040
|
-
message:
|
|
1134
|
+
message: read17(bc)
|
|
1041
1135
|
};
|
|
1042
1136
|
}
|
|
1043
1137
|
function writeActorStateStopped(bc, x) {
|
|
1044
1138
|
writeStopCode(bc, x.code);
|
|
1045
|
-
|
|
1139
|
+
write17(bc, x.message);
|
|
1046
1140
|
}
|
|
1047
1141
|
function readActorState(bc) {
|
|
1048
1142
|
const offset = bc.offset;
|
|
@@ -1152,7 +1246,7 @@ function writePreloadedKvEntry(bc, x) {
|
|
|
1152
1246
|
writeKvValue(bc, x.value);
|
|
1153
1247
|
writeKvMetadata(bc, x.metadata);
|
|
1154
1248
|
}
|
|
1155
|
-
function
|
|
1249
|
+
function read19(bc) {
|
|
1156
1250
|
const len = bare.readUintSafe(bc);
|
|
1157
1251
|
if (len === 0) {
|
|
1158
1252
|
return [];
|
|
@@ -1163,7 +1257,7 @@ function read17(bc) {
|
|
|
1163
1257
|
}
|
|
1164
1258
|
return result;
|
|
1165
1259
|
}
|
|
1166
|
-
function
|
|
1260
|
+
function write19(bc, x) {
|
|
1167
1261
|
bare.writeUintSafe(bc, x.length);
|
|
1168
1262
|
for (let i = 0; i < x.length; i++) {
|
|
1169
1263
|
writePreloadedKvEntry(bc, x[i]);
|
|
@@ -1171,13 +1265,13 @@ function write17(bc, x) {
|
|
|
1171
1265
|
}
|
|
1172
1266
|
function readPreloadedKv(bc) {
|
|
1173
1267
|
return {
|
|
1174
|
-
entries:
|
|
1268
|
+
entries: read19(bc),
|
|
1175
1269
|
requestedGetKeys: read0(bc),
|
|
1176
1270
|
requestedPrefixes: read0(bc)
|
|
1177
1271
|
};
|
|
1178
1272
|
}
|
|
1179
1273
|
function writePreloadedKv(bc, x) {
|
|
1180
|
-
|
|
1274
|
+
write19(bc, x.entries);
|
|
1181
1275
|
write0(bc, x.requestedGetKeys);
|
|
1182
1276
|
write0(bc, x.requestedPrefixes);
|
|
1183
1277
|
}
|
|
@@ -1191,7 +1285,7 @@ function writeHibernatingRequest(bc, x) {
|
|
|
1191
1285
|
writeGatewayId(bc, x.gatewayId);
|
|
1192
1286
|
writeRequestId(bc, x.requestId);
|
|
1193
1287
|
}
|
|
1194
|
-
function
|
|
1288
|
+
function read20(bc) {
|
|
1195
1289
|
const len = bare.readUintSafe(bc);
|
|
1196
1290
|
if (len === 0) {
|
|
1197
1291
|
return [];
|
|
@@ -1202,16 +1296,16 @@ function read18(bc) {
|
|
|
1202
1296
|
}
|
|
1203
1297
|
return result;
|
|
1204
1298
|
}
|
|
1205
|
-
function
|
|
1299
|
+
function write20(bc, x) {
|
|
1206
1300
|
bare.writeUintSafe(bc, x.length);
|
|
1207
1301
|
for (let i = 0; i < x.length; i++) {
|
|
1208
1302
|
writeHibernatingRequest(bc, x[i]);
|
|
1209
1303
|
}
|
|
1210
1304
|
}
|
|
1211
|
-
function
|
|
1305
|
+
function read21(bc) {
|
|
1212
1306
|
return bare.readBool(bc) ? readPreloadedKv(bc) : null;
|
|
1213
1307
|
}
|
|
1214
|
-
function
|
|
1308
|
+
function write21(bc, x) {
|
|
1215
1309
|
bare.writeBool(bc, x != null);
|
|
1216
1310
|
if (x != null) {
|
|
1217
1311
|
writePreloadedKv(bc, x);
|
|
@@ -1220,14 +1314,14 @@ function write19(bc, x) {
|
|
|
1220
1314
|
function readCommandStartActor(bc) {
|
|
1221
1315
|
return {
|
|
1222
1316
|
config: readActorConfig(bc),
|
|
1223
|
-
hibernatingRequests:
|
|
1224
|
-
preloadedKv:
|
|
1317
|
+
hibernatingRequests: read20(bc),
|
|
1318
|
+
preloadedKv: read21(bc)
|
|
1225
1319
|
};
|
|
1226
1320
|
}
|
|
1227
1321
|
function writeCommandStartActor(bc, x) {
|
|
1228
1322
|
writeActorConfig(bc, x.config);
|
|
1229
|
-
|
|
1230
|
-
|
|
1323
|
+
write20(bc, x.hibernatingRequests);
|
|
1324
|
+
write21(bc, x.preloadedKv);
|
|
1231
1325
|
}
|
|
1232
1326
|
var StopActorReason = /* @__PURE__ */ ((StopActorReason2) => {
|
|
1233
1327
|
StopActorReason2["SleepIntent"] = "SleepIntent";
|
|
@@ -1384,7 +1478,7 @@ function writeMessageId(bc, x) {
|
|
|
1384
1478
|
writeRequestId(bc, x.requestId);
|
|
1385
1479
|
writeMessageIndex(bc, x.messageIndex);
|
|
1386
1480
|
}
|
|
1387
|
-
function
|
|
1481
|
+
function read22(bc) {
|
|
1388
1482
|
const len = bare.readUintSafe(bc);
|
|
1389
1483
|
const result = /* @__PURE__ */ new Map();
|
|
1390
1484
|
for (let i = 0; i < len; i++) {
|
|
@@ -1398,7 +1492,7 @@ function read20(bc) {
|
|
|
1398
1492
|
}
|
|
1399
1493
|
return result;
|
|
1400
1494
|
}
|
|
1401
|
-
function
|
|
1495
|
+
function write22(bc, x) {
|
|
1402
1496
|
bare.writeUintSafe(bc, x.size);
|
|
1403
1497
|
for (const kv of x) {
|
|
1404
1498
|
bare.writeString(bc, kv[0]);
|
|
@@ -1410,8 +1504,8 @@ function readToEnvoyRequestStart(bc) {
|
|
|
1410
1504
|
actorId: readId(bc),
|
|
1411
1505
|
method: bare.readString(bc),
|
|
1412
1506
|
path: bare.readString(bc),
|
|
1413
|
-
headers:
|
|
1414
|
-
body:
|
|
1507
|
+
headers: read22(bc),
|
|
1508
|
+
body: read18(bc),
|
|
1415
1509
|
stream: bare.readBool(bc)
|
|
1416
1510
|
};
|
|
1417
1511
|
}
|
|
@@ -1419,8 +1513,8 @@ function writeToEnvoyRequestStart(bc, x) {
|
|
|
1419
1513
|
writeId(bc, x.actorId);
|
|
1420
1514
|
bare.writeString(bc, x.method);
|
|
1421
1515
|
bare.writeString(bc, x.path);
|
|
1422
|
-
|
|
1423
|
-
|
|
1516
|
+
write22(bc, x.headers);
|
|
1517
|
+
write18(bc, x.body);
|
|
1424
1518
|
bare.writeBool(bc, x.stream);
|
|
1425
1519
|
}
|
|
1426
1520
|
function readToEnvoyRequestChunk(bc) {
|
|
@@ -1433,18 +1527,116 @@ function writeToEnvoyRequestChunk(bc, x) {
|
|
|
1433
1527
|
bare.writeData(bc, x.body);
|
|
1434
1528
|
bare.writeBool(bc, x.finish);
|
|
1435
1529
|
}
|
|
1530
|
+
var HttpStreamAbortReasonKind = /* @__PURE__ */ ((HttpStreamAbortReasonKind2) => {
|
|
1531
|
+
HttpStreamAbortReasonKind2["Unknown"] = "Unknown";
|
|
1532
|
+
HttpStreamAbortReasonKind2["ClientDisconnect"] = "ClientDisconnect";
|
|
1533
|
+
HttpStreamAbortReasonKind2["HandlerError"] = "HandlerError";
|
|
1534
|
+
HttpStreamAbortReasonKind2["IdleTimeout"] = "IdleTimeout";
|
|
1535
|
+
HttpStreamAbortReasonKind2["Overloaded"] = "Overloaded";
|
|
1536
|
+
HttpStreamAbortReasonKind2["BodyTooLarge"] = "BodyTooLarge";
|
|
1537
|
+
HttpStreamAbortReasonKind2["OutOfMemory"] = "OutOfMemory";
|
|
1538
|
+
HttpStreamAbortReasonKind2["Shutdown"] = "Shutdown";
|
|
1539
|
+
HttpStreamAbortReasonKind2["InternalError"] = "InternalError";
|
|
1540
|
+
return HttpStreamAbortReasonKind2;
|
|
1541
|
+
})(HttpStreamAbortReasonKind || {});
|
|
1542
|
+
function readHttpStreamAbortReasonKind(bc) {
|
|
1543
|
+
const offset = bc.offset;
|
|
1544
|
+
const tag = bare.readU8(bc);
|
|
1545
|
+
switch (tag) {
|
|
1546
|
+
case 0:
|
|
1547
|
+
return "Unknown" /* Unknown */;
|
|
1548
|
+
case 1:
|
|
1549
|
+
return "ClientDisconnect" /* ClientDisconnect */;
|
|
1550
|
+
case 2:
|
|
1551
|
+
return "HandlerError" /* HandlerError */;
|
|
1552
|
+
case 3:
|
|
1553
|
+
return "IdleTimeout" /* IdleTimeout */;
|
|
1554
|
+
case 4:
|
|
1555
|
+
return "Overloaded" /* Overloaded */;
|
|
1556
|
+
case 5:
|
|
1557
|
+
return "BodyTooLarge" /* BodyTooLarge */;
|
|
1558
|
+
case 6:
|
|
1559
|
+
return "OutOfMemory" /* OutOfMemory */;
|
|
1560
|
+
case 7:
|
|
1561
|
+
return "Shutdown" /* Shutdown */;
|
|
1562
|
+
case 8:
|
|
1563
|
+
return "InternalError" /* InternalError */;
|
|
1564
|
+
default: {
|
|
1565
|
+
bc.offset = offset;
|
|
1566
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
1567
|
+
}
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
function writeHttpStreamAbortReasonKind(bc, x) {
|
|
1571
|
+
switch (x) {
|
|
1572
|
+
case "Unknown" /* Unknown */: {
|
|
1573
|
+
bare.writeU8(bc, 0);
|
|
1574
|
+
break;
|
|
1575
|
+
}
|
|
1576
|
+
case "ClientDisconnect" /* ClientDisconnect */: {
|
|
1577
|
+
bare.writeU8(bc, 1);
|
|
1578
|
+
break;
|
|
1579
|
+
}
|
|
1580
|
+
case "HandlerError" /* HandlerError */: {
|
|
1581
|
+
bare.writeU8(bc, 2);
|
|
1582
|
+
break;
|
|
1583
|
+
}
|
|
1584
|
+
case "IdleTimeout" /* IdleTimeout */: {
|
|
1585
|
+
bare.writeU8(bc, 3);
|
|
1586
|
+
break;
|
|
1587
|
+
}
|
|
1588
|
+
case "Overloaded" /* Overloaded */: {
|
|
1589
|
+
bare.writeU8(bc, 4);
|
|
1590
|
+
break;
|
|
1591
|
+
}
|
|
1592
|
+
case "BodyTooLarge" /* BodyTooLarge */: {
|
|
1593
|
+
bare.writeU8(bc, 5);
|
|
1594
|
+
break;
|
|
1595
|
+
}
|
|
1596
|
+
case "OutOfMemory" /* OutOfMemory */: {
|
|
1597
|
+
bare.writeU8(bc, 6);
|
|
1598
|
+
break;
|
|
1599
|
+
}
|
|
1600
|
+
case "Shutdown" /* Shutdown */: {
|
|
1601
|
+
bare.writeU8(bc, 7);
|
|
1602
|
+
break;
|
|
1603
|
+
}
|
|
1604
|
+
case "InternalError" /* InternalError */: {
|
|
1605
|
+
bare.writeU8(bc, 8);
|
|
1606
|
+
break;
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
function readHttpStreamAbortReason(bc) {
|
|
1611
|
+
return {
|
|
1612
|
+
kind: readHttpStreamAbortReasonKind(bc),
|
|
1613
|
+
detail: read17(bc)
|
|
1614
|
+
};
|
|
1615
|
+
}
|
|
1616
|
+
function writeHttpStreamAbortReason(bc, x) {
|
|
1617
|
+
writeHttpStreamAbortReasonKind(bc, x.kind);
|
|
1618
|
+
write17(bc, x.detail);
|
|
1619
|
+
}
|
|
1620
|
+
function readToEnvoyRequestAbort(bc) {
|
|
1621
|
+
return {
|
|
1622
|
+
reason: readHttpStreamAbortReason(bc)
|
|
1623
|
+
};
|
|
1624
|
+
}
|
|
1625
|
+
function writeToEnvoyRequestAbort(bc, x) {
|
|
1626
|
+
writeHttpStreamAbortReason(bc, x.reason);
|
|
1627
|
+
}
|
|
1436
1628
|
function readToRivetResponseStart(bc) {
|
|
1437
1629
|
return {
|
|
1438
1630
|
status: bare.readU16(bc),
|
|
1439
|
-
headers:
|
|
1440
|
-
body:
|
|
1631
|
+
headers: read22(bc),
|
|
1632
|
+
body: read18(bc),
|
|
1441
1633
|
stream: bare.readBool(bc)
|
|
1442
1634
|
};
|
|
1443
1635
|
}
|
|
1444
1636
|
function writeToRivetResponseStart(bc, x) {
|
|
1445
1637
|
bare.writeU16(bc, x.status);
|
|
1446
|
-
|
|
1447
|
-
|
|
1638
|
+
write22(bc, x.headers);
|
|
1639
|
+
write18(bc, x.body);
|
|
1448
1640
|
bare.writeBool(bc, x.stream);
|
|
1449
1641
|
}
|
|
1450
1642
|
function readToRivetResponseChunk(bc) {
|
|
@@ -1457,17 +1649,25 @@ function writeToRivetResponseChunk(bc, x) {
|
|
|
1457
1649
|
bare.writeData(bc, x.body);
|
|
1458
1650
|
bare.writeBool(bc, x.finish);
|
|
1459
1651
|
}
|
|
1652
|
+
function readToRivetResponseAbort(bc) {
|
|
1653
|
+
return {
|
|
1654
|
+
reason: readHttpStreamAbortReason(bc)
|
|
1655
|
+
};
|
|
1656
|
+
}
|
|
1657
|
+
function writeToRivetResponseAbort(bc, x) {
|
|
1658
|
+
writeHttpStreamAbortReason(bc, x.reason);
|
|
1659
|
+
}
|
|
1460
1660
|
function readToEnvoyWebSocketOpen(bc) {
|
|
1461
1661
|
return {
|
|
1462
1662
|
actorId: readId(bc),
|
|
1463
1663
|
path: bare.readString(bc),
|
|
1464
|
-
headers:
|
|
1664
|
+
headers: read22(bc)
|
|
1465
1665
|
};
|
|
1466
1666
|
}
|
|
1467
1667
|
function writeToEnvoyWebSocketOpen(bc, x) {
|
|
1468
1668
|
writeId(bc, x.actorId);
|
|
1469
1669
|
bare.writeString(bc, x.path);
|
|
1470
|
-
|
|
1670
|
+
write22(bc, x.headers);
|
|
1471
1671
|
}
|
|
1472
1672
|
function readToEnvoyWebSocketMessage(bc) {
|
|
1473
1673
|
return {
|
|
@@ -1479,10 +1679,10 @@ function writeToEnvoyWebSocketMessage(bc, x) {
|
|
|
1479
1679
|
bare.writeData(bc, x.data);
|
|
1480
1680
|
bare.writeBool(bc, x.binary);
|
|
1481
1681
|
}
|
|
1482
|
-
function
|
|
1682
|
+
function read23(bc) {
|
|
1483
1683
|
return bare.readBool(bc) ? bare.readU16(bc) : null;
|
|
1484
1684
|
}
|
|
1485
|
-
function
|
|
1685
|
+
function write23(bc, x) {
|
|
1486
1686
|
bare.writeBool(bc, x != null);
|
|
1487
1687
|
if (x != null) {
|
|
1488
1688
|
bare.writeU16(bc, x);
|
|
@@ -1490,13 +1690,13 @@ function write21(bc, x) {
|
|
|
1490
1690
|
}
|
|
1491
1691
|
function readToEnvoyWebSocketClose(bc) {
|
|
1492
1692
|
return {
|
|
1493
|
-
code:
|
|
1494
|
-
reason:
|
|
1693
|
+
code: read23(bc),
|
|
1694
|
+
reason: read17(bc)
|
|
1495
1695
|
};
|
|
1496
1696
|
}
|
|
1497
1697
|
function writeToEnvoyWebSocketClose(bc, x) {
|
|
1498
|
-
|
|
1499
|
-
|
|
1698
|
+
write23(bc, x.code);
|
|
1699
|
+
write17(bc, x.reason);
|
|
1500
1700
|
}
|
|
1501
1701
|
function readToRivetWebSocketOpen(bc) {
|
|
1502
1702
|
return {
|
|
@@ -1526,14 +1726,14 @@ function writeToRivetWebSocketMessageAck(bc, x) {
|
|
|
1526
1726
|
}
|
|
1527
1727
|
function readToRivetWebSocketClose(bc) {
|
|
1528
1728
|
return {
|
|
1529
|
-
code:
|
|
1530
|
-
reason:
|
|
1729
|
+
code: read23(bc),
|
|
1730
|
+
reason: read17(bc),
|
|
1531
1731
|
hibernate: bare.readBool(bc)
|
|
1532
1732
|
};
|
|
1533
1733
|
}
|
|
1534
1734
|
function writeToRivetWebSocketClose(bc, x) {
|
|
1535
|
-
|
|
1536
|
-
|
|
1735
|
+
write23(bc, x.code);
|
|
1736
|
+
write17(bc, x.reason);
|
|
1537
1737
|
bare.writeBool(bc, x.hibernate);
|
|
1538
1738
|
}
|
|
1539
1739
|
function readToRivetTunnelMessageKind(bc) {
|
|
@@ -1545,7 +1745,7 @@ function readToRivetTunnelMessageKind(bc) {
|
|
|
1545
1745
|
case 1:
|
|
1546
1746
|
return { tag: "ToRivetResponseChunk", val: readToRivetResponseChunk(bc) };
|
|
1547
1747
|
case 2:
|
|
1548
|
-
return { tag: "ToRivetResponseAbort", val:
|
|
1748
|
+
return { tag: "ToRivetResponseAbort", val: readToRivetResponseAbort(bc) };
|
|
1549
1749
|
case 3:
|
|
1550
1750
|
return { tag: "ToRivetWebSocketOpen", val: readToRivetWebSocketOpen(bc) };
|
|
1551
1751
|
case 4:
|
|
@@ -1574,6 +1774,7 @@ function writeToRivetTunnelMessageKind(bc, x) {
|
|
|
1574
1774
|
}
|
|
1575
1775
|
case "ToRivetResponseAbort": {
|
|
1576
1776
|
bare.writeU8(bc, 2);
|
|
1777
|
+
writeToRivetResponseAbort(bc, x.val);
|
|
1577
1778
|
break;
|
|
1578
1779
|
}
|
|
1579
1780
|
case "ToRivetWebSocketOpen": {
|
|
@@ -1617,7 +1818,7 @@ function readToEnvoyTunnelMessageKind(bc) {
|
|
|
1617
1818
|
case 1:
|
|
1618
1819
|
return { tag: "ToEnvoyRequestChunk", val: readToEnvoyRequestChunk(bc) };
|
|
1619
1820
|
case 2:
|
|
1620
|
-
return { tag: "ToEnvoyRequestAbort", val:
|
|
1821
|
+
return { tag: "ToEnvoyRequestAbort", val: readToEnvoyRequestAbort(bc) };
|
|
1621
1822
|
case 3:
|
|
1622
1823
|
return { tag: "ToEnvoyWebSocketOpen", val: readToEnvoyWebSocketOpen(bc) };
|
|
1623
1824
|
case 4:
|
|
@@ -1644,6 +1845,7 @@ function writeToEnvoyTunnelMessageKind(bc, x) {
|
|
|
1644
1845
|
}
|
|
1645
1846
|
case "ToEnvoyRequestAbort": {
|
|
1646
1847
|
bare.writeU8(bc, 2);
|
|
1848
|
+
writeToEnvoyRequestAbort(bc, x.val);
|
|
1647
1849
|
break;
|
|
1648
1850
|
}
|
|
1649
1851
|
case "ToEnvoyWebSocketOpen": {
|
|
@@ -1681,7 +1883,7 @@ function readToEnvoyPing(bc) {
|
|
|
1681
1883
|
function writeToEnvoyPing(bc, x) {
|
|
1682
1884
|
bare.writeI64(bc, x.ts);
|
|
1683
1885
|
}
|
|
1684
|
-
function
|
|
1886
|
+
function read24(bc) {
|
|
1685
1887
|
const len = bare.readUintSafe(bc);
|
|
1686
1888
|
const result = /* @__PURE__ */ new Map();
|
|
1687
1889
|
for (let i = 0; i < len; i++) {
|
|
@@ -1695,26 +1897,26 @@ function read22(bc) {
|
|
|
1695
1897
|
}
|
|
1696
1898
|
return result;
|
|
1697
1899
|
}
|
|
1698
|
-
function
|
|
1900
|
+
function write24(bc, x) {
|
|
1699
1901
|
bare.writeUintSafe(bc, x.size);
|
|
1700
1902
|
for (const kv of x) {
|
|
1701
1903
|
bare.writeString(bc, kv[0]);
|
|
1702
1904
|
writeActorName(bc, kv[1]);
|
|
1703
1905
|
}
|
|
1704
1906
|
}
|
|
1705
|
-
function
|
|
1706
|
-
return bare.readBool(bc) ?
|
|
1907
|
+
function read25(bc) {
|
|
1908
|
+
return bare.readBool(bc) ? read24(bc) : null;
|
|
1707
1909
|
}
|
|
1708
|
-
function
|
|
1910
|
+
function write25(bc, x) {
|
|
1709
1911
|
bare.writeBool(bc, x != null);
|
|
1710
1912
|
if (x != null) {
|
|
1711
|
-
|
|
1913
|
+
write24(bc, x);
|
|
1712
1914
|
}
|
|
1713
1915
|
}
|
|
1714
|
-
function
|
|
1916
|
+
function read26(bc) {
|
|
1715
1917
|
return bare.readBool(bc) ? readJson(bc) : null;
|
|
1716
1918
|
}
|
|
1717
|
-
function
|
|
1919
|
+
function write26(bc, x) {
|
|
1718
1920
|
bare.writeBool(bc, x != null);
|
|
1719
1921
|
if (x != null) {
|
|
1720
1922
|
writeJson(bc, x);
|
|
@@ -1722,13 +1924,13 @@ function write24(bc, x) {
|
|
|
1722
1924
|
}
|
|
1723
1925
|
function readToRivetMetadata(bc) {
|
|
1724
1926
|
return {
|
|
1725
|
-
prepopulateActorNames:
|
|
1726
|
-
metadata:
|
|
1927
|
+
prepopulateActorNames: read25(bc),
|
|
1928
|
+
metadata: read26(bc)
|
|
1727
1929
|
};
|
|
1728
1930
|
}
|
|
1729
1931
|
function writeToRivetMetadata(bc, x) {
|
|
1730
|
-
|
|
1731
|
-
|
|
1932
|
+
write25(bc, x.prepopulateActorNames);
|
|
1933
|
+
write26(bc, x.metadata);
|
|
1732
1934
|
}
|
|
1733
1935
|
function readToRivetEvents(bc) {
|
|
1734
1936
|
const len = bare.readUintSafe(bc);
|
|
@@ -1747,7 +1949,7 @@ function writeToRivetEvents(bc, x) {
|
|
|
1747
1949
|
writeEventWrapper(bc, x[i]);
|
|
1748
1950
|
}
|
|
1749
1951
|
}
|
|
1750
|
-
function
|
|
1952
|
+
function read27(bc) {
|
|
1751
1953
|
const len = bare.readUintSafe(bc);
|
|
1752
1954
|
if (len === 0) {
|
|
1753
1955
|
return [];
|
|
@@ -1758,7 +1960,7 @@ function read25(bc) {
|
|
|
1758
1960
|
}
|
|
1759
1961
|
return result;
|
|
1760
1962
|
}
|
|
1761
|
-
function
|
|
1963
|
+
function write27(bc, x) {
|
|
1762
1964
|
bare.writeUintSafe(bc, x.length);
|
|
1763
1965
|
for (let i = 0; i < x.length; i++) {
|
|
1764
1966
|
writeActorCheckpoint(bc, x[i]);
|
|
@@ -1766,11 +1968,11 @@ function write25(bc, x) {
|
|
|
1766
1968
|
}
|
|
1767
1969
|
function readToRivetAckCommands(bc) {
|
|
1768
1970
|
return {
|
|
1769
|
-
lastCommandCheckpoints:
|
|
1971
|
+
lastCommandCheckpoints: read27(bc)
|
|
1770
1972
|
};
|
|
1771
1973
|
}
|
|
1772
1974
|
function writeToRivetAckCommands(bc, x) {
|
|
1773
|
-
|
|
1975
|
+
write27(bc, x.lastCommandCheckpoints);
|
|
1774
1976
|
}
|
|
1775
1977
|
function readToRivetPong(bc) {
|
|
1776
1978
|
return {
|
|
@@ -1832,6 +2034,16 @@ function writeToRivetSqliteExecuteRequest(bc, x) {
|
|
|
1832
2034
|
bare.writeU32(bc, x.requestId);
|
|
1833
2035
|
writeSqliteExecuteRequest(bc, x.data);
|
|
1834
2036
|
}
|
|
2037
|
+
function readToRivetSqliteExecuteBatchRequest(bc) {
|
|
2038
|
+
return {
|
|
2039
|
+
requestId: bare.readU32(bc),
|
|
2040
|
+
data: readSqliteExecuteBatchRequest(bc)
|
|
2041
|
+
};
|
|
2042
|
+
}
|
|
2043
|
+
function writeToRivetSqliteExecuteBatchRequest(bc, x) {
|
|
2044
|
+
bare.writeU32(bc, x.requestId);
|
|
2045
|
+
writeSqliteExecuteBatchRequest(bc, x.data);
|
|
2046
|
+
}
|
|
1835
2047
|
function readToRivet(bc) {
|
|
1836
2048
|
const offset = bc.offset;
|
|
1837
2049
|
const tag = bare.readU8(bc);
|
|
@@ -1858,6 +2070,8 @@ function readToRivet(bc) {
|
|
|
1858
2070
|
return { tag: "ToRivetSqliteExecRequest", val: readToRivetSqliteExecRequest(bc) };
|
|
1859
2071
|
case 10:
|
|
1860
2072
|
return { tag: "ToRivetSqliteExecuteRequest", val: readToRivetSqliteExecuteRequest(bc) };
|
|
2073
|
+
case 11:
|
|
2074
|
+
return { tag: "ToRivetSqliteExecuteBatchRequest", val: readToRivetSqliteExecuteBatchRequest(bc) };
|
|
1861
2075
|
default: {
|
|
1862
2076
|
bc.offset = offset;
|
|
1863
2077
|
throw new bare.BareError(offset, "invalid tag");
|
|
@@ -1920,6 +2134,11 @@ function writeToRivet(bc, x) {
|
|
|
1920
2134
|
writeToRivetSqliteExecuteRequest(bc, x.val);
|
|
1921
2135
|
break;
|
|
1922
2136
|
}
|
|
2137
|
+
case "ToRivetSqliteExecuteBatchRequest": {
|
|
2138
|
+
bare.writeU8(bc, 11);
|
|
2139
|
+
writeToRivetSqliteExecuteBatchRequest(bc, x.val);
|
|
2140
|
+
break;
|
|
2141
|
+
}
|
|
1923
2142
|
}
|
|
1924
2143
|
}
|
|
1925
2144
|
function encodeToRivet(x, config) {
|
|
@@ -1978,11 +2197,11 @@ function writeToEnvoyCommands(bc, x) {
|
|
|
1978
2197
|
}
|
|
1979
2198
|
function readToEnvoyAckEvents(bc) {
|
|
1980
2199
|
return {
|
|
1981
|
-
lastEventCheckpoints:
|
|
2200
|
+
lastEventCheckpoints: read27(bc)
|
|
1982
2201
|
};
|
|
1983
2202
|
}
|
|
1984
2203
|
function writeToEnvoyAckEvents(bc, x) {
|
|
1985
|
-
|
|
2204
|
+
write27(bc, x.lastEventCheckpoints);
|
|
1986
2205
|
}
|
|
1987
2206
|
function readToEnvoyKvResponse(bc) {
|
|
1988
2207
|
return {
|
|
@@ -2034,6 +2253,16 @@ function writeToEnvoySqliteExecuteResponse(bc, x) {
|
|
|
2034
2253
|
bare.writeU32(bc, x.requestId);
|
|
2035
2254
|
writeSqliteExecuteResponse(bc, x.data);
|
|
2036
2255
|
}
|
|
2256
|
+
function readToEnvoySqliteExecuteBatchResponse(bc) {
|
|
2257
|
+
return {
|
|
2258
|
+
requestId: bare.readU32(bc),
|
|
2259
|
+
data: readSqliteExecuteBatchResponse(bc)
|
|
2260
|
+
};
|
|
2261
|
+
}
|
|
2262
|
+
function writeToEnvoySqliteExecuteBatchResponse(bc, x) {
|
|
2263
|
+
bare.writeU32(bc, x.requestId);
|
|
2264
|
+
writeSqliteExecuteBatchResponse(bc, x.data);
|
|
2265
|
+
}
|
|
2037
2266
|
function readToEnvoy(bc) {
|
|
2038
2267
|
const offset = bc.offset;
|
|
2039
2268
|
const tag = bare.readU8(bc);
|
|
@@ -2058,6 +2287,8 @@ function readToEnvoy(bc) {
|
|
|
2058
2287
|
return { tag: "ToEnvoySqliteExecResponse", val: readToEnvoySqliteExecResponse(bc) };
|
|
2059
2288
|
case 9:
|
|
2060
2289
|
return { tag: "ToEnvoySqliteExecuteResponse", val: readToEnvoySqliteExecuteResponse(bc) };
|
|
2290
|
+
case 10:
|
|
2291
|
+
return { tag: "ToEnvoySqliteExecuteBatchResponse", val: readToEnvoySqliteExecuteBatchResponse(bc) };
|
|
2061
2292
|
default: {
|
|
2062
2293
|
bc.offset = offset;
|
|
2063
2294
|
throw new bare.BareError(offset, "invalid tag");
|
|
@@ -2116,6 +2347,11 @@ function writeToEnvoy(bc, x) {
|
|
|
2116
2347
|
writeToEnvoySqliteExecuteResponse(bc, x.val);
|
|
2117
2348
|
break;
|
|
2118
2349
|
}
|
|
2350
|
+
case "ToEnvoySqliteExecuteBatchResponse": {
|
|
2351
|
+
bare.writeU8(bc, 10);
|
|
2352
|
+
writeToEnvoySqliteExecuteBatchResponse(bc, x.val);
|
|
2353
|
+
break;
|
|
2354
|
+
}
|
|
2119
2355
|
}
|
|
2120
2356
|
}
|
|
2121
2357
|
function encodeToEnvoy(x, config) {
|
|
@@ -2322,8 +2558,9 @@ function decodeToOutbound(bytes) {
|
|
|
2322
2558
|
function assert(condition, message) {
|
|
2323
2559
|
if (!condition) throw new Error(message ?? "Assertion failed");
|
|
2324
2560
|
}
|
|
2325
|
-
var VERSION =
|
|
2561
|
+
var VERSION = 7;
|
|
2326
2562
|
export {
|
|
2563
|
+
HttpStreamAbortReasonKind,
|
|
2327
2564
|
StopActorReason,
|
|
2328
2565
|
StopCode,
|
|
2329
2566
|
VERSION,
|
|
@@ -2357,6 +2594,8 @@ export {
|
|
|
2357
2594
|
readEventWrapper,
|
|
2358
2595
|
readGatewayId,
|
|
2359
2596
|
readHibernatingRequest,
|
|
2597
|
+
readHttpStreamAbortReason,
|
|
2598
|
+
readHttpStreamAbortReasonKind,
|
|
2360
2599
|
readId,
|
|
2361
2600
|
readJson,
|
|
2362
2601
|
readKvDeleteRangeRequest,
|
|
@@ -2381,6 +2620,7 @@ export {
|
|
|
2381
2620
|
readPreloadedKvEntry,
|
|
2382
2621
|
readProtocolMetadata,
|
|
2383
2622
|
readRequestId,
|
|
2623
|
+
readSqliteBatchStatement,
|
|
2384
2624
|
readSqliteBindParam,
|
|
2385
2625
|
readSqliteColumnValue,
|
|
2386
2626
|
readSqliteCommitOk,
|
|
@@ -2391,6 +2631,9 @@ export {
|
|
|
2391
2631
|
readSqliteExecOk,
|
|
2392
2632
|
readSqliteExecRequest,
|
|
2393
2633
|
readSqliteExecResponse,
|
|
2634
|
+
readSqliteExecuteBatchOk,
|
|
2635
|
+
readSqliteExecuteBatchRequest,
|
|
2636
|
+
readSqliteExecuteBatchResponse,
|
|
2394
2637
|
readSqliteExecuteOk,
|
|
2395
2638
|
readSqliteExecuteRequest,
|
|
2396
2639
|
readSqliteExecuteResponse,
|
|
@@ -2417,10 +2660,12 @@ export {
|
|
|
2417
2660
|
readToEnvoyInit,
|
|
2418
2661
|
readToEnvoyKvResponse,
|
|
2419
2662
|
readToEnvoyPing,
|
|
2663
|
+
readToEnvoyRequestAbort,
|
|
2420
2664
|
readToEnvoyRequestChunk,
|
|
2421
2665
|
readToEnvoyRequestStart,
|
|
2422
2666
|
readToEnvoySqliteCommitResponse,
|
|
2423
2667
|
readToEnvoySqliteExecResponse,
|
|
2668
|
+
readToEnvoySqliteExecuteBatchResponse,
|
|
2424
2669
|
readToEnvoySqliteExecuteResponse,
|
|
2425
2670
|
readToEnvoySqliteGetPagesResponse,
|
|
2426
2671
|
readToEnvoyTunnelMessage,
|
|
@@ -2438,10 +2683,12 @@ export {
|
|
|
2438
2683
|
readToRivetKvRequest,
|
|
2439
2684
|
readToRivetMetadata,
|
|
2440
2685
|
readToRivetPong,
|
|
2686
|
+
readToRivetResponseAbort,
|
|
2441
2687
|
readToRivetResponseChunk,
|
|
2442
2688
|
readToRivetResponseStart,
|
|
2443
2689
|
readToRivetSqliteCommitRequest,
|
|
2444
2690
|
readToRivetSqliteExecRequest,
|
|
2691
|
+
readToRivetSqliteExecuteBatchRequest,
|
|
2445
2692
|
readToRivetSqliteExecuteRequest,
|
|
2446
2693
|
readToRivetSqliteGetPagesRequest,
|
|
2447
2694
|
readToRivetTunnelMessage,
|
|
@@ -2468,6 +2715,8 @@ export {
|
|
|
2468
2715
|
writeEventWrapper,
|
|
2469
2716
|
writeGatewayId,
|
|
2470
2717
|
writeHibernatingRequest,
|
|
2718
|
+
writeHttpStreamAbortReason,
|
|
2719
|
+
writeHttpStreamAbortReasonKind,
|
|
2471
2720
|
writeId,
|
|
2472
2721
|
writeJson,
|
|
2473
2722
|
writeKvDeleteRangeRequest,
|
|
@@ -2492,6 +2741,7 @@ export {
|
|
|
2492
2741
|
writePreloadedKvEntry,
|
|
2493
2742
|
writeProtocolMetadata,
|
|
2494
2743
|
writeRequestId,
|
|
2744
|
+
writeSqliteBatchStatement,
|
|
2495
2745
|
writeSqliteBindParam,
|
|
2496
2746
|
writeSqliteColumnValue,
|
|
2497
2747
|
writeSqliteCommitOk,
|
|
@@ -2502,6 +2752,9 @@ export {
|
|
|
2502
2752
|
writeSqliteExecOk,
|
|
2503
2753
|
writeSqliteExecRequest,
|
|
2504
2754
|
writeSqliteExecResponse,
|
|
2755
|
+
writeSqliteExecuteBatchOk,
|
|
2756
|
+
writeSqliteExecuteBatchRequest,
|
|
2757
|
+
writeSqliteExecuteBatchResponse,
|
|
2505
2758
|
writeSqliteExecuteOk,
|
|
2506
2759
|
writeSqliteExecuteRequest,
|
|
2507
2760
|
writeSqliteExecuteResponse,
|
|
@@ -2528,10 +2781,12 @@ export {
|
|
|
2528
2781
|
writeToEnvoyInit,
|
|
2529
2782
|
writeToEnvoyKvResponse,
|
|
2530
2783
|
writeToEnvoyPing,
|
|
2784
|
+
writeToEnvoyRequestAbort,
|
|
2531
2785
|
writeToEnvoyRequestChunk,
|
|
2532
2786
|
writeToEnvoyRequestStart,
|
|
2533
2787
|
writeToEnvoySqliteCommitResponse,
|
|
2534
2788
|
writeToEnvoySqliteExecResponse,
|
|
2789
|
+
writeToEnvoySqliteExecuteBatchResponse,
|
|
2535
2790
|
writeToEnvoySqliteExecuteResponse,
|
|
2536
2791
|
writeToEnvoySqliteGetPagesResponse,
|
|
2537
2792
|
writeToEnvoyTunnelMessage,
|
|
@@ -2549,10 +2804,12 @@ export {
|
|
|
2549
2804
|
writeToRivetKvRequest,
|
|
2550
2805
|
writeToRivetMetadata,
|
|
2551
2806
|
writeToRivetPong,
|
|
2807
|
+
writeToRivetResponseAbort,
|
|
2552
2808
|
writeToRivetResponseChunk,
|
|
2553
2809
|
writeToRivetResponseStart,
|
|
2554
2810
|
writeToRivetSqliteCommitRequest,
|
|
2555
2811
|
writeToRivetSqliteExecRequest,
|
|
2812
|
+
writeToRivetSqliteExecuteBatchRequest,
|
|
2556
2813
|
writeToRivetSqliteExecuteRequest,
|
|
2557
2814
|
writeToRivetSqliteGetPagesRequest,
|
|
2558
2815
|
writeToRivetTunnelMessage,
|