@rivetkit/engine-envoy-protocol 0.0.0-pr.4673.028a93e → 0.0.0-pr.4673.d7d209b
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 +239 -2
- package/dist/index.js +678 -67
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -165,6 +165,169 @@ type KvResponseData = {
|
|
|
165
165
|
};
|
|
166
166
|
declare function readKvResponseData(bc: bare.ByteCursor): KvResponseData;
|
|
167
167
|
declare function writeKvResponseData(bc: bare.ByteCursor, x: KvResponseData): void;
|
|
168
|
+
type SqliteGeneration = u64;
|
|
169
|
+
declare function readSqliteGeneration(bc: bare.ByteCursor): SqliteGeneration;
|
|
170
|
+
declare function writeSqliteGeneration(bc: bare.ByteCursor, x: SqliteGeneration): void;
|
|
171
|
+
type SqliteTxid = u64;
|
|
172
|
+
declare function readSqliteTxid(bc: bare.ByteCursor): SqliteTxid;
|
|
173
|
+
declare function writeSqliteTxid(bc: bare.ByteCursor, x: SqliteTxid): void;
|
|
174
|
+
type SqlitePgno = u32;
|
|
175
|
+
declare function readSqlitePgno(bc: bare.ByteCursor): SqlitePgno;
|
|
176
|
+
declare function writeSqlitePgno(bc: bare.ByteCursor, x: SqlitePgno): void;
|
|
177
|
+
type SqliteStageId = u64;
|
|
178
|
+
declare function readSqliteStageId(bc: bare.ByteCursor): SqliteStageId;
|
|
179
|
+
declare function writeSqliteStageId(bc: bare.ByteCursor, x: SqliteStageId): void;
|
|
180
|
+
type SqlitePageBytes = ArrayBuffer;
|
|
181
|
+
declare function readSqlitePageBytes(bc: bare.ByteCursor): SqlitePageBytes;
|
|
182
|
+
declare function writeSqlitePageBytes(bc: bare.ByteCursor, x: SqlitePageBytes): void;
|
|
183
|
+
type SqliteMeta = {
|
|
184
|
+
readonly schemaVersion: u32;
|
|
185
|
+
readonly generation: SqliteGeneration;
|
|
186
|
+
readonly headTxid: SqliteTxid;
|
|
187
|
+
readonly materializedTxid: SqliteTxid;
|
|
188
|
+
readonly dbSizePages: u32;
|
|
189
|
+
readonly pageSize: u32;
|
|
190
|
+
readonly creationTsMs: i64;
|
|
191
|
+
readonly maxDeltaBytes: u64;
|
|
192
|
+
};
|
|
193
|
+
declare function readSqliteMeta(bc: bare.ByteCursor): SqliteMeta;
|
|
194
|
+
declare function writeSqliteMeta(bc: bare.ByteCursor, x: SqliteMeta): void;
|
|
195
|
+
type SqliteFenceMismatch = {
|
|
196
|
+
readonly actualMeta: SqliteMeta;
|
|
197
|
+
readonly reason: string;
|
|
198
|
+
};
|
|
199
|
+
declare function readSqliteFenceMismatch(bc: bare.ByteCursor): SqliteFenceMismatch;
|
|
200
|
+
declare function writeSqliteFenceMismatch(bc: bare.ByteCursor, x: SqliteFenceMismatch): void;
|
|
201
|
+
type SqliteDirtyPage = {
|
|
202
|
+
readonly pgno: SqlitePgno;
|
|
203
|
+
readonly bytes: SqlitePageBytes;
|
|
204
|
+
};
|
|
205
|
+
declare function readSqliteDirtyPage(bc: bare.ByteCursor): SqliteDirtyPage;
|
|
206
|
+
declare function writeSqliteDirtyPage(bc: bare.ByteCursor, x: SqliteDirtyPage): void;
|
|
207
|
+
type SqliteFetchedPage = {
|
|
208
|
+
readonly pgno: SqlitePgno;
|
|
209
|
+
readonly bytes: SqlitePageBytes | null;
|
|
210
|
+
};
|
|
211
|
+
declare function readSqliteFetchedPage(bc: bare.ByteCursor): SqliteFetchedPage;
|
|
212
|
+
declare function writeSqliteFetchedPage(bc: bare.ByteCursor, x: SqliteFetchedPage): void;
|
|
213
|
+
type SqliteGetPagesRequest = {
|
|
214
|
+
readonly actorId: Id;
|
|
215
|
+
readonly generation: SqliteGeneration;
|
|
216
|
+
readonly pgnos: readonly SqlitePgno[];
|
|
217
|
+
};
|
|
218
|
+
declare function readSqliteGetPagesRequest(bc: bare.ByteCursor): SqliteGetPagesRequest;
|
|
219
|
+
declare function writeSqliteGetPagesRequest(bc: bare.ByteCursor, x: SqliteGetPagesRequest): void;
|
|
220
|
+
type SqliteGetPagesOk = {
|
|
221
|
+
readonly pages: readonly SqliteFetchedPage[];
|
|
222
|
+
readonly meta: SqliteMeta;
|
|
223
|
+
};
|
|
224
|
+
declare function readSqliteGetPagesOk(bc: bare.ByteCursor): SqliteGetPagesOk;
|
|
225
|
+
declare function writeSqliteGetPagesOk(bc: bare.ByteCursor, x: SqliteGetPagesOk): void;
|
|
226
|
+
type SqliteGetPagesResponse = {
|
|
227
|
+
readonly tag: "SqliteGetPagesOk";
|
|
228
|
+
readonly val: SqliteGetPagesOk;
|
|
229
|
+
} | {
|
|
230
|
+
readonly tag: "SqliteFenceMismatch";
|
|
231
|
+
readonly val: SqliteFenceMismatch;
|
|
232
|
+
};
|
|
233
|
+
declare function readSqliteGetPagesResponse(bc: bare.ByteCursor): SqliteGetPagesResponse;
|
|
234
|
+
declare function writeSqliteGetPagesResponse(bc: bare.ByteCursor, x: SqliteGetPagesResponse): void;
|
|
235
|
+
type SqliteCommitRequest = {
|
|
236
|
+
readonly actorId: Id;
|
|
237
|
+
readonly generation: SqliteGeneration;
|
|
238
|
+
readonly expectedHeadTxid: SqliteTxid;
|
|
239
|
+
readonly dirtyPages: readonly SqliteDirtyPage[];
|
|
240
|
+
readonly newDbSizePages: u32;
|
|
241
|
+
};
|
|
242
|
+
declare function readSqliteCommitRequest(bc: bare.ByteCursor): SqliteCommitRequest;
|
|
243
|
+
declare function writeSqliteCommitRequest(bc: bare.ByteCursor, x: SqliteCommitRequest): void;
|
|
244
|
+
type SqliteCommitOk = {
|
|
245
|
+
readonly newHeadTxid: SqliteTxid;
|
|
246
|
+
readonly meta: SqliteMeta;
|
|
247
|
+
};
|
|
248
|
+
declare function readSqliteCommitOk(bc: bare.ByteCursor): SqliteCommitOk;
|
|
249
|
+
declare function writeSqliteCommitOk(bc: bare.ByteCursor, x: SqliteCommitOk): void;
|
|
250
|
+
type SqliteCommitTooLarge = {
|
|
251
|
+
readonly actualSizeBytes: u64;
|
|
252
|
+
readonly maxSizeBytes: u64;
|
|
253
|
+
};
|
|
254
|
+
declare function readSqliteCommitTooLarge(bc: bare.ByteCursor): SqliteCommitTooLarge;
|
|
255
|
+
declare function writeSqliteCommitTooLarge(bc: bare.ByteCursor, x: SqliteCommitTooLarge): void;
|
|
256
|
+
type SqliteCommitResponse = {
|
|
257
|
+
readonly tag: "SqliteCommitOk";
|
|
258
|
+
readonly val: SqliteCommitOk;
|
|
259
|
+
} | {
|
|
260
|
+
readonly tag: "SqliteFenceMismatch";
|
|
261
|
+
readonly val: SqliteFenceMismatch;
|
|
262
|
+
} | {
|
|
263
|
+
readonly tag: "SqliteCommitTooLarge";
|
|
264
|
+
readonly val: SqliteCommitTooLarge;
|
|
265
|
+
};
|
|
266
|
+
declare function readSqliteCommitResponse(bc: bare.ByteCursor): SqliteCommitResponse;
|
|
267
|
+
declare function writeSqliteCommitResponse(bc: bare.ByteCursor, x: SqliteCommitResponse): void;
|
|
268
|
+
type SqliteCommitStageRequest = {
|
|
269
|
+
readonly actorId: Id;
|
|
270
|
+
readonly generation: SqliteGeneration;
|
|
271
|
+
readonly stageId: SqliteStageId;
|
|
272
|
+
readonly chunkIdx: u16;
|
|
273
|
+
readonly dirtyPages: readonly SqliteDirtyPage[];
|
|
274
|
+
readonly isLast: boolean;
|
|
275
|
+
};
|
|
276
|
+
declare function readSqliteCommitStageRequest(bc: bare.ByteCursor): SqliteCommitStageRequest;
|
|
277
|
+
declare function writeSqliteCommitStageRequest(bc: bare.ByteCursor, x: SqliteCommitStageRequest): void;
|
|
278
|
+
type SqliteCommitStageOk = {
|
|
279
|
+
readonly chunkIdxCommitted: u16;
|
|
280
|
+
};
|
|
281
|
+
declare function readSqliteCommitStageOk(bc: bare.ByteCursor): SqliteCommitStageOk;
|
|
282
|
+
declare function writeSqliteCommitStageOk(bc: bare.ByteCursor, x: SqliteCommitStageOk): void;
|
|
283
|
+
type SqliteCommitStageResponse = {
|
|
284
|
+
readonly tag: "SqliteCommitStageOk";
|
|
285
|
+
readonly val: SqliteCommitStageOk;
|
|
286
|
+
} | {
|
|
287
|
+
readonly tag: "SqliteFenceMismatch";
|
|
288
|
+
readonly val: SqliteFenceMismatch;
|
|
289
|
+
};
|
|
290
|
+
declare function readSqliteCommitStageResponse(bc: bare.ByteCursor): SqliteCommitStageResponse;
|
|
291
|
+
declare function writeSqliteCommitStageResponse(bc: bare.ByteCursor, x: SqliteCommitStageResponse): void;
|
|
292
|
+
type SqliteCommitFinalizeRequest = {
|
|
293
|
+
readonly actorId: Id;
|
|
294
|
+
readonly generation: SqliteGeneration;
|
|
295
|
+
readonly expectedHeadTxid: SqliteTxid;
|
|
296
|
+
readonly stageId: SqliteStageId;
|
|
297
|
+
readonly newDbSizePages: u32;
|
|
298
|
+
};
|
|
299
|
+
declare function readSqliteCommitFinalizeRequest(bc: bare.ByteCursor): SqliteCommitFinalizeRequest;
|
|
300
|
+
declare function writeSqliteCommitFinalizeRequest(bc: bare.ByteCursor, x: SqliteCommitFinalizeRequest): void;
|
|
301
|
+
type SqliteCommitFinalizeOk = {
|
|
302
|
+
readonly newHeadTxid: SqliteTxid;
|
|
303
|
+
readonly meta: SqliteMeta;
|
|
304
|
+
};
|
|
305
|
+
declare function readSqliteCommitFinalizeOk(bc: bare.ByteCursor): SqliteCommitFinalizeOk;
|
|
306
|
+
declare function writeSqliteCommitFinalizeOk(bc: bare.ByteCursor, x: SqliteCommitFinalizeOk): void;
|
|
307
|
+
type SqliteStageNotFound = {
|
|
308
|
+
readonly stageId: SqliteStageId;
|
|
309
|
+
};
|
|
310
|
+
declare function readSqliteStageNotFound(bc: bare.ByteCursor): SqliteStageNotFound;
|
|
311
|
+
declare function writeSqliteStageNotFound(bc: bare.ByteCursor, x: SqliteStageNotFound): void;
|
|
312
|
+
type SqliteCommitFinalizeResponse = {
|
|
313
|
+
readonly tag: "SqliteCommitFinalizeOk";
|
|
314
|
+
readonly val: SqliteCommitFinalizeOk;
|
|
315
|
+
} | {
|
|
316
|
+
readonly tag: "SqliteFenceMismatch";
|
|
317
|
+
readonly val: SqliteFenceMismatch;
|
|
318
|
+
} | {
|
|
319
|
+
readonly tag: "SqliteStageNotFound";
|
|
320
|
+
readonly val: SqliteStageNotFound;
|
|
321
|
+
};
|
|
322
|
+
declare function readSqliteCommitFinalizeResponse(bc: bare.ByteCursor): SqliteCommitFinalizeResponse;
|
|
323
|
+
declare function writeSqliteCommitFinalizeResponse(bc: bare.ByteCursor, x: SqliteCommitFinalizeResponse): void;
|
|
324
|
+
type SqliteStartupData = {
|
|
325
|
+
readonly generation: SqliteGeneration;
|
|
326
|
+
readonly meta: SqliteMeta;
|
|
327
|
+
readonly preloadedPages: readonly SqliteFetchedPage[];
|
|
328
|
+
};
|
|
329
|
+
declare function readSqliteStartupData(bc: bare.ByteCursor): SqliteStartupData;
|
|
330
|
+
declare function writeSqliteStartupData(bc: bare.ByteCursor, x: SqliteStartupData): void;
|
|
168
331
|
/**
|
|
169
332
|
* Core
|
|
170
333
|
*/
|
|
@@ -287,6 +450,8 @@ type CommandStartActor = {
|
|
|
287
450
|
readonly config: ActorConfig;
|
|
288
451
|
readonly hibernatingRequests: readonly HibernatingRequest[];
|
|
289
452
|
readonly preloadedKv: PreloadedKv | null;
|
|
453
|
+
readonly sqliteSchemaVersion: u32;
|
|
454
|
+
readonly sqliteStartupData: SqliteStartupData | null;
|
|
290
455
|
};
|
|
291
456
|
declare function readCommandStartActor(bc: bare.ByteCursor): CommandStartActor;
|
|
292
457
|
declare function writeCommandStartActor(bc: bare.ByteCursor, x: CommandStartActor): void;
|
|
@@ -543,6 +708,30 @@ type ToRivetKvRequest = {
|
|
|
543
708
|
};
|
|
544
709
|
declare function readToRivetKvRequest(bc: bare.ByteCursor): ToRivetKvRequest;
|
|
545
710
|
declare function writeToRivetKvRequest(bc: bare.ByteCursor, x: ToRivetKvRequest): void;
|
|
711
|
+
type ToRivetSqliteGetPagesRequest = {
|
|
712
|
+
readonly requestId: u32;
|
|
713
|
+
readonly data: SqliteGetPagesRequest;
|
|
714
|
+
};
|
|
715
|
+
declare function readToRivetSqliteGetPagesRequest(bc: bare.ByteCursor): ToRivetSqliteGetPagesRequest;
|
|
716
|
+
declare function writeToRivetSqliteGetPagesRequest(bc: bare.ByteCursor, x: ToRivetSqliteGetPagesRequest): void;
|
|
717
|
+
type ToRivetSqliteCommitRequest = {
|
|
718
|
+
readonly requestId: u32;
|
|
719
|
+
readonly data: SqliteCommitRequest;
|
|
720
|
+
};
|
|
721
|
+
declare function readToRivetSqliteCommitRequest(bc: bare.ByteCursor): ToRivetSqliteCommitRequest;
|
|
722
|
+
declare function writeToRivetSqliteCommitRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitRequest): void;
|
|
723
|
+
type ToRivetSqliteCommitStageRequest = {
|
|
724
|
+
readonly requestId: u32;
|
|
725
|
+
readonly data: SqliteCommitStageRequest;
|
|
726
|
+
};
|
|
727
|
+
declare function readToRivetSqliteCommitStageRequest(bc: bare.ByteCursor): ToRivetSqliteCommitStageRequest;
|
|
728
|
+
declare function writeToRivetSqliteCommitStageRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitStageRequest): void;
|
|
729
|
+
type ToRivetSqliteCommitFinalizeRequest = {
|
|
730
|
+
readonly requestId: u32;
|
|
731
|
+
readonly data: SqliteCommitFinalizeRequest;
|
|
732
|
+
};
|
|
733
|
+
declare function readToRivetSqliteCommitFinalizeRequest(bc: bare.ByteCursor): ToRivetSqliteCommitFinalizeRequest;
|
|
734
|
+
declare function writeToRivetSqliteCommitFinalizeRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitFinalizeRequest): void;
|
|
546
735
|
type ToRivet = {
|
|
547
736
|
readonly tag: "ToRivetMetadata";
|
|
548
737
|
readonly val: ToRivetMetadata;
|
|
@@ -564,6 +753,18 @@ type ToRivet = {
|
|
|
564
753
|
} | {
|
|
565
754
|
readonly tag: "ToRivetTunnelMessage";
|
|
566
755
|
readonly val: ToRivetTunnelMessage;
|
|
756
|
+
} | {
|
|
757
|
+
readonly tag: "ToRivetSqliteGetPagesRequest";
|
|
758
|
+
readonly val: ToRivetSqliteGetPagesRequest;
|
|
759
|
+
} | {
|
|
760
|
+
readonly tag: "ToRivetSqliteCommitRequest";
|
|
761
|
+
readonly val: ToRivetSqliteCommitRequest;
|
|
762
|
+
} | {
|
|
763
|
+
readonly tag: "ToRivetSqliteCommitStageRequest";
|
|
764
|
+
readonly val: ToRivetSqliteCommitStageRequest;
|
|
765
|
+
} | {
|
|
766
|
+
readonly tag: "ToRivetSqliteCommitFinalizeRequest";
|
|
767
|
+
readonly val: ToRivetSqliteCommitFinalizeRequest;
|
|
567
768
|
};
|
|
568
769
|
declare function readToRivet(bc: bare.ByteCursor): ToRivet;
|
|
569
770
|
declare function writeToRivet(bc: bare.ByteCursor, x: ToRivet): void;
|
|
@@ -598,6 +799,30 @@ type ToEnvoyKvResponse = {
|
|
|
598
799
|
};
|
|
599
800
|
declare function readToEnvoyKvResponse(bc: bare.ByteCursor): ToEnvoyKvResponse;
|
|
600
801
|
declare function writeToEnvoyKvResponse(bc: bare.ByteCursor, x: ToEnvoyKvResponse): void;
|
|
802
|
+
type ToEnvoySqliteGetPagesResponse = {
|
|
803
|
+
readonly requestId: u32;
|
|
804
|
+
readonly data: SqliteGetPagesResponse;
|
|
805
|
+
};
|
|
806
|
+
declare function readToEnvoySqliteGetPagesResponse(bc: bare.ByteCursor): ToEnvoySqliteGetPagesResponse;
|
|
807
|
+
declare function writeToEnvoySqliteGetPagesResponse(bc: bare.ByteCursor, x: ToEnvoySqliteGetPagesResponse): void;
|
|
808
|
+
type ToEnvoySqliteCommitResponse = {
|
|
809
|
+
readonly requestId: u32;
|
|
810
|
+
readonly data: SqliteCommitResponse;
|
|
811
|
+
};
|
|
812
|
+
declare function readToEnvoySqliteCommitResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitResponse;
|
|
813
|
+
declare function writeToEnvoySqliteCommitResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitResponse): void;
|
|
814
|
+
type ToEnvoySqliteCommitStageResponse = {
|
|
815
|
+
readonly requestId: u32;
|
|
816
|
+
readonly data: SqliteCommitStageResponse;
|
|
817
|
+
};
|
|
818
|
+
declare function readToEnvoySqliteCommitStageResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitStageResponse;
|
|
819
|
+
declare function writeToEnvoySqliteCommitStageResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitStageResponse): void;
|
|
820
|
+
type ToEnvoySqliteCommitFinalizeResponse = {
|
|
821
|
+
readonly requestId: u32;
|
|
822
|
+
readonly data: SqliteCommitFinalizeResponse;
|
|
823
|
+
};
|
|
824
|
+
declare function readToEnvoySqliteCommitFinalizeResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitFinalizeResponse;
|
|
825
|
+
declare function writeToEnvoySqliteCommitFinalizeResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitFinalizeResponse): void;
|
|
601
826
|
type ToEnvoy = {
|
|
602
827
|
readonly tag: "ToEnvoyInit";
|
|
603
828
|
readonly val: ToEnvoyInit;
|
|
@@ -616,6 +841,18 @@ type ToEnvoy = {
|
|
|
616
841
|
} | {
|
|
617
842
|
readonly tag: "ToEnvoyPing";
|
|
618
843
|
readonly val: ToEnvoyPing;
|
|
844
|
+
} | {
|
|
845
|
+
readonly tag: "ToEnvoySqliteGetPagesResponse";
|
|
846
|
+
readonly val: ToEnvoySqliteGetPagesResponse;
|
|
847
|
+
} | {
|
|
848
|
+
readonly tag: "ToEnvoySqliteCommitResponse";
|
|
849
|
+
readonly val: ToEnvoySqliteCommitResponse;
|
|
850
|
+
} | {
|
|
851
|
+
readonly tag: "ToEnvoySqliteCommitStageResponse";
|
|
852
|
+
readonly val: ToEnvoySqliteCommitStageResponse;
|
|
853
|
+
} | {
|
|
854
|
+
readonly tag: "ToEnvoySqliteCommitFinalizeResponse";
|
|
855
|
+
readonly val: ToEnvoySqliteCommitFinalizeResponse;
|
|
619
856
|
};
|
|
620
857
|
declare function readToEnvoy(bc: bare.ByteCursor): ToEnvoy;
|
|
621
858
|
declare function writeToEnvoy(bc: bare.ByteCursor, x: ToEnvoy): void;
|
|
@@ -691,6 +928,6 @@ declare function readToOutbound(bc: bare.ByteCursor): ToOutbound;
|
|
|
691
928
|
declare function writeToOutbound(bc: bare.ByteCursor, x: ToOutbound): void;
|
|
692
929
|
declare function encodeToOutbound(x: ToOutbound, config?: Partial<bare.Config>): Uint8Array;
|
|
693
930
|
declare function decodeToOutbound(bytes: Uint8Array): ToOutbound;
|
|
694
|
-
declare const VERSION =
|
|
931
|
+
declare const VERSION = 2;
|
|
695
932
|
|
|
696
|
-
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, 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 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 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, readStopActorReason, readStopCode, readToEnvoy, readToEnvoyAckEvents, readToEnvoyCommands, readToEnvoyConn, readToEnvoyConnPing, readToEnvoyInit, readToEnvoyKvResponse, readToEnvoyPing, readToEnvoyRequestChunk, readToEnvoyRequestStart, readToEnvoyTunnelMessage, readToEnvoyTunnelMessageKind, readToEnvoyWebSocketClose, readToEnvoyWebSocketMessage, readToEnvoyWebSocketOpen, readToGateway, readToGatewayPong, readToOutbound, readToOutboundActorStart, readToRivet, readToRivetAckCommands, readToRivetEvents, readToRivetKvRequest, readToRivetMetadata, readToRivetPong, readToRivetResponseChunk, readToRivetResponseStart, 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, writeStopActorReason, writeStopCode, writeToEnvoy, writeToEnvoyAckEvents, writeToEnvoyCommands, writeToEnvoyConn, writeToEnvoyConnPing, writeToEnvoyInit, writeToEnvoyKvResponse, writeToEnvoyPing, writeToEnvoyRequestChunk, writeToEnvoyRequestStart, writeToEnvoyTunnelMessage, writeToEnvoyTunnelMessageKind, writeToEnvoyWebSocketClose, writeToEnvoyWebSocketMessage, writeToEnvoyWebSocketOpen, writeToGateway, writeToGatewayPong, writeToOutbound, writeToOutboundActorStart, writeToRivet, writeToRivetAckCommands, writeToRivetEvents, writeToRivetKvRequest, writeToRivetMetadata, writeToRivetPong, writeToRivetResponseChunk, writeToRivetResponseStart, writeToRivetTunnelMessage, writeToRivetTunnelMessageKind, writeToRivetWebSocketClose, writeToRivetWebSocketMessage, writeToRivetWebSocketMessageAck, writeToRivetWebSocketOpen };
|
|
933
|
+
export { type ActorCheckpoint, type ActorCommandKeyData, type ActorConfig, type ActorIntent, type ActorIntentSleep, type ActorIntentStop, type ActorName, type ActorState, type ActorStateRunning, type ActorStateStopped, type Command, type CommandStartActor, type CommandStopActor, type CommandWrapper, type Event, type EventActorIntent, type EventActorSetAlarm, type EventActorStateUpdate, type EventWrapper, type GatewayId, type HibernatingRequest, type Id, type Json, type KvDeleteRangeRequest, type KvDeleteRequest, type KvDeleteResponse, type KvDropRequest, type KvDropResponse, type KvErrorResponse, type KvGetRequest, type KvGetResponse, type KvKey, type KvListAllQuery, type KvListPrefixQuery, type KvListQuery, type KvListRangeQuery, type KvListRequest, type KvListResponse, type KvMetadata, type KvPutRequest, type KvPutResponse, type KvRequestData, type KvResponseData, type KvValue, type MessageId, type MessageIndex, type PreloadedKv, type PreloadedKvEntry, type ProtocolMetadata, type RequestId, type SqliteCommitFinalizeOk, type SqliteCommitFinalizeRequest, type SqliteCommitFinalizeResponse, type SqliteCommitOk, type SqliteCommitRequest, type SqliteCommitResponse, type SqliteCommitStageOk, type SqliteCommitStageRequest, type SqliteCommitStageResponse, type SqliteCommitTooLarge, type SqliteDirtyPage, type SqliteFenceMismatch, type SqliteFetchedPage, type SqliteGeneration, type SqliteGetPagesOk, type SqliteGetPagesRequest, type SqliteGetPagesResponse, type SqliteMeta, type SqlitePageBytes, type SqlitePgno, type SqliteStageId, type SqliteStageNotFound, type SqliteStartupData, type SqliteTxid, StopActorReason, StopCode, type ToEnvoy, type ToEnvoyAckEvents, type ToEnvoyCommands, type ToEnvoyConn, type ToEnvoyConnClose, type ToEnvoyConnPing, type ToEnvoyInit, type ToEnvoyKvResponse, type ToEnvoyPing, type ToEnvoyRequestAbort, type ToEnvoyRequestChunk, type ToEnvoyRequestStart, type ToEnvoySqliteCommitFinalizeResponse, type ToEnvoySqliteCommitResponse, type ToEnvoySqliteCommitStageResponse, type ToEnvoySqliteGetPagesResponse, type ToEnvoyTunnelMessage, type ToEnvoyTunnelMessageKind, type ToEnvoyWebSocketClose, type ToEnvoyWebSocketMessage, type ToEnvoyWebSocketOpen, type ToGateway, type ToGatewayPong, type ToOutbound, type ToOutboundActorStart, type ToRivet, type ToRivetAckCommands, type ToRivetEvents, type ToRivetKvRequest, type ToRivetMetadata, type ToRivetPong, type ToRivetResponseAbort, type ToRivetResponseChunk, type ToRivetResponseStart, type ToRivetSqliteCommitFinalizeRequest, type ToRivetSqliteCommitRequest, type ToRivetSqliteCommitStageRequest, type ToRivetSqliteGetPagesRequest, type ToRivetStopping, type ToRivetTunnelMessage, type ToRivetTunnelMessageKind, type ToRivetWebSocketClose, type ToRivetWebSocketMessage, type ToRivetWebSocketMessageAck, type ToRivetWebSocketOpen, VERSION, decodeActorCommandKeyData, decodeToEnvoy, decodeToEnvoyConn, decodeToGateway, decodeToOutbound, decodeToRivet, encodeActorCommandKeyData, encodeToEnvoy, encodeToEnvoyConn, encodeToGateway, encodeToOutbound, encodeToRivet, type i64, readActorCheckpoint, readActorCommandKeyData, readActorConfig, readActorIntent, readActorName, readActorState, readActorStateStopped, readCommand, readCommandStartActor, readCommandStopActor, readCommandWrapper, readEvent, readEventActorIntent, readEventActorSetAlarm, readEventActorStateUpdate, readEventWrapper, readGatewayId, readHibernatingRequest, readId, readJson, readKvDeleteRangeRequest, readKvDeleteRequest, readKvErrorResponse, readKvGetRequest, readKvGetResponse, readKvKey, readKvListPrefixQuery, readKvListQuery, readKvListRangeQuery, readKvListRequest, readKvListResponse, readKvMetadata, readKvPutRequest, readKvRequestData, readKvResponseData, readKvValue, readMessageId, readMessageIndex, readPreloadedKv, readPreloadedKvEntry, readProtocolMetadata, readRequestId, readSqliteCommitFinalizeOk, readSqliteCommitFinalizeRequest, readSqliteCommitFinalizeResponse, readSqliteCommitOk, readSqliteCommitRequest, readSqliteCommitResponse, readSqliteCommitStageOk, readSqliteCommitStageRequest, readSqliteCommitStageResponse, readSqliteCommitTooLarge, readSqliteDirtyPage, readSqliteFenceMismatch, readSqliteFetchedPage, readSqliteGeneration, readSqliteGetPagesOk, readSqliteGetPagesRequest, readSqliteGetPagesResponse, readSqliteMeta, readSqlitePageBytes, readSqlitePgno, readSqliteStageId, readSqliteStageNotFound, readSqliteStartupData, readSqliteTxid, readStopActorReason, readStopCode, readToEnvoy, readToEnvoyAckEvents, readToEnvoyCommands, readToEnvoyConn, readToEnvoyConnPing, readToEnvoyInit, readToEnvoyKvResponse, readToEnvoyPing, readToEnvoyRequestChunk, readToEnvoyRequestStart, readToEnvoySqliteCommitFinalizeResponse, readToEnvoySqliteCommitResponse, readToEnvoySqliteCommitStageResponse, readToEnvoySqliteGetPagesResponse, readToEnvoyTunnelMessage, readToEnvoyTunnelMessageKind, readToEnvoyWebSocketClose, readToEnvoyWebSocketMessage, readToEnvoyWebSocketOpen, readToGateway, readToGatewayPong, readToOutbound, readToOutboundActorStart, readToRivet, readToRivetAckCommands, readToRivetEvents, readToRivetKvRequest, readToRivetMetadata, readToRivetPong, readToRivetResponseChunk, readToRivetResponseStart, readToRivetSqliteCommitFinalizeRequest, readToRivetSqliteCommitRequest, readToRivetSqliteCommitStageRequest, readToRivetSqliteGetPagesRequest, readToRivetTunnelMessage, readToRivetTunnelMessageKind, readToRivetWebSocketClose, readToRivetWebSocketMessage, readToRivetWebSocketMessageAck, readToRivetWebSocketOpen, type u16, type u32, type u64, writeActorCheckpoint, writeActorCommandKeyData, writeActorConfig, writeActorIntent, writeActorName, writeActorState, writeActorStateStopped, writeCommand, writeCommandStartActor, writeCommandStopActor, writeCommandWrapper, writeEvent, writeEventActorIntent, writeEventActorSetAlarm, writeEventActorStateUpdate, writeEventWrapper, writeGatewayId, writeHibernatingRequest, writeId, writeJson, writeKvDeleteRangeRequest, writeKvDeleteRequest, writeKvErrorResponse, writeKvGetRequest, writeKvGetResponse, writeKvKey, writeKvListPrefixQuery, writeKvListQuery, writeKvListRangeQuery, writeKvListRequest, writeKvListResponse, writeKvMetadata, writeKvPutRequest, writeKvRequestData, writeKvResponseData, writeKvValue, writeMessageId, writeMessageIndex, writePreloadedKv, writePreloadedKvEntry, writeProtocolMetadata, writeRequestId, writeSqliteCommitFinalizeOk, writeSqliteCommitFinalizeRequest, writeSqliteCommitFinalizeResponse, writeSqliteCommitOk, writeSqliteCommitRequest, writeSqliteCommitResponse, writeSqliteCommitStageOk, writeSqliteCommitStageRequest, writeSqliteCommitStageResponse, writeSqliteCommitTooLarge, writeSqliteDirtyPage, writeSqliteFenceMismatch, writeSqliteFetchedPage, writeSqliteGeneration, writeSqliteGetPagesOk, writeSqliteGetPagesRequest, writeSqliteGetPagesResponse, writeSqliteMeta, writeSqlitePageBytes, writeSqlitePgno, writeSqliteStageId, writeSqliteStageNotFound, writeSqliteStartupData, writeSqliteTxid, writeStopActorReason, writeStopCode, writeToEnvoy, writeToEnvoyAckEvents, writeToEnvoyCommands, writeToEnvoyConn, writeToEnvoyConnPing, writeToEnvoyInit, writeToEnvoyKvResponse, writeToEnvoyPing, writeToEnvoyRequestChunk, writeToEnvoyRequestStart, writeToEnvoySqliteCommitFinalizeResponse, writeToEnvoySqliteCommitResponse, writeToEnvoySqliteCommitStageResponse, writeToEnvoySqliteGetPagesResponse, writeToEnvoyTunnelMessage, writeToEnvoyTunnelMessageKind, writeToEnvoyWebSocketClose, writeToEnvoyWebSocketMessage, writeToEnvoyWebSocketOpen, writeToGateway, writeToGatewayPong, writeToOutbound, writeToOutboundActorStart, writeToRivet, writeToRivetAckCommands, writeToRivetEvents, writeToRivetKvRequest, writeToRivetMetadata, writeToRivetPong, writeToRivetResponseChunk, writeToRivetResponseStart, writeToRivetSqliteCommitFinalizeRequest, writeToRivetSqliteCommitRequest, writeToRivetSqliteCommitStageRequest, writeToRivetSqliteGetPagesRequest, writeToRivetTunnelMessage, writeToRivetTunnelMessageKind, writeToRivetWebSocketClose, writeToRivetWebSocketMessage, writeToRivetWebSocketMessageAck, writeToRivetWebSocketOpen };
|
package/dist/index.js
CHANGED
|
@@ -366,6 +366,404 @@ function writeKvResponseData(bc, x) {
|
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
+
function readSqliteGeneration(bc) {
|
|
370
|
+
return bare.readU64(bc);
|
|
371
|
+
}
|
|
372
|
+
function writeSqliteGeneration(bc, x) {
|
|
373
|
+
bare.writeU64(bc, x);
|
|
374
|
+
}
|
|
375
|
+
function readSqliteTxid(bc) {
|
|
376
|
+
return bare.readU64(bc);
|
|
377
|
+
}
|
|
378
|
+
function writeSqliteTxid(bc, x) {
|
|
379
|
+
bare.writeU64(bc, x);
|
|
380
|
+
}
|
|
381
|
+
function readSqlitePgno(bc) {
|
|
382
|
+
return bare.readU32(bc);
|
|
383
|
+
}
|
|
384
|
+
function writeSqlitePgno(bc, x) {
|
|
385
|
+
bare.writeU32(bc, x);
|
|
386
|
+
}
|
|
387
|
+
function readSqliteStageId(bc) {
|
|
388
|
+
return bare.readU64(bc);
|
|
389
|
+
}
|
|
390
|
+
function writeSqliteStageId(bc, x) {
|
|
391
|
+
bare.writeU64(bc, x);
|
|
392
|
+
}
|
|
393
|
+
function readSqlitePageBytes(bc) {
|
|
394
|
+
return bare.readData(bc);
|
|
395
|
+
}
|
|
396
|
+
function writeSqlitePageBytes(bc, x) {
|
|
397
|
+
bare.writeData(bc, x);
|
|
398
|
+
}
|
|
399
|
+
function readSqliteMeta(bc) {
|
|
400
|
+
return {
|
|
401
|
+
schemaVersion: bare.readU32(bc),
|
|
402
|
+
generation: readSqliteGeneration(bc),
|
|
403
|
+
headTxid: readSqliteTxid(bc),
|
|
404
|
+
materializedTxid: readSqliteTxid(bc),
|
|
405
|
+
dbSizePages: bare.readU32(bc),
|
|
406
|
+
pageSize: bare.readU32(bc),
|
|
407
|
+
creationTsMs: bare.readI64(bc),
|
|
408
|
+
maxDeltaBytes: bare.readU64(bc)
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
function writeSqliteMeta(bc, x) {
|
|
412
|
+
bare.writeU32(bc, x.schemaVersion);
|
|
413
|
+
writeSqliteGeneration(bc, x.generation);
|
|
414
|
+
writeSqliteTxid(bc, x.headTxid);
|
|
415
|
+
writeSqliteTxid(bc, x.materializedTxid);
|
|
416
|
+
bare.writeU32(bc, x.dbSizePages);
|
|
417
|
+
bare.writeU32(bc, x.pageSize);
|
|
418
|
+
bare.writeI64(bc, x.creationTsMs);
|
|
419
|
+
bare.writeU64(bc, x.maxDeltaBytes);
|
|
420
|
+
}
|
|
421
|
+
function readSqliteFenceMismatch(bc) {
|
|
422
|
+
return {
|
|
423
|
+
actualMeta: readSqliteMeta(bc),
|
|
424
|
+
reason: bare.readString(bc)
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
function writeSqliteFenceMismatch(bc, x) {
|
|
428
|
+
writeSqliteMeta(bc, x.actualMeta);
|
|
429
|
+
bare.writeString(bc, x.reason);
|
|
430
|
+
}
|
|
431
|
+
function readSqliteDirtyPage(bc) {
|
|
432
|
+
return {
|
|
433
|
+
pgno: readSqlitePgno(bc),
|
|
434
|
+
bytes: readSqlitePageBytes(bc)
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
function writeSqliteDirtyPage(bc, x) {
|
|
438
|
+
writeSqlitePgno(bc, x.pgno);
|
|
439
|
+
writeSqlitePageBytes(bc, x.bytes);
|
|
440
|
+
}
|
|
441
|
+
function read5(bc) {
|
|
442
|
+
return bare.readBool(bc) ? readSqlitePageBytes(bc) : null;
|
|
443
|
+
}
|
|
444
|
+
function write5(bc, x) {
|
|
445
|
+
bare.writeBool(bc, x != null);
|
|
446
|
+
if (x != null) {
|
|
447
|
+
writeSqlitePageBytes(bc, x);
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
function readSqliteFetchedPage(bc) {
|
|
451
|
+
return {
|
|
452
|
+
pgno: readSqlitePgno(bc),
|
|
453
|
+
bytes: read5(bc)
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
function writeSqliteFetchedPage(bc, x) {
|
|
457
|
+
writeSqlitePgno(bc, x.pgno);
|
|
458
|
+
write5(bc, x.bytes);
|
|
459
|
+
}
|
|
460
|
+
function read6(bc) {
|
|
461
|
+
const len = bare.readUintSafe(bc);
|
|
462
|
+
if (len === 0) {
|
|
463
|
+
return [];
|
|
464
|
+
}
|
|
465
|
+
const result = [readSqlitePgno(bc)];
|
|
466
|
+
for (let i = 1; i < len; i++) {
|
|
467
|
+
result[i] = readSqlitePgno(bc);
|
|
468
|
+
}
|
|
469
|
+
return result;
|
|
470
|
+
}
|
|
471
|
+
function write6(bc, x) {
|
|
472
|
+
bare.writeUintSafe(bc, x.length);
|
|
473
|
+
for (let i = 0; i < x.length; i++) {
|
|
474
|
+
writeSqlitePgno(bc, x[i]);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
function readSqliteGetPagesRequest(bc) {
|
|
478
|
+
return {
|
|
479
|
+
actorId: readId(bc),
|
|
480
|
+
generation: readSqliteGeneration(bc),
|
|
481
|
+
pgnos: read6(bc)
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
function writeSqliteGetPagesRequest(bc, x) {
|
|
485
|
+
writeId(bc, x.actorId);
|
|
486
|
+
writeSqliteGeneration(bc, x.generation);
|
|
487
|
+
write6(bc, x.pgnos);
|
|
488
|
+
}
|
|
489
|
+
function read7(bc) {
|
|
490
|
+
const len = bare.readUintSafe(bc);
|
|
491
|
+
if (len === 0) {
|
|
492
|
+
return [];
|
|
493
|
+
}
|
|
494
|
+
const result = [readSqliteFetchedPage(bc)];
|
|
495
|
+
for (let i = 1; i < len; i++) {
|
|
496
|
+
result[i] = readSqliteFetchedPage(bc);
|
|
497
|
+
}
|
|
498
|
+
return result;
|
|
499
|
+
}
|
|
500
|
+
function write7(bc, x) {
|
|
501
|
+
bare.writeUintSafe(bc, x.length);
|
|
502
|
+
for (let i = 0; i < x.length; i++) {
|
|
503
|
+
writeSqliteFetchedPage(bc, x[i]);
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
function readSqliteGetPagesOk(bc) {
|
|
507
|
+
return {
|
|
508
|
+
pages: read7(bc),
|
|
509
|
+
meta: readSqliteMeta(bc)
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
function writeSqliteGetPagesOk(bc, x) {
|
|
513
|
+
write7(bc, x.pages);
|
|
514
|
+
writeSqliteMeta(bc, x.meta);
|
|
515
|
+
}
|
|
516
|
+
function readSqliteGetPagesResponse(bc) {
|
|
517
|
+
const offset = bc.offset;
|
|
518
|
+
const tag = bare.readU8(bc);
|
|
519
|
+
switch (tag) {
|
|
520
|
+
case 0:
|
|
521
|
+
return { tag: "SqliteGetPagesOk", val: readSqliteGetPagesOk(bc) };
|
|
522
|
+
case 1:
|
|
523
|
+
return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
|
|
524
|
+
default: {
|
|
525
|
+
bc.offset = offset;
|
|
526
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
function writeSqliteGetPagesResponse(bc, x) {
|
|
531
|
+
switch (x.tag) {
|
|
532
|
+
case "SqliteGetPagesOk": {
|
|
533
|
+
bare.writeU8(bc, 0);
|
|
534
|
+
writeSqliteGetPagesOk(bc, x.val);
|
|
535
|
+
break;
|
|
536
|
+
}
|
|
537
|
+
case "SqliteFenceMismatch": {
|
|
538
|
+
bare.writeU8(bc, 1);
|
|
539
|
+
writeSqliteFenceMismatch(bc, x.val);
|
|
540
|
+
break;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
function read8(bc) {
|
|
545
|
+
const len = bare.readUintSafe(bc);
|
|
546
|
+
if (len === 0) {
|
|
547
|
+
return [];
|
|
548
|
+
}
|
|
549
|
+
const result = [readSqliteDirtyPage(bc)];
|
|
550
|
+
for (let i = 1; i < len; i++) {
|
|
551
|
+
result[i] = readSqliteDirtyPage(bc);
|
|
552
|
+
}
|
|
553
|
+
return result;
|
|
554
|
+
}
|
|
555
|
+
function write8(bc, x) {
|
|
556
|
+
bare.writeUintSafe(bc, x.length);
|
|
557
|
+
for (let i = 0; i < x.length; i++) {
|
|
558
|
+
writeSqliteDirtyPage(bc, x[i]);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
function readSqliteCommitRequest(bc) {
|
|
562
|
+
return {
|
|
563
|
+
actorId: readId(bc),
|
|
564
|
+
generation: readSqliteGeneration(bc),
|
|
565
|
+
expectedHeadTxid: readSqliteTxid(bc),
|
|
566
|
+
dirtyPages: read8(bc),
|
|
567
|
+
newDbSizePages: bare.readU32(bc)
|
|
568
|
+
};
|
|
569
|
+
}
|
|
570
|
+
function writeSqliteCommitRequest(bc, x) {
|
|
571
|
+
writeId(bc, x.actorId);
|
|
572
|
+
writeSqliteGeneration(bc, x.generation);
|
|
573
|
+
writeSqliteTxid(bc, x.expectedHeadTxid);
|
|
574
|
+
write8(bc, x.dirtyPages);
|
|
575
|
+
bare.writeU32(bc, x.newDbSizePages);
|
|
576
|
+
}
|
|
577
|
+
function readSqliteCommitOk(bc) {
|
|
578
|
+
return {
|
|
579
|
+
newHeadTxid: readSqliteTxid(bc),
|
|
580
|
+
meta: readSqliteMeta(bc)
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
function writeSqliteCommitOk(bc, x) {
|
|
584
|
+
writeSqliteTxid(bc, x.newHeadTxid);
|
|
585
|
+
writeSqliteMeta(bc, x.meta);
|
|
586
|
+
}
|
|
587
|
+
function readSqliteCommitTooLarge(bc) {
|
|
588
|
+
return {
|
|
589
|
+
actualSizeBytes: bare.readU64(bc),
|
|
590
|
+
maxSizeBytes: bare.readU64(bc)
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
function writeSqliteCommitTooLarge(bc, x) {
|
|
594
|
+
bare.writeU64(bc, x.actualSizeBytes);
|
|
595
|
+
bare.writeU64(bc, x.maxSizeBytes);
|
|
596
|
+
}
|
|
597
|
+
function readSqliteCommitResponse(bc) {
|
|
598
|
+
const offset = bc.offset;
|
|
599
|
+
const tag = bare.readU8(bc);
|
|
600
|
+
switch (tag) {
|
|
601
|
+
case 0:
|
|
602
|
+
return { tag: "SqliteCommitOk", val: readSqliteCommitOk(bc) };
|
|
603
|
+
case 1:
|
|
604
|
+
return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
|
|
605
|
+
case 2:
|
|
606
|
+
return { tag: "SqliteCommitTooLarge", val: readSqliteCommitTooLarge(bc) };
|
|
607
|
+
default: {
|
|
608
|
+
bc.offset = offset;
|
|
609
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
function writeSqliteCommitResponse(bc, x) {
|
|
614
|
+
switch (x.tag) {
|
|
615
|
+
case "SqliteCommitOk": {
|
|
616
|
+
bare.writeU8(bc, 0);
|
|
617
|
+
writeSqliteCommitOk(bc, x.val);
|
|
618
|
+
break;
|
|
619
|
+
}
|
|
620
|
+
case "SqliteFenceMismatch": {
|
|
621
|
+
bare.writeU8(bc, 1);
|
|
622
|
+
writeSqliteFenceMismatch(bc, x.val);
|
|
623
|
+
break;
|
|
624
|
+
}
|
|
625
|
+
case "SqliteCommitTooLarge": {
|
|
626
|
+
bare.writeU8(bc, 2);
|
|
627
|
+
writeSqliteCommitTooLarge(bc, x.val);
|
|
628
|
+
break;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
function readSqliteCommitStageRequest(bc) {
|
|
633
|
+
return {
|
|
634
|
+
actorId: readId(bc),
|
|
635
|
+
generation: readSqliteGeneration(bc),
|
|
636
|
+
stageId: readSqliteStageId(bc),
|
|
637
|
+
chunkIdx: bare.readU16(bc),
|
|
638
|
+
dirtyPages: read8(bc),
|
|
639
|
+
isLast: bare.readBool(bc)
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
function writeSqliteCommitStageRequest(bc, x) {
|
|
643
|
+
writeId(bc, x.actorId);
|
|
644
|
+
writeSqliteGeneration(bc, x.generation);
|
|
645
|
+
writeSqliteStageId(bc, x.stageId);
|
|
646
|
+
bare.writeU16(bc, x.chunkIdx);
|
|
647
|
+
write8(bc, x.dirtyPages);
|
|
648
|
+
bare.writeBool(bc, x.isLast);
|
|
649
|
+
}
|
|
650
|
+
function readSqliteCommitStageOk(bc) {
|
|
651
|
+
return {
|
|
652
|
+
chunkIdxCommitted: bare.readU16(bc)
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
function writeSqliteCommitStageOk(bc, x) {
|
|
656
|
+
bare.writeU16(bc, x.chunkIdxCommitted);
|
|
657
|
+
}
|
|
658
|
+
function readSqliteCommitStageResponse(bc) {
|
|
659
|
+
const offset = bc.offset;
|
|
660
|
+
const tag = bare.readU8(bc);
|
|
661
|
+
switch (tag) {
|
|
662
|
+
case 0:
|
|
663
|
+
return { tag: "SqliteCommitStageOk", val: readSqliteCommitStageOk(bc) };
|
|
664
|
+
case 1:
|
|
665
|
+
return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
|
|
666
|
+
default: {
|
|
667
|
+
bc.offset = offset;
|
|
668
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
function writeSqliteCommitStageResponse(bc, x) {
|
|
673
|
+
switch (x.tag) {
|
|
674
|
+
case "SqliteCommitStageOk": {
|
|
675
|
+
bare.writeU8(bc, 0);
|
|
676
|
+
writeSqliteCommitStageOk(bc, x.val);
|
|
677
|
+
break;
|
|
678
|
+
}
|
|
679
|
+
case "SqliteFenceMismatch": {
|
|
680
|
+
bare.writeU8(bc, 1);
|
|
681
|
+
writeSqliteFenceMismatch(bc, x.val);
|
|
682
|
+
break;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
function readSqliteCommitFinalizeRequest(bc) {
|
|
687
|
+
return {
|
|
688
|
+
actorId: readId(bc),
|
|
689
|
+
generation: readSqliteGeneration(bc),
|
|
690
|
+
expectedHeadTxid: readSqliteTxid(bc),
|
|
691
|
+
stageId: readSqliteStageId(bc),
|
|
692
|
+
newDbSizePages: bare.readU32(bc)
|
|
693
|
+
};
|
|
694
|
+
}
|
|
695
|
+
function writeSqliteCommitFinalizeRequest(bc, x) {
|
|
696
|
+
writeId(bc, x.actorId);
|
|
697
|
+
writeSqliteGeneration(bc, x.generation);
|
|
698
|
+
writeSqliteTxid(bc, x.expectedHeadTxid);
|
|
699
|
+
writeSqliteStageId(bc, x.stageId);
|
|
700
|
+
bare.writeU32(bc, x.newDbSizePages);
|
|
701
|
+
}
|
|
702
|
+
function readSqliteCommitFinalizeOk(bc) {
|
|
703
|
+
return {
|
|
704
|
+
newHeadTxid: readSqliteTxid(bc),
|
|
705
|
+
meta: readSqliteMeta(bc)
|
|
706
|
+
};
|
|
707
|
+
}
|
|
708
|
+
function writeSqliteCommitFinalizeOk(bc, x) {
|
|
709
|
+
writeSqliteTxid(bc, x.newHeadTxid);
|
|
710
|
+
writeSqliteMeta(bc, x.meta);
|
|
711
|
+
}
|
|
712
|
+
function readSqliteStageNotFound(bc) {
|
|
713
|
+
return {
|
|
714
|
+
stageId: readSqliteStageId(bc)
|
|
715
|
+
};
|
|
716
|
+
}
|
|
717
|
+
function writeSqliteStageNotFound(bc, x) {
|
|
718
|
+
writeSqliteStageId(bc, x.stageId);
|
|
719
|
+
}
|
|
720
|
+
function readSqliteCommitFinalizeResponse(bc) {
|
|
721
|
+
const offset = bc.offset;
|
|
722
|
+
const tag = bare.readU8(bc);
|
|
723
|
+
switch (tag) {
|
|
724
|
+
case 0:
|
|
725
|
+
return { tag: "SqliteCommitFinalizeOk", val: readSqliteCommitFinalizeOk(bc) };
|
|
726
|
+
case 1:
|
|
727
|
+
return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
|
|
728
|
+
case 2:
|
|
729
|
+
return { tag: "SqliteStageNotFound", val: readSqliteStageNotFound(bc) };
|
|
730
|
+
default: {
|
|
731
|
+
bc.offset = offset;
|
|
732
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
function writeSqliteCommitFinalizeResponse(bc, x) {
|
|
737
|
+
switch (x.tag) {
|
|
738
|
+
case "SqliteCommitFinalizeOk": {
|
|
739
|
+
bare.writeU8(bc, 0);
|
|
740
|
+
writeSqliteCommitFinalizeOk(bc, x.val);
|
|
741
|
+
break;
|
|
742
|
+
}
|
|
743
|
+
case "SqliteFenceMismatch": {
|
|
744
|
+
bare.writeU8(bc, 1);
|
|
745
|
+
writeSqliteFenceMismatch(bc, x.val);
|
|
746
|
+
break;
|
|
747
|
+
}
|
|
748
|
+
case "SqliteStageNotFound": {
|
|
749
|
+
bare.writeU8(bc, 2);
|
|
750
|
+
writeSqliteStageNotFound(bc, x.val);
|
|
751
|
+
break;
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
function readSqliteStartupData(bc) {
|
|
756
|
+
return {
|
|
757
|
+
generation: readSqliteGeneration(bc),
|
|
758
|
+
meta: readSqliteMeta(bc),
|
|
759
|
+
preloadedPages: read7(bc)
|
|
760
|
+
};
|
|
761
|
+
}
|
|
762
|
+
function writeSqliteStartupData(bc, x) {
|
|
763
|
+
writeSqliteGeneration(bc, x.generation);
|
|
764
|
+
writeSqliteMeta(bc, x.meta);
|
|
765
|
+
write7(bc, x.preloadedPages);
|
|
766
|
+
}
|
|
369
767
|
var StopCode = /* @__PURE__ */ ((StopCode2) => {
|
|
370
768
|
StopCode2["Ok"] = "Ok";
|
|
371
769
|
StopCode2["Error"] = "Error";
|
|
@@ -405,19 +803,19 @@ function readActorName(bc) {
|
|
|
405
803
|
function writeActorName(bc, x) {
|
|
406
804
|
writeJson(bc, x.metadata);
|
|
407
805
|
}
|
|
408
|
-
function
|
|
806
|
+
function read9(bc) {
|
|
409
807
|
return bare.readBool(bc) ? bare.readString(bc) : null;
|
|
410
808
|
}
|
|
411
|
-
function
|
|
809
|
+
function write9(bc, x) {
|
|
412
810
|
bare.writeBool(bc, x != null);
|
|
413
811
|
if (x != null) {
|
|
414
812
|
bare.writeString(bc, x);
|
|
415
813
|
}
|
|
416
814
|
}
|
|
417
|
-
function
|
|
815
|
+
function read10(bc) {
|
|
418
816
|
return bare.readBool(bc) ? bare.readData(bc) : null;
|
|
419
817
|
}
|
|
420
|
-
function
|
|
818
|
+
function write10(bc, x) {
|
|
421
819
|
bare.writeBool(bc, x != null);
|
|
422
820
|
if (x != null) {
|
|
423
821
|
bare.writeData(bc, x);
|
|
@@ -426,16 +824,16 @@ function write6(bc, x) {
|
|
|
426
824
|
function readActorConfig(bc) {
|
|
427
825
|
return {
|
|
428
826
|
name: bare.readString(bc),
|
|
429
|
-
key:
|
|
827
|
+
key: read9(bc),
|
|
430
828
|
createTs: bare.readI64(bc),
|
|
431
|
-
input:
|
|
829
|
+
input: read10(bc)
|
|
432
830
|
};
|
|
433
831
|
}
|
|
434
832
|
function writeActorConfig(bc, x) {
|
|
435
833
|
bare.writeString(bc, x.name);
|
|
436
|
-
|
|
834
|
+
write9(bc, x.key);
|
|
437
835
|
bare.writeI64(bc, x.createTs);
|
|
438
|
-
|
|
836
|
+
write10(bc, x.input);
|
|
439
837
|
}
|
|
440
838
|
function readActorCheckpoint(bc) {
|
|
441
839
|
return {
|
|
@@ -478,12 +876,12 @@ function writeActorIntent(bc, x) {
|
|
|
478
876
|
function readActorStateStopped(bc) {
|
|
479
877
|
return {
|
|
480
878
|
code: readStopCode(bc),
|
|
481
|
-
message:
|
|
879
|
+
message: read9(bc)
|
|
482
880
|
};
|
|
483
881
|
}
|
|
484
882
|
function writeActorStateStopped(bc, x) {
|
|
485
883
|
writeStopCode(bc, x.code);
|
|
486
|
-
|
|
884
|
+
write9(bc, x.message);
|
|
487
885
|
}
|
|
488
886
|
function readActorState(bc) {
|
|
489
887
|
const offset = bc.offset;
|
|
@@ -528,10 +926,10 @@ function readEventActorStateUpdate(bc) {
|
|
|
528
926
|
function writeEventActorStateUpdate(bc, x) {
|
|
529
927
|
writeActorState(bc, x.state);
|
|
530
928
|
}
|
|
531
|
-
function
|
|
929
|
+
function read11(bc) {
|
|
532
930
|
return bare.readBool(bc) ? bare.readI64(bc) : null;
|
|
533
931
|
}
|
|
534
|
-
function
|
|
932
|
+
function write11(bc, x) {
|
|
535
933
|
bare.writeBool(bc, x != null);
|
|
536
934
|
if (x != null) {
|
|
537
935
|
bare.writeI64(bc, x);
|
|
@@ -539,11 +937,11 @@ function write7(bc, x) {
|
|
|
539
937
|
}
|
|
540
938
|
function readEventActorSetAlarm(bc) {
|
|
541
939
|
return {
|
|
542
|
-
alarmTs:
|
|
940
|
+
alarmTs: read11(bc)
|
|
543
941
|
};
|
|
544
942
|
}
|
|
545
943
|
function writeEventActorSetAlarm(bc, x) {
|
|
546
|
-
|
|
944
|
+
write11(bc, x.alarmTs);
|
|
547
945
|
}
|
|
548
946
|
function readEvent(bc) {
|
|
549
947
|
const offset = bc.offset;
|
|
@@ -602,7 +1000,7 @@ function writePreloadedKvEntry(bc, x) {
|
|
|
602
1000
|
writeKvValue(bc, x.value);
|
|
603
1001
|
writeKvMetadata(bc, x.metadata);
|
|
604
1002
|
}
|
|
605
|
-
function
|
|
1003
|
+
function read12(bc) {
|
|
606
1004
|
const len = bare.readUintSafe(bc);
|
|
607
1005
|
if (len === 0) {
|
|
608
1006
|
return [];
|
|
@@ -613,7 +1011,7 @@ function read8(bc) {
|
|
|
613
1011
|
}
|
|
614
1012
|
return result;
|
|
615
1013
|
}
|
|
616
|
-
function
|
|
1014
|
+
function write12(bc, x) {
|
|
617
1015
|
bare.writeUintSafe(bc, x.length);
|
|
618
1016
|
for (let i = 0; i < x.length; i++) {
|
|
619
1017
|
writePreloadedKvEntry(bc, x[i]);
|
|
@@ -621,13 +1019,13 @@ function write8(bc, x) {
|
|
|
621
1019
|
}
|
|
622
1020
|
function readPreloadedKv(bc) {
|
|
623
1021
|
return {
|
|
624
|
-
entries:
|
|
1022
|
+
entries: read12(bc),
|
|
625
1023
|
requestedGetKeys: read0(bc),
|
|
626
1024
|
requestedPrefixes: read0(bc)
|
|
627
1025
|
};
|
|
628
1026
|
}
|
|
629
1027
|
function writePreloadedKv(bc, x) {
|
|
630
|
-
|
|
1028
|
+
write12(bc, x.entries);
|
|
631
1029
|
write0(bc, x.requestedGetKeys);
|
|
632
1030
|
write0(bc, x.requestedPrefixes);
|
|
633
1031
|
}
|
|
@@ -641,7 +1039,7 @@ function writeHibernatingRequest(bc, x) {
|
|
|
641
1039
|
writeGatewayId(bc, x.gatewayId);
|
|
642
1040
|
writeRequestId(bc, x.requestId);
|
|
643
1041
|
}
|
|
644
|
-
function
|
|
1042
|
+
function read13(bc) {
|
|
645
1043
|
const len = bare.readUintSafe(bc);
|
|
646
1044
|
if (len === 0) {
|
|
647
1045
|
return [];
|
|
@@ -652,32 +1050,45 @@ function read9(bc) {
|
|
|
652
1050
|
}
|
|
653
1051
|
return result;
|
|
654
1052
|
}
|
|
655
|
-
function
|
|
1053
|
+
function write13(bc, x) {
|
|
656
1054
|
bare.writeUintSafe(bc, x.length);
|
|
657
1055
|
for (let i = 0; i < x.length; i++) {
|
|
658
1056
|
writeHibernatingRequest(bc, x[i]);
|
|
659
1057
|
}
|
|
660
1058
|
}
|
|
661
|
-
function
|
|
1059
|
+
function read14(bc) {
|
|
662
1060
|
return bare.readBool(bc) ? readPreloadedKv(bc) : null;
|
|
663
1061
|
}
|
|
664
|
-
function
|
|
1062
|
+
function write14(bc, x) {
|
|
665
1063
|
bare.writeBool(bc, x != null);
|
|
666
1064
|
if (x != null) {
|
|
667
1065
|
writePreloadedKv(bc, x);
|
|
668
1066
|
}
|
|
669
1067
|
}
|
|
1068
|
+
function read15(bc) {
|
|
1069
|
+
return bare.readBool(bc) ? readSqliteStartupData(bc) : null;
|
|
1070
|
+
}
|
|
1071
|
+
function write15(bc, x) {
|
|
1072
|
+
bare.writeBool(bc, x != null);
|
|
1073
|
+
if (x != null) {
|
|
1074
|
+
writeSqliteStartupData(bc, x);
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
670
1077
|
function readCommandStartActor(bc) {
|
|
671
1078
|
return {
|
|
672
1079
|
config: readActorConfig(bc),
|
|
673
|
-
hibernatingRequests:
|
|
674
|
-
preloadedKv:
|
|
1080
|
+
hibernatingRequests: read13(bc),
|
|
1081
|
+
preloadedKv: read14(bc),
|
|
1082
|
+
sqliteSchemaVersion: bare.readU32(bc),
|
|
1083
|
+
sqliteStartupData: read15(bc)
|
|
675
1084
|
};
|
|
676
1085
|
}
|
|
677
1086
|
function writeCommandStartActor(bc, x) {
|
|
678
1087
|
writeActorConfig(bc, x.config);
|
|
679
|
-
|
|
680
|
-
|
|
1088
|
+
write13(bc, x.hibernatingRequests);
|
|
1089
|
+
write14(bc, x.preloadedKv);
|
|
1090
|
+
bare.writeU32(bc, x.sqliteSchemaVersion);
|
|
1091
|
+
write15(bc, x.sqliteStartupData);
|
|
681
1092
|
}
|
|
682
1093
|
var StopActorReason = /* @__PURE__ */ ((StopActorReason2) => {
|
|
683
1094
|
StopActorReason2["SleepIntent"] = "SleepIntent";
|
|
@@ -834,7 +1245,7 @@ function writeMessageId(bc, x) {
|
|
|
834
1245
|
writeRequestId(bc, x.requestId);
|
|
835
1246
|
writeMessageIndex(bc, x.messageIndex);
|
|
836
1247
|
}
|
|
837
|
-
function
|
|
1248
|
+
function read16(bc) {
|
|
838
1249
|
const len = bare.readUintSafe(bc);
|
|
839
1250
|
const result = /* @__PURE__ */ new Map();
|
|
840
1251
|
for (let i = 0; i < len; i++) {
|
|
@@ -848,7 +1259,7 @@ function read11(bc) {
|
|
|
848
1259
|
}
|
|
849
1260
|
return result;
|
|
850
1261
|
}
|
|
851
|
-
function
|
|
1262
|
+
function write16(bc, x) {
|
|
852
1263
|
bare.writeUintSafe(bc, x.size);
|
|
853
1264
|
for (const kv of x) {
|
|
854
1265
|
bare.writeString(bc, kv[0]);
|
|
@@ -860,8 +1271,8 @@ function readToEnvoyRequestStart(bc) {
|
|
|
860
1271
|
actorId: readId(bc),
|
|
861
1272
|
method: bare.readString(bc),
|
|
862
1273
|
path: bare.readString(bc),
|
|
863
|
-
headers:
|
|
864
|
-
body:
|
|
1274
|
+
headers: read16(bc),
|
|
1275
|
+
body: read10(bc),
|
|
865
1276
|
stream: bare.readBool(bc)
|
|
866
1277
|
};
|
|
867
1278
|
}
|
|
@@ -869,8 +1280,8 @@ function writeToEnvoyRequestStart(bc, x) {
|
|
|
869
1280
|
writeId(bc, x.actorId);
|
|
870
1281
|
bare.writeString(bc, x.method);
|
|
871
1282
|
bare.writeString(bc, x.path);
|
|
872
|
-
|
|
873
|
-
|
|
1283
|
+
write16(bc, x.headers);
|
|
1284
|
+
write10(bc, x.body);
|
|
874
1285
|
bare.writeBool(bc, x.stream);
|
|
875
1286
|
}
|
|
876
1287
|
function readToEnvoyRequestChunk(bc) {
|
|
@@ -886,15 +1297,15 @@ function writeToEnvoyRequestChunk(bc, x) {
|
|
|
886
1297
|
function readToRivetResponseStart(bc) {
|
|
887
1298
|
return {
|
|
888
1299
|
status: bare.readU16(bc),
|
|
889
|
-
headers:
|
|
890
|
-
body:
|
|
1300
|
+
headers: read16(bc),
|
|
1301
|
+
body: read10(bc),
|
|
891
1302
|
stream: bare.readBool(bc)
|
|
892
1303
|
};
|
|
893
1304
|
}
|
|
894
1305
|
function writeToRivetResponseStart(bc, x) {
|
|
895
1306
|
bare.writeU16(bc, x.status);
|
|
896
|
-
|
|
897
|
-
|
|
1307
|
+
write16(bc, x.headers);
|
|
1308
|
+
write10(bc, x.body);
|
|
898
1309
|
bare.writeBool(bc, x.stream);
|
|
899
1310
|
}
|
|
900
1311
|
function readToRivetResponseChunk(bc) {
|
|
@@ -911,13 +1322,13 @@ function readToEnvoyWebSocketOpen(bc) {
|
|
|
911
1322
|
return {
|
|
912
1323
|
actorId: readId(bc),
|
|
913
1324
|
path: bare.readString(bc),
|
|
914
|
-
headers:
|
|
1325
|
+
headers: read16(bc)
|
|
915
1326
|
};
|
|
916
1327
|
}
|
|
917
1328
|
function writeToEnvoyWebSocketOpen(bc, x) {
|
|
918
1329
|
writeId(bc, x.actorId);
|
|
919
1330
|
bare.writeString(bc, x.path);
|
|
920
|
-
|
|
1331
|
+
write16(bc, x.headers);
|
|
921
1332
|
}
|
|
922
1333
|
function readToEnvoyWebSocketMessage(bc) {
|
|
923
1334
|
return {
|
|
@@ -929,10 +1340,10 @@ function writeToEnvoyWebSocketMessage(bc, x) {
|
|
|
929
1340
|
bare.writeData(bc, x.data);
|
|
930
1341
|
bare.writeBool(bc, x.binary);
|
|
931
1342
|
}
|
|
932
|
-
function
|
|
1343
|
+
function read17(bc) {
|
|
933
1344
|
return bare.readBool(bc) ? bare.readU16(bc) : null;
|
|
934
1345
|
}
|
|
935
|
-
function
|
|
1346
|
+
function write17(bc, x) {
|
|
936
1347
|
bare.writeBool(bc, x != null);
|
|
937
1348
|
if (x != null) {
|
|
938
1349
|
bare.writeU16(bc, x);
|
|
@@ -940,13 +1351,13 @@ function write12(bc, x) {
|
|
|
940
1351
|
}
|
|
941
1352
|
function readToEnvoyWebSocketClose(bc) {
|
|
942
1353
|
return {
|
|
943
|
-
code:
|
|
944
|
-
reason:
|
|
1354
|
+
code: read17(bc),
|
|
1355
|
+
reason: read9(bc)
|
|
945
1356
|
};
|
|
946
1357
|
}
|
|
947
1358
|
function writeToEnvoyWebSocketClose(bc, x) {
|
|
948
|
-
|
|
949
|
-
|
|
1359
|
+
write17(bc, x.code);
|
|
1360
|
+
write9(bc, x.reason);
|
|
950
1361
|
}
|
|
951
1362
|
function readToRivetWebSocketOpen(bc) {
|
|
952
1363
|
return {
|
|
@@ -976,14 +1387,14 @@ function writeToRivetWebSocketMessageAck(bc, x) {
|
|
|
976
1387
|
}
|
|
977
1388
|
function readToRivetWebSocketClose(bc) {
|
|
978
1389
|
return {
|
|
979
|
-
code:
|
|
980
|
-
reason:
|
|
1390
|
+
code: read17(bc),
|
|
1391
|
+
reason: read9(bc),
|
|
981
1392
|
hibernate: bare.readBool(bc)
|
|
982
1393
|
};
|
|
983
1394
|
}
|
|
984
1395
|
function writeToRivetWebSocketClose(bc, x) {
|
|
985
|
-
|
|
986
|
-
|
|
1396
|
+
write17(bc, x.code);
|
|
1397
|
+
write9(bc, x.reason);
|
|
987
1398
|
bare.writeBool(bc, x.hibernate);
|
|
988
1399
|
}
|
|
989
1400
|
function readToRivetTunnelMessageKind(bc) {
|
|
@@ -1131,7 +1542,7 @@ function readToEnvoyPing(bc) {
|
|
|
1131
1542
|
function writeToEnvoyPing(bc, x) {
|
|
1132
1543
|
bare.writeI64(bc, x.ts);
|
|
1133
1544
|
}
|
|
1134
|
-
function
|
|
1545
|
+
function read18(bc) {
|
|
1135
1546
|
const len = bare.readUintSafe(bc);
|
|
1136
1547
|
const result = /* @__PURE__ */ new Map();
|
|
1137
1548
|
for (let i = 0; i < len; i++) {
|
|
@@ -1145,26 +1556,26 @@ function read13(bc) {
|
|
|
1145
1556
|
}
|
|
1146
1557
|
return result;
|
|
1147
1558
|
}
|
|
1148
|
-
function
|
|
1559
|
+
function write18(bc, x) {
|
|
1149
1560
|
bare.writeUintSafe(bc, x.size);
|
|
1150
1561
|
for (const kv of x) {
|
|
1151
1562
|
bare.writeString(bc, kv[0]);
|
|
1152
1563
|
writeActorName(bc, kv[1]);
|
|
1153
1564
|
}
|
|
1154
1565
|
}
|
|
1155
|
-
function
|
|
1156
|
-
return bare.readBool(bc) ?
|
|
1566
|
+
function read19(bc) {
|
|
1567
|
+
return bare.readBool(bc) ? read18(bc) : null;
|
|
1157
1568
|
}
|
|
1158
|
-
function
|
|
1569
|
+
function write19(bc, x) {
|
|
1159
1570
|
bare.writeBool(bc, x != null);
|
|
1160
1571
|
if (x != null) {
|
|
1161
|
-
|
|
1572
|
+
write18(bc, x);
|
|
1162
1573
|
}
|
|
1163
1574
|
}
|
|
1164
|
-
function
|
|
1575
|
+
function read20(bc) {
|
|
1165
1576
|
return bare.readBool(bc) ? readJson(bc) : null;
|
|
1166
1577
|
}
|
|
1167
|
-
function
|
|
1578
|
+
function write20(bc, x) {
|
|
1168
1579
|
bare.writeBool(bc, x != null);
|
|
1169
1580
|
if (x != null) {
|
|
1170
1581
|
writeJson(bc, x);
|
|
@@ -1172,13 +1583,13 @@ function write15(bc, x) {
|
|
|
1172
1583
|
}
|
|
1173
1584
|
function readToRivetMetadata(bc) {
|
|
1174
1585
|
return {
|
|
1175
|
-
prepopulateActorNames:
|
|
1176
|
-
metadata:
|
|
1586
|
+
prepopulateActorNames: read19(bc),
|
|
1587
|
+
metadata: read20(bc)
|
|
1177
1588
|
};
|
|
1178
1589
|
}
|
|
1179
1590
|
function writeToRivetMetadata(bc, x) {
|
|
1180
|
-
|
|
1181
|
-
|
|
1591
|
+
write19(bc, x.prepopulateActorNames);
|
|
1592
|
+
write20(bc, x.metadata);
|
|
1182
1593
|
}
|
|
1183
1594
|
function readToRivetEvents(bc) {
|
|
1184
1595
|
const len = bare.readUintSafe(bc);
|
|
@@ -1197,7 +1608,7 @@ function writeToRivetEvents(bc, x) {
|
|
|
1197
1608
|
writeEventWrapper(bc, x[i]);
|
|
1198
1609
|
}
|
|
1199
1610
|
}
|
|
1200
|
-
function
|
|
1611
|
+
function read21(bc) {
|
|
1201
1612
|
const len = bare.readUintSafe(bc);
|
|
1202
1613
|
if (len === 0) {
|
|
1203
1614
|
return [];
|
|
@@ -1208,7 +1619,7 @@ function read16(bc) {
|
|
|
1208
1619
|
}
|
|
1209
1620
|
return result;
|
|
1210
1621
|
}
|
|
1211
|
-
function
|
|
1622
|
+
function write21(bc, x) {
|
|
1212
1623
|
bare.writeUintSafe(bc, x.length);
|
|
1213
1624
|
for (let i = 0; i < x.length; i++) {
|
|
1214
1625
|
writeActorCheckpoint(bc, x[i]);
|
|
@@ -1216,11 +1627,11 @@ function write16(bc, x) {
|
|
|
1216
1627
|
}
|
|
1217
1628
|
function readToRivetAckCommands(bc) {
|
|
1218
1629
|
return {
|
|
1219
|
-
lastCommandCheckpoints:
|
|
1630
|
+
lastCommandCheckpoints: read21(bc)
|
|
1220
1631
|
};
|
|
1221
1632
|
}
|
|
1222
1633
|
function writeToRivetAckCommands(bc, x) {
|
|
1223
|
-
|
|
1634
|
+
write21(bc, x.lastCommandCheckpoints);
|
|
1224
1635
|
}
|
|
1225
1636
|
function readToRivetPong(bc) {
|
|
1226
1637
|
return {
|
|
@@ -1242,6 +1653,46 @@ function writeToRivetKvRequest(bc, x) {
|
|
|
1242
1653
|
bare.writeU32(bc, x.requestId);
|
|
1243
1654
|
writeKvRequestData(bc, x.data);
|
|
1244
1655
|
}
|
|
1656
|
+
function readToRivetSqliteGetPagesRequest(bc) {
|
|
1657
|
+
return {
|
|
1658
|
+
requestId: bare.readU32(bc),
|
|
1659
|
+
data: readSqliteGetPagesRequest(bc)
|
|
1660
|
+
};
|
|
1661
|
+
}
|
|
1662
|
+
function writeToRivetSqliteGetPagesRequest(bc, x) {
|
|
1663
|
+
bare.writeU32(bc, x.requestId);
|
|
1664
|
+
writeSqliteGetPagesRequest(bc, x.data);
|
|
1665
|
+
}
|
|
1666
|
+
function readToRivetSqliteCommitRequest(bc) {
|
|
1667
|
+
return {
|
|
1668
|
+
requestId: bare.readU32(bc),
|
|
1669
|
+
data: readSqliteCommitRequest(bc)
|
|
1670
|
+
};
|
|
1671
|
+
}
|
|
1672
|
+
function writeToRivetSqliteCommitRequest(bc, x) {
|
|
1673
|
+
bare.writeU32(bc, x.requestId);
|
|
1674
|
+
writeSqliteCommitRequest(bc, x.data);
|
|
1675
|
+
}
|
|
1676
|
+
function readToRivetSqliteCommitStageRequest(bc) {
|
|
1677
|
+
return {
|
|
1678
|
+
requestId: bare.readU32(bc),
|
|
1679
|
+
data: readSqliteCommitStageRequest(bc)
|
|
1680
|
+
};
|
|
1681
|
+
}
|
|
1682
|
+
function writeToRivetSqliteCommitStageRequest(bc, x) {
|
|
1683
|
+
bare.writeU32(bc, x.requestId);
|
|
1684
|
+
writeSqliteCommitStageRequest(bc, x.data);
|
|
1685
|
+
}
|
|
1686
|
+
function readToRivetSqliteCommitFinalizeRequest(bc) {
|
|
1687
|
+
return {
|
|
1688
|
+
requestId: bare.readU32(bc),
|
|
1689
|
+
data: readSqliteCommitFinalizeRequest(bc)
|
|
1690
|
+
};
|
|
1691
|
+
}
|
|
1692
|
+
function writeToRivetSqliteCommitFinalizeRequest(bc, x) {
|
|
1693
|
+
bare.writeU32(bc, x.requestId);
|
|
1694
|
+
writeSqliteCommitFinalizeRequest(bc, x.data);
|
|
1695
|
+
}
|
|
1245
1696
|
function readToRivet(bc) {
|
|
1246
1697
|
const offset = bc.offset;
|
|
1247
1698
|
const tag = bare.readU8(bc);
|
|
@@ -1260,6 +1711,14 @@ function readToRivet(bc) {
|
|
|
1260
1711
|
return { tag: "ToRivetKvRequest", val: readToRivetKvRequest(bc) };
|
|
1261
1712
|
case 6:
|
|
1262
1713
|
return { tag: "ToRivetTunnelMessage", val: readToRivetTunnelMessage(bc) };
|
|
1714
|
+
case 7:
|
|
1715
|
+
return { tag: "ToRivetSqliteGetPagesRequest", val: readToRivetSqliteGetPagesRequest(bc) };
|
|
1716
|
+
case 8:
|
|
1717
|
+
return { tag: "ToRivetSqliteCommitRequest", val: readToRivetSqliteCommitRequest(bc) };
|
|
1718
|
+
case 9:
|
|
1719
|
+
return { tag: "ToRivetSqliteCommitStageRequest", val: readToRivetSqliteCommitStageRequest(bc) };
|
|
1720
|
+
case 10:
|
|
1721
|
+
return { tag: "ToRivetSqliteCommitFinalizeRequest", val: readToRivetSqliteCommitFinalizeRequest(bc) };
|
|
1263
1722
|
default: {
|
|
1264
1723
|
bc.offset = offset;
|
|
1265
1724
|
throw new bare.BareError(offset, "invalid tag");
|
|
@@ -1302,6 +1761,26 @@ function writeToRivet(bc, x) {
|
|
|
1302
1761
|
writeToRivetTunnelMessage(bc, x.val);
|
|
1303
1762
|
break;
|
|
1304
1763
|
}
|
|
1764
|
+
case "ToRivetSqliteGetPagesRequest": {
|
|
1765
|
+
bare.writeU8(bc, 7);
|
|
1766
|
+
writeToRivetSqliteGetPagesRequest(bc, x.val);
|
|
1767
|
+
break;
|
|
1768
|
+
}
|
|
1769
|
+
case "ToRivetSqliteCommitRequest": {
|
|
1770
|
+
bare.writeU8(bc, 8);
|
|
1771
|
+
writeToRivetSqliteCommitRequest(bc, x.val);
|
|
1772
|
+
break;
|
|
1773
|
+
}
|
|
1774
|
+
case "ToRivetSqliteCommitStageRequest": {
|
|
1775
|
+
bare.writeU8(bc, 9);
|
|
1776
|
+
writeToRivetSqliteCommitStageRequest(bc, x.val);
|
|
1777
|
+
break;
|
|
1778
|
+
}
|
|
1779
|
+
case "ToRivetSqliteCommitFinalizeRequest": {
|
|
1780
|
+
bare.writeU8(bc, 10);
|
|
1781
|
+
writeToRivetSqliteCommitFinalizeRequest(bc, x.val);
|
|
1782
|
+
break;
|
|
1783
|
+
}
|
|
1305
1784
|
}
|
|
1306
1785
|
}
|
|
1307
1786
|
function encodeToRivet(x, config) {
|
|
@@ -1360,11 +1839,11 @@ function writeToEnvoyCommands(bc, x) {
|
|
|
1360
1839
|
}
|
|
1361
1840
|
function readToEnvoyAckEvents(bc) {
|
|
1362
1841
|
return {
|
|
1363
|
-
lastEventCheckpoints:
|
|
1842
|
+
lastEventCheckpoints: read21(bc)
|
|
1364
1843
|
};
|
|
1365
1844
|
}
|
|
1366
1845
|
function writeToEnvoyAckEvents(bc, x) {
|
|
1367
|
-
|
|
1846
|
+
write21(bc, x.lastEventCheckpoints);
|
|
1368
1847
|
}
|
|
1369
1848
|
function readToEnvoyKvResponse(bc) {
|
|
1370
1849
|
return {
|
|
@@ -1376,6 +1855,46 @@ function writeToEnvoyKvResponse(bc, x) {
|
|
|
1376
1855
|
bare.writeU32(bc, x.requestId);
|
|
1377
1856
|
writeKvResponseData(bc, x.data);
|
|
1378
1857
|
}
|
|
1858
|
+
function readToEnvoySqliteGetPagesResponse(bc) {
|
|
1859
|
+
return {
|
|
1860
|
+
requestId: bare.readU32(bc),
|
|
1861
|
+
data: readSqliteGetPagesResponse(bc)
|
|
1862
|
+
};
|
|
1863
|
+
}
|
|
1864
|
+
function writeToEnvoySqliteGetPagesResponse(bc, x) {
|
|
1865
|
+
bare.writeU32(bc, x.requestId);
|
|
1866
|
+
writeSqliteGetPagesResponse(bc, x.data);
|
|
1867
|
+
}
|
|
1868
|
+
function readToEnvoySqliteCommitResponse(bc) {
|
|
1869
|
+
return {
|
|
1870
|
+
requestId: bare.readU32(bc),
|
|
1871
|
+
data: readSqliteCommitResponse(bc)
|
|
1872
|
+
};
|
|
1873
|
+
}
|
|
1874
|
+
function writeToEnvoySqliteCommitResponse(bc, x) {
|
|
1875
|
+
bare.writeU32(bc, x.requestId);
|
|
1876
|
+
writeSqliteCommitResponse(bc, x.data);
|
|
1877
|
+
}
|
|
1878
|
+
function readToEnvoySqliteCommitStageResponse(bc) {
|
|
1879
|
+
return {
|
|
1880
|
+
requestId: bare.readU32(bc),
|
|
1881
|
+
data: readSqliteCommitStageResponse(bc)
|
|
1882
|
+
};
|
|
1883
|
+
}
|
|
1884
|
+
function writeToEnvoySqliteCommitStageResponse(bc, x) {
|
|
1885
|
+
bare.writeU32(bc, x.requestId);
|
|
1886
|
+
writeSqliteCommitStageResponse(bc, x.data);
|
|
1887
|
+
}
|
|
1888
|
+
function readToEnvoySqliteCommitFinalizeResponse(bc) {
|
|
1889
|
+
return {
|
|
1890
|
+
requestId: bare.readU32(bc),
|
|
1891
|
+
data: readSqliteCommitFinalizeResponse(bc)
|
|
1892
|
+
};
|
|
1893
|
+
}
|
|
1894
|
+
function writeToEnvoySqliteCommitFinalizeResponse(bc, x) {
|
|
1895
|
+
bare.writeU32(bc, x.requestId);
|
|
1896
|
+
writeSqliteCommitFinalizeResponse(bc, x.data);
|
|
1897
|
+
}
|
|
1379
1898
|
function readToEnvoy(bc) {
|
|
1380
1899
|
const offset = bc.offset;
|
|
1381
1900
|
const tag = bare.readU8(bc);
|
|
@@ -1392,6 +1911,14 @@ function readToEnvoy(bc) {
|
|
|
1392
1911
|
return { tag: "ToEnvoyTunnelMessage", val: readToEnvoyTunnelMessage(bc) };
|
|
1393
1912
|
case 5:
|
|
1394
1913
|
return { tag: "ToEnvoyPing", val: readToEnvoyPing(bc) };
|
|
1914
|
+
case 6:
|
|
1915
|
+
return { tag: "ToEnvoySqliteGetPagesResponse", val: readToEnvoySqliteGetPagesResponse(bc) };
|
|
1916
|
+
case 7:
|
|
1917
|
+
return { tag: "ToEnvoySqliteCommitResponse", val: readToEnvoySqliteCommitResponse(bc) };
|
|
1918
|
+
case 8:
|
|
1919
|
+
return { tag: "ToEnvoySqliteCommitStageResponse", val: readToEnvoySqliteCommitStageResponse(bc) };
|
|
1920
|
+
case 9:
|
|
1921
|
+
return { tag: "ToEnvoySqliteCommitFinalizeResponse", val: readToEnvoySqliteCommitFinalizeResponse(bc) };
|
|
1395
1922
|
default: {
|
|
1396
1923
|
bc.offset = offset;
|
|
1397
1924
|
throw new bare.BareError(offset, "invalid tag");
|
|
@@ -1430,6 +1957,26 @@ function writeToEnvoy(bc, x) {
|
|
|
1430
1957
|
writeToEnvoyPing(bc, x.val);
|
|
1431
1958
|
break;
|
|
1432
1959
|
}
|
|
1960
|
+
case "ToEnvoySqliteGetPagesResponse": {
|
|
1961
|
+
bare.writeU8(bc, 6);
|
|
1962
|
+
writeToEnvoySqliteGetPagesResponse(bc, x.val);
|
|
1963
|
+
break;
|
|
1964
|
+
}
|
|
1965
|
+
case "ToEnvoySqliteCommitResponse": {
|
|
1966
|
+
bare.writeU8(bc, 7);
|
|
1967
|
+
writeToEnvoySqliteCommitResponse(bc, x.val);
|
|
1968
|
+
break;
|
|
1969
|
+
}
|
|
1970
|
+
case "ToEnvoySqliteCommitStageResponse": {
|
|
1971
|
+
bare.writeU8(bc, 8);
|
|
1972
|
+
writeToEnvoySqliteCommitStageResponse(bc, x.val);
|
|
1973
|
+
break;
|
|
1974
|
+
}
|
|
1975
|
+
case "ToEnvoySqliteCommitFinalizeResponse": {
|
|
1976
|
+
bare.writeU8(bc, 9);
|
|
1977
|
+
writeToEnvoySqliteCommitFinalizeResponse(bc, x.val);
|
|
1978
|
+
break;
|
|
1979
|
+
}
|
|
1433
1980
|
}
|
|
1434
1981
|
}
|
|
1435
1982
|
function encodeToEnvoy(x, config) {
|
|
@@ -1636,7 +2183,7 @@ function decodeToOutbound(bytes) {
|
|
|
1636
2183
|
function assert(condition, message) {
|
|
1637
2184
|
if (!condition) throw new Error(message ?? "Assertion failed");
|
|
1638
2185
|
}
|
|
1639
|
-
var VERSION =
|
|
2186
|
+
var VERSION = 2;
|
|
1640
2187
|
export {
|
|
1641
2188
|
StopActorReason,
|
|
1642
2189
|
StopCode,
|
|
@@ -1695,6 +2242,30 @@ export {
|
|
|
1695
2242
|
readPreloadedKvEntry,
|
|
1696
2243
|
readProtocolMetadata,
|
|
1697
2244
|
readRequestId,
|
|
2245
|
+
readSqliteCommitFinalizeOk,
|
|
2246
|
+
readSqliteCommitFinalizeRequest,
|
|
2247
|
+
readSqliteCommitFinalizeResponse,
|
|
2248
|
+
readSqliteCommitOk,
|
|
2249
|
+
readSqliteCommitRequest,
|
|
2250
|
+
readSqliteCommitResponse,
|
|
2251
|
+
readSqliteCommitStageOk,
|
|
2252
|
+
readSqliteCommitStageRequest,
|
|
2253
|
+
readSqliteCommitStageResponse,
|
|
2254
|
+
readSqliteCommitTooLarge,
|
|
2255
|
+
readSqliteDirtyPage,
|
|
2256
|
+
readSqliteFenceMismatch,
|
|
2257
|
+
readSqliteFetchedPage,
|
|
2258
|
+
readSqliteGeneration,
|
|
2259
|
+
readSqliteGetPagesOk,
|
|
2260
|
+
readSqliteGetPagesRequest,
|
|
2261
|
+
readSqliteGetPagesResponse,
|
|
2262
|
+
readSqliteMeta,
|
|
2263
|
+
readSqlitePageBytes,
|
|
2264
|
+
readSqlitePgno,
|
|
2265
|
+
readSqliteStageId,
|
|
2266
|
+
readSqliteStageNotFound,
|
|
2267
|
+
readSqliteStartupData,
|
|
2268
|
+
readSqliteTxid,
|
|
1698
2269
|
readStopActorReason,
|
|
1699
2270
|
readStopCode,
|
|
1700
2271
|
readToEnvoy,
|
|
@@ -1707,6 +2278,10 @@ export {
|
|
|
1707
2278
|
readToEnvoyPing,
|
|
1708
2279
|
readToEnvoyRequestChunk,
|
|
1709
2280
|
readToEnvoyRequestStart,
|
|
2281
|
+
readToEnvoySqliteCommitFinalizeResponse,
|
|
2282
|
+
readToEnvoySqliteCommitResponse,
|
|
2283
|
+
readToEnvoySqliteCommitStageResponse,
|
|
2284
|
+
readToEnvoySqliteGetPagesResponse,
|
|
1710
2285
|
readToEnvoyTunnelMessage,
|
|
1711
2286
|
readToEnvoyTunnelMessageKind,
|
|
1712
2287
|
readToEnvoyWebSocketClose,
|
|
@@ -1724,6 +2299,10 @@ export {
|
|
|
1724
2299
|
readToRivetPong,
|
|
1725
2300
|
readToRivetResponseChunk,
|
|
1726
2301
|
readToRivetResponseStart,
|
|
2302
|
+
readToRivetSqliteCommitFinalizeRequest,
|
|
2303
|
+
readToRivetSqliteCommitRequest,
|
|
2304
|
+
readToRivetSqliteCommitStageRequest,
|
|
2305
|
+
readToRivetSqliteGetPagesRequest,
|
|
1727
2306
|
readToRivetTunnelMessage,
|
|
1728
2307
|
readToRivetTunnelMessageKind,
|
|
1729
2308
|
readToRivetWebSocketClose,
|
|
@@ -1772,6 +2351,30 @@ export {
|
|
|
1772
2351
|
writePreloadedKvEntry,
|
|
1773
2352
|
writeProtocolMetadata,
|
|
1774
2353
|
writeRequestId,
|
|
2354
|
+
writeSqliteCommitFinalizeOk,
|
|
2355
|
+
writeSqliteCommitFinalizeRequest,
|
|
2356
|
+
writeSqliteCommitFinalizeResponse,
|
|
2357
|
+
writeSqliteCommitOk,
|
|
2358
|
+
writeSqliteCommitRequest,
|
|
2359
|
+
writeSqliteCommitResponse,
|
|
2360
|
+
writeSqliteCommitStageOk,
|
|
2361
|
+
writeSqliteCommitStageRequest,
|
|
2362
|
+
writeSqliteCommitStageResponse,
|
|
2363
|
+
writeSqliteCommitTooLarge,
|
|
2364
|
+
writeSqliteDirtyPage,
|
|
2365
|
+
writeSqliteFenceMismatch,
|
|
2366
|
+
writeSqliteFetchedPage,
|
|
2367
|
+
writeSqliteGeneration,
|
|
2368
|
+
writeSqliteGetPagesOk,
|
|
2369
|
+
writeSqliteGetPagesRequest,
|
|
2370
|
+
writeSqliteGetPagesResponse,
|
|
2371
|
+
writeSqliteMeta,
|
|
2372
|
+
writeSqlitePageBytes,
|
|
2373
|
+
writeSqlitePgno,
|
|
2374
|
+
writeSqliteStageId,
|
|
2375
|
+
writeSqliteStageNotFound,
|
|
2376
|
+
writeSqliteStartupData,
|
|
2377
|
+
writeSqliteTxid,
|
|
1775
2378
|
writeStopActorReason,
|
|
1776
2379
|
writeStopCode,
|
|
1777
2380
|
writeToEnvoy,
|
|
@@ -1784,6 +2387,10 @@ export {
|
|
|
1784
2387
|
writeToEnvoyPing,
|
|
1785
2388
|
writeToEnvoyRequestChunk,
|
|
1786
2389
|
writeToEnvoyRequestStart,
|
|
2390
|
+
writeToEnvoySqliteCommitFinalizeResponse,
|
|
2391
|
+
writeToEnvoySqliteCommitResponse,
|
|
2392
|
+
writeToEnvoySqliteCommitStageResponse,
|
|
2393
|
+
writeToEnvoySqliteGetPagesResponse,
|
|
1787
2394
|
writeToEnvoyTunnelMessage,
|
|
1788
2395
|
writeToEnvoyTunnelMessageKind,
|
|
1789
2396
|
writeToEnvoyWebSocketClose,
|
|
@@ -1801,6 +2408,10 @@ export {
|
|
|
1801
2408
|
writeToRivetPong,
|
|
1802
2409
|
writeToRivetResponseChunk,
|
|
1803
2410
|
writeToRivetResponseStart,
|
|
2411
|
+
writeToRivetSqliteCommitFinalizeRequest,
|
|
2412
|
+
writeToRivetSqliteCommitRequest,
|
|
2413
|
+
writeToRivetSqliteCommitStageRequest,
|
|
2414
|
+
writeToRivetSqliteGetPagesRequest,
|
|
1804
2415
|
writeToRivetTunnelMessage,
|
|
1805
2416
|
writeToRivetTunnelMessageKind,
|
|
1806
2417
|
writeToRivetWebSocketClose,
|