@archildata/api-types 0.0.88 → 0.0.90
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 +6 -1
- package/index.d.ts +13 -1
- package/package.json +22 -4
- package/process_pb.d.ts +475 -0
- package/process_pb.js +127 -0
package/README.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
# api-types
|
|
2
2
|
|
|
3
|
-
API types for
|
|
3
|
+
Public API types for Archil.
|
|
4
|
+
|
|
5
|
+
- `@archildata/api-types`: types for the control plane HTTP API, generated from
|
|
6
|
+
`api/controlplane/openapi.yaml`.
|
|
7
|
+
- `@archildata/api-types/process`: internal types used by the Archil SDK. It
|
|
8
|
+
needs the `@bufbuild/protobuf` peer dependency.
|
package/index.d.ts
CHANGED
|
@@ -878,6 +878,11 @@ export interface paths {
|
|
|
878
878
|
* visible only to its account. The credentials are passed to the build
|
|
879
879
|
* and never stored. A failed build, or a build whose runtime host does
|
|
880
880
|
* not answer, builds again on the next request.
|
|
881
|
+
*
|
|
882
|
+
* An image has a size. Its build prepares sandboxes of that size to
|
|
883
|
+
* start from a snapshot, and sandboxes created from its `image_id` get
|
|
884
|
+
* that size unless they set their own; other sizes boot from scratch.
|
|
885
|
+
* Each size of a source is a separate image.
|
|
881
886
|
*/
|
|
882
887
|
post: operations["createImage"];
|
|
883
888
|
delete?: never;
|
|
@@ -2297,6 +2302,10 @@ export interface components {
|
|
|
2297
2302
|
/** @description Linux OCI image reference. Docker shorthand and tags are accepted. */
|
|
2298
2303
|
source: string;
|
|
2299
2304
|
registry_auth?: components["schemas"]["RegistryAuth"];
|
|
2305
|
+
/** @default 1 */
|
|
2306
|
+
vcpu_count: number;
|
|
2307
|
+
/** @default 2048 */
|
|
2308
|
+
mem_size_mib: number;
|
|
2300
2309
|
};
|
|
2301
2310
|
/** @enum {string} */
|
|
2302
2311
|
ImageState: "building" | "ready" | "failed";
|
|
@@ -2304,6 +2313,9 @@ export interface components {
|
|
|
2304
2313
|
image_id: string;
|
|
2305
2314
|
/** @description Normalized OCI reference the image is pulled from. */
|
|
2306
2315
|
source: string;
|
|
2316
|
+
/** @description The size sandboxes created from this image get by default. */
|
|
2317
|
+
vcpu_count: number;
|
|
2318
|
+
mem_size_mib: number;
|
|
2307
2319
|
/** @description Whether the image is pulled with registry credentials. */
|
|
2308
2320
|
private: boolean;
|
|
2309
2321
|
status: components["schemas"]["ImageState"];
|
|
@@ -2390,7 +2402,7 @@ export interface components {
|
|
|
2390
2402
|
mem_size_mib: number;
|
|
2391
2403
|
/** @description Public Linux OCI image reference. Docker shorthand and tags are accepted; the selected platform manifest is pinned at creation. Defaults to `node:24-bookworm` (Debian with Node.js, Python, git, and a C toolchain) when neither this nor `image_id` is set. Mutually exclusive with `image_id`. */
|
|
2392
2404
|
base_image?: string;
|
|
2393
|
-
/** @description An image from the images API, for images that need registry credentials. The sandbox boots the image's current `digest
|
|
2405
|
+
/** @description An image from the images API, for images that need registry credentials. The sandbox boots the image's current `digest`, at the image's size unless `vcpu_count` or `mem_size_mib` is set. Mutually exclusive with `base_image`. */
|
|
2394
2406
|
image_id?: string;
|
|
2395
2407
|
/** @description TCP ports to expose publicly when the sandbox is created. */
|
|
2396
2408
|
ports?: number[];
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@archildata/api-types",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "API types for
|
|
3
|
+
"version": "0.0.90",
|
|
4
|
+
"description": "Public API types for Archil",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"index.d.ts",
|
|
9
|
+
"process_pb.js",
|
|
10
|
+
"process_pb.d.ts",
|
|
9
11
|
"README.md",
|
|
10
12
|
"LICENSE"
|
|
11
13
|
],
|
|
@@ -13,19 +15,35 @@
|
|
|
13
15
|
"exports": {
|
|
14
16
|
".": {
|
|
15
17
|
"types": "./index.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./process": {
|
|
20
|
+
"types": "./process_pb.d.ts",
|
|
21
|
+
"default": "./process_pb.js"
|
|
16
22
|
}
|
|
17
23
|
},
|
|
18
24
|
"publishConfig": {
|
|
19
25
|
"access": "public"
|
|
20
26
|
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"@bufbuild/protobuf": "^2.16.0"
|
|
29
|
+
},
|
|
30
|
+
"peerDependenciesMeta": {
|
|
31
|
+
"@bufbuild/protobuf": {
|
|
32
|
+
"optional": true
|
|
33
|
+
}
|
|
34
|
+
},
|
|
21
35
|
"devDependencies": {
|
|
36
|
+
"@bufbuild/protobuf": "^2.16.0",
|
|
37
|
+
"@bufbuild/protoc-gen-es": "^2.16.0",
|
|
22
38
|
"openapi-typescript": "^7.6.1",
|
|
23
39
|
"typescript": "^5.9.3"
|
|
24
40
|
},
|
|
25
41
|
"scripts": {
|
|
26
42
|
"build": "pnpm run generate",
|
|
27
|
-
"generate": "
|
|
43
|
+
"generate": "pnpm run generate:api && pnpm run generate:process",
|
|
28
44
|
"test": "pnpm run typecheck",
|
|
29
|
-
"typecheck": "tsc --noEmit"
|
|
45
|
+
"typecheck": "tsc --noEmit",
|
|
46
|
+
"generate:api": "openapi-typescript ../../api/controlplane/openapi.yaml -o index.d.ts",
|
|
47
|
+
"generate:process": "protoc -I ../../rust-libs/container-agent-protocol/proto -o process.binpb process.proto && protoc --descriptor_set_in=process.binpb --plugin=protoc-gen-es=./node_modules/.bin/protoc-gen-es --es_out=. --es_opt=target=js+dts process.proto && rm process.binpb"
|
|
30
48
|
}
|
|
31
49
|
}
|
package/process_pb.d.ts
ADDED
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.16.0 with parameter "target=js+dts"
|
|
2
|
+
// @generated from file process.proto (package archil.process.v2, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file process.proto.
|
|
10
|
+
*/
|
|
11
|
+
export declare const file_process: GenFile;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @generated from message archil.process.v2.ClientFrame
|
|
15
|
+
*/
|
|
16
|
+
export declare type ClientFrame = Message<"archil.process.v2.ClientFrame"> & {
|
|
17
|
+
/**
|
|
18
|
+
* @generated from field: uint32 channel_id = 1;
|
|
19
|
+
*/
|
|
20
|
+
channelId: number;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @generated from oneof archil.process.v2.ClientFrame.body
|
|
24
|
+
*/
|
|
25
|
+
body: {
|
|
26
|
+
/**
|
|
27
|
+
* @generated from field: archil.process.v2.Start start = 2;
|
|
28
|
+
*/
|
|
29
|
+
value: Start;
|
|
30
|
+
case: "start";
|
|
31
|
+
} | {
|
|
32
|
+
/**
|
|
33
|
+
* @generated from field: archil.process.v2.Attach attach = 3;
|
|
34
|
+
*/
|
|
35
|
+
value: Attach;
|
|
36
|
+
case: "attach";
|
|
37
|
+
} | {
|
|
38
|
+
/**
|
|
39
|
+
* @generated from field: archil.process.v2.Kill kill = 4;
|
|
40
|
+
*/
|
|
41
|
+
value: Kill;
|
|
42
|
+
case: "kill";
|
|
43
|
+
} | {
|
|
44
|
+
/**
|
|
45
|
+
* @generated from field: archil.process.v2.Resize resize = 5;
|
|
46
|
+
*/
|
|
47
|
+
value: Resize;
|
|
48
|
+
case: "resize";
|
|
49
|
+
} | {
|
|
50
|
+
/**
|
|
51
|
+
* @generated from field: bytes stdin = 6;
|
|
52
|
+
*/
|
|
53
|
+
value: Uint8Array;
|
|
54
|
+
case: "stdin";
|
|
55
|
+
} | {
|
|
56
|
+
/**
|
|
57
|
+
* @generated from field: archil.process.v2.Empty close_stdin = 7;
|
|
58
|
+
*/
|
|
59
|
+
value: Empty;
|
|
60
|
+
case: "closeStdin";
|
|
61
|
+
} | {
|
|
62
|
+
/**
|
|
63
|
+
* @generated from field: archil.process.v2.Empty detach = 8;
|
|
64
|
+
*/
|
|
65
|
+
value: Empty;
|
|
66
|
+
case: "detach";
|
|
67
|
+
} | {
|
|
68
|
+
/**
|
|
69
|
+
* @generated from field: archil.process.v2.WindowUpdate window_update = 9;
|
|
70
|
+
*/
|
|
71
|
+
value: WindowUpdate;
|
|
72
|
+
case: "windowUpdate";
|
|
73
|
+
} | { case: undefined; value?: undefined };
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Describes the message archil.process.v2.ClientFrame.
|
|
78
|
+
* Use `create(ClientFrameSchema)` to create a new message.
|
|
79
|
+
*/
|
|
80
|
+
export declare const ClientFrameSchema: GenMessage<ClientFrame>;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @generated from message archil.process.v2.ServerFrame
|
|
84
|
+
*/
|
|
85
|
+
export declare type ServerFrame = Message<"archil.process.v2.ServerFrame"> & {
|
|
86
|
+
/**
|
|
87
|
+
* @generated from field: uint32 channel_id = 1;
|
|
88
|
+
*/
|
|
89
|
+
channelId: number;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @generated from oneof archil.process.v2.ServerFrame.body
|
|
93
|
+
*/
|
|
94
|
+
body: {
|
|
95
|
+
/**
|
|
96
|
+
* @generated from field: archil.process.v2.ProcessIdentity started = 2;
|
|
97
|
+
*/
|
|
98
|
+
value: ProcessIdentity;
|
|
99
|
+
case: "started";
|
|
100
|
+
} | {
|
|
101
|
+
/**
|
|
102
|
+
* @generated from field: archil.process.v2.ProcessIdentity attached = 3;
|
|
103
|
+
*/
|
|
104
|
+
value: ProcessIdentity;
|
|
105
|
+
case: "attached";
|
|
106
|
+
} | {
|
|
107
|
+
/**
|
|
108
|
+
* @generated from field: archil.process.v2.Output stdout = 4;
|
|
109
|
+
*/
|
|
110
|
+
value: Output;
|
|
111
|
+
case: "stdout";
|
|
112
|
+
} | {
|
|
113
|
+
/**
|
|
114
|
+
* @generated from field: archil.process.v2.Output stderr = 5;
|
|
115
|
+
*/
|
|
116
|
+
value: Output;
|
|
117
|
+
case: "stderr";
|
|
118
|
+
} | {
|
|
119
|
+
/**
|
|
120
|
+
* @generated from field: archil.process.v2.WindowUpdate window_update = 6;
|
|
121
|
+
*/
|
|
122
|
+
value: WindowUpdate;
|
|
123
|
+
case: "windowUpdate";
|
|
124
|
+
} | {
|
|
125
|
+
/**
|
|
126
|
+
* @generated from field: archil.process.v2.Exit exit = 7;
|
|
127
|
+
*/
|
|
128
|
+
value: Exit;
|
|
129
|
+
case: "exit";
|
|
130
|
+
} | {
|
|
131
|
+
/**
|
|
132
|
+
* @generated from field: archil.process.v2.Error error = 8;
|
|
133
|
+
*/
|
|
134
|
+
value: Error;
|
|
135
|
+
case: "error";
|
|
136
|
+
} | {
|
|
137
|
+
/**
|
|
138
|
+
* @generated from field: archil.process.v2.Empty killed = 9;
|
|
139
|
+
*/
|
|
140
|
+
value: Empty;
|
|
141
|
+
case: "killed";
|
|
142
|
+
} | {
|
|
143
|
+
/**
|
|
144
|
+
* @generated from field: archil.process.v2.Empty resized = 10;
|
|
145
|
+
*/
|
|
146
|
+
value: Empty;
|
|
147
|
+
case: "resized";
|
|
148
|
+
} | {
|
|
149
|
+
/**
|
|
150
|
+
* @generated from field: archil.process.v2.Empty detached = 11;
|
|
151
|
+
*/
|
|
152
|
+
value: Empty;
|
|
153
|
+
case: "detached";
|
|
154
|
+
} | {
|
|
155
|
+
/**
|
|
156
|
+
* @generated from field: archil.process.v2.Empty drain = 12;
|
|
157
|
+
*/
|
|
158
|
+
value: Empty;
|
|
159
|
+
case: "drain";
|
|
160
|
+
} | { case: undefined; value?: undefined };
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Describes the message archil.process.v2.ServerFrame.
|
|
165
|
+
* Use `create(ServerFrameSchema)` to create a new message.
|
|
166
|
+
*/
|
|
167
|
+
export declare const ServerFrameSchema: GenMessage<ServerFrame>;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @generated from message archil.process.v2.Empty
|
|
171
|
+
*/
|
|
172
|
+
export declare type Empty = Message<"archil.process.v2.Empty"> & {
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Describes the message archil.process.v2.Empty.
|
|
177
|
+
* Use `create(EmptySchema)` to create a new message.
|
|
178
|
+
*/
|
|
179
|
+
export declare const EmptySchema: GenMessage<Empty>;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* @generated from message archil.process.v2.WindowUpdate
|
|
183
|
+
*/
|
|
184
|
+
export declare type WindowUpdate = Message<"archil.process.v2.WindowUpdate"> & {
|
|
185
|
+
/**
|
|
186
|
+
* @generated from field: uint32 bytes = 1;
|
|
187
|
+
*/
|
|
188
|
+
bytes: number;
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Describes the message archil.process.v2.WindowUpdate.
|
|
193
|
+
* Use `create(WindowUpdateSchema)` to create a new message.
|
|
194
|
+
*/
|
|
195
|
+
export declare const WindowUpdateSchema: GenMessage<WindowUpdate>;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @generated from message archil.process.v2.Output
|
|
199
|
+
*/
|
|
200
|
+
export declare type Output = Message<"archil.process.v2.Output"> & {
|
|
201
|
+
/**
|
|
202
|
+
* @generated from field: uint64 offset = 1;
|
|
203
|
+
*/
|
|
204
|
+
offset: bigint;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* @generated from field: bytes data = 2;
|
|
208
|
+
*/
|
|
209
|
+
data: Uint8Array;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Describes the message archil.process.v2.Output.
|
|
214
|
+
* Use `create(OutputSchema)` to create a new message.
|
|
215
|
+
*/
|
|
216
|
+
export declare const OutputSchema: GenMessage<Output>;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @generated from message archil.process.v2.Start
|
|
220
|
+
*/
|
|
221
|
+
export declare type Start = Message<"archil.process.v2.Start"> & {
|
|
222
|
+
/**
|
|
223
|
+
* @generated from field: string command = 1;
|
|
224
|
+
*/
|
|
225
|
+
command: string;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* @generated from field: optional string cwd = 2;
|
|
229
|
+
*/
|
|
230
|
+
cwd?: string | undefined;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @generated from field: archil.process.v2.TerminalSize terminal = 3;
|
|
234
|
+
*/
|
|
235
|
+
terminal?: TerminalSize | undefined;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* @generated from field: map<string, string> env = 4;
|
|
239
|
+
*/
|
|
240
|
+
env: { [key: string]: string };
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* @generated from field: optional uint64 timeout_seconds = 5;
|
|
244
|
+
*/
|
|
245
|
+
timeoutSeconds?: bigint | undefined;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Describes the message archil.process.v2.Start.
|
|
250
|
+
* Use `create(StartSchema)` to create a new message.
|
|
251
|
+
*/
|
|
252
|
+
export declare const StartSchema: GenMessage<Start>;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* @generated from message archil.process.v2.TerminalSize
|
|
256
|
+
*/
|
|
257
|
+
export declare type TerminalSize = Message<"archil.process.v2.TerminalSize"> & {
|
|
258
|
+
/**
|
|
259
|
+
* @generated from field: uint32 rows = 1;
|
|
260
|
+
*/
|
|
261
|
+
rows: number;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* @generated from field: uint32 cols = 2;
|
|
265
|
+
*/
|
|
266
|
+
cols: number;
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Describes the message archil.process.v2.TerminalSize.
|
|
271
|
+
* Use `create(TerminalSizeSchema)` to create a new message.
|
|
272
|
+
*/
|
|
273
|
+
export declare const TerminalSizeSchema: GenMessage<TerminalSize>;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* @generated from message archil.process.v2.Attach
|
|
277
|
+
*/
|
|
278
|
+
export declare type Attach = Message<"archil.process.v2.Attach"> & {
|
|
279
|
+
/**
|
|
280
|
+
* @generated from field: string process_id = 1;
|
|
281
|
+
*/
|
|
282
|
+
processId: string;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* @generated from field: uint64 offset = 2;
|
|
286
|
+
*/
|
|
287
|
+
offset: bigint;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* @generated from field: bool shared = 3;
|
|
291
|
+
*/
|
|
292
|
+
shared: boolean;
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Describes the message archil.process.v2.Attach.
|
|
297
|
+
* Use `create(AttachSchema)` to create a new message.
|
|
298
|
+
*/
|
|
299
|
+
export declare const AttachSchema: GenMessage<Attach>;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* @generated from message archil.process.v2.ProcessIdentity
|
|
303
|
+
*/
|
|
304
|
+
export declare type ProcessIdentity = Message<"archil.process.v2.ProcessIdentity"> & {
|
|
305
|
+
/**
|
|
306
|
+
* @generated from field: string process_id = 1;
|
|
307
|
+
*/
|
|
308
|
+
processId: string;
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Describes the message archil.process.v2.ProcessIdentity.
|
|
313
|
+
* Use `create(ProcessIdentitySchema)` to create a new message.
|
|
314
|
+
*/
|
|
315
|
+
export declare const ProcessIdentitySchema: GenMessage<ProcessIdentity>;
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* @generated from message archil.process.v2.Kill
|
|
319
|
+
*/
|
|
320
|
+
export declare type Kill = Message<"archil.process.v2.Kill"> & {
|
|
321
|
+
/**
|
|
322
|
+
* @generated from field: string process_id = 1;
|
|
323
|
+
*/
|
|
324
|
+
processId: string;
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Describes the message archil.process.v2.Kill.
|
|
329
|
+
* Use `create(KillSchema)` to create a new message.
|
|
330
|
+
*/
|
|
331
|
+
export declare const KillSchema: GenMessage<Kill>;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* @generated from message archil.process.v2.Resize
|
|
335
|
+
*/
|
|
336
|
+
export declare type Resize = Message<"archil.process.v2.Resize"> & {
|
|
337
|
+
/**
|
|
338
|
+
* @generated from field: string process_id = 1;
|
|
339
|
+
*/
|
|
340
|
+
processId: string;
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* @generated from field: archil.process.v2.TerminalSize terminal = 2;
|
|
344
|
+
*/
|
|
345
|
+
terminal?: TerminalSize | undefined;
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Describes the message archil.process.v2.Resize.
|
|
350
|
+
* Use `create(ResizeSchema)` to create a new message.
|
|
351
|
+
*/
|
|
352
|
+
export declare const ResizeSchema: GenMessage<Resize>;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* @generated from message archil.process.v2.Exit
|
|
356
|
+
*/
|
|
357
|
+
export declare type Exit = Message<"archil.process.v2.Exit"> & {
|
|
358
|
+
/**
|
|
359
|
+
* @generated from field: archil.process.v2.Exit.Status status = 1;
|
|
360
|
+
*/
|
|
361
|
+
status: Exit_Status;
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* @generated from field: optional int32 exit_code = 2;
|
|
365
|
+
*/
|
|
366
|
+
exitCode?: number | undefined;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* @generated from field: optional string exit_reason = 3;
|
|
370
|
+
*/
|
|
371
|
+
exitReason?: string | undefined;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* @generated from field: uint64 cursor = 4;
|
|
375
|
+
*/
|
|
376
|
+
cursor: bigint;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* @generated from field: bool oom_killed = 5;
|
|
380
|
+
*/
|
|
381
|
+
oomKilled: boolean;
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Describes the message archil.process.v2.Exit.
|
|
386
|
+
* Use `create(ExitSchema)` to create a new message.
|
|
387
|
+
*/
|
|
388
|
+
export declare const ExitSchema: GenMessage<Exit>;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* @generated from enum archil.process.v2.Exit.Status
|
|
392
|
+
*/
|
|
393
|
+
export enum Exit_Status {
|
|
394
|
+
/**
|
|
395
|
+
* @generated from enum value: UNSPECIFIED = 0;
|
|
396
|
+
*/
|
|
397
|
+
UNSPECIFIED = 0,
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* @generated from enum value: COMPLETED = 1;
|
|
401
|
+
*/
|
|
402
|
+
COMPLETED = 1,
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* @generated from enum value: FAILED = 2;
|
|
406
|
+
*/
|
|
407
|
+
FAILED = 2,
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* @generated from enum value: CANCELLED = 3;
|
|
411
|
+
*/
|
|
412
|
+
CANCELLED = 3,
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* @generated from enum value: TIMED_OUT = 4;
|
|
416
|
+
*/
|
|
417
|
+
TIMED_OUT = 4,
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Describes the enum archil.process.v2.Exit.Status.
|
|
422
|
+
*/
|
|
423
|
+
export declare const Exit_StatusSchema: GenEnum<Exit_Status>;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* @generated from message archil.process.v2.Error
|
|
427
|
+
*/
|
|
428
|
+
export declare type Error = Message<"archil.process.v2.Error"> & {
|
|
429
|
+
/**
|
|
430
|
+
* @generated from field: string code = 1;
|
|
431
|
+
*/
|
|
432
|
+
code: string;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* @generated from field: string message = 2;
|
|
436
|
+
*/
|
|
437
|
+
message: string;
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* Describes the message archil.process.v2.Error.
|
|
442
|
+
* Use `create(ErrorSchema)` to create a new message.
|
|
443
|
+
*/
|
|
444
|
+
export declare const ErrorSchema: GenMessage<Error>;
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* @generated from enum archil.process.v2.Limits
|
|
448
|
+
*/
|
|
449
|
+
export enum Limits {
|
|
450
|
+
/**
|
|
451
|
+
* @generated from enum value: LIMITS_UNSPECIFIED = 0;
|
|
452
|
+
*/
|
|
453
|
+
LIMITS_UNSPECIFIED = 0,
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* @generated from enum value: MIN_DATA_COST = 256;
|
|
457
|
+
*/
|
|
458
|
+
MIN_DATA_COST = 256,
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* @generated from enum value: MAX_DATA_BYTES = 65536;
|
|
462
|
+
*/
|
|
463
|
+
MAX_DATA_BYTES = 65536,
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* @generated from enum value: INITIAL_WINDOW = 262144;
|
|
467
|
+
*/
|
|
468
|
+
INITIAL_WINDOW = 262144,
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* Describes the enum archil.process.v2.Limits.
|
|
473
|
+
*/
|
|
474
|
+
export declare const LimitsSchema: GenEnum<Limits>;
|
|
475
|
+
|
package/process_pb.js
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.16.0 with parameter "target=js+dts"
|
|
2
|
+
// @generated from file process.proto (package archil.process.v2, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { enumDesc, fileDesc, messageDesc, tsEnum } from "@bufbuild/protob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YASABKAkSMQoIdGVybWluYWwYAiABKAsyHy5hcmNoaWwucHJvY2Vzcy52Mi5UZXJtaW5hbFNpemUi/gEKBEV4aXQSLgoGc3RhdHVzGAEgASgOMh4uYXJjaGlsLnByb2Nlc3MudjIuRXhpdC5TdGF0dXMSFgoJZXhpdF9jb2RlGAIgASgFSACIAQESGAoLZXhpdF9yZWFzb24YAyABKAlIAYgBARIOCgZjdXJzb3IYBCABKAQSEgoKb29tX2tpbGxlZBgFIAEoCCJSCgZTdGF0dXMSDwoLVU5TUEVDSUZJRUQQABINCglDT01QTEVURUQQARIKCgZGQUlMRUQQAhINCglDQU5DRUxMRUQQAxINCglUSU1FRF9PVVQQBEIMCgpfZXhpdF9jb2RlQg4KDF9leGl0X3JlYXNvbiImCgVFcnJvchIMCgRjb2RlGAEgASgJEg8KB21lc3NhZ2UYAiABKAkqYAoGTGltaXRzEhYKEkxJTUlUU19VTlNQRUNJRklFRBAAEhIKDU1JTl9EQVRBX0NPU1QQgAISFAoOTUFYX0RBVEFfQllURVMQgIAEEhQKDklOSVRJQUxfV0lORE9XEICAEGIGcHJvdG8z");
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Describes the message archil.process.v2.ClientFrame.
|
|
15
|
+
* Use `create(ClientFrameSchema)` to create a new message.
|
|
16
|
+
*/
|
|
17
|
+
export const ClientFrameSchema = /*@__PURE__*/
|
|
18
|
+
messageDesc(file_process, 0);
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message archil.process.v2.ServerFrame.
|
|
22
|
+
* Use `create(ServerFrameSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export const ServerFrameSchema = /*@__PURE__*/
|
|
25
|
+
messageDesc(file_process, 1);
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message archil.process.v2.Empty.
|
|
29
|
+
* Use `create(EmptySchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export const EmptySchema = /*@__PURE__*/
|
|
32
|
+
messageDesc(file_process, 2);
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Describes the message archil.process.v2.WindowUpdate.
|
|
36
|
+
* Use `create(WindowUpdateSchema)` to create a new message.
|
|
37
|
+
*/
|
|
38
|
+
export const WindowUpdateSchema = /*@__PURE__*/
|
|
39
|
+
messageDesc(file_process, 3);
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Describes the message archil.process.v2.Output.
|
|
43
|
+
* Use `create(OutputSchema)` to create a new message.
|
|
44
|
+
*/
|
|
45
|
+
export const OutputSchema = /*@__PURE__*/
|
|
46
|
+
messageDesc(file_process, 4);
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Describes the message archil.process.v2.Start.
|
|
50
|
+
* Use `create(StartSchema)` to create a new message.
|
|
51
|
+
*/
|
|
52
|
+
export const StartSchema = /*@__PURE__*/
|
|
53
|
+
messageDesc(file_process, 5);
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Describes the message archil.process.v2.TerminalSize.
|
|
57
|
+
* Use `create(TerminalSizeSchema)` to create a new message.
|
|
58
|
+
*/
|
|
59
|
+
export const TerminalSizeSchema = /*@__PURE__*/
|
|
60
|
+
messageDesc(file_process, 6);
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Describes the message archil.process.v2.Attach.
|
|
64
|
+
* Use `create(AttachSchema)` to create a new message.
|
|
65
|
+
*/
|
|
66
|
+
export const AttachSchema = /*@__PURE__*/
|
|
67
|
+
messageDesc(file_process, 7);
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Describes the message archil.process.v2.ProcessIdentity.
|
|
71
|
+
* Use `create(ProcessIdentitySchema)` to create a new message.
|
|
72
|
+
*/
|
|
73
|
+
export const ProcessIdentitySchema = /*@__PURE__*/
|
|
74
|
+
messageDesc(file_process, 8);
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Describes the message archil.process.v2.Kill.
|
|
78
|
+
* Use `create(KillSchema)` to create a new message.
|
|
79
|
+
*/
|
|
80
|
+
export const KillSchema = /*@__PURE__*/
|
|
81
|
+
messageDesc(file_process, 9);
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Describes the message archil.process.v2.Resize.
|
|
85
|
+
* Use `create(ResizeSchema)` to create a new message.
|
|
86
|
+
*/
|
|
87
|
+
export const ResizeSchema = /*@__PURE__*/
|
|
88
|
+
messageDesc(file_process, 10);
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Describes the message archil.process.v2.Exit.
|
|
92
|
+
* Use `create(ExitSchema)` to create a new message.
|
|
93
|
+
*/
|
|
94
|
+
export const ExitSchema = /*@__PURE__*/
|
|
95
|
+
messageDesc(file_process, 11);
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Describes the enum archil.process.v2.Exit.Status.
|
|
99
|
+
*/
|
|
100
|
+
export const Exit_StatusSchema = /*@__PURE__*/
|
|
101
|
+
enumDesc(file_process, 11, 0);
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @generated from enum archil.process.v2.Exit.Status
|
|
105
|
+
*/
|
|
106
|
+
export const Exit_Status = /*@__PURE__*/
|
|
107
|
+
tsEnum(Exit_StatusSchema);
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Describes the message archil.process.v2.Error.
|
|
111
|
+
* Use `create(ErrorSchema)` to create a new message.
|
|
112
|
+
*/
|
|
113
|
+
export const ErrorSchema = /*@__PURE__*/
|
|
114
|
+
messageDesc(file_process, 12);
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Describes the enum archil.process.v2.Limits.
|
|
118
|
+
*/
|
|
119
|
+
export const LimitsSchema = /*@__PURE__*/
|
|
120
|
+
enumDesc(file_process, 0);
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @generated from enum archil.process.v2.Limits
|
|
124
|
+
*/
|
|
125
|
+
export const Limits = /*@__PURE__*/
|
|
126
|
+
tsEnum(LimitsSchema);
|
|
127
|
+
|