@rivetkit/engine-envoy-protocol 0.0.0-pr.4882.e847a5c → 0.0.0-pr.4931.7575e83
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 +137 -174
- package/dist/index.js +392 -397
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -165,38 +165,15 @@ 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
168
|
type SqlitePgno = u32;
|
|
175
169
|
declare function readSqlitePgno(bc: bare.ByteCursor): SqlitePgno;
|
|
176
170
|
declare function writeSqlitePgno(bc: bare.ByteCursor, x: SqlitePgno): void;
|
|
177
|
-
type
|
|
178
|
-
declare function
|
|
179
|
-
declare function
|
|
171
|
+
type SqliteGeneration = u64;
|
|
172
|
+
declare function readSqliteGeneration(bc: bare.ByteCursor): SqliteGeneration;
|
|
173
|
+
declare function writeSqliteGeneration(bc: bare.ByteCursor, x: SqliteGeneration): void;
|
|
180
174
|
type SqlitePageBytes = ArrayBuffer;
|
|
181
175
|
declare function readSqlitePageBytes(bc: bare.ByteCursor): SqlitePageBytes;
|
|
182
176
|
declare function writeSqlitePageBytes(bc: bare.ByteCursor, x: SqlitePageBytes): void;
|
|
183
|
-
type SqliteMeta = {
|
|
184
|
-
readonly generation: SqliteGeneration;
|
|
185
|
-
readonly headTxid: SqliteTxid;
|
|
186
|
-
readonly materializedTxid: SqliteTxid;
|
|
187
|
-
readonly dbSizePages: u32;
|
|
188
|
-
readonly pageSize: u32;
|
|
189
|
-
readonly creationTsMs: i64;
|
|
190
|
-
readonly maxDeltaBytes: u64;
|
|
191
|
-
};
|
|
192
|
-
declare function readSqliteMeta(bc: bare.ByteCursor): SqliteMeta;
|
|
193
|
-
declare function writeSqliteMeta(bc: bare.ByteCursor, x: SqliteMeta): void;
|
|
194
|
-
type SqliteFenceMismatch = {
|
|
195
|
-
readonly actualMeta: SqliteMeta;
|
|
196
|
-
readonly reason: string;
|
|
197
|
-
};
|
|
198
|
-
declare function readSqliteFenceMismatch(bc: bare.ByteCursor): SqliteFenceMismatch;
|
|
199
|
-
declare function writeSqliteFenceMismatch(bc: bare.ByteCursor, x: SqliteFenceMismatch): void;
|
|
200
177
|
type SqliteDirtyPage = {
|
|
201
178
|
readonly pgno: SqlitePgno;
|
|
202
179
|
readonly bytes: SqlitePageBytes;
|
|
@@ -211,14 +188,14 @@ declare function readSqliteFetchedPage(bc: bare.ByteCursor): SqliteFetchedPage;
|
|
|
211
188
|
declare function writeSqliteFetchedPage(bc: bare.ByteCursor, x: SqliteFetchedPage): void;
|
|
212
189
|
type SqliteGetPagesRequest = {
|
|
213
190
|
readonly actorId: Id;
|
|
214
|
-
readonly generation: SqliteGeneration;
|
|
215
191
|
readonly pgnos: readonly SqlitePgno[];
|
|
192
|
+
readonly expectedGeneration: u64 | null;
|
|
193
|
+
readonly expectedHeadTxid: u64 | null;
|
|
216
194
|
};
|
|
217
195
|
declare function readSqliteGetPagesRequest(bc: bare.ByteCursor): SqliteGetPagesRequest;
|
|
218
196
|
declare function writeSqliteGetPagesRequest(bc: bare.ByteCursor, x: SqliteGetPagesRequest): void;
|
|
219
197
|
type SqliteGetPagesOk = {
|
|
220
198
|
readonly pages: readonly SqliteFetchedPage[];
|
|
221
|
-
readonly meta: SqliteMeta;
|
|
222
199
|
};
|
|
223
200
|
declare function readSqliteGetPagesOk(bc: bare.ByteCursor): SqliteGetPagesOk;
|
|
224
201
|
declare function writeSqliteGetPagesOk(bc: bare.ByteCursor, x: SqliteGetPagesOk): void;
|
|
@@ -230,9 +207,6 @@ declare function writeSqliteErrorResponse(bc: bare.ByteCursor, x: SqliteErrorRes
|
|
|
230
207
|
type SqliteGetPagesResponse = {
|
|
231
208
|
readonly tag: "SqliteGetPagesOk";
|
|
232
209
|
readonly val: SqliteGetPagesOk;
|
|
233
|
-
} | {
|
|
234
|
-
readonly tag: "SqliteFenceMismatch";
|
|
235
|
-
readonly val: SqliteFenceMismatch;
|
|
236
210
|
} | {
|
|
237
211
|
readonly tag: "SqliteErrorResponse";
|
|
238
212
|
readonly val: SqliteErrorResponse;
|
|
@@ -241,132 +215,140 @@ declare function readSqliteGetPagesResponse(bc: bare.ByteCursor): SqliteGetPages
|
|
|
241
215
|
declare function writeSqliteGetPagesResponse(bc: bare.ByteCursor, x: SqliteGetPagesResponse): void;
|
|
242
216
|
type SqliteCommitRequest = {
|
|
243
217
|
readonly actorId: Id;
|
|
244
|
-
readonly generation: SqliteGeneration;
|
|
245
|
-
readonly expectedHeadTxid: SqliteTxid;
|
|
246
218
|
readonly dirtyPages: readonly SqliteDirtyPage[];
|
|
247
|
-
readonly
|
|
219
|
+
readonly dbSizePages: u32;
|
|
220
|
+
readonly nowMs: i64;
|
|
221
|
+
readonly expectedGeneration: u64 | null;
|
|
222
|
+
readonly expectedHeadTxid: u64 | null;
|
|
248
223
|
};
|
|
249
224
|
declare function readSqliteCommitRequest(bc: bare.ByteCursor): SqliteCommitRequest;
|
|
250
225
|
declare function writeSqliteCommitRequest(bc: bare.ByteCursor, x: SqliteCommitRequest): void;
|
|
251
|
-
type SqliteCommitOk =
|
|
252
|
-
readonly newHeadTxid: SqliteTxid;
|
|
253
|
-
readonly meta: SqliteMeta;
|
|
254
|
-
};
|
|
255
|
-
declare function readSqliteCommitOk(bc: bare.ByteCursor): SqliteCommitOk;
|
|
256
|
-
declare function writeSqliteCommitOk(bc: bare.ByteCursor, x: SqliteCommitOk): void;
|
|
257
|
-
type SqliteCommitTooLarge = {
|
|
258
|
-
readonly actualSizeBytes: u64;
|
|
259
|
-
readonly maxSizeBytes: u64;
|
|
260
|
-
};
|
|
261
|
-
declare function readSqliteCommitTooLarge(bc: bare.ByteCursor): SqliteCommitTooLarge;
|
|
262
|
-
declare function writeSqliteCommitTooLarge(bc: bare.ByteCursor, x: SqliteCommitTooLarge): void;
|
|
226
|
+
type SqliteCommitOk = null;
|
|
263
227
|
type SqliteCommitResponse = {
|
|
264
228
|
readonly tag: "SqliteCommitOk";
|
|
265
229
|
readonly val: SqliteCommitOk;
|
|
266
|
-
} | {
|
|
267
|
-
readonly tag: "SqliteFenceMismatch";
|
|
268
|
-
readonly val: SqliteFenceMismatch;
|
|
269
|
-
} | {
|
|
270
|
-
readonly tag: "SqliteCommitTooLarge";
|
|
271
|
-
readonly val: SqliteCommitTooLarge;
|
|
272
230
|
} | {
|
|
273
231
|
readonly tag: "SqliteErrorResponse";
|
|
274
232
|
readonly val: SqliteErrorResponse;
|
|
275
233
|
};
|
|
276
234
|
declare function readSqliteCommitResponse(bc: bare.ByteCursor): SqliteCommitResponse;
|
|
277
235
|
declare function writeSqliteCommitResponse(bc: bare.ByteCursor, x: SqliteCommitResponse): void;
|
|
278
|
-
type
|
|
236
|
+
type SqliteValueNull = null;
|
|
237
|
+
type SqliteValueInteger = {
|
|
238
|
+
readonly value: i64;
|
|
239
|
+
};
|
|
240
|
+
declare function readSqliteValueInteger(bc: bare.ByteCursor): SqliteValueInteger;
|
|
241
|
+
declare function writeSqliteValueInteger(bc: bare.ByteCursor, x: SqliteValueInteger): void;
|
|
242
|
+
type SqliteValueFloat = {
|
|
243
|
+
readonly value: ArrayBuffer;
|
|
244
|
+
};
|
|
245
|
+
declare function readSqliteValueFloat(bc: bare.ByteCursor): SqliteValueFloat;
|
|
246
|
+
declare function writeSqliteValueFloat(bc: bare.ByteCursor, x: SqliteValueFloat): void;
|
|
247
|
+
type SqliteValueText = {
|
|
248
|
+
readonly value: string;
|
|
249
|
+
};
|
|
250
|
+
declare function readSqliteValueText(bc: bare.ByteCursor): SqliteValueText;
|
|
251
|
+
declare function writeSqliteValueText(bc: bare.ByteCursor, x: SqliteValueText): void;
|
|
252
|
+
type SqliteValueBlob = {
|
|
253
|
+
readonly value: ArrayBuffer;
|
|
254
|
+
};
|
|
255
|
+
declare function readSqliteValueBlob(bc: bare.ByteCursor): SqliteValueBlob;
|
|
256
|
+
declare function writeSqliteValueBlob(bc: bare.ByteCursor, x: SqliteValueBlob): void;
|
|
257
|
+
type SqliteBindParam = {
|
|
258
|
+
readonly tag: "SqliteValueNull";
|
|
259
|
+
readonly val: SqliteValueNull;
|
|
260
|
+
} | {
|
|
261
|
+
readonly tag: "SqliteValueInteger";
|
|
262
|
+
readonly val: SqliteValueInteger;
|
|
263
|
+
} | {
|
|
264
|
+
readonly tag: "SqliteValueFloat";
|
|
265
|
+
readonly val: SqliteValueFloat;
|
|
266
|
+
} | {
|
|
267
|
+
readonly tag: "SqliteValueText";
|
|
268
|
+
readonly val: SqliteValueText;
|
|
269
|
+
} | {
|
|
270
|
+
readonly tag: "SqliteValueBlob";
|
|
271
|
+
readonly val: SqliteValueBlob;
|
|
272
|
+
};
|
|
273
|
+
declare function readSqliteBindParam(bc: bare.ByteCursor): SqliteBindParam;
|
|
274
|
+
declare function writeSqliteBindParam(bc: bare.ByteCursor, x: SqliteBindParam): void;
|
|
275
|
+
type SqliteColumnValue = {
|
|
276
|
+
readonly tag: "SqliteValueNull";
|
|
277
|
+
readonly val: SqliteValueNull;
|
|
278
|
+
} | {
|
|
279
|
+
readonly tag: "SqliteValueInteger";
|
|
280
|
+
readonly val: SqliteValueInteger;
|
|
281
|
+
} | {
|
|
282
|
+
readonly tag: "SqliteValueFloat";
|
|
283
|
+
readonly val: SqliteValueFloat;
|
|
284
|
+
} | {
|
|
285
|
+
readonly tag: "SqliteValueText";
|
|
286
|
+
readonly val: SqliteValueText;
|
|
287
|
+
} | {
|
|
288
|
+
readonly tag: "SqliteValueBlob";
|
|
289
|
+
readonly val: SqliteValueBlob;
|
|
290
|
+
};
|
|
291
|
+
declare function readSqliteColumnValue(bc: bare.ByteCursor): SqliteColumnValue;
|
|
292
|
+
declare function writeSqliteColumnValue(bc: bare.ByteCursor, x: SqliteColumnValue): void;
|
|
293
|
+
type SqliteQueryResult = {
|
|
294
|
+
readonly columns: readonly string[];
|
|
295
|
+
readonly rows: readonly (readonly SqliteColumnValue[])[];
|
|
296
|
+
};
|
|
297
|
+
declare function readSqliteQueryResult(bc: bare.ByteCursor): SqliteQueryResult;
|
|
298
|
+
declare function writeSqliteQueryResult(bc: bare.ByteCursor, x: SqliteQueryResult): void;
|
|
299
|
+
type SqliteExecuteResult = {
|
|
300
|
+
readonly columns: readonly string[];
|
|
301
|
+
readonly rows: readonly (readonly SqliteColumnValue[])[];
|
|
302
|
+
readonly changes: i64;
|
|
303
|
+
readonly lastInsertRowId: i64 | null;
|
|
304
|
+
};
|
|
305
|
+
declare function readSqliteExecuteResult(bc: bare.ByteCursor): SqliteExecuteResult;
|
|
306
|
+
declare function writeSqliteExecuteResult(bc: bare.ByteCursor, x: SqliteExecuteResult): void;
|
|
307
|
+
type SqliteExecRequest = {
|
|
308
|
+
readonly namespaceId: Id;
|
|
279
309
|
readonly actorId: Id;
|
|
280
310
|
readonly generation: SqliteGeneration;
|
|
311
|
+
readonly sql: string;
|
|
281
312
|
};
|
|
282
|
-
declare function
|
|
283
|
-
declare function
|
|
284
|
-
type
|
|
285
|
-
readonly
|
|
286
|
-
};
|
|
287
|
-
declare function readSqliteCommitStageBeginOk(bc: bare.ByteCursor): SqliteCommitStageBeginOk;
|
|
288
|
-
declare function writeSqliteCommitStageBeginOk(bc: bare.ByteCursor, x: SqliteCommitStageBeginOk): void;
|
|
289
|
-
type SqliteCommitStageBeginResponse = {
|
|
290
|
-
readonly tag: "SqliteCommitStageBeginOk";
|
|
291
|
-
readonly val: SqliteCommitStageBeginOk;
|
|
292
|
-
} | {
|
|
293
|
-
readonly tag: "SqliteFenceMismatch";
|
|
294
|
-
readonly val: SqliteFenceMismatch;
|
|
295
|
-
} | {
|
|
296
|
-
readonly tag: "SqliteErrorResponse";
|
|
297
|
-
readonly val: SqliteErrorResponse;
|
|
298
|
-
};
|
|
299
|
-
declare function readSqliteCommitStageBeginResponse(bc: bare.ByteCursor): SqliteCommitStageBeginResponse;
|
|
300
|
-
declare function writeSqliteCommitStageBeginResponse(bc: bare.ByteCursor, x: SqliteCommitStageBeginResponse): void;
|
|
301
|
-
type SqliteCommitStageRequest = {
|
|
313
|
+
declare function readSqliteExecRequest(bc: bare.ByteCursor): SqliteExecRequest;
|
|
314
|
+
declare function writeSqliteExecRequest(bc: bare.ByteCursor, x: SqliteExecRequest): void;
|
|
315
|
+
type SqliteExecuteRequest = {
|
|
316
|
+
readonly namespaceId: Id;
|
|
302
317
|
readonly actorId: Id;
|
|
303
318
|
readonly generation: SqliteGeneration;
|
|
304
|
-
readonly
|
|
305
|
-
readonly
|
|
306
|
-
readonly bytes: ArrayBuffer;
|
|
307
|
-
readonly isLast: boolean;
|
|
319
|
+
readonly sql: string;
|
|
320
|
+
readonly params: readonly SqliteBindParam[] | null;
|
|
308
321
|
};
|
|
309
|
-
declare function
|
|
310
|
-
declare function
|
|
311
|
-
type
|
|
312
|
-
readonly
|
|
322
|
+
declare function readSqliteExecuteRequest(bc: bare.ByteCursor): SqliteExecuteRequest;
|
|
323
|
+
declare function writeSqliteExecuteRequest(bc: bare.ByteCursor, x: SqliteExecuteRequest): void;
|
|
324
|
+
type SqliteExecOk = {
|
|
325
|
+
readonly result: SqliteQueryResult;
|
|
313
326
|
};
|
|
314
|
-
declare function
|
|
315
|
-
declare function
|
|
316
|
-
type
|
|
317
|
-
readonly
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
327
|
+
declare function readSqliteExecOk(bc: bare.ByteCursor): SqliteExecOk;
|
|
328
|
+
declare function writeSqliteExecOk(bc: bare.ByteCursor, x: SqliteExecOk): void;
|
|
329
|
+
type SqliteExecuteOk = {
|
|
330
|
+
readonly result: SqliteExecuteResult;
|
|
331
|
+
};
|
|
332
|
+
declare function readSqliteExecuteOk(bc: bare.ByteCursor): SqliteExecuteOk;
|
|
333
|
+
declare function writeSqliteExecuteOk(bc: bare.ByteCursor, x: SqliteExecuteOk): void;
|
|
334
|
+
type SqliteExecResponse = {
|
|
335
|
+
readonly tag: "SqliteExecOk";
|
|
336
|
+
readonly val: SqliteExecOk;
|
|
322
337
|
} | {
|
|
323
338
|
readonly tag: "SqliteErrorResponse";
|
|
324
339
|
readonly val: SqliteErrorResponse;
|
|
325
340
|
};
|
|
326
|
-
declare function
|
|
327
|
-
declare function
|
|
328
|
-
type
|
|
329
|
-
readonly
|
|
330
|
-
readonly
|
|
331
|
-
readonly expectedHeadTxid: SqliteTxid;
|
|
332
|
-
readonly txid: SqliteTxid;
|
|
333
|
-
readonly newDbSizePages: u32;
|
|
334
|
-
};
|
|
335
|
-
declare function readSqliteCommitFinalizeRequest(bc: bare.ByteCursor): SqliteCommitFinalizeRequest;
|
|
336
|
-
declare function writeSqliteCommitFinalizeRequest(bc: bare.ByteCursor, x: SqliteCommitFinalizeRequest): void;
|
|
337
|
-
type SqliteCommitFinalizeOk = {
|
|
338
|
-
readonly newHeadTxid: SqliteTxid;
|
|
339
|
-
readonly meta: SqliteMeta;
|
|
340
|
-
};
|
|
341
|
-
declare function readSqliteCommitFinalizeOk(bc: bare.ByteCursor): SqliteCommitFinalizeOk;
|
|
342
|
-
declare function writeSqliteCommitFinalizeOk(bc: bare.ByteCursor, x: SqliteCommitFinalizeOk): void;
|
|
343
|
-
type SqliteStageNotFound = {
|
|
344
|
-
readonly stageId: SqliteStageId;
|
|
345
|
-
};
|
|
346
|
-
declare function readSqliteStageNotFound(bc: bare.ByteCursor): SqliteStageNotFound;
|
|
347
|
-
declare function writeSqliteStageNotFound(bc: bare.ByteCursor, x: SqliteStageNotFound): void;
|
|
348
|
-
type SqliteCommitFinalizeResponse = {
|
|
349
|
-
readonly tag: "SqliteCommitFinalizeOk";
|
|
350
|
-
readonly val: SqliteCommitFinalizeOk;
|
|
351
|
-
} | {
|
|
352
|
-
readonly tag: "SqliteFenceMismatch";
|
|
353
|
-
readonly val: SqliteFenceMismatch;
|
|
354
|
-
} | {
|
|
355
|
-
readonly tag: "SqliteStageNotFound";
|
|
356
|
-
readonly val: SqliteStageNotFound;
|
|
341
|
+
declare function readSqliteExecResponse(bc: bare.ByteCursor): SqliteExecResponse;
|
|
342
|
+
declare function writeSqliteExecResponse(bc: bare.ByteCursor, x: SqliteExecResponse): void;
|
|
343
|
+
type SqliteExecuteResponse = {
|
|
344
|
+
readonly tag: "SqliteExecuteOk";
|
|
345
|
+
readonly val: SqliteExecuteOk;
|
|
357
346
|
} | {
|
|
358
347
|
readonly tag: "SqliteErrorResponse";
|
|
359
348
|
readonly val: SqliteErrorResponse;
|
|
360
349
|
};
|
|
361
|
-
declare function
|
|
362
|
-
declare function
|
|
363
|
-
type SqliteStartupData = {
|
|
364
|
-
readonly generation: SqliteGeneration;
|
|
365
|
-
readonly meta: SqliteMeta;
|
|
366
|
-
readonly preloadedPages: readonly SqliteFetchedPage[];
|
|
367
|
-
};
|
|
368
|
-
declare function readSqliteStartupData(bc: bare.ByteCursor): SqliteStartupData;
|
|
369
|
-
declare function writeSqliteStartupData(bc: bare.ByteCursor, x: SqliteStartupData): void;
|
|
350
|
+
declare function readSqliteExecuteResponse(bc: bare.ByteCursor): SqliteExecuteResponse;
|
|
351
|
+
declare function writeSqliteExecuteResponse(bc: bare.ByteCursor, x: SqliteExecuteResponse): void;
|
|
370
352
|
/**
|
|
371
353
|
* Core
|
|
372
354
|
*/
|
|
@@ -489,7 +471,6 @@ type CommandStartActor = {
|
|
|
489
471
|
readonly config: ActorConfig;
|
|
490
472
|
readonly hibernatingRequests: readonly HibernatingRequest[];
|
|
491
473
|
readonly preloadedKv: PreloadedKv | null;
|
|
492
|
-
readonly sqliteStartupData: SqliteStartupData | null;
|
|
493
474
|
};
|
|
494
475
|
declare function readCommandStartActor(bc: bare.ByteCursor): CommandStartActor;
|
|
495
476
|
declare function writeCommandStartActor(bc: bare.ByteCursor, x: CommandStartActor): void;
|
|
@@ -758,24 +739,18 @@ type ToRivetSqliteCommitRequest = {
|
|
|
758
739
|
};
|
|
759
740
|
declare function readToRivetSqliteCommitRequest(bc: bare.ByteCursor): ToRivetSqliteCommitRequest;
|
|
760
741
|
declare function writeToRivetSqliteCommitRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitRequest): void;
|
|
761
|
-
type
|
|
762
|
-
readonly requestId: u32;
|
|
763
|
-
readonly data: SqliteCommitStageBeginRequest;
|
|
764
|
-
};
|
|
765
|
-
declare function readToRivetSqliteCommitStageBeginRequest(bc: bare.ByteCursor): ToRivetSqliteCommitStageBeginRequest;
|
|
766
|
-
declare function writeToRivetSqliteCommitStageBeginRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitStageBeginRequest): void;
|
|
767
|
-
type ToRivetSqliteCommitStageRequest = {
|
|
742
|
+
type ToRivetSqliteExecRequest = {
|
|
768
743
|
readonly requestId: u32;
|
|
769
|
-
readonly data:
|
|
744
|
+
readonly data: SqliteExecRequest;
|
|
770
745
|
};
|
|
771
|
-
declare function
|
|
772
|
-
declare function
|
|
773
|
-
type
|
|
746
|
+
declare function readToRivetSqliteExecRequest(bc: bare.ByteCursor): ToRivetSqliteExecRequest;
|
|
747
|
+
declare function writeToRivetSqliteExecRequest(bc: bare.ByteCursor, x: ToRivetSqliteExecRequest): void;
|
|
748
|
+
type ToRivetSqliteExecuteRequest = {
|
|
774
749
|
readonly requestId: u32;
|
|
775
|
-
readonly data:
|
|
750
|
+
readonly data: SqliteExecuteRequest;
|
|
776
751
|
};
|
|
777
|
-
declare function
|
|
778
|
-
declare function
|
|
752
|
+
declare function readToRivetSqliteExecuteRequest(bc: bare.ByteCursor): ToRivetSqliteExecuteRequest;
|
|
753
|
+
declare function writeToRivetSqliteExecuteRequest(bc: bare.ByteCursor, x: ToRivetSqliteExecuteRequest): void;
|
|
779
754
|
type ToRivet = {
|
|
780
755
|
readonly tag: "ToRivetMetadata";
|
|
781
756
|
readonly val: ToRivetMetadata;
|
|
@@ -804,14 +779,11 @@ type ToRivet = {
|
|
|
804
779
|
readonly tag: "ToRivetSqliteCommitRequest";
|
|
805
780
|
readonly val: ToRivetSqliteCommitRequest;
|
|
806
781
|
} | {
|
|
807
|
-
readonly tag: "
|
|
808
|
-
readonly val:
|
|
782
|
+
readonly tag: "ToRivetSqliteExecRequest";
|
|
783
|
+
readonly val: ToRivetSqliteExecRequest;
|
|
809
784
|
} | {
|
|
810
|
-
readonly tag: "
|
|
811
|
-
readonly val:
|
|
812
|
-
} | {
|
|
813
|
-
readonly tag: "ToRivetSqliteCommitFinalizeRequest";
|
|
814
|
-
readonly val: ToRivetSqliteCommitFinalizeRequest;
|
|
785
|
+
readonly tag: "ToRivetSqliteExecuteRequest";
|
|
786
|
+
readonly val: ToRivetSqliteExecuteRequest;
|
|
815
787
|
};
|
|
816
788
|
declare function readToRivet(bc: bare.ByteCursor): ToRivet;
|
|
817
789
|
declare function writeToRivet(bc: bare.ByteCursor, x: ToRivet): void;
|
|
@@ -858,24 +830,18 @@ type ToEnvoySqliteCommitResponse = {
|
|
|
858
830
|
};
|
|
859
831
|
declare function readToEnvoySqliteCommitResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitResponse;
|
|
860
832
|
declare function writeToEnvoySqliteCommitResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitResponse): void;
|
|
861
|
-
type
|
|
862
|
-
readonly requestId: u32;
|
|
863
|
-
readonly data: SqliteCommitStageBeginResponse;
|
|
864
|
-
};
|
|
865
|
-
declare function readToEnvoySqliteCommitStageBeginResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitStageBeginResponse;
|
|
866
|
-
declare function writeToEnvoySqliteCommitStageBeginResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitStageBeginResponse): void;
|
|
867
|
-
type ToEnvoySqliteCommitStageResponse = {
|
|
833
|
+
type ToEnvoySqliteExecResponse = {
|
|
868
834
|
readonly requestId: u32;
|
|
869
|
-
readonly data:
|
|
835
|
+
readonly data: SqliteExecResponse;
|
|
870
836
|
};
|
|
871
|
-
declare function
|
|
872
|
-
declare function
|
|
873
|
-
type
|
|
837
|
+
declare function readToEnvoySqliteExecResponse(bc: bare.ByteCursor): ToEnvoySqliteExecResponse;
|
|
838
|
+
declare function writeToEnvoySqliteExecResponse(bc: bare.ByteCursor, x: ToEnvoySqliteExecResponse): void;
|
|
839
|
+
type ToEnvoySqliteExecuteResponse = {
|
|
874
840
|
readonly requestId: u32;
|
|
875
|
-
readonly data:
|
|
841
|
+
readonly data: SqliteExecuteResponse;
|
|
876
842
|
};
|
|
877
|
-
declare function
|
|
878
|
-
declare function
|
|
843
|
+
declare function readToEnvoySqliteExecuteResponse(bc: bare.ByteCursor): ToEnvoySqliteExecuteResponse;
|
|
844
|
+
declare function writeToEnvoySqliteExecuteResponse(bc: bare.ByteCursor, x: ToEnvoySqliteExecuteResponse): void;
|
|
879
845
|
type ToEnvoy = {
|
|
880
846
|
readonly tag: "ToEnvoyInit";
|
|
881
847
|
readonly val: ToEnvoyInit;
|
|
@@ -901,14 +867,11 @@ type ToEnvoy = {
|
|
|
901
867
|
readonly tag: "ToEnvoySqliteCommitResponse";
|
|
902
868
|
readonly val: ToEnvoySqliteCommitResponse;
|
|
903
869
|
} | {
|
|
904
|
-
readonly tag: "
|
|
905
|
-
readonly val:
|
|
906
|
-
} | {
|
|
907
|
-
readonly tag: "ToEnvoySqliteCommitStageResponse";
|
|
908
|
-
readonly val: ToEnvoySqliteCommitStageResponse;
|
|
870
|
+
readonly tag: "ToEnvoySqliteExecResponse";
|
|
871
|
+
readonly val: ToEnvoySqliteExecResponse;
|
|
909
872
|
} | {
|
|
910
|
-
readonly tag: "
|
|
911
|
-
readonly val:
|
|
873
|
+
readonly tag: "ToEnvoySqliteExecuteResponse";
|
|
874
|
+
readonly val: ToEnvoySqliteExecuteResponse;
|
|
912
875
|
};
|
|
913
876
|
declare function readToEnvoy(bc: bare.ByteCursor): ToEnvoy;
|
|
914
877
|
declare function writeToEnvoy(bc: bare.ByteCursor, x: ToEnvoy): void;
|
|
@@ -984,6 +947,6 @@ declare function readToOutbound(bc: bare.ByteCursor): ToOutbound;
|
|
|
984
947
|
declare function writeToOutbound(bc: bare.ByteCursor, x: ToOutbound): void;
|
|
985
948
|
declare function encodeToOutbound(x: ToOutbound, config?: Partial<bare.Config>): Uint8Array;
|
|
986
949
|
declare function decodeToOutbound(bytes: Uint8Array): ToOutbound;
|
|
987
|
-
declare const VERSION =
|
|
950
|
+
declare const VERSION = 4;
|
|
988
951
|
|
|
989
|
-
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
|
|
952
|
+
export { type ActorCheckpoint, type ActorCommandKeyData, type ActorConfig, type ActorIntent, type ActorIntentSleep, type ActorIntentStop, type ActorName, type ActorState, type ActorStateRunning, type ActorStateStopped, type Command, type CommandStartActor, type CommandStopActor, type CommandWrapper, type Event, type EventActorIntent, type EventActorSetAlarm, type EventActorStateUpdate, type EventWrapper, type GatewayId, type HibernatingRequest, type Id, type Json, type KvDeleteRangeRequest, type KvDeleteRequest, type KvDeleteResponse, type KvDropRequest, type KvDropResponse, type KvErrorResponse, type KvGetRequest, type KvGetResponse, type KvKey, type KvListAllQuery, type KvListPrefixQuery, type KvListQuery, type KvListRangeQuery, type KvListRequest, type KvListResponse, type KvMetadata, type KvPutRequest, type KvPutResponse, type KvRequestData, type KvResponseData, type KvValue, type MessageId, type MessageIndex, type PreloadedKv, type PreloadedKvEntry, type ProtocolMetadata, type RequestId, type SqliteBindParam, type SqliteColumnValue, type SqliteCommitOk, type SqliteCommitRequest, type SqliteCommitResponse, type SqliteDirtyPage, type SqliteErrorResponse, type SqliteExecOk, type SqliteExecRequest, type SqliteExecResponse, type SqliteExecuteOk, type SqliteExecuteRequest, type SqliteExecuteResponse, type SqliteExecuteResult, type SqliteFetchedPage, type SqliteGeneration, type SqliteGetPagesOk, type SqliteGetPagesRequest, type SqliteGetPagesResponse, type SqlitePageBytes, type SqlitePgno, type SqliteQueryResult, type SqliteValueBlob, type SqliteValueFloat, type SqliteValueInteger, type SqliteValueNull, type SqliteValueText, StopActorReason, StopCode, type ToEnvoy, type ToEnvoyAckEvents, type ToEnvoyCommands, type ToEnvoyConn, type ToEnvoyConnClose, type ToEnvoyConnPing, type ToEnvoyInit, type ToEnvoyKvResponse, type ToEnvoyPing, type ToEnvoyRequestAbort, type ToEnvoyRequestChunk, type ToEnvoyRequestStart, type ToEnvoySqliteCommitResponse, type ToEnvoySqliteExecResponse, type ToEnvoySqliteExecuteResponse, type ToEnvoySqliteGetPagesResponse, type ToEnvoyTunnelMessage, type ToEnvoyTunnelMessageKind, type ToEnvoyWebSocketClose, type ToEnvoyWebSocketMessage, type ToEnvoyWebSocketOpen, type ToGateway, type ToGatewayPong, type ToOutbound, type ToOutboundActorStart, type ToRivet, type ToRivetAckCommands, type ToRivetEvents, type ToRivetKvRequest, type ToRivetMetadata, type ToRivetPong, type ToRivetResponseAbort, type ToRivetResponseChunk, type ToRivetResponseStart, type ToRivetSqliteCommitRequest, type ToRivetSqliteExecRequest, type ToRivetSqliteExecuteRequest, type ToRivetSqliteGetPagesRequest, type ToRivetStopping, type ToRivetTunnelMessage, type ToRivetTunnelMessageKind, type ToRivetWebSocketClose, type ToRivetWebSocketMessage, type ToRivetWebSocketMessageAck, type ToRivetWebSocketOpen, VERSION, decodeActorCommandKeyData, decodeToEnvoy, decodeToEnvoyConn, decodeToGateway, decodeToOutbound, decodeToRivet, encodeActorCommandKeyData, encodeToEnvoy, encodeToEnvoyConn, encodeToGateway, encodeToOutbound, encodeToRivet, type i64, readActorCheckpoint, readActorCommandKeyData, readActorConfig, readActorIntent, readActorName, readActorState, readActorStateStopped, readCommand, readCommandStartActor, readCommandStopActor, readCommandWrapper, readEvent, readEventActorIntent, readEventActorSetAlarm, readEventActorStateUpdate, readEventWrapper, readGatewayId, readHibernatingRequest, readId, readJson, readKvDeleteRangeRequest, readKvDeleteRequest, readKvErrorResponse, readKvGetRequest, readKvGetResponse, readKvKey, readKvListPrefixQuery, readKvListQuery, readKvListRangeQuery, readKvListRequest, readKvListResponse, readKvMetadata, readKvPutRequest, readKvRequestData, readKvResponseData, readKvValue, readMessageId, readMessageIndex, readPreloadedKv, readPreloadedKvEntry, readProtocolMetadata, readRequestId, readSqliteBindParam, readSqliteColumnValue, readSqliteCommitRequest, readSqliteCommitResponse, readSqliteDirtyPage, readSqliteErrorResponse, readSqliteExecOk, readSqliteExecRequest, readSqliteExecResponse, readSqliteExecuteOk, readSqliteExecuteRequest, readSqliteExecuteResponse, readSqliteExecuteResult, readSqliteFetchedPage, readSqliteGeneration, readSqliteGetPagesOk, readSqliteGetPagesRequest, readSqliteGetPagesResponse, readSqlitePageBytes, readSqlitePgno, readSqliteQueryResult, readSqliteValueBlob, readSqliteValueFloat, readSqliteValueInteger, readSqliteValueText, readStopActorReason, readStopCode, readToEnvoy, readToEnvoyAckEvents, readToEnvoyCommands, readToEnvoyConn, readToEnvoyConnPing, readToEnvoyInit, readToEnvoyKvResponse, readToEnvoyPing, readToEnvoyRequestChunk, readToEnvoyRequestStart, readToEnvoySqliteCommitResponse, readToEnvoySqliteExecResponse, readToEnvoySqliteExecuteResponse, readToEnvoySqliteGetPagesResponse, readToEnvoyTunnelMessage, readToEnvoyTunnelMessageKind, readToEnvoyWebSocketClose, readToEnvoyWebSocketMessage, readToEnvoyWebSocketOpen, readToGateway, readToGatewayPong, readToOutbound, readToOutboundActorStart, readToRivet, readToRivetAckCommands, readToRivetEvents, readToRivetKvRequest, readToRivetMetadata, readToRivetPong, readToRivetResponseChunk, readToRivetResponseStart, readToRivetSqliteCommitRequest, readToRivetSqliteExecRequest, readToRivetSqliteExecuteRequest, readToRivetSqliteGetPagesRequest, readToRivetTunnelMessage, readToRivetTunnelMessageKind, readToRivetWebSocketClose, readToRivetWebSocketMessage, readToRivetWebSocketMessageAck, readToRivetWebSocketOpen, type u16, type u32, type u64, writeActorCheckpoint, writeActorCommandKeyData, writeActorConfig, writeActorIntent, writeActorName, writeActorState, writeActorStateStopped, writeCommand, writeCommandStartActor, writeCommandStopActor, writeCommandWrapper, writeEvent, writeEventActorIntent, writeEventActorSetAlarm, writeEventActorStateUpdate, writeEventWrapper, writeGatewayId, writeHibernatingRequest, writeId, writeJson, writeKvDeleteRangeRequest, writeKvDeleteRequest, writeKvErrorResponse, writeKvGetRequest, writeKvGetResponse, writeKvKey, writeKvListPrefixQuery, writeKvListQuery, writeKvListRangeQuery, writeKvListRequest, writeKvListResponse, writeKvMetadata, writeKvPutRequest, writeKvRequestData, writeKvResponseData, writeKvValue, writeMessageId, writeMessageIndex, writePreloadedKv, writePreloadedKvEntry, writeProtocolMetadata, writeRequestId, writeSqliteBindParam, writeSqliteColumnValue, writeSqliteCommitRequest, writeSqliteCommitResponse, writeSqliteDirtyPage, writeSqliteErrorResponse, writeSqliteExecOk, writeSqliteExecRequest, writeSqliteExecResponse, writeSqliteExecuteOk, writeSqliteExecuteRequest, writeSqliteExecuteResponse, writeSqliteExecuteResult, writeSqliteFetchedPage, writeSqliteGeneration, writeSqliteGetPagesOk, writeSqliteGetPagesRequest, writeSqliteGetPagesResponse, writeSqlitePageBytes, writeSqlitePgno, writeSqliteQueryResult, writeSqliteValueBlob, writeSqliteValueFloat, writeSqliteValueInteger, writeSqliteValueText, writeStopActorReason, writeStopCode, writeToEnvoy, writeToEnvoyAckEvents, writeToEnvoyCommands, writeToEnvoyConn, writeToEnvoyConnPing, writeToEnvoyInit, writeToEnvoyKvResponse, writeToEnvoyPing, writeToEnvoyRequestChunk, writeToEnvoyRequestStart, writeToEnvoySqliteCommitResponse, writeToEnvoySqliteExecResponse, writeToEnvoySqliteExecuteResponse, writeToEnvoySqliteGetPagesResponse, writeToEnvoyTunnelMessage, writeToEnvoyTunnelMessageKind, writeToEnvoyWebSocketClose, writeToEnvoyWebSocketMessage, writeToEnvoyWebSocketOpen, writeToGateway, writeToGatewayPong, writeToOutbound, writeToOutboundActorStart, writeToRivet, writeToRivetAckCommands, writeToRivetEvents, writeToRivetKvRequest, writeToRivetMetadata, writeToRivetPong, writeToRivetResponseChunk, writeToRivetResponseStart, writeToRivetSqliteCommitRequest, writeToRivetSqliteExecRequest, writeToRivetSqliteExecuteRequest, writeToRivetSqliteGetPagesRequest, writeToRivetTunnelMessage, writeToRivetTunnelMessageKind, writeToRivetWebSocketClose, writeToRivetWebSocketMessage, writeToRivetWebSocketMessageAck, writeToRivetWebSocketOpen };
|