@secure-exec/core 0.0.0-split-runtime-preview.7b0dded
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/README.md +7 -0
- package/dist/binary.d.ts +4 -0
- package/dist/binary.js +25 -0
- package/dist/bytes.d.ts +2 -0
- package/dist/bytes.js +6 -0
- package/dist/callbacks.d.ts +41 -0
- package/dist/callbacks.js +94 -0
- package/dist/cargo.d.ts +2 -0
- package/dist/cargo.js +142 -0
- package/dist/correlation.d.ts +10 -0
- package/dist/correlation.js +49 -0
- package/dist/descriptors.d.ts +34 -0
- package/dist/descriptors.js +37 -0
- package/dist/event-buffer.d.ts +90 -0
- package/dist/event-buffer.js +313 -0
- package/dist/ext.d.ts +7 -0
- package/dist/ext.js +13 -0
- package/dist/filesystem.d.ts +41 -0
- package/dist/filesystem.js +70 -0
- package/dist/frame-payload-codec.d.ts +8 -0
- package/dist/frame-payload-codec.js +14 -0
- package/dist/frame-rpc.d.ts +38 -0
- package/dist/frame-rpc.js +73 -0
- package/dist/frame-stream.d.ts +27 -0
- package/dist/frame-stream.js +99 -0
- package/dist/framing.d.ts +7 -0
- package/dist/framing.js +22 -0
- package/dist/generated-protocol.d.ts +1038 -0
- package/dist/generated-protocol.js +2879 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +23 -0
- package/dist/json.d.ts +2 -0
- package/dist/json.js +20 -0
- package/dist/kernel-proxy.d.ts +137 -0
- package/dist/kernel-proxy.js +1725 -0
- package/dist/native-client.d.ts +41 -0
- package/dist/native-client.js +124 -0
- package/dist/numbers.d.ts +1 -0
- package/dist/numbers.js +8 -0
- package/dist/ownership.d.ts +18 -0
- package/dist/ownership.js +77 -0
- package/dist/permissions.d.ts +29 -0
- package/dist/permissions.js +68 -0
- package/dist/process.d.ts +35 -0
- package/dist/process.js +125 -0
- package/dist/protocol-client.d.ts +46 -0
- package/dist/protocol-client.js +180 -0
- package/dist/protocol-frames.d.ts +68 -0
- package/dist/protocol-frames.js +139 -0
- package/dist/protocol-maps.d.ts +28 -0
- package/dist/protocol-maps.js +217 -0
- package/dist/protocol-schema.d.ts +10 -0
- package/dist/protocol-schema.js +11 -0
- package/dist/request-payloads.d.ts +139 -0
- package/dist/request-payloads.js +213 -0
- package/dist/response-payloads.d.ts +107 -0
- package/dist/response-payloads.js +161 -0
- package/dist/sidecar-client.d.ts +250 -0
- package/dist/sidecar-client.js +802 -0
- package/dist/state.d.ts +40 -0
- package/dist/state.js +44 -0
- package/dist/test-runtime.d.ts +483 -0
- package/dist/test-runtime.js +1985 -0
- package/fixtures/alpine-defaults.json +520 -0
- package/fixtures/base-filesystem.json +528 -0
- package/package.json +188 -0
|
@@ -0,0 +1,1038 @@
|
|
|
1
|
+
import * as bare from "@rivetkit/bare-ts";
|
|
2
|
+
export type i32 = number;
|
|
3
|
+
export type i64 = bigint;
|
|
4
|
+
export type u16 = number;
|
|
5
|
+
export type u32 = number;
|
|
6
|
+
export type u64 = bigint;
|
|
7
|
+
export type JsonUtf8 = string;
|
|
8
|
+
export declare function readJsonUtf8(bc: bare.ByteCursor): JsonUtf8;
|
|
9
|
+
export declare function writeJsonUtf8(bc: bare.ByteCursor, x: JsonUtf8): void;
|
|
10
|
+
export type ProtocolSchema = {
|
|
11
|
+
readonly name: string;
|
|
12
|
+
readonly version: u16;
|
|
13
|
+
};
|
|
14
|
+
export declare function readProtocolSchema(bc: bare.ByteCursor): ProtocolSchema;
|
|
15
|
+
export declare function writeProtocolSchema(bc: bare.ByteCursor, x: ProtocolSchema): void;
|
|
16
|
+
export type RequestId = i64;
|
|
17
|
+
export declare function readRequestId(bc: bare.ByteCursor): RequestId;
|
|
18
|
+
export declare function writeRequestId(bc: bare.ByteCursor, x: RequestId): void;
|
|
19
|
+
export type ExtEnvelope = {
|
|
20
|
+
readonly namespace: string;
|
|
21
|
+
readonly payload: ArrayBuffer;
|
|
22
|
+
};
|
|
23
|
+
export declare function readExtEnvelope(bc: bare.ByteCursor): ExtEnvelope;
|
|
24
|
+
export declare function writeExtEnvelope(bc: bare.ByteCursor, x: ExtEnvelope): void;
|
|
25
|
+
export type ConnectionOwnership = {
|
|
26
|
+
readonly connectionId: string;
|
|
27
|
+
};
|
|
28
|
+
export declare function readConnectionOwnership(bc: bare.ByteCursor): ConnectionOwnership;
|
|
29
|
+
export declare function writeConnectionOwnership(bc: bare.ByteCursor, x: ConnectionOwnership): void;
|
|
30
|
+
export type SessionOwnership = {
|
|
31
|
+
readonly connectionId: string;
|
|
32
|
+
readonly sessionId: string;
|
|
33
|
+
};
|
|
34
|
+
export declare function readSessionOwnership(bc: bare.ByteCursor): SessionOwnership;
|
|
35
|
+
export declare function writeSessionOwnership(bc: bare.ByteCursor, x: SessionOwnership): void;
|
|
36
|
+
export type VmOwnership = {
|
|
37
|
+
readonly connectionId: string;
|
|
38
|
+
readonly sessionId: string;
|
|
39
|
+
readonly vmId: string;
|
|
40
|
+
};
|
|
41
|
+
export declare function readVmOwnership(bc: bare.ByteCursor): VmOwnership;
|
|
42
|
+
export declare function writeVmOwnership(bc: bare.ByteCursor, x: VmOwnership): void;
|
|
43
|
+
export type OwnershipScope = {
|
|
44
|
+
readonly tag: "ConnectionOwnership";
|
|
45
|
+
readonly val: ConnectionOwnership;
|
|
46
|
+
} | {
|
|
47
|
+
readonly tag: "SessionOwnership";
|
|
48
|
+
readonly val: SessionOwnership;
|
|
49
|
+
} | {
|
|
50
|
+
readonly tag: "VmOwnership";
|
|
51
|
+
readonly val: VmOwnership;
|
|
52
|
+
};
|
|
53
|
+
export declare function readOwnershipScope(bc: bare.ByteCursor): OwnershipScope;
|
|
54
|
+
export declare function writeOwnershipScope(bc: bare.ByteCursor, x: OwnershipScope): void;
|
|
55
|
+
export type AuthenticateRequest = {
|
|
56
|
+
readonly clientName: string;
|
|
57
|
+
readonly authToken: string;
|
|
58
|
+
readonly protocolVersion: u16;
|
|
59
|
+
readonly bridgeVersion: u32;
|
|
60
|
+
};
|
|
61
|
+
export declare function readAuthenticateRequest(bc: bare.ByteCursor): AuthenticateRequest;
|
|
62
|
+
export declare function writeAuthenticateRequest(bc: bare.ByteCursor, x: AuthenticateRequest): void;
|
|
63
|
+
export type SidecarPlacementShared = {
|
|
64
|
+
readonly pool: string | null;
|
|
65
|
+
};
|
|
66
|
+
export declare function readSidecarPlacementShared(bc: bare.ByteCursor): SidecarPlacementShared;
|
|
67
|
+
export declare function writeSidecarPlacementShared(bc: bare.ByteCursor, x: SidecarPlacementShared): void;
|
|
68
|
+
export type SidecarPlacementExplicit = {
|
|
69
|
+
readonly sidecarId: string;
|
|
70
|
+
};
|
|
71
|
+
export declare function readSidecarPlacementExplicit(bc: bare.ByteCursor): SidecarPlacementExplicit;
|
|
72
|
+
export declare function writeSidecarPlacementExplicit(bc: bare.ByteCursor, x: SidecarPlacementExplicit): void;
|
|
73
|
+
export type SidecarPlacement = {
|
|
74
|
+
readonly tag: "SidecarPlacementShared";
|
|
75
|
+
readonly val: SidecarPlacementShared;
|
|
76
|
+
} | {
|
|
77
|
+
readonly tag: "SidecarPlacementExplicit";
|
|
78
|
+
readonly val: SidecarPlacementExplicit;
|
|
79
|
+
};
|
|
80
|
+
export declare function readSidecarPlacement(bc: bare.ByteCursor): SidecarPlacement;
|
|
81
|
+
export declare function writeSidecarPlacement(bc: bare.ByteCursor, x: SidecarPlacement): void;
|
|
82
|
+
export type OpenSessionRequest = {
|
|
83
|
+
readonly placement: SidecarPlacement;
|
|
84
|
+
readonly metadata: ReadonlyMap<string, string>;
|
|
85
|
+
};
|
|
86
|
+
export declare function readOpenSessionRequest(bc: bare.ByteCursor): OpenSessionRequest;
|
|
87
|
+
export declare function writeOpenSessionRequest(bc: bare.ByteCursor, x: OpenSessionRequest): void;
|
|
88
|
+
export declare enum GuestRuntimeKind {
|
|
89
|
+
JavaScript = "JavaScript",
|
|
90
|
+
Python = "Python",
|
|
91
|
+
WebAssembly = "WebAssembly"
|
|
92
|
+
}
|
|
93
|
+
export declare function readGuestRuntimeKind(bc: bare.ByteCursor): GuestRuntimeKind;
|
|
94
|
+
export declare function writeGuestRuntimeKind(bc: bare.ByteCursor, x: GuestRuntimeKind): void;
|
|
95
|
+
export declare enum RootFilesystemMode {
|
|
96
|
+
Ephemeral = "Ephemeral",
|
|
97
|
+
ReadOnly = "ReadOnly"
|
|
98
|
+
}
|
|
99
|
+
export declare function readRootFilesystemMode(bc: bare.ByteCursor): RootFilesystemMode;
|
|
100
|
+
export declare function writeRootFilesystemMode(bc: bare.ByteCursor, x: RootFilesystemMode): void;
|
|
101
|
+
export declare enum RootFilesystemEntryKind {
|
|
102
|
+
File = "File",
|
|
103
|
+
Directory = "Directory",
|
|
104
|
+
Symlink = "Symlink"
|
|
105
|
+
}
|
|
106
|
+
export declare function readRootFilesystemEntryKind(bc: bare.ByteCursor): RootFilesystemEntryKind;
|
|
107
|
+
export declare function writeRootFilesystemEntryKind(bc: bare.ByteCursor, x: RootFilesystemEntryKind): void;
|
|
108
|
+
export declare enum RootFilesystemEntryEncoding {
|
|
109
|
+
UtF8 = "UtF8",
|
|
110
|
+
BasE64 = "BasE64"
|
|
111
|
+
}
|
|
112
|
+
export declare function readRootFilesystemEntryEncoding(bc: bare.ByteCursor): RootFilesystemEntryEncoding;
|
|
113
|
+
export declare function writeRootFilesystemEntryEncoding(bc: bare.ByteCursor, x: RootFilesystemEntryEncoding): void;
|
|
114
|
+
export type RootFilesystemEntry = {
|
|
115
|
+
readonly path: string;
|
|
116
|
+
readonly kind: RootFilesystemEntryKind;
|
|
117
|
+
readonly mode: u32 | null;
|
|
118
|
+
readonly uid: u32 | null;
|
|
119
|
+
readonly gid: u32 | null;
|
|
120
|
+
readonly content: string | null;
|
|
121
|
+
readonly encoding: RootFilesystemEntryEncoding | null;
|
|
122
|
+
readonly target: string | null;
|
|
123
|
+
readonly executable: boolean;
|
|
124
|
+
};
|
|
125
|
+
export declare function readRootFilesystemEntry(bc: bare.ByteCursor): RootFilesystemEntry;
|
|
126
|
+
export declare function writeRootFilesystemEntry(bc: bare.ByteCursor, x: RootFilesystemEntry): void;
|
|
127
|
+
export type SnapshotRootFilesystemLower = {
|
|
128
|
+
readonly entries: readonly RootFilesystemEntry[];
|
|
129
|
+
};
|
|
130
|
+
export declare function readSnapshotRootFilesystemLower(bc: bare.ByteCursor): SnapshotRootFilesystemLower;
|
|
131
|
+
export declare function writeSnapshotRootFilesystemLower(bc: bare.ByteCursor, x: SnapshotRootFilesystemLower): void;
|
|
132
|
+
export type BundledBaseFilesystemLower = null;
|
|
133
|
+
export type RootFilesystemLowerDescriptor = {
|
|
134
|
+
readonly tag: "SnapshotRootFilesystemLower";
|
|
135
|
+
readonly val: SnapshotRootFilesystemLower;
|
|
136
|
+
} | {
|
|
137
|
+
readonly tag: "BundledBaseFilesystemLower";
|
|
138
|
+
readonly val: BundledBaseFilesystemLower;
|
|
139
|
+
};
|
|
140
|
+
export declare function readRootFilesystemLowerDescriptor(bc: bare.ByteCursor): RootFilesystemLowerDescriptor;
|
|
141
|
+
export declare function writeRootFilesystemLowerDescriptor(bc: bare.ByteCursor, x: RootFilesystemLowerDescriptor): void;
|
|
142
|
+
export type RootFilesystemDescriptor = {
|
|
143
|
+
readonly mode: RootFilesystemMode;
|
|
144
|
+
readonly disableDefaultBaseLayer: boolean;
|
|
145
|
+
readonly lowers: readonly RootFilesystemLowerDescriptor[];
|
|
146
|
+
readonly bootstrapEntries: readonly RootFilesystemEntry[];
|
|
147
|
+
};
|
|
148
|
+
export declare function readRootFilesystemDescriptor(bc: bare.ByteCursor): RootFilesystemDescriptor;
|
|
149
|
+
export declare function writeRootFilesystemDescriptor(bc: bare.ByteCursor, x: RootFilesystemDescriptor): void;
|
|
150
|
+
export declare enum PermissionMode {
|
|
151
|
+
Allow = "Allow",
|
|
152
|
+
Ask = "Ask",
|
|
153
|
+
Deny = "Deny"
|
|
154
|
+
}
|
|
155
|
+
export declare function readPermissionMode(bc: bare.ByteCursor): PermissionMode;
|
|
156
|
+
export declare function writePermissionMode(bc: bare.ByteCursor, x: PermissionMode): void;
|
|
157
|
+
export type FsPermissionRule = {
|
|
158
|
+
readonly mode: PermissionMode;
|
|
159
|
+
readonly operations: readonly string[];
|
|
160
|
+
readonly paths: readonly string[];
|
|
161
|
+
};
|
|
162
|
+
export declare function readFsPermissionRule(bc: bare.ByteCursor): FsPermissionRule;
|
|
163
|
+
export declare function writeFsPermissionRule(bc: bare.ByteCursor, x: FsPermissionRule): void;
|
|
164
|
+
export type FsPermissionRuleSet = {
|
|
165
|
+
readonly default: PermissionMode | null;
|
|
166
|
+
readonly rules: readonly FsPermissionRule[];
|
|
167
|
+
};
|
|
168
|
+
export declare function readFsPermissionRuleSet(bc: bare.ByteCursor): FsPermissionRuleSet;
|
|
169
|
+
export declare function writeFsPermissionRuleSet(bc: bare.ByteCursor, x: FsPermissionRuleSet): void;
|
|
170
|
+
export type FsPermissionScope = {
|
|
171
|
+
readonly tag: "PermissionMode";
|
|
172
|
+
readonly val: PermissionMode;
|
|
173
|
+
} | {
|
|
174
|
+
readonly tag: "FsPermissionRuleSet";
|
|
175
|
+
readonly val: FsPermissionRuleSet;
|
|
176
|
+
};
|
|
177
|
+
export declare function readFsPermissionScope(bc: bare.ByteCursor): FsPermissionScope;
|
|
178
|
+
export declare function writeFsPermissionScope(bc: bare.ByteCursor, x: FsPermissionScope): void;
|
|
179
|
+
export type PatternPermissionRule = {
|
|
180
|
+
readonly mode: PermissionMode;
|
|
181
|
+
readonly operations: readonly string[];
|
|
182
|
+
readonly patterns: readonly string[];
|
|
183
|
+
};
|
|
184
|
+
export declare function readPatternPermissionRule(bc: bare.ByteCursor): PatternPermissionRule;
|
|
185
|
+
export declare function writePatternPermissionRule(bc: bare.ByteCursor, x: PatternPermissionRule): void;
|
|
186
|
+
export type PatternPermissionRuleSet = {
|
|
187
|
+
readonly default: PermissionMode | null;
|
|
188
|
+
readonly rules: readonly PatternPermissionRule[];
|
|
189
|
+
};
|
|
190
|
+
export declare function readPatternPermissionRuleSet(bc: bare.ByteCursor): PatternPermissionRuleSet;
|
|
191
|
+
export declare function writePatternPermissionRuleSet(bc: bare.ByteCursor, x: PatternPermissionRuleSet): void;
|
|
192
|
+
export type PatternPermissionScope = {
|
|
193
|
+
readonly tag: "PermissionMode";
|
|
194
|
+
readonly val: PermissionMode;
|
|
195
|
+
} | {
|
|
196
|
+
readonly tag: "PatternPermissionRuleSet";
|
|
197
|
+
readonly val: PatternPermissionRuleSet;
|
|
198
|
+
};
|
|
199
|
+
export declare function readPatternPermissionScope(bc: bare.ByteCursor): PatternPermissionScope;
|
|
200
|
+
export declare function writePatternPermissionScope(bc: bare.ByteCursor, x: PatternPermissionScope): void;
|
|
201
|
+
export type PermissionsPolicy = {
|
|
202
|
+
readonly fs: FsPermissionScope | null;
|
|
203
|
+
readonly network: PatternPermissionScope | null;
|
|
204
|
+
readonly childProcess: PatternPermissionScope | null;
|
|
205
|
+
readonly process: PatternPermissionScope | null;
|
|
206
|
+
readonly env: PatternPermissionScope | null;
|
|
207
|
+
readonly tool: PatternPermissionScope | null;
|
|
208
|
+
};
|
|
209
|
+
export declare function readPermissionsPolicy(bc: bare.ByteCursor): PermissionsPolicy;
|
|
210
|
+
export declare function writePermissionsPolicy(bc: bare.ByteCursor, x: PermissionsPolicy): void;
|
|
211
|
+
export type CreateVmRequest = {
|
|
212
|
+
readonly runtime: GuestRuntimeKind;
|
|
213
|
+
readonly metadata: ReadonlyMap<string, string>;
|
|
214
|
+
readonly rootFilesystem: RootFilesystemDescriptor;
|
|
215
|
+
readonly permissions: PermissionsPolicy | null;
|
|
216
|
+
};
|
|
217
|
+
export declare function readCreateVmRequest(bc: bare.ByteCursor): CreateVmRequest;
|
|
218
|
+
export declare function writeCreateVmRequest(bc: bare.ByteCursor, x: CreateVmRequest): void;
|
|
219
|
+
export declare enum DisposeReason {
|
|
220
|
+
Requested = "Requested",
|
|
221
|
+
ConnectionClosed = "ConnectionClosed",
|
|
222
|
+
HostShutdown = "HostShutdown"
|
|
223
|
+
}
|
|
224
|
+
export declare function readDisposeReason(bc: bare.ByteCursor): DisposeReason;
|
|
225
|
+
export declare function writeDisposeReason(bc: bare.ByteCursor, x: DisposeReason): void;
|
|
226
|
+
export type DisposeVmRequest = {
|
|
227
|
+
readonly reason: DisposeReason;
|
|
228
|
+
};
|
|
229
|
+
export declare function readDisposeVmRequest(bc: bare.ByteCursor): DisposeVmRequest;
|
|
230
|
+
export declare function writeDisposeVmRequest(bc: bare.ByteCursor, x: DisposeVmRequest): void;
|
|
231
|
+
export type BootstrapRootFilesystemRequest = {
|
|
232
|
+
readonly entries: readonly RootFilesystemEntry[];
|
|
233
|
+
};
|
|
234
|
+
export declare function readBootstrapRootFilesystemRequest(bc: bare.ByteCursor): BootstrapRootFilesystemRequest;
|
|
235
|
+
export declare function writeBootstrapRootFilesystemRequest(bc: bare.ByteCursor, x: BootstrapRootFilesystemRequest): void;
|
|
236
|
+
export type MountPluginDescriptor = {
|
|
237
|
+
readonly id: string;
|
|
238
|
+
readonly config: JsonUtf8;
|
|
239
|
+
};
|
|
240
|
+
export declare function readMountPluginDescriptor(bc: bare.ByteCursor): MountPluginDescriptor;
|
|
241
|
+
export declare function writeMountPluginDescriptor(bc: bare.ByteCursor, x: MountPluginDescriptor): void;
|
|
242
|
+
export type MountDescriptor = {
|
|
243
|
+
readonly guestPath: string;
|
|
244
|
+
readonly readOnly: boolean;
|
|
245
|
+
readonly plugin: MountPluginDescriptor;
|
|
246
|
+
};
|
|
247
|
+
export declare function readMountDescriptor(bc: bare.ByteCursor): MountDescriptor;
|
|
248
|
+
export declare function writeMountDescriptor(bc: bare.ByteCursor, x: MountDescriptor): void;
|
|
249
|
+
export type SoftwareDescriptor = {
|
|
250
|
+
readonly packageName: string;
|
|
251
|
+
readonly root: string;
|
|
252
|
+
};
|
|
253
|
+
export declare function readSoftwareDescriptor(bc: bare.ByteCursor): SoftwareDescriptor;
|
|
254
|
+
export declare function writeSoftwareDescriptor(bc: bare.ByteCursor, x: SoftwareDescriptor): void;
|
|
255
|
+
export type ProjectedModuleDescriptor = {
|
|
256
|
+
readonly packageName: string;
|
|
257
|
+
readonly entrypoint: string;
|
|
258
|
+
};
|
|
259
|
+
export declare function readProjectedModuleDescriptor(bc: bare.ByteCursor): ProjectedModuleDescriptor;
|
|
260
|
+
export declare function writeProjectedModuleDescriptor(bc: bare.ByteCursor, x: ProjectedModuleDescriptor): void;
|
|
261
|
+
export declare enum WasmPermissionTier {
|
|
262
|
+
Full = "Full",
|
|
263
|
+
ReadWrite = "ReadWrite",
|
|
264
|
+
ReadOnly = "ReadOnly",
|
|
265
|
+
Isolated = "Isolated"
|
|
266
|
+
}
|
|
267
|
+
export declare function readWasmPermissionTier(bc: bare.ByteCursor): WasmPermissionTier;
|
|
268
|
+
export declare function writeWasmPermissionTier(bc: bare.ByteCursor, x: WasmPermissionTier): void;
|
|
269
|
+
export type ConfigureVmRequest = {
|
|
270
|
+
readonly mounts: readonly MountDescriptor[];
|
|
271
|
+
readonly software: readonly SoftwareDescriptor[];
|
|
272
|
+
readonly permissions: PermissionsPolicy | null;
|
|
273
|
+
readonly moduleAccessCwd: string | null;
|
|
274
|
+
readonly instructions: readonly string[];
|
|
275
|
+
readonly projectedModules: readonly ProjectedModuleDescriptor[];
|
|
276
|
+
readonly commandPermissions: ReadonlyMap<string, WasmPermissionTier>;
|
|
277
|
+
readonly allowedNodeBuiltins: readonly string[];
|
|
278
|
+
readonly loopbackExemptPorts: Uint16Array;
|
|
279
|
+
};
|
|
280
|
+
export declare function readConfigureVmRequest(bc: bare.ByteCursor): ConfigureVmRequest;
|
|
281
|
+
export declare function writeConfigureVmRequest(bc: bare.ByteCursor, x: ConfigureVmRequest): void;
|
|
282
|
+
export type RegisteredHostCallbackExample = {
|
|
283
|
+
readonly description: string;
|
|
284
|
+
readonly input: JsonUtf8;
|
|
285
|
+
};
|
|
286
|
+
export declare function readRegisteredHostCallbackExample(bc: bare.ByteCursor): RegisteredHostCallbackExample;
|
|
287
|
+
export declare function writeRegisteredHostCallbackExample(bc: bare.ByteCursor, x: RegisteredHostCallbackExample): void;
|
|
288
|
+
export type RegisteredHostCallbackDefinition = {
|
|
289
|
+
readonly description: string;
|
|
290
|
+
readonly inputSchema: JsonUtf8;
|
|
291
|
+
readonly timeoutMs: u64 | null;
|
|
292
|
+
readonly examples: readonly RegisteredHostCallbackExample[];
|
|
293
|
+
};
|
|
294
|
+
export declare function readRegisteredHostCallbackDefinition(bc: bare.ByteCursor): RegisteredHostCallbackDefinition;
|
|
295
|
+
export declare function writeRegisteredHostCallbackDefinition(bc: bare.ByteCursor, x: RegisteredHostCallbackDefinition): void;
|
|
296
|
+
export type RegisterHostCallbacksRequest = {
|
|
297
|
+
readonly name: string;
|
|
298
|
+
readonly description: string;
|
|
299
|
+
readonly commandAliases: readonly string[];
|
|
300
|
+
readonly registryCommandAliases: readonly string[];
|
|
301
|
+
readonly callbacks: ReadonlyMap<string, RegisteredHostCallbackDefinition>;
|
|
302
|
+
};
|
|
303
|
+
export declare function readRegisterHostCallbacksRequest(bc: bare.ByteCursor): RegisterHostCallbacksRequest;
|
|
304
|
+
export declare function writeRegisterHostCallbacksRequest(bc: bare.ByteCursor, x: RegisterHostCallbacksRequest): void;
|
|
305
|
+
export type CreateLayerRequest = null;
|
|
306
|
+
export type SealLayerRequest = {
|
|
307
|
+
readonly layerId: string;
|
|
308
|
+
};
|
|
309
|
+
export declare function readSealLayerRequest(bc: bare.ByteCursor): SealLayerRequest;
|
|
310
|
+
export declare function writeSealLayerRequest(bc: bare.ByteCursor, x: SealLayerRequest): void;
|
|
311
|
+
export type ImportSnapshotRequest = {
|
|
312
|
+
readonly entries: readonly RootFilesystemEntry[];
|
|
313
|
+
};
|
|
314
|
+
export declare function readImportSnapshotRequest(bc: bare.ByteCursor): ImportSnapshotRequest;
|
|
315
|
+
export declare function writeImportSnapshotRequest(bc: bare.ByteCursor, x: ImportSnapshotRequest): void;
|
|
316
|
+
export type ExportSnapshotRequest = {
|
|
317
|
+
readonly layerId: string;
|
|
318
|
+
};
|
|
319
|
+
export declare function readExportSnapshotRequest(bc: bare.ByteCursor): ExportSnapshotRequest;
|
|
320
|
+
export declare function writeExportSnapshotRequest(bc: bare.ByteCursor, x: ExportSnapshotRequest): void;
|
|
321
|
+
export type CreateOverlayRequest = {
|
|
322
|
+
readonly mode: RootFilesystemMode;
|
|
323
|
+
readonly upperLayerId: string | null;
|
|
324
|
+
readonly lowerLayerIds: readonly string[];
|
|
325
|
+
};
|
|
326
|
+
export declare function readCreateOverlayRequest(bc: bare.ByteCursor): CreateOverlayRequest;
|
|
327
|
+
export declare function writeCreateOverlayRequest(bc: bare.ByteCursor, x: CreateOverlayRequest): void;
|
|
328
|
+
export declare enum GuestFilesystemOperation {
|
|
329
|
+
ReadFile = "ReadFile",
|
|
330
|
+
WriteFile = "WriteFile",
|
|
331
|
+
CreateDir = "CreateDir",
|
|
332
|
+
Mkdir = "Mkdir",
|
|
333
|
+
Exists = "Exists",
|
|
334
|
+
Stat = "Stat",
|
|
335
|
+
Lstat = "Lstat",
|
|
336
|
+
ReadDir = "ReadDir",
|
|
337
|
+
RemoveFile = "RemoveFile",
|
|
338
|
+
RemoveDir = "RemoveDir",
|
|
339
|
+
Rename = "Rename",
|
|
340
|
+
Realpath = "Realpath",
|
|
341
|
+
Symlink = "Symlink",
|
|
342
|
+
ReadLink = "ReadLink",
|
|
343
|
+
Link = "Link",
|
|
344
|
+
Chmod = "Chmod",
|
|
345
|
+
Chown = "Chown",
|
|
346
|
+
Utimes = "Utimes",
|
|
347
|
+
Truncate = "Truncate",
|
|
348
|
+
Pread = "Pread"
|
|
349
|
+
}
|
|
350
|
+
export declare function readGuestFilesystemOperation(bc: bare.ByteCursor): GuestFilesystemOperation;
|
|
351
|
+
export declare function writeGuestFilesystemOperation(bc: bare.ByteCursor, x: GuestFilesystemOperation): void;
|
|
352
|
+
export type GuestFilesystemCallRequest = {
|
|
353
|
+
readonly operation: GuestFilesystemOperation;
|
|
354
|
+
readonly path: string;
|
|
355
|
+
readonly destinationPath: string | null;
|
|
356
|
+
readonly target: string | null;
|
|
357
|
+
readonly content: string | null;
|
|
358
|
+
readonly encoding: RootFilesystemEntryEncoding | null;
|
|
359
|
+
readonly recursive: boolean;
|
|
360
|
+
readonly mode: u32 | null;
|
|
361
|
+
readonly uid: u32 | null;
|
|
362
|
+
readonly gid: u32 | null;
|
|
363
|
+
readonly atimeMs: u64 | null;
|
|
364
|
+
readonly mtimeMs: u64 | null;
|
|
365
|
+
readonly len: u64 | null;
|
|
366
|
+
readonly offset: u64 | null;
|
|
367
|
+
};
|
|
368
|
+
export declare function readGuestFilesystemCallRequest(bc: bare.ByteCursor): GuestFilesystemCallRequest;
|
|
369
|
+
export declare function writeGuestFilesystemCallRequest(bc: bare.ByteCursor, x: GuestFilesystemCallRequest): void;
|
|
370
|
+
export type SnapshotRootFilesystemRequest = null;
|
|
371
|
+
export type ExecuteRequest = {
|
|
372
|
+
readonly processId: string;
|
|
373
|
+
readonly command: string | null;
|
|
374
|
+
readonly runtime: GuestRuntimeKind | null;
|
|
375
|
+
readonly entrypoint: string | null;
|
|
376
|
+
readonly args: readonly string[];
|
|
377
|
+
readonly env: ReadonlyMap<string, string>;
|
|
378
|
+
readonly cwd: string | null;
|
|
379
|
+
readonly wasmPermissionTier: WasmPermissionTier | null;
|
|
380
|
+
};
|
|
381
|
+
export declare function readExecuteRequest(bc: bare.ByteCursor): ExecuteRequest;
|
|
382
|
+
export declare function writeExecuteRequest(bc: bare.ByteCursor, x: ExecuteRequest): void;
|
|
383
|
+
export type WriteStdinRequest = {
|
|
384
|
+
readonly processId: string;
|
|
385
|
+
readonly chunk: ArrayBuffer;
|
|
386
|
+
};
|
|
387
|
+
export declare function readWriteStdinRequest(bc: bare.ByteCursor): WriteStdinRequest;
|
|
388
|
+
export declare function writeWriteStdinRequest(bc: bare.ByteCursor, x: WriteStdinRequest): void;
|
|
389
|
+
export type CloseStdinRequest = {
|
|
390
|
+
readonly processId: string;
|
|
391
|
+
};
|
|
392
|
+
export declare function readCloseStdinRequest(bc: bare.ByteCursor): CloseStdinRequest;
|
|
393
|
+
export declare function writeCloseStdinRequest(bc: bare.ByteCursor, x: CloseStdinRequest): void;
|
|
394
|
+
export type KillProcessRequest = {
|
|
395
|
+
readonly processId: string;
|
|
396
|
+
readonly signal: string;
|
|
397
|
+
};
|
|
398
|
+
export declare function readKillProcessRequest(bc: bare.ByteCursor): KillProcessRequest;
|
|
399
|
+
export declare function writeKillProcessRequest(bc: bare.ByteCursor, x: KillProcessRequest): void;
|
|
400
|
+
export type GetProcessSnapshotRequest = null;
|
|
401
|
+
export type FindListenerRequest = {
|
|
402
|
+
readonly host: string | null;
|
|
403
|
+
readonly port: u16 | null;
|
|
404
|
+
readonly path: string | null;
|
|
405
|
+
};
|
|
406
|
+
export declare function readFindListenerRequest(bc: bare.ByteCursor): FindListenerRequest;
|
|
407
|
+
export declare function writeFindListenerRequest(bc: bare.ByteCursor, x: FindListenerRequest): void;
|
|
408
|
+
export type FindBoundUdpRequest = {
|
|
409
|
+
readonly host: string | null;
|
|
410
|
+
readonly port: u16 | null;
|
|
411
|
+
};
|
|
412
|
+
export declare function readFindBoundUdpRequest(bc: bare.ByteCursor): FindBoundUdpRequest;
|
|
413
|
+
export declare function writeFindBoundUdpRequest(bc: bare.ByteCursor, x: FindBoundUdpRequest): void;
|
|
414
|
+
export type GetSignalStateRequest = {
|
|
415
|
+
readonly processId: string;
|
|
416
|
+
};
|
|
417
|
+
export declare function readGetSignalStateRequest(bc: bare.ByteCursor): GetSignalStateRequest;
|
|
418
|
+
export declare function writeGetSignalStateRequest(bc: bare.ByteCursor, x: GetSignalStateRequest): void;
|
|
419
|
+
export type GetZombieTimerCountRequest = null;
|
|
420
|
+
export declare enum FilesystemOperation {
|
|
421
|
+
Read = "Read",
|
|
422
|
+
Write = "Write",
|
|
423
|
+
Stat = "Stat",
|
|
424
|
+
ReadDir = "ReadDir",
|
|
425
|
+
Mkdir = "Mkdir",
|
|
426
|
+
Remove = "Remove",
|
|
427
|
+
Rename = "Rename"
|
|
428
|
+
}
|
|
429
|
+
export declare function readFilesystemOperation(bc: bare.ByteCursor): FilesystemOperation;
|
|
430
|
+
export declare function writeFilesystemOperation(bc: bare.ByteCursor, x: FilesystemOperation): void;
|
|
431
|
+
export type HostFilesystemCallRequest = {
|
|
432
|
+
readonly operation: FilesystemOperation;
|
|
433
|
+
readonly path: string;
|
|
434
|
+
readonly payloadSizeBytes: u64;
|
|
435
|
+
};
|
|
436
|
+
export declare function readHostFilesystemCallRequest(bc: bare.ByteCursor): HostFilesystemCallRequest;
|
|
437
|
+
export declare function writeHostFilesystemCallRequest(bc: bare.ByteCursor, x: HostFilesystemCallRequest): void;
|
|
438
|
+
export type PersistenceLoadRequest = {
|
|
439
|
+
readonly key: string;
|
|
440
|
+
};
|
|
441
|
+
export declare function readPersistenceLoadRequest(bc: bare.ByteCursor): PersistenceLoadRequest;
|
|
442
|
+
export declare function writePersistenceLoadRequest(bc: bare.ByteCursor, x: PersistenceLoadRequest): void;
|
|
443
|
+
export type PersistenceFlushRequest = {
|
|
444
|
+
readonly key: string;
|
|
445
|
+
readonly payloadSizeBytes: u64;
|
|
446
|
+
};
|
|
447
|
+
export declare function readPersistenceFlushRequest(bc: bare.ByteCursor): PersistenceFlushRequest;
|
|
448
|
+
export declare function writePersistenceFlushRequest(bc: bare.ByteCursor, x: PersistenceFlushRequest): void;
|
|
449
|
+
export type VmFetchRequest = {
|
|
450
|
+
readonly port: u16;
|
|
451
|
+
readonly method: string;
|
|
452
|
+
readonly path: string;
|
|
453
|
+
readonly headersJson: string;
|
|
454
|
+
readonly body: string | null;
|
|
455
|
+
};
|
|
456
|
+
export declare function readVmFetchRequest(bc: bare.ByteCursor): VmFetchRequest;
|
|
457
|
+
export declare function writeVmFetchRequest(bc: bare.ByteCursor, x: VmFetchRequest): void;
|
|
458
|
+
export type RequestPayload = {
|
|
459
|
+
readonly tag: "AuthenticateRequest";
|
|
460
|
+
readonly val: AuthenticateRequest;
|
|
461
|
+
} | {
|
|
462
|
+
readonly tag: "OpenSessionRequest";
|
|
463
|
+
readonly val: OpenSessionRequest;
|
|
464
|
+
} | {
|
|
465
|
+
readonly tag: "CreateVmRequest";
|
|
466
|
+
readonly val: CreateVmRequest;
|
|
467
|
+
} | {
|
|
468
|
+
readonly tag: "DisposeVmRequest";
|
|
469
|
+
readonly val: DisposeVmRequest;
|
|
470
|
+
} | {
|
|
471
|
+
readonly tag: "BootstrapRootFilesystemRequest";
|
|
472
|
+
readonly val: BootstrapRootFilesystemRequest;
|
|
473
|
+
} | {
|
|
474
|
+
readonly tag: "ConfigureVmRequest";
|
|
475
|
+
readonly val: ConfigureVmRequest;
|
|
476
|
+
} | {
|
|
477
|
+
readonly tag: "RegisterHostCallbacksRequest";
|
|
478
|
+
readonly val: RegisterHostCallbacksRequest;
|
|
479
|
+
} | {
|
|
480
|
+
readonly tag: "CreateLayerRequest";
|
|
481
|
+
readonly val: CreateLayerRequest;
|
|
482
|
+
} | {
|
|
483
|
+
readonly tag: "SealLayerRequest";
|
|
484
|
+
readonly val: SealLayerRequest;
|
|
485
|
+
} | {
|
|
486
|
+
readonly tag: "ImportSnapshotRequest";
|
|
487
|
+
readonly val: ImportSnapshotRequest;
|
|
488
|
+
} | {
|
|
489
|
+
readonly tag: "ExportSnapshotRequest";
|
|
490
|
+
readonly val: ExportSnapshotRequest;
|
|
491
|
+
} | {
|
|
492
|
+
readonly tag: "CreateOverlayRequest";
|
|
493
|
+
readonly val: CreateOverlayRequest;
|
|
494
|
+
} | {
|
|
495
|
+
readonly tag: "GuestFilesystemCallRequest";
|
|
496
|
+
readonly val: GuestFilesystemCallRequest;
|
|
497
|
+
} | {
|
|
498
|
+
readonly tag: "SnapshotRootFilesystemRequest";
|
|
499
|
+
readonly val: SnapshotRootFilesystemRequest;
|
|
500
|
+
} | {
|
|
501
|
+
readonly tag: "ExecuteRequest";
|
|
502
|
+
readonly val: ExecuteRequest;
|
|
503
|
+
} | {
|
|
504
|
+
readonly tag: "WriteStdinRequest";
|
|
505
|
+
readonly val: WriteStdinRequest;
|
|
506
|
+
} | {
|
|
507
|
+
readonly tag: "CloseStdinRequest";
|
|
508
|
+
readonly val: CloseStdinRequest;
|
|
509
|
+
} | {
|
|
510
|
+
readonly tag: "KillProcessRequest";
|
|
511
|
+
readonly val: KillProcessRequest;
|
|
512
|
+
} | {
|
|
513
|
+
readonly tag: "GetProcessSnapshotRequest";
|
|
514
|
+
readonly val: GetProcessSnapshotRequest;
|
|
515
|
+
} | {
|
|
516
|
+
readonly tag: "FindListenerRequest";
|
|
517
|
+
readonly val: FindListenerRequest;
|
|
518
|
+
} | {
|
|
519
|
+
readonly tag: "FindBoundUdpRequest";
|
|
520
|
+
readonly val: FindBoundUdpRequest;
|
|
521
|
+
} | {
|
|
522
|
+
readonly tag: "GetSignalStateRequest";
|
|
523
|
+
readonly val: GetSignalStateRequest;
|
|
524
|
+
} | {
|
|
525
|
+
readonly tag: "GetZombieTimerCountRequest";
|
|
526
|
+
readonly val: GetZombieTimerCountRequest;
|
|
527
|
+
} | {
|
|
528
|
+
readonly tag: "HostFilesystemCallRequest";
|
|
529
|
+
readonly val: HostFilesystemCallRequest;
|
|
530
|
+
} | {
|
|
531
|
+
readonly tag: "PersistenceLoadRequest";
|
|
532
|
+
readonly val: PersistenceLoadRequest;
|
|
533
|
+
} | {
|
|
534
|
+
readonly tag: "PersistenceFlushRequest";
|
|
535
|
+
readonly val: PersistenceFlushRequest;
|
|
536
|
+
} | {
|
|
537
|
+
readonly tag: "VmFetchRequest";
|
|
538
|
+
readonly val: VmFetchRequest;
|
|
539
|
+
} | {
|
|
540
|
+
readonly tag: "ExtEnvelope";
|
|
541
|
+
readonly val: ExtEnvelope;
|
|
542
|
+
};
|
|
543
|
+
export declare function readRequestPayload(bc: bare.ByteCursor): RequestPayload;
|
|
544
|
+
export declare function writeRequestPayload(bc: bare.ByteCursor, x: RequestPayload): void;
|
|
545
|
+
export type RequestFrame = {
|
|
546
|
+
readonly schema: ProtocolSchema;
|
|
547
|
+
readonly requestId: RequestId;
|
|
548
|
+
readonly ownership: OwnershipScope;
|
|
549
|
+
readonly payload: RequestPayload;
|
|
550
|
+
};
|
|
551
|
+
export declare function readRequestFrame(bc: bare.ByteCursor): RequestFrame;
|
|
552
|
+
export declare function writeRequestFrame(bc: bare.ByteCursor, x: RequestFrame): void;
|
|
553
|
+
export type AuthenticatedResponse = {
|
|
554
|
+
readonly sidecarId: string;
|
|
555
|
+
readonly connectionId: string;
|
|
556
|
+
readonly maxFrameBytes: u32;
|
|
557
|
+
};
|
|
558
|
+
export declare function readAuthenticatedResponse(bc: bare.ByteCursor): AuthenticatedResponse;
|
|
559
|
+
export declare function writeAuthenticatedResponse(bc: bare.ByteCursor, x: AuthenticatedResponse): void;
|
|
560
|
+
export type SessionOpenedResponse = {
|
|
561
|
+
readonly sessionId: string;
|
|
562
|
+
readonly ownerConnectionId: string;
|
|
563
|
+
};
|
|
564
|
+
export declare function readSessionOpenedResponse(bc: bare.ByteCursor): SessionOpenedResponse;
|
|
565
|
+
export declare function writeSessionOpenedResponse(bc: bare.ByteCursor, x: SessionOpenedResponse): void;
|
|
566
|
+
export type VmCreatedResponse = {
|
|
567
|
+
readonly vmId: string;
|
|
568
|
+
};
|
|
569
|
+
export declare function readVmCreatedResponse(bc: bare.ByteCursor): VmCreatedResponse;
|
|
570
|
+
export declare function writeVmCreatedResponse(bc: bare.ByteCursor, x: VmCreatedResponse): void;
|
|
571
|
+
export type VmDisposedResponse = {
|
|
572
|
+
readonly vmId: string;
|
|
573
|
+
};
|
|
574
|
+
export declare function readVmDisposedResponse(bc: bare.ByteCursor): VmDisposedResponse;
|
|
575
|
+
export declare function writeVmDisposedResponse(bc: bare.ByteCursor, x: VmDisposedResponse): void;
|
|
576
|
+
export type RootFilesystemBootstrappedResponse = {
|
|
577
|
+
readonly entryCount: u32;
|
|
578
|
+
};
|
|
579
|
+
export declare function readRootFilesystemBootstrappedResponse(bc: bare.ByteCursor): RootFilesystemBootstrappedResponse;
|
|
580
|
+
export declare function writeRootFilesystemBootstrappedResponse(bc: bare.ByteCursor, x: RootFilesystemBootstrappedResponse): void;
|
|
581
|
+
export type VmConfiguredResponse = {
|
|
582
|
+
readonly appliedMounts: u32;
|
|
583
|
+
readonly appliedSoftware: u32;
|
|
584
|
+
};
|
|
585
|
+
export declare function readVmConfiguredResponse(bc: bare.ByteCursor): VmConfiguredResponse;
|
|
586
|
+
export declare function writeVmConfiguredResponse(bc: bare.ByteCursor, x: VmConfiguredResponse): void;
|
|
587
|
+
export type HostCallbacksRegisteredResponse = {
|
|
588
|
+
readonly registration: string;
|
|
589
|
+
readonly commandCount: u32;
|
|
590
|
+
};
|
|
591
|
+
export declare function readHostCallbacksRegisteredResponse(bc: bare.ByteCursor): HostCallbacksRegisteredResponse;
|
|
592
|
+
export declare function writeHostCallbacksRegisteredResponse(bc: bare.ByteCursor, x: HostCallbacksRegisteredResponse): void;
|
|
593
|
+
export type LayerCreatedResponse = {
|
|
594
|
+
readonly layerId: string;
|
|
595
|
+
};
|
|
596
|
+
export declare function readLayerCreatedResponse(bc: bare.ByteCursor): LayerCreatedResponse;
|
|
597
|
+
export declare function writeLayerCreatedResponse(bc: bare.ByteCursor, x: LayerCreatedResponse): void;
|
|
598
|
+
export type LayerSealedResponse = {
|
|
599
|
+
readonly layerId: string;
|
|
600
|
+
};
|
|
601
|
+
export declare function readLayerSealedResponse(bc: bare.ByteCursor): LayerSealedResponse;
|
|
602
|
+
export declare function writeLayerSealedResponse(bc: bare.ByteCursor, x: LayerSealedResponse): void;
|
|
603
|
+
export type SnapshotImportedResponse = {
|
|
604
|
+
readonly layerId: string;
|
|
605
|
+
};
|
|
606
|
+
export declare function readSnapshotImportedResponse(bc: bare.ByteCursor): SnapshotImportedResponse;
|
|
607
|
+
export declare function writeSnapshotImportedResponse(bc: bare.ByteCursor, x: SnapshotImportedResponse): void;
|
|
608
|
+
export type SnapshotExportedResponse = {
|
|
609
|
+
readonly layerId: string;
|
|
610
|
+
readonly entries: readonly RootFilesystemEntry[];
|
|
611
|
+
};
|
|
612
|
+
export declare function readSnapshotExportedResponse(bc: bare.ByteCursor): SnapshotExportedResponse;
|
|
613
|
+
export declare function writeSnapshotExportedResponse(bc: bare.ByteCursor, x: SnapshotExportedResponse): void;
|
|
614
|
+
export type OverlayCreatedResponse = {
|
|
615
|
+
readonly layerId: string;
|
|
616
|
+
};
|
|
617
|
+
export declare function readOverlayCreatedResponse(bc: bare.ByteCursor): OverlayCreatedResponse;
|
|
618
|
+
export declare function writeOverlayCreatedResponse(bc: bare.ByteCursor, x: OverlayCreatedResponse): void;
|
|
619
|
+
export type GuestFilesystemStat = {
|
|
620
|
+
readonly mode: u32;
|
|
621
|
+
readonly size: u64;
|
|
622
|
+
readonly blocks: u64;
|
|
623
|
+
readonly dev: u64;
|
|
624
|
+
readonly rdev: u64;
|
|
625
|
+
readonly isDirectory: boolean;
|
|
626
|
+
readonly isSymbolicLink: boolean;
|
|
627
|
+
readonly atimeMs: u64;
|
|
628
|
+
readonly mtimeMs: u64;
|
|
629
|
+
readonly ctimeMs: u64;
|
|
630
|
+
readonly birthtimeMs: u64;
|
|
631
|
+
readonly ino: u64;
|
|
632
|
+
readonly nlink: u64;
|
|
633
|
+
readonly uid: u32;
|
|
634
|
+
readonly gid: u32;
|
|
635
|
+
};
|
|
636
|
+
export declare function readGuestFilesystemStat(bc: bare.ByteCursor): GuestFilesystemStat;
|
|
637
|
+
export declare function writeGuestFilesystemStat(bc: bare.ByteCursor, x: GuestFilesystemStat): void;
|
|
638
|
+
export type GuestFilesystemResultResponse = {
|
|
639
|
+
readonly operation: GuestFilesystemOperation;
|
|
640
|
+
readonly path: string;
|
|
641
|
+
readonly content: string | null;
|
|
642
|
+
readonly encoding: RootFilesystemEntryEncoding | null;
|
|
643
|
+
readonly entries: readonly string[] | null;
|
|
644
|
+
readonly stat: GuestFilesystemStat | null;
|
|
645
|
+
readonly exists: boolean | null;
|
|
646
|
+
readonly target: string | null;
|
|
647
|
+
};
|
|
648
|
+
export declare function readGuestFilesystemResultResponse(bc: bare.ByteCursor): GuestFilesystemResultResponse;
|
|
649
|
+
export declare function writeGuestFilesystemResultResponse(bc: bare.ByteCursor, x: GuestFilesystemResultResponse): void;
|
|
650
|
+
export type RootFilesystemSnapshotResponse = {
|
|
651
|
+
readonly entries: readonly RootFilesystemEntry[];
|
|
652
|
+
};
|
|
653
|
+
export declare function readRootFilesystemSnapshotResponse(bc: bare.ByteCursor): RootFilesystemSnapshotResponse;
|
|
654
|
+
export declare function writeRootFilesystemSnapshotResponse(bc: bare.ByteCursor, x: RootFilesystemSnapshotResponse): void;
|
|
655
|
+
export type ProcessStartedResponse = {
|
|
656
|
+
readonly processId: string;
|
|
657
|
+
readonly pid: u32 | null;
|
|
658
|
+
};
|
|
659
|
+
export declare function readProcessStartedResponse(bc: bare.ByteCursor): ProcessStartedResponse;
|
|
660
|
+
export declare function writeProcessStartedResponse(bc: bare.ByteCursor, x: ProcessStartedResponse): void;
|
|
661
|
+
export type StdinWrittenResponse = {
|
|
662
|
+
readonly processId: string;
|
|
663
|
+
readonly acceptedBytes: u64;
|
|
664
|
+
};
|
|
665
|
+
export declare function readStdinWrittenResponse(bc: bare.ByteCursor): StdinWrittenResponse;
|
|
666
|
+
export declare function writeStdinWrittenResponse(bc: bare.ByteCursor, x: StdinWrittenResponse): void;
|
|
667
|
+
export type StdinClosedResponse = {
|
|
668
|
+
readonly processId: string;
|
|
669
|
+
};
|
|
670
|
+
export declare function readStdinClosedResponse(bc: bare.ByteCursor): StdinClosedResponse;
|
|
671
|
+
export declare function writeStdinClosedResponse(bc: bare.ByteCursor, x: StdinClosedResponse): void;
|
|
672
|
+
export type ProcessKilledResponse = {
|
|
673
|
+
readonly processId: string;
|
|
674
|
+
};
|
|
675
|
+
export declare function readProcessKilledResponse(bc: bare.ByteCursor): ProcessKilledResponse;
|
|
676
|
+
export declare function writeProcessKilledResponse(bc: bare.ByteCursor, x: ProcessKilledResponse): void;
|
|
677
|
+
export declare enum ProcessSnapshotStatus {
|
|
678
|
+
Running = "Running",
|
|
679
|
+
Exited = "Exited",
|
|
680
|
+
Stopped = "Stopped"
|
|
681
|
+
}
|
|
682
|
+
export declare function readProcessSnapshotStatus(bc: bare.ByteCursor): ProcessSnapshotStatus;
|
|
683
|
+
export declare function writeProcessSnapshotStatus(bc: bare.ByteCursor, x: ProcessSnapshotStatus): void;
|
|
684
|
+
export type ProcessSnapshotEntry = {
|
|
685
|
+
readonly processId: string;
|
|
686
|
+
readonly pid: u32;
|
|
687
|
+
readonly ppid: u32;
|
|
688
|
+
readonly pgid: u32;
|
|
689
|
+
readonly sid: u32;
|
|
690
|
+
readonly driver: string;
|
|
691
|
+
readonly command: string;
|
|
692
|
+
readonly args: readonly string[];
|
|
693
|
+
readonly cwd: string;
|
|
694
|
+
readonly status: ProcessSnapshotStatus;
|
|
695
|
+
readonly exitCode: i32 | null;
|
|
696
|
+
};
|
|
697
|
+
export declare function readProcessSnapshotEntry(bc: bare.ByteCursor): ProcessSnapshotEntry;
|
|
698
|
+
export declare function writeProcessSnapshotEntry(bc: bare.ByteCursor, x: ProcessSnapshotEntry): void;
|
|
699
|
+
export type ProcessSnapshotResponse = {
|
|
700
|
+
readonly processes: readonly ProcessSnapshotEntry[];
|
|
701
|
+
};
|
|
702
|
+
export declare function readProcessSnapshotResponse(bc: bare.ByteCursor): ProcessSnapshotResponse;
|
|
703
|
+
export declare function writeProcessSnapshotResponse(bc: bare.ByteCursor, x: ProcessSnapshotResponse): void;
|
|
704
|
+
export type SocketStateEntry = {
|
|
705
|
+
readonly processId: string;
|
|
706
|
+
readonly host: string | null;
|
|
707
|
+
readonly port: u16 | null;
|
|
708
|
+
readonly path: string | null;
|
|
709
|
+
};
|
|
710
|
+
export declare function readSocketStateEntry(bc: bare.ByteCursor): SocketStateEntry;
|
|
711
|
+
export declare function writeSocketStateEntry(bc: bare.ByteCursor, x: SocketStateEntry): void;
|
|
712
|
+
export type ListenerSnapshotResponse = {
|
|
713
|
+
readonly listener: SocketStateEntry | null;
|
|
714
|
+
};
|
|
715
|
+
export declare function readListenerSnapshotResponse(bc: bare.ByteCursor): ListenerSnapshotResponse;
|
|
716
|
+
export declare function writeListenerSnapshotResponse(bc: bare.ByteCursor, x: ListenerSnapshotResponse): void;
|
|
717
|
+
export type BoundUdpSnapshotResponse = {
|
|
718
|
+
readonly socket: SocketStateEntry | null;
|
|
719
|
+
};
|
|
720
|
+
export declare function readBoundUdpSnapshotResponse(bc: bare.ByteCursor): BoundUdpSnapshotResponse;
|
|
721
|
+
export declare function writeBoundUdpSnapshotResponse(bc: bare.ByteCursor, x: BoundUdpSnapshotResponse): void;
|
|
722
|
+
export declare enum SignalDispositionAction {
|
|
723
|
+
Default = "Default",
|
|
724
|
+
Ignore = "Ignore",
|
|
725
|
+
User = "User"
|
|
726
|
+
}
|
|
727
|
+
export declare function readSignalDispositionAction(bc: bare.ByteCursor): SignalDispositionAction;
|
|
728
|
+
export declare function writeSignalDispositionAction(bc: bare.ByteCursor, x: SignalDispositionAction): void;
|
|
729
|
+
export type SignalHandlerRegistration = {
|
|
730
|
+
readonly action: SignalDispositionAction;
|
|
731
|
+
readonly mask: Uint32Array;
|
|
732
|
+
readonly flags: u32;
|
|
733
|
+
};
|
|
734
|
+
export declare function readSignalHandlerRegistration(bc: bare.ByteCursor): SignalHandlerRegistration;
|
|
735
|
+
export declare function writeSignalHandlerRegistration(bc: bare.ByteCursor, x: SignalHandlerRegistration): void;
|
|
736
|
+
export type SignalStateResponse = {
|
|
737
|
+
readonly processId: string;
|
|
738
|
+
readonly handlers: ReadonlyMap<u32, SignalHandlerRegistration>;
|
|
739
|
+
};
|
|
740
|
+
export declare function readSignalStateResponse(bc: bare.ByteCursor): SignalStateResponse;
|
|
741
|
+
export declare function writeSignalStateResponse(bc: bare.ByteCursor, x: SignalStateResponse): void;
|
|
742
|
+
export type ZombieTimerCountResponse = {
|
|
743
|
+
readonly count: u64;
|
|
744
|
+
};
|
|
745
|
+
export declare function readZombieTimerCountResponse(bc: bare.ByteCursor): ZombieTimerCountResponse;
|
|
746
|
+
export declare function writeZombieTimerCountResponse(bc: bare.ByteCursor, x: ZombieTimerCountResponse): void;
|
|
747
|
+
export type FilesystemResultResponse = {
|
|
748
|
+
readonly operation: FilesystemOperation;
|
|
749
|
+
readonly status: string;
|
|
750
|
+
readonly payloadSizeBytes: u64;
|
|
751
|
+
};
|
|
752
|
+
export declare function readFilesystemResultResponse(bc: bare.ByteCursor): FilesystemResultResponse;
|
|
753
|
+
export declare function writeFilesystemResultResponse(bc: bare.ByteCursor, x: FilesystemResultResponse): void;
|
|
754
|
+
export type PermissionDecisionResponse = {
|
|
755
|
+
readonly capability: string;
|
|
756
|
+
readonly decision: PermissionMode;
|
|
757
|
+
};
|
|
758
|
+
export declare function readPermissionDecisionResponse(bc: bare.ByteCursor): PermissionDecisionResponse;
|
|
759
|
+
export declare function writePermissionDecisionResponse(bc: bare.ByteCursor, x: PermissionDecisionResponse): void;
|
|
760
|
+
export type PersistenceStateResponse = {
|
|
761
|
+
readonly key: string;
|
|
762
|
+
readonly found: boolean;
|
|
763
|
+
readonly payloadSizeBytes: u64;
|
|
764
|
+
};
|
|
765
|
+
export declare function readPersistenceStateResponse(bc: bare.ByteCursor): PersistenceStateResponse;
|
|
766
|
+
export declare function writePersistenceStateResponse(bc: bare.ByteCursor, x: PersistenceStateResponse): void;
|
|
767
|
+
export type PersistenceFlushedResponse = {
|
|
768
|
+
readonly key: string;
|
|
769
|
+
readonly committedBytes: u64;
|
|
770
|
+
};
|
|
771
|
+
export declare function readPersistenceFlushedResponse(bc: bare.ByteCursor): PersistenceFlushedResponse;
|
|
772
|
+
export declare function writePersistenceFlushedResponse(bc: bare.ByteCursor, x: PersistenceFlushedResponse): void;
|
|
773
|
+
export type RejectedResponse = {
|
|
774
|
+
readonly code: string;
|
|
775
|
+
readonly message: string;
|
|
776
|
+
};
|
|
777
|
+
export declare function readRejectedResponse(bc: bare.ByteCursor): RejectedResponse;
|
|
778
|
+
export declare function writeRejectedResponse(bc: bare.ByteCursor, x: RejectedResponse): void;
|
|
779
|
+
export type VmFetchResponse = {
|
|
780
|
+
readonly responseJson: string;
|
|
781
|
+
};
|
|
782
|
+
export declare function readVmFetchResponse(bc: bare.ByteCursor): VmFetchResponse;
|
|
783
|
+
export declare function writeVmFetchResponse(bc: bare.ByteCursor, x: VmFetchResponse): void;
|
|
784
|
+
export type ResponsePayload = {
|
|
785
|
+
readonly tag: "AuthenticatedResponse";
|
|
786
|
+
readonly val: AuthenticatedResponse;
|
|
787
|
+
} | {
|
|
788
|
+
readonly tag: "SessionOpenedResponse";
|
|
789
|
+
readonly val: SessionOpenedResponse;
|
|
790
|
+
} | {
|
|
791
|
+
readonly tag: "VmCreatedResponse";
|
|
792
|
+
readonly val: VmCreatedResponse;
|
|
793
|
+
} | {
|
|
794
|
+
readonly tag: "VmDisposedResponse";
|
|
795
|
+
readonly val: VmDisposedResponse;
|
|
796
|
+
} | {
|
|
797
|
+
readonly tag: "RootFilesystemBootstrappedResponse";
|
|
798
|
+
readonly val: RootFilesystemBootstrappedResponse;
|
|
799
|
+
} | {
|
|
800
|
+
readonly tag: "VmConfiguredResponse";
|
|
801
|
+
readonly val: VmConfiguredResponse;
|
|
802
|
+
} | {
|
|
803
|
+
readonly tag: "HostCallbacksRegisteredResponse";
|
|
804
|
+
readonly val: HostCallbacksRegisteredResponse;
|
|
805
|
+
} | {
|
|
806
|
+
readonly tag: "LayerCreatedResponse";
|
|
807
|
+
readonly val: LayerCreatedResponse;
|
|
808
|
+
} | {
|
|
809
|
+
readonly tag: "LayerSealedResponse";
|
|
810
|
+
readonly val: LayerSealedResponse;
|
|
811
|
+
} | {
|
|
812
|
+
readonly tag: "SnapshotImportedResponse";
|
|
813
|
+
readonly val: SnapshotImportedResponse;
|
|
814
|
+
} | {
|
|
815
|
+
readonly tag: "SnapshotExportedResponse";
|
|
816
|
+
readonly val: SnapshotExportedResponse;
|
|
817
|
+
} | {
|
|
818
|
+
readonly tag: "OverlayCreatedResponse";
|
|
819
|
+
readonly val: OverlayCreatedResponse;
|
|
820
|
+
} | {
|
|
821
|
+
readonly tag: "GuestFilesystemResultResponse";
|
|
822
|
+
readonly val: GuestFilesystemResultResponse;
|
|
823
|
+
} | {
|
|
824
|
+
readonly tag: "RootFilesystemSnapshotResponse";
|
|
825
|
+
readonly val: RootFilesystemSnapshotResponse;
|
|
826
|
+
} | {
|
|
827
|
+
readonly tag: "ProcessStartedResponse";
|
|
828
|
+
readonly val: ProcessStartedResponse;
|
|
829
|
+
} | {
|
|
830
|
+
readonly tag: "StdinWrittenResponse";
|
|
831
|
+
readonly val: StdinWrittenResponse;
|
|
832
|
+
} | {
|
|
833
|
+
readonly tag: "StdinClosedResponse";
|
|
834
|
+
readonly val: StdinClosedResponse;
|
|
835
|
+
} | {
|
|
836
|
+
readonly tag: "ProcessKilledResponse";
|
|
837
|
+
readonly val: ProcessKilledResponse;
|
|
838
|
+
} | {
|
|
839
|
+
readonly tag: "ProcessSnapshotResponse";
|
|
840
|
+
readonly val: ProcessSnapshotResponse;
|
|
841
|
+
} | {
|
|
842
|
+
readonly tag: "ListenerSnapshotResponse";
|
|
843
|
+
readonly val: ListenerSnapshotResponse;
|
|
844
|
+
} | {
|
|
845
|
+
readonly tag: "BoundUdpSnapshotResponse";
|
|
846
|
+
readonly val: BoundUdpSnapshotResponse;
|
|
847
|
+
} | {
|
|
848
|
+
readonly tag: "SignalStateResponse";
|
|
849
|
+
readonly val: SignalStateResponse;
|
|
850
|
+
} | {
|
|
851
|
+
readonly tag: "ZombieTimerCountResponse";
|
|
852
|
+
readonly val: ZombieTimerCountResponse;
|
|
853
|
+
} | {
|
|
854
|
+
readonly tag: "FilesystemResultResponse";
|
|
855
|
+
readonly val: FilesystemResultResponse;
|
|
856
|
+
} | {
|
|
857
|
+
readonly tag: "PermissionDecisionResponse";
|
|
858
|
+
readonly val: PermissionDecisionResponse;
|
|
859
|
+
} | {
|
|
860
|
+
readonly tag: "PersistenceStateResponse";
|
|
861
|
+
readonly val: PersistenceStateResponse;
|
|
862
|
+
} | {
|
|
863
|
+
readonly tag: "PersistenceFlushedResponse";
|
|
864
|
+
readonly val: PersistenceFlushedResponse;
|
|
865
|
+
} | {
|
|
866
|
+
readonly tag: "RejectedResponse";
|
|
867
|
+
readonly val: RejectedResponse;
|
|
868
|
+
} | {
|
|
869
|
+
readonly tag: "VmFetchResponse";
|
|
870
|
+
readonly val: VmFetchResponse;
|
|
871
|
+
} | {
|
|
872
|
+
readonly tag: "ExtEnvelope";
|
|
873
|
+
readonly val: ExtEnvelope;
|
|
874
|
+
};
|
|
875
|
+
export declare function readResponsePayload(bc: bare.ByteCursor): ResponsePayload;
|
|
876
|
+
export declare function writeResponsePayload(bc: bare.ByteCursor, x: ResponsePayload): void;
|
|
877
|
+
export type ResponseFrame = {
|
|
878
|
+
readonly schema: ProtocolSchema;
|
|
879
|
+
readonly requestId: RequestId;
|
|
880
|
+
readonly ownership: OwnershipScope;
|
|
881
|
+
readonly payload: ResponsePayload;
|
|
882
|
+
};
|
|
883
|
+
export declare function readResponseFrame(bc: bare.ByteCursor): ResponseFrame;
|
|
884
|
+
export declare function writeResponseFrame(bc: bare.ByteCursor, x: ResponseFrame): void;
|
|
885
|
+
export declare enum VmLifecycleState {
|
|
886
|
+
Creating = "Creating",
|
|
887
|
+
Ready = "Ready",
|
|
888
|
+
Disposing = "Disposing",
|
|
889
|
+
Disposed = "Disposed",
|
|
890
|
+
Failed = "Failed"
|
|
891
|
+
}
|
|
892
|
+
export declare function readVmLifecycleState(bc: bare.ByteCursor): VmLifecycleState;
|
|
893
|
+
export declare function writeVmLifecycleState(bc: bare.ByteCursor, x: VmLifecycleState): void;
|
|
894
|
+
export type VmLifecycleEvent = {
|
|
895
|
+
readonly state: VmLifecycleState;
|
|
896
|
+
};
|
|
897
|
+
export declare function readVmLifecycleEvent(bc: bare.ByteCursor): VmLifecycleEvent;
|
|
898
|
+
export declare function writeVmLifecycleEvent(bc: bare.ByteCursor, x: VmLifecycleEvent): void;
|
|
899
|
+
export declare enum StreamChannel {
|
|
900
|
+
Stdout = "Stdout",
|
|
901
|
+
Stderr = "Stderr"
|
|
902
|
+
}
|
|
903
|
+
export declare function readStreamChannel(bc: bare.ByteCursor): StreamChannel;
|
|
904
|
+
export declare function writeStreamChannel(bc: bare.ByteCursor, x: StreamChannel): void;
|
|
905
|
+
export type ProcessOutputEvent = {
|
|
906
|
+
readonly processId: string;
|
|
907
|
+
readonly channel: StreamChannel;
|
|
908
|
+
readonly chunk: ArrayBuffer;
|
|
909
|
+
};
|
|
910
|
+
export declare function readProcessOutputEvent(bc: bare.ByteCursor): ProcessOutputEvent;
|
|
911
|
+
export declare function writeProcessOutputEvent(bc: bare.ByteCursor, x: ProcessOutputEvent): void;
|
|
912
|
+
export type ProcessExitedEvent = {
|
|
913
|
+
readonly processId: string;
|
|
914
|
+
readonly exitCode: i32;
|
|
915
|
+
};
|
|
916
|
+
export declare function readProcessExitedEvent(bc: bare.ByteCursor): ProcessExitedEvent;
|
|
917
|
+
export declare function writeProcessExitedEvent(bc: bare.ByteCursor, x: ProcessExitedEvent): void;
|
|
918
|
+
export type StructuredEvent = {
|
|
919
|
+
readonly name: string;
|
|
920
|
+
readonly detail: ReadonlyMap<string, string>;
|
|
921
|
+
};
|
|
922
|
+
export declare function readStructuredEvent(bc: bare.ByteCursor): StructuredEvent;
|
|
923
|
+
export declare function writeStructuredEvent(bc: bare.ByteCursor, x: StructuredEvent): void;
|
|
924
|
+
export type EventPayload = {
|
|
925
|
+
readonly tag: "VmLifecycleEvent";
|
|
926
|
+
readonly val: VmLifecycleEvent;
|
|
927
|
+
} | {
|
|
928
|
+
readonly tag: "ProcessOutputEvent";
|
|
929
|
+
readonly val: ProcessOutputEvent;
|
|
930
|
+
} | {
|
|
931
|
+
readonly tag: "ProcessExitedEvent";
|
|
932
|
+
readonly val: ProcessExitedEvent;
|
|
933
|
+
} | {
|
|
934
|
+
readonly tag: "StructuredEvent";
|
|
935
|
+
readonly val: StructuredEvent;
|
|
936
|
+
} | {
|
|
937
|
+
readonly tag: "ExtEnvelope";
|
|
938
|
+
readonly val: ExtEnvelope;
|
|
939
|
+
};
|
|
940
|
+
export declare function readEventPayload(bc: bare.ByteCursor): EventPayload;
|
|
941
|
+
export declare function writeEventPayload(bc: bare.ByteCursor, x: EventPayload): void;
|
|
942
|
+
export type EventFrame = {
|
|
943
|
+
readonly schema: ProtocolSchema;
|
|
944
|
+
readonly ownership: OwnershipScope;
|
|
945
|
+
readonly payload: EventPayload;
|
|
946
|
+
};
|
|
947
|
+
export declare function readEventFrame(bc: bare.ByteCursor): EventFrame;
|
|
948
|
+
export declare function writeEventFrame(bc: bare.ByteCursor, x: EventFrame): void;
|
|
949
|
+
export type HostCallbackRequest = {
|
|
950
|
+
readonly invocationId: string;
|
|
951
|
+
readonly callbackKey: string;
|
|
952
|
+
readonly input: JsonUtf8;
|
|
953
|
+
readonly timeoutMs: u64;
|
|
954
|
+
};
|
|
955
|
+
export declare function readHostCallbackRequest(bc: bare.ByteCursor): HostCallbackRequest;
|
|
956
|
+
export declare function writeHostCallbackRequest(bc: bare.ByteCursor, x: HostCallbackRequest): void;
|
|
957
|
+
export type JsBridgeCallRequest = {
|
|
958
|
+
readonly callId: string;
|
|
959
|
+
readonly mountId: string;
|
|
960
|
+
readonly operation: string;
|
|
961
|
+
readonly args: JsonUtf8;
|
|
962
|
+
};
|
|
963
|
+
export declare function readJsBridgeCallRequest(bc: bare.ByteCursor): JsBridgeCallRequest;
|
|
964
|
+
export declare function writeJsBridgeCallRequest(bc: bare.ByteCursor, x: JsBridgeCallRequest): void;
|
|
965
|
+
export type SidecarRequestPayload = {
|
|
966
|
+
readonly tag: "HostCallbackRequest";
|
|
967
|
+
readonly val: HostCallbackRequest;
|
|
968
|
+
} | {
|
|
969
|
+
readonly tag: "JsBridgeCallRequest";
|
|
970
|
+
readonly val: JsBridgeCallRequest;
|
|
971
|
+
} | {
|
|
972
|
+
readonly tag: "ExtEnvelope";
|
|
973
|
+
readonly val: ExtEnvelope;
|
|
974
|
+
};
|
|
975
|
+
export declare function readSidecarRequestPayload(bc: bare.ByteCursor): SidecarRequestPayload;
|
|
976
|
+
export declare function writeSidecarRequestPayload(bc: bare.ByteCursor, x: SidecarRequestPayload): void;
|
|
977
|
+
export type SidecarRequestFrame = {
|
|
978
|
+
readonly schema: ProtocolSchema;
|
|
979
|
+
readonly requestId: RequestId;
|
|
980
|
+
readonly ownership: OwnershipScope;
|
|
981
|
+
readonly payload: SidecarRequestPayload;
|
|
982
|
+
};
|
|
983
|
+
export declare function readSidecarRequestFrame(bc: bare.ByteCursor): SidecarRequestFrame;
|
|
984
|
+
export declare function writeSidecarRequestFrame(bc: bare.ByteCursor, x: SidecarRequestFrame): void;
|
|
985
|
+
export type HostCallbackResultResponse = {
|
|
986
|
+
readonly invocationId: string;
|
|
987
|
+
readonly result: JsonUtf8 | null;
|
|
988
|
+
readonly error: string | null;
|
|
989
|
+
};
|
|
990
|
+
export declare function readHostCallbackResultResponse(bc: bare.ByteCursor): HostCallbackResultResponse;
|
|
991
|
+
export declare function writeHostCallbackResultResponse(bc: bare.ByteCursor, x: HostCallbackResultResponse): void;
|
|
992
|
+
export type JsBridgeResultResponse = {
|
|
993
|
+
readonly callId: string;
|
|
994
|
+
readonly result: JsonUtf8 | null;
|
|
995
|
+
readonly error: string | null;
|
|
996
|
+
};
|
|
997
|
+
export declare function readJsBridgeResultResponse(bc: bare.ByteCursor): JsBridgeResultResponse;
|
|
998
|
+
export declare function writeJsBridgeResultResponse(bc: bare.ByteCursor, x: JsBridgeResultResponse): void;
|
|
999
|
+
export type SidecarResponsePayload = {
|
|
1000
|
+
readonly tag: "HostCallbackResultResponse";
|
|
1001
|
+
readonly val: HostCallbackResultResponse;
|
|
1002
|
+
} | {
|
|
1003
|
+
readonly tag: "JsBridgeResultResponse";
|
|
1004
|
+
readonly val: JsBridgeResultResponse;
|
|
1005
|
+
} | {
|
|
1006
|
+
readonly tag: "ExtEnvelope";
|
|
1007
|
+
readonly val: ExtEnvelope;
|
|
1008
|
+
};
|
|
1009
|
+
export declare function readSidecarResponsePayload(bc: bare.ByteCursor): SidecarResponsePayload;
|
|
1010
|
+
export declare function writeSidecarResponsePayload(bc: bare.ByteCursor, x: SidecarResponsePayload): void;
|
|
1011
|
+
export type SidecarResponseFrame = {
|
|
1012
|
+
readonly schema: ProtocolSchema;
|
|
1013
|
+
readonly requestId: RequestId;
|
|
1014
|
+
readonly ownership: OwnershipScope;
|
|
1015
|
+
readonly payload: SidecarResponsePayload;
|
|
1016
|
+
};
|
|
1017
|
+
export declare function readSidecarResponseFrame(bc: bare.ByteCursor): SidecarResponseFrame;
|
|
1018
|
+
export declare function writeSidecarResponseFrame(bc: bare.ByteCursor, x: SidecarResponseFrame): void;
|
|
1019
|
+
export type ProtocolFrame = {
|
|
1020
|
+
readonly tag: "RequestFrame";
|
|
1021
|
+
readonly val: RequestFrame;
|
|
1022
|
+
} | {
|
|
1023
|
+
readonly tag: "ResponseFrame";
|
|
1024
|
+
readonly val: ResponseFrame;
|
|
1025
|
+
} | {
|
|
1026
|
+
readonly tag: "EventFrame";
|
|
1027
|
+
readonly val: EventFrame;
|
|
1028
|
+
} | {
|
|
1029
|
+
readonly tag: "SidecarRequestFrame";
|
|
1030
|
+
readonly val: SidecarRequestFrame;
|
|
1031
|
+
} | {
|
|
1032
|
+
readonly tag: "SidecarResponseFrame";
|
|
1033
|
+
readonly val: SidecarResponseFrame;
|
|
1034
|
+
};
|
|
1035
|
+
export declare function readProtocolFrame(bc: bare.ByteCursor): ProtocolFrame;
|
|
1036
|
+
export declare function writeProtocolFrame(bc: bare.ByteCursor, x: ProtocolFrame): void;
|
|
1037
|
+
export declare function encodeProtocolFrame(x: ProtocolFrame, config?: Partial<bare.Config>): Uint8Array;
|
|
1038
|
+
export declare function decodeProtocolFrame(bytes: Uint8Array): ProtocolFrame;
|