@rivetkit/engine-envoy-protocol 0.0.0-pr.4683.9557af4 → 0.0.0-pr.4701.d2c139c
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 +297 -2
- package/dist/index.js +813 -67
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -165,6 +165,209 @@ 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 SqliteErrorResponse = {
|
|
227
|
+
readonly message: string;
|
|
228
|
+
};
|
|
229
|
+
declare function readSqliteErrorResponse(bc: bare.ByteCursor): SqliteErrorResponse;
|
|
230
|
+
declare function writeSqliteErrorResponse(bc: bare.ByteCursor, x: SqliteErrorResponse): void;
|
|
231
|
+
type SqliteGetPagesResponse = {
|
|
232
|
+
readonly tag: "SqliteGetPagesOk";
|
|
233
|
+
readonly val: SqliteGetPagesOk;
|
|
234
|
+
} | {
|
|
235
|
+
readonly tag: "SqliteFenceMismatch";
|
|
236
|
+
readonly val: SqliteFenceMismatch;
|
|
237
|
+
} | {
|
|
238
|
+
readonly tag: "SqliteErrorResponse";
|
|
239
|
+
readonly val: SqliteErrorResponse;
|
|
240
|
+
};
|
|
241
|
+
declare function readSqliteGetPagesResponse(bc: bare.ByteCursor): SqliteGetPagesResponse;
|
|
242
|
+
declare function writeSqliteGetPagesResponse(bc: bare.ByteCursor, x: SqliteGetPagesResponse): void;
|
|
243
|
+
type SqliteCommitRequest = {
|
|
244
|
+
readonly actorId: Id;
|
|
245
|
+
readonly generation: SqliteGeneration;
|
|
246
|
+
readonly expectedHeadTxid: SqliteTxid;
|
|
247
|
+
readonly dirtyPages: readonly SqliteDirtyPage[];
|
|
248
|
+
readonly newDbSizePages: u32;
|
|
249
|
+
};
|
|
250
|
+
declare function readSqliteCommitRequest(bc: bare.ByteCursor): SqliteCommitRequest;
|
|
251
|
+
declare function writeSqliteCommitRequest(bc: bare.ByteCursor, x: SqliteCommitRequest): void;
|
|
252
|
+
type SqliteCommitOk = {
|
|
253
|
+
readonly newHeadTxid: SqliteTxid;
|
|
254
|
+
readonly meta: SqliteMeta;
|
|
255
|
+
};
|
|
256
|
+
declare function readSqliteCommitOk(bc: bare.ByteCursor): SqliteCommitOk;
|
|
257
|
+
declare function writeSqliteCommitOk(bc: bare.ByteCursor, x: SqliteCommitOk): void;
|
|
258
|
+
type SqliteCommitTooLarge = {
|
|
259
|
+
readonly actualSizeBytes: u64;
|
|
260
|
+
readonly maxSizeBytes: u64;
|
|
261
|
+
};
|
|
262
|
+
declare function readSqliteCommitTooLarge(bc: bare.ByteCursor): SqliteCommitTooLarge;
|
|
263
|
+
declare function writeSqliteCommitTooLarge(bc: bare.ByteCursor, x: SqliteCommitTooLarge): void;
|
|
264
|
+
type SqliteCommitResponse = {
|
|
265
|
+
readonly tag: "SqliteCommitOk";
|
|
266
|
+
readonly val: SqliteCommitOk;
|
|
267
|
+
} | {
|
|
268
|
+
readonly tag: "SqliteFenceMismatch";
|
|
269
|
+
readonly val: SqliteFenceMismatch;
|
|
270
|
+
} | {
|
|
271
|
+
readonly tag: "SqliteCommitTooLarge";
|
|
272
|
+
readonly val: SqliteCommitTooLarge;
|
|
273
|
+
} | {
|
|
274
|
+
readonly tag: "SqliteErrorResponse";
|
|
275
|
+
readonly val: SqliteErrorResponse;
|
|
276
|
+
};
|
|
277
|
+
declare function readSqliteCommitResponse(bc: bare.ByteCursor): SqliteCommitResponse;
|
|
278
|
+
declare function writeSqliteCommitResponse(bc: bare.ByteCursor, x: SqliteCommitResponse): void;
|
|
279
|
+
type SqliteCommitStageBeginRequest = {
|
|
280
|
+
readonly actorId: Id;
|
|
281
|
+
readonly generation: SqliteGeneration;
|
|
282
|
+
};
|
|
283
|
+
declare function readSqliteCommitStageBeginRequest(bc: bare.ByteCursor): SqliteCommitStageBeginRequest;
|
|
284
|
+
declare function writeSqliteCommitStageBeginRequest(bc: bare.ByteCursor, x: SqliteCommitStageBeginRequest): void;
|
|
285
|
+
type SqliteCommitStageBeginOk = {
|
|
286
|
+
readonly txid: SqliteTxid;
|
|
287
|
+
};
|
|
288
|
+
declare function readSqliteCommitStageBeginOk(bc: bare.ByteCursor): SqliteCommitStageBeginOk;
|
|
289
|
+
declare function writeSqliteCommitStageBeginOk(bc: bare.ByteCursor, x: SqliteCommitStageBeginOk): void;
|
|
290
|
+
type SqliteCommitStageBeginResponse = {
|
|
291
|
+
readonly tag: "SqliteCommitStageBeginOk";
|
|
292
|
+
readonly val: SqliteCommitStageBeginOk;
|
|
293
|
+
} | {
|
|
294
|
+
readonly tag: "SqliteFenceMismatch";
|
|
295
|
+
readonly val: SqliteFenceMismatch;
|
|
296
|
+
} | {
|
|
297
|
+
readonly tag: "SqliteErrorResponse";
|
|
298
|
+
readonly val: SqliteErrorResponse;
|
|
299
|
+
};
|
|
300
|
+
declare function readSqliteCommitStageBeginResponse(bc: bare.ByteCursor): SqliteCommitStageBeginResponse;
|
|
301
|
+
declare function writeSqliteCommitStageBeginResponse(bc: bare.ByteCursor, x: SqliteCommitStageBeginResponse): void;
|
|
302
|
+
type SqliteCommitStageRequest = {
|
|
303
|
+
readonly actorId: Id;
|
|
304
|
+
readonly generation: SqliteGeneration;
|
|
305
|
+
readonly txid: SqliteTxid;
|
|
306
|
+
readonly chunkIdx: u32;
|
|
307
|
+
readonly bytes: ArrayBuffer;
|
|
308
|
+
readonly isLast: boolean;
|
|
309
|
+
};
|
|
310
|
+
declare function readSqliteCommitStageRequest(bc: bare.ByteCursor): SqliteCommitStageRequest;
|
|
311
|
+
declare function writeSqliteCommitStageRequest(bc: bare.ByteCursor, x: SqliteCommitStageRequest): void;
|
|
312
|
+
type SqliteCommitStageOk = {
|
|
313
|
+
readonly chunkIdxCommitted: u32;
|
|
314
|
+
};
|
|
315
|
+
declare function readSqliteCommitStageOk(bc: bare.ByteCursor): SqliteCommitStageOk;
|
|
316
|
+
declare function writeSqliteCommitStageOk(bc: bare.ByteCursor, x: SqliteCommitStageOk): void;
|
|
317
|
+
type SqliteCommitStageResponse = {
|
|
318
|
+
readonly tag: "SqliteCommitStageOk";
|
|
319
|
+
readonly val: SqliteCommitStageOk;
|
|
320
|
+
} | {
|
|
321
|
+
readonly tag: "SqliteFenceMismatch";
|
|
322
|
+
readonly val: SqliteFenceMismatch;
|
|
323
|
+
} | {
|
|
324
|
+
readonly tag: "SqliteErrorResponse";
|
|
325
|
+
readonly val: SqliteErrorResponse;
|
|
326
|
+
};
|
|
327
|
+
declare function readSqliteCommitStageResponse(bc: bare.ByteCursor): SqliteCommitStageResponse;
|
|
328
|
+
declare function writeSqliteCommitStageResponse(bc: bare.ByteCursor, x: SqliteCommitStageResponse): void;
|
|
329
|
+
type SqliteCommitFinalizeRequest = {
|
|
330
|
+
readonly actorId: Id;
|
|
331
|
+
readonly generation: SqliteGeneration;
|
|
332
|
+
readonly expectedHeadTxid: SqliteTxid;
|
|
333
|
+
readonly txid: SqliteTxid;
|
|
334
|
+
readonly newDbSizePages: u32;
|
|
335
|
+
};
|
|
336
|
+
declare function readSqliteCommitFinalizeRequest(bc: bare.ByteCursor): SqliteCommitFinalizeRequest;
|
|
337
|
+
declare function writeSqliteCommitFinalizeRequest(bc: bare.ByteCursor, x: SqliteCommitFinalizeRequest): void;
|
|
338
|
+
type SqliteCommitFinalizeOk = {
|
|
339
|
+
readonly newHeadTxid: SqliteTxid;
|
|
340
|
+
readonly meta: SqliteMeta;
|
|
341
|
+
};
|
|
342
|
+
declare function readSqliteCommitFinalizeOk(bc: bare.ByteCursor): SqliteCommitFinalizeOk;
|
|
343
|
+
declare function writeSqliteCommitFinalizeOk(bc: bare.ByteCursor, x: SqliteCommitFinalizeOk): void;
|
|
344
|
+
type SqliteStageNotFound = {
|
|
345
|
+
readonly stageId: SqliteStageId;
|
|
346
|
+
};
|
|
347
|
+
declare function readSqliteStageNotFound(bc: bare.ByteCursor): SqliteStageNotFound;
|
|
348
|
+
declare function writeSqliteStageNotFound(bc: bare.ByteCursor, x: SqliteStageNotFound): void;
|
|
349
|
+
type SqliteCommitFinalizeResponse = {
|
|
350
|
+
readonly tag: "SqliteCommitFinalizeOk";
|
|
351
|
+
readonly val: SqliteCommitFinalizeOk;
|
|
352
|
+
} | {
|
|
353
|
+
readonly tag: "SqliteFenceMismatch";
|
|
354
|
+
readonly val: SqliteFenceMismatch;
|
|
355
|
+
} | {
|
|
356
|
+
readonly tag: "SqliteStageNotFound";
|
|
357
|
+
readonly val: SqliteStageNotFound;
|
|
358
|
+
} | {
|
|
359
|
+
readonly tag: "SqliteErrorResponse";
|
|
360
|
+
readonly val: SqliteErrorResponse;
|
|
361
|
+
};
|
|
362
|
+
declare function readSqliteCommitFinalizeResponse(bc: bare.ByteCursor): SqliteCommitFinalizeResponse;
|
|
363
|
+
declare function writeSqliteCommitFinalizeResponse(bc: bare.ByteCursor, x: SqliteCommitFinalizeResponse): void;
|
|
364
|
+
type SqliteStartupData = {
|
|
365
|
+
readonly generation: SqliteGeneration;
|
|
366
|
+
readonly meta: SqliteMeta;
|
|
367
|
+
readonly preloadedPages: readonly SqliteFetchedPage[];
|
|
368
|
+
};
|
|
369
|
+
declare function readSqliteStartupData(bc: bare.ByteCursor): SqliteStartupData;
|
|
370
|
+
declare function writeSqliteStartupData(bc: bare.ByteCursor, x: SqliteStartupData): void;
|
|
168
371
|
/**
|
|
169
372
|
* Core
|
|
170
373
|
*/
|
|
@@ -287,6 +490,8 @@ type CommandStartActor = {
|
|
|
287
490
|
readonly config: ActorConfig;
|
|
288
491
|
readonly hibernatingRequests: readonly HibernatingRequest[];
|
|
289
492
|
readonly preloadedKv: PreloadedKv | null;
|
|
493
|
+
readonly sqliteSchemaVersion: u32;
|
|
494
|
+
readonly sqliteStartupData: SqliteStartupData | null;
|
|
290
495
|
};
|
|
291
496
|
declare function readCommandStartActor(bc: bare.ByteCursor): CommandStartActor;
|
|
292
497
|
declare function writeCommandStartActor(bc: bare.ByteCursor, x: CommandStartActor): void;
|
|
@@ -543,6 +748,36 @@ type ToRivetKvRequest = {
|
|
|
543
748
|
};
|
|
544
749
|
declare function readToRivetKvRequest(bc: bare.ByteCursor): ToRivetKvRequest;
|
|
545
750
|
declare function writeToRivetKvRequest(bc: bare.ByteCursor, x: ToRivetKvRequest): void;
|
|
751
|
+
type ToRivetSqliteGetPagesRequest = {
|
|
752
|
+
readonly requestId: u32;
|
|
753
|
+
readonly data: SqliteGetPagesRequest;
|
|
754
|
+
};
|
|
755
|
+
declare function readToRivetSqliteGetPagesRequest(bc: bare.ByteCursor): ToRivetSqliteGetPagesRequest;
|
|
756
|
+
declare function writeToRivetSqliteGetPagesRequest(bc: bare.ByteCursor, x: ToRivetSqliteGetPagesRequest): void;
|
|
757
|
+
type ToRivetSqliteCommitRequest = {
|
|
758
|
+
readonly requestId: u32;
|
|
759
|
+
readonly data: SqliteCommitRequest;
|
|
760
|
+
};
|
|
761
|
+
declare function readToRivetSqliteCommitRequest(bc: bare.ByteCursor): ToRivetSqliteCommitRequest;
|
|
762
|
+
declare function writeToRivetSqliteCommitRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitRequest): void;
|
|
763
|
+
type ToRivetSqliteCommitStageBeginRequest = {
|
|
764
|
+
readonly requestId: u32;
|
|
765
|
+
readonly data: SqliteCommitStageBeginRequest;
|
|
766
|
+
};
|
|
767
|
+
declare function readToRivetSqliteCommitStageBeginRequest(bc: bare.ByteCursor): ToRivetSqliteCommitStageBeginRequest;
|
|
768
|
+
declare function writeToRivetSqliteCommitStageBeginRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitStageBeginRequest): void;
|
|
769
|
+
type ToRivetSqliteCommitStageRequest = {
|
|
770
|
+
readonly requestId: u32;
|
|
771
|
+
readonly data: SqliteCommitStageRequest;
|
|
772
|
+
};
|
|
773
|
+
declare function readToRivetSqliteCommitStageRequest(bc: bare.ByteCursor): ToRivetSqliteCommitStageRequest;
|
|
774
|
+
declare function writeToRivetSqliteCommitStageRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitStageRequest): void;
|
|
775
|
+
type ToRivetSqliteCommitFinalizeRequest = {
|
|
776
|
+
readonly requestId: u32;
|
|
777
|
+
readonly data: SqliteCommitFinalizeRequest;
|
|
778
|
+
};
|
|
779
|
+
declare function readToRivetSqliteCommitFinalizeRequest(bc: bare.ByteCursor): ToRivetSqliteCommitFinalizeRequest;
|
|
780
|
+
declare function writeToRivetSqliteCommitFinalizeRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitFinalizeRequest): void;
|
|
546
781
|
type ToRivet = {
|
|
547
782
|
readonly tag: "ToRivetMetadata";
|
|
548
783
|
readonly val: ToRivetMetadata;
|
|
@@ -564,6 +799,21 @@ type ToRivet = {
|
|
|
564
799
|
} | {
|
|
565
800
|
readonly tag: "ToRivetTunnelMessage";
|
|
566
801
|
readonly val: ToRivetTunnelMessage;
|
|
802
|
+
} | {
|
|
803
|
+
readonly tag: "ToRivetSqliteGetPagesRequest";
|
|
804
|
+
readonly val: ToRivetSqliteGetPagesRequest;
|
|
805
|
+
} | {
|
|
806
|
+
readonly tag: "ToRivetSqliteCommitRequest";
|
|
807
|
+
readonly val: ToRivetSqliteCommitRequest;
|
|
808
|
+
} | {
|
|
809
|
+
readonly tag: "ToRivetSqliteCommitStageBeginRequest";
|
|
810
|
+
readonly val: ToRivetSqliteCommitStageBeginRequest;
|
|
811
|
+
} | {
|
|
812
|
+
readonly tag: "ToRivetSqliteCommitStageRequest";
|
|
813
|
+
readonly val: ToRivetSqliteCommitStageRequest;
|
|
814
|
+
} | {
|
|
815
|
+
readonly tag: "ToRivetSqliteCommitFinalizeRequest";
|
|
816
|
+
readonly val: ToRivetSqliteCommitFinalizeRequest;
|
|
567
817
|
};
|
|
568
818
|
declare function readToRivet(bc: bare.ByteCursor): ToRivet;
|
|
569
819
|
declare function writeToRivet(bc: bare.ByteCursor, x: ToRivet): void;
|
|
@@ -598,6 +848,36 @@ type ToEnvoyKvResponse = {
|
|
|
598
848
|
};
|
|
599
849
|
declare function readToEnvoyKvResponse(bc: bare.ByteCursor): ToEnvoyKvResponse;
|
|
600
850
|
declare function writeToEnvoyKvResponse(bc: bare.ByteCursor, x: ToEnvoyKvResponse): void;
|
|
851
|
+
type ToEnvoySqliteGetPagesResponse = {
|
|
852
|
+
readonly requestId: u32;
|
|
853
|
+
readonly data: SqliteGetPagesResponse;
|
|
854
|
+
};
|
|
855
|
+
declare function readToEnvoySqliteGetPagesResponse(bc: bare.ByteCursor): ToEnvoySqliteGetPagesResponse;
|
|
856
|
+
declare function writeToEnvoySqliteGetPagesResponse(bc: bare.ByteCursor, x: ToEnvoySqliteGetPagesResponse): void;
|
|
857
|
+
type ToEnvoySqliteCommitResponse = {
|
|
858
|
+
readonly requestId: u32;
|
|
859
|
+
readonly data: SqliteCommitResponse;
|
|
860
|
+
};
|
|
861
|
+
declare function readToEnvoySqliteCommitResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitResponse;
|
|
862
|
+
declare function writeToEnvoySqliteCommitResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitResponse): void;
|
|
863
|
+
type ToEnvoySqliteCommitStageBeginResponse = {
|
|
864
|
+
readonly requestId: u32;
|
|
865
|
+
readonly data: SqliteCommitStageBeginResponse;
|
|
866
|
+
};
|
|
867
|
+
declare function readToEnvoySqliteCommitStageBeginResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitStageBeginResponse;
|
|
868
|
+
declare function writeToEnvoySqliteCommitStageBeginResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitStageBeginResponse): void;
|
|
869
|
+
type ToEnvoySqliteCommitStageResponse = {
|
|
870
|
+
readonly requestId: u32;
|
|
871
|
+
readonly data: SqliteCommitStageResponse;
|
|
872
|
+
};
|
|
873
|
+
declare function readToEnvoySqliteCommitStageResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitStageResponse;
|
|
874
|
+
declare function writeToEnvoySqliteCommitStageResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitStageResponse): void;
|
|
875
|
+
type ToEnvoySqliteCommitFinalizeResponse = {
|
|
876
|
+
readonly requestId: u32;
|
|
877
|
+
readonly data: SqliteCommitFinalizeResponse;
|
|
878
|
+
};
|
|
879
|
+
declare function readToEnvoySqliteCommitFinalizeResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitFinalizeResponse;
|
|
880
|
+
declare function writeToEnvoySqliteCommitFinalizeResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitFinalizeResponse): void;
|
|
601
881
|
type ToEnvoy = {
|
|
602
882
|
readonly tag: "ToEnvoyInit";
|
|
603
883
|
readonly val: ToEnvoyInit;
|
|
@@ -616,6 +896,21 @@ type ToEnvoy = {
|
|
|
616
896
|
} | {
|
|
617
897
|
readonly tag: "ToEnvoyPing";
|
|
618
898
|
readonly val: ToEnvoyPing;
|
|
899
|
+
} | {
|
|
900
|
+
readonly tag: "ToEnvoySqliteGetPagesResponse";
|
|
901
|
+
readonly val: ToEnvoySqliteGetPagesResponse;
|
|
902
|
+
} | {
|
|
903
|
+
readonly tag: "ToEnvoySqliteCommitResponse";
|
|
904
|
+
readonly val: ToEnvoySqliteCommitResponse;
|
|
905
|
+
} | {
|
|
906
|
+
readonly tag: "ToEnvoySqliteCommitStageBeginResponse";
|
|
907
|
+
readonly val: ToEnvoySqliteCommitStageBeginResponse;
|
|
908
|
+
} | {
|
|
909
|
+
readonly tag: "ToEnvoySqliteCommitStageResponse";
|
|
910
|
+
readonly val: ToEnvoySqliteCommitStageResponse;
|
|
911
|
+
} | {
|
|
912
|
+
readonly tag: "ToEnvoySqliteCommitFinalizeResponse";
|
|
913
|
+
readonly val: ToEnvoySqliteCommitFinalizeResponse;
|
|
619
914
|
};
|
|
620
915
|
declare function readToEnvoy(bc: bare.ByteCursor): ToEnvoy;
|
|
621
916
|
declare function writeToEnvoy(bc: bare.ByteCursor, x: ToEnvoy): void;
|
|
@@ -691,6 +986,6 @@ declare function readToOutbound(bc: bare.ByteCursor): ToOutbound;
|
|
|
691
986
|
declare function writeToOutbound(bc: bare.ByteCursor, x: ToOutbound): void;
|
|
692
987
|
declare function encodeToOutbound(x: ToOutbound, config?: Partial<bare.Config>): Uint8Array;
|
|
693
988
|
declare function decodeToOutbound(bytes: Uint8Array): ToOutbound;
|
|
694
|
-
declare const VERSION =
|
|
989
|
+
declare const VERSION = 2;
|
|
695
990
|
|
|
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 };
|
|
991
|
+
export { type ActorCheckpoint, type ActorCommandKeyData, type ActorConfig, type ActorIntent, type ActorIntentSleep, type ActorIntentStop, type ActorName, type ActorState, type ActorStateRunning, type ActorStateStopped, type Command, type CommandStartActor, type CommandStopActor, type CommandWrapper, type Event, type EventActorIntent, type EventActorSetAlarm, type EventActorStateUpdate, type EventWrapper, type GatewayId, type HibernatingRequest, type Id, type Json, type KvDeleteRangeRequest, type KvDeleteRequest, type KvDeleteResponse, type KvDropRequest, type KvDropResponse, type KvErrorResponse, type KvGetRequest, type KvGetResponse, type KvKey, type KvListAllQuery, type KvListPrefixQuery, type KvListQuery, type KvListRangeQuery, type KvListRequest, type KvListResponse, type KvMetadata, type KvPutRequest, type KvPutResponse, type KvRequestData, type KvResponseData, type KvValue, type MessageId, type MessageIndex, type PreloadedKv, type PreloadedKvEntry, type ProtocolMetadata, type RequestId, type SqliteCommitFinalizeOk, type SqliteCommitFinalizeRequest, type SqliteCommitFinalizeResponse, type SqliteCommitOk, type SqliteCommitRequest, type SqliteCommitResponse, type SqliteCommitStageBeginOk, type SqliteCommitStageBeginRequest, type SqliteCommitStageBeginResponse, type SqliteCommitStageOk, type SqliteCommitStageRequest, type SqliteCommitStageResponse, type SqliteCommitTooLarge, type SqliteDirtyPage, type SqliteErrorResponse, type SqliteFenceMismatch, type SqliteFetchedPage, type SqliteGeneration, type SqliteGetPagesOk, type SqliteGetPagesRequest, type SqliteGetPagesResponse, type SqliteMeta, type SqlitePageBytes, type SqlitePgno, type SqliteStageId, type SqliteStageNotFound, type SqliteStartupData, type SqliteTxid, StopActorReason, StopCode, type ToEnvoy, type ToEnvoyAckEvents, type ToEnvoyCommands, type ToEnvoyConn, type ToEnvoyConnClose, type ToEnvoyConnPing, type ToEnvoyInit, type ToEnvoyKvResponse, type ToEnvoyPing, type ToEnvoyRequestAbort, type ToEnvoyRequestChunk, type ToEnvoyRequestStart, type ToEnvoySqliteCommitFinalizeResponse, type ToEnvoySqliteCommitResponse, type ToEnvoySqliteCommitStageBeginResponse, type ToEnvoySqliteCommitStageResponse, type ToEnvoySqliteGetPagesResponse, type ToEnvoyTunnelMessage, type ToEnvoyTunnelMessageKind, type ToEnvoyWebSocketClose, type ToEnvoyWebSocketMessage, type ToEnvoyWebSocketOpen, type ToGateway, type ToGatewayPong, type ToOutbound, type ToOutboundActorStart, type ToRivet, type ToRivetAckCommands, type ToRivetEvents, type ToRivetKvRequest, type ToRivetMetadata, type ToRivetPong, type ToRivetResponseAbort, type ToRivetResponseChunk, type ToRivetResponseStart, type ToRivetSqliteCommitFinalizeRequest, type ToRivetSqliteCommitRequest, type ToRivetSqliteCommitStageBeginRequest, type ToRivetSqliteCommitStageRequest, type ToRivetSqliteGetPagesRequest, type ToRivetStopping, type ToRivetTunnelMessage, type ToRivetTunnelMessageKind, type ToRivetWebSocketClose, type ToRivetWebSocketMessage, type ToRivetWebSocketMessageAck, type ToRivetWebSocketOpen, VERSION, decodeActorCommandKeyData, decodeToEnvoy, decodeToEnvoyConn, decodeToGateway, decodeToOutbound, decodeToRivet, encodeActorCommandKeyData, encodeToEnvoy, encodeToEnvoyConn, encodeToGateway, encodeToOutbound, encodeToRivet, type i64, readActorCheckpoint, readActorCommandKeyData, readActorConfig, readActorIntent, readActorName, readActorState, readActorStateStopped, readCommand, readCommandStartActor, readCommandStopActor, readCommandWrapper, readEvent, readEventActorIntent, readEventActorSetAlarm, readEventActorStateUpdate, readEventWrapper, readGatewayId, readHibernatingRequest, readId, readJson, readKvDeleteRangeRequest, readKvDeleteRequest, readKvErrorResponse, readKvGetRequest, readKvGetResponse, readKvKey, readKvListPrefixQuery, readKvListQuery, readKvListRangeQuery, readKvListRequest, readKvListResponse, readKvMetadata, readKvPutRequest, readKvRequestData, readKvResponseData, readKvValue, readMessageId, readMessageIndex, readPreloadedKv, readPreloadedKvEntry, readProtocolMetadata, readRequestId, readSqliteCommitFinalizeOk, readSqliteCommitFinalizeRequest, readSqliteCommitFinalizeResponse, readSqliteCommitOk, readSqliteCommitRequest, readSqliteCommitResponse, readSqliteCommitStageBeginOk, readSqliteCommitStageBeginRequest, readSqliteCommitStageBeginResponse, readSqliteCommitStageOk, readSqliteCommitStageRequest, readSqliteCommitStageResponse, readSqliteCommitTooLarge, readSqliteDirtyPage, readSqliteErrorResponse, readSqliteFenceMismatch, readSqliteFetchedPage, readSqliteGeneration, readSqliteGetPagesOk, readSqliteGetPagesRequest, readSqliteGetPagesResponse, readSqliteMeta, readSqlitePageBytes, readSqlitePgno, readSqliteStageId, readSqliteStageNotFound, readSqliteStartupData, readSqliteTxid, readStopActorReason, readStopCode, readToEnvoy, readToEnvoyAckEvents, readToEnvoyCommands, readToEnvoyConn, readToEnvoyConnPing, readToEnvoyInit, readToEnvoyKvResponse, readToEnvoyPing, readToEnvoyRequestChunk, readToEnvoyRequestStart, readToEnvoySqliteCommitFinalizeResponse, readToEnvoySqliteCommitResponse, readToEnvoySqliteCommitStageBeginResponse, readToEnvoySqliteCommitStageResponse, readToEnvoySqliteGetPagesResponse, readToEnvoyTunnelMessage, readToEnvoyTunnelMessageKind, readToEnvoyWebSocketClose, readToEnvoyWebSocketMessage, readToEnvoyWebSocketOpen, readToGateway, readToGatewayPong, readToOutbound, readToOutboundActorStart, readToRivet, readToRivetAckCommands, readToRivetEvents, readToRivetKvRequest, readToRivetMetadata, readToRivetPong, readToRivetResponseChunk, readToRivetResponseStart, readToRivetSqliteCommitFinalizeRequest, readToRivetSqliteCommitRequest, readToRivetSqliteCommitStageBeginRequest, readToRivetSqliteCommitStageRequest, readToRivetSqliteGetPagesRequest, readToRivetTunnelMessage, readToRivetTunnelMessageKind, readToRivetWebSocketClose, readToRivetWebSocketMessage, readToRivetWebSocketMessageAck, readToRivetWebSocketOpen, type u16, type u32, type u64, writeActorCheckpoint, writeActorCommandKeyData, writeActorConfig, writeActorIntent, writeActorName, writeActorState, writeActorStateStopped, writeCommand, writeCommandStartActor, writeCommandStopActor, writeCommandWrapper, writeEvent, writeEventActorIntent, writeEventActorSetAlarm, writeEventActorStateUpdate, writeEventWrapper, writeGatewayId, writeHibernatingRequest, writeId, writeJson, writeKvDeleteRangeRequest, writeKvDeleteRequest, writeKvErrorResponse, writeKvGetRequest, writeKvGetResponse, writeKvKey, writeKvListPrefixQuery, writeKvListQuery, writeKvListRangeQuery, writeKvListRequest, writeKvListResponse, writeKvMetadata, writeKvPutRequest, writeKvRequestData, writeKvResponseData, writeKvValue, writeMessageId, writeMessageIndex, writePreloadedKv, writePreloadedKvEntry, writeProtocolMetadata, writeRequestId, writeSqliteCommitFinalizeOk, writeSqliteCommitFinalizeRequest, writeSqliteCommitFinalizeResponse, writeSqliteCommitOk, writeSqliteCommitRequest, writeSqliteCommitResponse, writeSqliteCommitStageBeginOk, writeSqliteCommitStageBeginRequest, writeSqliteCommitStageBeginResponse, writeSqliteCommitStageOk, writeSqliteCommitStageRequest, writeSqliteCommitStageResponse, writeSqliteCommitTooLarge, writeSqliteDirtyPage, writeSqliteErrorResponse, writeSqliteFenceMismatch, writeSqliteFetchedPage, writeSqliteGeneration, writeSqliteGetPagesOk, writeSqliteGetPagesRequest, writeSqliteGetPagesResponse, writeSqliteMeta, writeSqlitePageBytes, writeSqlitePgno, writeSqliteStageId, writeSqliteStageNotFound, writeSqliteStartupData, writeSqliteTxid, writeStopActorReason, writeStopCode, writeToEnvoy, writeToEnvoyAckEvents, writeToEnvoyCommands, writeToEnvoyConn, writeToEnvoyConnPing, writeToEnvoyInit, writeToEnvoyKvResponse, writeToEnvoyPing, writeToEnvoyRequestChunk, writeToEnvoyRequestStart, writeToEnvoySqliteCommitFinalizeResponse, writeToEnvoySqliteCommitResponse, writeToEnvoySqliteCommitStageBeginResponse, writeToEnvoySqliteCommitStageResponse, writeToEnvoySqliteGetPagesResponse, writeToEnvoyTunnelMessage, writeToEnvoyTunnelMessageKind, writeToEnvoyWebSocketClose, writeToEnvoyWebSocketMessage, writeToEnvoyWebSocketOpen, writeToGateway, writeToGatewayPong, writeToOutbound, writeToOutboundActorStart, writeToRivet, writeToRivetAckCommands, writeToRivetEvents, writeToRivetKvRequest, writeToRivetMetadata, writeToRivetPong, writeToRivetResponseChunk, writeToRivetResponseStart, writeToRivetSqliteCommitFinalizeRequest, writeToRivetSqliteCommitRequest, writeToRivetSqliteCommitStageBeginRequest, writeToRivetSqliteCommitStageRequest, writeToRivetSqliteGetPagesRequest, writeToRivetTunnelMessage, writeToRivetTunnelMessageKind, writeToRivetWebSocketClose, writeToRivetWebSocketMessage, writeToRivetWebSocketMessageAck, writeToRivetWebSocketOpen };
|