@archildata/api-types 0.0.87 → 0.0.89
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 +16 -5
- 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
|
@@ -2082,6 +2082,11 @@ export interface components {
|
|
|
2082
2082
|
};
|
|
2083
2083
|
/** @enum {string} */
|
|
2084
2084
|
SandboxState: "pending" | "running" | "pausing" | "paused" | "stopping" | "stopped" | "exited" | "failed" | "deleting" | "deleted";
|
|
2085
|
+
/**
|
|
2086
|
+
* @description What happens when `max_ttl_seconds` or `idle_ttl_seconds` runs out. `pause` preserves memory and processes for resume. `delete` shuts the sandbox down without a snapshot and deletes it with its disk; a sandbox whose forks still exist is left stopped instead.
|
|
2087
|
+
* @enum {string}
|
|
2088
|
+
*/
|
|
2089
|
+
SandboxTimeoutAction: "pause" | "delete";
|
|
2085
2090
|
/** @enum {string} */
|
|
2086
2091
|
SandboxNetworkAction: "allow" | "deny";
|
|
2087
2092
|
/** @description Denied addresses block all traffic to them, and allowed addresses admit all traffic to them regardless of domain rules. Other connections are matched by TLS SNI, or HTTP Host on any port, against domain denies, then domain allows, then the default. When domain rules are present, TCP connections without a hostname are denied; UDP follows the address rules and the default, except that UDP port 443 is denied. Header transforms, forwarding, and drain selectors apply to plaintext HTTP on any port, and to TLS on any port whose handshake offers HTTP through ALPN (or, on port 443, offers no ALPN). */
|
|
@@ -2129,7 +2134,7 @@ export interface components {
|
|
|
2129
2134
|
SandboxTimeoutRequest: {
|
|
2130
2135
|
/** @description Seconds from now until a running sandbox expires, capped at the plan's session ceiling (24 hours at most) after its session started, and the lifetime budget for its next powered-on session. Held to the plan's session ceiling and to what is left of its sandbox allowance (403). */
|
|
2131
2136
|
timeout?: number;
|
|
2132
|
-
/** @description Seconds without a direct process connection before the sandbox pauses
|
|
2137
|
+
/** @description Seconds without a direct process connection before the sandbox pauses or is deleted, per its `on_timeout`. Zero disables idle expiry. */
|
|
2133
2138
|
idle_ttl_seconds?: number;
|
|
2134
2139
|
};
|
|
2135
2140
|
Sandbox: {
|
|
@@ -2140,10 +2145,11 @@ export interface components {
|
|
|
2140
2145
|
status: components["schemas"]["SandboxState"];
|
|
2141
2146
|
vcpu_count: number;
|
|
2142
2147
|
mem_size_mib: number;
|
|
2143
|
-
/** @description Lifetime budget applied independently to each powered-on session. Expiry pauses the sandbox,
|
|
2148
|
+
/** @description Lifetime budget applied independently to each powered-on session. Expiry pauses or deletes the sandbox, per `on_timeout`. Defaults to 24 hours, or to the longest session the plan allows; a start, resume or fork lowers a stored value the plan no longer allows. The timeout endpoint can move the deadline, but no session runs longer than 24 hours. */
|
|
2144
2149
|
max_ttl_seconds: number;
|
|
2145
|
-
/** @description Seconds without a direct process connection before the sandbox pauses
|
|
2150
|
+
/** @description Seconds without a direct process connection before the sandbox pauses or is deleted, per `on_timeout`. Zero disables idle expiry. */
|
|
2146
2151
|
idle_ttl_seconds: number;
|
|
2152
|
+
on_timeout?: components["schemas"]["SandboxTimeoutAction"];
|
|
2147
2153
|
/** @description Maximum number of concurrently attached process sessions. Detached processes and one-shot process controls do not count. */
|
|
2148
2154
|
max_concurrent_execs: number;
|
|
2149
2155
|
/** @description OCI reference requested when the sandbox was created. Empty for a sandbox created from `image_id`. */
|
|
@@ -2401,15 +2407,20 @@ export interface components {
|
|
|
2401
2407
|
/** @description Archil disks mounted inside the guest for the first session; `start` can replace them for later sessions. Inherited by forks. A sandbox with mounts must be stopped before it can be forked. */
|
|
2402
2408
|
mounts?: components["schemas"]["SandboxMount"][];
|
|
2403
2409
|
/**
|
|
2404
|
-
* @description Lifetime budget applied independently to each powered-on session. Expiry pauses the sandbox,
|
|
2410
|
+
* @description Lifetime budget applied independently to each powered-on session. Expiry pauses or deletes the sandbox, per `on_timeout`. An omitted value is lowered to the longest session the plan allows for the sandbox's size (its session ceiling, then the remaining monthly allowance); an explicit value past that is refused with 403 (`sandbox_ttl_limit_exceeded` or `allowance_insufficient`).
|
|
2405
2411
|
* @default 86400
|
|
2406
2412
|
*/
|
|
2407
2413
|
max_ttl_seconds: number;
|
|
2408
2414
|
/**
|
|
2409
|
-
* @description Pause after this many seconds without a direct process connection
|
|
2415
|
+
* @description Pause or delete the sandbox, per `on_timeout`, after this many seconds without a direct process connection. Defaults to 30 minutes; zero disables idle expiry.
|
|
2410
2416
|
* @default 1800
|
|
2411
2417
|
*/
|
|
2412
2418
|
idle_ttl_seconds: number;
|
|
2419
|
+
/**
|
|
2420
|
+
* @description Inherited by forks.
|
|
2421
|
+
* @default pause
|
|
2422
|
+
*/
|
|
2423
|
+
on_timeout: components["schemas"]["SandboxTimeoutAction"];
|
|
2413
2424
|
/** @description Maximum number of concurrently attached process sessions. Detached processes and one-shot process controls do not count. */
|
|
2414
2425
|
max_concurrent_execs?: number;
|
|
2415
2426
|
};
|
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.89",
|
|
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/protobuf/codegenv2";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file process.proto.
|
|
9
|
+
*/
|
|
10
|
+
export const file_process = /*@__PURE__*/
|
|
11
|
+
fileDesc("Cg1wcm9jZXNzLnByb3RvEhFhcmNoaWwucHJvY2Vzcy52MiL/AgoLQ2xpZW50RnJhbWUSEgoKY2hhbm5lbF9pZBgBIAEoDRIpCgVzdGFydBgCIAEoCzIYLmFyY2hpbC5wcm9jZXNzLnYyLlN0YXJ0SAASKwoGYXR0YWNoGAMgASgLMhkuYXJjaGlsLnByb2Nlc3MudjIuQXR0YWNoSAASJwoEa2lsbBgEIAEoCzIXLmFyY2hpbC5wcm9jZXNzLnYyLktpbGxIABIrCgZyZXNpemUYBSABKAsyGS5hcmNoaWwucHJvY2Vzcy52Mi5SZXNpemVIABIPCgVzdGRpbhgGIAEoDEgAEi8KC2Nsb3NlX3N0ZGluGAcgASgLMhguYXJjaGlsLnByb2Nlc3MudjIuRW1wdHlIABIqCgZkZXRhY2gYCCABKAsyGC5hcmNoaWwucHJvY2Vzcy52Mi5FbXB0eUgAEjgKDXdpbmRvd191cGRhdGUYCSABKAsyHy5hcmNoaWwucHJvY2Vzcy52Mi5XaW5kb3dVcGRhdGVIAEIGCgRib2R5IrIECgtTZXJ2ZXJGcmFtZRISCgpjaGFubmVsX2lkGAEgASgNEjUKB3N0YXJ0ZWQYAiABKAsyIi5hcmNoaWwucHJvY2Vzcy52Mi5Qcm9jZXNzSWRlbnRpdHlIABI2CghhdHRhY2hlZBgDIAEoCzIiLmFyY2hpbC5wcm9jZXNzLnYyLlByb2Nlc3NJZGVudGl0eUgAEisKBnN0ZG91dBgEIAEoCzIZLmFyY2hpbC5wcm9jZXNzLnYyLk91dHB1dEgAEisKBnN0ZGVychgFIAEoCzIZLmFyY2hpbC5wcm9jZXNzLnYyLk91dHB1dEgAEjgKDXdpbmRvd191cGRhdGUYBiABKAsyHy5hcmNoaWwucHJvY2Vzcy52Mi5XaW5kb3dVcGRhdGVIABInCgRleGl0GAcgASgLMhcuYXJjaGlsLnByb2Nlc3MudjIuRXhpdEgAEikKBWVycm9yGAggASgLMhguYXJjaGlsLnByb2Nlc3MudjIuRXJyb3JIABIqCgZraWxsZWQYCSABKAsyGC5hcmNoaWwucHJvY2Vzcy52Mi5FbXB0eUgAEisKB3Jlc2l6ZWQYCiABKAsyGC5hcmNoaWwucHJvY2Vzcy52Mi5FbXB0eUgAEiwKCGRldGFjaGVkGAsgASgLMhguYXJjaGlsLnByb2Nlc3MudjIuRW1wdHlIABIpCgVkcmFpbhgMIAEoCzIYLmFyY2hpbC5wcm9jZXNzLnYyLkVtcHR5SABCBgoEYm9keSIHCgVFbXB0eSIdCgxXaW5kb3dVcGRhdGUSDQoFYnl0ZXMYASABKA0iJgoGT3V0cHV0Eg4KBm9mZnNldBgBIAEoBBIMCgRkYXRhGAIgASgMIvMBCgVTdGFydBIPCgdjb21tYW5kGAEgASgJEhAKA2N3ZBgCIAEoCUgAiAEBEjEKCHRlcm1pbmFsGAMgASgLMh8uYXJjaGlsLnByb2Nlc3MudjIuVGVybWluYWxTaXplEi4KA2VudhgEIAMoCzIhLmFyY2hpbC5wcm9jZXNzLnYyLlN0YXJ0LkVudkVudHJ5EhwKD3RpbWVvdXRfc2Vjb25kcxgFIAEoBEgBiAEBGioKCEVudkVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAFCBgoEX2N3ZEISChBfdGltZW91dF9zZWNvbmRzIioKDFRlcm1pbmFsU2l6ZRIMCgRyb3dzGAEgASgNEgwKBGNvbHMYAiABKA0iPAoGQXR0YWNoEhIKCnByb2Nlc3NfaWQYASABKAkSDgoGb2Zmc2V0GAIgASgEEg4KBnNoYXJlZBgDIAEoCCIlCg9Qcm9jZXNzSWRlbnRpdHkSEgoKcHJvY2Vzc19pZBgBIAEoCSIaCgRLaWxsEhIKCnByb2Nlc3NfaWQYASABKAkiTwoGUmVzaXplEhIKCnByb2Nlc3NfaWQYASABKAkSMQoIdGVybWluYWwYAiABKAsyHy5hcmNoaWwucHJvY2Vzcy52Mi5UZXJtaW5hbFNpemUi/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
|
+
|