@rivetkit/engine-envoy-protocol 0.0.0-pr.4672.159c9b3 → 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 +238 -45
- package/dist/index.js +685 -197
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as bare from '@rivetkit/bare-ts';
|
|
2
2
|
|
|
3
3
|
type i64 = bigint;
|
|
4
|
-
type u8 = number;
|
|
5
4
|
type u16 = number;
|
|
6
5
|
type u32 = number;
|
|
7
6
|
type u64 = bigint;
|
|
@@ -95,35 +94,6 @@ type KvDeleteRangeRequest = {
|
|
|
95
94
|
};
|
|
96
95
|
declare function readKvDeleteRangeRequest(bc: bare.ByteCursor): KvDeleteRangeRequest;
|
|
97
96
|
declare function writeKvDeleteRangeRequest(bc: bare.ByteCursor, x: KvDeleteRangeRequest): void;
|
|
98
|
-
type SqliteFastPathFence = {
|
|
99
|
-
readonly expectedFence: u64 | null;
|
|
100
|
-
readonly requestFence: u64;
|
|
101
|
-
};
|
|
102
|
-
declare function readSqliteFastPathFence(bc: bare.ByteCursor): SqliteFastPathFence;
|
|
103
|
-
declare function writeSqliteFastPathFence(bc: bare.ByteCursor, x: SqliteFastPathFence): void;
|
|
104
|
-
type SqlitePageUpdate = {
|
|
105
|
-
readonly chunkIndex: u32;
|
|
106
|
-
readonly data: KvValue;
|
|
107
|
-
};
|
|
108
|
-
declare function readSqlitePageUpdate(bc: bare.ByteCursor): SqlitePageUpdate;
|
|
109
|
-
declare function writeSqlitePageUpdate(bc: bare.ByteCursor, x: SqlitePageUpdate): void;
|
|
110
|
-
type KvSqliteWriteBatchRequest = {
|
|
111
|
-
readonly fileTag: u8;
|
|
112
|
-
readonly metaValue: KvValue;
|
|
113
|
-
readonly pageUpdates: readonly SqlitePageUpdate[];
|
|
114
|
-
readonly fence: SqliteFastPathFence;
|
|
115
|
-
};
|
|
116
|
-
declare function readKvSqliteWriteBatchRequest(bc: bare.ByteCursor): KvSqliteWriteBatchRequest;
|
|
117
|
-
declare function writeKvSqliteWriteBatchRequest(bc: bare.ByteCursor, x: KvSqliteWriteBatchRequest): void;
|
|
118
|
-
type KvSqliteTruncateRequest = {
|
|
119
|
-
readonly fileTag: u8;
|
|
120
|
-
readonly metaValue: KvValue;
|
|
121
|
-
readonly deleteChunksFrom: u32;
|
|
122
|
-
readonly tailChunk: SqlitePageUpdate | null;
|
|
123
|
-
readonly fence: SqliteFastPathFence;
|
|
124
|
-
};
|
|
125
|
-
declare function readKvSqliteTruncateRequest(bc: bare.ByteCursor): KvSqliteTruncateRequest;
|
|
126
|
-
declare function writeKvSqliteTruncateRequest(bc: bare.ByteCursor, x: KvSqliteTruncateRequest): void;
|
|
127
97
|
type KvDropRequest = null;
|
|
128
98
|
/**
|
|
129
99
|
* Response types
|
|
@@ -168,12 +138,6 @@ type KvRequestData = {
|
|
|
168
138
|
} | {
|
|
169
139
|
readonly tag: "KvDeleteRangeRequest";
|
|
170
140
|
readonly val: KvDeleteRangeRequest;
|
|
171
|
-
} | {
|
|
172
|
-
readonly tag: "KvSqliteWriteBatchRequest";
|
|
173
|
-
readonly val: KvSqliteWriteBatchRequest;
|
|
174
|
-
} | {
|
|
175
|
-
readonly tag: "KvSqliteTruncateRequest";
|
|
176
|
-
readonly val: KvSqliteTruncateRequest;
|
|
177
141
|
} | {
|
|
178
142
|
readonly tag: "KvDropRequest";
|
|
179
143
|
readonly val: KvDropRequest;
|
|
@@ -201,6 +165,169 @@ type KvResponseData = {
|
|
|
201
165
|
};
|
|
202
166
|
declare function readKvResponseData(bc: bare.ByteCursor): KvResponseData;
|
|
203
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;
|
|
204
331
|
/**
|
|
205
332
|
* Core
|
|
206
333
|
*/
|
|
@@ -323,6 +450,8 @@ type CommandStartActor = {
|
|
|
323
450
|
readonly config: ActorConfig;
|
|
324
451
|
readonly hibernatingRequests: readonly HibernatingRequest[];
|
|
325
452
|
readonly preloadedKv: PreloadedKv | null;
|
|
453
|
+
readonly sqliteSchemaVersion: u32;
|
|
454
|
+
readonly sqliteStartupData: SqliteStartupData | null;
|
|
326
455
|
};
|
|
327
456
|
declare function readCommandStartActor(bc: bare.ByteCursor): CommandStartActor;
|
|
328
457
|
declare function writeCommandStartActor(bc: bare.ByteCursor, x: CommandStartActor): void;
|
|
@@ -579,6 +708,30 @@ type ToRivetKvRequest = {
|
|
|
579
708
|
};
|
|
580
709
|
declare function readToRivetKvRequest(bc: bare.ByteCursor): ToRivetKvRequest;
|
|
581
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;
|
|
582
735
|
type ToRivet = {
|
|
583
736
|
readonly tag: "ToRivetMetadata";
|
|
584
737
|
readonly val: ToRivetMetadata;
|
|
@@ -600,6 +753,18 @@ type ToRivet = {
|
|
|
600
753
|
} | {
|
|
601
754
|
readonly tag: "ToRivetTunnelMessage";
|
|
602
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;
|
|
603
768
|
};
|
|
604
769
|
declare function readToRivet(bc: bare.ByteCursor): ToRivet;
|
|
605
770
|
declare function writeToRivet(bc: bare.ByteCursor, x: ToRivet): void;
|
|
@@ -608,18 +773,10 @@ declare function decodeToRivet(bytes: Uint8Array): ToRivet;
|
|
|
608
773
|
/**
|
|
609
774
|
* MARK: To Envoy
|
|
610
775
|
*/
|
|
611
|
-
type SqliteFastPathCapability = {
|
|
612
|
-
readonly protocolVersion: u16;
|
|
613
|
-
readonly supportsWriteBatch: boolean;
|
|
614
|
-
readonly supportsTruncate: boolean;
|
|
615
|
-
};
|
|
616
|
-
declare function readSqliteFastPathCapability(bc: bare.ByteCursor): SqliteFastPathCapability;
|
|
617
|
-
declare function writeSqliteFastPathCapability(bc: bare.ByteCursor, x: SqliteFastPathCapability): void;
|
|
618
776
|
type ProtocolMetadata = {
|
|
619
777
|
readonly envoyLostThreshold: i64;
|
|
620
778
|
readonly actorStopThreshold: i64;
|
|
621
779
|
readonly maxResponsePayloadSize: u64;
|
|
622
|
-
readonly sqliteFastPath: SqliteFastPathCapability | null;
|
|
623
780
|
};
|
|
624
781
|
declare function readProtocolMetadata(bc: bare.ByteCursor): ProtocolMetadata;
|
|
625
782
|
declare function writeProtocolMetadata(bc: bare.ByteCursor, x: ProtocolMetadata): void;
|
|
@@ -642,6 +799,30 @@ type ToEnvoyKvResponse = {
|
|
|
642
799
|
};
|
|
643
800
|
declare function readToEnvoyKvResponse(bc: bare.ByteCursor): ToEnvoyKvResponse;
|
|
644
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;
|
|
645
826
|
type ToEnvoy = {
|
|
646
827
|
readonly tag: "ToEnvoyInit";
|
|
647
828
|
readonly val: ToEnvoyInit;
|
|
@@ -660,6 +841,18 @@ type ToEnvoy = {
|
|
|
660
841
|
} | {
|
|
661
842
|
readonly tag: "ToEnvoyPing";
|
|
662
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;
|
|
663
856
|
};
|
|
664
857
|
declare function readToEnvoy(bc: bare.ByteCursor): ToEnvoy;
|
|
665
858
|
declare function writeToEnvoy(bc: bare.ByteCursor, x: ToEnvoy): void;
|
|
@@ -737,4 +930,4 @@ declare function encodeToOutbound(x: ToOutbound, config?: Partial<bare.Config>):
|
|
|
737
930
|
declare function decodeToOutbound(bytes: Uint8Array): ToOutbound;
|
|
738
931
|
declare const VERSION = 2;
|
|
739
932
|
|
|
740
|
-
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
|
|
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 };
|