@rivetkit/engine-envoy-protocol 2.3.0-rc.4 → 2.3.0-rc.5
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 +270 -10
- package/dist/index.js +835 -87
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -165,6 +165,197 @@ 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 SqlitePgno = u32;
|
|
169
|
+
declare function readSqlitePgno(bc: bare.ByteCursor): SqlitePgno;
|
|
170
|
+
declare function writeSqlitePgno(bc: bare.ByteCursor, x: SqlitePgno): void;
|
|
171
|
+
type SqliteGeneration = u64;
|
|
172
|
+
declare function readSqliteGeneration(bc: bare.ByteCursor): SqliteGeneration;
|
|
173
|
+
declare function writeSqliteGeneration(bc: bare.ByteCursor, x: SqliteGeneration): void;
|
|
174
|
+
type SqlitePageBytes = ArrayBuffer;
|
|
175
|
+
declare function readSqlitePageBytes(bc: bare.ByteCursor): SqlitePageBytes;
|
|
176
|
+
declare function writeSqlitePageBytes(bc: bare.ByteCursor, x: SqlitePageBytes): void;
|
|
177
|
+
type SqliteDirtyPage = {
|
|
178
|
+
readonly pgno: SqlitePgno;
|
|
179
|
+
readonly bytes: SqlitePageBytes;
|
|
180
|
+
};
|
|
181
|
+
declare function readSqliteDirtyPage(bc: bare.ByteCursor): SqliteDirtyPage;
|
|
182
|
+
declare function writeSqliteDirtyPage(bc: bare.ByteCursor, x: SqliteDirtyPage): void;
|
|
183
|
+
type SqliteFetchedPage = {
|
|
184
|
+
readonly pgno: SqlitePgno;
|
|
185
|
+
readonly bytes: SqlitePageBytes | null;
|
|
186
|
+
};
|
|
187
|
+
declare function readSqliteFetchedPage(bc: bare.ByteCursor): SqliteFetchedPage;
|
|
188
|
+
declare function writeSqliteFetchedPage(bc: bare.ByteCursor, x: SqliteFetchedPage): void;
|
|
189
|
+
type SqliteGetPagesRequest = {
|
|
190
|
+
readonly actorId: Id;
|
|
191
|
+
readonly pgnos: readonly SqlitePgno[];
|
|
192
|
+
readonly expectedGeneration: u64 | null;
|
|
193
|
+
readonly expectedHeadTxid: u64 | null;
|
|
194
|
+
};
|
|
195
|
+
declare function readSqliteGetPagesRequest(bc: bare.ByteCursor): SqliteGetPagesRequest;
|
|
196
|
+
declare function writeSqliteGetPagesRequest(bc: bare.ByteCursor, x: SqliteGetPagesRequest): void;
|
|
197
|
+
type SqliteGetPagesOk = {
|
|
198
|
+
readonly pages: readonly SqliteFetchedPage[];
|
|
199
|
+
readonly headTxid: u64 | null;
|
|
200
|
+
};
|
|
201
|
+
declare function readSqliteGetPagesOk(bc: bare.ByteCursor): SqliteGetPagesOk;
|
|
202
|
+
declare function writeSqliteGetPagesOk(bc: bare.ByteCursor, x: SqliteGetPagesOk): void;
|
|
203
|
+
type SqliteErrorResponse = {
|
|
204
|
+
readonly group: string;
|
|
205
|
+
readonly code: string;
|
|
206
|
+
readonly message: string;
|
|
207
|
+
};
|
|
208
|
+
declare function readSqliteErrorResponse(bc: bare.ByteCursor): SqliteErrorResponse;
|
|
209
|
+
declare function writeSqliteErrorResponse(bc: bare.ByteCursor, x: SqliteErrorResponse): void;
|
|
210
|
+
type SqliteGetPagesResponse = {
|
|
211
|
+
readonly tag: "SqliteGetPagesOk";
|
|
212
|
+
readonly val: SqliteGetPagesOk;
|
|
213
|
+
} | {
|
|
214
|
+
readonly tag: "SqliteErrorResponse";
|
|
215
|
+
readonly val: SqliteErrorResponse;
|
|
216
|
+
};
|
|
217
|
+
declare function readSqliteGetPagesResponse(bc: bare.ByteCursor): SqliteGetPagesResponse;
|
|
218
|
+
declare function writeSqliteGetPagesResponse(bc: bare.ByteCursor, x: SqliteGetPagesResponse): void;
|
|
219
|
+
type SqliteCommitRequest = {
|
|
220
|
+
readonly actorId: Id;
|
|
221
|
+
readonly dirtyPages: readonly SqliteDirtyPage[];
|
|
222
|
+
readonly dbSizePages: u32;
|
|
223
|
+
readonly nowMs: i64;
|
|
224
|
+
readonly expectedGeneration: u64 | null;
|
|
225
|
+
readonly expectedHeadTxid: u64 | null;
|
|
226
|
+
};
|
|
227
|
+
declare function readSqliteCommitRequest(bc: bare.ByteCursor): SqliteCommitRequest;
|
|
228
|
+
declare function writeSqliteCommitRequest(bc: bare.ByteCursor, x: SqliteCommitRequest): void;
|
|
229
|
+
type SqliteCommitOk = {
|
|
230
|
+
readonly headTxid: u64 | null;
|
|
231
|
+
};
|
|
232
|
+
declare function readSqliteCommitOk(bc: bare.ByteCursor): SqliteCommitOk;
|
|
233
|
+
declare function writeSqliteCommitOk(bc: bare.ByteCursor, x: SqliteCommitOk): void;
|
|
234
|
+
type SqliteCommitResponse = {
|
|
235
|
+
readonly tag: "SqliteCommitOk";
|
|
236
|
+
readonly val: SqliteCommitOk;
|
|
237
|
+
} | {
|
|
238
|
+
readonly tag: "SqliteErrorResponse";
|
|
239
|
+
readonly val: SqliteErrorResponse;
|
|
240
|
+
};
|
|
241
|
+
declare function readSqliteCommitResponse(bc: bare.ByteCursor): SqliteCommitResponse;
|
|
242
|
+
declare function writeSqliteCommitResponse(bc: bare.ByteCursor, x: SqliteCommitResponse): void;
|
|
243
|
+
type SqliteValueNull = null;
|
|
244
|
+
type SqliteValueInteger = {
|
|
245
|
+
readonly value: i64;
|
|
246
|
+
};
|
|
247
|
+
declare function readSqliteValueInteger(bc: bare.ByteCursor): SqliteValueInteger;
|
|
248
|
+
declare function writeSqliteValueInteger(bc: bare.ByteCursor, x: SqliteValueInteger): void;
|
|
249
|
+
type SqliteValueFloat = {
|
|
250
|
+
readonly value: ArrayBuffer;
|
|
251
|
+
};
|
|
252
|
+
declare function readSqliteValueFloat(bc: bare.ByteCursor): SqliteValueFloat;
|
|
253
|
+
declare function writeSqliteValueFloat(bc: bare.ByteCursor, x: SqliteValueFloat): void;
|
|
254
|
+
type SqliteValueText = {
|
|
255
|
+
readonly value: string;
|
|
256
|
+
};
|
|
257
|
+
declare function readSqliteValueText(bc: bare.ByteCursor): SqliteValueText;
|
|
258
|
+
declare function writeSqliteValueText(bc: bare.ByteCursor, x: SqliteValueText): void;
|
|
259
|
+
type SqliteValueBlob = {
|
|
260
|
+
readonly value: ArrayBuffer;
|
|
261
|
+
};
|
|
262
|
+
declare function readSqliteValueBlob(bc: bare.ByteCursor): SqliteValueBlob;
|
|
263
|
+
declare function writeSqliteValueBlob(bc: bare.ByteCursor, x: SqliteValueBlob): void;
|
|
264
|
+
type SqliteBindParam = {
|
|
265
|
+
readonly tag: "SqliteValueNull";
|
|
266
|
+
readonly val: SqliteValueNull;
|
|
267
|
+
} | {
|
|
268
|
+
readonly tag: "SqliteValueInteger";
|
|
269
|
+
readonly val: SqliteValueInteger;
|
|
270
|
+
} | {
|
|
271
|
+
readonly tag: "SqliteValueFloat";
|
|
272
|
+
readonly val: SqliteValueFloat;
|
|
273
|
+
} | {
|
|
274
|
+
readonly tag: "SqliteValueText";
|
|
275
|
+
readonly val: SqliteValueText;
|
|
276
|
+
} | {
|
|
277
|
+
readonly tag: "SqliteValueBlob";
|
|
278
|
+
readonly val: SqliteValueBlob;
|
|
279
|
+
};
|
|
280
|
+
declare function readSqliteBindParam(bc: bare.ByteCursor): SqliteBindParam;
|
|
281
|
+
declare function writeSqliteBindParam(bc: bare.ByteCursor, x: SqliteBindParam): void;
|
|
282
|
+
type SqliteColumnValue = {
|
|
283
|
+
readonly tag: "SqliteValueNull";
|
|
284
|
+
readonly val: SqliteValueNull;
|
|
285
|
+
} | {
|
|
286
|
+
readonly tag: "SqliteValueInteger";
|
|
287
|
+
readonly val: SqliteValueInteger;
|
|
288
|
+
} | {
|
|
289
|
+
readonly tag: "SqliteValueFloat";
|
|
290
|
+
readonly val: SqliteValueFloat;
|
|
291
|
+
} | {
|
|
292
|
+
readonly tag: "SqliteValueText";
|
|
293
|
+
readonly val: SqliteValueText;
|
|
294
|
+
} | {
|
|
295
|
+
readonly tag: "SqliteValueBlob";
|
|
296
|
+
readonly val: SqliteValueBlob;
|
|
297
|
+
};
|
|
298
|
+
declare function readSqliteColumnValue(bc: bare.ByteCursor): SqliteColumnValue;
|
|
299
|
+
declare function writeSqliteColumnValue(bc: bare.ByteCursor, x: SqliteColumnValue): void;
|
|
300
|
+
type SqliteQueryResult = {
|
|
301
|
+
readonly columns: readonly string[];
|
|
302
|
+
readonly rows: readonly (readonly SqliteColumnValue[])[];
|
|
303
|
+
};
|
|
304
|
+
declare function readSqliteQueryResult(bc: bare.ByteCursor): SqliteQueryResult;
|
|
305
|
+
declare function writeSqliteQueryResult(bc: bare.ByteCursor, x: SqliteQueryResult): void;
|
|
306
|
+
type SqliteExecuteResult = {
|
|
307
|
+
readonly columns: readonly string[];
|
|
308
|
+
readonly rows: readonly (readonly SqliteColumnValue[])[];
|
|
309
|
+
readonly changes: i64;
|
|
310
|
+
readonly lastInsertRowId: i64 | null;
|
|
311
|
+
};
|
|
312
|
+
declare function readSqliteExecuteResult(bc: bare.ByteCursor): SqliteExecuteResult;
|
|
313
|
+
declare function writeSqliteExecuteResult(bc: bare.ByteCursor, x: SqliteExecuteResult): void;
|
|
314
|
+
type SqliteExecRequest = {
|
|
315
|
+
readonly namespaceId: Id;
|
|
316
|
+
readonly actorId: Id;
|
|
317
|
+
readonly generation: SqliteGeneration;
|
|
318
|
+
readonly sql: string;
|
|
319
|
+
};
|
|
320
|
+
declare function readSqliteExecRequest(bc: bare.ByteCursor): SqliteExecRequest;
|
|
321
|
+
declare function writeSqliteExecRequest(bc: bare.ByteCursor, x: SqliteExecRequest): void;
|
|
322
|
+
type SqliteExecuteRequest = {
|
|
323
|
+
readonly namespaceId: Id;
|
|
324
|
+
readonly actorId: Id;
|
|
325
|
+
readonly generation: SqliteGeneration;
|
|
326
|
+
readonly sql: string;
|
|
327
|
+
readonly params: readonly SqliteBindParam[] | null;
|
|
328
|
+
};
|
|
329
|
+
declare function readSqliteExecuteRequest(bc: bare.ByteCursor): SqliteExecuteRequest;
|
|
330
|
+
declare function writeSqliteExecuteRequest(bc: bare.ByteCursor, x: SqliteExecuteRequest): void;
|
|
331
|
+
type SqliteExecOk = {
|
|
332
|
+
readonly result: SqliteQueryResult;
|
|
333
|
+
};
|
|
334
|
+
declare function readSqliteExecOk(bc: bare.ByteCursor): SqliteExecOk;
|
|
335
|
+
declare function writeSqliteExecOk(bc: bare.ByteCursor, x: SqliteExecOk): void;
|
|
336
|
+
type SqliteExecuteOk = {
|
|
337
|
+
readonly result: SqliteExecuteResult;
|
|
338
|
+
};
|
|
339
|
+
declare function readSqliteExecuteOk(bc: bare.ByteCursor): SqliteExecuteOk;
|
|
340
|
+
declare function writeSqliteExecuteOk(bc: bare.ByteCursor, x: SqliteExecuteOk): void;
|
|
341
|
+
type SqliteExecResponse = {
|
|
342
|
+
readonly tag: "SqliteExecOk";
|
|
343
|
+
readonly val: SqliteExecOk;
|
|
344
|
+
} | {
|
|
345
|
+
readonly tag: "SqliteErrorResponse";
|
|
346
|
+
readonly val: SqliteErrorResponse;
|
|
347
|
+
};
|
|
348
|
+
declare function readSqliteExecResponse(bc: bare.ByteCursor): SqliteExecResponse;
|
|
349
|
+
declare function writeSqliteExecResponse(bc: bare.ByteCursor, x: SqliteExecResponse): void;
|
|
350
|
+
type SqliteExecuteResponse = {
|
|
351
|
+
readonly tag: "SqliteExecuteOk";
|
|
352
|
+
readonly val: SqliteExecuteOk;
|
|
353
|
+
} | {
|
|
354
|
+
readonly tag: "SqliteErrorResponse";
|
|
355
|
+
readonly val: SqliteErrorResponse;
|
|
356
|
+
};
|
|
357
|
+
declare function readSqliteExecuteResponse(bc: bare.ByteCursor): SqliteExecuteResponse;
|
|
358
|
+
declare function writeSqliteExecuteResponse(bc: bare.ByteCursor, x: SqliteExecuteResponse): void;
|
|
168
359
|
/**
|
|
169
360
|
* Core
|
|
170
361
|
*/
|
|
@@ -516,14 +707,12 @@ declare function writeToEnvoyPing(bc: bare.ByteCursor, x: ToEnvoyPing): void;
|
|
|
516
707
|
/**
|
|
517
708
|
* MARK: To Rivet
|
|
518
709
|
*/
|
|
519
|
-
type
|
|
520
|
-
readonly envoyKey: string;
|
|
521
|
-
readonly version: u32;
|
|
710
|
+
type ToRivetMetadata = {
|
|
522
711
|
readonly prepopulateActorNames: ReadonlyMap<string, ActorName> | null;
|
|
523
712
|
readonly metadata: Json | null;
|
|
524
713
|
};
|
|
525
|
-
declare function
|
|
526
|
-
declare function
|
|
714
|
+
declare function readToRivetMetadata(bc: bare.ByteCursor): ToRivetMetadata;
|
|
715
|
+
declare function writeToRivetMetadata(bc: bare.ByteCursor, x: ToRivetMetadata): void;
|
|
527
716
|
type ToRivetEvents = readonly EventWrapper[];
|
|
528
717
|
declare function readToRivetEvents(bc: bare.ByteCursor): ToRivetEvents;
|
|
529
718
|
declare function writeToRivetEvents(bc: bare.ByteCursor, x: ToRivetEvents): void;
|
|
@@ -545,9 +734,33 @@ type ToRivetKvRequest = {
|
|
|
545
734
|
};
|
|
546
735
|
declare function readToRivetKvRequest(bc: bare.ByteCursor): ToRivetKvRequest;
|
|
547
736
|
declare function writeToRivetKvRequest(bc: bare.ByteCursor, x: ToRivetKvRequest): void;
|
|
737
|
+
type ToRivetSqliteGetPagesRequest = {
|
|
738
|
+
readonly requestId: u32;
|
|
739
|
+
readonly data: SqliteGetPagesRequest;
|
|
740
|
+
};
|
|
741
|
+
declare function readToRivetSqliteGetPagesRequest(bc: bare.ByteCursor): ToRivetSqliteGetPagesRequest;
|
|
742
|
+
declare function writeToRivetSqliteGetPagesRequest(bc: bare.ByteCursor, x: ToRivetSqliteGetPagesRequest): void;
|
|
743
|
+
type ToRivetSqliteCommitRequest = {
|
|
744
|
+
readonly requestId: u32;
|
|
745
|
+
readonly data: SqliteCommitRequest;
|
|
746
|
+
};
|
|
747
|
+
declare function readToRivetSqliteCommitRequest(bc: bare.ByteCursor): ToRivetSqliteCommitRequest;
|
|
748
|
+
declare function writeToRivetSqliteCommitRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitRequest): void;
|
|
749
|
+
type ToRivetSqliteExecRequest = {
|
|
750
|
+
readonly requestId: u32;
|
|
751
|
+
readonly data: SqliteExecRequest;
|
|
752
|
+
};
|
|
753
|
+
declare function readToRivetSqliteExecRequest(bc: bare.ByteCursor): ToRivetSqliteExecRequest;
|
|
754
|
+
declare function writeToRivetSqliteExecRequest(bc: bare.ByteCursor, x: ToRivetSqliteExecRequest): void;
|
|
755
|
+
type ToRivetSqliteExecuteRequest = {
|
|
756
|
+
readonly requestId: u32;
|
|
757
|
+
readonly data: SqliteExecuteRequest;
|
|
758
|
+
};
|
|
759
|
+
declare function readToRivetSqliteExecuteRequest(bc: bare.ByteCursor): ToRivetSqliteExecuteRequest;
|
|
760
|
+
declare function writeToRivetSqliteExecuteRequest(bc: bare.ByteCursor, x: ToRivetSqliteExecuteRequest): void;
|
|
548
761
|
type ToRivet = {
|
|
549
|
-
readonly tag: "
|
|
550
|
-
readonly val:
|
|
762
|
+
readonly tag: "ToRivetMetadata";
|
|
763
|
+
readonly val: ToRivetMetadata;
|
|
551
764
|
} | {
|
|
552
765
|
readonly tag: "ToRivetEvents";
|
|
553
766
|
readonly val: ToRivetEvents;
|
|
@@ -566,6 +779,18 @@ type ToRivet = {
|
|
|
566
779
|
} | {
|
|
567
780
|
readonly tag: "ToRivetTunnelMessage";
|
|
568
781
|
readonly val: ToRivetTunnelMessage;
|
|
782
|
+
} | {
|
|
783
|
+
readonly tag: "ToRivetSqliteGetPagesRequest";
|
|
784
|
+
readonly val: ToRivetSqliteGetPagesRequest;
|
|
785
|
+
} | {
|
|
786
|
+
readonly tag: "ToRivetSqliteCommitRequest";
|
|
787
|
+
readonly val: ToRivetSqliteCommitRequest;
|
|
788
|
+
} | {
|
|
789
|
+
readonly tag: "ToRivetSqliteExecRequest";
|
|
790
|
+
readonly val: ToRivetSqliteExecRequest;
|
|
791
|
+
} | {
|
|
792
|
+
readonly tag: "ToRivetSqliteExecuteRequest";
|
|
793
|
+
readonly val: ToRivetSqliteExecuteRequest;
|
|
569
794
|
};
|
|
570
795
|
declare function readToRivet(bc: bare.ByteCursor): ToRivet;
|
|
571
796
|
declare function writeToRivet(bc: bare.ByteCursor, x: ToRivet): void;
|
|
@@ -577,7 +802,6 @@ declare function decodeToRivet(bytes: Uint8Array): ToRivet;
|
|
|
577
802
|
type ProtocolMetadata = {
|
|
578
803
|
readonly envoyLostThreshold: i64;
|
|
579
804
|
readonly actorStopThreshold: i64;
|
|
580
|
-
readonly serverlessDrainGracePeriod: i64 | null;
|
|
581
805
|
readonly maxResponsePayloadSize: u64;
|
|
582
806
|
};
|
|
583
807
|
declare function readProtocolMetadata(bc: bare.ByteCursor): ProtocolMetadata;
|
|
@@ -601,6 +825,30 @@ type ToEnvoyKvResponse = {
|
|
|
601
825
|
};
|
|
602
826
|
declare function readToEnvoyKvResponse(bc: bare.ByteCursor): ToEnvoyKvResponse;
|
|
603
827
|
declare function writeToEnvoyKvResponse(bc: bare.ByteCursor, x: ToEnvoyKvResponse): void;
|
|
828
|
+
type ToEnvoySqliteGetPagesResponse = {
|
|
829
|
+
readonly requestId: u32;
|
|
830
|
+
readonly data: SqliteGetPagesResponse;
|
|
831
|
+
};
|
|
832
|
+
declare function readToEnvoySqliteGetPagesResponse(bc: bare.ByteCursor): ToEnvoySqliteGetPagesResponse;
|
|
833
|
+
declare function writeToEnvoySqliteGetPagesResponse(bc: bare.ByteCursor, x: ToEnvoySqliteGetPagesResponse): void;
|
|
834
|
+
type ToEnvoySqliteCommitResponse = {
|
|
835
|
+
readonly requestId: u32;
|
|
836
|
+
readonly data: SqliteCommitResponse;
|
|
837
|
+
};
|
|
838
|
+
declare function readToEnvoySqliteCommitResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitResponse;
|
|
839
|
+
declare function writeToEnvoySqliteCommitResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitResponse): void;
|
|
840
|
+
type ToEnvoySqliteExecResponse = {
|
|
841
|
+
readonly requestId: u32;
|
|
842
|
+
readonly data: SqliteExecResponse;
|
|
843
|
+
};
|
|
844
|
+
declare function readToEnvoySqliteExecResponse(bc: bare.ByteCursor): ToEnvoySqliteExecResponse;
|
|
845
|
+
declare function writeToEnvoySqliteExecResponse(bc: bare.ByteCursor, x: ToEnvoySqliteExecResponse): void;
|
|
846
|
+
type ToEnvoySqliteExecuteResponse = {
|
|
847
|
+
readonly requestId: u32;
|
|
848
|
+
readonly data: SqliteExecuteResponse;
|
|
849
|
+
};
|
|
850
|
+
declare function readToEnvoySqliteExecuteResponse(bc: bare.ByteCursor): ToEnvoySqliteExecuteResponse;
|
|
851
|
+
declare function writeToEnvoySqliteExecuteResponse(bc: bare.ByteCursor, x: ToEnvoySqliteExecuteResponse): void;
|
|
604
852
|
type ToEnvoy = {
|
|
605
853
|
readonly tag: "ToEnvoyInit";
|
|
606
854
|
readonly val: ToEnvoyInit;
|
|
@@ -619,6 +867,18 @@ type ToEnvoy = {
|
|
|
619
867
|
} | {
|
|
620
868
|
readonly tag: "ToEnvoyPing";
|
|
621
869
|
readonly val: ToEnvoyPing;
|
|
870
|
+
} | {
|
|
871
|
+
readonly tag: "ToEnvoySqliteGetPagesResponse";
|
|
872
|
+
readonly val: ToEnvoySqliteGetPagesResponse;
|
|
873
|
+
} | {
|
|
874
|
+
readonly tag: "ToEnvoySqliteCommitResponse";
|
|
875
|
+
readonly val: ToEnvoySqliteCommitResponse;
|
|
876
|
+
} | {
|
|
877
|
+
readonly tag: "ToEnvoySqliteExecResponse";
|
|
878
|
+
readonly val: ToEnvoySqliteExecResponse;
|
|
879
|
+
} | {
|
|
880
|
+
readonly tag: "ToEnvoySqliteExecuteResponse";
|
|
881
|
+
readonly val: ToEnvoySqliteExecuteResponse;
|
|
622
882
|
};
|
|
623
883
|
declare function readToEnvoy(bc: bare.ByteCursor): ToEnvoy;
|
|
624
884
|
declare function writeToEnvoy(bc: bare.ByteCursor, x: ToEnvoy): void;
|
|
@@ -694,6 +954,6 @@ declare function readToOutbound(bc: bare.ByteCursor): ToOutbound;
|
|
|
694
954
|
declare function writeToOutbound(bc: bare.ByteCursor, x: ToOutbound): void;
|
|
695
955
|
declare function encodeToOutbound(x: ToOutbound, config?: Partial<bare.Config>): Uint8Array;
|
|
696
956
|
declare function decodeToOutbound(bytes: Uint8Array): ToOutbound;
|
|
697
|
-
declare const VERSION =
|
|
957
|
+
declare const VERSION = 5;
|
|
698
958
|
|
|
699
|
-
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
|
|
959
|
+
export { type ActorCheckpoint, type ActorCommandKeyData, type ActorConfig, type ActorIntent, type ActorIntentSleep, type ActorIntentStop, type ActorName, type ActorState, type ActorStateRunning, type ActorStateStopped, type Command, type CommandStartActor, type CommandStopActor, type CommandWrapper, type Event, type EventActorIntent, type EventActorSetAlarm, type EventActorStateUpdate, type EventWrapper, type GatewayId, type HibernatingRequest, type Id, type Json, type KvDeleteRangeRequest, type KvDeleteRequest, type KvDeleteResponse, type KvDropRequest, type KvDropResponse, type KvErrorResponse, type KvGetRequest, type KvGetResponse, type KvKey, type KvListAllQuery, type KvListPrefixQuery, type KvListQuery, type KvListRangeQuery, type KvListRequest, type KvListResponse, type KvMetadata, type KvPutRequest, type KvPutResponse, type KvRequestData, type KvResponseData, type KvValue, type MessageId, type MessageIndex, type PreloadedKv, type PreloadedKvEntry, type ProtocolMetadata, type RequestId, type SqliteBindParam, type SqliteColumnValue, type SqliteCommitOk, type SqliteCommitRequest, type SqliteCommitResponse, type SqliteDirtyPage, type SqliteErrorResponse, type SqliteExecOk, type SqliteExecRequest, type SqliteExecResponse, type SqliteExecuteOk, type SqliteExecuteRequest, type SqliteExecuteResponse, type SqliteExecuteResult, type SqliteFetchedPage, type SqliteGeneration, type SqliteGetPagesOk, type SqliteGetPagesRequest, type SqliteGetPagesResponse, type SqlitePageBytes, type SqlitePgno, type SqliteQueryResult, type SqliteValueBlob, type SqliteValueFloat, type SqliteValueInteger, type SqliteValueNull, type SqliteValueText, StopActorReason, StopCode, type ToEnvoy, type ToEnvoyAckEvents, type ToEnvoyCommands, type ToEnvoyConn, type ToEnvoyConnClose, type ToEnvoyConnPing, type ToEnvoyInit, type ToEnvoyKvResponse, type ToEnvoyPing, type ToEnvoyRequestAbort, type ToEnvoyRequestChunk, type ToEnvoyRequestStart, type ToEnvoySqliteCommitResponse, type ToEnvoySqliteExecResponse, type ToEnvoySqliteExecuteResponse, type ToEnvoySqliteGetPagesResponse, type ToEnvoyTunnelMessage, type ToEnvoyTunnelMessageKind, type ToEnvoyWebSocketClose, type ToEnvoyWebSocketMessage, type ToEnvoyWebSocketOpen, type ToGateway, type ToGatewayPong, type ToOutbound, type ToOutboundActorStart, type ToRivet, type ToRivetAckCommands, type ToRivetEvents, type ToRivetKvRequest, type ToRivetMetadata, type ToRivetPong, type ToRivetResponseAbort, type ToRivetResponseChunk, type ToRivetResponseStart, type ToRivetSqliteCommitRequest, type ToRivetSqliteExecRequest, type ToRivetSqliteExecuteRequest, type ToRivetSqliteGetPagesRequest, type ToRivetStopping, type ToRivetTunnelMessage, type ToRivetTunnelMessageKind, type ToRivetWebSocketClose, type ToRivetWebSocketMessage, type ToRivetWebSocketMessageAck, type ToRivetWebSocketOpen, VERSION, decodeActorCommandKeyData, decodeToEnvoy, decodeToEnvoyConn, decodeToGateway, decodeToOutbound, decodeToRivet, encodeActorCommandKeyData, encodeToEnvoy, encodeToEnvoyConn, encodeToGateway, encodeToOutbound, encodeToRivet, type i64, readActorCheckpoint, readActorCommandKeyData, readActorConfig, readActorIntent, readActorName, readActorState, readActorStateStopped, readCommand, readCommandStartActor, readCommandStopActor, readCommandWrapper, readEvent, readEventActorIntent, readEventActorSetAlarm, readEventActorStateUpdate, readEventWrapper, readGatewayId, readHibernatingRequest, readId, readJson, readKvDeleteRangeRequest, readKvDeleteRequest, readKvErrorResponse, readKvGetRequest, readKvGetResponse, readKvKey, readKvListPrefixQuery, readKvListQuery, readKvListRangeQuery, readKvListRequest, readKvListResponse, readKvMetadata, readKvPutRequest, readKvRequestData, readKvResponseData, readKvValue, readMessageId, readMessageIndex, readPreloadedKv, readPreloadedKvEntry, readProtocolMetadata, readRequestId, readSqliteBindParam, readSqliteColumnValue, readSqliteCommitOk, readSqliteCommitRequest, readSqliteCommitResponse, readSqliteDirtyPage, readSqliteErrorResponse, readSqliteExecOk, readSqliteExecRequest, readSqliteExecResponse, readSqliteExecuteOk, readSqliteExecuteRequest, readSqliteExecuteResponse, readSqliteExecuteResult, readSqliteFetchedPage, readSqliteGeneration, readSqliteGetPagesOk, readSqliteGetPagesRequest, readSqliteGetPagesResponse, readSqlitePageBytes, readSqlitePgno, readSqliteQueryResult, readSqliteValueBlob, readSqliteValueFloat, readSqliteValueInteger, readSqliteValueText, readStopActorReason, readStopCode, readToEnvoy, readToEnvoyAckEvents, readToEnvoyCommands, readToEnvoyConn, readToEnvoyConnPing, readToEnvoyInit, readToEnvoyKvResponse, readToEnvoyPing, readToEnvoyRequestChunk, readToEnvoyRequestStart, readToEnvoySqliteCommitResponse, readToEnvoySqliteExecResponse, readToEnvoySqliteExecuteResponse, readToEnvoySqliteGetPagesResponse, readToEnvoyTunnelMessage, readToEnvoyTunnelMessageKind, readToEnvoyWebSocketClose, readToEnvoyWebSocketMessage, readToEnvoyWebSocketOpen, readToGateway, readToGatewayPong, readToOutbound, readToOutboundActorStart, readToRivet, readToRivetAckCommands, readToRivetEvents, readToRivetKvRequest, readToRivetMetadata, readToRivetPong, readToRivetResponseChunk, readToRivetResponseStart, readToRivetSqliteCommitRequest, readToRivetSqliteExecRequest, readToRivetSqliteExecuteRequest, readToRivetSqliteGetPagesRequest, readToRivetTunnelMessage, readToRivetTunnelMessageKind, readToRivetWebSocketClose, readToRivetWebSocketMessage, readToRivetWebSocketMessageAck, readToRivetWebSocketOpen, type u16, type u32, type u64, writeActorCheckpoint, writeActorCommandKeyData, writeActorConfig, writeActorIntent, writeActorName, writeActorState, writeActorStateStopped, writeCommand, writeCommandStartActor, writeCommandStopActor, writeCommandWrapper, writeEvent, writeEventActorIntent, writeEventActorSetAlarm, writeEventActorStateUpdate, writeEventWrapper, writeGatewayId, writeHibernatingRequest, writeId, writeJson, writeKvDeleteRangeRequest, writeKvDeleteRequest, writeKvErrorResponse, writeKvGetRequest, writeKvGetResponse, writeKvKey, writeKvListPrefixQuery, writeKvListQuery, writeKvListRangeQuery, writeKvListRequest, writeKvListResponse, writeKvMetadata, writeKvPutRequest, writeKvRequestData, writeKvResponseData, writeKvValue, writeMessageId, writeMessageIndex, writePreloadedKv, writePreloadedKvEntry, writeProtocolMetadata, writeRequestId, writeSqliteBindParam, writeSqliteColumnValue, writeSqliteCommitOk, writeSqliteCommitRequest, writeSqliteCommitResponse, writeSqliteDirtyPage, writeSqliteErrorResponse, writeSqliteExecOk, writeSqliteExecRequest, writeSqliteExecResponse, writeSqliteExecuteOk, writeSqliteExecuteRequest, writeSqliteExecuteResponse, writeSqliteExecuteResult, writeSqliteFetchedPage, writeSqliteGeneration, writeSqliteGetPagesOk, writeSqliteGetPagesRequest, writeSqliteGetPagesResponse, writeSqlitePageBytes, writeSqlitePgno, writeSqliteQueryResult, writeSqliteValueBlob, writeSqliteValueFloat, writeSqliteValueInteger, writeSqliteValueText, writeStopActorReason, writeStopCode, writeToEnvoy, writeToEnvoyAckEvents, writeToEnvoyCommands, writeToEnvoyConn, writeToEnvoyConnPing, writeToEnvoyInit, writeToEnvoyKvResponse, writeToEnvoyPing, writeToEnvoyRequestChunk, writeToEnvoyRequestStart, writeToEnvoySqliteCommitResponse, writeToEnvoySqliteExecResponse, writeToEnvoySqliteExecuteResponse, writeToEnvoySqliteGetPagesResponse, writeToEnvoyTunnelMessage, writeToEnvoyTunnelMessageKind, writeToEnvoyWebSocketClose, writeToEnvoyWebSocketMessage, writeToEnvoyWebSocketOpen, writeToGateway, writeToGatewayPong, writeToOutbound, writeToOutboundActorStart, writeToRivet, writeToRivetAckCommands, writeToRivetEvents, writeToRivetKvRequest, writeToRivetMetadata, writeToRivetPong, writeToRivetResponseChunk, writeToRivetResponseStart, writeToRivetSqliteCommitRequest, writeToRivetSqliteExecRequest, writeToRivetSqliteExecuteRequest, writeToRivetSqliteGetPagesRequest, writeToRivetTunnelMessage, writeToRivetTunnelMessageKind, writeToRivetWebSocketClose, writeToRivetWebSocketMessage, writeToRivetWebSocketMessageAck, writeToRivetWebSocketOpen };
|