@rivetkit/engine-envoy-protocol 0.0.0-0-0-0-preview-guard-stops.9d82529
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 +1238 -0
- package/dist/index.js +3147 -0
- package/package.json +43 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,1238 @@
|
|
|
1
|
+
import * as bare from '@rivetkit/bare-ts';
|
|
2
|
+
|
|
3
|
+
type i64 = bigint;
|
|
4
|
+
type u16 = number;
|
|
5
|
+
type u32 = number;
|
|
6
|
+
type u64 = bigint;
|
|
7
|
+
type Id = string;
|
|
8
|
+
declare function readId(bc: bare.ByteCursor): Id;
|
|
9
|
+
declare function writeId(bc: bare.ByteCursor, x: Id): void;
|
|
10
|
+
type Json = string;
|
|
11
|
+
declare function readJson(bc: bare.ByteCursor): Json;
|
|
12
|
+
declare function writeJson(bc: bare.ByteCursor, x: Json): void;
|
|
13
|
+
type GatewayId = ArrayBuffer;
|
|
14
|
+
declare function readGatewayId(bc: bare.ByteCursor): GatewayId;
|
|
15
|
+
declare function writeGatewayId(bc: bare.ByteCursor, x: GatewayId): void;
|
|
16
|
+
type RequestId = ArrayBuffer;
|
|
17
|
+
declare function readRequestId(bc: bare.ByteCursor): RequestId;
|
|
18
|
+
declare function writeRequestId(bc: bare.ByteCursor, x: RequestId): void;
|
|
19
|
+
type MessageIndex = u16;
|
|
20
|
+
declare function readMessageIndex(bc: bare.ByteCursor): MessageIndex;
|
|
21
|
+
declare function writeMessageIndex(bc: bare.ByteCursor, x: MessageIndex): void;
|
|
22
|
+
/**
|
|
23
|
+
* Basic types
|
|
24
|
+
*/
|
|
25
|
+
type KvKey = ArrayBuffer;
|
|
26
|
+
declare function readKvKey(bc: bare.ByteCursor): KvKey;
|
|
27
|
+
declare function writeKvKey(bc: bare.ByteCursor, x: KvKey): void;
|
|
28
|
+
type KvValue = ArrayBuffer;
|
|
29
|
+
declare function readKvValue(bc: bare.ByteCursor): KvValue;
|
|
30
|
+
declare function writeKvValue(bc: bare.ByteCursor, x: KvValue): void;
|
|
31
|
+
type KvMetadata = {
|
|
32
|
+
readonly version: ArrayBuffer;
|
|
33
|
+
readonly updateTs: i64;
|
|
34
|
+
};
|
|
35
|
+
declare function readKvMetadata(bc: bare.ByteCursor): KvMetadata;
|
|
36
|
+
declare function writeKvMetadata(bc: bare.ByteCursor, x: KvMetadata): void;
|
|
37
|
+
/**
|
|
38
|
+
* Query types
|
|
39
|
+
*/
|
|
40
|
+
type KvListAllQuery = null;
|
|
41
|
+
type KvListRangeQuery = {
|
|
42
|
+
readonly start: KvKey;
|
|
43
|
+
readonly end: KvKey;
|
|
44
|
+
readonly exclusive: boolean;
|
|
45
|
+
};
|
|
46
|
+
declare function readKvListRangeQuery(bc: bare.ByteCursor): KvListRangeQuery;
|
|
47
|
+
declare function writeKvListRangeQuery(bc: bare.ByteCursor, x: KvListRangeQuery): void;
|
|
48
|
+
type KvListPrefixQuery = {
|
|
49
|
+
readonly key: KvKey;
|
|
50
|
+
};
|
|
51
|
+
declare function readKvListPrefixQuery(bc: bare.ByteCursor): KvListPrefixQuery;
|
|
52
|
+
declare function writeKvListPrefixQuery(bc: bare.ByteCursor, x: KvListPrefixQuery): void;
|
|
53
|
+
type KvListQuery = {
|
|
54
|
+
readonly tag: "KvListAllQuery";
|
|
55
|
+
readonly val: KvListAllQuery;
|
|
56
|
+
} | {
|
|
57
|
+
readonly tag: "KvListRangeQuery";
|
|
58
|
+
readonly val: KvListRangeQuery;
|
|
59
|
+
} | {
|
|
60
|
+
readonly tag: "KvListPrefixQuery";
|
|
61
|
+
readonly val: KvListPrefixQuery;
|
|
62
|
+
};
|
|
63
|
+
declare function readKvListQuery(bc: bare.ByteCursor): KvListQuery;
|
|
64
|
+
declare function writeKvListQuery(bc: bare.ByteCursor, x: KvListQuery): void;
|
|
65
|
+
/**
|
|
66
|
+
* Request types
|
|
67
|
+
*/
|
|
68
|
+
type KvGetRequest = {
|
|
69
|
+
readonly keys: readonly KvKey[];
|
|
70
|
+
};
|
|
71
|
+
declare function readKvGetRequest(bc: bare.ByteCursor): KvGetRequest;
|
|
72
|
+
declare function writeKvGetRequest(bc: bare.ByteCursor, x: KvGetRequest): void;
|
|
73
|
+
type KvListRequest = {
|
|
74
|
+
readonly query: KvListQuery;
|
|
75
|
+
readonly reverse: boolean | null;
|
|
76
|
+
readonly limit: u64 | null;
|
|
77
|
+
};
|
|
78
|
+
declare function readKvListRequest(bc: bare.ByteCursor): KvListRequest;
|
|
79
|
+
declare function writeKvListRequest(bc: bare.ByteCursor, x: KvListRequest): void;
|
|
80
|
+
type KvPutRequest = {
|
|
81
|
+
readonly keys: readonly KvKey[];
|
|
82
|
+
readonly values: readonly KvValue[];
|
|
83
|
+
};
|
|
84
|
+
declare function readKvPutRequest(bc: bare.ByteCursor): KvPutRequest;
|
|
85
|
+
declare function writeKvPutRequest(bc: bare.ByteCursor, x: KvPutRequest): void;
|
|
86
|
+
type KvDeleteRequest = {
|
|
87
|
+
readonly keys: readonly KvKey[];
|
|
88
|
+
};
|
|
89
|
+
declare function readKvDeleteRequest(bc: bare.ByteCursor): KvDeleteRequest;
|
|
90
|
+
declare function writeKvDeleteRequest(bc: bare.ByteCursor, x: KvDeleteRequest): void;
|
|
91
|
+
type KvDeleteRangeRequest = {
|
|
92
|
+
readonly start: KvKey;
|
|
93
|
+
readonly end: KvKey;
|
|
94
|
+
};
|
|
95
|
+
declare function readKvDeleteRangeRequest(bc: bare.ByteCursor): KvDeleteRangeRequest;
|
|
96
|
+
declare function writeKvDeleteRangeRequest(bc: bare.ByteCursor, x: KvDeleteRangeRequest): void;
|
|
97
|
+
type KvDropRequest = null;
|
|
98
|
+
/**
|
|
99
|
+
* Response types
|
|
100
|
+
*/
|
|
101
|
+
type KvErrorResponse = {
|
|
102
|
+
readonly message: string;
|
|
103
|
+
};
|
|
104
|
+
declare function readKvErrorResponse(bc: bare.ByteCursor): KvErrorResponse;
|
|
105
|
+
declare function writeKvErrorResponse(bc: bare.ByteCursor, x: KvErrorResponse): void;
|
|
106
|
+
type KvGetResponse = {
|
|
107
|
+
readonly keys: readonly KvKey[];
|
|
108
|
+
readonly values: readonly KvValue[];
|
|
109
|
+
readonly metadata: readonly KvMetadata[];
|
|
110
|
+
};
|
|
111
|
+
declare function readKvGetResponse(bc: bare.ByteCursor): KvGetResponse;
|
|
112
|
+
declare function writeKvGetResponse(bc: bare.ByteCursor, x: KvGetResponse): void;
|
|
113
|
+
type KvListResponse = {
|
|
114
|
+
readonly keys: readonly KvKey[];
|
|
115
|
+
readonly values: readonly KvValue[];
|
|
116
|
+
readonly metadata: readonly KvMetadata[];
|
|
117
|
+
};
|
|
118
|
+
declare function readKvListResponse(bc: bare.ByteCursor): KvListResponse;
|
|
119
|
+
declare function writeKvListResponse(bc: bare.ByteCursor, x: KvListResponse): void;
|
|
120
|
+
type KvPutResponse = null;
|
|
121
|
+
type KvDeleteResponse = null;
|
|
122
|
+
type KvDropResponse = null;
|
|
123
|
+
/**
|
|
124
|
+
* Request/Response unions
|
|
125
|
+
*/
|
|
126
|
+
type KvRequestData = {
|
|
127
|
+
readonly tag: "KvGetRequest";
|
|
128
|
+
readonly val: KvGetRequest;
|
|
129
|
+
} | {
|
|
130
|
+
readonly tag: "KvListRequest";
|
|
131
|
+
readonly val: KvListRequest;
|
|
132
|
+
} | {
|
|
133
|
+
readonly tag: "KvPutRequest";
|
|
134
|
+
readonly val: KvPutRequest;
|
|
135
|
+
} | {
|
|
136
|
+
readonly tag: "KvDeleteRequest";
|
|
137
|
+
readonly val: KvDeleteRequest;
|
|
138
|
+
} | {
|
|
139
|
+
readonly tag: "KvDeleteRangeRequest";
|
|
140
|
+
readonly val: KvDeleteRangeRequest;
|
|
141
|
+
} | {
|
|
142
|
+
readonly tag: "KvDropRequest";
|
|
143
|
+
readonly val: KvDropRequest;
|
|
144
|
+
};
|
|
145
|
+
declare function readKvRequestData(bc: bare.ByteCursor): KvRequestData;
|
|
146
|
+
declare function writeKvRequestData(bc: bare.ByteCursor, x: KvRequestData): void;
|
|
147
|
+
type KvResponseData = {
|
|
148
|
+
readonly tag: "KvErrorResponse";
|
|
149
|
+
readonly val: KvErrorResponse;
|
|
150
|
+
} | {
|
|
151
|
+
readonly tag: "KvGetResponse";
|
|
152
|
+
readonly val: KvGetResponse;
|
|
153
|
+
} | {
|
|
154
|
+
readonly tag: "KvListResponse";
|
|
155
|
+
readonly val: KvListResponse;
|
|
156
|
+
} | {
|
|
157
|
+
readonly tag: "KvPutResponse";
|
|
158
|
+
readonly val: KvPutResponse;
|
|
159
|
+
} | {
|
|
160
|
+
readonly tag: "KvDeleteResponse";
|
|
161
|
+
readonly val: KvDeleteResponse;
|
|
162
|
+
} | {
|
|
163
|
+
readonly tag: "KvDropResponse";
|
|
164
|
+
readonly val: KvDropResponse;
|
|
165
|
+
};
|
|
166
|
+
declare function readKvResponseData(bc: bare.ByteCursor): KvResponseData;
|
|
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
|
+
/**
|
|
244
|
+
* Staged commit. A commit too large for one transaction is written as a sequence of shard-aligned
|
|
245
|
+
* segments and then made visible by a single finalize. Nothing staged is readable until finalize:
|
|
246
|
+
* no PIDX row, no COMMIT row, no head advance, so an abandoned stage is indistinguishable from no
|
|
247
|
+
* commit at all. The single-shot SqliteCommitRequest above stays the path for small commits.
|
|
248
|
+
*/
|
|
249
|
+
type SqliteCommitStageBeginRequest = {
|
|
250
|
+
readonly actorId: Id;
|
|
251
|
+
readonly expectedGeneration: u64 | null;
|
|
252
|
+
/**
|
|
253
|
+
* Fences before any bytes are staged, so an actor that lost its generation does not pay for a
|
|
254
|
+
* full payload before finding out.
|
|
255
|
+
*/
|
|
256
|
+
readonly expectedHeadTxid: u64 | null;
|
|
257
|
+
};
|
|
258
|
+
declare function readSqliteCommitStageBeginRequest(bc: bare.ByteCursor): SqliteCommitStageBeginRequest;
|
|
259
|
+
declare function writeSqliteCommitStageBeginRequest(bc: bare.ByteCursor, x: SqliteCommitStageBeginRequest): void;
|
|
260
|
+
type SqliteCommitStageBeginOk = {
|
|
261
|
+
/**
|
|
262
|
+
* The engine allocates the txid (head + 1). Actor exclusivity makes that safe without an
|
|
263
|
+
* allocator.
|
|
264
|
+
*/
|
|
265
|
+
readonly txid: u64;
|
|
266
|
+
};
|
|
267
|
+
declare function readSqliteCommitStageBeginOk(bc: bare.ByteCursor): SqliteCommitStageBeginOk;
|
|
268
|
+
declare function writeSqliteCommitStageBeginOk(bc: bare.ByteCursor, x: SqliteCommitStageBeginOk): void;
|
|
269
|
+
type SqliteCommitStageBeginResponse = {
|
|
270
|
+
readonly tag: "SqliteCommitStageBeginOk";
|
|
271
|
+
readonly val: SqliteCommitStageBeginOk;
|
|
272
|
+
} | {
|
|
273
|
+
readonly tag: "SqliteErrorResponse";
|
|
274
|
+
readonly val: SqliteErrorResponse;
|
|
275
|
+
};
|
|
276
|
+
declare function readSqliteCommitStageBeginResponse(bc: bare.ByteCursor): SqliteCommitStageBeginResponse;
|
|
277
|
+
declare function writeSqliteCommitStageBeginResponse(bc: bare.ByteCursor, x: SqliteCommitStageBeginResponse): void;
|
|
278
|
+
type SqliteCommitStageSegmentRequest = {
|
|
279
|
+
readonly actorId: Id;
|
|
280
|
+
readonly expectedGeneration: u64 | null;
|
|
281
|
+
readonly txid: u64;
|
|
282
|
+
/**
|
|
283
|
+
* Shard-aligned and strictly ascending across a commit's segments. The engine rejects a
|
|
284
|
+
* misaligned or out-of-order value rather than trusting the client to have produced it
|
|
285
|
+
* correctly: a shard split across two segments could be folded from one of them and written as
|
|
286
|
+
* a shard image missing the other's newer pages.
|
|
287
|
+
*/
|
|
288
|
+
readonly firstPgno: u32;
|
|
289
|
+
readonly dirtyPages: readonly SqliteDirtyPage[];
|
|
290
|
+
};
|
|
291
|
+
declare function readSqliteCommitStageSegmentRequest(bc: bare.ByteCursor): SqliteCommitStageSegmentRequest;
|
|
292
|
+
declare function writeSqliteCommitStageSegmentRequest(bc: bare.ByteCursor, x: SqliteCommitStageSegmentRequest): void;
|
|
293
|
+
type SqliteCommitStageSegmentOk = {
|
|
294
|
+
readonly stagedBytes: u64;
|
|
295
|
+
};
|
|
296
|
+
declare function readSqliteCommitStageSegmentOk(bc: bare.ByteCursor): SqliteCommitStageSegmentOk;
|
|
297
|
+
declare function writeSqliteCommitStageSegmentOk(bc: bare.ByteCursor, x: SqliteCommitStageSegmentOk): void;
|
|
298
|
+
type SqliteCommitStageSegmentResponse = {
|
|
299
|
+
readonly tag: "SqliteCommitStageSegmentOk";
|
|
300
|
+
readonly val: SqliteCommitStageSegmentOk;
|
|
301
|
+
} | {
|
|
302
|
+
readonly tag: "SqliteErrorResponse";
|
|
303
|
+
readonly val: SqliteErrorResponse;
|
|
304
|
+
};
|
|
305
|
+
declare function readSqliteCommitStageSegmentResponse(bc: bare.ByteCursor): SqliteCommitStageSegmentResponse;
|
|
306
|
+
declare function writeSqliteCommitStageSegmentResponse(bc: bare.ByteCursor, x: SqliteCommitStageSegmentResponse): void;
|
|
307
|
+
type SqliteCommitFinalizeRequest = {
|
|
308
|
+
readonly actorId: Id;
|
|
309
|
+
readonly expectedGeneration: u64 | null;
|
|
310
|
+
/**
|
|
311
|
+
* The txid begin allocated. It is the head fence as well as the identity: finalize requires it to
|
|
312
|
+
* still be `head + 1`, so a separate expectedHeadTxid would only ever restate `txid - 1`.
|
|
313
|
+
*/
|
|
314
|
+
readonly txid: u64;
|
|
315
|
+
readonly newDbSizePages: u32;
|
|
316
|
+
readonly nowMs: i64;
|
|
317
|
+
/**
|
|
318
|
+
* Exactly what the client believes it staged. Finalize verifies each one exists, so a client
|
|
319
|
+
* that lost a stage reply and finalized anyway is rejected instead of publishing a commit with
|
|
320
|
+
* a hole in it. Dirty page numbers are not carried here: the engine derives them from the
|
|
321
|
+
* staged segments' own page indexes.
|
|
322
|
+
*/
|
|
323
|
+
readonly segmentFirstPgnos: Uint32Array;
|
|
324
|
+
};
|
|
325
|
+
declare function readSqliteCommitFinalizeRequest(bc: bare.ByteCursor): SqliteCommitFinalizeRequest;
|
|
326
|
+
declare function writeSqliteCommitFinalizeRequest(bc: bare.ByteCursor, x: SqliteCommitFinalizeRequest): void;
|
|
327
|
+
type SqliteCommitFinalizeOk = {
|
|
328
|
+
readonly headTxid: u64 | null;
|
|
329
|
+
};
|
|
330
|
+
declare function readSqliteCommitFinalizeOk(bc: bare.ByteCursor): SqliteCommitFinalizeOk;
|
|
331
|
+
declare function writeSqliteCommitFinalizeOk(bc: bare.ByteCursor, x: SqliteCommitFinalizeOk): void;
|
|
332
|
+
type SqliteCommitFinalizeResponse = {
|
|
333
|
+
readonly tag: "SqliteCommitFinalizeOk";
|
|
334
|
+
readonly val: SqliteCommitFinalizeOk;
|
|
335
|
+
} | {
|
|
336
|
+
readonly tag: "SqliteErrorResponse";
|
|
337
|
+
readonly val: SqliteErrorResponse;
|
|
338
|
+
};
|
|
339
|
+
declare function readSqliteCommitFinalizeResponse(bc: bare.ByteCursor): SqliteCommitFinalizeResponse;
|
|
340
|
+
declare function writeSqliteCommitFinalizeResponse(bc: bare.ByteCursor, x: SqliteCommitFinalizeResponse): void;
|
|
341
|
+
type SqliteValueNull = null;
|
|
342
|
+
type SqliteValueInteger = {
|
|
343
|
+
readonly value: i64;
|
|
344
|
+
};
|
|
345
|
+
declare function readSqliteValueInteger(bc: bare.ByteCursor): SqliteValueInteger;
|
|
346
|
+
declare function writeSqliteValueInteger(bc: bare.ByteCursor, x: SqliteValueInteger): void;
|
|
347
|
+
type SqliteValueFloat = {
|
|
348
|
+
readonly value: ArrayBuffer;
|
|
349
|
+
};
|
|
350
|
+
declare function readSqliteValueFloat(bc: bare.ByteCursor): SqliteValueFloat;
|
|
351
|
+
declare function writeSqliteValueFloat(bc: bare.ByteCursor, x: SqliteValueFloat): void;
|
|
352
|
+
type SqliteValueText = {
|
|
353
|
+
readonly value: string;
|
|
354
|
+
};
|
|
355
|
+
declare function readSqliteValueText(bc: bare.ByteCursor): SqliteValueText;
|
|
356
|
+
declare function writeSqliteValueText(bc: bare.ByteCursor, x: SqliteValueText): void;
|
|
357
|
+
type SqliteValueBlob = {
|
|
358
|
+
readonly value: ArrayBuffer;
|
|
359
|
+
};
|
|
360
|
+
declare function readSqliteValueBlob(bc: bare.ByteCursor): SqliteValueBlob;
|
|
361
|
+
declare function writeSqliteValueBlob(bc: bare.ByteCursor, x: SqliteValueBlob): void;
|
|
362
|
+
type SqliteBindParam = {
|
|
363
|
+
readonly tag: "SqliteValueNull";
|
|
364
|
+
readonly val: SqliteValueNull;
|
|
365
|
+
} | {
|
|
366
|
+
readonly tag: "SqliteValueInteger";
|
|
367
|
+
readonly val: SqliteValueInteger;
|
|
368
|
+
} | {
|
|
369
|
+
readonly tag: "SqliteValueFloat";
|
|
370
|
+
readonly val: SqliteValueFloat;
|
|
371
|
+
} | {
|
|
372
|
+
readonly tag: "SqliteValueText";
|
|
373
|
+
readonly val: SqliteValueText;
|
|
374
|
+
} | {
|
|
375
|
+
readonly tag: "SqliteValueBlob";
|
|
376
|
+
readonly val: SqliteValueBlob;
|
|
377
|
+
};
|
|
378
|
+
declare function readSqliteBindParam(bc: bare.ByteCursor): SqliteBindParam;
|
|
379
|
+
declare function writeSqliteBindParam(bc: bare.ByteCursor, x: SqliteBindParam): void;
|
|
380
|
+
type SqliteColumnValue = {
|
|
381
|
+
readonly tag: "SqliteValueNull";
|
|
382
|
+
readonly val: SqliteValueNull;
|
|
383
|
+
} | {
|
|
384
|
+
readonly tag: "SqliteValueInteger";
|
|
385
|
+
readonly val: SqliteValueInteger;
|
|
386
|
+
} | {
|
|
387
|
+
readonly tag: "SqliteValueFloat";
|
|
388
|
+
readonly val: SqliteValueFloat;
|
|
389
|
+
} | {
|
|
390
|
+
readonly tag: "SqliteValueText";
|
|
391
|
+
readonly val: SqliteValueText;
|
|
392
|
+
} | {
|
|
393
|
+
readonly tag: "SqliteValueBlob";
|
|
394
|
+
readonly val: SqliteValueBlob;
|
|
395
|
+
};
|
|
396
|
+
declare function readSqliteColumnValue(bc: bare.ByteCursor): SqliteColumnValue;
|
|
397
|
+
declare function writeSqliteColumnValue(bc: bare.ByteCursor, x: SqliteColumnValue): void;
|
|
398
|
+
type SqliteQueryResult = {
|
|
399
|
+
readonly columns: readonly string[];
|
|
400
|
+
readonly rows: readonly (readonly SqliteColumnValue[])[];
|
|
401
|
+
};
|
|
402
|
+
declare function readSqliteQueryResult(bc: bare.ByteCursor): SqliteQueryResult;
|
|
403
|
+
declare function writeSqliteQueryResult(bc: bare.ByteCursor, x: SqliteQueryResult): void;
|
|
404
|
+
type SqliteExecuteResult = {
|
|
405
|
+
readonly columns: readonly string[];
|
|
406
|
+
readonly rows: readonly (readonly SqliteColumnValue[])[];
|
|
407
|
+
readonly changes: i64;
|
|
408
|
+
readonly lastInsertRowId: i64 | null;
|
|
409
|
+
};
|
|
410
|
+
declare function readSqliteExecuteResult(bc: bare.ByteCursor): SqliteExecuteResult;
|
|
411
|
+
declare function writeSqliteExecuteResult(bc: bare.ByteCursor, x: SqliteExecuteResult): void;
|
|
412
|
+
type SqliteExecRequest = {
|
|
413
|
+
readonly namespaceId: Id;
|
|
414
|
+
readonly actorId: Id;
|
|
415
|
+
readonly generation: SqliteGeneration;
|
|
416
|
+
readonly sql: string;
|
|
417
|
+
};
|
|
418
|
+
declare function readSqliteExecRequest(bc: bare.ByteCursor): SqliteExecRequest;
|
|
419
|
+
declare function writeSqliteExecRequest(bc: bare.ByteCursor, x: SqliteExecRequest): void;
|
|
420
|
+
type SqliteExecuteRequest = {
|
|
421
|
+
readonly namespaceId: Id;
|
|
422
|
+
readonly actorId: Id;
|
|
423
|
+
readonly generation: SqliteGeneration;
|
|
424
|
+
readonly sql: string;
|
|
425
|
+
readonly params: readonly SqliteBindParam[] | null;
|
|
426
|
+
};
|
|
427
|
+
declare function readSqliteExecuteRequest(bc: bare.ByteCursor): SqliteExecuteRequest;
|
|
428
|
+
declare function writeSqliteExecuteRequest(bc: bare.ByteCursor, x: SqliteExecuteRequest): void;
|
|
429
|
+
type SqliteBatchStatement = {
|
|
430
|
+
readonly sql: string;
|
|
431
|
+
readonly params: readonly SqliteBindParam[] | null;
|
|
432
|
+
};
|
|
433
|
+
declare function readSqliteBatchStatement(bc: bare.ByteCursor): SqliteBatchStatement;
|
|
434
|
+
declare function writeSqliteBatchStatement(bc: bare.ByteCursor, x: SqliteBatchStatement): void;
|
|
435
|
+
type SqliteExecuteBatchRequest = {
|
|
436
|
+
readonly namespaceId: Id;
|
|
437
|
+
readonly actorId: Id;
|
|
438
|
+
readonly generation: SqliteGeneration;
|
|
439
|
+
readonly statements: readonly SqliteBatchStatement[];
|
|
440
|
+
};
|
|
441
|
+
declare function readSqliteExecuteBatchRequest(bc: bare.ByteCursor): SqliteExecuteBatchRequest;
|
|
442
|
+
declare function writeSqliteExecuteBatchRequest(bc: bare.ByteCursor, x: SqliteExecuteBatchRequest): void;
|
|
443
|
+
type SqliteExecOk = {
|
|
444
|
+
readonly result: SqliteQueryResult;
|
|
445
|
+
};
|
|
446
|
+
declare function readSqliteExecOk(bc: bare.ByteCursor): SqliteExecOk;
|
|
447
|
+
declare function writeSqliteExecOk(bc: bare.ByteCursor, x: SqliteExecOk): void;
|
|
448
|
+
type SqliteExecuteOk = {
|
|
449
|
+
readonly result: SqliteExecuteResult;
|
|
450
|
+
};
|
|
451
|
+
declare function readSqliteExecuteOk(bc: bare.ByteCursor): SqliteExecuteOk;
|
|
452
|
+
declare function writeSqliteExecuteOk(bc: bare.ByteCursor, x: SqliteExecuteOk): void;
|
|
453
|
+
type SqliteExecuteBatchOk = {
|
|
454
|
+
readonly results: readonly SqliteExecuteResult[];
|
|
455
|
+
};
|
|
456
|
+
declare function readSqliteExecuteBatchOk(bc: bare.ByteCursor): SqliteExecuteBatchOk;
|
|
457
|
+
declare function writeSqliteExecuteBatchOk(bc: bare.ByteCursor, x: SqliteExecuteBatchOk): void;
|
|
458
|
+
type SqliteExecResponse = {
|
|
459
|
+
readonly tag: "SqliteExecOk";
|
|
460
|
+
readonly val: SqliteExecOk;
|
|
461
|
+
} | {
|
|
462
|
+
readonly tag: "SqliteErrorResponse";
|
|
463
|
+
readonly val: SqliteErrorResponse;
|
|
464
|
+
};
|
|
465
|
+
declare function readSqliteExecResponse(bc: bare.ByteCursor): SqliteExecResponse;
|
|
466
|
+
declare function writeSqliteExecResponse(bc: bare.ByteCursor, x: SqliteExecResponse): void;
|
|
467
|
+
type SqliteExecuteResponse = {
|
|
468
|
+
readonly tag: "SqliteExecuteOk";
|
|
469
|
+
readonly val: SqliteExecuteOk;
|
|
470
|
+
} | {
|
|
471
|
+
readonly tag: "SqliteErrorResponse";
|
|
472
|
+
readonly val: SqliteErrorResponse;
|
|
473
|
+
};
|
|
474
|
+
declare function readSqliteExecuteResponse(bc: bare.ByteCursor): SqliteExecuteResponse;
|
|
475
|
+
declare function writeSqliteExecuteResponse(bc: bare.ByteCursor, x: SqliteExecuteResponse): void;
|
|
476
|
+
type SqliteExecuteBatchResponse = {
|
|
477
|
+
readonly tag: "SqliteExecuteBatchOk";
|
|
478
|
+
readonly val: SqliteExecuteBatchOk;
|
|
479
|
+
} | {
|
|
480
|
+
readonly tag: "SqliteErrorResponse";
|
|
481
|
+
readonly val: SqliteErrorResponse;
|
|
482
|
+
};
|
|
483
|
+
declare function readSqliteExecuteBatchResponse(bc: bare.ByteCursor): SqliteExecuteBatchResponse;
|
|
484
|
+
declare function writeSqliteExecuteBatchResponse(bc: bare.ByteCursor, x: SqliteExecuteBatchResponse): void;
|
|
485
|
+
/**
|
|
486
|
+
* Core
|
|
487
|
+
*/
|
|
488
|
+
declare enum StopCode {
|
|
489
|
+
Ok = "Ok",
|
|
490
|
+
Error = "Error"
|
|
491
|
+
}
|
|
492
|
+
declare function readStopCode(bc: bare.ByteCursor): StopCode;
|
|
493
|
+
declare function writeStopCode(bc: bare.ByteCursor, x: StopCode): void;
|
|
494
|
+
type ActorName = {
|
|
495
|
+
readonly metadata: Json;
|
|
496
|
+
};
|
|
497
|
+
declare function readActorName(bc: bare.ByteCursor): ActorName;
|
|
498
|
+
declare function writeActorName(bc: bare.ByteCursor, x: ActorName): void;
|
|
499
|
+
type ActorConfig = {
|
|
500
|
+
readonly name: string;
|
|
501
|
+
readonly key: string | null;
|
|
502
|
+
readonly createTs: i64;
|
|
503
|
+
readonly input: ArrayBuffer | null;
|
|
504
|
+
};
|
|
505
|
+
declare function readActorConfig(bc: bare.ByteCursor): ActorConfig;
|
|
506
|
+
declare function writeActorConfig(bc: bare.ByteCursor, x: ActorConfig): void;
|
|
507
|
+
type ActorCheckpoint = {
|
|
508
|
+
readonly actorId: Id;
|
|
509
|
+
readonly generation: u32;
|
|
510
|
+
readonly index: i64;
|
|
511
|
+
};
|
|
512
|
+
declare function readActorCheckpoint(bc: bare.ByteCursor): ActorCheckpoint;
|
|
513
|
+
declare function writeActorCheckpoint(bc: bare.ByteCursor, x: ActorCheckpoint): void;
|
|
514
|
+
/**
|
|
515
|
+
* Intent
|
|
516
|
+
*/
|
|
517
|
+
type ActorIntentSleep = null;
|
|
518
|
+
type ActorIntentStop = null;
|
|
519
|
+
type ActorIntent = {
|
|
520
|
+
readonly tag: "ActorIntentSleep";
|
|
521
|
+
readonly val: ActorIntentSleep;
|
|
522
|
+
} | {
|
|
523
|
+
readonly tag: "ActorIntentStop";
|
|
524
|
+
readonly val: ActorIntentStop;
|
|
525
|
+
};
|
|
526
|
+
declare function readActorIntent(bc: bare.ByteCursor): ActorIntent;
|
|
527
|
+
declare function writeActorIntent(bc: bare.ByteCursor, x: ActorIntent): void;
|
|
528
|
+
/**
|
|
529
|
+
* State
|
|
530
|
+
*/
|
|
531
|
+
type ActorStateRunning = null;
|
|
532
|
+
type ActorStateStopped = {
|
|
533
|
+
readonly code: StopCode;
|
|
534
|
+
readonly message: string | null;
|
|
535
|
+
};
|
|
536
|
+
declare function readActorStateStopped(bc: bare.ByteCursor): ActorStateStopped;
|
|
537
|
+
declare function writeActorStateStopped(bc: bare.ByteCursor, x: ActorStateStopped): void;
|
|
538
|
+
type ActorState = {
|
|
539
|
+
readonly tag: "ActorStateRunning";
|
|
540
|
+
readonly val: ActorStateRunning;
|
|
541
|
+
} | {
|
|
542
|
+
readonly tag: "ActorStateStopped";
|
|
543
|
+
readonly val: ActorStateStopped;
|
|
544
|
+
};
|
|
545
|
+
declare function readActorState(bc: bare.ByteCursor): ActorState;
|
|
546
|
+
declare function writeActorState(bc: bare.ByteCursor, x: ActorState): void;
|
|
547
|
+
/**
|
|
548
|
+
* MARK: Events
|
|
549
|
+
*/
|
|
550
|
+
type EventActorIntent = {
|
|
551
|
+
readonly intent: ActorIntent;
|
|
552
|
+
};
|
|
553
|
+
declare function readEventActorIntent(bc: bare.ByteCursor): EventActorIntent;
|
|
554
|
+
declare function writeEventActorIntent(bc: bare.ByteCursor, x: EventActorIntent): void;
|
|
555
|
+
type EventActorStateUpdate = {
|
|
556
|
+
readonly state: ActorState;
|
|
557
|
+
};
|
|
558
|
+
declare function readEventActorStateUpdate(bc: bare.ByteCursor): EventActorStateUpdate;
|
|
559
|
+
declare function writeEventActorStateUpdate(bc: bare.ByteCursor, x: EventActorStateUpdate): void;
|
|
560
|
+
type EventActorSetAlarm = {
|
|
561
|
+
readonly alarmTs: i64 | null;
|
|
562
|
+
};
|
|
563
|
+
declare function readEventActorSetAlarm(bc: bare.ByteCursor): EventActorSetAlarm;
|
|
564
|
+
declare function writeEventActorSetAlarm(bc: bare.ByteCursor, x: EventActorSetAlarm): void;
|
|
565
|
+
type Event = {
|
|
566
|
+
readonly tag: "EventActorIntent";
|
|
567
|
+
readonly val: EventActorIntent;
|
|
568
|
+
} | {
|
|
569
|
+
readonly tag: "EventActorStateUpdate";
|
|
570
|
+
readonly val: EventActorStateUpdate;
|
|
571
|
+
} | {
|
|
572
|
+
readonly tag: "EventActorSetAlarm";
|
|
573
|
+
readonly val: EventActorSetAlarm;
|
|
574
|
+
};
|
|
575
|
+
declare function readEvent(bc: bare.ByteCursor): Event;
|
|
576
|
+
declare function writeEvent(bc: bare.ByteCursor, x: Event): void;
|
|
577
|
+
type EventWrapper = {
|
|
578
|
+
readonly checkpoint: ActorCheckpoint;
|
|
579
|
+
readonly inner: Event;
|
|
580
|
+
};
|
|
581
|
+
declare function readEventWrapper(bc: bare.ByteCursor): EventWrapper;
|
|
582
|
+
declare function writeEventWrapper(bc: bare.ByteCursor, x: EventWrapper): void;
|
|
583
|
+
type PreloadedKvEntry = {
|
|
584
|
+
readonly key: KvKey;
|
|
585
|
+
readonly value: KvValue;
|
|
586
|
+
readonly metadata: KvMetadata;
|
|
587
|
+
};
|
|
588
|
+
declare function readPreloadedKvEntry(bc: bare.ByteCursor): PreloadedKvEntry;
|
|
589
|
+
declare function writePreloadedKvEntry(bc: bare.ByteCursor, x: PreloadedKvEntry): void;
|
|
590
|
+
type PreloadedKv = {
|
|
591
|
+
readonly entries: readonly PreloadedKvEntry[];
|
|
592
|
+
readonly requestedGetKeys: readonly KvKey[];
|
|
593
|
+
readonly requestedPrefixes: readonly KvKey[];
|
|
594
|
+
};
|
|
595
|
+
declare function readPreloadedKv(bc: bare.ByteCursor): PreloadedKv;
|
|
596
|
+
declare function writePreloadedKv(bc: bare.ByteCursor, x: PreloadedKv): void;
|
|
597
|
+
type HibernatingRequest = {
|
|
598
|
+
readonly gatewayId: GatewayId;
|
|
599
|
+
readonly requestId: RequestId;
|
|
600
|
+
};
|
|
601
|
+
declare function readHibernatingRequest(bc: bare.ByteCursor): HibernatingRequest;
|
|
602
|
+
declare function writeHibernatingRequest(bc: bare.ByteCursor, x: HibernatingRequest): void;
|
|
603
|
+
type CommandStartActor = {
|
|
604
|
+
readonly config: ActorConfig;
|
|
605
|
+
readonly hibernatingRequests: readonly HibernatingRequest[];
|
|
606
|
+
readonly preloadedKv: PreloadedKv | null;
|
|
607
|
+
};
|
|
608
|
+
declare function readCommandStartActor(bc: bare.ByteCursor): CommandStartActor;
|
|
609
|
+
declare function writeCommandStartActor(bc: bare.ByteCursor, x: CommandStartActor): void;
|
|
610
|
+
declare enum StopActorReason {
|
|
611
|
+
SleepIntent = "SleepIntent",
|
|
612
|
+
StopIntent = "StopIntent",
|
|
613
|
+
Destroy = "Destroy",
|
|
614
|
+
GoingAway = "GoingAway",
|
|
615
|
+
Lost = "Lost"
|
|
616
|
+
}
|
|
617
|
+
declare function readStopActorReason(bc: bare.ByteCursor): StopActorReason;
|
|
618
|
+
declare function writeStopActorReason(bc: bare.ByteCursor, x: StopActorReason): void;
|
|
619
|
+
type CommandStopActor = {
|
|
620
|
+
readonly reason: StopActorReason;
|
|
621
|
+
};
|
|
622
|
+
declare function readCommandStopActor(bc: bare.ByteCursor): CommandStopActor;
|
|
623
|
+
declare function writeCommandStopActor(bc: bare.ByteCursor, x: CommandStopActor): void;
|
|
624
|
+
type Command = {
|
|
625
|
+
readonly tag: "CommandStartActor";
|
|
626
|
+
readonly val: CommandStartActor;
|
|
627
|
+
} | {
|
|
628
|
+
readonly tag: "CommandStopActor";
|
|
629
|
+
readonly val: CommandStopActor;
|
|
630
|
+
};
|
|
631
|
+
declare function readCommand(bc: bare.ByteCursor): Command;
|
|
632
|
+
declare function writeCommand(bc: bare.ByteCursor, x: Command): void;
|
|
633
|
+
type CommandWrapper = {
|
|
634
|
+
readonly checkpoint: ActorCheckpoint;
|
|
635
|
+
readonly inner: Command;
|
|
636
|
+
};
|
|
637
|
+
declare function readCommandWrapper(bc: bare.ByteCursor): CommandWrapper;
|
|
638
|
+
declare function writeCommandWrapper(bc: bare.ByteCursor, x: CommandWrapper): void;
|
|
639
|
+
/**
|
|
640
|
+
* We redeclare this so its top level
|
|
641
|
+
*/
|
|
642
|
+
type ActorCommandKeyData = {
|
|
643
|
+
readonly tag: "CommandStartActor";
|
|
644
|
+
readonly val: CommandStartActor;
|
|
645
|
+
} | {
|
|
646
|
+
readonly tag: "CommandStopActor";
|
|
647
|
+
readonly val: CommandStopActor;
|
|
648
|
+
};
|
|
649
|
+
declare function readActorCommandKeyData(bc: bare.ByteCursor): ActorCommandKeyData;
|
|
650
|
+
declare function writeActorCommandKeyData(bc: bare.ByteCursor, x: ActorCommandKeyData): void;
|
|
651
|
+
declare function encodeActorCommandKeyData(x: ActorCommandKeyData, config?: Partial<bare.Config>): Uint8Array;
|
|
652
|
+
declare function decodeActorCommandKeyData(bytes: Uint8Array): ActorCommandKeyData;
|
|
653
|
+
type MessageId = {
|
|
654
|
+
/**
|
|
655
|
+
* Globally unique ID
|
|
656
|
+
*/
|
|
657
|
+
readonly gatewayId: GatewayId;
|
|
658
|
+
/**
|
|
659
|
+
* Unique ID to the gateway
|
|
660
|
+
*/
|
|
661
|
+
readonly requestId: RequestId;
|
|
662
|
+
/**
|
|
663
|
+
* Unique ID to the request
|
|
664
|
+
*/
|
|
665
|
+
readonly messageIndex: MessageIndex;
|
|
666
|
+
};
|
|
667
|
+
declare function readMessageId(bc: bare.ByteCursor): MessageId;
|
|
668
|
+
declare function writeMessageId(bc: bare.ByteCursor, x: MessageId): void;
|
|
669
|
+
/**
|
|
670
|
+
* HTTP
|
|
671
|
+
*/
|
|
672
|
+
type ToEnvoyRequestStart = {
|
|
673
|
+
readonly actorId: Id;
|
|
674
|
+
/**
|
|
675
|
+
* Exact actor generation selected by Gateway 3. Legacy Gateway 2 requests
|
|
676
|
+
* omit this and retain highest-live-generation routing.
|
|
677
|
+
*/
|
|
678
|
+
readonly actorGeneration: u32 | null;
|
|
679
|
+
readonly method: string;
|
|
680
|
+
readonly path: string;
|
|
681
|
+
readonly headers: ReadonlyMap<string, string>;
|
|
682
|
+
readonly body: ArrayBuffer | null;
|
|
683
|
+
readonly stream: boolean;
|
|
684
|
+
/**
|
|
685
|
+
* Whether the gateway can accept a streamed response body.
|
|
686
|
+
*/
|
|
687
|
+
readonly responseStream: boolean;
|
|
688
|
+
};
|
|
689
|
+
declare function readToEnvoyRequestStart(bc: bare.ByteCursor): ToEnvoyRequestStart;
|
|
690
|
+
declare function writeToEnvoyRequestStart(bc: bare.ByteCursor, x: ToEnvoyRequestStart): void;
|
|
691
|
+
type ToEnvoyRequestChunk = {
|
|
692
|
+
readonly body: ArrayBuffer;
|
|
693
|
+
readonly finish: boolean;
|
|
694
|
+
};
|
|
695
|
+
declare function readToEnvoyRequestChunk(bc: bare.ByteCursor): ToEnvoyRequestChunk;
|
|
696
|
+
declare function writeToEnvoyRequestChunk(bc: bare.ByteCursor, x: ToEnvoyRequestChunk): void;
|
|
697
|
+
/**
|
|
698
|
+
* Cumulative request-body bytes consumed by the actor handler. This restores
|
|
699
|
+
* sender credit without requiring one acknowledgement per chunk.
|
|
700
|
+
*/
|
|
701
|
+
type ToRivetRequestBodyWindowUpdate = {
|
|
702
|
+
readonly consumedBytes: u64;
|
|
703
|
+
};
|
|
704
|
+
declare function readToRivetRequestBodyWindowUpdate(bc: bare.ByteCursor): ToRivetRequestBodyWindowUpdate;
|
|
705
|
+
declare function writeToRivetRequestBodyWindowUpdate(bc: bare.ByteCursor, x: ToRivetRequestBodyWindowUpdate): void;
|
|
706
|
+
/**
|
|
707
|
+
* The actor handler no longer wants request-body bytes. The HTTP response may
|
|
708
|
+
* still continue normally.
|
|
709
|
+
*/
|
|
710
|
+
type ToRivetRequestBodyCancel = null;
|
|
711
|
+
declare enum HttpStreamAbortReasonKind {
|
|
712
|
+
Unknown = "Unknown",
|
|
713
|
+
Cancelled = "Cancelled",
|
|
714
|
+
HandlerError = "HandlerError",
|
|
715
|
+
InternalError = "InternalError"
|
|
716
|
+
}
|
|
717
|
+
declare function readHttpStreamAbortReasonKind(bc: bare.ByteCursor): HttpStreamAbortReasonKind;
|
|
718
|
+
declare function writeHttpStreamAbortReasonKind(bc: bare.ByteCursor, x: HttpStreamAbortReasonKind): void;
|
|
719
|
+
type HttpStreamAbortReason = {
|
|
720
|
+
readonly kind: HttpStreamAbortReasonKind;
|
|
721
|
+
readonly detail: string | null;
|
|
722
|
+
};
|
|
723
|
+
declare function readHttpStreamAbortReason(bc: bare.ByteCursor): HttpStreamAbortReason;
|
|
724
|
+
declare function writeHttpStreamAbortReason(bc: bare.ByteCursor, x: HttpStreamAbortReason): void;
|
|
725
|
+
type ToEnvoyRequestAbort = {
|
|
726
|
+
/**
|
|
727
|
+
* Exact admission identity. Gateway 3 always sets both fields so Envoy can
|
|
728
|
+
* suppress a delayed RequestStart after an indeterminate handoff.
|
|
729
|
+
*/
|
|
730
|
+
readonly actorId: Id | null;
|
|
731
|
+
readonly actorGeneration: u32 | null;
|
|
732
|
+
readonly reason: HttpStreamAbortReason;
|
|
733
|
+
};
|
|
734
|
+
declare function readToEnvoyRequestAbort(bc: bare.ByteCursor): ToEnvoyRequestAbort;
|
|
735
|
+
declare function writeToEnvoyRequestAbort(bc: bare.ByteCursor, x: ToEnvoyRequestAbort): void;
|
|
736
|
+
/**
|
|
737
|
+
* Stop the actor-side request body without cancelling the HTTP response.
|
|
738
|
+
*/
|
|
739
|
+
type ToEnvoyRequestBodyCancel = null;
|
|
740
|
+
type ToRivetResponseStart = {
|
|
741
|
+
readonly status: u16;
|
|
742
|
+
readonly headers: ReadonlyMap<string, string>;
|
|
743
|
+
readonly body: ArrayBuffer | null;
|
|
744
|
+
readonly stream: boolean;
|
|
745
|
+
};
|
|
746
|
+
declare function readToRivetResponseStart(bc: bare.ByteCursor): ToRivetResponseStart;
|
|
747
|
+
declare function writeToRivetResponseStart(bc: bare.ByteCursor, x: ToRivetResponseStart): void;
|
|
748
|
+
type ToRivetResponseChunk = {
|
|
749
|
+
readonly body: ArrayBuffer;
|
|
750
|
+
readonly finish: boolean;
|
|
751
|
+
};
|
|
752
|
+
declare function readToRivetResponseChunk(bc: bare.ByteCursor): ToRivetResponseChunk;
|
|
753
|
+
declare function writeToRivetResponseChunk(bc: bare.ByteCursor, x: ToRivetResponseChunk): void;
|
|
754
|
+
/**
|
|
755
|
+
* Cumulative response-body bytes consumed by the gateway client. This restores
|
|
756
|
+
* sender credit without requiring one acknowledgement per chunk.
|
|
757
|
+
*/
|
|
758
|
+
type ToEnvoyResponseBodyWindowUpdate = {
|
|
759
|
+
readonly consumedBytes: u64;
|
|
760
|
+
};
|
|
761
|
+
declare function readToEnvoyResponseBodyWindowUpdate(bc: bare.ByteCursor): ToEnvoyResponseBodyWindowUpdate;
|
|
762
|
+
declare function writeToEnvoyResponseBodyWindowUpdate(bc: bare.ByteCursor, x: ToEnvoyResponseBodyWindowUpdate): void;
|
|
763
|
+
type ToRivetResponseAbort = {
|
|
764
|
+
readonly reason: HttpStreamAbortReason;
|
|
765
|
+
};
|
|
766
|
+
declare function readToRivetResponseAbort(bc: bare.ByteCursor): ToRivetResponseAbort;
|
|
767
|
+
declare function writeToRivetResponseAbort(bc: bare.ByteCursor, x: ToRivetResponseAbort): void;
|
|
768
|
+
/**
|
|
769
|
+
* WebSocket
|
|
770
|
+
*/
|
|
771
|
+
type ToEnvoyWebSocketOpen = {
|
|
772
|
+
readonly actorId: Id;
|
|
773
|
+
/**
|
|
774
|
+
* Exact actor generation selected by Gateway 3. Legacy Gateway 2 requests
|
|
775
|
+
* omit this and retain highest-live-generation routing.
|
|
776
|
+
*/
|
|
777
|
+
readonly actorGeneration: u32 | null;
|
|
778
|
+
readonly path: string;
|
|
779
|
+
readonly headers: ReadonlyMap<string, string>;
|
|
780
|
+
};
|
|
781
|
+
declare function readToEnvoyWebSocketOpen(bc: bare.ByteCursor): ToEnvoyWebSocketOpen;
|
|
782
|
+
declare function writeToEnvoyWebSocketOpen(bc: bare.ByteCursor, x: ToEnvoyWebSocketOpen): void;
|
|
783
|
+
type ToEnvoyWebSocketMessage = {
|
|
784
|
+
readonly data: ArrayBuffer;
|
|
785
|
+
readonly binary: boolean;
|
|
786
|
+
};
|
|
787
|
+
declare function readToEnvoyWebSocketMessage(bc: bare.ByteCursor): ToEnvoyWebSocketMessage;
|
|
788
|
+
declare function writeToEnvoyWebSocketMessage(bc: bare.ByteCursor, x: ToEnvoyWebSocketMessage): void;
|
|
789
|
+
type ToEnvoyWebSocketClose = {
|
|
790
|
+
readonly code: u16 | null;
|
|
791
|
+
readonly reason: string | null;
|
|
792
|
+
};
|
|
793
|
+
declare function readToEnvoyWebSocketClose(bc: bare.ByteCursor): ToEnvoyWebSocketClose;
|
|
794
|
+
declare function writeToEnvoyWebSocketClose(bc: bare.ByteCursor, x: ToEnvoyWebSocketClose): void;
|
|
795
|
+
type ToRivetWebSocketOpen = {
|
|
796
|
+
readonly canHibernate: boolean;
|
|
797
|
+
};
|
|
798
|
+
declare function readToRivetWebSocketOpen(bc: bare.ByteCursor): ToRivetWebSocketOpen;
|
|
799
|
+
declare function writeToRivetWebSocketOpen(bc: bare.ByteCursor, x: ToRivetWebSocketOpen): void;
|
|
800
|
+
type ToRivetWebSocketMessage = {
|
|
801
|
+
readonly data: ArrayBuffer;
|
|
802
|
+
readonly binary: boolean;
|
|
803
|
+
};
|
|
804
|
+
declare function readToRivetWebSocketMessage(bc: bare.ByteCursor): ToRivetWebSocketMessage;
|
|
805
|
+
declare function writeToRivetWebSocketMessage(bc: bare.ByteCursor, x: ToRivetWebSocketMessage): void;
|
|
806
|
+
type ToRivetWebSocketMessageAck = {
|
|
807
|
+
readonly index: MessageIndex;
|
|
808
|
+
};
|
|
809
|
+
declare function readToRivetWebSocketMessageAck(bc: bare.ByteCursor): ToRivetWebSocketMessageAck;
|
|
810
|
+
declare function writeToRivetWebSocketMessageAck(bc: bare.ByteCursor, x: ToRivetWebSocketMessageAck): void;
|
|
811
|
+
type ToRivetWebSocketClose = {
|
|
812
|
+
readonly code: u16 | null;
|
|
813
|
+
readonly reason: string | null;
|
|
814
|
+
readonly hibernate: boolean;
|
|
815
|
+
};
|
|
816
|
+
declare function readToRivetWebSocketClose(bc: bare.ByteCursor): ToRivetWebSocketClose;
|
|
817
|
+
declare function writeToRivetWebSocketClose(bc: bare.ByteCursor, x: ToRivetWebSocketClose): void;
|
|
818
|
+
/**
|
|
819
|
+
* To Rivet
|
|
820
|
+
*/
|
|
821
|
+
type ToRivetTunnelMessageKind =
|
|
822
|
+
/**
|
|
823
|
+
* HTTP
|
|
824
|
+
*/
|
|
825
|
+
{
|
|
826
|
+
readonly tag: "ToRivetResponseStart";
|
|
827
|
+
readonly val: ToRivetResponseStart;
|
|
828
|
+
} | {
|
|
829
|
+
readonly tag: "ToRivetResponseChunk";
|
|
830
|
+
readonly val: ToRivetResponseChunk;
|
|
831
|
+
} | {
|
|
832
|
+
readonly tag: "ToRivetResponseAbort";
|
|
833
|
+
readonly val: ToRivetResponseAbort;
|
|
834
|
+
} | {
|
|
835
|
+
readonly tag: "ToRivetRequestBodyWindowUpdate";
|
|
836
|
+
readonly val: ToRivetRequestBodyWindowUpdate;
|
|
837
|
+
} | {
|
|
838
|
+
readonly tag: "ToRivetRequestBodyCancel";
|
|
839
|
+
readonly val: ToRivetRequestBodyCancel;
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* WebSocket
|
|
843
|
+
*/
|
|
844
|
+
| {
|
|
845
|
+
readonly tag: "ToRivetWebSocketOpen";
|
|
846
|
+
readonly val: ToRivetWebSocketOpen;
|
|
847
|
+
} | {
|
|
848
|
+
readonly tag: "ToRivetWebSocketMessage";
|
|
849
|
+
readonly val: ToRivetWebSocketMessage;
|
|
850
|
+
} | {
|
|
851
|
+
readonly tag: "ToRivetWebSocketMessageAck";
|
|
852
|
+
readonly val: ToRivetWebSocketMessageAck;
|
|
853
|
+
} | {
|
|
854
|
+
readonly tag: "ToRivetWebSocketClose";
|
|
855
|
+
readonly val: ToRivetWebSocketClose;
|
|
856
|
+
};
|
|
857
|
+
declare function readToRivetTunnelMessageKind(bc: bare.ByteCursor): ToRivetTunnelMessageKind;
|
|
858
|
+
declare function writeToRivetTunnelMessageKind(bc: bare.ByteCursor, x: ToRivetTunnelMessageKind): void;
|
|
859
|
+
type ToRivetTunnelMessage = {
|
|
860
|
+
readonly messageId: MessageId;
|
|
861
|
+
readonly messageKind: ToRivetTunnelMessageKind;
|
|
862
|
+
};
|
|
863
|
+
declare function readToRivetTunnelMessage(bc: bare.ByteCursor): ToRivetTunnelMessage;
|
|
864
|
+
declare function writeToRivetTunnelMessage(bc: bare.ByteCursor, x: ToRivetTunnelMessage): void;
|
|
865
|
+
/**
|
|
866
|
+
* To Envoy
|
|
867
|
+
*/
|
|
868
|
+
type ToEnvoyTunnelMessageKind =
|
|
869
|
+
/**
|
|
870
|
+
* HTTP
|
|
871
|
+
*/
|
|
872
|
+
{
|
|
873
|
+
readonly tag: "ToEnvoyRequestStart";
|
|
874
|
+
readonly val: ToEnvoyRequestStart;
|
|
875
|
+
} | {
|
|
876
|
+
readonly tag: "ToEnvoyRequestChunk";
|
|
877
|
+
readonly val: ToEnvoyRequestChunk;
|
|
878
|
+
} | {
|
|
879
|
+
readonly tag: "ToEnvoyRequestAbort";
|
|
880
|
+
readonly val: ToEnvoyRequestAbort;
|
|
881
|
+
} | {
|
|
882
|
+
readonly tag: "ToEnvoyRequestBodyCancel";
|
|
883
|
+
readonly val: ToEnvoyRequestBodyCancel;
|
|
884
|
+
} | {
|
|
885
|
+
readonly tag: "ToEnvoyResponseBodyWindowUpdate";
|
|
886
|
+
readonly val: ToEnvoyResponseBodyWindowUpdate;
|
|
887
|
+
}
|
|
888
|
+
/**
|
|
889
|
+
* WebSocket
|
|
890
|
+
*/
|
|
891
|
+
| {
|
|
892
|
+
readonly tag: "ToEnvoyWebSocketOpen";
|
|
893
|
+
readonly val: ToEnvoyWebSocketOpen;
|
|
894
|
+
} | {
|
|
895
|
+
readonly tag: "ToEnvoyWebSocketMessage";
|
|
896
|
+
readonly val: ToEnvoyWebSocketMessage;
|
|
897
|
+
} | {
|
|
898
|
+
readonly tag: "ToEnvoyWebSocketClose";
|
|
899
|
+
readonly val: ToEnvoyWebSocketClose;
|
|
900
|
+
};
|
|
901
|
+
declare function readToEnvoyTunnelMessageKind(bc: bare.ByteCursor): ToEnvoyTunnelMessageKind;
|
|
902
|
+
declare function writeToEnvoyTunnelMessageKind(bc: bare.ByteCursor, x: ToEnvoyTunnelMessageKind): void;
|
|
903
|
+
type ToEnvoyTunnelMessage = {
|
|
904
|
+
readonly messageId: MessageId;
|
|
905
|
+
readonly messageKind: ToEnvoyTunnelMessageKind;
|
|
906
|
+
};
|
|
907
|
+
declare function readToEnvoyTunnelMessage(bc: bare.ByteCursor): ToEnvoyTunnelMessage;
|
|
908
|
+
declare function writeToEnvoyTunnelMessage(bc: bare.ByteCursor, x: ToEnvoyTunnelMessage): void;
|
|
909
|
+
type ToEnvoyPing = {
|
|
910
|
+
readonly ts: i64;
|
|
911
|
+
};
|
|
912
|
+
declare function readToEnvoyPing(bc: bare.ByteCursor): ToEnvoyPing;
|
|
913
|
+
declare function writeToEnvoyPing(bc: bare.ByteCursor, x: ToEnvoyPing): void;
|
|
914
|
+
/**
|
|
915
|
+
* MARK: To Rivet
|
|
916
|
+
*/
|
|
917
|
+
type ToRivetMetadata = {
|
|
918
|
+
readonly prepopulateActorNames: ReadonlyMap<string, ActorName> | null;
|
|
919
|
+
readonly metadata: Json | null;
|
|
920
|
+
};
|
|
921
|
+
declare function readToRivetMetadata(bc: bare.ByteCursor): ToRivetMetadata;
|
|
922
|
+
declare function writeToRivetMetadata(bc: bare.ByteCursor, x: ToRivetMetadata): void;
|
|
923
|
+
type ToRivetEvents = readonly EventWrapper[];
|
|
924
|
+
declare function readToRivetEvents(bc: bare.ByteCursor): ToRivetEvents;
|
|
925
|
+
declare function writeToRivetEvents(bc: bare.ByteCursor, x: ToRivetEvents): void;
|
|
926
|
+
type ToRivetAckCommands = {
|
|
927
|
+
readonly lastCommandCheckpoints: readonly ActorCheckpoint[];
|
|
928
|
+
};
|
|
929
|
+
declare function readToRivetAckCommands(bc: bare.ByteCursor): ToRivetAckCommands;
|
|
930
|
+
declare function writeToRivetAckCommands(bc: bare.ByteCursor, x: ToRivetAckCommands): void;
|
|
931
|
+
type ToRivetStopping = null;
|
|
932
|
+
type ToRivetPong = {
|
|
933
|
+
readonly ts: i64;
|
|
934
|
+
};
|
|
935
|
+
declare function readToRivetPong(bc: bare.ByteCursor): ToRivetPong;
|
|
936
|
+
declare function writeToRivetPong(bc: bare.ByteCursor, x: ToRivetPong): void;
|
|
937
|
+
type ToRivetKvRequest = {
|
|
938
|
+
readonly actorId: Id;
|
|
939
|
+
readonly requestId: u32;
|
|
940
|
+
readonly data: KvRequestData;
|
|
941
|
+
};
|
|
942
|
+
declare function readToRivetKvRequest(bc: bare.ByteCursor): ToRivetKvRequest;
|
|
943
|
+
declare function writeToRivetKvRequest(bc: bare.ByteCursor, x: ToRivetKvRequest): void;
|
|
944
|
+
type ToRivetSqliteGetPagesRequest = {
|
|
945
|
+
readonly requestId: u32;
|
|
946
|
+
readonly data: SqliteGetPagesRequest;
|
|
947
|
+
};
|
|
948
|
+
declare function readToRivetSqliteGetPagesRequest(bc: bare.ByteCursor): ToRivetSqliteGetPagesRequest;
|
|
949
|
+
declare function writeToRivetSqliteGetPagesRequest(bc: bare.ByteCursor, x: ToRivetSqliteGetPagesRequest): void;
|
|
950
|
+
type ToRivetSqliteCommitRequest = {
|
|
951
|
+
readonly requestId: u32;
|
|
952
|
+
readonly data: SqliteCommitRequest;
|
|
953
|
+
};
|
|
954
|
+
declare function readToRivetSqliteCommitRequest(bc: bare.ByteCursor): ToRivetSqliteCommitRequest;
|
|
955
|
+
declare function writeToRivetSqliteCommitRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitRequest): void;
|
|
956
|
+
type ToRivetSqliteCommitStageBeginRequest = {
|
|
957
|
+
readonly requestId: u32;
|
|
958
|
+
readonly data: SqliteCommitStageBeginRequest;
|
|
959
|
+
};
|
|
960
|
+
declare function readToRivetSqliteCommitStageBeginRequest(bc: bare.ByteCursor): ToRivetSqliteCommitStageBeginRequest;
|
|
961
|
+
declare function writeToRivetSqliteCommitStageBeginRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitStageBeginRequest): void;
|
|
962
|
+
type ToRivetSqliteCommitStageSegmentRequest = {
|
|
963
|
+
readonly requestId: u32;
|
|
964
|
+
readonly data: SqliteCommitStageSegmentRequest;
|
|
965
|
+
};
|
|
966
|
+
declare function readToRivetSqliteCommitStageSegmentRequest(bc: bare.ByteCursor): ToRivetSqliteCommitStageSegmentRequest;
|
|
967
|
+
declare function writeToRivetSqliteCommitStageSegmentRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitStageSegmentRequest): void;
|
|
968
|
+
type ToRivetSqliteCommitFinalizeRequest = {
|
|
969
|
+
readonly requestId: u32;
|
|
970
|
+
readonly data: SqliteCommitFinalizeRequest;
|
|
971
|
+
};
|
|
972
|
+
declare function readToRivetSqliteCommitFinalizeRequest(bc: bare.ByteCursor): ToRivetSqliteCommitFinalizeRequest;
|
|
973
|
+
declare function writeToRivetSqliteCommitFinalizeRequest(bc: bare.ByteCursor, x: ToRivetSqliteCommitFinalizeRequest): void;
|
|
974
|
+
type ToRivetSqliteExecRequest = {
|
|
975
|
+
readonly requestId: u32;
|
|
976
|
+
readonly data: SqliteExecRequest;
|
|
977
|
+
};
|
|
978
|
+
declare function readToRivetSqliteExecRequest(bc: bare.ByteCursor): ToRivetSqliteExecRequest;
|
|
979
|
+
declare function writeToRivetSqliteExecRequest(bc: bare.ByteCursor, x: ToRivetSqliteExecRequest): void;
|
|
980
|
+
type ToRivetSqliteExecuteRequest = {
|
|
981
|
+
readonly requestId: u32;
|
|
982
|
+
readonly data: SqliteExecuteRequest;
|
|
983
|
+
};
|
|
984
|
+
declare function readToRivetSqliteExecuteRequest(bc: bare.ByteCursor): ToRivetSqliteExecuteRequest;
|
|
985
|
+
declare function writeToRivetSqliteExecuteRequest(bc: bare.ByteCursor, x: ToRivetSqliteExecuteRequest): void;
|
|
986
|
+
type ToRivetSqliteExecuteBatchRequest = {
|
|
987
|
+
readonly requestId: u32;
|
|
988
|
+
readonly data: SqliteExecuteBatchRequest;
|
|
989
|
+
};
|
|
990
|
+
declare function readToRivetSqliteExecuteBatchRequest(bc: bare.ByteCursor): ToRivetSqliteExecuteBatchRequest;
|
|
991
|
+
declare function writeToRivetSqliteExecuteBatchRequest(bc: bare.ByteCursor, x: ToRivetSqliteExecuteBatchRequest): void;
|
|
992
|
+
type ToRivet = {
|
|
993
|
+
readonly tag: "ToRivetMetadata";
|
|
994
|
+
readonly val: ToRivetMetadata;
|
|
995
|
+
} | {
|
|
996
|
+
readonly tag: "ToRivetEvents";
|
|
997
|
+
readonly val: ToRivetEvents;
|
|
998
|
+
} | {
|
|
999
|
+
readonly tag: "ToRivetAckCommands";
|
|
1000
|
+
readonly val: ToRivetAckCommands;
|
|
1001
|
+
} | {
|
|
1002
|
+
readonly tag: "ToRivetStopping";
|
|
1003
|
+
readonly val: ToRivetStopping;
|
|
1004
|
+
} | {
|
|
1005
|
+
readonly tag: "ToRivetPong";
|
|
1006
|
+
readonly val: ToRivetPong;
|
|
1007
|
+
} | {
|
|
1008
|
+
readonly tag: "ToRivetKvRequest";
|
|
1009
|
+
readonly val: ToRivetKvRequest;
|
|
1010
|
+
} | {
|
|
1011
|
+
readonly tag: "ToRivetTunnelMessage";
|
|
1012
|
+
readonly val: ToRivetTunnelMessage;
|
|
1013
|
+
} | {
|
|
1014
|
+
readonly tag: "ToRivetSqliteGetPagesRequest";
|
|
1015
|
+
readonly val: ToRivetSqliteGetPagesRequest;
|
|
1016
|
+
} | {
|
|
1017
|
+
readonly tag: "ToRivetSqliteCommitRequest";
|
|
1018
|
+
readonly val: ToRivetSqliteCommitRequest;
|
|
1019
|
+
} | {
|
|
1020
|
+
readonly tag: "ToRivetSqliteCommitStageBeginRequest";
|
|
1021
|
+
readonly val: ToRivetSqliteCommitStageBeginRequest;
|
|
1022
|
+
} | {
|
|
1023
|
+
readonly tag: "ToRivetSqliteCommitStageSegmentRequest";
|
|
1024
|
+
readonly val: ToRivetSqliteCommitStageSegmentRequest;
|
|
1025
|
+
} | {
|
|
1026
|
+
readonly tag: "ToRivetSqliteCommitFinalizeRequest";
|
|
1027
|
+
readonly val: ToRivetSqliteCommitFinalizeRequest;
|
|
1028
|
+
} | {
|
|
1029
|
+
readonly tag: "ToRivetSqliteExecRequest";
|
|
1030
|
+
readonly val: ToRivetSqliteExecRequest;
|
|
1031
|
+
} | {
|
|
1032
|
+
readonly tag: "ToRivetSqliteExecuteRequest";
|
|
1033
|
+
readonly val: ToRivetSqliteExecuteRequest;
|
|
1034
|
+
} | {
|
|
1035
|
+
readonly tag: "ToRivetSqliteExecuteBatchRequest";
|
|
1036
|
+
readonly val: ToRivetSqliteExecuteBatchRequest;
|
|
1037
|
+
};
|
|
1038
|
+
declare function readToRivet(bc: bare.ByteCursor): ToRivet;
|
|
1039
|
+
declare function writeToRivet(bc: bare.ByteCursor, x: ToRivet): void;
|
|
1040
|
+
declare function encodeToRivet(x: ToRivet, config?: Partial<bare.Config>): Uint8Array;
|
|
1041
|
+
declare function decodeToRivet(bytes: Uint8Array): ToRivet;
|
|
1042
|
+
/**
|
|
1043
|
+
* MARK: To Envoy
|
|
1044
|
+
*/
|
|
1045
|
+
type ProtocolMetadata = {
|
|
1046
|
+
readonly envoyLostThreshold: i64;
|
|
1047
|
+
readonly actorStopThreshold: i64;
|
|
1048
|
+
readonly maxResponsePayloadSize: u64;
|
|
1049
|
+
};
|
|
1050
|
+
declare function readProtocolMetadata(bc: bare.ByteCursor): ProtocolMetadata;
|
|
1051
|
+
declare function writeProtocolMetadata(bc: bare.ByteCursor, x: ProtocolMetadata): void;
|
|
1052
|
+
type ToEnvoyInit = {
|
|
1053
|
+
readonly metadata: ProtocolMetadata;
|
|
1054
|
+
};
|
|
1055
|
+
declare function readToEnvoyInit(bc: bare.ByteCursor): ToEnvoyInit;
|
|
1056
|
+
declare function writeToEnvoyInit(bc: bare.ByteCursor, x: ToEnvoyInit): void;
|
|
1057
|
+
type ToEnvoyCommands = readonly CommandWrapper[];
|
|
1058
|
+
declare function readToEnvoyCommands(bc: bare.ByteCursor): ToEnvoyCommands;
|
|
1059
|
+
declare function writeToEnvoyCommands(bc: bare.ByteCursor, x: ToEnvoyCommands): void;
|
|
1060
|
+
type ToEnvoyAckEvents = {
|
|
1061
|
+
readonly lastEventCheckpoints: readonly ActorCheckpoint[];
|
|
1062
|
+
};
|
|
1063
|
+
declare function readToEnvoyAckEvents(bc: bare.ByteCursor): ToEnvoyAckEvents;
|
|
1064
|
+
declare function writeToEnvoyAckEvents(bc: bare.ByteCursor, x: ToEnvoyAckEvents): void;
|
|
1065
|
+
type ToEnvoyKvResponse = {
|
|
1066
|
+
readonly requestId: u32;
|
|
1067
|
+
readonly data: KvResponseData;
|
|
1068
|
+
};
|
|
1069
|
+
declare function readToEnvoyKvResponse(bc: bare.ByteCursor): ToEnvoyKvResponse;
|
|
1070
|
+
declare function writeToEnvoyKvResponse(bc: bare.ByteCursor, x: ToEnvoyKvResponse): void;
|
|
1071
|
+
type ToEnvoySqliteGetPagesResponse = {
|
|
1072
|
+
readonly requestId: u32;
|
|
1073
|
+
readonly data: SqliteGetPagesResponse;
|
|
1074
|
+
};
|
|
1075
|
+
declare function readToEnvoySqliteGetPagesResponse(bc: bare.ByteCursor): ToEnvoySqliteGetPagesResponse;
|
|
1076
|
+
declare function writeToEnvoySqliteGetPagesResponse(bc: bare.ByteCursor, x: ToEnvoySqliteGetPagesResponse): void;
|
|
1077
|
+
type ToEnvoySqliteCommitResponse = {
|
|
1078
|
+
readonly requestId: u32;
|
|
1079
|
+
readonly data: SqliteCommitResponse;
|
|
1080
|
+
};
|
|
1081
|
+
declare function readToEnvoySqliteCommitResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitResponse;
|
|
1082
|
+
declare function writeToEnvoySqliteCommitResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitResponse): void;
|
|
1083
|
+
type ToEnvoySqliteCommitStageBeginResponse = {
|
|
1084
|
+
readonly requestId: u32;
|
|
1085
|
+
readonly data: SqliteCommitStageBeginResponse;
|
|
1086
|
+
};
|
|
1087
|
+
declare function readToEnvoySqliteCommitStageBeginResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitStageBeginResponse;
|
|
1088
|
+
declare function writeToEnvoySqliteCommitStageBeginResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitStageBeginResponse): void;
|
|
1089
|
+
type ToEnvoySqliteCommitStageSegmentResponse = {
|
|
1090
|
+
readonly requestId: u32;
|
|
1091
|
+
readonly data: SqliteCommitStageSegmentResponse;
|
|
1092
|
+
};
|
|
1093
|
+
declare function readToEnvoySqliteCommitStageSegmentResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitStageSegmentResponse;
|
|
1094
|
+
declare function writeToEnvoySqliteCommitStageSegmentResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitStageSegmentResponse): void;
|
|
1095
|
+
type ToEnvoySqliteCommitFinalizeResponse = {
|
|
1096
|
+
readonly requestId: u32;
|
|
1097
|
+
readonly data: SqliteCommitFinalizeResponse;
|
|
1098
|
+
};
|
|
1099
|
+
declare function readToEnvoySqliteCommitFinalizeResponse(bc: bare.ByteCursor): ToEnvoySqliteCommitFinalizeResponse;
|
|
1100
|
+
declare function writeToEnvoySqliteCommitFinalizeResponse(bc: bare.ByteCursor, x: ToEnvoySqliteCommitFinalizeResponse): void;
|
|
1101
|
+
type ToEnvoySqliteExecResponse = {
|
|
1102
|
+
readonly requestId: u32;
|
|
1103
|
+
readonly data: SqliteExecResponse;
|
|
1104
|
+
};
|
|
1105
|
+
declare function readToEnvoySqliteExecResponse(bc: bare.ByteCursor): ToEnvoySqliteExecResponse;
|
|
1106
|
+
declare function writeToEnvoySqliteExecResponse(bc: bare.ByteCursor, x: ToEnvoySqliteExecResponse): void;
|
|
1107
|
+
type ToEnvoySqliteExecuteResponse = {
|
|
1108
|
+
readonly requestId: u32;
|
|
1109
|
+
readonly data: SqliteExecuteResponse;
|
|
1110
|
+
};
|
|
1111
|
+
declare function readToEnvoySqliteExecuteResponse(bc: bare.ByteCursor): ToEnvoySqliteExecuteResponse;
|
|
1112
|
+
declare function writeToEnvoySqliteExecuteResponse(bc: bare.ByteCursor, x: ToEnvoySqliteExecuteResponse): void;
|
|
1113
|
+
type ToEnvoySqliteExecuteBatchResponse = {
|
|
1114
|
+
readonly requestId: u32;
|
|
1115
|
+
readonly data: SqliteExecuteBatchResponse;
|
|
1116
|
+
};
|
|
1117
|
+
declare function readToEnvoySqliteExecuteBatchResponse(bc: bare.ByteCursor): ToEnvoySqliteExecuteBatchResponse;
|
|
1118
|
+
declare function writeToEnvoySqliteExecuteBatchResponse(bc: bare.ByteCursor, x: ToEnvoySqliteExecuteBatchResponse): void;
|
|
1119
|
+
type ToEnvoy = {
|
|
1120
|
+
readonly tag: "ToEnvoyInit";
|
|
1121
|
+
readonly val: ToEnvoyInit;
|
|
1122
|
+
} | {
|
|
1123
|
+
readonly tag: "ToEnvoyCommands";
|
|
1124
|
+
readonly val: ToEnvoyCommands;
|
|
1125
|
+
} | {
|
|
1126
|
+
readonly tag: "ToEnvoyAckEvents";
|
|
1127
|
+
readonly val: ToEnvoyAckEvents;
|
|
1128
|
+
} | {
|
|
1129
|
+
readonly tag: "ToEnvoyKvResponse";
|
|
1130
|
+
readonly val: ToEnvoyKvResponse;
|
|
1131
|
+
} | {
|
|
1132
|
+
readonly tag: "ToEnvoyTunnelMessage";
|
|
1133
|
+
readonly val: ToEnvoyTunnelMessage;
|
|
1134
|
+
} | {
|
|
1135
|
+
readonly tag: "ToEnvoyPing";
|
|
1136
|
+
readonly val: ToEnvoyPing;
|
|
1137
|
+
} | {
|
|
1138
|
+
readonly tag: "ToEnvoySqliteGetPagesResponse";
|
|
1139
|
+
readonly val: ToEnvoySqliteGetPagesResponse;
|
|
1140
|
+
} | {
|
|
1141
|
+
readonly tag: "ToEnvoySqliteCommitResponse";
|
|
1142
|
+
readonly val: ToEnvoySqliteCommitResponse;
|
|
1143
|
+
} | {
|
|
1144
|
+
readonly tag: "ToEnvoySqliteCommitStageBeginResponse";
|
|
1145
|
+
readonly val: ToEnvoySqliteCommitStageBeginResponse;
|
|
1146
|
+
} | {
|
|
1147
|
+
readonly tag: "ToEnvoySqliteCommitStageSegmentResponse";
|
|
1148
|
+
readonly val: ToEnvoySqliteCommitStageSegmentResponse;
|
|
1149
|
+
} | {
|
|
1150
|
+
readonly tag: "ToEnvoySqliteCommitFinalizeResponse";
|
|
1151
|
+
readonly val: ToEnvoySqliteCommitFinalizeResponse;
|
|
1152
|
+
} | {
|
|
1153
|
+
readonly tag: "ToEnvoySqliteExecResponse";
|
|
1154
|
+
readonly val: ToEnvoySqliteExecResponse;
|
|
1155
|
+
} | {
|
|
1156
|
+
readonly tag: "ToEnvoySqliteExecuteResponse";
|
|
1157
|
+
readonly val: ToEnvoySqliteExecuteResponse;
|
|
1158
|
+
} | {
|
|
1159
|
+
readonly tag: "ToEnvoySqliteExecuteBatchResponse";
|
|
1160
|
+
readonly val: ToEnvoySqliteExecuteBatchResponse;
|
|
1161
|
+
};
|
|
1162
|
+
declare function readToEnvoy(bc: bare.ByteCursor): ToEnvoy;
|
|
1163
|
+
declare function writeToEnvoy(bc: bare.ByteCursor, x: ToEnvoy): void;
|
|
1164
|
+
declare function encodeToEnvoy(x: ToEnvoy, config?: Partial<bare.Config>): Uint8Array;
|
|
1165
|
+
declare function decodeToEnvoy(bytes: Uint8Array): ToEnvoy;
|
|
1166
|
+
/**
|
|
1167
|
+
* MARK: To Envoy Conn
|
|
1168
|
+
*/
|
|
1169
|
+
type ToEnvoyConnPing = {
|
|
1170
|
+
readonly gatewayId: GatewayId;
|
|
1171
|
+
readonly requestId: RequestId;
|
|
1172
|
+
readonly ts: i64;
|
|
1173
|
+
};
|
|
1174
|
+
declare function readToEnvoyConnPing(bc: bare.ByteCursor): ToEnvoyConnPing;
|
|
1175
|
+
declare function writeToEnvoyConnPing(bc: bare.ByteCursor, x: ToEnvoyConnPing): void;
|
|
1176
|
+
type ToEnvoyConnClose = null;
|
|
1177
|
+
type ToEnvoyConn = {
|
|
1178
|
+
readonly tag: "ToEnvoyConnPing";
|
|
1179
|
+
readonly val: ToEnvoyConnPing;
|
|
1180
|
+
} | {
|
|
1181
|
+
readonly tag: "ToEnvoyConnClose";
|
|
1182
|
+
readonly val: ToEnvoyConnClose;
|
|
1183
|
+
} | {
|
|
1184
|
+
readonly tag: "ToEnvoyCommands";
|
|
1185
|
+
readonly val: ToEnvoyCommands;
|
|
1186
|
+
} | {
|
|
1187
|
+
readonly tag: "ToEnvoyAckEvents";
|
|
1188
|
+
readonly val: ToEnvoyAckEvents;
|
|
1189
|
+
} | {
|
|
1190
|
+
readonly tag: "ToEnvoyTunnelMessage";
|
|
1191
|
+
readonly val: ToEnvoyTunnelMessage;
|
|
1192
|
+
};
|
|
1193
|
+
declare function readToEnvoyConn(bc: bare.ByteCursor): ToEnvoyConn;
|
|
1194
|
+
declare function writeToEnvoyConn(bc: bare.ByteCursor, x: ToEnvoyConn): void;
|
|
1195
|
+
declare function encodeToEnvoyConn(x: ToEnvoyConn, config?: Partial<bare.Config>): Uint8Array;
|
|
1196
|
+
declare function decodeToEnvoyConn(bytes: Uint8Array): ToEnvoyConn;
|
|
1197
|
+
/**
|
|
1198
|
+
* MARK: To Gateway
|
|
1199
|
+
*/
|
|
1200
|
+
type ToGatewayPong = {
|
|
1201
|
+
readonly requestId: RequestId;
|
|
1202
|
+
readonly ts: i64;
|
|
1203
|
+
};
|
|
1204
|
+
declare function readToGatewayPong(bc: bare.ByteCursor): ToGatewayPong;
|
|
1205
|
+
declare function writeToGatewayPong(bc: bare.ByteCursor, x: ToGatewayPong): void;
|
|
1206
|
+
type ToGateway = {
|
|
1207
|
+
readonly tag: "ToGatewayPong";
|
|
1208
|
+
readonly val: ToGatewayPong;
|
|
1209
|
+
} | {
|
|
1210
|
+
readonly tag: "ToRivetTunnelMessage";
|
|
1211
|
+
readonly val: ToRivetTunnelMessage;
|
|
1212
|
+
};
|
|
1213
|
+
declare function readToGateway(bc: bare.ByteCursor): ToGateway;
|
|
1214
|
+
declare function writeToGateway(bc: bare.ByteCursor, x: ToGateway): void;
|
|
1215
|
+
declare function encodeToGateway(x: ToGateway, config?: Partial<bare.Config>): Uint8Array;
|
|
1216
|
+
declare function decodeToGateway(bytes: Uint8Array): ToGateway;
|
|
1217
|
+
/**
|
|
1218
|
+
* MARK: To Outbound
|
|
1219
|
+
*/
|
|
1220
|
+
type ToOutboundActorStart = {
|
|
1221
|
+
readonly namespaceId: Id;
|
|
1222
|
+
readonly poolName: string;
|
|
1223
|
+
readonly checkpoint: ActorCheckpoint;
|
|
1224
|
+
readonly actorConfig: ActorConfig;
|
|
1225
|
+
};
|
|
1226
|
+
declare function readToOutboundActorStart(bc: bare.ByteCursor): ToOutboundActorStart;
|
|
1227
|
+
declare function writeToOutboundActorStart(bc: bare.ByteCursor, x: ToOutboundActorStart): void;
|
|
1228
|
+
type ToOutbound = {
|
|
1229
|
+
readonly tag: "ToOutboundActorStart";
|
|
1230
|
+
readonly val: ToOutboundActorStart;
|
|
1231
|
+
};
|
|
1232
|
+
declare function readToOutbound(bc: bare.ByteCursor): ToOutbound;
|
|
1233
|
+
declare function writeToOutbound(bc: bare.ByteCursor, x: ToOutbound): void;
|
|
1234
|
+
declare function encodeToOutbound(x: ToOutbound, config?: Partial<bare.Config>): Uint8Array;
|
|
1235
|
+
declare function decodeToOutbound(bytes: Uint8Array): ToOutbound;
|
|
1236
|
+
declare const VERSION = 8;
|
|
1237
|
+
|
|
1238
|
+
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 HttpStreamAbortReason, HttpStreamAbortReasonKind, 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 SqliteBatchStatement, type SqliteBindParam, type SqliteColumnValue, type SqliteCommitFinalizeOk, type SqliteCommitFinalizeRequest, type SqliteCommitFinalizeResponse, type SqliteCommitOk, type SqliteCommitRequest, type SqliteCommitResponse, type SqliteCommitStageBeginOk, type SqliteCommitStageBeginRequest, type SqliteCommitStageBeginResponse, type SqliteCommitStageSegmentOk, type SqliteCommitStageSegmentRequest, type SqliteCommitStageSegmentResponse, type SqliteDirtyPage, type SqliteErrorResponse, type SqliteExecOk, type SqliteExecRequest, type SqliteExecResponse, type SqliteExecuteBatchOk, type SqliteExecuteBatchRequest, type SqliteExecuteBatchResponse, 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 ToEnvoyRequestBodyCancel, type ToEnvoyRequestChunk, type ToEnvoyRequestStart, type ToEnvoyResponseBodyWindowUpdate, type ToEnvoySqliteCommitFinalizeResponse, type ToEnvoySqliteCommitResponse, type ToEnvoySqliteCommitStageBeginResponse, type ToEnvoySqliteCommitStageSegmentResponse, type ToEnvoySqliteExecResponse, type ToEnvoySqliteExecuteBatchResponse, 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 ToRivetRequestBodyCancel, type ToRivetRequestBodyWindowUpdate, type ToRivetResponseAbort, type ToRivetResponseChunk, type ToRivetResponseStart, type ToRivetSqliteCommitFinalizeRequest, type ToRivetSqliteCommitRequest, type ToRivetSqliteCommitStageBeginRequest, type ToRivetSqliteCommitStageSegmentRequest, type ToRivetSqliteExecRequest, type ToRivetSqliteExecuteBatchRequest, 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, readHttpStreamAbortReason, readHttpStreamAbortReasonKind, readId, readJson, readKvDeleteRangeRequest, readKvDeleteRequest, readKvErrorResponse, readKvGetRequest, readKvGetResponse, readKvKey, readKvListPrefixQuery, readKvListQuery, readKvListRangeQuery, readKvListRequest, readKvListResponse, readKvMetadata, readKvPutRequest, readKvRequestData, readKvResponseData, readKvValue, readMessageId, readMessageIndex, readPreloadedKv, readPreloadedKvEntry, readProtocolMetadata, readRequestId, readSqliteBatchStatement, readSqliteBindParam, readSqliteColumnValue, readSqliteCommitFinalizeOk, readSqliteCommitFinalizeRequest, readSqliteCommitFinalizeResponse, readSqliteCommitOk, readSqliteCommitRequest, readSqliteCommitResponse, readSqliteCommitStageBeginOk, readSqliteCommitStageBeginRequest, readSqliteCommitStageBeginResponse, readSqliteCommitStageSegmentOk, readSqliteCommitStageSegmentRequest, readSqliteCommitStageSegmentResponse, readSqliteDirtyPage, readSqliteErrorResponse, readSqliteExecOk, readSqliteExecRequest, readSqliteExecResponse, readSqliteExecuteBatchOk, readSqliteExecuteBatchRequest, readSqliteExecuteBatchResponse, 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, readToEnvoyRequestAbort, readToEnvoyRequestChunk, readToEnvoyRequestStart, readToEnvoyResponseBodyWindowUpdate, readToEnvoySqliteCommitFinalizeResponse, readToEnvoySqliteCommitResponse, readToEnvoySqliteCommitStageBeginResponse, readToEnvoySqliteCommitStageSegmentResponse, readToEnvoySqliteExecResponse, readToEnvoySqliteExecuteBatchResponse, readToEnvoySqliteExecuteResponse, readToEnvoySqliteGetPagesResponse, readToEnvoyTunnelMessage, readToEnvoyTunnelMessageKind, readToEnvoyWebSocketClose, readToEnvoyWebSocketMessage, readToEnvoyWebSocketOpen, readToGateway, readToGatewayPong, readToOutbound, readToOutboundActorStart, readToRivet, readToRivetAckCommands, readToRivetEvents, readToRivetKvRequest, readToRivetMetadata, readToRivetPong, readToRivetRequestBodyWindowUpdate, readToRivetResponseAbort, readToRivetResponseChunk, readToRivetResponseStart, readToRivetSqliteCommitFinalizeRequest, readToRivetSqliteCommitRequest, readToRivetSqliteCommitStageBeginRequest, readToRivetSqliteCommitStageSegmentRequest, readToRivetSqliteExecRequest, readToRivetSqliteExecuteBatchRequest, 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, writeHttpStreamAbortReason, writeHttpStreamAbortReasonKind, writeId, writeJson, writeKvDeleteRangeRequest, writeKvDeleteRequest, writeKvErrorResponse, writeKvGetRequest, writeKvGetResponse, writeKvKey, writeKvListPrefixQuery, writeKvListQuery, writeKvListRangeQuery, writeKvListRequest, writeKvListResponse, writeKvMetadata, writeKvPutRequest, writeKvRequestData, writeKvResponseData, writeKvValue, writeMessageId, writeMessageIndex, writePreloadedKv, writePreloadedKvEntry, writeProtocolMetadata, writeRequestId, writeSqliteBatchStatement, writeSqliteBindParam, writeSqliteColumnValue, writeSqliteCommitFinalizeOk, writeSqliteCommitFinalizeRequest, writeSqliteCommitFinalizeResponse, writeSqliteCommitOk, writeSqliteCommitRequest, writeSqliteCommitResponse, writeSqliteCommitStageBeginOk, writeSqliteCommitStageBeginRequest, writeSqliteCommitStageBeginResponse, writeSqliteCommitStageSegmentOk, writeSqliteCommitStageSegmentRequest, writeSqliteCommitStageSegmentResponse, writeSqliteDirtyPage, writeSqliteErrorResponse, writeSqliteExecOk, writeSqliteExecRequest, writeSqliteExecResponse, writeSqliteExecuteBatchOk, writeSqliteExecuteBatchRequest, writeSqliteExecuteBatchResponse, 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, writeToEnvoyRequestAbort, writeToEnvoyRequestChunk, writeToEnvoyRequestStart, writeToEnvoyResponseBodyWindowUpdate, writeToEnvoySqliteCommitFinalizeResponse, writeToEnvoySqliteCommitResponse, writeToEnvoySqliteCommitStageBeginResponse, writeToEnvoySqliteCommitStageSegmentResponse, writeToEnvoySqliteExecResponse, writeToEnvoySqliteExecuteBatchResponse, writeToEnvoySqliteExecuteResponse, writeToEnvoySqliteGetPagesResponse, writeToEnvoyTunnelMessage, writeToEnvoyTunnelMessageKind, writeToEnvoyWebSocketClose, writeToEnvoyWebSocketMessage, writeToEnvoyWebSocketOpen, writeToGateway, writeToGatewayPong, writeToOutbound, writeToOutboundActorStart, writeToRivet, writeToRivetAckCommands, writeToRivetEvents, writeToRivetKvRequest, writeToRivetMetadata, writeToRivetPong, writeToRivetRequestBodyWindowUpdate, writeToRivetResponseAbort, writeToRivetResponseChunk, writeToRivetResponseStart, writeToRivetSqliteCommitFinalizeRequest, writeToRivetSqliteCommitRequest, writeToRivetSqliteCommitStageBeginRequest, writeToRivetSqliteCommitStageSegmentRequest, writeToRivetSqliteExecRequest, writeToRivetSqliteExecuteBatchRequest, writeToRivetSqliteExecuteRequest, writeToRivetSqliteGetPagesRequest, writeToRivetTunnelMessage, writeToRivetTunnelMessageKind, writeToRivetWebSocketClose, writeToRivetWebSocketMessage, writeToRivetWebSocketMessageAck, writeToRivetWebSocketOpen };
|