@distilled.cloud/boxd 0.0.0-stage → 1.0.0-rc.21

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.
Files changed (47) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +72 -2
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/lazy.js +4 -0
  5. package/lib/_bundle/sdk.js +2 -0
  6. package/lib/_bundle/sdk.js.map +1 -0
  7. package/lib/credentials.d.ts +30 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/descriptors.d.ts +4 -0
  11. package/lib/descriptors.d.ts.map +1 -0
  12. package/lib/errors.d.ts +52 -0
  13. package/lib/errors.d.ts.map +1 -0
  14. package/lib/errors.js +1 -0
  15. package/lib/index.d.ts +36 -0
  16. package/lib/index.d.ts.map +1 -0
  17. package/lib/index.js +6 -0
  18. package/lib/index.lazy.js +6 -0
  19. package/lib/index.lazy.js.map +1 -0
  20. package/lib/protocol.d.ts +16 -0
  21. package/lib/protocol.d.ts.map +1 -0
  22. package/lib/protocol.js +1 -0
  23. package/lib/retry.d.ts +50 -0
  24. package/lib/retry.d.ts.map +1 -0
  25. package/lib/retry.js +1 -0
  26. package/lib/services/boxd.d.ts +3088 -0
  27. package/lib/services/boxd.d.ts.map +1 -0
  28. package/lib/services/boxd.js +189 -0
  29. package/lib/services/boxd.js.map +1 -0
  30. package/lib/services/index.d.ts +2 -0
  31. package/lib/services/index.d.ts.map +1 -0
  32. package/lib/services/index.js +1 -0
  33. package/lib/services.lazy/boxd.js +3 -0
  34. package/lib/services.lazy/index.js +3 -0
  35. package/lib/traits.d.ts +11 -0
  36. package/lib/traits.d.ts.map +1 -0
  37. package/lib/traits.js +1 -0
  38. package/package.json +82 -3
  39. package/src/credentials.ts +76 -0
  40. package/src/descriptors.ts +7 -0
  41. package/src/errors.ts +67 -0
  42. package/src/index.ts +35 -0
  43. package/src/protocol.ts +56 -0
  44. package/src/retry.ts +69 -0
  45. package/src/services/boxd.ts +9030 -0
  46. package/src/services/index.ts +2 -0
  47. package/src/traits.ts +44 -0
@@ -0,0 +1,3088 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ import type { MaxMessageBytesInput } from "@distilled.cloud/core/max-message-bytes";
3
+ import type * as Redacted from "effect/Redacted";
4
+ import { type BoxdOpError, type BoxdOpContext } from "../protocol.ts";
5
+ export type { BoxdOpError, BoxdOpContext };
6
+ export interface AddCustomDomainRequest {
7
+ /** VM id or name */
8
+ vmId?: string | undefined;
9
+ /** full hostname, e.g. "example.com" */
10
+ domain?: string | undefined;
11
+ }
12
+ export interface CustomDomainInfo {
13
+ domain: string;
14
+ vmId: string;
15
+ vmName: string;
16
+ /** "pending" | "active" */
17
+ status: string;
18
+ lastError: string;
19
+ }
20
+ export interface AddCustomDomainResponse {
21
+ domain?: CustomDomainInfo | undefined;
22
+ }
23
+ export interface AddTeamMemberRequest {
24
+ teamId?: string | undefined;
25
+ /** must already be a member of the team's org */
26
+ userId?: string | undefined;
27
+ }
28
+ export interface AddTeamMemberResponse {
29
+ }
30
+ export interface AgentEventsRequest {
31
+ /** machine name or id */
32
+ vmId?: string | undefined;
33
+ sessionId?: string | undefined;
34
+ /** Start after this event; 0: from the session's first event. */
35
+ afterSeq?: string | undefined;
36
+ /** Keep the stream open and carry new events as they happen. */
37
+ follow?: boolean | undefined;
38
+ }
39
+ export interface AgentTurnStarted {
40
+ }
41
+ export type AgentDelivery = "AGENT_DELIVERY_UNSPECIFIED" | "AGENT_DELIVERY_STARTED" | "AGENT_DELIVERY_QUEUED" | "AGENT_DELIVERY_JOINED" | "AGENT_DELIVERY_QUEUED_FALLBACK";
42
+ /** A message the turn received: the one that started it, or one that joined it while it ran. */
43
+ export interface AgentUserMessage {
44
+ text: string;
45
+ delivery: AgentDelivery;
46
+ }
47
+ /** The next piece of the agent's reply, as it is written. */
48
+ export interface AgentMessageDelta {
49
+ text: string;
50
+ }
51
+ /** One whole reply, once written: what its deltas add up to. */
52
+ export type AgentMessage = AgentMessageDelta;
53
+ /** The next piece of the agent's reasoning, for agents that show it. */
54
+ export type AgentThinkingDelta = AgentMessageDelta;
55
+ /** What a tool call does, the same for every agent; the agent's own tool name is in `AgentToolStarted.name`. */
56
+ export type AgentToolKind = "AGENT_TOOL_KIND_UNSPECIFIED" | "AGENT_TOOL_KIND_SHELL" | "AGENT_TOOL_KIND_EDIT" | "AGENT_TOOL_KIND_READ" | "AGENT_TOOL_KIND_SEARCH" | "AGENT_TOOL_KIND_WEB" | "AGENT_TOOL_KIND_MCP" | "AGENT_TOOL_KIND_COMPUTER" | "AGENT_TOOL_KIND_OTHER";
57
+ export interface AgentToolStarted {
58
+ /** Ties the call's output and end to it. */
59
+ callId: string;
60
+ kind: AgentToolKind;
61
+ /** The agent's own name for the tool (`Bash`, `shell`, ...). */
62
+ name: string;
63
+ /** The call's input as the agent sent it, as JSON. */
64
+ inputJson: string;
65
+ }
66
+ /** Output a tool call produces while it runs, such as a command's output. */
67
+ export interface AgentToolOutput {
68
+ callId: string;
69
+ text: string;
70
+ }
71
+ export interface AgentToolFinished {
72
+ callId: string;
73
+ isError: boolean;
74
+ /** The result as the agent received it; long results may be cut short. */
75
+ result: string;
76
+ }
77
+ export interface AgentPlanItem {
78
+ text: string;
79
+ /** `pending`, `in_progress` or `done`. */
80
+ status: string;
81
+ }
82
+ export type AgentPlanItemList = Array<AgentPlanItem>;
83
+ /** The agent's to-do list for the turn, whole each time it changes. */
84
+ export interface AgentPlan {
85
+ items: AgentPlanItemList;
86
+ }
87
+ /** Tokens the turn has used so far, as the agent reports them; sent at least once per turn, before it finishes. */
88
+ export interface AgentUsage {
89
+ inputTokens: string;
90
+ outputTokens: string;
91
+ cacheReadTokens: string;
92
+ cacheWriteTokens: string;
93
+ }
94
+ export type AgentFinishReason = "AGENT_FINISH_REASON_UNSPECIFIED" | "AGENT_FINISH_REASON_DONE" | "AGENT_FINISH_REASON_INTERRUPTED" | "AGENT_FINISH_REASON_TIMEOUT" | "AGENT_FINISH_REASON_MAX_STEPS" | "AGENT_FINISH_REASON_MAX_TOKENS" | "AGENT_FINISH_REASON_REFUSED" | "AGENT_FINISH_REASON_FAILED";
95
+ /** The last event of every turn. */
96
+ export interface AgentTurnFinished {
97
+ reason: AgentFinishReason;
98
+ /** For FAILED: what went wrong and what to do about it. */
99
+ error: string;
100
+ }
101
+ /** What happened in a session, in order. A session's events are numbered 1, 2, 3... (`seq`), so a client that reconnects asks for `after_seq` = the last one it saw and misses nothing. Their kinds are typed and look the same for every agent. New kinds may be added later: a client skips the ones it doesn't know. */
102
+ export interface AgentEvent {
103
+ seq: string;
104
+ /** The turn it belongs to. */
105
+ turn: string;
106
+ timeMs: string;
107
+ turnStarted?: AgentTurnStarted | undefined;
108
+ userMessage?: AgentUserMessage | undefined;
109
+ messageDelta?: AgentMessageDelta | undefined;
110
+ message?: AgentMessageDelta | undefined;
111
+ thinkingDelta?: AgentMessageDelta | undefined;
112
+ toolStarted?: AgentToolStarted | undefined;
113
+ toolOutput?: AgentToolOutput | undefined;
114
+ toolFinished?: AgentToolFinished | undefined;
115
+ plan?: AgentPlan | undefined;
116
+ usage?: AgentUsage | undefined;
117
+ turnFinished?: AgentTurnFinished | undefined;
118
+ }
119
+ export type AgentEventList = Array<AgentEvent>;
120
+ export interface AgentEventsStream {
121
+ /** Every message of the server stream, in order. The stream ends when the server ends it (bound it with the request's timeout). */
122
+ items: AgentEventList;
123
+ }
124
+ export interface AttachDiskRequest {
125
+ diskId?: string | undefined;
126
+ /** VM name or id */
127
+ vmId?: string | undefined;
128
+ mountPath?: string | undefined;
129
+ /** Mount this attachment read-only. A disk is always created writable; this is the only place read-only is chosen. For now a disk can only be attached to one VM at a time (regardless of mode) -- its backing file lives on one specific worker, not shared/networked storage, so this request is rejected if the disk already has any attachment. */
130
+ readOnly?: boolean | undefined;
131
+ }
132
+ export interface AttachDiskResponse {
133
+ }
134
+ export interface ClearBackupScheduleRequest {
135
+ vm?: string | undefined;
136
+ }
137
+ export interface ClearBackupScheduleResponse {
138
+ }
139
+ export interface ClearOrgDomainRequest {
140
+ orgId?: string | undefined;
141
+ /** "" = the region this endpoint serves */
142
+ region?: string | undefined;
143
+ }
144
+ export interface ClearOrgDomainResponse {
145
+ }
146
+ export interface CloseAgentSessionRequest {
147
+ /** machine name or id */
148
+ vmId?: string | undefined;
149
+ sessionId?: string | undefined;
150
+ /** Close once the session has nothing left to do, instead of at once: no turn running, no message waiting, and no command the agent left running in the background (Claude Code's background tasks; the agent reports their end in a turn of its own, which is waited for too). Until then the session stays open and takes messages as before. A close without this closes it at once, whatever is left. */
151
+ whenDone?: boolean | undefined;
152
+ }
153
+ export interface CloseAgentSessionResponse {
154
+ /** With `when_done`: the session still has work, and closes by itself when that is done. False: it is closed now. */
155
+ pending: boolean;
156
+ /** With `pending`: how many commands the agent still runs in the background. */
157
+ background: number;
158
+ }
159
+ export interface CompleteAgentLoginRequest {
160
+ /** as in StartAgentLogin */
161
+ vmId?: string | undefined;
162
+ harness?: string | undefined;
163
+ /** PASTE_CODE: the code the page showed after you approved */
164
+ code?: string | undefined;
165
+ /** DEVICE_CODE: StartAgentLogin's `handle` */
166
+ handle?: string | undefined;
167
+ /** as in StartAgentLogin */
168
+ org?: string | undefined;
169
+ }
170
+ /** Your sign-in to one agent in one organization. */
171
+ export interface AgentLogin {
172
+ harness: string;
173
+ signedIn: boolean;
174
+ /** the account's email, when the provider says */
175
+ account: string;
176
+ /** the organization it's kept in */
177
+ orgId: string;
178
+ /** the last sign-in or refresh; 0 when signed out */
179
+ updatedAtMs: string;
180
+ }
181
+ export interface CompleteAgentLoginResponse {
182
+ /** DEVICE_CODE: not approved yet; ask again in `interval_secs`. */
183
+ pending: boolean;
184
+ /** once signed in */
185
+ login?: AgentLogin | undefined;
186
+ }
187
+ /** Fields shared by the mouse actions: - `at`: where; unset means where the pointer is now. - `button`: "left" (the default when empty), "right", "middle", "back" or "forward". - `modifiers`: keys held down during the action: "shift", "ctrl", "alt", "super", or several joined with "+" ("ctrl+shift"). */
188
+ export type ComputerScreenshot = AgentTurnStarted;
189
+ export type ComputerCursorPosition = AgentTurnStarted;
190
+ /** A point on the screen, in pixels from the top left. */
191
+ export interface ComputerPoint {
192
+ x?: number | undefined;
193
+ y?: number | undefined;
194
+ }
195
+ export interface ComputerMouseMove {
196
+ to?: ComputerPoint | undefined;
197
+ }
198
+ export interface ComputerClick {
199
+ at?: ComputerPoint | undefined;
200
+ button?: string | undefined;
201
+ /** 1 (the default when 0), 2 for a double click, 3 for a triple click */
202
+ count?: number | undefined;
203
+ modifiers?: string | undefined;
204
+ }
205
+ /** Press (`mouse_down`) or release (`mouse_up`) a button, for drags an agent does step by step. */
206
+ export interface ComputerMouseButton {
207
+ at?: ComputerPoint | undefined;
208
+ button?: string | undefined;
209
+ }
210
+ export type ComputerPointList = Array<ComputerPoint>;
211
+ /** Press at the first point, move through the rest, release at the last. */
212
+ export interface ComputerDrag {
213
+ /** 2 to 100 points */
214
+ path?: ComputerPointList | undefined;
215
+ button?: string | undefined;
216
+ modifiers?: string | undefined;
217
+ }
218
+ /** Wheel clicks; positive scrolls right (`delta_x`) and down (`delta_y`). */
219
+ export interface ComputerScroll {
220
+ at?: ComputerPoint | undefined;
221
+ deltaX?: number | undefined;
222
+ deltaY?: number | undefined;
223
+ modifiers?: string | undefined;
224
+ }
225
+ /** Types text where the keyboard focus is, as a person would on a US layout. */
226
+ export interface ComputerType {
227
+ text?: string | undefined;
228
+ }
229
+ /** Presses keys. `keys` is a key or a "+"-joined combination ("Return", "ctrl+s", "alt+Tab"), or several separated by spaces, pressed in turn. Names are X keysyms as xdotool takes them, plus common aliases ("enter", "esc", "cmd", "arrowleft", "pageup"), case-insensitive. */
230
+ export interface ComputerKey {
231
+ keys?: string | undefined;
232
+ /** Press the keys this many times; 0 means once. Up to 100, and up to 1000 presses in all (the keys times `repeat`). */
233
+ repeat?: number | undefined;
234
+ /** Hold one key or combination down this long, then release it, instead of pressing it. Up to 300000 (5 minutes). */
235
+ holdMs?: number | undefined;
236
+ }
237
+ export interface ComputerWait {
238
+ /** up to 300000 (5 minutes) */
239
+ ms?: number | undefined;
240
+ }
241
+ /** Hold the screen at this size until it is let go or the desktop restarts. While it is held, someone watching in the console sees it scaled to fit instead of resizing it, so an agent's coordinates stay put. Both 0 lets go, and the screen follows the viewer again. From 320x200 to 5120x2880. */
242
+ export interface ComputerSetScreenSize {
243
+ width?: number | undefined;
244
+ height?: number | undefined;
245
+ }
246
+ /** A rectangle on the screen. */
247
+ export interface ComputerRegion {
248
+ x?: number | undefined;
249
+ y?: number | undefined;
250
+ width?: number | undefined;
251
+ height?: number | undefined;
252
+ }
253
+ export interface ComputerScreenshotOptions {
254
+ /** "png" (the default when empty), "jpeg" or "webp" */
255
+ format?: string | undefined;
256
+ /** jpeg and webp, 1-100; 0 means 80 */
257
+ quality?: number | undefined;
258
+ /** Scale the image down to fit within this size, keeping its shape; 0 means no limit. Never scaled up. */
259
+ maxWidth?: number | undefined;
260
+ maxHeight?: number | undefined;
261
+ /** Only this part of the screen, at full resolution (then scaled to fit `max_width`/`max_height`), for zooming in. Unset means the whole screen. */
262
+ region?: ComputerRegion | undefined;
263
+ /** Wait this long after the action before taking the screenshot, so the screen can catch up. Up to 60000. */
264
+ delayMs?: number | undefined;
265
+ }
266
+ export interface ComputerActionRequest {
267
+ /** machine name or id */
268
+ vmId?: string | undefined;
269
+ /** Exactly one. */
270
+ screenshot?: AgentTurnStarted | undefined;
271
+ cursorPosition?: AgentTurnStarted | undefined;
272
+ mouseMove?: ComputerMouseMove | undefined;
273
+ click?: ComputerClick | undefined;
274
+ mouseDown?: ComputerMouseButton | undefined;
275
+ mouseUp?: ComputerMouseButton | undefined;
276
+ drag?: ComputerDrag | undefined;
277
+ scroll?: ComputerScroll | undefined;
278
+ type?: ComputerType | undefined;
279
+ key?: ComputerKey | undefined;
280
+ wait?: ComputerWait | undefined;
281
+ setScreenSize?: ComputerSetScreenSize | undefined;
282
+ /** Take a screenshot after the action and return it. Always on for the `screenshot` action. */
283
+ returnScreenshot?: boolean | undefined;
284
+ screenshotOptions?: ComputerScreenshotOptions | undefined;
285
+ }
286
+ export interface ComputerImage {
287
+ data: string;
288
+ /** "image/png", "image/jpeg" or "image/webp" */
289
+ mimeType: string;
290
+ /** the image's size, after any scaling */
291
+ width: number;
292
+ height: number;
293
+ }
294
+ export interface ComputerActionResponse {
295
+ screenWidth: number;
296
+ screenHeight: number;
297
+ /** where the pointer is after the action */
298
+ cursor?: ComputerPoint | undefined;
299
+ /** Set when one was asked for. A full-size PNG of a large screen can pass 30 MB: a client on gRPC's default 4 MB receive limit should raise it, or ask for less with `max_width`/`max_height` or JPEG. */
300
+ screenshot?: ComputerImage | undefined;
301
+ /** set_screen_size is holding the screen at this size */
302
+ screenHeld: boolean;
303
+ }
304
+ export interface CopyPathRequest {
305
+ vmId?: string | undefined;
306
+ oldPath?: string | undefined;
307
+ /** copied recursively if old_path is a directory */
308
+ newPath?: string | undefined;
309
+ }
310
+ export interface CopyPathResponse {
311
+ }
312
+ export interface CreateApiKeyRequest {
313
+ name?: string | undefined;
314
+ /** 0 = no expiry */
315
+ expiresInSecs?: string | undefined;
316
+ /** Org (by name) the key is fenced to; "" = your own org. Every key is scoped to exactly one org -- a key never grants account-wide access. */
317
+ org?: string | undefined;
318
+ /** "member" (default): acts as you within the org. "org": userless service credential -- the org's SHARED fleet only; requires org admin. */
319
+ kind?: string | undefined;
320
+ }
321
+ export interface CreateApiKeyResponse {
322
+ id: string;
323
+ /** raw key, shown once -- never stored */
324
+ apiKey: string | Redacted.Redacted<string>;
325
+ /** 0 = no expiry */
326
+ expiresAt: string;
327
+ }
328
+ export interface CreateBillingPortalSessionRequest {
329
+ /** optional override */
330
+ returnUrl?: string | undefined;
331
+ }
332
+ export interface CreateBillingPortalSessionResponse {
333
+ portalUrl: string;
334
+ }
335
+ export interface CreateCheckoutSessionRequest {
336
+ /** Field 1 removed (shape). There is one self-serve plan; old clients still sending it are ignored (unknown fields are skipped). */
337
+ successUrl?: string | undefined;
338
+ /** optional override */
339
+ cancelUrl?: string | undefined;
340
+ }
341
+ export interface CreateCheckoutSessionResponse {
342
+ checkoutUrl: string;
343
+ }
344
+ export interface CreateCheckpointRequest {
345
+ /** VM name or id (owned by the caller, must be running; a Windows machine may also be suspended, hibernated or stopped: its checkpoint is its disk) */
346
+ vm?: string | undefined;
347
+ /** checkpoint name (unique per VM) */
348
+ name?: string | undefined;
349
+ }
350
+ export interface CreateCheckpointResponse {
351
+ checkpointId: string;
352
+ name: string;
353
+ /** "pending" until the artifact lands */
354
+ status: string;
355
+ }
356
+ export interface CreateDiskRequest {
357
+ name?: string | undefined;
358
+ /** disk size in bytes */
359
+ sizeBytes?: string | undefined;
360
+ }
361
+ export interface CreateDiskResponse {
362
+ diskId: string;
363
+ name: string;
364
+ sizeBytes: string;
365
+ status: string;
366
+ }
367
+ export type StringList = Array<string>;
368
+ export interface CreateMachineTokenRequest {
369
+ /** at least one, at most 100 */
370
+ machines?: StringList | undefined;
371
+ /** 0 = 1 hour; at most 24 hours */
372
+ expiresInSecs?: string | undefined;
373
+ }
374
+ export interface CreateMachineTokenResponse {
375
+ /** starts with "bxdm_"; use it as a bearer token, shown once */
376
+ token: string | Redacted.Redacted<string>;
377
+ /** unix seconds */
378
+ expiresAt: string;
379
+ /** the token's id, for RevokeToken */
380
+ jti: string;
381
+ /** the machines it acts on, in request order */
382
+ machineIds: StringList;
383
+ }
384
+ export interface CreateNetworkRequest {
385
+ name?: string | undefined;
386
+ }
387
+ export interface CreateNetworkResponse {
388
+ networkId: string;
389
+ }
390
+ export interface CreateOrgRequest {
391
+ name?: string | undefined;
392
+ }
393
+ export interface CreateOrgResponse {
394
+ id: string;
395
+ name: string;
396
+ }
397
+ export interface CreateProxyRequest {
398
+ name?: string | undefined;
399
+ /** use `vm` */
400
+ vmName?: string | undefined;
401
+ port?: number | undefined;
402
+ /** Machine id OR name. Preferred over `vm_name`. */
403
+ vm?: string | undefined;
404
+ }
405
+ export interface CreateProxyResponse {
406
+ name: string;
407
+ vmName: string;
408
+ domain: string;
409
+ port: number;
410
+ }
411
+ export interface CreateSnapshotRequest {
412
+ /** source VM name or id (owned by the caller, must be running) */
413
+ vm?: string | undefined;
414
+ /** snapshot name (unique per owner; re-save bumps the version) */
415
+ name?: string | undefined;
416
+ }
417
+ export interface CreateSnapshotResponse {
418
+ snapshotId: string;
419
+ name: string;
420
+ /** the version being captured */
421
+ version: string;
422
+ /** "pending" until the artifact lands on the origin */
423
+ status: string;
424
+ /** How many of the source machine's automations this version captured . Every machine created from it is born with them paused, as a fork is, so nothing runs twice; `run restart <id>` inside that machine starts one there. 0 when the source has none running. */
425
+ pausedAutomations: number;
426
+ }
427
+ export interface CreateStagedSnapshotRequest {
428
+ /** source VM name or id (owned by the caller, must be running) */
429
+ vm?: string | undefined;
430
+ /** snapshot name (unique per owner; re-save bumps the version) */
431
+ name?: string | undefined;
432
+ }
433
+ export interface CreateStagedSnapshotResponse {
434
+ snapshotId: string;
435
+ name: string;
436
+ /** the version being captured */
437
+ version: string;
438
+ /** "pending" until the artifact lands on the origin */
439
+ status: string;
440
+ /** How many of the source machine's automations this version captured . Every machine created from it is born with them paused, as a fork is, so nothing runs twice; `run restart <id>` inside that machine starts one there. 0 when the source has none running. */
441
+ pausedAutomations: number;
442
+ }
443
+ export interface CreateTeamRequest {
444
+ /** name or id; "" = your home org */
445
+ orgId?: string | undefined;
446
+ name?: string | undefined;
447
+ }
448
+ export interface TeamMemberInfo {
449
+ userId: string;
450
+ /** "admin" | "member" */
451
+ role: string;
452
+ displayName: string;
453
+ githubUsername: string;
454
+ /** unix epoch milliseconds */
455
+ addedAt: string;
456
+ }
457
+ export type TeamMemberInfoList = Array<TeamMemberInfo>;
458
+ export interface CreateTeamResponse {
459
+ id: string;
460
+ orgId: string;
461
+ name: string;
462
+ /** "" if the creating user no longer exists */
463
+ createdByUserId: string;
464
+ /** unix epoch milliseconds */
465
+ createdAt: string;
466
+ /** caller has team-admin authority */
467
+ isAdmin: boolean;
468
+ members: TeamMemberInfoList;
469
+ /** "" = no default set */
470
+ defaultSnapshotId: string;
471
+ }
472
+ export interface CreateTokenRequest {
473
+ expiresInSecs?: string | undefined;
474
+ }
475
+ export interface CreateTokenResponse {
476
+ token: string | Redacted.Redacted<string>;
477
+ expiresAt: string;
478
+ }
479
+ export interface EnvVar {
480
+ key?: string | undefined;
481
+ value?: string | undefined;
482
+ }
483
+ export type EnvVarList = Array<EnvVar>;
484
+ export interface SrfConfig {
485
+ /** unset = server default (30s for new, inherit for fork) */
486
+ autoSuspendTimeoutSecs?: number | undefined;
487
+ /** 0 = no auto-destroy */
488
+ autoDestroyTimeoutSecs?: number | undefined;
489
+ }
490
+ export interface ProxyEntry {
491
+ name?: string | undefined;
492
+ /** 0 = auto-detect */
493
+ port?: number | undefined;
494
+ }
495
+ export type ProxyEntryList = Array<ProxyEntry>;
496
+ export interface NetworkConfig {
497
+ /** SSH on the machine's port. false: nothing answers SSH for it, on the public address or the org's overlay network; the proxy closes the connection before writing a byte. Unset = not requested: a new machine has SSH on, a fork or a restore keeps the source's (or the snapshot's) setting. SetSsh changes it afterwards. Was a plain bool in older versions: a client built against that never sends false on the wire, so it reads as unset here. */
498
+ ssh?: boolean | undefined;
499
+ proxies?: ProxyEntryList | undefined;
500
+ /** RDP on a Windows machine's own port (ignored for any other machine). Unset = not requested: a new machine takes its org's default (SetOrgRdpDefault), else on; a restore keeps the snapshot's setting. SetRdp changes it afterwards. */
501
+ rdp?: boolean | undefined;
502
+ }
503
+ export interface VolumeMount {
504
+ diskId?: string | undefined;
505
+ mountPath?: string | undefined;
506
+ readOnly?: boolean | undefined;
507
+ }
508
+ export type VolumeMountList = Array<VolumeMount>;
509
+ /** VM configuration -- all fields use 0/empty as "use default". Sizing (vcpu, memory_bytes) applies to FRESH creates only and must name one of the supported size classes - 1 vCPU · 4 GiB, 2 · 8, or 4 · 16 (naming one dimension resolves to its class; any other combination is refused). The pair is also validated against the billing org's quota ceiling: above it the create is refused (invalid_argument), never clamped. ForkVm and CreateVmFromSnapshot refuse non-zero sizing -- a fork inherits its source's size, a restore is born at the size the snapshot was captured at. */
510
+ export interface VmConfig {
511
+ /** 0 = the org's default; else one of the size classes below */
512
+ vcpu?: number | undefined;
513
+ /** 0 = the org's default; else one of the size classes below */
514
+ memoryBytes?: string | undefined;
515
+ /** must be 0 (or exactly the fixed 100 GiB); per-machine disk sizing is refused */
516
+ diskBytes?: string | undefined;
517
+ srf?: SrfConfig | undefined;
518
+ network?: NetworkConfig | undefined;
519
+ volumes?: VolumeMountList | undefined;
520
+ /** Only traffic on connections opened TO the machine (SSH, HTTPS, a peer) resets the auto-suspend / auto-hibernate idle clock; connections the machine opened itself don't keep it awake. `optional`: set (true or false) is this machine's value. Unset means "not requested": a new machine takes its org's default (SetOrgIdleIgnoreOutboundDefault, the platform's setting when the org has none, off until an operator sets one), and a fork or restore-from-snapshot keeps the source's value. SetIdleIgnoreOutbound changes it afterwards. Was a plain bool in older versions: a client built against that never sends false on the wire, so it reads as unset here. */
521
+ idleIgnoreOutbound?: boolean | undefined;
522
+ }
523
+ export type StringMap = {
524
+ [key: string]: string | undefined;
525
+ };
526
+ /** What a machine spec boots from. */
527
+ export interface MachineSpecBase {
528
+ /** The default snapshot of this team (name or id). A team without one boots the default image in the team's org. */
529
+ team?: string | undefined;
530
+ /** A snapshot (name or id): the machine is a restore of it. */
531
+ snapshot?: string | undefined;
532
+ }
533
+ /** A machine spec, version 1: a declarative description of a machine. The SDKs build one from reusable pieces and send it resolved; the server checks every field, and an error names the field and the rule (`spec.size: ...`). Creating from a snapshot (a `snapshot` base, a team's default snapshot or CreateVmFromSnapshot) keeps the snapshot's spec and merges this one on top: maps merge with this spec winning, lists combine without duplicates, `isolated` only turns on, and `size` must match the snapshot's (a restore keeps its size). A fork keeps its source's spec. Either way the machine's stored spec lists the labels and networks the machine has, what it took from the snapshot or the source as well as its own. */
534
+ export interface MachineSpec {
535
+ /** Must be 1. */
536
+ version?: number | undefined;
537
+ /** Unset: the default image. */
538
+ base?: MachineSpecBase | undefined;
539
+ /** "<vcpu>x<memory GiB>", one of the cluster's sizes, e.g. "2x8". Empty: the org's default size (or, for a restore, the snapshot's). */
540
+ size?: string | undefined;
541
+ /** Machine labels, same rules as CreateVmRequest.labels. */
542
+ labels?: StringMap | undefined;
543
+ /** Networks the machine joins; see CreateVmRequest.networks. */
544
+ networks?: StringList | undefined;
545
+ /** See CreateVmRequest.isolated. */
546
+ isolated?: boolean | undefined;
547
+ /** Egress allowlist the machine is born with: hosts, `*.` wildcards and public IPv4 addresses or ranges. Empty = unrestricted; `none` = nothing is reachable. See SetVmEgressAllow. */
548
+ egress?: StringList | undefined;
549
+ /** Environment variables of this machine. They take precedence over every env var and secret of the same name set for the owner or the org. */
550
+ env?: StringMap | undefined;
551
+ /** Integrations the machine needs: toolkit name (e.g. "slack") to "personal" (the owner's own connection) or "shared:<tag>" (the org connection shared under that tag). Recorded on the machine; a missing connection never blocks the create. */
552
+ connections?: StringMap | undefined;
553
+ /** Agent logins the machine needs: "claude", "codex". Recorded on the machine. */
554
+ agents?: StringList | undefined;
555
+ /** Create the machine for another member of the org: their user id. Only an owner or admin of the org may, in a create that names the org (`org`, a team, or an API key's org), with a login or a member API key (not an org key, not from inside a machine). The assignee must be a member of the org. The machine is theirs from the start: private to them, billed to the org, with their own integrations and agent logins; the creator can't reach it afterwards. GetVmResponse.created_by records the creator. Your own id is a plain create. Never inherited: a fork, a snapshot and a restore drop it, and a restore's spec may set its own. */
556
+ assignTo?: string | undefined;
557
+ /** Secrets the machine gets, by name. This is how a secret with scope "unattached" or "private-unattached" reaches a machine: such a secret reaches no machine on its own. A name resolves to your own secret in the org ("private-unattached" or "private") when you have one and the machine is yours, else to the org's ("unattached", "all" or "shared"). The machine keeps a reference, not a copy: changing the secret's value reaches it, deleting the secret stops it being injected, and setting it again with the same name brings it back. Rules: a name can't be in both `env` and `secrets`; only an owner or admin of the org may list an org "unattached" secret; a machine created for someone else (`assign_to`) or a shared machine only gets org secrets; an org "shared" secret only reaches shared machines. A fork, a snapshot and a restore resolve the inherited names again for the new machine with the same rules, and the create fails naming any that no longer resolve. Precedence, from the winner down: the machine's own (`env` and these secrets), the owner's private vars, the org's "shared" vars (shared machines only), the org's "all" vars. */
558
+ secrets?: StringList | undefined;
559
+ /** Shell commands run once, in order, as root, after the machine's first boot: e.g. "apt-get install -y nginx". Each runs with bash (sh when the image has none), `DEBIAN_FRONTEND=noninteractive`, no stdin and a 30-minute timeout; its output is appended to /var/log/boxd/packages.log in the machine. The first failure (a non-zero exit, a timeout) stops the rest; the machine stays usable. GetVmResponse.packages reports each one. At most 50 commands, each at most 4 KiB, no NUL bytes. Never run again: not on a reboot, a resume, a wake or a move. A restore marks done the commands that had run on the machine the snapshot was taken from and runs the snapshot spec's others, then its own; a fork keeps its source's report and runs nothing. */
560
+ packages?: StringList | undefined;
561
+ }
562
+ export interface CreateVmRequest {
563
+ name?: string | undefined;
564
+ imageRef?: string | undefined;
565
+ env?: EnvVarList | undefined;
566
+ cmd?: StringList | undefined;
567
+ restartPolicy?: string | undefined;
568
+ /** omit for defaults (all zeros) */
569
+ config?: VmConfig | undefined;
570
+ /** Org to create the VM in (name or id). Empty = personal. Set from the caller's active context. Non-empty routes through the processor (skips the fast path) so membership is validated and the org context is set at birth. The org pays either way; the VM is PRIVATE to the creator unless `shared` is set. */
571
+ org?: string | undefined;
572
+ /** Share the new VM with the whole org (only meaningful with `org`). Default false = private to the creator, billed to the org. */
573
+ shared?: boolean | undefined;
574
+ /** Network tags: east-west reachability within the org. Empty = this VM joins the org's implicit DEFAULT network, whose members are the org's other networkless, non-isolated VMs -- where every VM from before network tags lands, so nothing had to be migrated. Naming >=1 network OPTS OUT of the default network: the VM then reaches only VMs it shares a network with, and untagged VMs no longer reach it. Editable after creation via SetVmNetworks. */
575
+ networks?: StringList | undefined;
576
+ /** Isolated: a sandbox. Never in the default network and never a peer of another isolated VM -- so an isolated VM with no `networks` has no peers at all, and one with `networks` reaches exactly the NON-isolated VMs it shares a network with (east-west, internal DNS and host-mediated exec/cp all follow the same rule). Also: no metadata adapter, and the guest is stripped of the in-VM boxd CLI, the git credential helper, the GitHub/Linear/Slack/Figma integrations, the agent skills/credentials, and `boxd local`. Internet, inbound SSH/HTTPS, and operator support access are unaffected. Set at creation, IMMUTABLE after -- there is deliberately no setter RPC. A fork or restore-from-snapshot always inherits the source's/snapshot's value. */
577
+ isolated?: boolean | undefined;
578
+ /** Team to borrow a starting image from, within `org` (name or id -- a name resolves against the teams the caller directly belongs to). Empty = no team. If the team has a default snapshot set and this create doesn't otherwise restore from a snapshot, it boots from that default automatically. Membership is validated pre-propose in the processor, same as `org`. Does NOT associate the created VM with the team -- team-scoped VM creation is a separate, later feature. */
579
+ team?: string | undefined;
580
+ /** Machine labels. Keys: 1-63 chars of [a-z0-9._/-], starting and ending with [a-z0-9]; the `boxd/` prefix is reserved. Values: up to 256 chars, no control characters, may be empty. At most 64 per machine. */
581
+ labels?: StringMap | undefined;
582
+ /** Create the machine from a machine spec: one resolved description of what it boots from, its size, labels, networks, isolation, egress, env and the integrations it needs. The machine keeps the spec (GetVmResponse `spec` and `created_spec`). A spec can't be combined with the fields it covers: `image_ref`, `team`, `labels`, `networks`, `isolated`, `env` and `config.vcpu`/`config.memory_bytes`; a create that sets one of them is refused, naming it. A spec whose base is a snapshot restores that snapshot, as CreateVmFromSnapshot does. */
583
+ spec?: MachineSpec | undefined;
584
+ /** Delete-after timer the machine is born with, written together with the machine itself, so it never exists without the timer: permanently delete it `delete_after_secs` seconds of wall-clock time after it is created, or at the next match of `delete_after_cron` (UTC, e.g. "0 18 * * *"). Same rules and errors as SetDeleteAfter: one or the other, not both. Unset, zero or empty: no timer. Refused for a machine created for someone else (`spec.assign_to`): it is theirs to manage. Change or clear the timer later with SetDeleteAfter. The response's `machine` shows it (`delete_at_ms`, `delete_after_cron`). A server from before these fields ignores them and answers without `machine`: a client that gets no `machine` back sets the timer with SetDeleteAfter itself. */
585
+ deleteAfterSecs?: string | undefined;
586
+ deleteAfterCron?: string | undefined;
587
+ /** The guest OS: "" or "linux" (every machine so far), or "windows" (plans/2026-11-10-windows-guests.md): a firmware boot of the cluster's Windows image, which the operator registers. Needs a license with Windows guests (else PERMISSION_DENIED with a sentence to show), and in this release no `image_ref`, `config.volumes`, `spec` or team default snapshot (INVALID_ARGUMENT/FAILED_PRECONDITION). A Windows machine has no takeoff: no exec, cp or SSH through the proxy yet; RDP and the guest's own sshd through port forwards. It hibernates, and its snapshot is its disk alone (running, hibernated or stopped; a running one's crash-consistent), which CreateVmFromSnapshot boots as a new Windows machine (the snapshot decides the OS: leave `os` out of a restore). Its fork (ForkVm) is a copy of its disk too, generalized (its own SID) and booted cold as a new Windows machine, `starting` until Windows is up; its checkpoint is its disk alone, restored in place by a cold boot. The response's `machine.os` says what it boots. A server from before this field ignores it and creates a Linux machine: a client checks `machine.os` in the answer. */
588
+ os?: string | undefined;
589
+ }
590
+ /** Where a machine CAME FROM: a fork of another VM, or a restore of a snapshot. A standalone machine leaves this message UNSET rather than setting a kind that names its own absence, so a caller writes `if (source_info)` instead of `if (source_info.kind != "standalone")`. (The legacy `GetVmResponse.source` display string still reads "standalone" for those machines -- it is unchanged.) */
591
+ export interface VmSource {
592
+ /** "fork" | "snapshot". Never "standalone": that is the unset message. */
593
+ kind: string;
594
+ /** The source VM's name (fork) or the snapshot's name (snapshot). */
595
+ name: string;
596
+ /** The snapshot version. 0 for a fork. */
597
+ version: string;
598
+ /** The source VM's id (fork) or the snapshot's id (snapshot). PROVENANCE, NOT A LIVE REFERENCE. A fork's parent may since have been destroyed and a snapshot may since have been deleted, so this id is not guaranteed to resolve -- treat a lookup miss as normal, not as an error. Empty when the id is genuinely unrecoverable: a machine restored from a snapshot before the id was persisted (migration 0077) reports its name and version with an empty id, because `source_snapshot`'s "<name>:<version>" string cannot be resolved back to a row safely (snapshot names are unique per owner and can be re-created). */
599
+ id: string;
600
+ }
601
+ export type CustomDomainInfoList = Array<CustomDomainInfo>;
602
+ /** One thing a machine's spec needs connected (`GetVmResponse.requirements`). */
603
+ export interface MachineRequirement {
604
+ /** "connection" (a spec's `connections`) or "agent" (its `agents`). */
605
+ kind: string;
606
+ /** The toolkit ("slack", "github-app") or the agent ("claude", "codex"). */
607
+ name: string;
608
+ /** "personal": the machine owner's own connection or agent login in the machine's org (for a machine created with `assign_to`, the assignee's). "shared": the org's connection shared under `tag`. Agents are personal. */
609
+ scope: string;
610
+ /** The shared connection's name; empty for a personal one. */
611
+ tag: string;
612
+ /** Connected now, so the machine can use it. */
613
+ met: boolean;
614
+ /** The caller could connect it: the owner for a personal connection or an agent, an org owner or admin for a shared one. False once met, and when connecting couldn't help (see `reason`). */
615
+ canFix: boolean;
616
+ /** Why it can't be met on this machine as it is: an isolated machine gets no integrations, a shared one no personal connection or agent login, a disabled owner's none. Empty otherwise. */
617
+ reason: string;
618
+ }
619
+ export type MachineRequirementList = Array<MachineRequirement>;
620
+ /** One of a machine's spec `packages` (`GetVmResponse.packages`). */
621
+ export interface MachinePackage {
622
+ /** The command, as the spec lists it. */
623
+ command: string;
624
+ /** "pending" (not run yet; after an earlier one failed, never), "running", "done", "failed" or "skipped" (removed from the spec before it finished: it never runs and doesn't stop the ones after it; `reason` says when, and a failed run keeps its exit code and output). */
625
+ state: string;
626
+ /** The command's exit code, once it exited. Unset while it hasn't, and for a failure without one (see `reason`). */
627
+ exitCode?: number | undefined;
628
+ /** The last 4 KiB of its output (stdout and stderr). The whole output is in /var/log/boxd/packages.log in the machine. Empty in ListVms: GetVm has it. */
629
+ outputTail: string;
630
+ /** Why it failed without an exit code (a timeout, an interrupted run, the machine stopping), why a pending one won't run (a fork), why it was skipped, or where a done one ran (the snapshot it was restored from). Empty otherwise. */
631
+ reason: string;
632
+ /** Unix milliseconds; 0 until it started / finished. */
633
+ startedAtMs: string;
634
+ finishedAtMs: string;
635
+ }
636
+ export type MachinePackageList = Array<MachinePackage>;
637
+ /** VM name or id */
638
+ export interface GetVmResponse {
639
+ vmId: string;
640
+ name: string;
641
+ imageRef: string;
642
+ publicIp: string;
643
+ /** Never "destroyed": a destroyed machine's id/name is a NOT_FOUND error instead of a response carrying this field (see the GetVm RPC comment). */
644
+ status: string;
645
+ restartPolicy: string;
646
+ /** The machine's fixed disk ALLOCATION, always the platform constant (100 GiB) -- per-machine disk sizing is not offered. This is not a usage figure: it does not move as the machine fills its disk, and it is the same on every machine. There is no "disk used" field on this API yet. */
647
+ diskBytes: string;
648
+ /** 0 = disabled/unset; always concrete on the wire */
649
+ autoSuspendTimeoutSecs: number;
650
+ /** per-VM SSH port on the proxy IP (0 = not yet allocated) */
651
+ sshPort: number;
652
+ /** Org the VM is SHARED with (org name; empty = not shared) and the org paying for it (org name; empty = the owner's personal quota). A private org-billed VM has `org` empty and `billing_org` set. */
653
+ org: string;
654
+ billingOrg: string;
655
+ /** The domain the VM is addressed under: the VM's billing org's active custom domain (e.g. `preview.mysaas.com`) if it has one, else the cluster zone (e.g. `boxd.sh`). Clients build `<name>.<access_domain>` for SSH/HTTPS display. The default `<name>.<cluster-zone>` always continues to resolve. */
656
+ accessDomain: string;
657
+ /** 0 = disabled/unset */
658
+ autoHibernateTimeoutSecs: number;
659
+ /** How the VM was created, for DISPLAY: "snapshot/<name>:<version>", "fork/<source-vm-name>", or "standalone". Kept verbatim for old clients -- new ones read the structured `source_kind`/`source_name`/`source_version` trio below instead of string-splitting this. */
660
+ source: string;
661
+ /** --- Sizing. The machine's EFFECTIVE vCPU/RAM, resolved exactly like the spawn path (`Repository::vm_resources`): the VM's own override if it has one, else its billing org's quota, else the platform default. Never the raw nullable column, which reads 0 for a VM sized purely by its org. */
662
+ vcpu: number;
663
+ memoryBytes: string;
664
+ /** Wall-clock unix SECONDS the VM was created. 0 = unknown: the row predates migration 0076 and was deliberately not backfilled with a fabricated time. */
665
+ createdAt: string;
666
+ /** Wall-clock unix MILLISECONDS the VM entered `hibernated`. 0 = not hibernated (or hibernated before the column was recorded). */
667
+ hibernatedAtMs: string;
668
+ /** Idle seconds before the VM is auto-destroyed. 0 = disabled/unset. */
669
+ autoDestroyTimeoutSecs: number;
670
+ /** Last boot duration in MILLISECONDS (0 = never booted / not recorded) and the wall-clock unix MILLISECONDS of the last client connection to the VM (0 = never connected). */
671
+ bootTimeMs: string;
672
+ lastConnectedMs: string;
673
+ /** Ids for the orgs named by `org` / `billing_org` above, so a caller can round-trip to an org-addressed call without a name->id lookup. Same emptiness rules as the names they sit beside. */
674
+ orgId: string;
675
+ billingOrgId: string;
676
+ /** Structured form of `source`, so clients never parse that string. UNSET for a standalone machine -- see VmSource below. */
677
+ sourceInfo?: VmSource | undefined;
678
+ /** Tag-based networks: east-west reachability within the org. See CreateVmRequest.networks for the rule. Empty = this VM is in the org's implicit default network (its other networkless, non-isolated VMs); non-empty means it reaches only VMs sharing a network. */
679
+ networks: StringList;
680
+ /** Isolated: a sandbox -- peers only through an explicit shared `networks` entry, never through the default network and never with another isolated VM. No metadata adapter. Immutable after creation. */
681
+ isolated: boolean;
682
+ /** Per-VM custom domains bound to this machine -- `domain` is globally unique but not `vm_id`, so more than one can point here. Distinct from `access_domain` above, which is the org's wildcard domain or the cluster zone, not a per-VM custom domain. */
683
+ customDomains: CustomDomainInfoList;
684
+ /** Egress allowlist. Empty = unrestricted; `["none"]` = nothing is reachable. */
685
+ egressAllow: StringList;
686
+ /** Bot protection: an HTTPS request to `<vm>.<domain>` or `www.<vm>.<domain>` must pass a Cloudflare Turnstile challenge first. True for both protecting modes; `bot_protection_mode` says which. */
687
+ botProtection: boolean;
688
+ /** Delete-after timer: wall-clock unix MILLISECONDS at which the control plane destroys this machine, whatever state it is in. 0 = no timer. Set/replaced/cleared with SetDeleteAfter. Independent of `auto_destroy_timeout_secs`, which counts from each (re)start. */
689
+ deleteAtMs: string;
690
+ /** When the timer was set with a cron expression (SetDeleteAfter `delete_after_cron`), that expression; `delete_at_ms` is its next match. Empty for a duration or no timer. */
691
+ deleteAfterCron: string;
692
+ /** The idle clock behind auto-suspend and auto-hibernate ignores connections the machine opened itself; only inbound connections keep it awake. Default false. See VmConfig.idle_ignore_outbound. */
693
+ idleIgnoreOutbound: boolean;
694
+ /** How far bot protection reaches: "on" - challenged in every state, running included. A request without a clearance cookie never reaches the machine, so crawlers can't keep it awake. "sleep_only" - challenged only when the request would wake the machine from standby or hibernation. "off" - never challenged. Set with SetBotProtection. A fork or a restore inherits the source's; a plain create gets the org's default (SetOrgBotProtectionDefault), else the cluster's setting for new machines. */
695
+ botProtectionMode: string;
696
+ /** Machine labels: user-set key=value metadata. Anyone who can see the machine can read them. Set at create (CreateVmRequest.labels), edited with UpdateVmLabels; forks and restores inherit them. */
697
+ labels: StringMap;
698
+ /** The machine spec as it stands, and the spec the machine was created with. UpdateMachineSpec changes `spec`, and so does editing labels, networks, egress or the size (the matching field); `created_spec` never changes. Unset when the machine wasn't created from a spec and didn't inherit one from a snapshot or a fork source. */
699
+ spec?: MachineSpec | undefined;
700
+ createdSpec?: MachineSpec | undefined;
701
+ /** Who created the machine for its owner (a spec's `assign_to`): their user id, and a name to show for them (display name, else GitHub username; empty when the account has neither). Empty when the owner created it. */
702
+ createdBy: string;
703
+ createdByName: string;
704
+ /** What the spec's `connections` and `agents` need, and whether each is connected now. Computed when the machine is read, never stored; empty without a spec. An unmet one is only unavailable on the machine: nothing blocks creating, booting or using it. */
705
+ requirements: MachineRequirementList;
706
+ /** How each of the spec's `packages` went, in order. Empty without any. ListVms leaves each one's `output_tail` empty, to keep lists small; GetVm has it. */
707
+ packages: MachinePackageList;
708
+ /** SSH is off: nothing answers on `ssh_port` (see NetworkConfig.ssh). The port stays allocated. Inverted so a server that predates it reads as on. */
709
+ sshDisabled: boolean;
710
+ /** The region the machine lives in; "" when boxd runs in one place. */
711
+ region: string;
712
+ /** The guest OS: "linux" or "windows" (CreateVmRequest.os). A server from before this field sends "", which is a Linux machine. */
713
+ os: string;
714
+ /** A Windows machine's RDP (plans/2026-11-10-windows-guests.md 2d): its port on the proxy's address (`<name>.<zone>:<rdp_port>`; 0 for any other machine), RDP off (SetRdp; the proxy closes a connection to the port then), and whether its Administrator password was ever generated through boxd (ResetRdpPassword; or carried over from a snapshot's source). The password itself is never in a response but ResetRdpPassword's. */
715
+ rdpPort: number;
716
+ rdpDisabled: boolean;
717
+ rdpPasswordSet: boolean;
718
+ }
719
+ export interface CreateVmResponse {
720
+ vmId: string;
721
+ name: string;
722
+ publicIp: string;
723
+ url: string;
724
+ image: string;
725
+ status: string;
726
+ bootTimeMs: string;
727
+ /** How many automations the machine was born with paused: set when it was created from a snapshot, including a team's default one. A snapshot carries its source's automations, like a fork, but the new machine does not run them, so the same schedule or webhook is not handled twice; `run restart <id>` inside it starts one there. 0 for a plain create, or a snapshot that captured none. */
728
+ pausedAutomations: number;
729
+ /** The new machine, as GetVm returns it, delete-after timer included, so a create needs no GetVm after it. Unset when the server could not read the machine back in time (rare) or the caller may not read it (a machine created for someone else), and from servers older than this field: call GetVm then. */
730
+ machine?: GetVmResponse | undefined;
731
+ }
732
+ export interface CreateVmFromSnapshotRequest {
733
+ /** snapshot name or id, or "<name>@<version>" (see `version`) */
734
+ snapshot?: string | undefined;
735
+ /** new VM name (optional; auto-generated if empty) */
736
+ name?: string | undefined;
737
+ /** optional overrides */
738
+ config?: VmConfig | undefined;
739
+ /** org context (name or id); empty = active/anchor */
740
+ org?: string | undefined;
741
+ /** Isolation override, one-way -- same semantics as ForkVmRequest.isolated. The snapshot carries the `isolated` captured off its source VM at save time; true here forces the restore isolated on top of that, and the server computes `snapshot.isolated || isolated`. Never de-isolates. */
742
+ isolated?: boolean | undefined;
743
+ /** Machine labels. The restore inherits the labels its snapshot captured from the source at save time; these are merged over them key by key. Same rules as CreateVmRequest.labels. */
744
+ labels?: StringMap | undefined;
745
+ /** A machine spec merged on top of the snapshot's own spec (see MachineSpec). Its base, if set, must be this snapshot. Can't be combined with `labels` or `isolated`; put them in the spec. */
746
+ spec?: MachineSpec | undefined;
747
+ /** Delete-after timer the machine is born with. A snapshot carries no timer, so unset means none. See CreateVmRequest.delete_after_secs. */
748
+ deleteAfterSecs?: string | undefined;
749
+ deleteAfterCron?: string | undefined;
750
+ /** The version to create from; unset = the snapshot's current one. One of the versions ListSnapshotVersions shows as "ready" and "local": NOT_FOUND for a version the snapshot does not keep, FAILED_PRECONDITION for one still being saved or not on local disk. `snapshot` may name it instead, as "<name>@<version>" ("base@4"): the whole string is tried as a name first, so a snapshot whose own name ends that way still resolves. */
751
+ version?: string | undefined;
752
+ }
753
+ export interface CreateVmFromSnapshotResponse {
754
+ vmId: string;
755
+ name: string;
756
+ publicIp: string;
757
+ url: string;
758
+ image: string;
759
+ status: string;
760
+ bootTimeMs: string;
761
+ /** How many automations the machine was born with paused: set when it was created from a snapshot, including a team's default one. A snapshot carries its source's automations, like a fork, but the new machine does not run them, so the same schedule or webhook is not handled twice; `run restart <id>` inside it starts one there. 0 for a plain create, or a snapshot that captured none. */
762
+ pausedAutomations: number;
763
+ /** The new machine, as GetVm returns it, delete-after timer included, so a create needs no GetVm after it. Unset when the server could not read the machine back in time (rare) or the caller may not read it (a machine created for someone else), and from servers older than this field: call GetVm then. */
764
+ machine?: GetVmResponse | undefined;
765
+ }
766
+ export interface DeleteAgentLoginRequest {
767
+ vmId?: string | undefined;
768
+ harness?: string | undefined;
769
+ org?: string | undefined;
770
+ }
771
+ export interface DeleteAgentLoginResponse {
772
+ }
773
+ export interface DeleteApiKeyRequest {
774
+ id?: string | undefined;
775
+ }
776
+ export interface DeleteApiKeyResponse {
777
+ }
778
+ export interface DeleteBackupRequest {
779
+ /** VM name or id */
780
+ vm?: string | undefined;
781
+ backupId?: string | undefined;
782
+ }
783
+ export interface DeleteBackupResponse {
784
+ }
785
+ export interface DeleteCheckpointRequest {
786
+ /** VM name or id */
787
+ vm?: string | undefined;
788
+ /** checkpoint name or id */
789
+ name?: string | undefined;
790
+ }
791
+ export interface DeleteCheckpointResponse {
792
+ }
793
+ export interface DeletePathRequest {
794
+ vmId?: string | undefined;
795
+ /** removed recursively if it's a directory */
796
+ path?: string | undefined;
797
+ }
798
+ export interface DeletePathResponse {
799
+ }
800
+ export interface DeleteProxyRequest {
801
+ name?: string | undefined;
802
+ /** use `vm` */
803
+ vmName?: string | undefined;
804
+ /** machine id OR name */
805
+ vm?: string | undefined;
806
+ }
807
+ export interface DeleteProxyResponse {
808
+ }
809
+ export interface DeleteSnapshotRequest {
810
+ /** snapshot name or id */
811
+ name?: string | undefined;
812
+ /** org context (name or id); empty = active/anchor */
813
+ org?: string | undefined;
814
+ }
815
+ export interface DeleteSnapshotResponse {
816
+ }
817
+ export interface DestroyDiskRequest {
818
+ diskId?: string | undefined;
819
+ }
820
+ export interface DestroyDiskResponse {
821
+ }
822
+ export interface DestroyTeamRequest {
823
+ teamId?: string | undefined;
824
+ }
825
+ export interface DestroyTeamResponse {
826
+ }
827
+ export interface DestroyVmRequest {
828
+ vmId?: string | undefined;
829
+ }
830
+ export interface DestroyVmResponse {
831
+ }
832
+ export interface DetachDiskRequest {
833
+ diskId?: string | undefined;
834
+ /** VM name or id */
835
+ vmId?: string | undefined;
836
+ }
837
+ export interface DetachDiskResponse {
838
+ }
839
+ export interface DownloadFileRequest {
840
+ /** VM name or id */
841
+ vmId?: string | undefined;
842
+ path?: string | undefined;
843
+ }
844
+ export interface DownloadFileResponse {
845
+ data: string;
846
+ }
847
+ export interface DownloadFileStreamRequest {
848
+ /** VM name or id */
849
+ vmId?: string | undefined;
850
+ path?: string | undefined;
851
+ }
852
+ /** One frame of a `DownloadFileStream`. `total_size` is set on the FIRST frame only (0 thereafter); `data` carries file bytes in order on every frame, including the first. The stream ending is completion -- the client checks the concatenated length against `total_size`. */
853
+ export interface DownloadFileChunk {
854
+ totalSize: string;
855
+ data: string;
856
+ }
857
+ export type DownloadFileChunkList = Array<DownloadFileChunk>;
858
+ export interface DownloadFileStreamStream {
859
+ /** Every message of the server stream, in order. The stream ends when the server ends it (bound it with the request's timeout). */
860
+ items: DownloadFileChunkList;
861
+ }
862
+ export interface ExposePortRequest {
863
+ /** use `vm` */
864
+ vmId?: string | undefined;
865
+ vmPort?: number | undefined;
866
+ protocol?: string | undefined;
867
+ /** machine id OR name */
868
+ vm?: string | undefined;
869
+ }
870
+ export interface ExposePortResponse {
871
+ vmName: string;
872
+ dns: string;
873
+ publicPort: number;
874
+ vmPort: number;
875
+ protocol: string;
876
+ /** The machine this forward belongs to, beside `vm_name` -- lets a caller round-trip to any vm_id-addressed call without a name lookup. */
877
+ vmId: string;
878
+ }
879
+ export interface FindElsewhereRequest {
880
+ /** machine, snapshot, disk or template */
881
+ kind?: string | undefined;
882
+ name?: string | undefined;
883
+ /** org context (name or id); empty = every org you belong to */
884
+ org?: string | undefined;
885
+ }
886
+ export interface ElsewhereItem {
887
+ region: string;
888
+ name: string;
889
+ orgId: string;
890
+ id: string;
891
+ }
892
+ export type ElsewhereItemList = Array<ElsewhereItem>;
893
+ export interface FindElsewhereResponse {
894
+ /** The same name, in another region. */
895
+ exact: ElsewhereItemList;
896
+ /** A name one or two letters off, in another region; a few at most. */
897
+ close: ElsewhereItemList;
898
+ /** Regions that could not be asked just now. */
899
+ unavailable: StringList;
900
+ }
901
+ export interface ForkVmRequest {
902
+ sourceVmId?: string | undefined;
903
+ name?: string | undefined;
904
+ /** omit = inherit from source (all zeros) */
905
+ config?: VmConfig | undefined;
906
+ /** Forking a shared org VM yields a PRIVATE org VM of the forker by default (visibility dropped, org billing kept). Set true to keep the fork shared with the source's org. No effect when the source is personal. An org-kind credential always forks shared, owned by the org's owner , since it can only reach the org's shared machines. */
907
+ shared?: boolean | undefined;
908
+ /** Network tags override: empty = inherit the source's current networks (the default -- matches how image_ref/org/etc. carry over). Non-empty replaces them outright for the fork. */
909
+ networks?: StringList | undefined;
910
+ /** Isolation override, one-way: true forces the fork isolated even when the source is not. False (the proto3 default, indistinguishable from unset) means "inherit", so the server computes `source.isolated || isolated` -- a fork of an isolated machine can never be de-isolated by a client. Upgrading is safe because `boxd-takeoff` REMOVES the isolated surface rather than skipping its install: the fork mailbox carries this flag to the guest, which then deletes the in-VM CLI, the git credential helper, the agent skills and any coding-agent credentials it inherited on the source's disk. That is the same path `isolated` already takes on a normal create (which is itself a fork of a NON-isolated warm template). */
911
+ isolated?: boolean | undefined;
912
+ /** Machine labels. The fork inherits the source's labels; these are merged over them key by key. Same rules as CreateVmRequest.labels. */
913
+ labels?: StringMap | undefined;
914
+ /** Delete-after timer for the fork. Both unset: the fork inherits its source's timer, re-armed from the moment of the fork. Either set: this timer instead, written together with the fork (see CreateVmRequest.delete_after_secs); zero and empty give the fork no timer. Same rules and errors as SetDeleteAfter. A server from before these fields ignores them and answers without `machine`. */
915
+ deleteAfterSecs?: string | undefined;
916
+ deleteAfterCron?: string | undefined;
917
+ }
918
+ export interface ForkVmResponse {
919
+ vmId: string;
920
+ name: string;
921
+ publicIp: string;
922
+ url: string;
923
+ image: string;
924
+ status: string;
925
+ forkedFrom: string;
926
+ bootTimeMs: string;
927
+ /** How many of the source's automations the fork inherited paused. A fork carries its source's automations but does not run them, so the same schedule or webhook is not handled twice; `run restart <id>` inside the fork starts one there. 0 when the source has none. */
928
+ pausedAutomations: number;
929
+ /** The fork, as GetVm returns it. Same as CreateVmResponse.machine. */
930
+ machine?: GetVmResponse | undefined;
931
+ }
932
+ export interface FsListRequest {
933
+ /** machine name or id */
934
+ vmId?: string | undefined;
935
+ /** a directory, or a symlink to one */
936
+ path?: string | undefined;
937
+ }
938
+ /** --- Filesystem (machines.fs) --- */
939
+ export type FsEntryType = "FS_ENTRY_TYPE_UNSPECIFIED" | "FS_ENTRY_TYPE_FILE" | "FS_ENTRY_TYPE_DIRECTORY" | "FS_ENTRY_TYPE_SYMLINK" | "FS_ENTRY_TYPE_OTHER";
940
+ /** One file, directory or symlink. Size, mode, owner and times describe what the entry resolves to, so a symlink to a file reports the file's; a dangling symlink reports the link itself. */
941
+ export interface FsEntry {
942
+ /** base name */
943
+ name: string;
944
+ /** the path as given, or the listed directory joined with `name` */
945
+ path: string;
946
+ /** the entry itself: a symlink is SYMLINK */
947
+ type: FsEntryType;
948
+ /** What the entry resolves to after following symlinks: the same as `type` for anything but a symlink, UNSPECIFIED when a symlink dangles or loops. */
949
+ targetType: FsEntryType;
950
+ size: string;
951
+ /** permission bits, e.g. 0o644 */
952
+ mode: number;
953
+ /** Modification time in nanoseconds since the Unix epoch. Too large for a JavaScript number, so JavaScript code generators read it as a string. */
954
+ mtimeNs: string;
955
+ uid: number;
956
+ gid: number;
957
+ /** what a symlink points to, as stored; empty otherwise */
958
+ symlinkTarget: string;
959
+ }
960
+ export type FsEntryList = Array<FsEntry>;
961
+ export interface FsListChunk {
962
+ entries: FsEntryList;
963
+ }
964
+ export type FsListChunkList = Array<FsListChunk>;
965
+ export interface FsListStream {
966
+ /** Every message of the server stream, in order. The stream ends when the server ends it (bound it with the request's timeout). */
967
+ items: FsListChunkList;
968
+ }
969
+ export interface FsMkdirRequest {
970
+ /** machine name or id */
971
+ vmId?: string | undefined;
972
+ path?: string | undefined;
973
+ /** permission bits for directories it creates; unset is 0o755 */
974
+ mode?: number | undefined;
975
+ }
976
+ export interface FsMkdirResponse {
977
+ }
978
+ export interface FsReadRequest {
979
+ /** machine name or id */
980
+ vmId?: string | undefined;
981
+ path?: string | undefined;
982
+ /** first byte to read */
983
+ offset?: string | undefined;
984
+ /** bytes to read from `offset`; unset reads to the end */
985
+ length?: string | undefined;
986
+ }
987
+ export interface FsReadChunk {
988
+ /** first chunk only */
989
+ entry?: FsEntry | undefined;
990
+ data: string;
991
+ /** last chunk: everything was sent */
992
+ eof: boolean;
993
+ /** on the last chunk: total bytes sent */
994
+ bytesRead: string;
995
+ }
996
+ export type FsReadChunkList = Array<FsReadChunk>;
997
+ export interface FsReadStream {
998
+ /** Every message of the server stream, in order. The stream ends when the server ends it (bound it with the request's timeout). */
999
+ items: FsReadChunkList;
1000
+ }
1001
+ export interface FsRealpathRequest {
1002
+ /** machine name or id */
1003
+ vmId?: string | undefined;
1004
+ path?: string | undefined;
1005
+ }
1006
+ export interface FsRealpathResponse {
1007
+ /** absolute, without symlinks, `.` or `..` */
1008
+ path: string;
1009
+ }
1010
+ export interface FsRemoveRequest {
1011
+ /** machine name or id */
1012
+ vmId?: string | undefined;
1013
+ path?: string | undefined;
1014
+ /** Remove a directory and everything in it. Without it, a directory is refused with `is_a_directory`. Directories on other filesystems mounted inside it are left alone and reported as `cross_device`. */
1015
+ recursive?: boolean | undefined;
1016
+ }
1017
+ export interface FsRemoveResponse {
1018
+ }
1019
+ export interface FsRenameRequest {
1020
+ /** machine name or id */
1021
+ vmId?: string | undefined;
1022
+ oldPath?: string | undefined;
1023
+ newPath?: string | undefined;
1024
+ /** Fail with `file_exists` instead of replacing an existing `new_path`. */
1025
+ noReplace?: boolean | undefined;
1026
+ }
1027
+ export interface FsRenameResponse {
1028
+ }
1029
+ export interface FsStatRequest {
1030
+ /** machine name or id */
1031
+ vmId?: string | undefined;
1032
+ path?: string | undefined;
1033
+ }
1034
+ export interface FsStatResponse {
1035
+ entry?: FsEntry | undefined;
1036
+ }
1037
+ export interface GetAgentLoginRequest {
1038
+ vmId?: string | undefined;
1039
+ harness?: string | undefined;
1040
+ org?: string | undefined;
1041
+ }
1042
+ export interface GetAgentLoginResponse {
1043
+ harness: string;
1044
+ signedIn: boolean;
1045
+ /** the account's email, when the provider says */
1046
+ account: string;
1047
+ /** the organization it's kept in */
1048
+ orgId: string;
1049
+ /** the last sign-in or refresh; 0 when signed out */
1050
+ updatedAtMs: string;
1051
+ }
1052
+ export interface GetAgentSessionRequest {
1053
+ /** machine name or id */
1054
+ vmId?: string | undefined;
1055
+ sessionId?: string | undefined;
1056
+ }
1057
+ export type AgentSessionState = "AGENT_SESSION_STATE_UNSPECIFIED" | "AGENT_SESSION_STATE_IDLE" | "AGENT_SESSION_STATE_RUNNING" | "AGENT_SESSION_STATE_CLOSED" | "AGENT_SESSION_STATE_FAILED";
1058
+ export interface GetAgentSessionResponse {
1059
+ id: string;
1060
+ /** the machine's id */
1061
+ vmId: string;
1062
+ harness: string;
1063
+ /** The agent version this session runs. It doesn't change during the session, even if the machine's agent is updated meanwhile. */
1064
+ harnessVersion: string;
1065
+ model: string;
1066
+ cwd: string;
1067
+ state: AgentSessionState;
1068
+ /** The turn running now, or the last one; 0 before the first. */
1069
+ turn: string;
1070
+ /** Messages waiting for the running turn to end, each its own turn. */
1071
+ queued: number;
1072
+ /** The latest event's `seq`; 0 before the first. */
1073
+ lastSeq: string;
1074
+ createdAtMs: string;
1075
+ /** For a failed session: what went wrong and what to do about it. */
1076
+ error: string;
1077
+ /** The reasoning effort it was started with; empty: the agent's default. */
1078
+ effort: string;
1079
+ }
1080
+ export interface GetBackupScheduleRequest {
1081
+ vm?: string | undefined;
1082
+ }
1083
+ export interface GetBackupScheduleResponse {
1084
+ /** false = no schedule; remaining fields are zero */
1085
+ enabled: boolean;
1086
+ scheduleKind: string;
1087
+ scheduleValue: string;
1088
+ retentionSecs: number;
1089
+ /** unix ms */
1090
+ nextBackupAt: string;
1091
+ /** unix ms; 0 = never */
1092
+ lastBackupAt: string;
1093
+ }
1094
+ export interface GetBillingRequest {
1095
+ }
1096
+ /** Current billing state for the caller, mirrored from users.{stripe_*, subscription_status, past_due_since}. Empty stripe_*\/past_due_since when the user has never upgraded. */
1097
+ export interface BillingInfo {
1098
+ /** Field 2 removed (shape). Old clients decode it as "" -- benign. */
1099
+ subscriptionStatus: string;
1100
+ /** Fields 4/5 removed (stripe_customer_id, stripe_subscription_id) -- payment processor identifiers, inert without our secret key and useless to a client: CreateBillingPortalSession is the sanctioned way to reach Stripe. Operators still see them via boxd-admin, which reads the replica directly. Old clients decode them as "" -- benign. */
1101
+ pastDueSince: string;
1102
+ /** effective quota */
1103
+ maxVms: number;
1104
+ /** The size a machine created WITHOUT an explicit size gets in the home org: the org's stored default, else its operator-set quota, else the platform 2 vCPU / 8 GiB. Kept as the effective default (not the ceiling) so scripts that keyed on the removed shape label still read what a default machine is. */
1105
+ vcpu: number;
1106
+ memoryBytes: string;
1107
+ /** Credit-billing balance in micro-units (1e-6) of `currency` -- e.g. 5_000_000 = U+20AC5.00 for a EUR org, $5.00 for a USD org. 0 for stripe orgs (not meaningful there). Renamed from `balance_micro_eur` (2026-09-07, same field number, wire-compatible) when USD billing landed. */
1108
+ balanceMicro: string;
1109
+ /** 'stripe' (Stripe subscription, the pre-credits default) | 'credits' (pay-as-you-go balance, no subscription). */
1110
+ billingMode: string;
1111
+ /** The org's billing currency, lower-case ISO 4217 ('eur' | 'usd'). Every micro-unit amount in this message is denominated in it. */
1112
+ currency: string;
1113
+ /** The largest machine an explicit request in the home org may ask for: the operator-set quota, else the platform 8 vCPU / 32 GiB. 0 from servers that predate the field -- fall back to vcpu/memory_bytes. */
1114
+ ceilingVcpu: number;
1115
+ ceilingMemoryBytes: string;
1116
+ }
1117
+ export interface GetBillingResponse {
1118
+ billing?: BillingInfo | undefined;
1119
+ }
1120
+ export interface GetConfigRequest {
1121
+ }
1122
+ export interface GetConfigResponse {
1123
+ defaultImage: string;
1124
+ zone: string;
1125
+ }
1126
+ export interface GetOrgBackupsDefaultRequest {
1127
+ orgId?: string | undefined;
1128
+ }
1129
+ export interface GetOrgBackupsDefaultResponse {
1130
+ /** false = no default; remaining fields are zero */
1131
+ enabled: boolean;
1132
+ periodSecs: number;
1133
+ retentionSecs: number;
1134
+ }
1135
+ export interface GetOrgBillingRequest {
1136
+ /** org name (caller must be a member) */
1137
+ org?: string | undefined;
1138
+ }
1139
+ export interface OrgBilledVm {
1140
+ name: string;
1141
+ /** owner user_id (stable -- scripts key on this) */
1142
+ owner: string;
1143
+ status: string;
1144
+ /** Field 4 removed (shape). Sizing lives in the org quota columns (GetOrgBillingResponse.vcpu/memory_bytes). */
1145
+ billing: string;
1146
+ /** Human label for the owner (display name, else GitHub handle), resolved server-side. Empty when nothing better than the user_id is known -- renderers fall back to `owner`. Opaque user ids (usr_...) made the raw id column unreadable; legacy gh-<login> ids only looked like handles. */
1147
+ ownerName: string;
1148
+ }
1149
+ export type OrgBilledVmList = Array<OrgBilledVm>;
1150
+ export interface GetOrgBillingResponse {
1151
+ id: string;
1152
+ name: string;
1153
+ /** caller is the org admin */
1154
+ isAdmin: boolean;
1155
+ /** Shared VM-count cap (NULL falls back to the platform default). */
1156
+ maxVms: number;
1157
+ /** The size a machine created in this org WITHOUT an explicit size gets: the org's stored default, else its operator-set quota, else the platform 2 vCPU / 8 GiB. Not the ceiling -- see ceiling_vcpu / ceiling_memory_bytes. */
1158
+ vcpu: number;
1159
+ memoryBytes: string;
1160
+ /** Non-destroyed VMs billed to the org -- shared + private org-billed (the count enforced against max_vms). */
1161
+ vmCount: number;
1162
+ /** Per-VM billing line items (admin only; empty for plain members). This is management/billing visibility, never access: an admin sees that a private org-billed VM exists and who owns it, but cannot reach it. */
1163
+ vms: OrgBilledVmList;
1164
+ /** Credit balance in micro-units (1e-6) of `currency`. 0 for stripe orgs (credit billing never touched them) -- render only when billing_mode='credits'. Visible to every org member: the balance is operating state, unlike the per-VM lines above, which stay admin-only. Renamed from `balance_micro_eur` (2026-09-07, same number). */
1165
+ balanceMicro: string;
1166
+ /** 'stripe' (subscription) | 'credits' (usage-based). */
1167
+ billingMode: string;
1168
+ /** Usage accrued but not yet charged, micro-units of `currency` -- priced with the sweeper's own integrals and the org's currency's rates over buckets after its watermark, so the balance and the usage numbers can never look like they disagree. Display-only approximation; absent on stripe orgs and when the pricing read fails (render nothing rather than a wrong number). Renamed from `accruing_micro_eur` (2026-09-07). */
1169
+ accruingMicro?: string | undefined;
1170
+ /** The org's billing currency, lower-case ISO 4217 ('eur' | 'usd'). */
1171
+ currency: string;
1172
+ /** The largest machine an explicit request in this org may ask for: the operator-set quota, else the platform 8 vCPU / 32 GiB. 0 from servers that predate the field -- fall back to vcpu/memory_bytes. */
1173
+ ceilingVcpu: number;
1174
+ ceilingMemoryBytes: string;
1175
+ /** The org is on a custom plan managed by boxd and is never charged, so its balance means nothing to its members and can run negative. Render no balance for it, as the console does. False from servers that predate the field. */
1176
+ comped: boolean;
1177
+ }
1178
+ export interface GetOrgBotProtectionDefaultRequest {
1179
+ /** name or id; "" = your home org */
1180
+ orgId?: string | undefined;
1181
+ }
1182
+ export interface GetOrgBotProtectionDefaultResponse {
1183
+ /** an explicit org default is stored */
1184
+ set: boolean;
1185
+ /** What a new machine in the org starts with: the org default when `set`, else the cluster's setting for new machines. */
1186
+ mode: string;
1187
+ /** The cluster's setting for new machines, whether or not the org has its own default: what clearing the org default would give, and what the console shows as "Platform setting (...)". "on" | "sleep_only". */
1188
+ platformMode: string;
1189
+ }
1190
+ export interface GetOrgDomainRequest {
1191
+ orgId?: string | undefined;
1192
+ /** "" = the region this endpoint serves */
1193
+ region?: string | undefined;
1194
+ }
1195
+ export interface OrgDomainInfo {
1196
+ orgId: string;
1197
+ domain: string;
1198
+ /** "pending" | "active" */
1199
+ status: string;
1200
+ lastError: string;
1201
+ /** where the domain is bound; "" when boxd runs in one place */
1202
+ region: string;
1203
+ }
1204
+ export interface GetOrgDomainResponse {
1205
+ /** Message-typed fields already have presence in proto3 (no `optional` label needed) -- unset (`HasField`/`has_domain()` false) if the org has no domain. */
1206
+ domain?: OrgDomainInfo | undefined;
1207
+ }
1208
+ export interface GetOrgIdleIgnoreOutboundDefaultRequest {
1209
+ /** name or id; "" = your home org */
1210
+ orgId?: string | undefined;
1211
+ }
1212
+ export interface GetOrgIdleIgnoreOutboundDefaultResponse {
1213
+ /** an explicit org default is stored */
1214
+ set: boolean;
1215
+ /** What a new machine in the org starts with: the org default when `set`, else the platform's setting. */
1216
+ enabled: boolean;
1217
+ /** The platform's setting, whether or not the org has its own default: what clearing the org default would give, and what the console shows as "Platform setting (...)". Off until an operator sets it. */
1218
+ platformEnabled: boolean;
1219
+ }
1220
+ export interface GetOrgMachineDefaultsRequest {
1221
+ /** name or id; "" = your default org (the one a list with no org shows; an API key's own org) */
1222
+ orgId?: string | undefined;
1223
+ }
1224
+ export interface GrantedMachineSize {
1225
+ vcpu: number;
1226
+ memoryBytes: string;
1227
+ }
1228
+ export type GrantedMachineSizeList = Array<GrantedMachineSize>;
1229
+ export interface GetOrgMachineDefaultsResponse {
1230
+ /** an explicit org default is stored */
1231
+ set: boolean;
1232
+ /** effective default (= ceiling when unset) */
1233
+ vcpu: number;
1234
+ memoryBytes: string;
1235
+ /** the org quota -- for gating size options */
1236
+ ceilingVcpu: number;
1237
+ ceilingMemoryBytes: string;
1238
+ /** Sizes an operator granted to this org on top of the cluster's list. The org may name them whatever its ceiling. Smallest memory first; empty for almost every org. */
1239
+ grantedSizes: GrantedMachineSizeList;
1240
+ /** The org's default region for new machines and disks; "" = none set (clients then use the closest of the org's regions). */
1241
+ region: string;
1242
+ }
1243
+ export interface GetOrgMachineLimitRequest {
1244
+ /** name or id; "" = your home org (an API key's own org) */
1245
+ orgId?: string | undefined;
1246
+ }
1247
+ export interface GetOrgMachineLimitResponse {
1248
+ orgId: string;
1249
+ orgName: string;
1250
+ /** the machine limit */
1251
+ maxVms: number;
1252
+ /** machines that count against it now */
1253
+ vmCount: number;
1254
+ /** the caller is the org's owner, who may ask for more */
1255
+ isOwner: boolean;
1256
+ /** The open request for a higher limit, if any: when it was made (unix seconds; 0 = none open) and the limit it asks for (0 when none is open, or for a request that named no number). */
1257
+ requestedAt: string;
1258
+ requestedMaxVms: number;
1259
+ }
1260
+ export interface GetOrgMembersRequest {
1261
+ /** name or id; "" = your home org */
1262
+ orgId?: string | undefined;
1263
+ }
1264
+ export interface OrgMemberInfo {
1265
+ userId: string;
1266
+ /** "owner" | "admin" | "member" */
1267
+ role: string;
1268
+ /** "" when the member has none set */
1269
+ displayName: string;
1270
+ /** "" when not signed in via GitHub */
1271
+ githubUsername: string;
1272
+ }
1273
+ export type OrgMemberInfoList = Array<OrgMemberInfo>;
1274
+ export interface OrgInviteInfo {
1275
+ token: string | Redacted.Redacted<string>;
1276
+ email: string;
1277
+ acceptUrl: string;
1278
+ /** unix epoch seconds */
1279
+ createdAt: string;
1280
+ /** unix epoch seconds */
1281
+ expiresAt: string;
1282
+ /** "admin" | "member" -- role the invitee lands with */
1283
+ role: string;
1284
+ /** What happened to the invite email, latest first: "sent" (handed to the mail provider), "failed" (the send was refused), "not_configured" (this cluster sends no email), then the provider's delivery reports: "delivered", "delivery_delayed", "bounced", "complained", "opened", "clicked". "" = unknown (the invite predates this field). Whatever it says, accept_url works: share it yourself if the email didn't arrive. */
1285
+ emailStatus: string;
1286
+ }
1287
+ export type OrgInviteInfoList = Array<OrgInviteInfo>;
1288
+ export interface GetOrgMembersResponse {
1289
+ members: OrgMemberInfoList;
1290
+ /** Populated for org admins only; empty for a plain member (matches the console: pending invites aren't roster information). */
1291
+ invites: OrgInviteInfoList;
1292
+ }
1293
+ export interface GetOrgRdpDefaultRequest {
1294
+ /** name or id; "" = your home org */
1295
+ orgId?: string | undefined;
1296
+ }
1297
+ export interface GetOrgRdpDefaultResponse {
1298
+ /** an explicit org default is stored */
1299
+ set: boolean;
1300
+ /** what a new Windows machine in the org starts with */
1301
+ enabled: boolean;
1302
+ }
1303
+ export interface GetOrgSnapshotVersionsKeepRequest {
1304
+ /** name or id; "" = your default org (the one a list with no org shows; an API key's own org) */
1305
+ orgId?: string | undefined;
1306
+ }
1307
+ export interface GetOrgSnapshotVersionsKeepResponse {
1308
+ /** the org has its own setting */
1309
+ set: boolean;
1310
+ /** how many versions of its snapshots are kept now */
1311
+ keep: number;
1312
+ /** the platform's count, which an org without a setting follows */
1313
+ platformKeep: number;
1314
+ /** the most an org may set */
1315
+ maxKeep: number;
1316
+ }
1317
+ export interface GetOrgUsageRequest {
1318
+ /** Org name or id; "" = your default org (for an API key: the key's org). */
1319
+ org?: string | undefined;
1320
+ /** Window start, unix seconds, inclusive. 0 = the 28 days before `until`. */
1321
+ since?: string | undefined;
1322
+ /** Window end, unix seconds, exclusive. 0 = now; later than now is clamped. The window may span at most 366 days. */
1323
+ until?: string | undefined;
1324
+ }
1325
+ /** --- Usage and cost --- Costs are priced at the org's CURRENT rates over the window, from the same per-machine meter the balance is charged from, so they track billing activity closely but are an estimate: billing activity (ListBillingActivity) is what was actually charged. Every money field is micro-units (1e-6) of `currency`. A window is unix seconds, [since, until). Usage is metered in 15-minute buckets, and a bucket counts when it starts inside the window. No window is the calendar month an org is invoiced for, so label totals with the window they cover. Rates the costs were priced at, micro-units of `currency` per unit-hour. */
1326
+ export interface UsageRates {
1327
+ /** per vCPU-hour of CPU time used */
1328
+ vcpuHourMicro: string;
1329
+ /** per GiB-hour of resident RAM (running or standby) */
1330
+ ramGibHourMicro: string;
1331
+ /** per GiB-hour of used disk (every state) */
1332
+ diskGibHourMicro: string;
1333
+ }
1334
+ /** Seconds a machine spent in each state over the window. */
1335
+ export interface StateSeconds {
1336
+ running: string;
1337
+ standby: string;
1338
+ hibernated: string;
1339
+ stopped: string;
1340
+ }
1341
+ /** One machine's usage over a window. */
1342
+ export interface VmUsage {
1343
+ vmId: string;
1344
+ /** current name, or the last one seen if deleted */
1345
+ name: string;
1346
+ /** owner user_id; empty for machines no user owns */
1347
+ owner: string;
1348
+ /** Human label for the owner, resolved server-side. Empty when nothing better than the user_id is known: fall back to `owner`. */
1349
+ ownerName: string;
1350
+ /** "shared" | "private" */
1351
+ sharing: string;
1352
+ /** The machine's current status, or "deleted" once it no longer exists (its usage is kept for two years). */
1353
+ status: string;
1354
+ /** Size now (or when last seen, if deleted). */
1355
+ vcpu: number;
1356
+ memoryBytes: string;
1357
+ diskBytes: string;
1358
+ seconds?: StateSeconds | undefined;
1359
+ /** What the cost is computed from, in the rates' units: vCPU-hours of CPU time used (a 2 vCPU machine busy 10% of an hour is 0.2), GiB-hours of resident RAM while running or in standby, GiB-hours of used disk in every state. cost_micro is these times `rates`, rounded up per component. */
1360
+ vcpuHours: number;
1361
+ ramGibHours: number;
1362
+ diskGibHours: number;
1363
+ costMicro: string;
1364
+ /** All of this machine's usage in the window has been metered: the figures above won't grow. Metering lags by up to ~25 minutes, so a machine read right after it is deleted is not complete yet; one that still exists never is in a window that runs to now. Store a cost once this is true. */
1365
+ complete: boolean;
1366
+ }
1367
+ export type VmUsageList = Array<VmUsage>;
1368
+ export interface GetOrgUsageResponse {
1369
+ orgId: string;
1370
+ /** display name */
1371
+ org: string;
1372
+ /** the window resolved, unix seconds [start, end) */
1373
+ periodStart: string;
1374
+ periodEnd: string;
1375
+ /** lower-case ISO 4217 ('eur' | 'usd') */
1376
+ currency: string;
1377
+ rates?: UsageRates | undefined;
1378
+ /** sum of the machines' cost_micro */
1379
+ totalCostMicro: string;
1380
+ /** Every machine that used anything in the window, most expensive first, including machines deleted since. */
1381
+ vms: VmUsageList;
1382
+ /** Every machine above is complete, so the total won't grow. */
1383
+ complete: boolean;
1384
+ }
1385
+ export interface GetSnapshotRequest {
1386
+ /** snapshot name or id */
1387
+ name?: string | undefined;
1388
+ /** org context (name or id); empty = active/anchor */
1389
+ org?: string | undefined;
1390
+ }
1391
+ /** Returns a CreateVmResponse -- identical shape to `new`, so the CLI renders it the same way. */
1392
+ export interface SnapshotInfo {
1393
+ snapshotId: string;
1394
+ name: string;
1395
+ /** current (latest ready) version; 0 = none yet */
1396
+ version: string;
1397
+ /** "pending" | "ready" | "failed" */
1398
+ status: string;
1399
+ /** Fields 5/6 removed (ready_replicas, desired_replicas) -- internal artifact-replication state. `status` already answers the only question a caller has: is it usable yet. Old clients decode them as 0. */
1400
+ sizeBytes: string;
1401
+ /** epoch MILLISECONDS; moves with every new version */
1402
+ updatedAt: string;
1403
+ vcpu: number;
1404
+ memoryBytes: string;
1405
+ useCount: string;
1406
+ /** Wall-clock unix epoch MILLISECONDS the snapshot was first captured (`updated_at` above moves with every new version; this one does not). */
1407
+ createdAt: string;
1408
+ /** Highest version whose save failed (0 = none), and why. A save of version N failed iff failed_version >= N; `version` stays on the last ready one, and `status` is "failed" only when there is no ready version at all. */
1409
+ failedVersion: string;
1410
+ failureReason: string;
1411
+ /** Where the snapshot's bytes are. "local": on a worker's disk. "archiving": being copied to object storage. "archived": in object storage only. "unarchiving": being restored to a worker's disk. Machines can't be created from it unless it is local; `archived` is true for the other three. UnarchiveSnapshot brings an archived one back, and so does creating a machine from it: that create fails with FAILED_PRECONDITION and starts the restore, to be tried again once the storage is "local". An archived snapshot can be saved over: the new version is saved to local disk and the snapshot is local once it is ready. While it is "archiving" or "unarchiving" a save is refused. */
1412
+ archived: boolean;
1413
+ storage: string;
1414
+ /** The region the snapshot lives in; "" when boxd runs in one place. */
1415
+ region: string;
1416
+ /** The guest OS of the machine it was saved from: "linux" or "windows" (GetVmResponse.os), read off its current version (its newest while none is ready). A machine created from it has that OS. A server from before this field sends "", which is a Linux snapshot. */
1417
+ os: string;
1418
+ }
1419
+ export interface GetSnapshotResponse {
1420
+ snapshot?: SnapshotInfo | undefined;
1421
+ }
1422
+ export interface GetTeamRequest {
1423
+ teamId?: string | undefined;
1424
+ }
1425
+ export interface GetTeamResponse {
1426
+ id: string;
1427
+ orgId: string;
1428
+ name: string;
1429
+ /** "" if the creating user no longer exists */
1430
+ createdByUserId: string;
1431
+ /** unix epoch milliseconds */
1432
+ createdAt: string;
1433
+ /** caller has team-admin authority */
1434
+ isAdmin: boolean;
1435
+ members: TeamMemberInfoList;
1436
+ /** "" = no default set */
1437
+ defaultSnapshotId: string;
1438
+ }
1439
+ export interface GetVmRequest {
1440
+ vmId?: string | undefined;
1441
+ }
1442
+ export interface GetVmResponse2 {
1443
+ vmId: string;
1444
+ name: string;
1445
+ imageRef: string;
1446
+ publicIp: string;
1447
+ /** Never "destroyed": a destroyed machine's id/name is a NOT_FOUND error instead of a response carrying this field (see the GetVm RPC comment). */
1448
+ status: string;
1449
+ restartPolicy: string;
1450
+ /** The machine's fixed disk ALLOCATION, always the platform constant (100 GiB) -- per-machine disk sizing is not offered. This is not a usage figure: it does not move as the machine fills its disk, and it is the same on every machine. There is no "disk used" field on this API yet. */
1451
+ diskBytes: string;
1452
+ /** 0 = disabled/unset; always concrete on the wire */
1453
+ autoSuspendTimeoutSecs: number;
1454
+ /** per-VM SSH port on the proxy IP (0 = not yet allocated) */
1455
+ sshPort: number;
1456
+ /** Org the VM is SHARED with (org name; empty = not shared) and the org paying for it (org name; empty = the owner's personal quota). A private org-billed VM has `org` empty and `billing_org` set. */
1457
+ org: string;
1458
+ billingOrg: string;
1459
+ /** The domain the VM is addressed under: the VM's billing org's active custom domain (e.g. `preview.mysaas.com`) if it has one, else the cluster zone (e.g. `boxd.sh`). Clients build `<name>.<access_domain>` for SSH/HTTPS display. The default `<name>.<cluster-zone>` always continues to resolve. */
1460
+ accessDomain: string;
1461
+ /** 0 = disabled/unset */
1462
+ autoHibernateTimeoutSecs: number;
1463
+ /** How the VM was created, for DISPLAY: "snapshot/<name>:<version>", "fork/<source-vm-name>", or "standalone". Kept verbatim for old clients -- new ones read the structured `source_kind`/`source_name`/`source_version` trio below instead of string-splitting this. */
1464
+ source: string;
1465
+ /** --- Sizing. The machine's EFFECTIVE vCPU/RAM, resolved exactly like the spawn path (`Repository::vm_resources`): the VM's own override if it has one, else its billing org's quota, else the platform default. Never the raw nullable column, which reads 0 for a VM sized purely by its org. */
1466
+ vcpu: number;
1467
+ memoryBytes: string;
1468
+ /** Wall-clock unix SECONDS the VM was created. 0 = unknown: the row predates migration 0076 and was deliberately not backfilled with a fabricated time. */
1469
+ createdAt: string;
1470
+ /** Wall-clock unix MILLISECONDS the VM entered `hibernated`. 0 = not hibernated (or hibernated before the column was recorded). */
1471
+ hibernatedAtMs: string;
1472
+ /** Idle seconds before the VM is auto-destroyed. 0 = disabled/unset. */
1473
+ autoDestroyTimeoutSecs: number;
1474
+ /** Last boot duration in MILLISECONDS (0 = never booted / not recorded) and the wall-clock unix MILLISECONDS of the last client connection to the VM (0 = never connected). */
1475
+ bootTimeMs: string;
1476
+ lastConnectedMs: string;
1477
+ /** Ids for the orgs named by `org` / `billing_org` above, so a caller can round-trip to an org-addressed call without a name->id lookup. Same emptiness rules as the names they sit beside. */
1478
+ orgId: string;
1479
+ billingOrgId: string;
1480
+ /** Structured form of `source`, so clients never parse that string. UNSET for a standalone machine -- see VmSource below. */
1481
+ sourceInfo?: VmSource | undefined;
1482
+ /** Tag-based networks: east-west reachability within the org. See CreateVmRequest.networks for the rule. Empty = this VM is in the org's implicit default network (its other networkless, non-isolated VMs); non-empty means it reaches only VMs sharing a network. */
1483
+ networks: StringList;
1484
+ /** Isolated: a sandbox -- peers only through an explicit shared `networks` entry, never through the default network and never with another isolated VM. No metadata adapter. Immutable after creation. */
1485
+ isolated: boolean;
1486
+ /** Per-VM custom domains bound to this machine -- `domain` is globally unique but not `vm_id`, so more than one can point here. Distinct from `access_domain` above, which is the org's wildcard domain or the cluster zone, not a per-VM custom domain. */
1487
+ customDomains: CustomDomainInfoList;
1488
+ /** Egress allowlist. Empty = unrestricted; `["none"]` = nothing is reachable. */
1489
+ egressAllow: StringList;
1490
+ /** Bot protection: an HTTPS request to `<vm>.<domain>` or `www.<vm>.<domain>` must pass a Cloudflare Turnstile challenge first. True for both protecting modes; `bot_protection_mode` says which. */
1491
+ botProtection: boolean;
1492
+ /** Delete-after timer: wall-clock unix MILLISECONDS at which the control plane destroys this machine, whatever state it is in. 0 = no timer. Set/replaced/cleared with SetDeleteAfter. Independent of `auto_destroy_timeout_secs`, which counts from each (re)start. */
1493
+ deleteAtMs: string;
1494
+ /** When the timer was set with a cron expression (SetDeleteAfter `delete_after_cron`), that expression; `delete_at_ms` is its next match. Empty for a duration or no timer. */
1495
+ deleteAfterCron: string;
1496
+ /** The idle clock behind auto-suspend and auto-hibernate ignores connections the machine opened itself; only inbound connections keep it awake. Default false. See VmConfig.idle_ignore_outbound. */
1497
+ idleIgnoreOutbound: boolean;
1498
+ /** How far bot protection reaches: "on" - challenged in every state, running included. A request without a clearance cookie never reaches the machine, so crawlers can't keep it awake. "sleep_only" - challenged only when the request would wake the machine from standby or hibernation. "off" - never challenged. Set with SetBotProtection. A fork or a restore inherits the source's; a plain create gets the org's default (SetOrgBotProtectionDefault), else the cluster's setting for new machines. */
1499
+ botProtectionMode: string;
1500
+ /** Machine labels: user-set key=value metadata. Anyone who can see the machine can read them. Set at create (CreateVmRequest.labels), edited with UpdateVmLabels; forks and restores inherit them. */
1501
+ labels: StringMap;
1502
+ /** The machine spec as it stands, and the spec the machine was created with. UpdateMachineSpec changes `spec`, and so does editing labels, networks, egress or the size (the matching field); `created_spec` never changes. Unset when the machine wasn't created from a spec and didn't inherit one from a snapshot or a fork source. */
1503
+ spec?: MachineSpec | undefined;
1504
+ createdSpec?: MachineSpec | undefined;
1505
+ /** Who created the machine for its owner (a spec's `assign_to`): their user id, and a name to show for them (display name, else GitHub username; empty when the account has neither). Empty when the owner created it. */
1506
+ createdBy: string;
1507
+ createdByName: string;
1508
+ /** What the spec's `connections` and `agents` need, and whether each is connected now. Computed when the machine is read, never stored; empty without a spec. An unmet one is only unavailable on the machine: nothing blocks creating, booting or using it. */
1509
+ requirements: MachineRequirementList;
1510
+ /** How each of the spec's `packages` went, in order. Empty without any. ListVms leaves each one's `output_tail` empty, to keep lists small; GetVm has it. */
1511
+ packages: MachinePackageList;
1512
+ /** SSH is off: nothing answers on `ssh_port` (see NetworkConfig.ssh). The port stays allocated. Inverted so a server that predates it reads as on. */
1513
+ sshDisabled: boolean;
1514
+ /** The region the machine lives in; "" when boxd runs in one place. */
1515
+ region: string;
1516
+ /** The guest OS: "linux" or "windows" (CreateVmRequest.os). A server from before this field sends "", which is a Linux machine. */
1517
+ os: string;
1518
+ /** A Windows machine's RDP (plans/2026-11-10-windows-guests.md 2d): its port on the proxy's address (`<name>.<zone>:<rdp_port>`; 0 for any other machine), RDP off (SetRdp; the proxy closes a connection to the port then), and whether its Administrator password was ever generated through boxd (ResetRdpPassword; or carried over from a snapshot's source). The password itself is never in a response but ResetRdpPassword's. */
1519
+ rdpPort: number;
1520
+ rdpDisabled: boolean;
1521
+ rdpPasswordSet: boolean;
1522
+ }
1523
+ export interface GetVmUsageRequest {
1524
+ /** Machine name or id. A machine that no longer exists is found in the usage history of `org`, by its id or a name it had; when several deleted machines had that name the call fails listing their ids. */
1525
+ vmId?: string | undefined;
1526
+ /** Window start, unix seconds, inclusive. 0 = since the machine was created (at most 366 days back). */
1527
+ since?: string | undefined;
1528
+ /** Window end, unix seconds, exclusive. 0 = now (for a deleted machine: when it was last metered). */
1529
+ until?: string | undefined;
1530
+ /** Org (name or id) whose usage history is searched when no existing machine matches; "" = your default org (for an API key: the key's org). Ignored for a machine that exists. */
1531
+ org?: string | undefined;
1532
+ }
1533
+ export interface GetVmUsageResponse {
1534
+ periodStart: string;
1535
+ periodEnd: string;
1536
+ currency: string;
1537
+ rates?: UsageRates | undefined;
1538
+ /** All-zero seconds and cost when the machine used nothing in the window. */
1539
+ usage?: VmUsage | undefined;
1540
+ }
1541
+ export interface HibernateVmRequest {
1542
+ vmId?: string | undefined;
1543
+ }
1544
+ export interface HibernateVmResponse {
1545
+ }
1546
+ export interface InterruptAgentRequest {
1547
+ /** machine name or id */
1548
+ vmId?: string | undefined;
1549
+ sessionId?: string | undefined;
1550
+ /** Also drop the messages waiting for the next turns. Without it, the next waiting message starts its turn once the interrupted one has ended. */
1551
+ clearQueue?: boolean | undefined;
1552
+ /** Only this turn: stopped if it is the one running, taken out of the queue if its message is still waiting (it then ends as interrupted without having run), and left alone if it is neither (it has ended). 0: the running turn, whichever it is. Not together with `clear_queue`. */
1553
+ turn?: string | undefined;
1554
+ }
1555
+ export interface InterruptAgentResponse {
1556
+ /** The turn that was interrupted, or with `turn` taken out of the queue; 0 when none was. */
1557
+ turn: string;
1558
+ }
1559
+ export interface InviteOrgMemberRequest {
1560
+ /** name or id; "" = your home org */
1561
+ orgId?: string | undefined;
1562
+ email?: string | undefined;
1563
+ /** "member" (default) | "admin". */
1564
+ role?: string | undefined;
1565
+ }
1566
+ export interface InviteOrgMemberResponse {
1567
+ token: string | Redacted.Redacted<string>;
1568
+ acceptUrl: string;
1569
+ /** unix epoch seconds */
1570
+ expiresAt: string;
1571
+ /** unix epoch seconds */
1572
+ createdAt: string;
1573
+ /** Whether accept_url was also emailed to the invitee: "sent", "failed" (the send was refused; share accept_url yourself) or "not_configured" (this cluster sends no email). "" = a server that predates this field. */
1574
+ emailStatus: string;
1575
+ }
1576
+ export interface LinkSshKeyRequest {
1577
+ pubkey?: string | undefined;
1578
+ /** Optional device this key belongs to (the CLI's per-install `device_id`). When set, the server keeps ONE key per (user, device): re-linking from the same device replaces its previous key instead of accumulating stale ones. */
1579
+ deviceId?: string | undefined;
1580
+ /** Optional human label for the device (e.g. hostname), for display. */
1581
+ label?: string | undefined;
1582
+ }
1583
+ export interface LinkSshKeyResponse {
1584
+ }
1585
+ export interface ListAgentRunsRequest {
1586
+ /** The organization, by name or id. Empty: your current one. You see the runs on its machines you can see, and on your own deleted ones. */
1587
+ org?: string | undefined;
1588
+ /** Only this machine's runs (name or id). */
1589
+ vmId?: string | undefined;
1590
+ /** Only this session's runs. */
1591
+ sessionId?: string | undefined;
1592
+ /** Only runs that ended at or after this time (ms since the epoch). 0: all that's kept (30 days). */
1593
+ sinceMs?: string | undefined;
1594
+ /** At most this many. 0: 50; at most 500. */
1595
+ limit?: number | undefined;
1596
+ /** `next_page_token` from the previous page. */
1597
+ pageToken?: string | undefined;
1598
+ }
1599
+ /** One finished turn. */
1600
+ export interface AgentRun {
1601
+ /** the machine's id */
1602
+ vmId: string;
1603
+ vmName: string;
1604
+ sessionId: string;
1605
+ harness: string;
1606
+ harnessVersion: string;
1607
+ model: string;
1608
+ turn: string;
1609
+ /** `message` (a message started it), `queued` (it waited for the turn before it) or `by_agent` (the agent started it, as Claude Code does to report a background command's end). */
1610
+ startedBy: string;
1611
+ reason: AgentFinishReason;
1612
+ /** For FAILED and some INTERRUPTED: what went wrong, its first 500 characters. */
1613
+ error: string;
1614
+ startedAtMs: string;
1615
+ endedAtMs: string;
1616
+ /** Model calls (Claude Code) or tool calls (Codex, Antigravity) in the turn. */
1617
+ steps: number;
1618
+ usage?: AgentUsage | undefined;
1619
+ /** The session's reasoning effort; empty: the agent's default. */
1620
+ effort: string;
1621
+ }
1622
+ export type AgentRunList = Array<AgentRun>;
1623
+ export interface ListAgentRunsResponse {
1624
+ runs: AgentRunList;
1625
+ /** Pass it as `page_token` for the next, older page; empty on the last. */
1626
+ nextPageToken: string;
1627
+ }
1628
+ export interface ListAgentSessionsRequest {
1629
+ /** machine name or id */
1630
+ vmId?: string | undefined;
1631
+ /** Include closed and failed sessions. */
1632
+ all?: boolean | undefined;
1633
+ }
1634
+ export interface AgentSession {
1635
+ id: string;
1636
+ /** the machine's id */
1637
+ vmId: string;
1638
+ harness: string;
1639
+ /** The agent version this session runs. It doesn't change during the session, even if the machine's agent is updated meanwhile. */
1640
+ harnessVersion: string;
1641
+ model: string;
1642
+ cwd: string;
1643
+ state: AgentSessionState;
1644
+ /** The turn running now, or the last one; 0 before the first. */
1645
+ turn: string;
1646
+ /** Messages waiting for the running turn to end, each its own turn. */
1647
+ queued: number;
1648
+ /** The latest event's `seq`; 0 before the first. */
1649
+ lastSeq: string;
1650
+ createdAtMs: string;
1651
+ /** For a failed session: what went wrong and what to do about it. */
1652
+ error: string;
1653
+ /** The reasoning effort it was started with; empty: the agent's default. */
1654
+ effort: string;
1655
+ }
1656
+ export type AgentSessionList = Array<AgentSession>;
1657
+ export interface ListAgentSessionsResponse {
1658
+ sessions: AgentSessionList;
1659
+ }
1660
+ export interface ListApiKeysRequest {
1661
+ }
1662
+ export interface ApiKeyInfo {
1663
+ id: string;
1664
+ name: string;
1665
+ keyPrefix: string;
1666
+ createdAt: string;
1667
+ /** 0 = never */
1668
+ lastUsedAt: string;
1669
+ /** 0 = no expiry */
1670
+ expiresAt: string;
1671
+ /** org name the key is fenced to */
1672
+ org: string;
1673
+ /** "member" | "org" */
1674
+ kind: string;
1675
+ /** who made it: display name, else sign-in handle */
1676
+ createdBy: string;
1677
+ /** the caller made it */
1678
+ mine: boolean;
1679
+ }
1680
+ export type ApiKeyInfoList = Array<ApiKeyInfo>;
1681
+ export interface ListApiKeysResponse {
1682
+ keys: ApiKeyInfoList;
1683
+ }
1684
+ export interface ListBackupsRequest {
1685
+ vm?: string | undefined;
1686
+ }
1687
+ export interface BackupInfo {
1688
+ backupId: string;
1689
+ /** "pending" | "ready" | "dedup" | "failed" */
1690
+ status: string;
1691
+ /** 0 for pending/dedup/failed */
1692
+ sizeBytes: string;
1693
+ /** sha256, hex; empty for pending/dedup/failed */
1694
+ checksum: string;
1695
+ /** set iff status == "dedup" */
1696
+ pointsToBackupId: string;
1697
+ /** unix ms */
1698
+ createdAt: string;
1699
+ /** unix ms */
1700
+ expiresAt: string;
1701
+ }
1702
+ export type BackupInfoList = Array<BackupInfo>;
1703
+ export interface ListBackupsResponse {
1704
+ backups: BackupInfoList;
1705
+ }
1706
+ export interface ListBillingActivityRequest {
1707
+ /** as GetOrgUsageRequest.org */
1708
+ org?: string | undefined;
1709
+ /** Optional window on created_at, unix seconds [since, until); both 0 = the whole history. */
1710
+ since?: string | undefined;
1711
+ until?: string | undefined;
1712
+ /** The previous response's next_page_token, unchanged; "" = the newest page. */
1713
+ pageToken?: string | undefined;
1714
+ /** Entries per page; 0 = 500, at most 1000. */
1715
+ pageSize?: number | undefined;
1716
+ }
1717
+ export interface BillingActivityEntry {
1718
+ entryId: string;
1719
+ /** 'usage_charge' (one org-wide charge per 15 minutes) | 'topup' | 'grant' | 'signup' | 'promo' | 'adjustment' | 'operator_credit'. New kinds may appear; show an unknown one as-is. */
1720
+ kind: string;
1721
+ /** signed: credits positive, charges negative */
1722
+ amountMicro: string;
1723
+ /** unix seconds */
1724
+ createdAt: string;
1725
+ }
1726
+ export type BillingActivityEntryList = Array<BillingActivityEntry>;
1727
+ export interface ListBillingActivityResponse {
1728
+ currency: string;
1729
+ /** the org's balance now */
1730
+ balanceMicro: string;
1731
+ /** newest first */
1732
+ entries: BillingActivityEntryList;
1733
+ /** Pass as page_token for the next (older) page; "" = this was the last. */
1734
+ nextPageToken: string;
1735
+ /** The org is on a custom plan managed by boxd and is never charged, so render no balance (as GetOrgBillingResponse.comped). */
1736
+ comped: boolean;
1737
+ }
1738
+ export interface ListCheckpointsRequest {
1739
+ /** VM name or id (owned by the caller) */
1740
+ vm?: string | undefined;
1741
+ }
1742
+ export interface CheckpointInfo {
1743
+ checkpointId: string;
1744
+ name: string;
1745
+ /** "pending" | "ready" | "failed" */
1746
+ status: string;
1747
+ sizeBytes: string;
1748
+ /** unix ms */
1749
+ createdAt: string;
1750
+ createdBy: string;
1751
+ /** Restorable right now: `status == "ready"` AND the checkpoint's worker is still the VM's worker (a still-`pending`/`failed` checkpoint, or a `ready` one stranded on a since-migrated/dead worker, both list as unavailable). This is a read-only mirror of `restore()`'s own gate, not an independently-tracked flag -- poll `status` for `"ready"` (or just this field; they can't disagree) before calling restore. */
1752
+ available: boolean;
1753
+ }
1754
+ export type CheckpointInfoList = Array<CheckpointInfo>;
1755
+ export interface ListCheckpointsResponse {
1756
+ checkpoints: CheckpointInfoList;
1757
+ }
1758
+ export interface ListCustomDomainsRequest {
1759
+ }
1760
+ export interface ListCustomDomainsResponse {
1761
+ domains: CustomDomainInfoList;
1762
+ }
1763
+ export interface ListDirRequest {
1764
+ /** VM name or id */
1765
+ vmId?: string | undefined;
1766
+ /** absolute directory path */
1767
+ path?: string | undefined;
1768
+ }
1769
+ export interface DirEntry {
1770
+ /** basename only, not the full path */
1771
+ name: string;
1772
+ isDir: boolean;
1773
+ /** Meaningless for a directory (always 0) -- the guest's own subtree size isn't cheap to compute recursively, so this only ever reflects a regular file's byte size. */
1774
+ sizeBytes: string;
1775
+ /** ls-style, e.g. "-rw-r--r--" or "drwxr-xr-x" */
1776
+ permissions: string;
1777
+ /** unix seconds, mtime */
1778
+ modifiedAt: string;
1779
+ /** "Added" is approximated with ctime (last inode/metadata change) -- Linux has no reliably-available true birth/creation time across filesystems, and ctime is the closest existing stand-in most file managers fall back to. It also bumps on rename/chmod/chown, not just creation. */
1780
+ addedAt: string;
1781
+ }
1782
+ export type DirEntryList = Array<DirEntry>;
1783
+ export interface ListDirResponse {
1784
+ entries: DirEntryList;
1785
+ /** True when the directory held more entries than the server's per-listing cap and `entries` is only the first slice of them (arbitrary order, not "the first N alphabetically"). A UI should say so rather than present a partial listing as complete. */
1786
+ truncated: boolean;
1787
+ }
1788
+ export interface ListDisksRequest {
1789
+ /** Also count your disks in your orgs' other regions (`elsewhere`). */
1790
+ withElsewhere?: boolean | undefined;
1791
+ }
1792
+ export interface DiskAttachment {
1793
+ vmId: string;
1794
+ vmName: string;
1795
+ mountPath: string;
1796
+ /** "ro" or "rw" */
1797
+ mountMode: string;
1798
+ }
1799
+ export type DiskAttachmentList = Array<DiskAttachment>;
1800
+ export interface DiskInfo {
1801
+ diskId: string;
1802
+ name: string;
1803
+ sizeBytes: string;
1804
+ status: string;
1805
+ /** Field 5 removed (worker_id) -- which host holds the disk is placement detail; exposing it leaked fleet size, the node naming scheme, and which of a customer's machines are co-located. Old clients decode it as "". */
1806
+ attachments: DiskAttachmentList;
1807
+ /** Wall-clock unix epoch MILLISECONDS the disk was created. */
1808
+ createdAt: string;
1809
+ /** The region the disk lives in; "" when boxd runs in one place. */
1810
+ region: string;
1811
+ }
1812
+ export type DiskInfoList = Array<DiskInfo>;
1813
+ export interface RegionCount {
1814
+ region: string;
1815
+ count: string;
1816
+ }
1817
+ export type RegionCountList = Array<RegionCount>;
1818
+ export interface ListDisksResponse {
1819
+ disks: DiskInfoList;
1820
+ elsewhere: RegionCountList;
1821
+ }
1822
+ export interface ListExposedPortsRequest {
1823
+ vm?: string | undefined;
1824
+ }
1825
+ /** dns is `<vm>.<zone>` and resolves to the VM's proxy IP -- connect on public_port. */
1826
+ export interface ExposePortResponse2 {
1827
+ vmName: string;
1828
+ dns: string;
1829
+ publicPort: number;
1830
+ vmPort: number;
1831
+ protocol: string;
1832
+ /** The machine this forward belongs to, beside `vm_name` -- lets a caller round-trip to any vm_id-addressed call without a name lookup. */
1833
+ vmId: string;
1834
+ }
1835
+ export type ExposePortResponse2List = Array<ExposePortResponse2>;
1836
+ export interface ListExposedPortsResponse {
1837
+ forwards: ExposePortResponse2List;
1838
+ }
1839
+ export interface ListHarnessesRequest {
1840
+ /** machine name or id */
1841
+ vmId?: string | undefined;
1842
+ }
1843
+ /** --- Coding agents (machines.agents) --- A coding agent a machine can run. */
1844
+ export interface Harness {
1845
+ /** `claude-code`, `codex` or `antigravity`. */
1846
+ id: string;
1847
+ /** The version installed on the machine; empty when it isn't installed. */
1848
+ version: string;
1849
+ /** Whether a message can join a turn while it runs (`AGENT_SEND_WHEN_NOW`). Without it such a message waits for the next turn. */
1850
+ midTurnInput: boolean;
1851
+ /** Models the agent accepts in `StartAgentSessionRequest.model`; empty when the agent doesn't list them. */
1852
+ models: StringList;
1853
+ /** Reasoning efforts the agent accepts in `StartAgentSessionRequest.effort`, least to most: Claude Code `low` to `max`, Codex `minimal` to `xhigh`, Antigravity `low` to `max` (a model may support fewer). */
1854
+ efforts: StringList;
1855
+ /** The API key variable in the machine's env that this agent's sessions there sign in with: `ANTHROPIC_API_KEY`, `OPENAI_API_KEY` or `GEMINI_API_KEY`. Empty when the machine has none: its sessions then use your sign-in (GetAgentLogin). With a key they use the key, also on a machine that gets your sign-in. Only the variable's name, never the key. */
1856
+ apiKeyEnv: string;
1857
+ }
1858
+ export type HarnessList = Array<Harness>;
1859
+ export interface ListHarnessesResponse {
1860
+ harnesses: HarnessList;
1861
+ }
1862
+ export interface ListNetworksRequest {
1863
+ }
1864
+ export interface NetworkInfo {
1865
+ networkId: string;
1866
+ subnet: string;
1867
+ status: string;
1868
+ }
1869
+ export type NetworkInfoList = Array<NetworkInfo>;
1870
+ export interface ListNetworksResponse {
1871
+ networks: NetworkInfoList;
1872
+ }
1873
+ export interface ListOrgsRequest {
1874
+ }
1875
+ export interface OrgSummary {
1876
+ id: string;
1877
+ /** display label (may be shared across orgs) */
1878
+ name: string;
1879
+ /** caller is the org admin */
1880
+ isAdmin: boolean;
1881
+ /** unique machine key (used for resolution / `auth switch`) */
1882
+ slug: string;
1883
+ }
1884
+ export type OrgSummaryList = Array<OrgSummary>;
1885
+ export interface ListOrgsResponse {
1886
+ orgs: OrgSummaryList;
1887
+ /** The caller's default org (`users.default_org_id`) -- no longer derivable client-side (default orgs have uuid ids and can change on ownership transfer), so the server resolves it. */
1888
+ defaultOrgId: string;
1889
+ }
1890
+ export interface ListProxiesRequest {
1891
+ /** use `vm` */
1892
+ vmName?: string | undefined;
1893
+ /** Machine id OR name. Empty = every proxy the caller can see. */
1894
+ vm?: string | undefined;
1895
+ }
1896
+ export interface ProxyInfo {
1897
+ name: string;
1898
+ vmName: string;
1899
+ domain: string;
1900
+ /** The stored port: the locked port, else the auto-detected one, else 0. `effective_port` below is what traffic actually lands on. */
1901
+ port: number;
1902
+ isDefault: boolean;
1903
+ /** Rendered English for a terminal ("8000", "auto (8000)"). Kept for old clients; new ones read `port_mode` + `effective_port`. */
1904
+ portDisplay: string;
1905
+ /** The VM this route belongs to, beside `vm_name`, so a caller can address the machine without a name->id lookup. */
1906
+ vmId: string;
1907
+ /** "locked" (the port was pinned by the user) or "auto" (discovered from the guest). The machine-readable half of `port_display`. */
1908
+ portMode: string;
1909
+ /** The port traffic is actually forwarded to -- identical to the number rendered inside `port_display`, and to what the proxy picks: the locked port when port_mode="locked", else the detected port, falling back to 8000. */
1910
+ effectivePort: number;
1911
+ }
1912
+ export type ProxyInfoList = Array<ProxyInfo>;
1913
+ export interface ListProxiesResponse {
1914
+ proxies: ProxyInfoList;
1915
+ }
1916
+ export interface ListProxyNodesRequest {
1917
+ }
1918
+ export interface ProxyNodeInfo {
1919
+ /** Raft node name, e.g. "proxy-0". */
1920
+ id: string;
1921
+ /** Where to dial this proxy: its own DNS name (`p0.boxd.sh`) when the cluster publishes one, else its primary public IPv4. A name, not an IP, whenever one exists -- a URI whose authority is an IP literal sends no SNI, and the proxy's SniResolver answers a missing SNI with a fatal AccessDenied alert, so an IP here means the daemon cannot open a DeviceBridge at all. Field 2 was `ipv4`; the number is unchanged, so clients built against the old name keep working -- and they are exactly the ones this rescues, since they dial whatever this says. */
1922
+ endpoint: string;
1923
+ }
1924
+ export type ProxyNodeInfoList = Array<ProxyNodeInfo>;
1925
+ export interface ListProxyNodesResponse {
1926
+ proxies: ProxyNodeInfoList;
1927
+ }
1928
+ export interface ListRegionsRequest {
1929
+ /** name or id; "" = your default org (the one a list with no org shows; an API key's own org) */
1930
+ orgId?: string | undefined;
1931
+ }
1932
+ export interface Region {
1933
+ /** a short code, e.g. "fra" */
1934
+ id: string;
1935
+ /** e.g. "Frankfurt" */
1936
+ name: string;
1937
+ /** machines are reached at <name>.<zone> */
1938
+ zone: string;
1939
+ /** the region's API */
1940
+ apiEndpoint: string;
1941
+ consoleEndpoint: string;
1942
+ latitude: number;
1943
+ longitude: number;
1944
+ /** accounts, billing and settings live in the home region */
1945
+ home: boolean;
1946
+ /** For the org asked about: "enabled" (it can create here: always the home region), "requested" (an admin asked), or "available". */
1947
+ orgState: string;
1948
+ }
1949
+ export type RegionList = Array<Region>;
1950
+ export interface ListRegionsResponse {
1951
+ regions: RegionList;
1952
+ orgId: string;
1953
+ /** The region this endpoint serves; "" when boxd runs in one place. */
1954
+ thisRegion: string;
1955
+ }
1956
+ export interface ListSnapshotsRequest {
1957
+ /** Org context (name or id); empty = the caller's active/anchor context. Snapshots never cross an org boundary; key-fenced callers are pinned. */
1958
+ org?: string | undefined;
1959
+ /** Also count the org's snapshots in its other regions (`elsewhere`). */
1960
+ withElsewhere?: boolean | undefined;
1961
+ }
1962
+ export type SnapshotInfoList = Array<SnapshotInfo>;
1963
+ export interface ListSnapshotsResponse {
1964
+ snapshots: SnapshotInfoList;
1965
+ elsewhere: RegionCountList;
1966
+ }
1967
+ export interface ListSnapshotVersionsRequest {
1968
+ /** snapshot name or id */
1969
+ name?: string | undefined;
1970
+ /** org context (name or id); empty = active/anchor */
1971
+ org?: string | undefined;
1972
+ }
1973
+ /** One version of a snapshot. */
1974
+ export interface SnapshotVersionInfo {
1975
+ version: string;
1976
+ /** The version a create that names none uses. The newest ordinary save, unless SetSnapshotCurrentVersion chose another. */
1977
+ current: boolean;
1978
+ /** "ready", or "saving" for a save still in flight. */
1979
+ status: string;
1980
+ /** Where its bytes are, as SnapshotInfo.storage: a machine can be created from it only while "local". */
1981
+ storage: string;
1982
+ sizeBytes: string;
1983
+ /** when it was saved; epoch MILLISECONDS */
1984
+ createdAt: string;
1985
+ /** The size of a machine created from it. */
1986
+ vcpu: number;
1987
+ memoryBytes: string;
1988
+ /** The guest OS of the machine it was saved from: "linux" or "windows". */
1989
+ os: string;
1990
+ /** Ready, and above the current version: saved staged (CreateStagedSnapshot), or set aside when an older version was made current. A machine is created from it only by naming it; SetSnapshotCurrentVersion makes it current. */
1991
+ staged: boolean;
1992
+ }
1993
+ export type SnapshotVersionInfoList = Array<SnapshotVersionInfo>;
1994
+ export interface ListSnapshotVersionsResponse {
1995
+ snapshotId: string;
1996
+ name: string;
1997
+ /** Newest first. A version you may not use is left out: one saved from a private machine stays its creator's, even after a later save made the snapshot shared. */
1998
+ versions: SnapshotVersionInfoList;
1999
+ }
2000
+ export interface ListTeamsRequest {
2001
+ /** name or id; "" = your home org */
2002
+ orgId?: string | undefined;
2003
+ }
2004
+ /** --- Teams --- */
2005
+ export interface TeamInfo {
2006
+ id: string;
2007
+ orgId: string;
2008
+ name: string;
2009
+ /** "" if the creating user no longer exists */
2010
+ createdByUserId: string;
2011
+ /** unix epoch milliseconds */
2012
+ createdAt: string;
2013
+ /** caller has team-admin authority */
2014
+ isAdmin: boolean;
2015
+ members: TeamMemberInfoList;
2016
+ /** "" = no default set */
2017
+ defaultSnapshotId: string;
2018
+ }
2019
+ export type TeamInfoList = Array<TeamInfo>;
2020
+ export interface ListTeamsResponse {
2021
+ teams: TeamInfoList;
2022
+ }
2023
+ export interface ListTokensRequest {
2024
+ }
2025
+ export interface TokenInfo {
2026
+ jti: string;
2027
+ createdAt: string;
2028
+ expiresAt: string;
2029
+ }
2030
+ export type TokenInfoList = Array<TokenInfo>;
2031
+ export interface ListTokensResponse {
2032
+ tokens: TokenInfoList;
2033
+ }
2034
+ export interface ListVarsRequest {
2035
+ org?: string | undefined;
2036
+ kind?: string | undefined;
2037
+ }
2038
+ export interface VarItem {
2039
+ name: string;
2040
+ kind: string;
2041
+ scope: string;
2042
+ /** env only; always empty for secrets */
2043
+ value: string;
2044
+ /** secrets only; empty = not network-scoped */
2045
+ domains: StringList;
2046
+ /** Unattached secrets only: how many machines list it in their spec. */
2047
+ boundMachines: number;
2048
+ /** Secrets with domains only: where in a request the value is replaced ("url", "headers", "body"), as set; empty = all three. */
2049
+ replaceIn: StringList;
2050
+ }
2051
+ export type VarItemList = Array<VarItem>;
2052
+ export interface ListVarsResponse {
2053
+ vars: VarItemList;
2054
+ }
2055
+ export interface ListVmsRequest {
2056
+ /** Scope: empty = the caller's personal VMs; an org name = that org's VMs (caller must be a member). Picker-driven; defaults to personal. */
2057
+ org?: string | undefined;
2058
+ /** When true, ignore `org` and return every VM the caller can reach: their personal VMs plus, for each org they belong to, that org's shared VMs and their own private org-billed VMs (the `can_access_vm` set), deduped. Used by `ssh-config`, which must index all reachable VMs regardless of the active context. */
2059
+ allContexts?: boolean | undefined;
2060
+ /** Label selector: each entry is "key=value" (the label equals the value) or "key" (the machine has the label); entries are ANDed. Empty = no filter. */
2061
+ labelSelector?: StringList | undefined;
2062
+ /** Also count the org's machines in its other regions (`elsewhere`). */
2063
+ withElsewhere?: boolean | undefined;
2064
+ }
2065
+ export type GetVmResponseList = Array<GetVmResponse>;
2066
+ export interface ListVmsResponse {
2067
+ vms: GetVmResponseList;
2068
+ /** Cluster-info: the OpenSSH public-key line of the proxy's SSH host key (`ssh-ed25519 AAAA...`). All VM SSH connections terminate at the proxy and present this key, so the CLI writes one `known_hosts` line per VM with it. */
2069
+ sshHostKey: string;
2070
+ /** With `with_elsewhere`: how many machines the org has in each other region. */
2071
+ elsewhere: RegionCountList;
2072
+ }
2073
+ export interface MkdirRequest {
2074
+ vmId?: string | undefined;
2075
+ /** absolute path of the new directory (parent must exist) */
2076
+ path?: string | undefined;
2077
+ }
2078
+ export interface MkdirResponse {
2079
+ }
2080
+ export interface RebootVmRequest {
2081
+ vmId?: string | undefined;
2082
+ }
2083
+ export interface RebootVmResponse {
2084
+ }
2085
+ export interface RemoveCustomDomainRequest {
2086
+ domain?: string | undefined;
2087
+ }
2088
+ export interface RemoveCustomDomainResponse {
2089
+ }
2090
+ export interface RemoveOrgMemberRequest {
2091
+ /** name or id; "" = your home org */
2092
+ orgId?: string | undefined;
2093
+ userId?: string | undefined;
2094
+ }
2095
+ export interface RemoveOrgMemberResponse {
2096
+ }
2097
+ export interface RemoveTeamMemberRequest {
2098
+ teamId?: string | undefined;
2099
+ userId?: string | undefined;
2100
+ }
2101
+ export interface RemoveTeamMemberResponse {
2102
+ }
2103
+ export interface RemoveVarRequest {
2104
+ org?: string | undefined;
2105
+ kind?: string | undefined;
2106
+ name?: string | undefined;
2107
+ scope?: string | undefined;
2108
+ }
2109
+ export interface RemoveVarResponse {
2110
+ message: string;
2111
+ }
2112
+ export interface RenameOrgRequest {
2113
+ /** name or id; "" = your home org */
2114
+ orgId?: string | undefined;
2115
+ name?: string | undefined;
2116
+ }
2117
+ export interface RenameOrgResponse {
2118
+ }
2119
+ export interface RenamePathRequest {
2120
+ vmId?: string | undefined;
2121
+ oldPath?: string | undefined;
2122
+ newPath?: string | undefined;
2123
+ }
2124
+ export interface RenamePathResponse {
2125
+ }
2126
+ export interface RenameTeamRequest {
2127
+ teamId?: string | undefined;
2128
+ name?: string | undefined;
2129
+ }
2130
+ export interface RenameTeamResponse {
2131
+ }
2132
+ export interface RenameVmRequest {
2133
+ vmId?: string | undefined;
2134
+ newName?: string | undefined;
2135
+ }
2136
+ export interface RenameVmResponse {
2137
+ name: string;
2138
+ }
2139
+ export interface RequestOrgMachineLimitRequest {
2140
+ /** name or id; "" = your home org (an API key's own org) */
2141
+ orgId?: string | undefined;
2142
+ /** The new total limit wanted: above the current limit, at most 1000. */
2143
+ maxVms?: number | undefined;
2144
+ /** Why, optional; at most 1000 characters. */
2145
+ message?: string | undefined;
2146
+ }
2147
+ export interface RequestOrgMachineLimitResponse {
2148
+ /** unix seconds */
2149
+ requestedAt: string;
2150
+ requestedMaxVms: number;
2151
+ }
2152
+ export interface RequestOrgRegionRequest {
2153
+ /** name or id; "" = your default org (the one a list with no org shows; an API key's own org) */
2154
+ orgId?: string | undefined;
2155
+ region?: string | undefined;
2156
+ }
2157
+ export interface RequestOrgRegionResponse {
2158
+ /** "requested", or "enabled" when the org has it already */
2159
+ state: string;
2160
+ }
2161
+ export interface ResetRdpPasswordRequest {
2162
+ /** name or id */
2163
+ vmId?: string | undefined;
2164
+ }
2165
+ export interface ResetRdpPasswordResponse {
2166
+ password: string | Redacted.Redacted<string>;
2167
+ /** "Administrator" */
2168
+ user: string;
2169
+ }
2170
+ export interface ResizeVmRequest {
2171
+ /** VM name or id */
2172
+ vmId?: string | undefined;
2173
+ /** names a size class (0 = derive from memory_bytes) */
2174
+ vcpu?: number | undefined;
2175
+ /** names a size class (0 = derive from vcpu) */
2176
+ memoryBytes?: string | undefined;
2177
+ }
2178
+ export interface ResizeVmResponse {
2179
+ /** the size now persisted */
2180
+ vcpu: number;
2181
+ memoryBytes: string;
2182
+ /** the machine was running and was rebooted to apply it */
2183
+ rebooted: boolean;
2184
+ }
2185
+ export interface RestoreBackupRequest {
2186
+ vm?: string | undefined;
2187
+ backupId?: string | undefined;
2188
+ }
2189
+ export interface RestoreBackupResponse {
2190
+ }
2191
+ export interface RestoreCheckpointRequest {
2192
+ /** VM name or id */
2193
+ vm?: string | undefined;
2194
+ /** checkpoint name or id (must be ready and available) */
2195
+ name?: string | undefined;
2196
+ }
2197
+ export interface RestoreCheckpointResponse {
2198
+ }
2199
+ export interface ResumeVmRequest {
2200
+ vmId?: string | undefined;
2201
+ }
2202
+ export interface ResumeVmResponse {
2203
+ resumeUs: string;
2204
+ }
2205
+ export interface RevokeOrgInviteRequest {
2206
+ token?: string | Redacted.Redacted<string> | undefined;
2207
+ }
2208
+ export interface RevokeOrgInviteResponse {
2209
+ }
2210
+ export interface RevokeTokenRequest {
2211
+ jti?: string | undefined;
2212
+ }
2213
+ export interface RevokeTokenResponse {
2214
+ }
2215
+ export type AgentSendWhen = "AGENT_SEND_WHEN_UNSPECIFIED" | "AGENT_SEND_WHEN_NEXT" | "AGENT_SEND_WHEN_NOW";
2216
+ export interface SendToAgentRequest {
2217
+ /** machine name or id */
2218
+ vmId?: string | undefined;
2219
+ sessionId?: string | undefined;
2220
+ text?: string | undefined;
2221
+ when?: AgentSendWhen | (string & {}) | undefined;
2222
+ /** For a turn this message starts: interrupt it after this many seconds, or after this many agent steps: calls to the model for Claude Code, tool calls for Codex and Antigravity (which report no model calls). 0: no limit. They don't apply to a running turn the message joins. */
2223
+ timeoutSecs?: number | undefined;
2224
+ maxSteps?: number | undefined;
2225
+ /** Optional: an id of your choosing that makes retrying safe. A second message with the same `request_id` in this session (a retry after a network error, say) isn't sent again: it gets the first one's answer. The session remembers its last 1,000. Use a new one for every message you mean to send. The SDKs and CLIs make one up for each call they retry. */
2226
+ requestId?: string | undefined;
2227
+ }
2228
+ export interface SendToAgentResponse {
2229
+ /** The turn the message started or joined, or the one it will start. */
2230
+ turn: string;
2231
+ delivery: AgentDelivery;
2232
+ }
2233
+ export interface SetAutoHibernateTimeoutRequest {
2234
+ /** accepts VM name or id; resolved server-side */
2235
+ vmId?: string | undefined;
2236
+ /** 0 = disable */
2237
+ timeoutSecs?: number | undefined;
2238
+ }
2239
+ export interface SetAutoHibernateTimeoutResponse {
2240
+ }
2241
+ export interface SetAutoSuspendTimeoutRequest {
2242
+ /** accepts VM name or id; resolved server-side */
2243
+ vmId?: string | undefined;
2244
+ /** 0 = disable */
2245
+ timeoutSecs?: number | undefined;
2246
+ }
2247
+ export interface SetAutoSuspendTimeoutResponse {
2248
+ }
2249
+ export interface SetBackupScheduleRequest {
2250
+ /** VM name or id */
2251
+ vm?: string | undefined;
2252
+ /** "cron" | "interval" */
2253
+ scheduleKind?: string | undefined;
2254
+ /** cron expr, or interval seconds as text */
2255
+ scheduleValue?: string | undefined;
2256
+ retentionSecs?: number | undefined;
2257
+ }
2258
+ export interface SetBackupScheduleResponse {
2259
+ }
2260
+ export interface SetBotProtectionRequest {
2261
+ /** name or id */
2262
+ vmId?: string | undefined;
2263
+ /** Used only when `mode` is empty (a client that predates it): true = "on", false = "off". */
2264
+ enabled?: boolean | undefined;
2265
+ /** "on" | "sleep_only" | "off". See GetVmResponse.bot_protection_mode. */
2266
+ mode?: string | undefined;
2267
+ }
2268
+ export interface SetBotProtectionResponse {
2269
+ }
2270
+ export interface SetDeleteAfterRequest {
2271
+ /** VM name or id */
2272
+ vmId?: string | undefined;
2273
+ /** 0 = not a duration */
2274
+ deleteAfterSecs?: string | undefined;
2275
+ /** empty = not a cron expression */
2276
+ deleteAfterCron?: string | undefined;
2277
+ }
2278
+ export interface SetDeleteAfterResponse {
2279
+ /** the new deadline, wall-clock unix ms; 0 = cleared */
2280
+ deleteAtMs: string;
2281
+ }
2282
+ export interface SetIdleIgnoreOutboundRequest {
2283
+ /** name or id */
2284
+ vmId?: string | undefined;
2285
+ enabled?: boolean | undefined;
2286
+ }
2287
+ export interface SetIdleIgnoreOutboundResponse {
2288
+ }
2289
+ export interface SetOrgBackupsDefaultRequest {
2290
+ orgId?: string | undefined;
2291
+ /** Both absent clears the org default (new VMs get no schedule). Present sets both together -- period/retention only make sense as a pair. */
2292
+ periodSecs?: number | undefined;
2293
+ retentionSecs?: number | undefined;
2294
+ }
2295
+ export interface SetOrgBackupsDefaultResponse {
2296
+ /** false = cleared; remaining fields are zero */
2297
+ enabled: boolean;
2298
+ periodSecs: number;
2299
+ retentionSecs: number;
2300
+ }
2301
+ export interface SetOrgBotProtectionDefaultRequest {
2302
+ /** name or id; "" = your home org */
2303
+ orgId?: string | undefined;
2304
+ /** "on" | "sleep_only" | "off", see GetVmResponse.bot_protection_mode. "" clears the org default: new machines then follow the cluster's setting again, and existing machines keep theirs. */
2305
+ mode?: string | undefined;
2306
+ /** By default the mode is also set on the org's existing machines and snapshots the caller may manage (their own and the org's shared ones), except machines that are "off". True leaves existing machines as they are: only machines created from now on start with it. */
2307
+ newMachinesOnly?: boolean | undefined;
2308
+ }
2309
+ export interface SetOrgBotProtectionDefaultResponse {
2310
+ /** What applying it to existing machines did; all 0 with `new_machines_only` or a clear. */
2311
+ machinesChanged: number;
2312
+ /** snapshots whose mode changed */
2313
+ snapshotsChanged: number;
2314
+ /** machines left alone because they are "off" */
2315
+ machinesOff: number;
2316
+ /** other members' private machines, left alone */
2317
+ machinesSkipped: number;
2318
+ }
2319
+ export interface SetOrgDomainRequest {
2320
+ orgId?: string | undefined;
2321
+ /** bare apex, e.g. "preview.mysaas.com" (wildcard implied) */
2322
+ domain?: string | undefined;
2323
+ /** "" = the region this endpoint serves */
2324
+ region?: string | undefined;
2325
+ }
2326
+ export interface SetOrgDomainResponse {
2327
+ domain?: OrgDomainInfo | undefined;
2328
+ }
2329
+ export interface SetOrgIdleIgnoreOutboundDefaultRequest {
2330
+ /** name or id; "" = your home org */
2331
+ orgId?: string | undefined;
2332
+ /** Absent clears the org default: new machines then follow the platform's setting again, and existing machines keep theirs. Present, true or false, is the default. */
2333
+ enabled?: boolean | undefined;
2334
+ /** Older servers changed existing machines only when this was true. They now change unless `new_machines_only`, so this changes nothing; it may not be combined with `new_machines_only`. A client that talks to servers with and without `new_machines_only` sends it as `!new_machines_only`. */
2335
+ applyExisting?: boolean | undefined;
2336
+ /** By default `enabled` is also set on the org's existing machines and snapshots the caller may manage (their own and the org's shared ones). Another member's private machine is left as it is. Running machines pick it up without a restart. True leaves existing machines as they are: only machines created from now on start with it. */
2337
+ newMachinesOnly?: boolean | undefined;
2338
+ }
2339
+ export interface SetOrgIdleIgnoreOutboundDefaultResponse {
2340
+ /** What applying it to existing machines did; all 0 with `new_machines_only` or a clear. */
2341
+ machinesChanged: number;
2342
+ /** other members' private machines, left alone */
2343
+ machinesSkipped: number;
2344
+ /** snapshots whose value changed */
2345
+ snapshotsChanged: number;
2346
+ }
2347
+ export interface SetOrgMachineDefaultsRequest {
2348
+ /** name or id; "" = your default org (the one a list with no org shows; an API key's own org) */
2349
+ orgId?: string | undefined;
2350
+ /** Both absent (or 0) clears the org default (default machines size at the org quota). Otherwise names a size class, like a create or resize: one dimension snaps to its class (vcpu 1 = 1 vCPU / 4 GiB); must be within the org quota ceiling and at or above the boot floor (512 MiB, 1 vCPU). */
2351
+ vcpu?: number | undefined;
2352
+ memoryBytes?: string | undefined;
2353
+ /** The org's default region for new machines and disks: one of its enabled regions, or "" to clear it. Absent leaves it as it is. */
2354
+ region?: string | undefined;
2355
+ }
2356
+ export interface SetOrgMachineDefaultsResponse {
2357
+ }
2358
+ export interface SetOrgMemberRoleRequest {
2359
+ /** name or id; "" = your home org */
2360
+ orgId?: string | undefined;
2361
+ userId?: string | undefined;
2362
+ /** "admin" | "member" */
2363
+ role?: string | undefined;
2364
+ }
2365
+ export interface SetOrgMemberRoleResponse {
2366
+ }
2367
+ export interface SetOrgRdpDefaultRequest {
2368
+ /** name or id; "" = your home org */
2369
+ orgId?: string | undefined;
2370
+ /** Absent clears the org default: new machines then have RDP on. Present is the default. */
2371
+ enabled?: boolean | undefined;
2372
+ /** By default `enabled` is also set on the org's existing machines and snapshots the caller may manage. True leaves existing machines as they are. */
2373
+ newMachinesOnly?: boolean | undefined;
2374
+ }
2375
+ export interface SetOrgRdpDefaultResponse {
2376
+ machinesChanged: number;
2377
+ machinesSkipped: number;
2378
+ snapshotsChanged: number;
2379
+ }
2380
+ export interface SetOrgSnapshotVersionsKeepRequest {
2381
+ /** name or id; "" = your default org (the one a list with no org shows; an API key's own org) */
2382
+ orgId?: string | undefined;
2383
+ /** How many versions of each snapshot to keep, the current one included: 1 to `max_keep` (GetOrgSnapshotVersionsKeep). Absent clears the org's setting: its snapshots follow the platform's again. */
2384
+ keep?: number | undefined;
2385
+ /** Check the request and count what it would delete, and change nothing. Ask this before lowering the count or clearing it: the versions beyond the new count are deleted for good. */
2386
+ dryRun?: boolean | undefined;
2387
+ }
2388
+ export interface SetOrgSnapshotVersionsKeepResponse {
2389
+ /** The org's setting after this call (with `dry_run`: as it would be). */
2390
+ set: boolean;
2391
+ /** how many versions of its snapshots are kept */
2392
+ keep: number;
2393
+ /** the platform's count, which an org without a setting follows */
2394
+ platformKeep: number;
2395
+ /** the most an org may set */
2396
+ maxKeep: number;
2397
+ /** How many versions of the org's snapshots are deleted because of this change (older ones, and staged ones beyond the count), on the platform's next cleanup pass (within a minute). With `dry_run`, how many would be. */
2398
+ versionsDeleted: number;
2399
+ }
2400
+ export interface SetProxyPortRequest {
2401
+ name?: string | undefined;
2402
+ /** use `vm` */
2403
+ vmName?: string | undefined;
2404
+ /** A concrete port number, or the literal string "auto" (default proxy only) to have the port discovered from the guest's own `listen(2)` calls instead of pinning one. "auto" re-detects for the machine's whole lifetime, not just at boot -- see `MachineProxies.setPort` / `Proxies.set_port` in the SDKs for the full semantics. */
2405
+ port?: string | undefined;
2406
+ /** machine id OR name */
2407
+ vm?: string | undefined;
2408
+ }
2409
+ export interface SetProxyPortResponse {
2410
+ }
2411
+ export interface SetRdpRequest {
2412
+ /** name or id */
2413
+ vmId?: string | undefined;
2414
+ enabled?: boolean | undefined;
2415
+ }
2416
+ export interface SetRdpResponse {
2417
+ }
2418
+ export interface SetSecretScopeRequest {
2419
+ org?: string | undefined;
2420
+ name?: string | undefined;
2421
+ from?: string | undefined;
2422
+ to?: string | undefined;
2423
+ }
2424
+ export interface SetSecretScopeResponse {
2425
+ message: string;
2426
+ }
2427
+ export interface SetSnapshotCurrentVersionRequest {
2428
+ /** Snapshot name or id, or `name@4` to name the version too. */
2429
+ snapshot?: string | undefined;
2430
+ /** org context (name or id); empty = active/anchor */
2431
+ org?: string | undefined;
2432
+ /** The version to make current, when `snapshot` names none. Naming two different ones is INVALID_ARGUMENT, and so is naming none. */
2433
+ version?: string | undefined;
2434
+ }
2435
+ export interface SetSnapshotCurrentVersionResponse {
2436
+ snapshotId: string;
2437
+ name: string;
2438
+ /** the current version now */
2439
+ version: string;
2440
+ previousVersion: string;
2441
+ /** false when it was the current version already */
2442
+ changed: boolean;
2443
+ }
2444
+ export interface SetSshRequest {
2445
+ /** name or id */
2446
+ vmId?: string | undefined;
2447
+ enabled?: boolean | undefined;
2448
+ }
2449
+ export interface SetSshResponse {
2450
+ }
2451
+ export interface SetTeamDefaultSnapshotRequest {
2452
+ teamId?: string | undefined;
2453
+ /** "" clears the default. Must be a snapshot the caller can access AND shared (see the RPC comment above) -- an unshared snapshot is refused. */
2454
+ snapshotId?: string | undefined;
2455
+ }
2456
+ export interface SetTeamDefaultSnapshotResponse {
2457
+ }
2458
+ export interface SetTeamMemberRoleRequest {
2459
+ teamId?: string | undefined;
2460
+ userId?: string | undefined;
2461
+ /** "admin" | "member" */
2462
+ role?: string | undefined;
2463
+ }
2464
+ export interface SetTeamMemberRoleResponse {
2465
+ }
2466
+ export interface SetVarRequest {
2467
+ org?: string | undefined;
2468
+ kind?: string | undefined;
2469
+ name?: string | undefined;
2470
+ value?: string | Redacted.Redacted<string> | undefined;
2471
+ scope?: string | undefined;
2472
+ domains?: StringList | undefined;
2473
+ replaceIn?: StringList | undefined;
2474
+ }
2475
+ export interface SetVarResponse {
2476
+ message: string;
2477
+ }
2478
+ export interface SetVmEgressAllowRequest {
2479
+ vm?: string | undefined;
2480
+ entries?: StringList | undefined;
2481
+ }
2482
+ export interface SetVmEgressAllowResponse {
2483
+ entries: StringList;
2484
+ }
2485
+ export interface SetVmNetworksRequest {
2486
+ vmId?: string | undefined;
2487
+ networks?: StringList | undefined;
2488
+ }
2489
+ export interface SetVmNetworksResponse {
2490
+ networks: StringList;
2491
+ }
2492
+ export interface ShareVmRequest {
2493
+ /** VM name or id (must be owned by the caller) */
2494
+ vmId?: string | undefined;
2495
+ }
2496
+ export interface ShareVmResponse {
2497
+ }
2498
+ export interface StartAgentLoginRequest {
2499
+ /** Instead of `org`, a machine of yours (name or id): the sign-in is kept in its organization, and refused when that machine would never get it (shared, isolated, another member's). */
2500
+ vmId?: string | undefined;
2501
+ /** `claude` (also `claude-code`, the agent's id in agent sessions), `codex`, or `antigravity` (also `agy`). */
2502
+ harness?: string | undefined;
2503
+ /** The organization to keep the sign-in in (name or id). Empty, with no `vm_id`: your default organization, or the one your API key is for. */
2504
+ org?: string | undefined;
2505
+ }
2506
+ export type AgentLoginMethod = "AGENT_LOGIN_METHOD_UNSPECIFIED" | "AGENT_LOGIN_METHOD_PASTE_CODE" | "AGENT_LOGIN_METHOD_DEVICE_CODE";
2507
+ export interface StartAgentLoginResponse {
2508
+ method: AgentLoginMethod;
2509
+ /** where to sign in */
2510
+ url: string;
2511
+ /** DEVICE_CODE: what to enter at `url` */
2512
+ userCode: string;
2513
+ /** DEVICE_CODE: pass it to CompleteAgentLogin */
2514
+ handle: string;
2515
+ /** DEVICE_CODE: when `user_code` stops working */
2516
+ expiresAtMs: string;
2517
+ /** DEVICE_CODE: how often to ask */
2518
+ intervalSecs: number;
2519
+ }
2520
+ export interface StartAgentSessionRequest {
2521
+ /** machine name or id */
2522
+ vmId?: string | undefined;
2523
+ /** `claude-code`, `codex` or `antigravity` (ListHarnesses). */
2524
+ harness?: string | undefined;
2525
+ /** Empty: the agent's own default. */
2526
+ model?: string | undefined;
2527
+ /** The directory the agent works in. Empty: the home directory of the machine's user. */
2528
+ cwd?: string | undefined;
2529
+ /** Added to the agent's own system prompt, never replacing it. */
2530
+ instructions?: string | undefined;
2531
+ /** Environment variables for this session's agent, on top of the machine's own variables and secrets. */
2532
+ env?: StringMap | undefined;
2533
+ /** Optional: an id of your choosing that makes retrying safe. A second start with the same `request_id` on this machine (a retry after a network error, say) returns the session the first one started instead of starting another. Use a new one for every session you mean to start. The SDKs and CLIs make one up for each call they retry. */
2534
+ requestId?: string | undefined;
2535
+ /** How hard the agent thinks: one of the harness's `efforts`. Empty: the agent's own default. */
2536
+ effort?: string | undefined;
2537
+ }
2538
+ export interface StartAgentSessionResponse {
2539
+ id: string;
2540
+ /** the machine's id */
2541
+ vmId: string;
2542
+ harness: string;
2543
+ /** The agent version this session runs. It doesn't change during the session, even if the machine's agent is updated meanwhile. */
2544
+ harnessVersion: string;
2545
+ model: string;
2546
+ cwd: string;
2547
+ state: AgentSessionState;
2548
+ /** The turn running now, or the last one; 0 before the first. */
2549
+ turn: string;
2550
+ /** Messages waiting for the running turn to end, each its own turn. */
2551
+ queued: number;
2552
+ /** The latest event's `seq`; 0 before the first. */
2553
+ lastSeq: string;
2554
+ createdAtMs: string;
2555
+ /** For a failed session: what went wrong and what to do about it. */
2556
+ error: string;
2557
+ /** The reasoning effort it was started with; empty: the agent's default. */
2558
+ effort: string;
2559
+ }
2560
+ export interface StartVmRequest {
2561
+ vmId?: string | undefined;
2562
+ }
2563
+ export interface StartVmResponse {
2564
+ }
2565
+ export interface StopVmRequest {
2566
+ vmId?: string | undefined;
2567
+ }
2568
+ export interface StopVmResponse {
2569
+ }
2570
+ export interface StreamLogsRequest {
2571
+ vmId?: string | undefined;
2572
+ follow?: boolean | undefined;
2573
+ }
2574
+ export interface LogChunk {
2575
+ data: string;
2576
+ }
2577
+ export type LogChunkList = Array<LogChunk>;
2578
+ export interface StreamLogsStream {
2579
+ /** Every message of the server stream, in order. The stream ends when the server ends it (bound it with the request's timeout). */
2580
+ items: LogChunkList;
2581
+ }
2582
+ export interface SuggestVmNameRequest {
2583
+ }
2584
+ export interface SuggestVmNameResponse {
2585
+ name: string;
2586
+ }
2587
+ export interface SuspendVmRequest {
2588
+ vmId?: string | undefined;
2589
+ }
2590
+ export interface SuspendVmResponse {
2591
+ suspendUs: string;
2592
+ }
2593
+ export interface TriggerBackupRequest {
2594
+ /** VM name or id */
2595
+ vm?: string | undefined;
2596
+ }
2597
+ export interface TriggerBackupResponse {
2598
+ /** id of the freshly-queued 'pending' backup */
2599
+ backupId: string;
2600
+ }
2601
+ export interface UnarchiveSnapshotRequest {
2602
+ /** snapshot name or id */
2603
+ name?: string | undefined;
2604
+ /** org context (name or id); empty = active/anchor */
2605
+ org?: string | undefined;
2606
+ }
2607
+ export interface UnarchiveSnapshotResponse {
2608
+ /** The snapshot as this call left it: `storage` is "unarchiving" when a restore runs, "local" when there was nothing to restore. */
2609
+ snapshot?: SnapshotInfo | undefined;
2610
+ /** What was done and how to follow it, as a sentence for a person. */
2611
+ message: string;
2612
+ }
2613
+ export interface UnexposePortRequest {
2614
+ /** use `vm` */
2615
+ vmId?: string | undefined;
2616
+ vmPort?: number | undefined;
2617
+ /** machine id OR name */
2618
+ vm?: string | undefined;
2619
+ }
2620
+ export interface UnexposePortResponse {
2621
+ forward?: ExposePortResponse2 | undefined;
2622
+ }
2623
+ export interface UnshareVmRequest {
2624
+ /** VM name or id (must be owned by the caller) */
2625
+ vmId?: string | undefined;
2626
+ }
2627
+ export interface UnshareVmResponse {
2628
+ }
2629
+ export interface UpdateMachineSpecRequest {
2630
+ /** Machine name or id. */
2631
+ vm?: string | undefined;
2632
+ /** The JSON Merge Patch document, e.g. `{"labels": {"team": "ops"}}`. */
2633
+ patch?: string | undefined;
2634
+ /** Return the diff and change nothing. */
2635
+ dryRun?: boolean | undefined;
2636
+ /** Allow a change that reboots the machine. */
2637
+ reboot?: boolean | undefined;
2638
+ /** Run the machine's packages again from the first failed one: it and every command after it that didn't finish go back to pending and run now (or when the machine next runs), in order, before any the patch adds. Allowed with an empty patch (`{}`). Refused on a fork. With no failed command it changes nothing. Skipped commands stay skipped, and a failed command the patch removes is skipped, not run again. */
2639
+ retryPackages?: boolean | undefined;
2640
+ /** The spec the caller read (GetVmResponse.spec), in its JSON form (what the SDKs print, e.g. `{"version": 1, "networks": ["eng"]}`). When the machine's spec is no longer that one, nothing is applied and the call fails with aborted: read the spec again and make the change on it. Empty: no check (a patch that only names what it changes is safe to send anyway; one built from the spec it read is not). */
2641
+ expectedSpec?: string | undefined;
2642
+ }
2643
+ /** One changed field of a machine spec (UpdateMachineSpecResponse.changes). */
2644
+ export interface MachineSpecChange {
2645
+ /** The spec field: "labels", "size", "packages", ... */
2646
+ field: string;
2647
+ /** "live", "reboot_recommended", "reboot" or "refused" (see UpdateMachineSpecRequest). */
2648
+ apply: string;
2649
+ /** Map keys, list entries or commands added and removed. */
2650
+ added: StringList;
2651
+ removed: StringList;
2652
+ /** Map keys whose value changes. Values are never shown: env values stay in the spec, secrets are only names. */
2653
+ changed: StringList;
2654
+ /** Scalars (`size`, `base`, `assignTo`, `isolated`): before and after, empty when unset. */
2655
+ before: string;
2656
+ after: string;
2657
+ /** What happens on the machine, in one sentence. */
2658
+ note: string;
2659
+ /** What the change won't do: e.g. a removed package isn't undone. */
2660
+ warnings: StringList;
2661
+ /** `packages`: commands the change skips (removed from the spec before they finished: they never run, and stop nothing) and commands it puts back to pending (skipped, and listed again). */
2662
+ skipped: StringList;
2663
+ unskipped: StringList;
2664
+ }
2665
+ export type MachineSpecChangeList = Array<MachineSpecChange>;
2666
+ export interface UpdateMachineSpecResponse {
2667
+ /** What the patch changes, field by field in the spec's order. Empty when it changes nothing, except that `retry_packages` always shows as a change of "packages" (whose note says when there is nothing to retry). */
2668
+ changes: MachineSpecChangeList;
2669
+ /** A change applies only through a reboot (see `reboot` on the request). */
2670
+ rebootRequired: boolean;
2671
+ /** A change reaches running processes only once they restart. */
2672
+ rebootRecommended: boolean;
2673
+ /** The machine's spec after the patch (for a dry run, what it would be). */
2674
+ spec?: MachineSpec | undefined;
2675
+ /** False for a dry run. */
2676
+ applied: boolean;
2677
+ /** The machine was rebooted to apply the patch. */
2678
+ rebooted: boolean;
2679
+ /** The resize failed after the rest of the patch applied: its error. Then `applied` is true, `rebooted` false, and `spec` is the spec stored now, with the size the machine has. Empty otherwise. */
2680
+ resizeError: string;
2681
+ }
2682
+ export interface UpdateVmLabelsRequest {
2683
+ vm?: string | undefined;
2684
+ set?: StringMap | undefined;
2685
+ remove?: StringList | undefined;
2686
+ replaceAll?: boolean | undefined;
2687
+ }
2688
+ export interface UpdateVmLabelsResponse {
2689
+ labels: StringMap;
2690
+ }
2691
+ export interface UploadFileRequest {
2692
+ /** VM name or id */
2693
+ vmId?: string | undefined;
2694
+ path?: string | undefined;
2695
+ data?: string | undefined;
2696
+ }
2697
+ export interface UploadFileResponse {
2698
+ /** Bytes the server confirmed it wrote (verified via stat after upload). Older servers that don't perform verification leave this as 0; CLIs should fall back to the local file size in that case. */
2699
+ bytesWritten: string;
2700
+ }
2701
+ export interface WakeVmRequest {
2702
+ vmId?: string | undefined;
2703
+ }
2704
+ export interface WakeVmResponse {
2705
+ }
2706
+ export interface WhoamiRequest {
2707
+ }
2708
+ export interface WhoamiResponse {
2709
+ userId: string;
2710
+ pubkeyFingerprints: StringList;
2711
+ /** Field 3 removed (default_network_id) -- no RPC accepts a network id, so it was readable and unusable. Old clients decode it as "". */
2712
+ billing?: BillingInfo | undefined;
2713
+ /** Human-friendly label (identity handle / display name) to show instead of the opaque user_id. Provider-agnostic; empty falls back to user_id. */
2714
+ displayName: string;
2715
+ }
2716
+ export type AddCustomDomainError = BoxdOpError;
2717
+ /** Per-VM custom domains (one domain -> one VM). AddCustomDomain creates a `pending` row and a leader-gated control loop immediately starts verifying DNS and issuing certs, then flips it `active`; `last_error` carries the reason while pending. Callers are expected to have already pointed DNS at the machine before calling this -- checking too early risks a public resolver negative-caching the apex before the records exist. Caller must own (or be a member of the org of) the target VM. */
2718
+ export declare const addCustomDomain: API.OperationMethod<AddCustomDomainRequest & MaxMessageBytesInput, AddCustomDomainResponse, AddCustomDomainError, BoxdOpContext>;
2719
+ export type AddTeamMemberError = BoxdOpError;
2720
+ export declare const addTeamMember: API.OperationMethod<AddTeamMemberRequest & MaxMessageBytesInput, AddTeamMemberResponse, AddTeamMemberError, BoxdOpContext>;
2721
+ export type AgentEventsError = BoxdOpError;
2722
+ /** Streams a session's events in order, starting after `after_seq` (0: from its first event). With `follow` the stream stays open and carries new events as they happen; without it, it ends after the latest one. */
2723
+ export declare const agentEvents: API.StreamingOperationMethod<AgentEventsRequest & MaxMessageBytesInput, AgentEventsStream, AgentEventsError, BoxdOpContext>;
2724
+ export type AttachDiskError = BoxdOpError;
2725
+ export declare const attachDisk: API.OperationMethod<AttachDiskRequest & MaxMessageBytesInput, AttachDiskResponse, AttachDiskError, BoxdOpContext>;
2726
+ export type ClearBackupScheduleError = BoxdOpError;
2727
+ export declare const clearBackupSchedule: API.OperationMethod<ClearBackupScheduleRequest & MaxMessageBytesInput, ClearBackupScheduleResponse, ClearBackupScheduleError, BoxdOpContext>;
2728
+ export type ClearOrgDomainError = BoxdOpError;
2729
+ export declare const clearOrgDomain: API.OperationMethod<ClearOrgDomainRequest & MaxMessageBytesInput, ClearOrgDomainResponse, ClearOrgDomainError, BoxdOpContext>;
2730
+ export type CloseAgentSessionError = BoxdOpError;
2731
+ /** Ends a session: interrupts its running turn, drops the messages waiting for it and stops its agent. Its events stay readable. */
2732
+ export declare const closeAgentSession: API.OperationMethod<CloseAgentSessionRequest & MaxMessageBytesInput, CloseAgentSessionResponse, CloseAgentSessionError, BoxdOpContext>;
2733
+ export type CompleteAgentLoginError = BoxdOpError;
2734
+ export declare const completeAgentLogin: API.OperationMethod<CompleteAgentLoginRequest & MaxMessageBytesInput, CompleteAgentLoginResponse, CompleteAgentLoginError, BoxdOpContext>;
2735
+ export type ComputerActionError = BoxdOpError;
2736
+ /** Computer use: screenshots, the mouse and the keyboard on the machine's desktop (the one the console's Desktop view shows), for agents such as Claude computer use and OpenAI's computer-use model. Each call does one action and can return a screenshot taken after it, so one step of an agent loop is one round trip. The desktop is started on demand, as for DesktopTunnel. Coordinates are screen pixels from the top left; the response carries the screen's size. A screenshot scaled down with `ComputerScreenshotOptions.max_width`/`max_height` is smaller than the screen, and the caller scales the coordinates it gets back up. */
2737
+ export declare const computerAction: API.OperationMethod<ComputerActionRequest & MaxMessageBytesInput, ComputerActionResponse, ComputerActionError, BoxdOpContext>;
2738
+ export type CopyPathError = BoxdOpError;
2739
+ /** Copy (mirrors `cp -r`) -- RenamePath already covers a guest-side Cut, since a move is exactly what "cut then paste" means. */
2740
+ export declare const copyPath: API.OperationMethod<CopyPathRequest & MaxMessageBytesInput, CopyPathResponse, CopyPathError, BoxdOpContext>;
2741
+ export type CreateApiKeyError = BoxdOpError;
2742
+ /** API Keys */
2743
+ export declare const createApiKey: API.OperationMethod<CreateApiKeyRequest & MaxMessageBytesInput, CreateApiKeyResponse, CreateApiKeyError, BoxdOpContext>;
2744
+ export type CreateBillingPortalSessionError = BoxdOpError;
2745
+ export declare const createBillingPortalSession: API.OperationMethod<CreateBillingPortalSessionRequest & MaxMessageBytesInput, CreateBillingPortalSessionResponse, CreateBillingPortalSessionError, BoxdOpContext>;
2746
+ export type CreateCheckoutSessionError = BoxdOpError;
2747
+ export declare const createCheckoutSession: API.OperationMethod<CreateCheckoutSessionRequest & MaxMessageBytesInput, CreateCheckoutSessionResponse, CreateCheckoutSessionError, BoxdOpContext>;
2748
+ export type CreateCheckpointError = BoxdOpError;
2749
+ /** Checkpoints: per-VM, worker-local full captures (state+memory+disk) with warm restore in place. Same artifacts as a snapshot, but never replicated and never an account-level image -- they live and die with the VM. A Windows machine's checkpoint is its disk alone, restored in place by stopping the machine, putting the disk back and booting it cold. */
2750
+ export declare const createCheckpoint: API.OperationMethod<CreateCheckpointRequest & MaxMessageBytesInput, CreateCheckpointResponse, CreateCheckpointError, BoxdOpContext>;
2751
+ export type CreateDiskError = BoxdOpError;
2752
+ /** Disks */
2753
+ export declare const createDisk: API.OperationMethod<CreateDiskRequest & MaxMessageBytesInput, CreateDiskResponse, CreateDiskError, BoxdOpContext>;
2754
+ export type CreateMachineTokenError = BoxdOpError;
2755
+ /** A short-lived token that acts on the named machines only: run commands, move files, drive their lifecycle and settings, everything but delete them. It cannot create, fork or delete machines, change networks, egress or secrets, or reach any other machine or account setting. Minted with an interactive login or an API key (never from inside a machine); a token minted with an API key stops working when that key is deleted, and a stream it opened ends when it expires. The API enforces this. A command the token runs inside a machine has what any process in that machine has: on a machine that is not isolated, that includes the machine's own boxd access, which reaches the rest of the org. For code you don't trust, use isolated machines. */
2756
+ export declare const createMachineToken: API.OperationMethod<CreateMachineTokenRequest & MaxMessageBytesInput, CreateMachineTokenResponse, CreateMachineTokenError, BoxdOpContext>;
2757
+ export type CreateNetworkError = BoxdOpError;
2758
+ export declare const createNetwork: API.OperationMethod<CreateNetworkRequest & MaxMessageBytesInput, CreateNetworkResponse, CreateNetworkError, BoxdOpContext>;
2759
+ export type CreateOrgError = BoxdOpError;
2760
+ /** Org creation, roster, and membership (self-serve, same business rules as the console). Any signed-in user may create an org (becomes its owner+admin); invite/revoke/remove/ set-role require org admin. Credential fence: an API key or in-VM token only ever acts on the org it is fenced to ("" resolves to it, any other org is refused); an in-VM token can read a roster but never change one; an `org`-kind (userless) credential has no org/team verbs at all. Creating an org, inviting an admin, and promoting to admin need an interactive session -- no ambient credential may confer permanent standing. */
2761
+ export declare const createOrg: API.OperationMethod<CreateOrgRequest & MaxMessageBytesInput, CreateOrgResponse, CreateOrgError, BoxdOpContext>;
2762
+ export type CreateProxyError = BoxdOpError;
2763
+ export declare const createProxy: API.OperationMethod<CreateProxyRequest & MaxMessageBytesInput, CreateProxyResponse, CreateProxyError, BoxdOpContext>;
2764
+ export type CreateSnapshotError = BoxdOpError;
2765
+ /** Templates are managed by the platform and used only as the fast default path of `new` when a prepped template matches the image + size -- there is no public API to create/list/delete templates or create a VM from a specific one. Snapshots: user/org point-in-time VM captures (memory + disk), replicated across a few workers and versioned (latest-only). */
2766
+ export declare const createSnapshot: API.OperationMethod<CreateSnapshotRequest & MaxMessageBytesInput, CreateSnapshotResponse, CreateSnapshotError, BoxdOpContext>;
2767
+ export type CreateStagedSnapshotError = BoxdOpError;
2768
+ /** A staged save: CreateSnapshot, but the version is saved without becoming the snapshot's current one. Machines created from the snapshot keep getting the current version; this one is created from by naming it (CreateVmFromSnapshot's `version`, or `name@7`), and SetSnapshotCurrentVersion makes it current. ListSnapshotVersions shows it "saving", then "ready" with `staged` set. The snapshot must already have a version: FAILED_PRECONDITION for the first save of a name. A snapshot keeps as many staged versions as the org keeps versions (GetOrgSnapshotVersionsKeep): one more replaces the oldest staged one. A call of its own, not a field of CreateSnapshot, so that a server from before staged saves refuses it (UNIMPLEMENTED) instead of saving a version that becomes current. */
2769
+ export declare const createStagedSnapshot: API.OperationMethod<CreateStagedSnapshotRequest & MaxMessageBytesInput, CreateStagedSnapshotResponse, CreateStagedSnapshotError, BoxdOpContext>;
2770
+ export type CreateTeamError = BoxdOpError;
2771
+ export declare const createTeam: API.OperationMethod<CreateTeamRequest & MaxMessageBytesInput, CreateTeamResponse, CreateTeamError, BoxdOpContext>;
2772
+ export type CreateTokenError = BoxdOpError;
2773
+ export declare const createToken: API.OperationMethod<CreateTokenRequest & MaxMessageBytesInput, CreateTokenResponse, CreateTokenError, BoxdOpContext>;
2774
+ export type CreateVmError = BoxdOpError;
2775
+ export declare const createVm: API.OperationMethod<CreateVmRequest & MaxMessageBytesInput, CreateVmResponse, CreateVmError, BoxdOpContext>;
2776
+ export type CreateVmFromSnapshotError = BoxdOpError;
2777
+ export declare const createVmFromSnapshot: API.OperationMethod<CreateVmFromSnapshotRequest & MaxMessageBytesInput, CreateVmFromSnapshotResponse, CreateVmFromSnapshotError, BoxdOpContext>;
2778
+ export type DeleteAgentLoginError = BoxdOpError;
2779
+ /** Forget a sign-in. It isn't revoked at Anthropic, OpenAI or Google; do that from your account there. */
2780
+ export declare const deleteAgentLogin: API.OperationMethod<DeleteAgentLoginRequest & MaxMessageBytesInput, DeleteAgentLoginResponse, DeleteAgentLoginError, BoxdOpContext>;
2781
+ export type DeleteApiKeyError = BoxdOpError;
2782
+ export declare const deleteApiKey: API.OperationMethod<DeleteApiKeyRequest & MaxMessageBytesInput, DeleteApiKeyResponse, DeleteApiKeyError, BoxdOpContext>;
2783
+ export type DeleteBackupError = BoxdOpError;
2784
+ /** Manual deletion of a single backup by id. Refused for a backup still being captured or one a newer dedup pointer depends on. */
2785
+ export declare const deleteBackup: API.OperationMethod<DeleteBackupRequest & MaxMessageBytesInput, DeleteBackupResponse, DeleteBackupError, BoxdOpContext>;
2786
+ export type DeleteCheckpointError = BoxdOpError;
2787
+ export declare const deleteCheckpoint: API.OperationMethod<DeleteCheckpointRequest & MaxMessageBytesInput, DeleteCheckpointResponse, DeleteCheckpointError, BoxdOpContext>;
2788
+ export type DeletePathError = BoxdOpError;
2789
+ export declare const deletePath: API.OperationMethod<DeletePathRequest & MaxMessageBytesInput, DeletePathResponse, DeletePathError, BoxdOpContext>;
2790
+ export type DeleteProxyError = BoxdOpError;
2791
+ export declare const deleteProxy: API.OperationMethod<DeleteProxyRequest & MaxMessageBytesInput, DeleteProxyResponse, DeleteProxyError, BoxdOpContext>;
2792
+ export type DeleteSnapshotError = BoxdOpError;
2793
+ export declare const deleteSnapshot: API.OperationMethod<DeleteSnapshotRequest & MaxMessageBytesInput, DeleteSnapshotResponse, DeleteSnapshotError, BoxdOpContext>;
2794
+ export type DestroyDiskError = BoxdOpError;
2795
+ export declare const destroyDisk: API.OperationMethod<DestroyDiskRequest & MaxMessageBytesInput, DestroyDiskResponse, DestroyDiskError, BoxdOpContext>;
2796
+ export type DestroyTeamError = BoxdOpError;
2797
+ export declare const destroyTeam: API.OperationMethod<DestroyTeamRequest & MaxMessageBytesInput, DestroyTeamResponse, DestroyTeamError, BoxdOpContext>;
2798
+ export type DestroyVmError = BoxdOpError;
2799
+ export declare const destroyVm: API.OperationMethod<DestroyVmRequest & MaxMessageBytesInput, DestroyVmResponse, DestroyVmError, BoxdOpContext>;
2800
+ export type DetachDiskError = BoxdOpError;
2801
+ export declare const detachDisk: API.OperationMethod<DetachDiskRequest & MaxMessageBytesInput, DetachDiskResponse, DetachDiskError, BoxdOpContext>;
2802
+ export type DownloadFileError = BoxdOpError;
2803
+ export declare const downloadFile: API.OperationMethod<DownloadFileRequest & MaxMessageBytesInput, DownloadFileResponse, DownloadFileError, BoxdOpContext>;
2804
+ export type DownloadFileStreamError = BoxdOpError;
2805
+ /** Streaming download: the sibling of UploadFileStream, lifting the 4 MiB single-message gRPC cap of DownloadFile. The first response chunk carries `total_size`; every chunk (the first included) carries a slice of the file's bytes in order. The client concatenates them and MUST verify the received byte count against `total_size` -- a short stream is an error, not a truncated file. */
2806
+ export declare const downloadFileStream: API.StreamingOperationMethod<DownloadFileStreamRequest & MaxMessageBytesInput, DownloadFileStreamStream, DownloadFileStreamError, BoxdOpContext>;
2807
+ export type ExposePortError = BoxdOpError;
2808
+ export declare const exposePort: API.OperationMethod<ExposePortRequest & MaxMessageBytesInput, ExposePortResponse, ExposePortError, BoxdOpContext>;
2809
+ export type FindElsewhereError = BoxdOpError;
2810
+ /** Where else a name is: the regions where your orgs have a machine, snapshot, disk or template of that name, and close names (one or two letters off). Answers "not found here" with where to look instead. */
2811
+ export declare const findElsewhere: API.OperationMethod<FindElsewhereRequest & MaxMessageBytesInput, FindElsewhereResponse, FindElsewhereError, BoxdOpContext>;
2812
+ export type ForkVmError = BoxdOpError;
2813
+ export declare const forkVm: API.OperationMethod<ForkVmRequest & MaxMessageBytesInput, ForkVmResponse, ForkVmError, BoxdOpContext>;
2814
+ export type FsListError = BoxdOpError;
2815
+ /** FsList streams a directory's entries, one level, in batches. There is no cap on how many it returns. */
2816
+ export declare const fsList: API.StreamingOperationMethod<FsListRequest & MaxMessageBytesInput, FsListStream, FsListError, BoxdOpContext>;
2817
+ export type FsMkdirError = BoxdOpError;
2818
+ /** FsMkdir creates a directory and any missing parents. An existing directory is not an error; a file in the way is `file_exists`. */
2819
+ export declare const fsMkdir: API.OperationMethod<FsMkdirRequest & MaxMessageBytesInput, FsMkdirResponse, FsMkdirError, BoxdOpContext>;
2820
+ export type FsReadError = BoxdOpError;
2821
+ /** Filesystem: read, write, stat, list, mkdir, remove, rename and realpath inside a machine, for programs that work with its files (the SDKs' `machines.fs`). Each call runs as the machine's user, in the same filesystem view `Exec` commands see, and wakes a sleeping machine first. Paths are raw bytes, so any filename works, including ones that are not valid UTF-8. A relative path resolves from the user's home directory. Errors use the gRPC code that matches the failure (NOT_FOUND, PERMISSION_DENIED, ALREADY_EXISTS, INVALID_ARGUMENT, FAILED_PRECONDITION) and name the exact reason in the `x-boxd-error-reason` trailer: `not_found`, `permission_denied`, `file_exists`, `is_a_directory`, `not_a_directory`, `directory_not_empty`, `not_a_regular_file`, `symlink_loop`, `name_too_long`, `invalid_path`, `no_space`, `read_only`, `busy`, `cross_device`, `size_mismatch`, `io_error`, or `agent_outdated` for a machine started before these calls existed (rebooting it updates it). FsRead streams a file: the first chunk carries its entry, then data, and the last chunk has `eof` set and the byte count sent. Only regular files can be read; a FIFO or device is `not_a_regular_file`. */
2822
+ export declare const fsRead: API.StreamingOperationMethod<FsReadRequest & MaxMessageBytesInput, FsReadStream, FsReadError, BoxdOpContext>;
2823
+ export type FsRealpathError = BoxdOpError;
2824
+ /** FsRealpath resolves symlinks and `.`/`..` like Python's `os.path.realpath(path)`: missing components are kept as written, and a symlink loop is `symlink_loop`. */
2825
+ export declare const fsRealpath: API.OperationMethod<FsRealpathRequest & MaxMessageBytesInput, FsRealpathResponse, FsRealpathError, BoxdOpContext>;
2826
+ export type FsRemoveError = BoxdOpError;
2827
+ /** FsRemove removes a file or a symlink (never its target). A directory needs `recursive`, and the root directory is refused. */
2828
+ export declare const fsRemove: API.OperationMethod<FsRemoveRequest & MaxMessageBytesInput, FsRemoveResponse, FsRemoveError, BoxdOpContext>;
2829
+ export type FsRenameError = BoxdOpError;
2830
+ export declare const fsRename: API.OperationMethod<FsRenameRequest & MaxMessageBytesInput, FsRenameResponse, FsRenameError, BoxdOpContext>;
2831
+ export type FsStatError = BoxdOpError;
2832
+ export declare const fsStat: API.OperationMethod<FsStatRequest & MaxMessageBytesInput, FsStatResponse, FsStatError, BoxdOpContext>;
2833
+ export type GetAgentLoginError = BoxdOpError;
2834
+ /** Whether you're signed in to an agent in an organization, and as whom. */
2835
+ export declare const getAgentLogin: API.OperationMethod<GetAgentLoginRequest & MaxMessageBytesInput, GetAgentLoginResponse, GetAgentLoginError, BoxdOpContext>;
2836
+ export type GetAgentSessionError = BoxdOpError;
2837
+ export declare const getAgentSession: API.OperationMethod<GetAgentSessionRequest & MaxMessageBytesInput, GetAgentSessionResponse, GetAgentSessionError, BoxdOpContext>;
2838
+ export type GetBackupScheduleError = BoxdOpError;
2839
+ export declare const getBackupSchedule: API.OperationMethod<GetBackupScheduleRequest & MaxMessageBytesInput, GetBackupScheduleResponse, GetBackupScheduleError, BoxdOpContext>;
2840
+ export type GetBillingError = BoxdOpError;
2841
+ /** Billing -- individual subscriptions. All require JWT. RPC ChangeShape removed (shape retired, rc/0.2) -- it only ever returned UNIMPLEMENTED in prod. Do not reuse the method name with new semantics. RPC ListPlans removed -- it listed the retired monthly subscription plan. Usage is billed on credits at the rates on https://boxd.sh/pricing. Do not reuse the method name with new semantics. */
2842
+ export declare const getBilling: API.OperationMethod<GetBillingRequest & MaxMessageBytesInput, GetBillingResponse, GetBillingError, BoxdOpContext>;
2843
+ export type GetConfigError = BoxdOpError;
2844
+ export declare const getConfig: API.OperationMethod<GetConfigRequest & MaxMessageBytesInput, GetConfigResponse, GetConfigError, BoxdOpContext>;
2845
+ export type GetOrgBackupsDefaultError = BoxdOpError;
2846
+ export declare const getOrgBackupsDefault: API.OperationMethod<GetOrgBackupsDefaultRequest & MaxMessageBytesInput, GetOrgBackupsDefaultResponse, GetOrgBackupsDefaultError, BoxdOpContext>;
2847
+ export type GetOrgBillingError = BoxdOpError;
2848
+ /** The org's shared plan: aggregate quota + current usage. Any member may view it (read-only; the platform sets the quota). */
2849
+ export declare const getOrgBilling: API.OperationMethod<GetOrgBillingRequest & MaxMessageBytesInput, GetOrgBillingResponse, GetOrgBillingError, BoxdOpContext>;
2850
+ export type GetOrgBotProtectionDefaultError = BoxdOpError;
2851
+ export declare const getOrgBotProtectionDefault: API.OperationMethod<GetOrgBotProtectionDefaultRequest & MaxMessageBytesInput, GetOrgBotProtectionDefaultResponse, GetOrgBotProtectionDefaultError, BoxdOpContext>;
2852
+ export type GetOrgDomainError = BoxdOpError;
2853
+ export declare const getOrgDomain: API.OperationMethod<GetOrgDomainRequest & MaxMessageBytesInput, GetOrgDomainResponse, GetOrgDomainError, BoxdOpContext>;
2854
+ export type GetOrgIdleIgnoreOutboundDefaultError = BoxdOpError;
2855
+ export declare const getOrgIdleIgnoreOutboundDefault: API.OperationMethod<GetOrgIdleIgnoreOutboundDefaultRequest & MaxMessageBytesInput, GetOrgIdleIgnoreOutboundDefaultResponse, GetOrgIdleIgnoreOutboundDefaultError, BoxdOpContext>;
2856
+ export type GetOrgMachineDefaultsError = BoxdOpError;
2857
+ export declare const getOrgMachineDefaults: API.OperationMethod<GetOrgMachineDefaultsRequest & MaxMessageBytesInput, GetOrgMachineDefaultsResponse, GetOrgMachineDefaultsError, BoxdOpContext>;
2858
+ export type GetOrgMachineLimitError = BoxdOpError;
2859
+ /** The org's machine limit (how many machines it may have at once) and asking for a higher one. Get is readable by any member, with a login or an API key issued for the org. Request is the org owner's: with their login, or an API key of theirs issued for the org; a token minted inside a machine can't make one. One request may be open per org at a time; the owner gets an email when the limit changes. */
2860
+ export declare const getOrgMachineLimit: API.OperationMethod<GetOrgMachineLimitRequest & MaxMessageBytesInput, GetOrgMachineLimitResponse, GetOrgMachineLimitError, BoxdOpContext>;
2861
+ export type GetOrgMembersError = BoxdOpError;
2862
+ export declare const getOrgMembers: API.OperationMethod<GetOrgMembersRequest & MaxMessageBytesInput, GetOrgMembersResponse, GetOrgMembersError, BoxdOpContext>;
2863
+ export type GetOrgRdpDefaultError = BoxdOpError;
2864
+ export declare const getOrgRdpDefault: API.OperationMethod<GetOrgRdpDefaultRequest & MaxMessageBytesInput, GetOrgRdpDefaultResponse, GetOrgRdpDefaultError, BoxdOpContext>;
2865
+ export type GetOrgSnapshotVersionsKeepError = BoxdOpError;
2866
+ export declare const getOrgSnapshotVersionsKeep: API.OperationMethod<GetOrgSnapshotVersionsKeepRequest & MaxMessageBytesInput, GetOrgSnapshotVersionsKeepResponse, GetOrgSnapshotVersionsKeepError, BoxdOpContext>;
2867
+ export type GetOrgUsageError = BoxdOpError;
2868
+ /** Usage and cost: what each machine used and cost over a window, and billing activity (what was actually charged). Org owners and admins only; API keys fenced to the org work, tokens minted inside a VM don't. */
2869
+ export declare const getOrgUsage: API.OperationMethod<GetOrgUsageRequest & MaxMessageBytesInput, GetOrgUsageResponse, GetOrgUsageError, BoxdOpContext>;
2870
+ export type GetSnapshotError = BoxdOpError;
2871
+ export declare const getSnapshot: API.OperationMethod<GetSnapshotRequest & MaxMessageBytesInput, GetSnapshotResponse, GetSnapshotError, BoxdOpContext>;
2872
+ export type GetTeamError = BoxdOpError;
2873
+ export declare const getTeam: API.OperationMethod<GetTeamRequest & MaxMessageBytesInput, GetTeamResponse, GetTeamError, BoxdOpContext>;
2874
+ export type GetVmError = BoxdOpError;
2875
+ /** NOT_FOUND for an id/name with no matching machine, INCLUDING a destroyed one -- a destroyed machine's id keeps resolving internally for a while (until the archive sweeper reclaims the row), but this RPC rejects it exactly like ListVms omits it and Exec refuses it, so a caller polling GetVm to confirm teardown never sees a stale "running" (or any other live-looking) status for a machine it already destroyed . */
2876
+ export declare const getVm: API.OperationMethod<GetVmRequest & MaxMessageBytesInput, GetVmResponse2, GetVmError, BoxdOpContext>;
2877
+ export type GetVmUsageError = BoxdOpError;
2878
+ export declare const getVmUsage: API.OperationMethod<GetVmUsageRequest & MaxMessageBytesInput, GetVmUsageResponse, GetVmUsageError, BoxdOpContext>;
2879
+ export type HibernateVmError = BoxdOpError;
2880
+ export declare const hibernateVm: API.OperationMethod<HibernateVmRequest & MaxMessageBytesInput, HibernateVmResponse, HibernateVmError, BoxdOpContext>;
2881
+ export type InterruptAgentError = BoxdOpError;
2882
+ /** Stops one session's running turn; the machine's other sessions keep going. A no-op when nothing is running. */
2883
+ export declare const interruptAgent: API.OperationMethod<InterruptAgentRequest & MaxMessageBytesInput, InterruptAgentResponse, InterruptAgentError, BoxdOpContext>;
2884
+ export type InviteOrgMemberError = BoxdOpError;
2885
+ /** Best-effort emails the invite link (Resend, when configured) -- the returned accept_url always works even when email delivery fails or isn't configured, same fallback the console relies on. */
2886
+ export declare const inviteOrgMember: API.OperationMethod<InviteOrgMemberRequest & MaxMessageBytesInput, InviteOrgMemberResponse, InviteOrgMemberError, BoxdOpContext>;
2887
+ export type LinkSshKeyError = BoxdOpError;
2888
+ /** Link an SSH public key to the caller's account so `ssh <vm>.boxd` authenticates by that key's fingerprint. Idempotent for the caller. */
2889
+ export declare const linkSshKey: API.OperationMethod<LinkSshKeyRequest & MaxMessageBytesInput, LinkSshKeyResponse, LinkSshKeyError, BoxdOpContext>;
2890
+ export type ListAgentRunsError = BoxdOpError;
2891
+ /** Finished turns across your machines, newest first, from the platform's run history: it never wakes a machine, and keeps a machine's runs for 30 days, also after it's deleted. No prompts or output, only how each turn went (AgentEvents has the transcript, from the machine itself). */
2892
+ export declare const listAgentRuns: API.OperationMethod<ListAgentRunsRequest & MaxMessageBytesInput, ListAgentRunsResponse, ListAgentRunsError, BoxdOpContext>;
2893
+ export type ListAgentSessionsError = BoxdOpError;
2894
+ export declare const listAgentSessions: API.OperationMethod<ListAgentSessionsRequest & MaxMessageBytesInput, ListAgentSessionsResponse, ListAgentSessionsError, BoxdOpContext>;
2895
+ export type ListApiKeysError = BoxdOpError;
2896
+ export declare const listApiKeys: API.OperationMethod<ListApiKeysRequest & MaxMessageBytesInput, ListApiKeysResponse, ListApiKeysError, BoxdOpContext>;
2897
+ export type ListBackupsError = BoxdOpError;
2898
+ export declare const listBackups: API.OperationMethod<ListBackupsRequest & MaxMessageBytesInput, ListBackupsResponse, ListBackupsError, BoxdOpContext>;
2899
+ export type ListBillingActivityError = BoxdOpError;
2900
+ export declare const listBillingActivity: API.OperationMethod<ListBillingActivityRequest & MaxMessageBytesInput, ListBillingActivityResponse, ListBillingActivityError, BoxdOpContext>;
2901
+ export type ListCheckpointsError = BoxdOpError;
2902
+ export declare const listCheckpoints: API.OperationMethod<ListCheckpointsRequest & MaxMessageBytesInput, ListCheckpointsResponse, ListCheckpointsError, BoxdOpContext>;
2903
+ export type ListCustomDomainsError = BoxdOpError;
2904
+ export declare const listCustomDomains: API.OperationMethod<ListCustomDomainsRequest & MaxMessageBytesInput, ListCustomDomainsResponse, ListCustomDomainsError, BoxdOpContext>;
2905
+ export type ListDirError = BoxdOpError;
2906
+ /** Lists the immediate (non-recursive) contents of a directory inside the guest -- one level, not a recursive tree. Backs the console's file browser and the Python/TypeScript SDKs' `machines.files` namespace; not exposed by boxd-cli, whose users already have `machine exec`/`connect` for this. */
2907
+ export declare const listDir: API.OperationMethod<ListDirRequest & MaxMessageBytesInput, ListDirResponse, ListDirError, BoxdOpContext>;
2908
+ export type ListDisksError = BoxdOpError;
2909
+ export declare const listDisks: API.OperationMethod<ListDisksRequest & MaxMessageBytesInput, ListDisksResponse, ListDisksError, BoxdOpContext>;
2910
+ export type ListExposedPortsError = BoxdOpError;
2911
+ export declare const listExposedPorts: API.OperationMethod<ListExposedPortsRequest & MaxMessageBytesInput, ListExposedPortsResponse, ListExposedPortsError, BoxdOpContext>;
2912
+ export type ListHarnessesError = BoxdOpError;
2913
+ /** Coding agents: drive Claude Code, Codex or Antigravity inside a machine the same way, through sessions, turns and one typed event stream. The agent runs in the machine and keeps working when the caller disconnects; the caller catches up with AgentEvents from the last `seq` it saw. A session is one conversation with one agent. A message sent to it starts a turn, joins the running turn, or waits for it to end (SendToAgent `when`). A session runs one turn at a time; a machine's sessions run side by side. */
2914
+ export declare const listHarnesses: API.OperationMethod<ListHarnessesRequest & MaxMessageBytesInput, ListHarnessesResponse, ListHarnessesError, BoxdOpContext>;
2915
+ export type ListNetworksError = BoxdOpError;
2916
+ export declare const listNetworks: API.OperationMethod<ListNetworksRequest & MaxMessageBytesInput, ListNetworksResponse, ListNetworksError, BoxdOpContext>;
2917
+ export type ListOrgsError = BoxdOpError;
2918
+ /** List the orgs the caller is a member of (backs the CLI/console org picker). */
2919
+ export declare const listOrgs: API.OperationMethod<ListOrgsRequest & MaxMessageBytesInput, ListOrgsResponse, ListOrgsError, BoxdOpContext>;
2920
+ export type ListProxiesError = BoxdOpError;
2921
+ export declare const listProxies: API.OperationMethod<ListProxiesRequest & MaxMessageBytesInput, ListProxiesResponse, ListProxiesError, BoxdOpContext>;
2922
+ export type ListProxyNodesError = BoxdOpError;
2923
+ /** The cluster's PROXY NODES -- not to be confused with ListProxies above, which returns a VM's HTTP port-forwards. Used by the client-utilities daemon to open a DeviceBridge to every proxy: the device registry is per-process and in-memory, so registering with only one proxy leaves the device invisible to the others. */
2924
+ export declare const listProxyNodes: API.OperationMethod<ListProxyNodesRequest & MaxMessageBytesInput, ListProxyNodesResponse, ListProxyNodesError, BoxdOpContext>;
2925
+ export type ListRegionsError = BoxdOpError;
2926
+ /** The regions boxd runs in. Each has its own API endpoint and DNS zone, and a machine, snapshot or disk lives in one of them. An org can use its home region and the regions enabled for it; ListRegions says which, for an org you belong to. An org admin can ask for another region with RequestOrgRegion (with their login, or an API key of theirs issued for the org; a token minted inside a machine can't); boxd enables it. */
2927
+ export declare const listRegions: API.OperationMethod<ListRegionsRequest & MaxMessageBytesInput, ListRegionsResponse, ListRegionsError, BoxdOpContext>;
2928
+ export type ListSnapshotsError = BoxdOpError;
2929
+ export declare const listSnapshots: API.OperationMethod<ListSnapshotsRequest & MaxMessageBytesInput, ListSnapshotsResponse, ListSnapshotsError, BoxdOpContext>;
2930
+ export type ListSnapshotVersionsError = BoxdOpError;
2931
+ /** The versions a snapshot keeps, newest first. Saving over a snapshot's name makes a new version; how many are kept is the org's setting (SetOrgSnapshotVersionsKeep). A machine can be created from any of them that is ready and on local disk (CreateVmFromSnapshotRequest.version). */
2932
+ export declare const listSnapshotVersions: API.OperationMethod<ListSnapshotVersionsRequest & MaxMessageBytesInput, ListSnapshotVersionsResponse, ListSnapshotVersionsError, BoxdOpContext>;
2933
+ export type ListTeamsError = BoxdOpError;
2934
+ /** Teams: org-scoped sub-grouping of members, each with an optional default snapshot new team machines boot from. Creating a team requires org admin; every other write requires team-admin (inherited by every org admin, or held directly via a team_members.role='admin' row). */
2935
+ export declare const listTeams: API.OperationMethod<ListTeamsRequest & MaxMessageBytesInput, ListTeamsResponse, ListTeamsError, BoxdOpContext>;
2936
+ export type ListTokensError = BoxdOpError;
2937
+ export declare const listTokens: API.OperationMethod<ListTokensRequest & MaxMessageBytesInput, ListTokensResponse, ListTokensError, BoxdOpContext>;
2938
+ export type ListVarsError = BoxdOpError;
2939
+ export declare const listVars: API.OperationMethod<ListVarsRequest & MaxMessageBytesInput, ListVarsResponse, ListVarsError, BoxdOpContext>;
2940
+ export type ListVmsError = BoxdOpError;
2941
+ export declare const listVms: API.OperationMethod<ListVmsRequest & MaxMessageBytesInput, ListVmsResponse, ListVmsError, BoxdOpContext>;
2942
+ export type MkdirError = BoxdOpError;
2943
+ /** Directory/file management for the console's file browser and the Python/TypeScript SDKs -- mirrors `mkdir`/`mv`/`rm -rf` inside the guest. Not exposed by boxd-cli (same reasoning as ListDir). */
2944
+ export declare const mkdir: API.OperationMethod<MkdirRequest & MaxMessageBytesInput, MkdirResponse, MkdirError, BoxdOpContext>;
2945
+ export type RebootVmError = BoxdOpError;
2946
+ export declare const rebootVm: API.OperationMethod<RebootVmRequest & MaxMessageBytesInput, RebootVmResponse, RebootVmError, BoxdOpContext>;
2947
+ export type RemoveCustomDomainError = BoxdOpError;
2948
+ export declare const removeCustomDomain: API.OperationMethod<RemoveCustomDomainRequest & MaxMessageBytesInput, RemoveCustomDomainResponse, RemoveCustomDomainError, BoxdOpContext>;
2949
+ export type RemoveOrgMemberError = BoxdOpError;
2950
+ /** Refused for an org owner/admin (only the platform can remove those) or a member who still owns VMs billed to this org -- same guardrails as the console. */
2951
+ export declare const removeOrgMember: API.OperationMethod<RemoveOrgMemberRequest & MaxMessageBytesInput, RemoveOrgMemberResponse, RemoveOrgMemberError, BoxdOpContext>;
2952
+ export type RemoveTeamMemberError = BoxdOpError;
2953
+ export declare const removeTeamMember: API.OperationMethod<RemoveTeamMemberRequest & MaxMessageBytesInput, RemoveTeamMemberResponse, RemoveTeamMemberError, BoxdOpContext>;
2954
+ export type RemoveVarError = BoxdOpError;
2955
+ export declare const removeVar: API.OperationMethod<RemoveVarRequest & MaxMessageBytesInput, RemoveVarResponse, RemoveVarError, BoxdOpContext>;
2956
+ export type RenameOrgError = BoxdOpError;
2957
+ export declare const renameOrg: API.OperationMethod<RenameOrgRequest & MaxMessageBytesInput, RenameOrgResponse, RenameOrgError, BoxdOpContext>;
2958
+ export type RenamePathError = BoxdOpError;
2959
+ export declare const renamePath: API.OperationMethod<RenamePathRequest & MaxMessageBytesInput, RenamePathResponse, RenamePathError, BoxdOpContext>;
2960
+ export type RenameTeamError = BoxdOpError;
2961
+ export declare const renameTeam: API.OperationMethod<RenameTeamRequest & MaxMessageBytesInput, RenameTeamResponse, RenameTeamError, BoxdOpContext>;
2962
+ export type RenameVmError = BoxdOpError;
2963
+ export declare const renameVm: API.OperationMethod<RenameVmRequest & MaxMessageBytesInput, RenameVmResponse, RenameVmError, BoxdOpContext>;
2964
+ export type RequestOrgMachineLimitError = BoxdOpError;
2965
+ export declare const requestOrgMachineLimit: API.OperationMethod<RequestOrgMachineLimitRequest & MaxMessageBytesInput, RequestOrgMachineLimitResponse, RequestOrgMachineLimitError, BoxdOpContext>;
2966
+ export type RequestOrgRegionError = BoxdOpError;
2967
+ export declare const requestOrgRegion: API.OperationMethod<RequestOrgRegionRequest & MaxMessageBytesInput, RequestOrgRegionResponse, RequestOrgRegionError, BoxdOpContext>;
2968
+ export type ResetRdpPasswordError = BoxdOpError;
2969
+ export declare const resetRdpPassword: API.OperationMethod<ResetRdpPasswordRequest & MaxMessageBytesInput, ResetRdpPasswordResponse, ResetRdpPasswordError, BoxdOpContext>;
2970
+ export type ResizeVmError = BoxdOpError;
2971
+ /** Resize a machine to another supported size class (1 vCPU · 4 GiB, 2 · 8, or 4 · 16 - naming one dimension resolves to its class), within the org quota ceiling (refused above it, never clamped). The new size persists immediately: a running machine is rebooted to apply it (cold boot - in-memory state is lost, disk is kept), a stopped machine picks it up at its next start. Suspended and hibernated machines are refused (their saved memory state was captured at the old size) - resume/wake first, then resize. */
2972
+ export declare const resizeVm: API.OperationMethod<ResizeVmRequest & MaxMessageBytesInput, ResizeVmResponse, ResizeVmError, BoxdOpContext>;
2973
+ export type RestoreBackupError = BoxdOpError;
2974
+ /** Restore is IN-PLACE and DESTRUCTIVE (Q1: full disk rewrite, no fork-from-backup) -- callers must get explicit user confirmation first. */
2975
+ export declare const restoreBackup: API.OperationMethod<RestoreBackupRequest & MaxMessageBytesInput, RestoreBackupResponse, RestoreBackupError, BoxdOpContext>;
2976
+ export type RestoreCheckpointError = BoxdOpError;
2977
+ export declare const restoreCheckpoint: API.OperationMethod<RestoreCheckpointRequest & MaxMessageBytesInput, RestoreCheckpointResponse, RestoreCheckpointError, BoxdOpContext>;
2978
+ export type ResumeVmError = BoxdOpError;
2979
+ export declare const resumeVm: API.OperationMethod<ResumeVmRequest & MaxMessageBytesInput, ResumeVmResponse, ResumeVmError, BoxdOpContext>;
2980
+ export type RevokeOrgInviteError = BoxdOpError;
2981
+ export declare const revokeOrgInvite: API.OperationMethod<RevokeOrgInviteRequest & MaxMessageBytesInput, RevokeOrgInviteResponse, RevokeOrgInviteError, BoxdOpContext>;
2982
+ export type RevokeTokenError = BoxdOpError;
2983
+ export declare const revokeToken: API.OperationMethod<RevokeTokenRequest & MaxMessageBytesInput, RevokeTokenResponse, RevokeTokenError, BoxdOpContext>;
2984
+ export type SendToAgentError = BoxdOpError;
2985
+ export declare const sendToAgent: API.OperationMethod<SendToAgentRequest & MaxMessageBytesInput, SendToAgentResponse, SendToAgentError, BoxdOpContext>;
2986
+ export type SetAutoHibernateTimeoutError = BoxdOpError;
2987
+ export declare const setAutoHibernateTimeout: API.OperationMethod<SetAutoHibernateTimeoutRequest & MaxMessageBytesInput, SetAutoHibernateTimeoutResponse, SetAutoHibernateTimeoutError, BoxdOpContext>;
2988
+ export type SetAutoSuspendTimeoutError = BoxdOpError;
2989
+ export declare const setAutoSuspendTimeout: API.OperationMethod<SetAutoSuspendTimeoutRequest & MaxMessageBytesInput, SetAutoSuspendTimeoutResponse, SetAutoSuspendTimeoutError, BoxdOpContext>;
2990
+ export type SetBackupScheduleError = BoxdOpError;
2991
+ /** Disaster recovery: scheduled VM disk backups to object storage. Off by default -- SetBackupSchedule is refused server-side if the cluster has no [backups] object store configured. */
2992
+ export declare const setBackupSchedule: API.OperationMethod<SetBackupScheduleRequest & MaxMessageBytesInput, SetBackupScheduleResponse, SetBackupScheduleError, BoxdOpContext>;
2993
+ export type SetBotProtectionError = BoxdOpError;
2994
+ export declare const setBotProtection: API.OperationMethod<SetBotProtectionRequest & MaxMessageBytesInput, SetBotProtectionResponse, SetBotProtectionError, BoxdOpContext>;
2995
+ export type SetDeleteAfterError = BoxdOpError;
2996
+ export declare const setDeleteAfter: API.OperationMethod<SetDeleteAfterRequest & MaxMessageBytesInput, SetDeleteAfterResponse, SetDeleteAfterError, BoxdOpContext>;
2997
+ export type SetIdleIgnoreOutboundError = BoxdOpError;
2998
+ export declare const setIdleIgnoreOutbound: API.OperationMethod<SetIdleIgnoreOutboundRequest & MaxMessageBytesInput, SetIdleIgnoreOutboundResponse, SetIdleIgnoreOutboundError, BoxdOpContext>;
2999
+ export type SetOrgBackupsDefaultError = BoxdOpError;
3000
+ /** The org's default backup schedule for NEW VMs (existing VMs are unchanged; a fork always copies its own source's schedule instead of this default). Self-service: org admins set it themselves. Set/Clear require org admin; Get is readable by any member -- same shape as SetOrgDomain/GetOrgDomain above. */
3001
+ export declare const setOrgBackupsDefault: API.OperationMethod<SetOrgBackupsDefaultRequest & MaxMessageBytesInput, SetOrgBackupsDefaultResponse, SetOrgBackupsDefaultError, BoxdOpContext>;
3002
+ export type SetOrgBotProtectionDefaultError = BoxdOpError;
3003
+ /** The org's default bot protection mode: what a NEW machine in the org starts with. An org without one follows the cluster's setting for new machines. Setting it also sets the mode on the existing machines and snapshots the caller may manage, except "off" machines, unless the Set asks for `new_machines_only`; a fork or a restore keeps its source's mode either way. Set/Clear require org admin; Get is readable by any member. */
3004
+ export declare const setOrgBotProtectionDefault: API.OperationMethod<SetOrgBotProtectionDefaultRequest & MaxMessageBytesInput, SetOrgBotProtectionDefaultResponse, SetOrgBotProtectionDefaultError, BoxdOpContext>;
3005
+ export type SetOrgDomainError = BoxdOpError;
3006
+ /** Per-org wildcard domain (one apex per org, e.g. preview.mysaas.com, covering <vm>.preview.mysaas.com for every org-billed VM). Same already-pointed-DNS expectation as AddCustomDomain, this time NS delegation. Set/Clear require org admin; Get is readable by any org member. An org has at most one domain in each region, set through that region's API (`region` names it; "" is the region the endpoint serves), and the domain is delegated to that region's nameservers (ns1 and ns2 of its zone). */
3007
+ export declare const setOrgDomain: API.OperationMethod<SetOrgDomainRequest & MaxMessageBytesInput, SetOrgDomainResponse, SetOrgDomainError, BoxdOpContext>;
3008
+ export type SetOrgIdleIgnoreOutboundDefaultError = BoxdOpError;
3009
+ /** The org's default for idle.ignore-outbound: whether a NEW machine in the org starts with its idle clock ignoring outbound traffic when its create request does not say. An org without one follows the platform's setting. Setting it also sets it on the existing machines and snapshots the caller may manage, unless the Set asks for `new_machines_only`; a fork or a restore keeps its source's value either way. Set/Clear require org admin; Get is readable by any member. */
3010
+ export declare const setOrgIdleIgnoreOutboundDefault: API.OperationMethod<SetOrgIdleIgnoreOutboundDefaultRequest & MaxMessageBytesInput, SetOrgIdleIgnoreOutboundDefaultResponse, SetOrgIdleIgnoreOutboundDefaultError, BoxdOpContext>;
3011
+ export type SetOrgMachineDefaultsError = BoxdOpError;
3012
+ /** The org's default machine SIZE: what a machine gets at CREATE when the request names no size. Distinct from the quota: the quota stays the operator-owned ceiling and the per-request maximum; this is the org-admin-owned preference below it (clamped to the ceiling). Every machine keeps the size it was created with, so changing this only affects machines created afterwards. Set/Clear require org admin; Get is readable by any member. */
3013
+ export declare const setOrgMachineDefaults: API.OperationMethod<SetOrgMachineDefaultsRequest & MaxMessageBytesInput, SetOrgMachineDefaultsResponse, SetOrgMachineDefaultsError, BoxdOpContext>;
3014
+ export type SetOrgMemberRoleError = BoxdOpError;
3015
+ /** Promote a member to admin, or demote an admin back to member. Refused for the owner (ownership is transferred by the platform) and for a target that isn't a member. Demoting ANOTHER admin is owner-only (an admin may only step down themselves) -- otherwise any admin could demote a peer and then RemoveOrgMember them, defeating that RPC's admin guard. Promoting to admin needs an interactive session. */
3016
+ export declare const setOrgMemberRole: API.OperationMethod<SetOrgMemberRoleRequest & MaxMessageBytesInput, SetOrgMemberRoleResponse, SetOrgMemberRoleError, BoxdOpContext>;
3017
+ export type SetOrgRdpDefaultError = BoxdOpError;
3018
+ export declare const setOrgRdpDefault: API.OperationMethod<SetOrgRdpDefaultRequest & MaxMessageBytesInput, SetOrgRdpDefaultResponse, SetOrgRdpDefaultError, BoxdOpContext>;
3019
+ export type SetOrgSnapshotVersionsKeepError = BoxdOpError;
3020
+ /** How many versions of each of its snapshots the org keeps. Saving over a snapshot's name makes a new version; the org keeps the current one and the newest ones before it, up to this count, and older ones are deleted. An org without a setting follows the platform's, which keeps the current version alone unless the cluster's operator changed it. It applies to every snapshot of the org. Lowering it permanently deletes the versions beyond the new count within a minute: `dry_run` says how many first. Raising it keeps more from the next save on; a version already deleted does not come back. Set/Clear require org admin; Get is readable by any member. */
3021
+ export declare const setOrgSnapshotVersionsKeep: API.OperationMethod<SetOrgSnapshotVersionsKeepRequest & MaxMessageBytesInput, SetOrgSnapshotVersionsKeepResponse, SetOrgSnapshotVersionsKeepError, BoxdOpContext>;
3022
+ export type SetProxyPortError = BoxdOpError;
3023
+ export declare const setProxyPort: API.OperationMethod<SetProxyPortRequest & MaxMessageBytesInput, SetProxyPortResponse, SetProxyPortError, BoxdOpContext>;
3024
+ export type SetRdpError = BoxdOpError;
3025
+ export declare const setRdp: API.OperationMethod<SetRdpRequest & MaxMessageBytesInput, SetRdpResponse, SetRdpError, BoxdOpContext>;
3026
+ export type SetSecretScopeError = BoxdOpError;
3027
+ export declare const setSecretScope: API.OperationMethod<SetSecretScopeRequest & MaxMessageBytesInput, SetSecretScopeResponse, SetSecretScopeError, BoxdOpContext>;
3028
+ export type SetSnapshotCurrentVersionError = BoxdOpError;
3029
+ /** Make one of a snapshot's versions its current one (a staged version, or an older one to roll back to). */
3030
+ export declare const setSnapshotCurrentVersion: API.OperationMethod<SetSnapshotCurrentVersionRequest & MaxMessageBytesInput, SetSnapshotCurrentVersionResponse, SetSnapshotCurrentVersionError, BoxdOpContext>;
3031
+ export type SetSshError = BoxdOpError;
3032
+ export declare const setSsh: API.OperationMethod<SetSshRequest & MaxMessageBytesInput, SetSshResponse, SetSshError, BoxdOpContext>;
3033
+ export type SetTeamDefaultSnapshotError = BoxdOpError;
3034
+ /** Must be a SHARED snapshot (not just accessible to the setter) -- a private default would silently work only for the admin who set it. Empty snapshot_id clears the default. */
3035
+ export declare const setTeamDefaultSnapshot: API.OperationMethod<SetTeamDefaultSnapshotRequest & MaxMessageBytesInput, SetTeamDefaultSnapshotResponse, SetTeamDefaultSnapshotError, BoxdOpContext>;
3036
+ export type SetTeamMemberRoleError = BoxdOpError;
3037
+ export declare const setTeamMemberRole: API.OperationMethod<SetTeamMemberRoleRequest & MaxMessageBytesInput, SetTeamMemberRoleResponse, SetTeamMemberRoleError, BoxdOpContext>;
3038
+ export type SetVarError = BoxdOpError;
3039
+ /** Env vars & secrets (scoped to an org or, when org is empty, personal). */
3040
+ export declare const setVar: API.OperationMethod<SetVarRequest & MaxMessageBytesInput, SetVarResponse, SetVarError, BoxdOpContext>;
3041
+ export type SetVmEgressAllowError = BoxdOpError;
3042
+ /** Replaces a VM's egress allowlist: hostnames / wildcards and public IPv4 addresses / CIDRs the machine may reach. Empty = no allowlist. `none` alone = an allowlist with nothing in it: the machine reaches nothing (the hosts its network-scoped secrets are bound to aside, as with any allowlist); next to other entries it is dropped. Only reachable through the public API (no CLI, no in-VM route). */
3043
+ export declare const setVmEgressAllow: API.OperationMethod<SetVmEgressAllowRequest & MaxMessageBytesInput, SetVmEgressAllowResponse, SetVmEgressAllowError, BoxdOpContext>;
3044
+ export type SetVmNetworksError = BoxdOpError;
3045
+ /** Replaces a VM's whole network-tag set -- not add/remove, the caller sends the complete desired set. Networks drive east-west reachability within the caller's org; see CreateVmRequest.networks. */
3046
+ export declare const setVmNetworks: API.OperationMethod<SetVmNetworksRequest & MaxMessageBytesInput, SetVmNetworksResponse, SetVmNetworksError, BoxdOpContext>;
3047
+ export type ShareVmError = BoxdOpError;
3048
+ /** Organizations (v2 org model). Owner-only visibility toggle: share your VM with the whole org it belongs to, or make it private again. A VM never moves between orgs (it's born in the owner's org). */
3049
+ export declare const shareVm: API.OperationMethod<ShareVmRequest & MaxMessageBytesInput, ShareVmResponse, ShareVmError, BoxdOpContext>;
3050
+ export type StartAgentLoginError = BoxdOpError;
3051
+ /** Sign a coding agent in (Claude Code, Codex, or Antigravity): the platform's own sign-in, the same as Integrations in the console. A sign-in is yours, kept in one organization (`org`, else your default one), refreshed by the platform, and given to every private machine of yours there; your agent sessions use it. A shared or isolated machine never gets it (give it an API key as a secret instead). Start returns where to go; Complete takes the code Claude or Antigravity shows you, or says whether you've approved Codex's device code yet. An organization API key can't sign in: a sign-in belongs to a person. */
3052
+ export declare const startAgentLogin: API.OperationMethod<StartAgentLoginRequest & MaxMessageBytesInput, StartAgentLoginResponse, StartAgentLoginError, BoxdOpContext>;
3053
+ export type StartAgentSessionError = BoxdOpError;
3054
+ export declare const startAgentSession: API.OperationMethod<StartAgentSessionRequest & MaxMessageBytesInput, StartAgentSessionResponse, StartAgentSessionError, BoxdOpContext>;
3055
+ export type StartVmError = BoxdOpError;
3056
+ export declare const startVm: API.OperationMethod<StartVmRequest & MaxMessageBytesInput, StartVmResponse, StartVmError, BoxdOpContext>;
3057
+ export type StopVmError = BoxdOpError;
3058
+ export declare const stopVm: API.OperationMethod<StopVmRequest & MaxMessageBytesInput, StopVmResponse, StopVmError, BoxdOpContext>;
3059
+ export type StreamLogsError = BoxdOpError;
3060
+ export declare const streamLogs: API.StreamingOperationMethod<StreamLogsRequest & MaxMessageBytesInput, StreamLogsStream, StreamLogsError, BoxdOpContext>;
3061
+ export type SuggestVmNameError = BoxdOpError;
3062
+ /** A fresh, available auto-generated VM name -- used by the interactive CLI to pre-fill the "name" prompt for `machine new`. */
3063
+ export declare const suggestVmName: API.OperationMethod<SuggestVmNameRequest & MaxMessageBytesInput, SuggestVmNameResponse, SuggestVmNameError, BoxdOpContext>;
3064
+ export type SuspendVmError = BoxdOpError;
3065
+ export declare const suspendVm: API.OperationMethod<SuspendVmRequest & MaxMessageBytesInput, SuspendVmResponse, SuspendVmError, BoxdOpContext>;
3066
+ export type TriggerBackupError = BoxdOpError;
3067
+ /** On-demand "back up now" -- captures immediately, independent of (and without disturbing) any schedule. Retention resolves from the VM's schedule, else the org default, else the platform default. */
3068
+ export declare const triggerBackup: API.OperationMethod<TriggerBackupRequest & MaxMessageBytesInput, TriggerBackupResponse, TriggerBackupError, BoxdOpContext>;
3069
+ export type UnarchiveSnapshotError = BoxdOpError;
3070
+ /** Bring an archived snapshot back to local disk, so machines can be created from it again. Returns at once; see UnarchiveSnapshotRequest. */
3071
+ export declare const unarchiveSnapshot: API.OperationMethod<UnarchiveSnapshotRequest & MaxMessageBytesInput, UnarchiveSnapshotResponse, UnarchiveSnapshotError, BoxdOpContext>;
3072
+ export type UnexposePortError = BoxdOpError;
3073
+ export declare const unexposePort: API.OperationMethod<UnexposePortRequest & MaxMessageBytesInput, UnexposePortResponse, UnexposePortError, BoxdOpContext>;
3074
+ export type UnshareVmError = BoxdOpError;
3075
+ export declare const unshareVm: API.OperationMethod<UnshareVmRequest & MaxMessageBytesInput, UnshareVmResponse, UnshareVmError, BoxdOpContext>;
3076
+ export type UpdateMachineSpecError = BoxdOpError;
3077
+ /** Patch the spec of a machine created from one (GetVmResponse.spec) and apply what changes. Allowed to whoever may edit the machine's labels, networks and egress: its owner, or an org owner or admin on a shared machine. See UpdateMachineSpecRequest. */
3078
+ export declare const updateMachineSpec: API.OperationMethod<UpdateMachineSpecRequest & MaxMessageBytesInput, UpdateMachineSpecResponse, UpdateMachineSpecError, BoxdOpContext>;
3079
+ export type UpdateVmLabelsError = BoxdOpError;
3080
+ /** Edits a machine's labels: user-set key=value metadata for grouping and finding machines. Returns the labels after the edit. */
3081
+ export declare const updateVmLabels: API.OperationMethod<UpdateVmLabelsRequest & MaxMessageBytesInput, UpdateVmLabelsResponse, UpdateVmLabelsError, BoxdOpContext>;
3082
+ export type UploadFileError = BoxdOpError;
3083
+ export declare const uploadFile: API.OperationMethod<UploadFileRequest & MaxMessageBytesInput, UploadFileResponse, UploadFileError, BoxdOpContext>;
3084
+ export type WakeVmError = BoxdOpError;
3085
+ export declare const wakeVm: API.OperationMethod<WakeVmRequest & MaxMessageBytesInput, WakeVmResponse, WakeVmError, BoxdOpContext>;
3086
+ export type WhoamiError = BoxdOpError;
3087
+ export declare const whoami: API.OperationMethod<WhoamiRequest & MaxMessageBytesInput, WhoamiResponse, WhoamiError, BoxdOpContext>;
3088
+ //# sourceMappingURL=boxd.d.ts.map