@rivetkit/engine-envoy-protocol 0.0.0-stack-docs-deploy-add-container-runner-page-mqospzuu.cc74539 → 0.0.0-stack-fix-rivetkit-route-all-actor-sqlite-through-envoy-when-local-sqlite-is-not-compiled-pppnpqnl.0cdbf72
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 +79 -4
- package/dist/index.js +328 -67
- package/package.json +4 -2
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
|
*/
|
|
@@ -550,16 +578,41 @@ type ToEnvoyRequestStart = {
|
|
|
550
578
|
readonly headers: ReadonlyMap<string, string>;
|
|
551
579
|
readonly body: ArrayBuffer | null;
|
|
552
580
|
readonly stream: boolean;
|
|
581
|
+
readonly maxBodySize: u64;
|
|
553
582
|
};
|
|
554
583
|
declare function readToEnvoyRequestStart(bc: bare.ByteCursor): ToEnvoyRequestStart;
|
|
555
584
|
declare function writeToEnvoyRequestStart(bc: bare.ByteCursor, x: ToEnvoyRequestStart): void;
|
|
556
585
|
type ToEnvoyRequestChunk = {
|
|
557
586
|
readonly body: ArrayBuffer;
|
|
558
587
|
readonly finish: boolean;
|
|
588
|
+
readonly maxBodySize: u64;
|
|
559
589
|
};
|
|
560
590
|
declare function readToEnvoyRequestChunk(bc: bare.ByteCursor): ToEnvoyRequestChunk;
|
|
561
591
|
declare function writeToEnvoyRequestChunk(bc: bare.ByteCursor, x: ToEnvoyRequestChunk): void;
|
|
562
|
-
|
|
592
|
+
declare enum HttpStreamAbortReasonKind {
|
|
593
|
+
Unknown = "Unknown",
|
|
594
|
+
ClientDisconnect = "ClientDisconnect",
|
|
595
|
+
HandlerError = "HandlerError",
|
|
596
|
+
IdleTimeout = "IdleTimeout",
|
|
597
|
+
Overloaded = "Overloaded",
|
|
598
|
+
BodyTooLarge = "BodyTooLarge",
|
|
599
|
+
OutOfMemory = "OutOfMemory",
|
|
600
|
+
Shutdown = "Shutdown",
|
|
601
|
+
InternalError = "InternalError"
|
|
602
|
+
}
|
|
603
|
+
declare function readHttpStreamAbortReasonKind(bc: bare.ByteCursor): HttpStreamAbortReasonKind;
|
|
604
|
+
declare function writeHttpStreamAbortReasonKind(bc: bare.ByteCursor, x: HttpStreamAbortReasonKind): void;
|
|
605
|
+
type HttpStreamAbortReason = {
|
|
606
|
+
readonly kind: HttpStreamAbortReasonKind;
|
|
607
|
+
readonly detail: string | null;
|
|
608
|
+
};
|
|
609
|
+
declare function readHttpStreamAbortReason(bc: bare.ByteCursor): HttpStreamAbortReason;
|
|
610
|
+
declare function writeHttpStreamAbortReason(bc: bare.ByteCursor, x: HttpStreamAbortReason): void;
|
|
611
|
+
type ToEnvoyRequestAbort = {
|
|
612
|
+
readonly reason: HttpStreamAbortReason;
|
|
613
|
+
};
|
|
614
|
+
declare function readToEnvoyRequestAbort(bc: bare.ByteCursor): ToEnvoyRequestAbort;
|
|
615
|
+
declare function writeToEnvoyRequestAbort(bc: bare.ByteCursor, x: ToEnvoyRequestAbort): void;
|
|
563
616
|
type ToRivetResponseStart = {
|
|
564
617
|
readonly status: u16;
|
|
565
618
|
readonly headers: ReadonlyMap<string, string>;
|
|
@@ -574,7 +627,11 @@ type ToRivetResponseChunk = {
|
|
|
574
627
|
};
|
|
575
628
|
declare function readToRivetResponseChunk(bc: bare.ByteCursor): ToRivetResponseChunk;
|
|
576
629
|
declare function writeToRivetResponseChunk(bc: bare.ByteCursor, x: ToRivetResponseChunk): void;
|
|
577
|
-
type ToRivetResponseAbort =
|
|
630
|
+
type ToRivetResponseAbort = {
|
|
631
|
+
readonly reason: HttpStreamAbortReason;
|
|
632
|
+
};
|
|
633
|
+
declare function readToRivetResponseAbort(bc: bare.ByteCursor): ToRivetResponseAbort;
|
|
634
|
+
declare function writeToRivetResponseAbort(bc: bare.ByteCursor, x: ToRivetResponseAbort): void;
|
|
578
635
|
/**
|
|
579
636
|
* WebSocket
|
|
580
637
|
*/
|
|
@@ -758,6 +815,12 @@ type ToRivetSqliteExecuteRequest = {
|
|
|
758
815
|
};
|
|
759
816
|
declare function readToRivetSqliteExecuteRequest(bc: bare.ByteCursor): ToRivetSqliteExecuteRequest;
|
|
760
817
|
declare function writeToRivetSqliteExecuteRequest(bc: bare.ByteCursor, x: ToRivetSqliteExecuteRequest): void;
|
|
818
|
+
type ToRivetSqliteExecuteBatchRequest = {
|
|
819
|
+
readonly requestId: u32;
|
|
820
|
+
readonly data: SqliteExecuteBatchRequest;
|
|
821
|
+
};
|
|
822
|
+
declare function readToRivetSqliteExecuteBatchRequest(bc: bare.ByteCursor): ToRivetSqliteExecuteBatchRequest;
|
|
823
|
+
declare function writeToRivetSqliteExecuteBatchRequest(bc: bare.ByteCursor, x: ToRivetSqliteExecuteBatchRequest): void;
|
|
761
824
|
type ToRivet = {
|
|
762
825
|
readonly tag: "ToRivetMetadata";
|
|
763
826
|
readonly val: ToRivetMetadata;
|
|
@@ -791,6 +854,9 @@ type ToRivet = {
|
|
|
791
854
|
} | {
|
|
792
855
|
readonly tag: "ToRivetSqliteExecuteRequest";
|
|
793
856
|
readonly val: ToRivetSqliteExecuteRequest;
|
|
857
|
+
} | {
|
|
858
|
+
readonly tag: "ToRivetSqliteExecuteBatchRequest";
|
|
859
|
+
readonly val: ToRivetSqliteExecuteBatchRequest;
|
|
794
860
|
};
|
|
795
861
|
declare function readToRivet(bc: bare.ByteCursor): ToRivet;
|
|
796
862
|
declare function writeToRivet(bc: bare.ByteCursor, x: ToRivet): void;
|
|
@@ -849,6 +915,12 @@ type ToEnvoySqliteExecuteResponse = {
|
|
|
849
915
|
};
|
|
850
916
|
declare function readToEnvoySqliteExecuteResponse(bc: bare.ByteCursor): ToEnvoySqliteExecuteResponse;
|
|
851
917
|
declare function writeToEnvoySqliteExecuteResponse(bc: bare.ByteCursor, x: ToEnvoySqliteExecuteResponse): void;
|
|
918
|
+
type ToEnvoySqliteExecuteBatchResponse = {
|
|
919
|
+
readonly requestId: u32;
|
|
920
|
+
readonly data: SqliteExecuteBatchResponse;
|
|
921
|
+
};
|
|
922
|
+
declare function readToEnvoySqliteExecuteBatchResponse(bc: bare.ByteCursor): ToEnvoySqliteExecuteBatchResponse;
|
|
923
|
+
declare function writeToEnvoySqliteExecuteBatchResponse(bc: bare.ByteCursor, x: ToEnvoySqliteExecuteBatchResponse): void;
|
|
852
924
|
type ToEnvoy = {
|
|
853
925
|
readonly tag: "ToEnvoyInit";
|
|
854
926
|
readonly val: ToEnvoyInit;
|
|
@@ -879,6 +951,9 @@ type ToEnvoy = {
|
|
|
879
951
|
} | {
|
|
880
952
|
readonly tag: "ToEnvoySqliteExecuteResponse";
|
|
881
953
|
readonly val: ToEnvoySqliteExecuteResponse;
|
|
954
|
+
} | {
|
|
955
|
+
readonly tag: "ToEnvoySqliteExecuteBatchResponse";
|
|
956
|
+
readonly val: ToEnvoySqliteExecuteBatchResponse;
|
|
882
957
|
};
|
|
883
958
|
declare function readToEnvoy(bc: bare.ByteCursor): ToEnvoy;
|
|
884
959
|
declare function writeToEnvoy(bc: bare.ByteCursor, x: ToEnvoy): void;
|
|
@@ -954,6 +1029,6 @@ declare function readToOutbound(bc: bare.ByteCursor): ToOutbound;
|
|
|
954
1029
|
declare function writeToOutbound(bc: bare.ByteCursor, x: ToOutbound): void;
|
|
955
1030
|
declare function encodeToOutbound(x: ToOutbound, config?: Partial<bare.Config>): Uint8Array;
|
|
956
1031
|
declare function decodeToOutbound(bytes: Uint8Array): ToOutbound;
|
|
957
|
-
declare const VERSION =
|
|
1032
|
+
declare const VERSION = 8;
|
|
958
1033
|
|
|
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 };
|
|
1034
|
+
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,41 +1504,143 @@ function readToEnvoyRequestStart(bc) {
|
|
|
1410
1504
|
actorId: readId(bc),
|
|
1411
1505
|
method: bare.readString(bc),
|
|
1412
1506
|
path: bare.readString(bc),
|
|
1413
|
-
headers:
|
|
1414
|
-
body:
|
|
1415
|
-
stream: bare.readBool(bc)
|
|
1507
|
+
headers: read22(bc),
|
|
1508
|
+
body: read18(bc),
|
|
1509
|
+
stream: bare.readBool(bc),
|
|
1510
|
+
maxBodySize: bare.readU64(bc)
|
|
1416
1511
|
};
|
|
1417
1512
|
}
|
|
1418
1513
|
function writeToEnvoyRequestStart(bc, x) {
|
|
1419
1514
|
writeId(bc, x.actorId);
|
|
1420
1515
|
bare.writeString(bc, x.method);
|
|
1421
1516
|
bare.writeString(bc, x.path);
|
|
1422
|
-
|
|
1423
|
-
|
|
1517
|
+
write22(bc, x.headers);
|
|
1518
|
+
write18(bc, x.body);
|
|
1424
1519
|
bare.writeBool(bc, x.stream);
|
|
1520
|
+
bare.writeU64(bc, x.maxBodySize);
|
|
1425
1521
|
}
|
|
1426
1522
|
function readToEnvoyRequestChunk(bc) {
|
|
1427
1523
|
return {
|
|
1428
1524
|
body: bare.readData(bc),
|
|
1429
|
-
finish: bare.readBool(bc)
|
|
1525
|
+
finish: bare.readBool(bc),
|
|
1526
|
+
maxBodySize: bare.readU64(bc)
|
|
1430
1527
|
};
|
|
1431
1528
|
}
|
|
1432
1529
|
function writeToEnvoyRequestChunk(bc, x) {
|
|
1433
1530
|
bare.writeData(bc, x.body);
|
|
1434
1531
|
bare.writeBool(bc, x.finish);
|
|
1532
|
+
bare.writeU64(bc, x.maxBodySize);
|
|
1533
|
+
}
|
|
1534
|
+
var HttpStreamAbortReasonKind = /* @__PURE__ */ ((HttpStreamAbortReasonKind2) => {
|
|
1535
|
+
HttpStreamAbortReasonKind2["Unknown"] = "Unknown";
|
|
1536
|
+
HttpStreamAbortReasonKind2["ClientDisconnect"] = "ClientDisconnect";
|
|
1537
|
+
HttpStreamAbortReasonKind2["HandlerError"] = "HandlerError";
|
|
1538
|
+
HttpStreamAbortReasonKind2["IdleTimeout"] = "IdleTimeout";
|
|
1539
|
+
HttpStreamAbortReasonKind2["Overloaded"] = "Overloaded";
|
|
1540
|
+
HttpStreamAbortReasonKind2["BodyTooLarge"] = "BodyTooLarge";
|
|
1541
|
+
HttpStreamAbortReasonKind2["OutOfMemory"] = "OutOfMemory";
|
|
1542
|
+
HttpStreamAbortReasonKind2["Shutdown"] = "Shutdown";
|
|
1543
|
+
HttpStreamAbortReasonKind2["InternalError"] = "InternalError";
|
|
1544
|
+
return HttpStreamAbortReasonKind2;
|
|
1545
|
+
})(HttpStreamAbortReasonKind || {});
|
|
1546
|
+
function readHttpStreamAbortReasonKind(bc) {
|
|
1547
|
+
const offset = bc.offset;
|
|
1548
|
+
const tag = bare.readU8(bc);
|
|
1549
|
+
switch (tag) {
|
|
1550
|
+
case 0:
|
|
1551
|
+
return "Unknown" /* Unknown */;
|
|
1552
|
+
case 1:
|
|
1553
|
+
return "ClientDisconnect" /* ClientDisconnect */;
|
|
1554
|
+
case 2:
|
|
1555
|
+
return "HandlerError" /* HandlerError */;
|
|
1556
|
+
case 3:
|
|
1557
|
+
return "IdleTimeout" /* IdleTimeout */;
|
|
1558
|
+
case 4:
|
|
1559
|
+
return "Overloaded" /* Overloaded */;
|
|
1560
|
+
case 5:
|
|
1561
|
+
return "BodyTooLarge" /* BodyTooLarge */;
|
|
1562
|
+
case 6:
|
|
1563
|
+
return "OutOfMemory" /* OutOfMemory */;
|
|
1564
|
+
case 7:
|
|
1565
|
+
return "Shutdown" /* Shutdown */;
|
|
1566
|
+
case 8:
|
|
1567
|
+
return "InternalError" /* InternalError */;
|
|
1568
|
+
default: {
|
|
1569
|
+
bc.offset = offset;
|
|
1570
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
function writeHttpStreamAbortReasonKind(bc, x) {
|
|
1575
|
+
switch (x) {
|
|
1576
|
+
case "Unknown" /* Unknown */: {
|
|
1577
|
+
bare.writeU8(bc, 0);
|
|
1578
|
+
break;
|
|
1579
|
+
}
|
|
1580
|
+
case "ClientDisconnect" /* ClientDisconnect */: {
|
|
1581
|
+
bare.writeU8(bc, 1);
|
|
1582
|
+
break;
|
|
1583
|
+
}
|
|
1584
|
+
case "HandlerError" /* HandlerError */: {
|
|
1585
|
+
bare.writeU8(bc, 2);
|
|
1586
|
+
break;
|
|
1587
|
+
}
|
|
1588
|
+
case "IdleTimeout" /* IdleTimeout */: {
|
|
1589
|
+
bare.writeU8(bc, 3);
|
|
1590
|
+
break;
|
|
1591
|
+
}
|
|
1592
|
+
case "Overloaded" /* Overloaded */: {
|
|
1593
|
+
bare.writeU8(bc, 4);
|
|
1594
|
+
break;
|
|
1595
|
+
}
|
|
1596
|
+
case "BodyTooLarge" /* BodyTooLarge */: {
|
|
1597
|
+
bare.writeU8(bc, 5);
|
|
1598
|
+
break;
|
|
1599
|
+
}
|
|
1600
|
+
case "OutOfMemory" /* OutOfMemory */: {
|
|
1601
|
+
bare.writeU8(bc, 6);
|
|
1602
|
+
break;
|
|
1603
|
+
}
|
|
1604
|
+
case "Shutdown" /* Shutdown */: {
|
|
1605
|
+
bare.writeU8(bc, 7);
|
|
1606
|
+
break;
|
|
1607
|
+
}
|
|
1608
|
+
case "InternalError" /* InternalError */: {
|
|
1609
|
+
bare.writeU8(bc, 8);
|
|
1610
|
+
break;
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
function readHttpStreamAbortReason(bc) {
|
|
1615
|
+
return {
|
|
1616
|
+
kind: readHttpStreamAbortReasonKind(bc),
|
|
1617
|
+
detail: read17(bc)
|
|
1618
|
+
};
|
|
1619
|
+
}
|
|
1620
|
+
function writeHttpStreamAbortReason(bc, x) {
|
|
1621
|
+
writeHttpStreamAbortReasonKind(bc, x.kind);
|
|
1622
|
+
write17(bc, x.detail);
|
|
1623
|
+
}
|
|
1624
|
+
function readToEnvoyRequestAbort(bc) {
|
|
1625
|
+
return {
|
|
1626
|
+
reason: readHttpStreamAbortReason(bc)
|
|
1627
|
+
};
|
|
1628
|
+
}
|
|
1629
|
+
function writeToEnvoyRequestAbort(bc, x) {
|
|
1630
|
+
writeHttpStreamAbortReason(bc, x.reason);
|
|
1435
1631
|
}
|
|
1436
1632
|
function readToRivetResponseStart(bc) {
|
|
1437
1633
|
return {
|
|
1438
1634
|
status: bare.readU16(bc),
|
|
1439
|
-
headers:
|
|
1440
|
-
body:
|
|
1635
|
+
headers: read22(bc),
|
|
1636
|
+
body: read18(bc),
|
|
1441
1637
|
stream: bare.readBool(bc)
|
|
1442
1638
|
};
|
|
1443
1639
|
}
|
|
1444
1640
|
function writeToRivetResponseStart(bc, x) {
|
|
1445
1641
|
bare.writeU16(bc, x.status);
|
|
1446
|
-
|
|
1447
|
-
|
|
1642
|
+
write22(bc, x.headers);
|
|
1643
|
+
write18(bc, x.body);
|
|
1448
1644
|
bare.writeBool(bc, x.stream);
|
|
1449
1645
|
}
|
|
1450
1646
|
function readToRivetResponseChunk(bc) {
|
|
@@ -1457,17 +1653,25 @@ function writeToRivetResponseChunk(bc, x) {
|
|
|
1457
1653
|
bare.writeData(bc, x.body);
|
|
1458
1654
|
bare.writeBool(bc, x.finish);
|
|
1459
1655
|
}
|
|
1656
|
+
function readToRivetResponseAbort(bc) {
|
|
1657
|
+
return {
|
|
1658
|
+
reason: readHttpStreamAbortReason(bc)
|
|
1659
|
+
};
|
|
1660
|
+
}
|
|
1661
|
+
function writeToRivetResponseAbort(bc, x) {
|
|
1662
|
+
writeHttpStreamAbortReason(bc, x.reason);
|
|
1663
|
+
}
|
|
1460
1664
|
function readToEnvoyWebSocketOpen(bc) {
|
|
1461
1665
|
return {
|
|
1462
1666
|
actorId: readId(bc),
|
|
1463
1667
|
path: bare.readString(bc),
|
|
1464
|
-
headers:
|
|
1668
|
+
headers: read22(bc)
|
|
1465
1669
|
};
|
|
1466
1670
|
}
|
|
1467
1671
|
function writeToEnvoyWebSocketOpen(bc, x) {
|
|
1468
1672
|
writeId(bc, x.actorId);
|
|
1469
1673
|
bare.writeString(bc, x.path);
|
|
1470
|
-
|
|
1674
|
+
write22(bc, x.headers);
|
|
1471
1675
|
}
|
|
1472
1676
|
function readToEnvoyWebSocketMessage(bc) {
|
|
1473
1677
|
return {
|
|
@@ -1479,10 +1683,10 @@ function writeToEnvoyWebSocketMessage(bc, x) {
|
|
|
1479
1683
|
bare.writeData(bc, x.data);
|
|
1480
1684
|
bare.writeBool(bc, x.binary);
|
|
1481
1685
|
}
|
|
1482
|
-
function
|
|
1686
|
+
function read23(bc) {
|
|
1483
1687
|
return bare.readBool(bc) ? bare.readU16(bc) : null;
|
|
1484
1688
|
}
|
|
1485
|
-
function
|
|
1689
|
+
function write23(bc, x) {
|
|
1486
1690
|
bare.writeBool(bc, x != null);
|
|
1487
1691
|
if (x != null) {
|
|
1488
1692
|
bare.writeU16(bc, x);
|
|
@@ -1490,13 +1694,13 @@ function write21(bc, x) {
|
|
|
1490
1694
|
}
|
|
1491
1695
|
function readToEnvoyWebSocketClose(bc) {
|
|
1492
1696
|
return {
|
|
1493
|
-
code:
|
|
1494
|
-
reason:
|
|
1697
|
+
code: read23(bc),
|
|
1698
|
+
reason: read17(bc)
|
|
1495
1699
|
};
|
|
1496
1700
|
}
|
|
1497
1701
|
function writeToEnvoyWebSocketClose(bc, x) {
|
|
1498
|
-
|
|
1499
|
-
|
|
1702
|
+
write23(bc, x.code);
|
|
1703
|
+
write17(bc, x.reason);
|
|
1500
1704
|
}
|
|
1501
1705
|
function readToRivetWebSocketOpen(bc) {
|
|
1502
1706
|
return {
|
|
@@ -1526,14 +1730,14 @@ function writeToRivetWebSocketMessageAck(bc, x) {
|
|
|
1526
1730
|
}
|
|
1527
1731
|
function readToRivetWebSocketClose(bc) {
|
|
1528
1732
|
return {
|
|
1529
|
-
code:
|
|
1530
|
-
reason:
|
|
1733
|
+
code: read23(bc),
|
|
1734
|
+
reason: read17(bc),
|
|
1531
1735
|
hibernate: bare.readBool(bc)
|
|
1532
1736
|
};
|
|
1533
1737
|
}
|
|
1534
1738
|
function writeToRivetWebSocketClose(bc, x) {
|
|
1535
|
-
|
|
1536
|
-
|
|
1739
|
+
write23(bc, x.code);
|
|
1740
|
+
write17(bc, x.reason);
|
|
1537
1741
|
bare.writeBool(bc, x.hibernate);
|
|
1538
1742
|
}
|
|
1539
1743
|
function readToRivetTunnelMessageKind(bc) {
|
|
@@ -1545,7 +1749,7 @@ function readToRivetTunnelMessageKind(bc) {
|
|
|
1545
1749
|
case 1:
|
|
1546
1750
|
return { tag: "ToRivetResponseChunk", val: readToRivetResponseChunk(bc) };
|
|
1547
1751
|
case 2:
|
|
1548
|
-
return { tag: "ToRivetResponseAbort", val:
|
|
1752
|
+
return { tag: "ToRivetResponseAbort", val: readToRivetResponseAbort(bc) };
|
|
1549
1753
|
case 3:
|
|
1550
1754
|
return { tag: "ToRivetWebSocketOpen", val: readToRivetWebSocketOpen(bc) };
|
|
1551
1755
|
case 4:
|
|
@@ -1574,6 +1778,7 @@ function writeToRivetTunnelMessageKind(bc, x) {
|
|
|
1574
1778
|
}
|
|
1575
1779
|
case "ToRivetResponseAbort": {
|
|
1576
1780
|
bare.writeU8(bc, 2);
|
|
1781
|
+
writeToRivetResponseAbort(bc, x.val);
|
|
1577
1782
|
break;
|
|
1578
1783
|
}
|
|
1579
1784
|
case "ToRivetWebSocketOpen": {
|
|
@@ -1617,7 +1822,7 @@ function readToEnvoyTunnelMessageKind(bc) {
|
|
|
1617
1822
|
case 1:
|
|
1618
1823
|
return { tag: "ToEnvoyRequestChunk", val: readToEnvoyRequestChunk(bc) };
|
|
1619
1824
|
case 2:
|
|
1620
|
-
return { tag: "ToEnvoyRequestAbort", val:
|
|
1825
|
+
return { tag: "ToEnvoyRequestAbort", val: readToEnvoyRequestAbort(bc) };
|
|
1621
1826
|
case 3:
|
|
1622
1827
|
return { tag: "ToEnvoyWebSocketOpen", val: readToEnvoyWebSocketOpen(bc) };
|
|
1623
1828
|
case 4:
|
|
@@ -1644,6 +1849,7 @@ function writeToEnvoyTunnelMessageKind(bc, x) {
|
|
|
1644
1849
|
}
|
|
1645
1850
|
case "ToEnvoyRequestAbort": {
|
|
1646
1851
|
bare.writeU8(bc, 2);
|
|
1852
|
+
writeToEnvoyRequestAbort(bc, x.val);
|
|
1647
1853
|
break;
|
|
1648
1854
|
}
|
|
1649
1855
|
case "ToEnvoyWebSocketOpen": {
|
|
@@ -1681,7 +1887,7 @@ function readToEnvoyPing(bc) {
|
|
|
1681
1887
|
function writeToEnvoyPing(bc, x) {
|
|
1682
1888
|
bare.writeI64(bc, x.ts);
|
|
1683
1889
|
}
|
|
1684
|
-
function
|
|
1890
|
+
function read24(bc) {
|
|
1685
1891
|
const len = bare.readUintSafe(bc);
|
|
1686
1892
|
const result = /* @__PURE__ */ new Map();
|
|
1687
1893
|
for (let i = 0; i < len; i++) {
|
|
@@ -1695,26 +1901,26 @@ function read22(bc) {
|
|
|
1695
1901
|
}
|
|
1696
1902
|
return result;
|
|
1697
1903
|
}
|
|
1698
|
-
function
|
|
1904
|
+
function write24(bc, x) {
|
|
1699
1905
|
bare.writeUintSafe(bc, x.size);
|
|
1700
1906
|
for (const kv of x) {
|
|
1701
1907
|
bare.writeString(bc, kv[0]);
|
|
1702
1908
|
writeActorName(bc, kv[1]);
|
|
1703
1909
|
}
|
|
1704
1910
|
}
|
|
1705
|
-
function
|
|
1706
|
-
return bare.readBool(bc) ?
|
|
1911
|
+
function read25(bc) {
|
|
1912
|
+
return bare.readBool(bc) ? read24(bc) : null;
|
|
1707
1913
|
}
|
|
1708
|
-
function
|
|
1914
|
+
function write25(bc, x) {
|
|
1709
1915
|
bare.writeBool(bc, x != null);
|
|
1710
1916
|
if (x != null) {
|
|
1711
|
-
|
|
1917
|
+
write24(bc, x);
|
|
1712
1918
|
}
|
|
1713
1919
|
}
|
|
1714
|
-
function
|
|
1920
|
+
function read26(bc) {
|
|
1715
1921
|
return bare.readBool(bc) ? readJson(bc) : null;
|
|
1716
1922
|
}
|
|
1717
|
-
function
|
|
1923
|
+
function write26(bc, x) {
|
|
1718
1924
|
bare.writeBool(bc, x != null);
|
|
1719
1925
|
if (x != null) {
|
|
1720
1926
|
writeJson(bc, x);
|
|
@@ -1722,13 +1928,13 @@ function write24(bc, x) {
|
|
|
1722
1928
|
}
|
|
1723
1929
|
function readToRivetMetadata(bc) {
|
|
1724
1930
|
return {
|
|
1725
|
-
prepopulateActorNames:
|
|
1726
|
-
metadata:
|
|
1931
|
+
prepopulateActorNames: read25(bc),
|
|
1932
|
+
metadata: read26(bc)
|
|
1727
1933
|
};
|
|
1728
1934
|
}
|
|
1729
1935
|
function writeToRivetMetadata(bc, x) {
|
|
1730
|
-
|
|
1731
|
-
|
|
1936
|
+
write25(bc, x.prepopulateActorNames);
|
|
1937
|
+
write26(bc, x.metadata);
|
|
1732
1938
|
}
|
|
1733
1939
|
function readToRivetEvents(bc) {
|
|
1734
1940
|
const len = bare.readUintSafe(bc);
|
|
@@ -1747,7 +1953,7 @@ function writeToRivetEvents(bc, x) {
|
|
|
1747
1953
|
writeEventWrapper(bc, x[i]);
|
|
1748
1954
|
}
|
|
1749
1955
|
}
|
|
1750
|
-
function
|
|
1956
|
+
function read27(bc) {
|
|
1751
1957
|
const len = bare.readUintSafe(bc);
|
|
1752
1958
|
if (len === 0) {
|
|
1753
1959
|
return [];
|
|
@@ -1758,7 +1964,7 @@ function read25(bc) {
|
|
|
1758
1964
|
}
|
|
1759
1965
|
return result;
|
|
1760
1966
|
}
|
|
1761
|
-
function
|
|
1967
|
+
function write27(bc, x) {
|
|
1762
1968
|
bare.writeUintSafe(bc, x.length);
|
|
1763
1969
|
for (let i = 0; i < x.length; i++) {
|
|
1764
1970
|
writeActorCheckpoint(bc, x[i]);
|
|
@@ -1766,11 +1972,11 @@ function write25(bc, x) {
|
|
|
1766
1972
|
}
|
|
1767
1973
|
function readToRivetAckCommands(bc) {
|
|
1768
1974
|
return {
|
|
1769
|
-
lastCommandCheckpoints:
|
|
1975
|
+
lastCommandCheckpoints: read27(bc)
|
|
1770
1976
|
};
|
|
1771
1977
|
}
|
|
1772
1978
|
function writeToRivetAckCommands(bc, x) {
|
|
1773
|
-
|
|
1979
|
+
write27(bc, x.lastCommandCheckpoints);
|
|
1774
1980
|
}
|
|
1775
1981
|
function readToRivetPong(bc) {
|
|
1776
1982
|
return {
|
|
@@ -1832,6 +2038,16 @@ function writeToRivetSqliteExecuteRequest(bc, x) {
|
|
|
1832
2038
|
bare.writeU32(bc, x.requestId);
|
|
1833
2039
|
writeSqliteExecuteRequest(bc, x.data);
|
|
1834
2040
|
}
|
|
2041
|
+
function readToRivetSqliteExecuteBatchRequest(bc) {
|
|
2042
|
+
return {
|
|
2043
|
+
requestId: bare.readU32(bc),
|
|
2044
|
+
data: readSqliteExecuteBatchRequest(bc)
|
|
2045
|
+
};
|
|
2046
|
+
}
|
|
2047
|
+
function writeToRivetSqliteExecuteBatchRequest(bc, x) {
|
|
2048
|
+
bare.writeU32(bc, x.requestId);
|
|
2049
|
+
writeSqliteExecuteBatchRequest(bc, x.data);
|
|
2050
|
+
}
|
|
1835
2051
|
function readToRivet(bc) {
|
|
1836
2052
|
const offset = bc.offset;
|
|
1837
2053
|
const tag = bare.readU8(bc);
|
|
@@ -1858,6 +2074,8 @@ function readToRivet(bc) {
|
|
|
1858
2074
|
return { tag: "ToRivetSqliteExecRequest", val: readToRivetSqliteExecRequest(bc) };
|
|
1859
2075
|
case 10:
|
|
1860
2076
|
return { tag: "ToRivetSqliteExecuteRequest", val: readToRivetSqliteExecuteRequest(bc) };
|
|
2077
|
+
case 11:
|
|
2078
|
+
return { tag: "ToRivetSqliteExecuteBatchRequest", val: readToRivetSqliteExecuteBatchRequest(bc) };
|
|
1861
2079
|
default: {
|
|
1862
2080
|
bc.offset = offset;
|
|
1863
2081
|
throw new bare.BareError(offset, "invalid tag");
|
|
@@ -1920,6 +2138,11 @@ function writeToRivet(bc, x) {
|
|
|
1920
2138
|
writeToRivetSqliteExecuteRequest(bc, x.val);
|
|
1921
2139
|
break;
|
|
1922
2140
|
}
|
|
2141
|
+
case "ToRivetSqliteExecuteBatchRequest": {
|
|
2142
|
+
bare.writeU8(bc, 11);
|
|
2143
|
+
writeToRivetSqliteExecuteBatchRequest(bc, x.val);
|
|
2144
|
+
break;
|
|
2145
|
+
}
|
|
1923
2146
|
}
|
|
1924
2147
|
}
|
|
1925
2148
|
function encodeToRivet(x, config) {
|
|
@@ -1978,11 +2201,11 @@ function writeToEnvoyCommands(bc, x) {
|
|
|
1978
2201
|
}
|
|
1979
2202
|
function readToEnvoyAckEvents(bc) {
|
|
1980
2203
|
return {
|
|
1981
|
-
lastEventCheckpoints:
|
|
2204
|
+
lastEventCheckpoints: read27(bc)
|
|
1982
2205
|
};
|
|
1983
2206
|
}
|
|
1984
2207
|
function writeToEnvoyAckEvents(bc, x) {
|
|
1985
|
-
|
|
2208
|
+
write27(bc, x.lastEventCheckpoints);
|
|
1986
2209
|
}
|
|
1987
2210
|
function readToEnvoyKvResponse(bc) {
|
|
1988
2211
|
return {
|
|
@@ -2034,6 +2257,16 @@ function writeToEnvoySqliteExecuteResponse(bc, x) {
|
|
|
2034
2257
|
bare.writeU32(bc, x.requestId);
|
|
2035
2258
|
writeSqliteExecuteResponse(bc, x.data);
|
|
2036
2259
|
}
|
|
2260
|
+
function readToEnvoySqliteExecuteBatchResponse(bc) {
|
|
2261
|
+
return {
|
|
2262
|
+
requestId: bare.readU32(bc),
|
|
2263
|
+
data: readSqliteExecuteBatchResponse(bc)
|
|
2264
|
+
};
|
|
2265
|
+
}
|
|
2266
|
+
function writeToEnvoySqliteExecuteBatchResponse(bc, x) {
|
|
2267
|
+
bare.writeU32(bc, x.requestId);
|
|
2268
|
+
writeSqliteExecuteBatchResponse(bc, x.data);
|
|
2269
|
+
}
|
|
2037
2270
|
function readToEnvoy(bc) {
|
|
2038
2271
|
const offset = bc.offset;
|
|
2039
2272
|
const tag = bare.readU8(bc);
|
|
@@ -2058,6 +2291,8 @@ function readToEnvoy(bc) {
|
|
|
2058
2291
|
return { tag: "ToEnvoySqliteExecResponse", val: readToEnvoySqliteExecResponse(bc) };
|
|
2059
2292
|
case 9:
|
|
2060
2293
|
return { tag: "ToEnvoySqliteExecuteResponse", val: readToEnvoySqliteExecuteResponse(bc) };
|
|
2294
|
+
case 10:
|
|
2295
|
+
return { tag: "ToEnvoySqliteExecuteBatchResponse", val: readToEnvoySqliteExecuteBatchResponse(bc) };
|
|
2061
2296
|
default: {
|
|
2062
2297
|
bc.offset = offset;
|
|
2063
2298
|
throw new bare.BareError(offset, "invalid tag");
|
|
@@ -2116,6 +2351,11 @@ function writeToEnvoy(bc, x) {
|
|
|
2116
2351
|
writeToEnvoySqliteExecuteResponse(bc, x.val);
|
|
2117
2352
|
break;
|
|
2118
2353
|
}
|
|
2354
|
+
case "ToEnvoySqliteExecuteBatchResponse": {
|
|
2355
|
+
bare.writeU8(bc, 10);
|
|
2356
|
+
writeToEnvoySqliteExecuteBatchResponse(bc, x.val);
|
|
2357
|
+
break;
|
|
2358
|
+
}
|
|
2119
2359
|
}
|
|
2120
2360
|
}
|
|
2121
2361
|
function encodeToEnvoy(x, config) {
|
|
@@ -2322,8 +2562,9 @@ function decodeToOutbound(bytes) {
|
|
|
2322
2562
|
function assert(condition, message) {
|
|
2323
2563
|
if (!condition) throw new Error(message ?? "Assertion failed");
|
|
2324
2564
|
}
|
|
2325
|
-
var VERSION =
|
|
2565
|
+
var VERSION = 8;
|
|
2326
2566
|
export {
|
|
2567
|
+
HttpStreamAbortReasonKind,
|
|
2327
2568
|
StopActorReason,
|
|
2328
2569
|
StopCode,
|
|
2329
2570
|
VERSION,
|
|
@@ -2357,6 +2598,8 @@ export {
|
|
|
2357
2598
|
readEventWrapper,
|
|
2358
2599
|
readGatewayId,
|
|
2359
2600
|
readHibernatingRequest,
|
|
2601
|
+
readHttpStreamAbortReason,
|
|
2602
|
+
readHttpStreamAbortReasonKind,
|
|
2360
2603
|
readId,
|
|
2361
2604
|
readJson,
|
|
2362
2605
|
readKvDeleteRangeRequest,
|
|
@@ -2381,6 +2624,7 @@ export {
|
|
|
2381
2624
|
readPreloadedKvEntry,
|
|
2382
2625
|
readProtocolMetadata,
|
|
2383
2626
|
readRequestId,
|
|
2627
|
+
readSqliteBatchStatement,
|
|
2384
2628
|
readSqliteBindParam,
|
|
2385
2629
|
readSqliteColumnValue,
|
|
2386
2630
|
readSqliteCommitOk,
|
|
@@ -2391,6 +2635,9 @@ export {
|
|
|
2391
2635
|
readSqliteExecOk,
|
|
2392
2636
|
readSqliteExecRequest,
|
|
2393
2637
|
readSqliteExecResponse,
|
|
2638
|
+
readSqliteExecuteBatchOk,
|
|
2639
|
+
readSqliteExecuteBatchRequest,
|
|
2640
|
+
readSqliteExecuteBatchResponse,
|
|
2394
2641
|
readSqliteExecuteOk,
|
|
2395
2642
|
readSqliteExecuteRequest,
|
|
2396
2643
|
readSqliteExecuteResponse,
|
|
@@ -2417,10 +2664,12 @@ export {
|
|
|
2417
2664
|
readToEnvoyInit,
|
|
2418
2665
|
readToEnvoyKvResponse,
|
|
2419
2666
|
readToEnvoyPing,
|
|
2667
|
+
readToEnvoyRequestAbort,
|
|
2420
2668
|
readToEnvoyRequestChunk,
|
|
2421
2669
|
readToEnvoyRequestStart,
|
|
2422
2670
|
readToEnvoySqliteCommitResponse,
|
|
2423
2671
|
readToEnvoySqliteExecResponse,
|
|
2672
|
+
readToEnvoySqliteExecuteBatchResponse,
|
|
2424
2673
|
readToEnvoySqliteExecuteResponse,
|
|
2425
2674
|
readToEnvoySqliteGetPagesResponse,
|
|
2426
2675
|
readToEnvoyTunnelMessage,
|
|
@@ -2438,10 +2687,12 @@ export {
|
|
|
2438
2687
|
readToRivetKvRequest,
|
|
2439
2688
|
readToRivetMetadata,
|
|
2440
2689
|
readToRivetPong,
|
|
2690
|
+
readToRivetResponseAbort,
|
|
2441
2691
|
readToRivetResponseChunk,
|
|
2442
2692
|
readToRivetResponseStart,
|
|
2443
2693
|
readToRivetSqliteCommitRequest,
|
|
2444
2694
|
readToRivetSqliteExecRequest,
|
|
2695
|
+
readToRivetSqliteExecuteBatchRequest,
|
|
2445
2696
|
readToRivetSqliteExecuteRequest,
|
|
2446
2697
|
readToRivetSqliteGetPagesRequest,
|
|
2447
2698
|
readToRivetTunnelMessage,
|
|
@@ -2468,6 +2719,8 @@ export {
|
|
|
2468
2719
|
writeEventWrapper,
|
|
2469
2720
|
writeGatewayId,
|
|
2470
2721
|
writeHibernatingRequest,
|
|
2722
|
+
writeHttpStreamAbortReason,
|
|
2723
|
+
writeHttpStreamAbortReasonKind,
|
|
2471
2724
|
writeId,
|
|
2472
2725
|
writeJson,
|
|
2473
2726
|
writeKvDeleteRangeRequest,
|
|
@@ -2492,6 +2745,7 @@ export {
|
|
|
2492
2745
|
writePreloadedKvEntry,
|
|
2493
2746
|
writeProtocolMetadata,
|
|
2494
2747
|
writeRequestId,
|
|
2748
|
+
writeSqliteBatchStatement,
|
|
2495
2749
|
writeSqliteBindParam,
|
|
2496
2750
|
writeSqliteColumnValue,
|
|
2497
2751
|
writeSqliteCommitOk,
|
|
@@ -2502,6 +2756,9 @@ export {
|
|
|
2502
2756
|
writeSqliteExecOk,
|
|
2503
2757
|
writeSqliteExecRequest,
|
|
2504
2758
|
writeSqliteExecResponse,
|
|
2759
|
+
writeSqliteExecuteBatchOk,
|
|
2760
|
+
writeSqliteExecuteBatchRequest,
|
|
2761
|
+
writeSqliteExecuteBatchResponse,
|
|
2505
2762
|
writeSqliteExecuteOk,
|
|
2506
2763
|
writeSqliteExecuteRequest,
|
|
2507
2764
|
writeSqliteExecuteResponse,
|
|
@@ -2528,10 +2785,12 @@ export {
|
|
|
2528
2785
|
writeToEnvoyInit,
|
|
2529
2786
|
writeToEnvoyKvResponse,
|
|
2530
2787
|
writeToEnvoyPing,
|
|
2788
|
+
writeToEnvoyRequestAbort,
|
|
2531
2789
|
writeToEnvoyRequestChunk,
|
|
2532
2790
|
writeToEnvoyRequestStart,
|
|
2533
2791
|
writeToEnvoySqliteCommitResponse,
|
|
2534
2792
|
writeToEnvoySqliteExecResponse,
|
|
2793
|
+
writeToEnvoySqliteExecuteBatchResponse,
|
|
2535
2794
|
writeToEnvoySqliteExecuteResponse,
|
|
2536
2795
|
writeToEnvoySqliteGetPagesResponse,
|
|
2537
2796
|
writeToEnvoyTunnelMessage,
|
|
@@ -2549,10 +2808,12 @@ export {
|
|
|
2549
2808
|
writeToRivetKvRequest,
|
|
2550
2809
|
writeToRivetMetadata,
|
|
2551
2810
|
writeToRivetPong,
|
|
2811
|
+
writeToRivetResponseAbort,
|
|
2552
2812
|
writeToRivetResponseChunk,
|
|
2553
2813
|
writeToRivetResponseStart,
|
|
2554
2814
|
writeToRivetSqliteCommitRequest,
|
|
2555
2815
|
writeToRivetSqliteExecRequest,
|
|
2816
|
+
writeToRivetSqliteExecuteBatchRequest,
|
|
2556
2817
|
writeToRivetSqliteExecuteRequest,
|
|
2557
2818
|
writeToRivetSqliteGetPagesRequest,
|
|
2558
2819
|
writeToRivetTunnelMessage,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivetkit/engine-envoy-protocol",
|
|
3
|
-
"version": "0.0.0-stack-
|
|
3
|
+
"version": "0.0.0-stack-fix-rivetkit-route-all-actor-sqlite-through-envoy-when-local-sqlite-is-not-compiled-pppnpqnl.0cdbf72",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "tsup src/index.ts",
|
|
24
|
+
"test": "vitest run",
|
|
24
25
|
"clean": "rm -rf dist",
|
|
25
26
|
"check-types": "tsc --noEmit"
|
|
26
27
|
},
|
|
@@ -31,6 +32,7 @@
|
|
|
31
32
|
"devDependencies": {
|
|
32
33
|
"@types/node": "^20.19.13",
|
|
33
34
|
"tsup": "^8.5.0",
|
|
34
|
-
"typescript": "^5.9.2"
|
|
35
|
+
"typescript": "^5.9.2",
|
|
36
|
+
"vitest": "^3.2.4"
|
|
35
37
|
}
|
|
36
38
|
}
|