@b3os/sdk 0.2.1 → 0.2.3

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 (146) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/core/util.d.ts +1 -1
  3. package/dist/cjs/core/util.js +1 -1
  4. package/dist/cjs/generated/client.d.ts +18 -0
  5. package/dist/cjs/generated/client.js +34 -0
  6. package/dist/cjs/generated/client.js.map +1 -1
  7. package/dist/cjs/generated/errors.d.ts +1 -1
  8. package/dist/cjs/generated/errors.js +120 -0
  9. package/dist/cjs/generated/errors.js.map +1 -1
  10. package/dist/cjs/generated/ids.d.ts +89 -0
  11. package/dist/cjs/generated/ids.js +22 -0
  12. package/dist/cjs/generated/ids.js.map +1 -1
  13. package/dist/cjs/generated/jobs.js +4 -0
  14. package/dist/cjs/generated/jobs.js.map +1 -1
  15. package/dist/cjs/generated/ns/actions.d.ts +267 -33
  16. package/dist/cjs/generated/ns/actions.js +375 -33
  17. package/dist/cjs/generated/ns/actions.js.map +1 -1
  18. package/dist/cjs/generated/ns/agents.d.ts +656 -0
  19. package/dist/cjs/generated/ns/agents.js +989 -0
  20. package/dist/cjs/generated/ns/agents.js.map +1 -0
  21. package/dist/cjs/generated/ns/images.d.ts +162 -0
  22. package/dist/cjs/generated/ns/images.js +246 -0
  23. package/dist/cjs/generated/ns/images.js.map +1 -0
  24. package/dist/cjs/generated/ns/infer.d.ts +71 -3
  25. package/dist/cjs/generated/ns/infer.js +98 -3
  26. package/dist/cjs/generated/ns/infer.js.map +1 -1
  27. package/dist/cjs/generated/ns/keys.d.ts +3 -1
  28. package/dist/cjs/generated/ns/keys.js +3 -1
  29. package/dist/cjs/generated/ns/keys.js.map +1 -1
  30. package/dist/cjs/generated/ns/listeners.d.ts +163 -0
  31. package/dist/cjs/generated/ns/listeners.js +268 -0
  32. package/dist/cjs/generated/ns/listeners.js.map +1 -0
  33. package/dist/cjs/generated/ns/orgs.d.ts +10 -0
  34. package/dist/cjs/generated/ns/orgs.js +26 -1
  35. package/dist/cjs/generated/ns/orgs.js.map +1 -1
  36. package/dist/cjs/generated/ns/projects.d.ts +32 -0
  37. package/dist/cjs/generated/ns/projects.js +66 -0
  38. package/dist/cjs/generated/ns/projects.js.map +1 -1
  39. package/dist/cjs/generated/ns/render.d.ts +192 -21
  40. package/dist/cjs/generated/ns/render.js +267 -24
  41. package/dist/cjs/generated/ns/render.js.map +1 -1
  42. package/dist/cjs/generated/ns/requests.d.ts +3 -1
  43. package/dist/cjs/generated/ns/requests.js +3 -1
  44. package/dist/cjs/generated/ns/requests.js.map +1 -1
  45. package/dist/cjs/generated/ns/routines.d.ts +22 -4
  46. package/dist/cjs/generated/ns/routines.js +22 -4
  47. package/dist/cjs/generated/ns/routines.js.map +1 -1
  48. package/dist/cjs/generated/ns/sandboxes.d.ts +431 -7
  49. package/dist/cjs/generated/ns/sandboxes.js +633 -6
  50. package/dist/cjs/generated/ns/sandboxes.js.map +1 -1
  51. package/dist/cjs/generated/ns/usage.d.ts +1 -1
  52. package/dist/cjs/generated/ns/usage.js +1 -1
  53. package/dist/cjs/generated/ns/vision.d.ts +113 -17
  54. package/dist/cjs/generated/ns/vision.js +152 -21
  55. package/dist/cjs/generated/ns/vision.js.map +1 -1
  56. package/dist/cjs/generated/ns/workspaces.d.ts +225 -0
  57. package/dist/cjs/generated/ns/workspaces.js +410 -0
  58. package/dist/cjs/generated/ns/workspaces.js.map +1 -0
  59. package/dist/cjs/generated/types.d.ts +5259 -605
  60. package/dist/cjs/helpers/sandboxes.d.ts +20 -1
  61. package/dist/cjs/helpers/sandboxes.js +13 -1
  62. package/dist/cjs/helpers/sandboxes.js.map +1 -1
  63. package/dist/esm/core/util.d.ts +1 -1
  64. package/dist/esm/core/util.js +1 -1
  65. package/dist/esm/generated/client.d.ts +18 -0
  66. package/dist/esm/generated/client.js +34 -0
  67. package/dist/esm/generated/client.js.map +1 -1
  68. package/dist/esm/generated/errors.d.ts +1 -1
  69. package/dist/esm/generated/errors.js +120 -0
  70. package/dist/esm/generated/errors.js.map +1 -1
  71. package/dist/esm/generated/ids.d.ts +89 -0
  72. package/dist/esm/generated/ids.js +22 -0
  73. package/dist/esm/generated/ids.js.map +1 -1
  74. package/dist/esm/generated/jobs.js +4 -0
  75. package/dist/esm/generated/jobs.js.map +1 -1
  76. package/dist/esm/generated/ns/actions.d.ts +267 -33
  77. package/dist/esm/generated/ns/actions.js +375 -33
  78. package/dist/esm/generated/ns/actions.js.map +1 -1
  79. package/dist/esm/generated/ns/agents.d.ts +656 -0
  80. package/dist/esm/generated/ns/agents.js +985 -0
  81. package/dist/esm/generated/ns/agents.js.map +1 -0
  82. package/dist/esm/generated/ns/images.d.ts +162 -0
  83. package/dist/esm/generated/ns/images.js +242 -0
  84. package/dist/esm/generated/ns/images.js.map +1 -0
  85. package/dist/esm/generated/ns/infer.d.ts +71 -3
  86. package/dist/esm/generated/ns/infer.js +98 -3
  87. package/dist/esm/generated/ns/infer.js.map +1 -1
  88. package/dist/esm/generated/ns/keys.d.ts +3 -1
  89. package/dist/esm/generated/ns/keys.js +3 -1
  90. package/dist/esm/generated/ns/keys.js.map +1 -1
  91. package/dist/esm/generated/ns/listeners.d.ts +163 -0
  92. package/dist/esm/generated/ns/listeners.js +264 -0
  93. package/dist/esm/generated/ns/listeners.js.map +1 -0
  94. package/dist/esm/generated/ns/orgs.d.ts +10 -0
  95. package/dist/esm/generated/ns/orgs.js +26 -1
  96. package/dist/esm/generated/ns/orgs.js.map +1 -1
  97. package/dist/esm/generated/ns/projects.d.ts +32 -0
  98. package/dist/esm/generated/ns/projects.js +66 -0
  99. package/dist/esm/generated/ns/projects.js.map +1 -1
  100. package/dist/esm/generated/ns/render.d.ts +192 -21
  101. package/dist/esm/generated/ns/render.js +267 -24
  102. package/dist/esm/generated/ns/render.js.map +1 -1
  103. package/dist/esm/generated/ns/requests.d.ts +3 -1
  104. package/dist/esm/generated/ns/requests.js +3 -1
  105. package/dist/esm/generated/ns/requests.js.map +1 -1
  106. package/dist/esm/generated/ns/routines.d.ts +22 -4
  107. package/dist/esm/generated/ns/routines.js +22 -4
  108. package/dist/esm/generated/ns/routines.js.map +1 -1
  109. package/dist/esm/generated/ns/sandboxes.d.ts +431 -7
  110. package/dist/esm/generated/ns/sandboxes.js +633 -6
  111. package/dist/esm/generated/ns/sandboxes.js.map +1 -1
  112. package/dist/esm/generated/ns/usage.d.ts +1 -1
  113. package/dist/esm/generated/ns/usage.js +1 -1
  114. package/dist/esm/generated/ns/vision.d.ts +113 -17
  115. package/dist/esm/generated/ns/vision.js +152 -21
  116. package/dist/esm/generated/ns/vision.js.map +1 -1
  117. package/dist/esm/generated/ns/workspaces.d.ts +225 -0
  118. package/dist/esm/generated/ns/workspaces.js +406 -0
  119. package/dist/esm/generated/ns/workspaces.js.map +1 -0
  120. package/dist/esm/generated/types.d.ts +5259 -605
  121. package/dist/esm/helpers/sandboxes.d.ts +20 -1
  122. package/dist/esm/helpers/sandboxes.js +13 -1
  123. package/dist/esm/helpers/sandboxes.js.map +1 -1
  124. package/package.json +1 -1
  125. package/src/core/util.ts +1 -1
  126. package/src/generated/client.ts +38 -0
  127. package/src/generated/errors.ts +240 -0
  128. package/src/generated/ids.ts +22 -0
  129. package/src/generated/jobs.ts +4 -0
  130. package/src/generated/ns/actions.ts +403 -33
  131. package/src/generated/ns/agents.ts +1102 -0
  132. package/src/generated/ns/images.ts +256 -0
  133. package/src/generated/ns/infer.ts +100 -3
  134. package/src/generated/ns/keys.ts +3 -1
  135. package/src/generated/ns/listeners.ts +300 -0
  136. package/src/generated/ns/orgs.ts +27 -1
  137. package/src/generated/ns/projects.ts +74 -0
  138. package/src/generated/ns/render.ts +277 -24
  139. package/src/generated/ns/requests.ts +3 -1
  140. package/src/generated/ns/routines.ts +22 -4
  141. package/src/generated/ns/sandboxes.ts +694 -7
  142. package/src/generated/ns/usage.ts +1 -1
  143. package/src/generated/ns/vision.ts +159 -21
  144. package/src/generated/ns/workspaces.ts +448 -0
  145. package/src/generated/types.ts +5684 -601
  146. package/src/helpers/sandboxes.ts +31 -2
@@ -1 +1 @@
1
- {"version":3,"file":"routines.js","sourceRoot":"","sources":["../../../../src/generated/ns/routines.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAG5G,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAMpD,MAAM,cAAc,GAAO;IACzB,EAAE,EAAE,sBAAsB;IAC1B,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,cAAc;IACpB,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,eAAe;CACvB,CAAC;AACF,MAAM,eAAe,GAAO;IAC1B,EAAE,EAAE,uBAAuB;IAC3B,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,gBAAgB;CACxB,CAAC;AACF,MAAM,WAAW,GAAO;IACtB,EAAE,EAAE,mBAAmB;IACvB,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,cAAc;CACtB,CAAC;AACF,MAAM,eAAe,GAAO;IAC1B,EAAE,EAAE,uBAAuB;IAC3B,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,gBAAgB;CACxB,CAAC;AACF,MAAM,QAAQ,GAAO;IACnB,EAAE,EAAE,gBAAgB;IACpB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,4BAA4B;IAClC,MAAM,EAAE,CAAC,QAAQ,CAAC;IAClB,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,eAAe;CACvB,CAAC;AACF,MAAM,WAAW,GAAO;IACtB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CAAC,OAAe,EAAE,IAAuB,EAAE,OAAwB;QAChF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAY,iBAAiB,EAAE,EAAE,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CACN,OAAe,EACf,MAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAiC,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACrH,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,SAAS,CACP,OAAe,EACf,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAA2B,WAAW,EAAE,EAAE,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;OAMG;IACH,YAAY,CACV,OAAe,EACf,MAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CACvB,cAAc,EACd,EAAE,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAClC,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,UAAU,CAAC,OAAe,EAAE,OAAe,EAAE,OAAwB;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAmB,YAAY,EAAE,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IACnG,CAAC;CACF"}
@@ -1,7 +1,7 @@
1
1
  import type { BinaryInput, RequestOptions, StreamOptions } from "../../core/client.ts";
2
2
  import { Namespace } from "../../core/namespace.ts";
3
3
  import type { Op } from "../../core/op.ts";
4
- import type { APIPromise, ListPromise } from "../../core/promise.ts";
4
+ import type { APIPromise, JobPromise, ListPromise } from "../../core/promise.ts";
5
5
  import type { EventStream } from "../../core/sse.ts";
6
6
  import { PtySession } from "../../core/ws.ts";
7
7
  import { type CodexExecServerOptions, type Harness, type ManagedAgentsSessionOptions, type ManagedAgentsWorkerOptions } from "../../helpers/agents.ts";
@@ -11,13 +11,31 @@ import type * as T from "../types.ts";
11
11
  export declare const sandboxesOps: {
12
12
  readonly listSandboxes: Op;
13
13
  readonly createSandbox: Op;
14
+ readonly getCapacity: Op;
14
15
  readonly listSnapshots: Op;
15
16
  readonly deleteSnapshot: Op;
16
17
  readonly getSnapshot: Op;
18
+ readonly listSwarms: Op;
19
+ readonly createSwarm: Op;
20
+ readonly getSwarm: Op;
21
+ readonly cancelSwarm: Op;
22
+ readonly listSwarmChildren: Op;
23
+ readonly swarmEvents: Op;
17
24
  readonly listTemplates: Op;
25
+ readonly createTemplate: Op;
18
26
  readonly getTemplate: Op;
27
+ readonly listVolumes: Op;
28
+ readonly createVolume: Op;
29
+ readonly deleteVolume: Op;
30
+ readonly getVolume: Op;
31
+ readonly updateVolume: Op;
32
+ readonly purgeVolume: Op;
33
+ readonly restoreVolume: Op;
19
34
  readonly deleteSandbox: Op;
20
35
  readonly getSandbox: Op;
36
+ readonly getComputer: Op;
37
+ readonly computerAct: Op;
38
+ readonly computerScreenshot: Op;
21
39
  readonly setEgress: Op;
22
40
  readonly exec: Op;
23
41
  readonly deleteFile: Op;
@@ -27,8 +45,11 @@ export declare const sandboxesOps: {
27
45
  readonly moveFile: Op;
28
46
  readonly statFile: Op;
29
47
  readonly forkSandbox: Op;
48
+ readonly releaseLease: Op;
49
+ readonly holdLease: Op;
30
50
  readonly streamLogs: Op;
31
51
  readonly pauseSandbox: Op;
52
+ readonly createPortHost: Op;
32
53
  readonly createPortUrl: Op;
33
54
  readonly listProcesses: Op;
34
55
  readonly killProcess: Op;
@@ -52,6 +73,8 @@ export declare class SandboxesAPI extends Namespace {
52
73
  * `metadata[<key>]=<value>` (up to 4 pairs) keeps only sandboxes whose `metadata` holds every pair given, with
53
74
  * exactly that value: `GET /v1/sandboxes?metadata[customer]=acme&metadata[ticket]=ENG-1423`. A sandbox whose
54
75
  * create lost its answer (a dropped connection) is found this way by a tag it was created with.
76
+ * `owner=project&created_by_key=<key_id>` lists the services a key deployed, and `root=<sandbox_id>` the
77
+ * sandboxes one of them started.
55
78
  *
56
79
  * `GET /v1/sandboxes` · scope `sandboxes:read` · served by the node
57
80
  */
@@ -132,6 +155,14 @@ export declare class SandboxesAPI extends Namespace {
132
155
  * the daemon (streamed execs, PTY sessions, log streams, port preview connections, the sandbox's outbound
133
156
  * connections and its calls to `http://127.0.0.1:7700`) drop at the restart and can be opened again.
134
157
  *
158
+ * From an image (`image: "img_…"`, `POST /v1/images`): the sandbox restores the image's warm snapshot and
159
+ * has the image's size; a `vcpu` or `memory_mib` other than it answers `400 invalid_request`. `image` needs the
160
+ * `images.import` flag on for your organization (`404 feature_not_enabled` otherwise), answers `404
161
+ * image_not_found` for an image of another project and `409 image_not_ready` (with `current_status`) until the
162
+ * image is `ready`. `template: "tpl_…"` with the image's template ID works the same way without the flag (the
163
+ * template exists only once an import has run). Give `image` alone: with `template` or `snapshot` it answers
164
+ * `400 invalid_request`.
165
+ *
135
166
  * Disk: a sandbox's disk is its own copy-on-write copy of the template's (or snapshot's) disk; it is deleted
136
167
  * when the sandbox ends and never given to another sandbox. The disks of an organization's running and paused
137
168
  * sandboxes on a node add up to at most `sandboxes.disk_total_max` (each sandbox counting its `disk_gib`;
@@ -139,12 +170,45 @@ export declare class SandboxesAPI extends Namespace {
139
170
  * create the concurrency limit allows); past it a create is refused with `422 limit_exceeded`. While the
140
171
  * node's disk store is nearly full, creates are refused with `503 capacity_unavailable` and `Retry-After`.
141
172
  *
173
+ * Desktops: a sandbox of a template with the `computer` capability (`desktop`) also counts against
174
+ * `sandboxes.desktops_concurrent`, its running and paused sandboxes of such templates (forks included); past it
175
+ * a create or fork is refused with `429 concurrency_limited` and `Retry-After`, as past `sandboxes.concurrent`.
176
+ * Its environment has `DISPLAY=:1` (the desktop's X server) unless `env` sets `DISPLAY`, so commands reach the
177
+ * screen. `GET /v1/sandboxes/capacity` says how many more would be created now.
178
+ *
142
179
  * Returns the sandbox object (`SandboxInfo`). `create()` sends the same request and returns a `Sandbox`
143
180
  * handle instead (`exec`, `files`, `ports`), which `await using` deletes when the scope ends.
144
181
  *
145
182
  * `POST /v1/sandboxes` · scope `sandboxes:write` · served by the node
146
183
  */
147
184
  createSandbox(body?: SandboxCreateBody, options?: RequestOptions): APIPromise<T.Sandbox>;
185
+ /**
186
+ * Check room for more sandboxes
187
+ *
188
+ * How many more sandboxes of one template and size your organization could create on this node now, and
189
+ * which limit refuses the next one. Call it before a wave of creates instead of meeting `429` or `503`
190
+ * answers. The default shape is the `desktop` template at its default size; name another with `template`,
191
+ * `vcpu` and `memory_mib`.
192
+ *
193
+ * `room` is the least of three counts. `org` is `sandboxes.concurrent`: your running and paused sandboxes
194
+ * (and creates in flight) against the limit; paused sandboxes count, so delete the ones you are done with
195
+ * rather than leave them paused. `desktops` is `sandboxes.desktops_concurrent`, the running and paused
196
+ * sandboxes of templates with the `computer` capability; it counts toward `room` only when the template has
197
+ * that capability. `node` is this node: `parked` is how many sandboxes of the shape wait warm in its pool
198
+ * (a create claims one without a restore), and `room` is how many sandboxes of the shape the memory left
199
+ * under the node's microVM memory limit holds, each counting its `memory_mib` plus the node's per-microVM
200
+ * overhead, or `0` while the node's disk store is too full for new sandboxes. `node.room` is `null` when the
201
+ * node cannot read that limit, and then it does not count toward `room`.
202
+ *
203
+ * `binding` names the limit that refuses the next create (`org_concurrency`, `desktops` or `node`) when
204
+ * `room` is `0`, with `retry_after_s`, and is `null` while a create would pass. The answer is a reading, not
205
+ * a reservation: another create can take the room first. `sandboxes.disk_total_max` is left out (its beta
206
+ * default never refuses a create the concurrency limit allows). Behind the `sandboxes.desktop` feature flag:
207
+ * until it is on for your organization the operation answers `404 feature_not_enabled`.
208
+ *
209
+ * `GET /v1/sandboxes/capacity` · scope `sandboxes:read` · served by the node
210
+ */
211
+ getCapacity(params?: T.SandboxesGetCapacityParams, options?: RequestOptions): APIPromise<T.SandboxCapacity>;
148
212
  /**
149
213
  * List snapshots
150
214
  *
@@ -169,25 +233,209 @@ export declare class SandboxesAPI extends Namespace {
169
233
  * `GET /v1/sandboxes/snapshots/{snapshot_id}` · scope `sandboxes:read` · served by the node
170
234
  */
171
235
  getSnapshot(snapshotId: string, options?: RequestOptions): APIPromise<T.Snapshot>;
236
+ /**
237
+ * List swarms
238
+ *
239
+ * Lists swarms in this project, newest first, without their children (`GET /v1/sandboxes/swarms/{swarm_id}`
240
+ * returns them). Swarms are kept for 7 days after they finish.
241
+ *
242
+ * `GET /v1/sandboxes/swarms` · scope `sandboxes:read` · served by the node
243
+ */
244
+ listSwarms(params?: T.SandboxesListSwarmsParams, options?: RequestOptions): ListPromise<T.SwarmList, T.Swarm>;
245
+ /**
246
+ * Start a swarm
247
+ *
248
+ * Forks one checkpoint into children, runs a command in each child, and gathers every child's exit code,
249
+ * output and timing. The checkpoint is a forkable sandbox (`from.sandbox`, running or paused) or a snapshot
250
+ * (`from.snapshot`). Each child is a new sandbox with a fresh identity, as a fork's or a restore's is: it keeps
251
+ * the checkpoint's environment, secrets, files, egress, ports and grant, and gets its own ID.
252
+ *
253
+ * Give the children one by one in `children` (at most `sandboxes.swarm_children_max`; a child's index is its
254
+ * position), or give `count` children that all run `defaults`. Each child's command runs as
255
+ * `POST /v1/sandboxes/{sandbox_id}/exec` would run it streamed, with `B3OS_SWARM_ID` and `B3OS_SWARM_INDEX`
256
+ * added to its environment, so one command can shard work by index. `env` is stored with the swarm's record
257
+ * for as long as it is kept: pass secrets as the checkpoint's `secrets`, never in `env`.
258
+ *
259
+ * A child whose sandbox would expire before its command's `timeout_ms` has passed gets a longer lifetime, the
260
+ * command's timeout plus 30 seconds, up to `sandboxes.timeout_max`.
261
+ *
262
+ * A child's non-zero exit is a result, not a failure of the swarm. The swarm `succeeded` once every child's
263
+ * command ended (exited, timed out, or could not run) or `stop_when` was met; it `failed` only when no child
264
+ * could start (the fork or restore failed) or the node restarted while it ran. With
265
+ * `stop_when: first_success`, the first child to exit 0 is `result.winner` and the other children's commands
266
+ * are killed (`canceled`). Each stream of output keeps its first `output_max_bytes` bytes, in the record and
267
+ * in the events.
268
+ *
269
+ * After its command ends a child is deleted, unless `keep` keeps it: `succeeded` keeps the children that
270
+ * exited 0, `all` keeps every child. A kept child is an ordinary sandbox that runs to its own `expires_at`,
271
+ * counts against `sandboxes.concurrent` and is billed until you delete it.
272
+ *
273
+ * All children are reserved at once, nothing started unless every one fits: past `sandboxes.concurrent` the
274
+ * answer is `429 concurrency_limited` with `Retry-After`, past `sandboxes.disk_total_max` `422 limit_exceeded`.
275
+ * An organization runs at most `sandboxes.swarms_running` swarms at a time (`422 limit_exceeded`). A sandbox checkpoint must have been created with `forkable: true` (`409 fork_unavailable`) and
276
+ * hold no volume (`409 volume_attached`). Creating a swarm needs `sandboxes:write` and also `sandboxes:run`.
277
+ * Swarms are listed for 7 days after they finish. Behind the `sandboxes.swarms` feature flag: until it is on
278
+ * for your organization every swarm operation answers `404 feature_not_enabled`.
279
+ *
280
+ * `POST /v1/sandboxes/swarms` · scope `sandboxes:write` · served by the node
281
+ */
282
+ createSwarm(body: T.SwarmCreateRequest, options?: RequestOptions): JobPromise<T.Swarm, T.SwarmEvent>;
283
+ /**
284
+ * Get a swarm
285
+ *
286
+ * Returns the swarm with its status, progress, result, timing and every child with its exit code, output and
287
+ * timing. While it runs, children that have not ended show `queued` or `running`. `?wait=` holds the answer
288
+ * until the swarm ends or the wait runs out.
289
+ *
290
+ * `GET /v1/sandboxes/swarms/{swarm_id}` · scope `sandboxes:read` · served by the node
291
+ */
292
+ getSwarm(swarmId: string, params?: T.SandboxesGetSwarmParams, options?: RequestOptions): APIPromise<T.Swarm>;
293
+ /**
294
+ * Cancel a swarm
295
+ *
296
+ * Stops the swarm: commands still running are killed and those children end `canceled`; each child is then
297
+ * deleted unless the swarm's `keep` keeps it (`all` keeps every child, `succeeded` the ones that exited 0).
298
+ * Returns the swarm with status `canceled`.
299
+ *
300
+ * `POST /v1/sandboxes/swarms/{swarm_id}/cancel` · scope `sandboxes:write` · served by the node
301
+ */
302
+ cancelSwarm(swarmId: string, options?: RequestOptions): APIPromise<T.Swarm>;
303
+ /**
304
+ * List a swarm's children
305
+ *
306
+ * Lists the swarm's children by index, with each child's exit code, output and timing. Available while the swarm runs.
307
+ *
308
+ * `GET /v1/sandboxes/swarms/{swarm_id}/children` · scope `sandboxes:read` · served by the node
309
+ */
310
+ listSwarmChildren(swarmId: string, params?: T.SandboxesListSwarmChildrenParams, options?: RequestOptions): ListPromise<T.SwarmChildList, T.SwarmChild>;
311
+ /**
312
+ * Stream a swarm's events
313
+ *
314
+ * Server-sent events for the swarm: lifecycle events, `swarm.forked` with each child's sandbox ID, then
315
+ * `child.started`, `child.exited` or `child.failed` per child, and `child.stdout` and `child.stderr` when the
316
+ * swarm was created with `stream_output: true`. Ends after the terminal event. Reconnect with `Last-Event-ID`
317
+ * to resume. Events are kept with the swarm, so the stream reads the same, with the same `seq`, after the node
318
+ * restarts.
319
+ *
320
+ * `GET /v1/sandboxes/swarms/{swarm_id}/events` · scope `sandboxes:read` · served by the node
321
+ */
322
+ swarmEvents(swarmId: string, options?: StreamOptions): EventStream<T.SwarmEvent>;
172
323
  /**
173
324
  * List templates
174
325
  *
175
326
  * Lists the templates sandboxes can start from (`base`, `code-interpreter`, `agent`, and `browser` where a node
176
327
  * builds it, which the beta node does not yet: Chrome already running in the snapshot, a VM-isolated browser
177
328
  * with DevTools on port 9222) with their OS, runtimes, capabilities, defaults and `size_classes` (the sizes kept
178
- * pre-warmed). It does not list a template's packages.
329
+ * pre-warmed). It does not list a template's packages. The node's templates have `owner: node`; your project's
330
+ * imported images add their templates with `owner: project` and `image` set (`POST /v1/images`). Other
331
+ * projects' image templates are never listed, and getting one answers `404 template_not_found`.
179
332
  *
180
333
  * `GET /v1/sandboxes/templates` · scope `sandboxes:read` · served by the node
181
334
  */
182
335
  listTemplates(options?: RequestOptions): APIPromise<T.TemplateList>;
336
+ /**
337
+ * Create a template
338
+ *
339
+ * Makes a template for this project's sandboxes from a public OCI image (`image`, a reference) or from a
340
+ * Dockerfile build (`build`), with an optional `name` the project's creates start from:
341
+ * `POST /v1/sandboxes {"template": "py:3.11"}`. It takes the request `POST /v1/images` takes (with `image` in
342
+ * place of `ref`), and the template is that image's: one object, listed and deleted with `/v1/images`. The
343
+ * answer is the template's view: its `tpl_` ID (fixed from the start), `name`, `status` (the image's), `image`
344
+ * (the `img_` ID), `rootfs_sha256` once the image is flattened, and `key`. `202` for a new image, `200` for
345
+ * the project's image of the same request. Watch it with `GET /v1/images/{image_id}?wait=30` until `ready`;
346
+ * a create by name before then answers `409 image_not_ready`.
347
+ *
348
+ * A name is unique among the project's images (`409 image_name_taken`) and never a node template's
349
+ * (`422 image_name_reserved`). Another project's name answers `404 template_not_found`, as a template that
350
+ * does not exist. Behind the `images.build` flag (and `images.import`): until it is on for your organization
351
+ * the answer is `404 feature_not_enabled`. `503 product_unavailable` on a node without the images product.
352
+ *
353
+ * A private image names a registry connection in `auth`, as `POST /v1/images` does (`ImageRegistryAuth`): a
354
+ * vault connection of this project of type `basic` whose `hosts` list the registry and its token service.
355
+ * Using it also needs `vault:run` (`403` without it). Another project's connection, or one this credential may
356
+ * not use, answers `404 connection_not_found`; one that is not a registry connection for the image's registry,
357
+ * `422 image_auth_invalid`; a credential the registry refuses, `422 image_refused` with `reason: credentials`.
358
+ * The node reads the secret once, keeps it in memory for that one import and sends it only to the registry's
359
+ * token service: it is never logged, recorded or put in an error. A build takes no `auth`.
360
+ *
361
+ * `POST /v1/sandboxes/templates` · scope `sandboxes:write` · served by the node
362
+ */
363
+ createTemplate(body: T.TemplateCreateRequest, options?: RequestOptions): APIPromise<T.TemplateCreated>;
183
364
  /**
184
365
  * Get a template
185
366
  *
186
- * Returns one template by name (`base`) or ID (`tpl_…`).
367
+ * Returns one template by name (`base`) or ID (`tpl_…`): a node template, or one of your project's image templates, by its ID or its image's `name`. Another project's image template answers `404 template_not_found`.
187
368
  *
188
369
  * `GET /v1/sandboxes/templates/{template}` · scope `sandboxes:read` · served by the node
189
370
  */
190
371
  getTemplate(template: string, options?: RequestOptions): APIPromise<T.Template>;
372
+ /**
373
+ * List volumes
374
+ *
375
+ * Lists the project's volumes on this node, newest first. Deleted volumes are listed only with `status=deleted`.
376
+ *
377
+ * `GET /v1/sandboxes/volumes` · scope `sandboxes:read` · served by the node
378
+ */
379
+ listVolumes(params?: T.SandboxesListVolumesParams, options?: RequestOptions): ListPromise<T.VolumeList, T.Volume>;
380
+ /**
381
+ * Create a volume
382
+ *
383
+ * Creates an ext4 volume of `size_gib` on this node: data that outlives the sandboxes that mount it. Mount it
384
+ * in a sandbox with `volumes` on `POST /v1/sandboxes`; it is held by one running or paused sandbox at a time.
385
+ * Its blocks are allocated at once and reserved on the node's disk, so a full node disk cannot fail a write to
386
+ * it. Bills `sandboxes.volume_gib_h` (its size times the hours it exists, mounted or not) until it is deleted.
387
+ *
388
+ * In this beta a volume is one copy on the node's one drive: there is no backup, and it is not encrypted at
389
+ * rest, like every sandbox disk. Have the code that writes to it fsync what matters: what an app wrote and did
390
+ * not flush when its sandbox's microVM stopped without warning is lost.
391
+ *
392
+ * `POST /v1/sandboxes/volumes` · scope `sandboxes:write` · served by the node
393
+ */
394
+ createVolume(body: T.VolumeCreateRequest, options?: RequestOptions): APIPromise<T.Volume>;
395
+ /**
396
+ * Delete a volume
397
+ *
398
+ * Marks the volume deleted: it is no longer listed or mounted, stops billing, and is purged (its data gone) at
399
+ * `purge_at`, 7 days later, unless you restore it first. Refused while a sandbox holds it (`409
400
+ * volume_attached`). Nothing else deletes a volume.
401
+ *
402
+ * `DELETE /v1/sandboxes/volumes/{volume_id}` · scope `sandboxes:write` · served by the node
403
+ */
404
+ deleteVolume(volumeId: string, options?: RequestOptions): APIPromise<T.Volume>;
405
+ /**
406
+ * Get a volume
407
+ *
408
+ * Returns a volume, deleted ones in their grace included.
409
+ *
410
+ * `GET /v1/sandboxes/volumes/{volume_id}` · scope `sandboxes:read` · served by the node
411
+ */
412
+ getVolume(volumeId: string, options?: RequestOptions): APIPromise<T.Volume>;
413
+ /**
414
+ * Grow a volume or change its metadata
415
+ *
416
+ * Replaces `metadata`, and grows the volume to `size_gib`. A volume grows only, and only while no sandbox
417
+ * holds it (`409 volume_attached`): its file system grows to the new size the next time a sandbox mounts it.
418
+ *
419
+ * `PATCH /v1/sandboxes/volumes/{volume_id}` · scope `sandboxes:write` · served by the node
420
+ */
421
+ updateVolume(volumeId: string, body?: T.VolumeUpdateRequest, options?: RequestOptions): APIPromise<T.Volume>;
422
+ /**
423
+ * Purge a volume now
424
+ *
425
+ * Removes the volume and its data now, deleted or not, without waiting for `purge_at`. `confirm` must be the
426
+ * volume's name. Refused while a sandbox holds it (`409 volume_attached`). This cannot be undone.
427
+ *
428
+ * `POST /v1/sandboxes/volumes/{volume_id}/purge` · scope `sandboxes:write` · served by the node
429
+ */
430
+ purgeVolume(volumeId: string, body: T.VolumePurgeRequest, options?: RequestOptions): APIPromise<T.Deleted>;
431
+ /**
432
+ * Restore a deleted volume
433
+ *
434
+ * A deleted volume whose `purge_at` has not passed is `available` again, with its data. A volume that is not deleted is returned as it is.
435
+ *
436
+ * `POST /v1/sandboxes/volumes/{volume_id}/restore` · scope `sandboxes:write` · served by the node
437
+ */
438
+ restoreVolume(volumeId: string, options?: RequestOptions): APIPromise<T.Volume>;
191
439
  /**
192
440
  * Delete a sandbox
193
441
  *
@@ -204,6 +452,79 @@ export declare class SandboxesAPI extends Namespace {
204
452
  * `GET /v1/sandboxes/{sandbox_id}` · scope `sandboxes:read` · served by the node
205
453
  */
206
454
  getSandbox(sandboxId: string, options?: RequestOptions): APIPromise<T.Sandbox>;
455
+ /**
456
+ * Read a desktop's screen size and pointer
457
+ *
458
+ * The screen size and the pointer position of a sandbox made from a template with the `computer`
459
+ * capability (`desktop`), and who controls its input. `controller` is always `agent` for now. A sandbox of
460
+ * another template answers `409 computer_unavailable`.
461
+ *
462
+ * A paused sandbox is resumed first when your key also has `sandboxes:write` (the scope of
463
+ * `POST /v1/sandboxes/{sandbox_id}/resume`); without it the answer is `409 sandbox_not_running`. A paused
464
+ * sandbox past its `expires_at` is not resumed: extend it with `POST /v1/sandboxes/{sandbox_id}/timeout` first.
465
+ * `503 desktop_unavailable` means the desktop's screen and input server in the sandbox did not answer; it is
466
+ * restarted within a few seconds of stopping. Behind the `sandboxes.desktop` feature flag: until it is on for
467
+ * your organization the operation answers `404 feature_not_enabled`.
468
+ *
469
+ * `GET /v1/sandboxes/{sandbox_id}/computer` · scope `sandboxes:read` · served by the node
470
+ */
471
+ getComputer(sandboxId: string, options?: RequestOptions): APIPromise<T.Computer>;
472
+ /**
473
+ * Send mouse and keyboard actions to a desktop
474
+ *
475
+ * Runs 1 to 32 mouse and keyboard actions in order on a sandbox made from a template with the `computer`
476
+ * capability (`desktop`), then optionally waits for the screen to settle and takes a screenshot, all in one
477
+ * call. Action names follow Anthropic's computer-use actions, so a harness maps them one to one. Coordinates
478
+ * are screen pixels from the top left (`GET /v1/sandboxes/{sandbox_id}/computer` gives the screen size); an
479
+ * action without `x` and `y` acts at the pointer. `type` types up to 8,192 bytes of UTF-8 text (newline and
480
+ * tab included, other control characters refused); `key` presses a chord of xdotool key names
481
+ * (`ctrl+shift+t`, `Return`, `alt+F4`); `key_down` and `key_up` hold and release one key; `wait` waits; the
482
+ * waits of one call add up to at most 30,000 ms.
483
+ *
484
+ * The whole batch is checked before any input is sent: a bad action answers `400 invalid_request` naming it
485
+ * (`actions[2]`), and nothing ran. Then each action gets a result in `results`, in order: `delivery` says
486
+ * whether its input reached the X server (`delivered_unverified`: sent and synced; what the application did
487
+ * with it is not checked) and `retry` whether sending it again is safe (`unsafe` once a click, text or a key
488
+ * landed). An action that fails stops the batch; the actions after it are `not_delivered` with `retry:
489
+ * safe`. Held buttons and keys are released when a batch fails part way.
490
+ *
491
+ * `screenshot` adds a screenshot after the actions (`{format, quality}`, the same as the screenshot
492
+ * operation's query; `null` or left out: none). `settle` waits before the screenshot until the screen has
493
+ * not changed for `quiet_ms` (80 by default), at most `max_ms` (1,000 by default); `settled_by` says which
494
+ * ended the wait. `cursor` is where the pointer ended, `null` when the desktop's X server went away during
495
+ * the batch (then `screenshot` is `null` too). A failed screenshot after the actions also leaves `screenshot`
496
+ * `null` with the results intact.
497
+ *
498
+ * A paused sandbox is resumed first when your key also has `sandboxes:write`, as for
499
+ * `GET /v1/sandboxes/{sandbox_id}/computer`; without it the answer is `409 sandbox_not_running`. A sandbox of
500
+ * another template answers `409 computer_unavailable`. A `503` or `504` after the batch was sent to the
501
+ * sandbox says so in its detail: some actions may have run, so take a screenshot before you send them again.
502
+ * The node logs each action's name, its coordinates and the batch's timing, never typed text (its length
503
+ * only), keys or screenshots. Behind the `sandboxes.desktop` feature flag: until it is on for your
504
+ * organization the operation answers `404 feature_not_enabled`.
505
+ *
506
+ * `POST /v1/sandboxes/{sandbox_id}/computer/actions` · scope `sandboxes:run` · served by the node
507
+ */
508
+ computerAct(sandboxId: string, body: T.ComputerActRequest, options?: RequestOptions): APIPromise<T.ComputerActResult>;
509
+ /**
510
+ * Take a screenshot of a desktop
511
+ *
512
+ * Captures the whole screen of a sandbox made from a template with the `computer` capability (`desktop`).
513
+ * With `Accept: image/png` or `image/jpeg` (or `image/*`, `*\/*`, or no `Accept`) the answer is the image
514
+ * bytes; with `Accept: application/json` it is `{format, width, height, data_base64}`, the shape of a vision
515
+ * screenshot. `format` is `jpeg` (at `quality`, 80 by default) unless the query or `Accept` asks for `png`;
516
+ * `quality` applies to JPEG only. `Server-Timing` has `capture` and `encode` (the time inside the sandbox),
517
+ * `desk` (the round trip to it) and `resume` when a paused sandbox was resumed first.
518
+ *
519
+ * A paused sandbox is resumed first when your key also has `sandboxes:write`, as for
520
+ * `GET /v1/sandboxes/{sandbox_id}/computer`; without it the answer is `409 sandbox_not_running`. A sandbox of
521
+ * another template answers `409 computer_unavailable`. Screenshots are never logged or stored by the node.
522
+ * Behind the `sandboxes.desktop` feature flag: until it is on for your organization the operation answers
523
+ * `404 feature_not_enabled`.
524
+ *
525
+ * `GET /v1/sandboxes/{sandbox_id}/computer/screenshot` · scope `sandboxes:read` · served by the node
526
+ */
527
+ computerScreenshot(sandboxId: string, params?: T.SandboxesComputerScreenshotParams, options?: RequestOptions): APIPromise<T.ScreenshotData>;
207
528
  /**
208
529
  * Change a sandbox's egress policy
209
530
  *
@@ -237,6 +558,24 @@ export declare class SandboxesAPI extends Namespace {
237
558
  * one delivers the events queued before the cut and then ends with an `exec.exit` event whose `error` has
238
559
  * `code: forbidden` and `reason: egress_escalation` and whose `duration_ms` runs to the cut.
239
560
  *
561
+ * With `background: true` and `restart`, the node supervises the process and starts the same command again in
562
+ * the same sandbox when it exits: `on-failure` after an exit with a non-zero code or by a signal, `always` after
563
+ * any exit. The first restart is at once; each further one in a row waits 1, 2, 4, 8, 16, 32 and then 60 s. A
564
+ * run of at least 60 s resets the wait. Five exits within 300 s put the process in `crash_loop`: the node goes
565
+ * on starting it, at most 60 s apart, for as long as the sandbox runs (a dependency that comes back heals it),
566
+ * and a run of 60 s ends `crash_loop`. When the node restarts the process it first kills what is left of its process
567
+ * group, for an exit it saw within 60 s of last seeing the process alive and while the pid is still that
568
+ * process's (after a restart of the node itself it leaves the group alone and only starts the command again). A
569
+ * signal sent from inside the sandbox (`kill -9`, `pkill`) counts as an exit and is restarted; a signal sent
570
+ * with `POST …/processes/{pid}/kill` stops the supervision unless it asks to restart. The sandbox's
571
+ * `supervised` list shows each supervised process: its current `pid`, `state`, `restarts` and `last_exit`.
572
+ * A sandbox supervises at most 8 processes; a ninth `restart` is `400 invalid_request`, as is `restart`
573
+ * without `background` or with `stdin`. The command, `cwd`, `env` and `user` are kept with the sandbox's
574
+ * record on the node's disk for its restarts: pass secrets with the create's `secrets`, not on the command
575
+ * line or in `env`. A fork, or a sandbox restored from a snapshot, supervises nothing: the processes it took
576
+ * over run on unsupervised. Restarts pause while the node's own service restarts; a process that exited
577
+ * then is started again once it is back.
578
+ *
240
579
  * `cmd` as a string runs through `/bin/sh -c`; as an array it is executed directly. Output is UTF-8 (invalid
241
580
  * bytes become U+FFFD) and each stream is capped at 1 MiB in a buffered response.
242
581
  *
@@ -347,7 +686,8 @@ export declare class SandboxesAPI extends Namespace {
347
686
  * `forkable: true` (forkable sandboxes are restored for themselves rather than claimed from a pool, and track
348
687
  * the pages they change); forks are forkable too. The source pauses while its changed memory is written
349
688
  * (`pause`, `base`, `snapshot`, `export` phases in `Server-Timing`), then runs on; like a snapshot this resets
350
- * its open connections to the outside.
689
+ * its open connections to the outside. A paused source is resumed for the fork and paused again (`resume`
690
+ * and `repause` phases), so a checkpoint can wait paused, billing neither meter, between forks.
351
691
  * Each fork counts against your sandbox concurrency and, with the source's `disk_gib`, against
352
692
  * `sandboxes.disk_total_max` (`422 limit_exceeded`). While the node's snapshot or disk store is nearly full,
353
693
  * forks are refused with `503 capacity_unavailable`.
@@ -355,6 +695,56 @@ export declare class SandboxesAPI extends Namespace {
355
695
  * `POST /v1/sandboxes/{sandbox_id}/fork` · scope `sandboxes:write` · served by the node
356
696
  */
357
697
  forkSandbox(sandboxId: string, body?: T.ForkRequest, options?: RequestOptions): APIPromise<T.SandboxList>;
698
+ /**
699
+ * Release a sandbox's lease
700
+ *
701
+ * Ends the sandbox's lease (`end_reason: released`). The sandbox keeps running until its current `expires_at`,
702
+ * which you can still move with `POST /v1/sandboxes/{sandbox_id}/timeout`. Releasing a sandbox that holds no
703
+ * lease, or one that has stopped, changes nothing and answers the sandbox. A sandbox's own credential cannot
704
+ * release a lease (`403 forbidden`, `reason: sandbox`).
705
+ *
706
+ * `DELETE /v1/sandboxes/{sandbox_id}/lease` · scope `sandboxes:write` · served by the node
707
+ */
708
+ releaseLease(sandboxId: string, options?: RequestOptions): APIPromise<T.Sandbox>;
709
+ /**
710
+ * Keep a sandbox running under a lease
711
+ *
712
+ * Holds a lease on the sandbox under `key`, a name of your choosing (the deploy engine uses
713
+ * `b3os:<app>/<service>`). While the lease is held and the sandbox runs, the node keeps it running past its
714
+ * `timeout_s` and past `sandboxes.timeout_max`: whenever less than half of `sandboxes.lease_term` (900 s) is
715
+ * left before `expires_at`, the node moves `expires_at` to `lease_term` from now. Nothing outside the node has
716
+ * to renew it.
717
+ *
718
+ * One live sandbox in a project holds a key at a time. Holding a key on this sandbox takes it from the sandbox
719
+ * that held it: that lease ends (`end_reason: replaced`) and that sandbox's `expires_at` moves to at most
720
+ * `lease_term` from now, so it stops by then unless something extends it. A sandbox holds one lease; a call
721
+ * with another key changes the key it holds. A call with the key it already holds changes nothing.
722
+ *
723
+ * `expect_holder` makes the call conditional on what you read: the sandbox you saw holding `key`, or `null` when
724
+ * you saw none. The node takes the key only while that is still so; otherwise it answers `409
725
+ * lease_holder_changed` with the sandbox that holds it now (`holder`), and changes nothing. A caller that read an
726
+ * older state (a check that read the generation before a deploy handed the key to a newer one) then never takes
727
+ * the key back from the sandbox that got it since. Without `expect_holder` the call takes the key from whichever
728
+ * sandbox holds it.
729
+ *
730
+ * The lease ends when you release it (`DELETE …/lease`, `end_reason: released`; the sandbox then runs out its
731
+ * current `expires_at`) and when the sandbox stops for any reason (`end_reason` is its `stop_reason`:
732
+ * `deleted`, `timeout`, `failed`, `budget`, `revoked`). A paused sandbox is not renewed: it ends at
733
+ * `expires_at` like any paused sandbox. An organization holds at most `sandboxes.leases_max` (5) leases on a
734
+ * node; one more is `422 limit_exceeded`, and lowering the limit ends none already held. A sandbox's own
735
+ * credential (the one its in-VM API holds) cannot hold or release a lease (`403 forbidden`, `reason: sandbox`),
736
+ * so code can never keep its own sandbox, or another, running with it. A real API key you put into a sandbox (in
737
+ * its `env` or `secrets`) is not the sandbox's own credential: code holding it can hold a lease as any caller
738
+ * can, within `sandboxes.leases_max` and the organization's credits and spend caps.
739
+ *
740
+ * A leased sandbox is billed like any running one (`sandboxes.vcpu_ms`, `sandboxes.gib_ms`), so the call is
741
+ * admitted like a create (credits, spend cap). The node checks a running sandbox's budget every 10 s and stops
742
+ * a leased one, ending its lease, as it stops any other (`stop_reason: budget` or `revoked`; a project's service
743
+ * never stops for its key's revoke or expiry, so not `revoked`).
744
+ *
745
+ * `PUT /v1/sandboxes/{sandbox_id}/lease` · scope `sandboxes:write` · served by the node
746
+ */
747
+ holdLease(sandboxId: string, body: T.LeaseRequest, options?: RequestOptions): APIPromise<T.Sandbox>;
358
748
  /**
359
749
  * Stream process logs
360
750
  *
@@ -387,6 +777,36 @@ export declare class SandboxesAPI extends Namespace {
387
777
  * `POST /v1/sandboxes/{sandbox_id}/pause` · scope `sandboxes:write` · served by the node
388
778
  */
389
779
  pauseSandbox(sandboxId: string, options?: RequestOptions): APIPromise<T.Sandbox>;
780
+ /**
781
+ * Give a sandbox port its own host
782
+ *
783
+ * Gives `port` of the sandbox its own host, `https://<port>-sbx-<id>.b3os.io` (`<id>` is the sandbox ID without
784
+ * `sbx_`), and returns a link to it. The app is served at `/` and keeps its cookies, as an application's
785
+ * address does: it gets the request's whole path with no prefix, `Host` is the host, and the cookies it sets
786
+ * stay on this host (`cookies`, `isolated` by default: the same rules as app addresses). Use it for apps that
787
+ * need the root path or sign-in cookies. `POST /v1/sandboxes/{sandbox_id}/ports/{port}/url` keeps working as
788
+ * before.
789
+ *
790
+ * Shared by link only, never public. The link (`url`) works for `ttl_s` seconds (10 minutes by default, at
791
+ * most 24 hours); its first page load sets a cookie that keeps that browser in for 24 hours, and a program can
792
+ * send the link's `b3os_link` value in `x-b3os-link` instead. Anyone else gets a 401 page, the same whether or
793
+ * not the sandbox or the host exists. Each call returns a new link and leaves earlier ones working; `rotate:
794
+ * true` first replaces the host's secret, so every earlier link and cookie of this host stops working within 6
795
+ * seconds. `cookies` sets the host's cookie rule; left out, the host keeps the one it has.
796
+ *
797
+ * The port must be in the sandbox's `ports` and the sandbox running or paused (404 `port_not_exposed`, 409
798
+ * `sandbox_not_running`, and 404 `sandbox_not_found` for a sandbox of another project). While the sandbox is
799
+ * paused or stopped its host answers 503. The host is that sandbox's and port's for good and ends with the
800
+ * sandbox; a fork or a restore has a new ID, so new hosts. A host with no call for 49 hours is forgotten: the
801
+ * next call makes it again with a new secret. A dev server must accept the host (for Vite,
802
+ * `server.allowedHosts: ['.b3os.io']`). Not yet available to code inside a sandbox (its API answers 421
803
+ * `edge_only`). Port 49983 is kept for E2B's envd and gets no host (400). Hosts count toward no address limit.
804
+ * B3 can block a sandbox's hosts (403 `app_host_blocked`). An organization may call this 60 times a minute
805
+ * (429 `rate_limited` with `Retry-After` past that).
806
+ *
807
+ * `POST /v1/sandboxes/{sandbox_id}/ports/{port}/host` · scope `sandboxes:run` · served by beta-api.b3os.org
808
+ */
809
+ createPortHost(sandboxId: string, port: number, body?: T.PortHostRequest, options?: RequestOptions): APIPromise<T.PortHost>;
390
810
  /**
391
811
  * Get a URL for a port
392
812
  *
@@ -423,7 +843,10 @@ export declare class SandboxesAPI extends Namespace {
423
843
  /**
424
844
  * Signal a background process
425
845
  *
426
- * Sends a signal (default `TERM`) to a background process and its process group, and returns the process.
846
+ * Sends a signal (default `TERM`) to a background process and its process group, and returns the process. On a
847
+ * process the node supervises (an exec with `restart`), the call first ends the supervision (`state: stopped`
848
+ * in the sandbox's `supervised`), so the process stays down; with `restart: true` it stays supervised and the
849
+ * node starts it again once it exits, counted as a restart.
427
850
  *
428
851
  * `POST /v1/sandboxes/{sandbox_id}/processes/{pid}/kill` · scope `sandboxes:run` · served by the node
429
852
  */
@@ -483,8 +906,9 @@ export declare class SandboxesAPI extends Namespace {
483
906
  * searches and calls to other sandboxes), newest first, from the node's request log. These are the records
484
907
  * `GET /v1/requests?sandbox_id=` lists, for a caller that may read the sandbox: it needs only `sandboxes:read`,
485
908
  * not `platform:read`, and never returns another sandbox's records. It takes the same paging and the
486
- * `product`, `operation_id`, `status`, `trace_id` and `since` filters; any other query parameter is
487
- * `400 invalid_request`. Requests made to the sandbox's public ports are not listed. A sandbox stopped more
909
+ * `product`, `operation_id`, `status`, `trace_id`, `since` and `pack` filters; any other query parameter is
910
+ * `400 invalid_request`. `pack=io.b3os/wikipedia` lists the sandbox's calls of that pack's actions, through
911
+ * `POST /v1/actions/call` or as tools over MCP (each record's `action`). Requests made to the sandbox's public ports are not listed. A sandbox stopped more
488
912
  * than 7 days ago is not found.
489
913
  *
490
914
  * `GET /v1/sandboxes/{sandbox_id}/requests` · scope `sandboxes:read` · served by the node