@b3os/sdk 0.2.1 → 0.2.2

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 (138) hide show
  1. package/dist/cjs/core/util.d.ts +1 -1
  2. package/dist/cjs/core/util.js +1 -1
  3. package/dist/cjs/generated/client.d.ts +13 -0
  4. package/dist/cjs/generated/client.js +25 -0
  5. package/dist/cjs/generated/client.js.map +1 -1
  6. package/dist/cjs/generated/errors.d.ts +1 -1
  7. package/dist/cjs/generated/errors.js +75 -0
  8. package/dist/cjs/generated/errors.js.map +1 -1
  9. package/dist/cjs/generated/ids.d.ts +61 -0
  10. package/dist/cjs/generated/ids.js +15 -0
  11. package/dist/cjs/generated/ids.js.map +1 -1
  12. package/dist/cjs/generated/jobs.js +4 -0
  13. package/dist/cjs/generated/jobs.js.map +1 -1
  14. package/dist/cjs/generated/ns/actions.d.ts +267 -33
  15. package/dist/cjs/generated/ns/actions.js +375 -33
  16. package/dist/cjs/generated/ns/actions.js.map +1 -1
  17. package/dist/cjs/generated/ns/agents.d.ts +229 -0
  18. package/dist/cjs/generated/ns/agents.js +402 -0
  19. package/dist/cjs/generated/ns/agents.js.map +1 -0
  20. package/dist/cjs/generated/ns/images.d.ts +81 -0
  21. package/dist/cjs/generated/ns/images.js +122 -0
  22. package/dist/cjs/generated/ns/images.js.map +1 -0
  23. package/dist/cjs/generated/ns/infer.d.ts +71 -3
  24. package/dist/cjs/generated/ns/infer.js +98 -3
  25. package/dist/cjs/generated/ns/infer.js.map +1 -1
  26. package/dist/cjs/generated/ns/keys.d.ts +3 -1
  27. package/dist/cjs/generated/ns/keys.js +3 -1
  28. package/dist/cjs/generated/ns/keys.js.map +1 -1
  29. package/dist/cjs/generated/ns/listeners.d.ts +159 -0
  30. package/dist/cjs/generated/ns/listeners.js +264 -0
  31. package/dist/cjs/generated/ns/listeners.js.map +1 -0
  32. package/dist/cjs/generated/ns/orgs.d.ts +10 -0
  33. package/dist/cjs/generated/ns/orgs.js +26 -1
  34. package/dist/cjs/generated/ns/orgs.js.map +1 -1
  35. package/dist/cjs/generated/ns/projects.d.ts +32 -0
  36. package/dist/cjs/generated/ns/projects.js +66 -0
  37. package/dist/cjs/generated/ns/projects.js.map +1 -1
  38. package/dist/cjs/generated/ns/render.d.ts +192 -21
  39. package/dist/cjs/generated/ns/render.js +267 -24
  40. package/dist/cjs/generated/ns/render.js.map +1 -1
  41. package/dist/cjs/generated/ns/requests.d.ts +3 -1
  42. package/dist/cjs/generated/ns/requests.js +3 -1
  43. package/dist/cjs/generated/ns/requests.js.map +1 -1
  44. package/dist/cjs/generated/ns/routines.d.ts +11 -4
  45. package/dist/cjs/generated/ns/routines.js +11 -4
  46. package/dist/cjs/generated/ns/routines.js.map +1 -1
  47. package/dist/cjs/generated/ns/sandboxes.d.ts +292 -7
  48. package/dist/cjs/generated/ns/sandboxes.js +444 -6
  49. package/dist/cjs/generated/ns/sandboxes.js.map +1 -1
  50. package/dist/cjs/generated/ns/usage.d.ts +1 -1
  51. package/dist/cjs/generated/ns/usage.js +1 -1
  52. package/dist/cjs/generated/ns/vision.d.ts +59 -17
  53. package/dist/cjs/generated/ns/vision.js +59 -21
  54. package/dist/cjs/generated/ns/vision.js.map +1 -1
  55. package/dist/cjs/generated/types.d.ts +2564 -68
  56. package/dist/cjs/helpers/sandboxes.d.ts +20 -1
  57. package/dist/cjs/helpers/sandboxes.js +13 -1
  58. package/dist/cjs/helpers/sandboxes.js.map +1 -1
  59. package/dist/esm/core/util.d.ts +1 -1
  60. package/dist/esm/core/util.js +1 -1
  61. package/dist/esm/generated/client.d.ts +13 -0
  62. package/dist/esm/generated/client.js +25 -0
  63. package/dist/esm/generated/client.js.map +1 -1
  64. package/dist/esm/generated/errors.d.ts +1 -1
  65. package/dist/esm/generated/errors.js +75 -0
  66. package/dist/esm/generated/errors.js.map +1 -1
  67. package/dist/esm/generated/ids.d.ts +61 -0
  68. package/dist/esm/generated/ids.js +15 -0
  69. package/dist/esm/generated/ids.js.map +1 -1
  70. package/dist/esm/generated/jobs.js +4 -0
  71. package/dist/esm/generated/jobs.js.map +1 -1
  72. package/dist/esm/generated/ns/actions.d.ts +267 -33
  73. package/dist/esm/generated/ns/actions.js +375 -33
  74. package/dist/esm/generated/ns/actions.js.map +1 -1
  75. package/dist/esm/generated/ns/agents.d.ts +229 -0
  76. package/dist/esm/generated/ns/agents.js +398 -0
  77. package/dist/esm/generated/ns/agents.js.map +1 -0
  78. package/dist/esm/generated/ns/images.d.ts +81 -0
  79. package/dist/esm/generated/ns/images.js +118 -0
  80. package/dist/esm/generated/ns/images.js.map +1 -0
  81. package/dist/esm/generated/ns/infer.d.ts +71 -3
  82. package/dist/esm/generated/ns/infer.js +98 -3
  83. package/dist/esm/generated/ns/infer.js.map +1 -1
  84. package/dist/esm/generated/ns/keys.d.ts +3 -1
  85. package/dist/esm/generated/ns/keys.js +3 -1
  86. package/dist/esm/generated/ns/keys.js.map +1 -1
  87. package/dist/esm/generated/ns/listeners.d.ts +159 -0
  88. package/dist/esm/generated/ns/listeners.js +260 -0
  89. package/dist/esm/generated/ns/listeners.js.map +1 -0
  90. package/dist/esm/generated/ns/orgs.d.ts +10 -0
  91. package/dist/esm/generated/ns/orgs.js +26 -1
  92. package/dist/esm/generated/ns/orgs.js.map +1 -1
  93. package/dist/esm/generated/ns/projects.d.ts +32 -0
  94. package/dist/esm/generated/ns/projects.js +66 -0
  95. package/dist/esm/generated/ns/projects.js.map +1 -1
  96. package/dist/esm/generated/ns/render.d.ts +192 -21
  97. package/dist/esm/generated/ns/render.js +267 -24
  98. package/dist/esm/generated/ns/render.js.map +1 -1
  99. package/dist/esm/generated/ns/requests.d.ts +3 -1
  100. package/dist/esm/generated/ns/requests.js +3 -1
  101. package/dist/esm/generated/ns/requests.js.map +1 -1
  102. package/dist/esm/generated/ns/routines.d.ts +11 -4
  103. package/dist/esm/generated/ns/routines.js +11 -4
  104. package/dist/esm/generated/ns/routines.js.map +1 -1
  105. package/dist/esm/generated/ns/sandboxes.d.ts +292 -7
  106. package/dist/esm/generated/ns/sandboxes.js +444 -6
  107. package/dist/esm/generated/ns/sandboxes.js.map +1 -1
  108. package/dist/esm/generated/ns/usage.d.ts +1 -1
  109. package/dist/esm/generated/ns/usage.js +1 -1
  110. package/dist/esm/generated/ns/vision.d.ts +59 -17
  111. package/dist/esm/generated/ns/vision.js +59 -21
  112. package/dist/esm/generated/ns/vision.js.map +1 -1
  113. package/dist/esm/generated/types.d.ts +2564 -68
  114. package/dist/esm/helpers/sandboxes.d.ts +20 -1
  115. package/dist/esm/helpers/sandboxes.js +13 -1
  116. package/dist/esm/helpers/sandboxes.js.map +1 -1
  117. package/package.json +1 -1
  118. package/src/core/util.ts +1 -1
  119. package/src/generated/client.ts +28 -0
  120. package/src/generated/errors.ts +150 -0
  121. package/src/generated/ids.ts +15 -0
  122. package/src/generated/jobs.ts +4 -0
  123. package/src/generated/ns/actions.ts +403 -33
  124. package/src/generated/ns/agents.ts +461 -0
  125. package/src/generated/ns/images.ts +128 -0
  126. package/src/generated/ns/infer.ts +100 -3
  127. package/src/generated/ns/keys.ts +3 -1
  128. package/src/generated/ns/listeners.ts +296 -0
  129. package/src/generated/ns/orgs.ts +27 -1
  130. package/src/generated/ns/projects.ts +74 -0
  131. package/src/generated/ns/render.ts +277 -24
  132. package/src/generated/ns/requests.ts +3 -1
  133. package/src/generated/ns/routines.ts +11 -4
  134. package/src/generated/ns/sandboxes.ts +492 -7
  135. package/src/generated/ns/usage.ts +1 -1
  136. package/src/generated/ns/vision.ts +59 -21
  137. package/src/generated/types.ts +2907 -192
  138. package/src/helpers/sandboxes.ts +31 -2
@@ -12,15 +12,27 @@ export const ID_PREFIXES = {
12
12
  shot: { object: "screenshot", product: "render" },
13
13
  vid: { object: "video", product: "render" },
14
14
  art: { object: "artifact", product: "render" },
15
+ ins: { object: "inspection", product: "render" },
16
+ shr: { object: "video_share", product: "render", secret: true },
17
+ als: { object: "video_alias", product: "render" },
15
18
  sbx: { object: "sandbox", product: "sandboxes" },
16
19
  snap: { object: "snapshot", product: "sandboxes" },
17
20
  tpl: { object: "template", product: "sandboxes" },
21
+ vol: { object: "volume", product: "sandboxes" },
22
+ swm: { object: "swarm", product: "sandboxes" },
23
+ img: { object: "image", product: "images" },
24
+ agt: { object: "agent", product: "agents" },
25
+ inst: { object: "agent_instance", product: "agents" },
26
+ ses: { object: "agent_session", product: "agents" },
18
27
  rtn: { object: "routine", product: "routines" },
19
28
  ver: { object: "routine_version", product: "routines" },
20
29
  run: { object: "routine_run", product: "routines" },
21
30
  hk: { object: "hook", product: "routines", secret: true },
22
31
  conn: { object: "connection", product: "vault" },
23
32
  tsub: { object: "trigger_subscription", product: "actions" },
33
+ lsn: { object: "listener", product: "listeners" },
34
+ tfile: { object: "tool_file", product: "actions" },
35
+ tblk: { object: "tool_block", product: "actions" },
24
36
  clink: { object: "connect_link", product: "vault" },
25
37
  org: { object: "organization", product: "platform" },
26
38
  prj: { object: "project", product: "platform" },
@@ -34,6 +46,9 @@ export const ID_PREFIXES = {
34
46
  dep: { object: "deploy", product: "platform" },
35
47
  evr: { object: "eval_run", product: "platform" },
36
48
  alt: { object: "alert", product: "platform" },
49
+ chg: { object: "app_change", product: "platform" },
50
+ inv: { object: "org_invite", product: "platform" },
51
+ aud: { object: "audit_entry", product: "platform" },
37
52
  } as const;
38
53
 
39
54
  export type IdPrefix = keyof typeof ID_PREFIXES;
@@ -1,8 +1,10 @@
1
1
  // Generated by packages/sdk/scripts/generate.mjs from packages/spec/dist. Do not edit; run `pnpm generate`.
2
2
 
3
3
  import type { JobOps } from "../core/op.ts";
4
+ import { agentsOps } from "./ns/agents.ts";
4
5
  import { renderOps } from "./ns/render.ts";
5
6
  import { routinesOps } from "./ns/routines.ts";
7
+ import { sandboxesOps } from "./ns/sandboxes.ts";
6
8
  import { visionOps } from "./ns/vision.ts";
7
9
 
8
10
  /** Job operations by job ID prefix (`crawl_` → the crawl's get, events and cancel operations). */
@@ -10,6 +12,8 @@ export const JOB_OPS: Readonly<Record<string, JobOps>> = {
10
12
  batch: visionOps.createBatch.job as JobOps,
11
13
  crawl: visionOps.createCrawl.job as JobOps,
12
14
  vid: renderOps.createVideo.job as JobOps,
15
+ swm: sandboxesOps.createSwarm.job as JobOps,
16
+ ses: agentsOps.sendMessage.job as JobOps,
13
17
  run: routinesOps.replayRun.job as JobOps,
14
18
  };
15
19
 
@@ -22,6 +22,39 @@ const describeOp: Op = {
22
22
  timeoutMs: 10000,
23
23
  scope: "actions:read",
24
24
  };
25
+ const uploadFileOp: Op = {
26
+ id: "actionsUploadFile",
27
+ method: "POST",
28
+ path: "/v1/actions/files",
29
+ body: "bytes",
30
+ contentType: "application/octet-stream",
31
+ timeoutMs: 60000,
32
+ scope: "actions:run",
33
+ };
34
+ const deleteFileOp: Op = {
35
+ id: "actionsDeleteFile",
36
+ method: "DELETE",
37
+ path: "/v1/actions/files/{file_id}",
38
+ params: ["file_id"],
39
+ timeoutMs: 10000,
40
+ scope: "actions:run",
41
+ };
42
+ const getFileOp: Op = {
43
+ id: "actionsGetFile",
44
+ method: "GET",
45
+ path: "/v1/actions/files/{file_id}",
46
+ params: ["file_id"],
47
+ timeoutMs: 10000,
48
+ scope: "actions:run",
49
+ };
50
+ const mcpOp: Op = {
51
+ id: "actionsMcp",
52
+ method: "POST",
53
+ path: "/v1/actions/mcp",
54
+ body: "json",
55
+ timeoutMs: 65000,
56
+ scope: "authenticated",
57
+ };
25
58
  const listPacksOp: Op = {
26
59
  id: "actionsListPacks",
27
60
  method: "GET",
@@ -83,6 +116,33 @@ const putRegistryBlobOp: Op = {
83
116
  timeoutMs: 60000,
84
117
  scope: "actions:tools:publish",
85
118
  };
119
+ const listToolBlocksOp: Op = {
120
+ id: "platformListToolBlocks",
121
+ method: "GET",
122
+ path: "/v1/actions/registry/blocks",
123
+ edge: true,
124
+ timeoutMs: 10000,
125
+ scope: "actions:tools:publish",
126
+ };
127
+ const createToolBlockOp: Op = {
128
+ id: "platformCreateToolBlock",
129
+ method: "POST",
130
+ path: "/v1/actions/registry/blocks",
131
+ body: "json",
132
+ edge: true,
133
+ timeoutMs: 10000,
134
+ scope: "actions:tools:publish",
135
+ };
136
+ const liftToolBlockOp: Op = {
137
+ id: "platformLiftToolBlock",
138
+ method: "POST",
139
+ path: "/v1/actions/registry/blocks/{block_id}/lift",
140
+ params: ["block_id"],
141
+ body: "json",
142
+ edge: true,
143
+ timeoutMs: 10000,
144
+ scope: "actions:tools:publish",
145
+ };
86
146
  const listRegistryPacksOp: Op = {
87
147
  id: "platformListRegistryPacks",
88
148
  method: "GET",
@@ -101,6 +161,15 @@ const publishPackOp: Op = {
101
161
  timeoutMs: 30000,
102
162
  scope: "actions:write",
103
163
  };
164
+ const deleteRegistryPackOp: Op = {
165
+ id: "platformDeleteRegistryPack",
166
+ method: "DELETE",
167
+ path: "/v1/actions/registry/packs/{namespace}/{name}",
168
+ params: ["namespace", "name"],
169
+ edge: true,
170
+ timeoutMs: 30000,
171
+ scope: "actions:tools:publish",
172
+ };
104
173
  const getRegistryPackOp: Op = {
105
174
  id: "platformGetRegistryPack",
106
175
  method: "GET",
@@ -110,6 +179,15 @@ const getRegistryPackOp: Op = {
110
179
  timeoutMs: 10000,
111
180
  scope: "actions:read",
112
181
  };
182
+ const deleteRegistryPackVersionOp: Op = {
183
+ id: "platformDeleteRegistryPackVersion",
184
+ method: "DELETE",
185
+ path: "/v1/actions/registry/packs/{namespace}/{name}/versions/{version}",
186
+ params: ["namespace", "name", "version"],
187
+ edge: true,
188
+ timeoutMs: 30000,
189
+ scope: "actions:tools:publish",
190
+ };
113
191
  const getRegistryPackVersionOp: Op = {
114
192
  id: "platformGetRegistryPackVersion",
115
193
  method: "GET",
@@ -119,6 +197,16 @@ const getRegistryPackVersionOp: Op = {
119
197
  timeoutMs: 10000,
120
198
  scope: "actions:read",
121
199
  };
200
+ const yankRegistryPackVersionOp: Op = {
201
+ id: "platformYankRegistryPackVersion",
202
+ method: "PATCH",
203
+ path: "/v1/actions/registry/packs/{namespace}/{name}/versions/{version}",
204
+ params: ["namespace", "name", "version"],
205
+ body: "json",
206
+ edge: true,
207
+ timeoutMs: 10000,
208
+ scope: "actions:write",
209
+ };
122
210
  const downloadPackOp: Op = {
123
211
  id: "platformDownloadPack",
124
212
  method: "GET",
@@ -162,6 +250,10 @@ const listTriggersOp: Op = {
162
250
  export const actionsOps = {
163
251
  call: callOp,
164
252
  describe: describeOp,
253
+ uploadFile: uploadFileOp,
254
+ deleteFile: deleteFileOp,
255
+ getFile: getFileOp,
256
+ mcp: mcpOp,
165
257
  listPacks: listPacksOp,
166
258
  getPack: getPackOp,
167
259
  getPackTools: getPackToolsOp,
@@ -169,10 +261,16 @@ export const actionsOps = {
169
261
  getRegistryBlob: getRegistryBlobOp,
170
262
  headRegistryBlob: headRegistryBlobOp,
171
263
  putRegistryBlob: putRegistryBlobOp,
264
+ listToolBlocks: listToolBlocksOp,
265
+ createToolBlock: createToolBlockOp,
266
+ liftToolBlock: liftToolBlockOp,
172
267
  listRegistryPacks: listRegistryPacksOp,
173
268
  publishPack: publishPackOp,
269
+ deleteRegistryPack: deleteRegistryPackOp,
174
270
  getRegistryPack: getRegistryPackOp,
271
+ deleteRegistryPackVersion: deleteRegistryPackVersionOp,
175
272
  getRegistryPackVersion: getRegistryPackVersionOp,
273
+ yankRegistryPackVersion: yankRegistryPackVersionOp,
176
274
  downloadPack: downloadPackOp,
177
275
  search: searchOp,
178
276
  listSubscriptions: listSubscriptionsOp,
@@ -214,24 +312,51 @@ export class ActionsAPI extends Namespace {
214
312
  * (response mapping and output schema) for declarative HTTP actions; `sidecar` for JavaScript actions.
215
313
  * Bills one `actions.call` once the action ran.
216
314
  *
217
- * **Hosted tools** (a preview, on for every organization in the beta; without `actions.tools` a `vm` call is
315
+ * From inside a sandbox whose grant has an actions rule (`api.actions.allow`; a deployed service's is the packs
316
+ * its b3os.yaml declares in `uses`), only the pack actions the rule names run, at a version it allows: a call
317
+ * that names a range (`@1`) runs the newest allowed version the range admits, so a service pinned to 1.0.1 keeps
318
+ * running 1.0.1 after 1.0.2 is published. Anything else is refused with `403 action_not_allowed` before the
319
+ * input is read, a connection is resolved or anything is billed. The same calls are the sandbox's tools over
320
+ * MCP (`POST /v1/actions/mcp`).
321
+ *
322
+ * **Hosted tools** (a preview; without `actions.tools` for your organization a `vm` call is
218
323
  * `404 feature_not_enabled` and nothing runs). A `vm` action runs its publisher's command in a fresh microVM
219
324
  * with no network, made for this call only and deleted before the call answers. A file field of the input
220
- * schema (`x-b3os-file`) takes a file value inline, `{"$bytes": "<base64>", "name": "<name>"}` with `name`
221
- * matching `^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$` (`ToolFileInput`); an output file comes back as
222
- * `{"$bytes", "name", "bytes", "contentType"}` (`ToolFileOutput`), 262144 bytes of files in all. The budget is
223
- * the least of `timeout_ms`, the action's own timeout and 60 seconds; a priced action refuses a `timeout_ms`
224
- * below its own (`400 invalid_request`) here, and runs to its own timeout when a routine step calls it. Every
225
- * call is a fresh VM, and a call that finished is charged even if the client had stopped waiting: send
226
- * `Idempotency-Key` with a priced call, so a retry with the same key gets the stored answer and is not charged
227
- * again (a routine step's retry with its key gets the answer of the call it started). Per organization: 120 tool calls started a minute, 4 at once, and
228
- * 20 USD of publisher prices a month, counted on each node (`429`); per node, a limit of tool VMs at once (`503 tool_unavailable`,
229
- * `reason: node_busy`). The answer has `tier: vm`, `cost` in micro-USD, and the `timing` phases `validate`,
230
- * `start`, `copy`, `unpack`, `run`, `collect`, `delete` and `cost`. A tool call bills `actions.tool_call` (the
231
- * floor, once the command ran) instead of `actions.call`, the VM's `actions.vcpu_ms` and `actions.gib_ms`,
232
- * and, once the tool answered, its output matched its schema and its output files were read, the publisher's
233
- * price as `actions.publisher_microusd`. A failure
234
- * before the command ran bills nothing; a failure of the tool bills compute and the floor and no price.
325
+ * schema (`x-b3os-file`) takes one of three file values (`ToolFileInput`): `{"$bytes": "<base64>", "name"}`
326
+ * inline, `{"$url": "https://...", "name"}` fetched by the node, or `{"$file": "tfile_..."}`, a file of your
327
+ * project uploaded with `POST /v1/actions/files` or returned by an earlier call. A `$url` is fetched before
328
+ * any VM is claimed, through the node's egress guard: `https` on port 443 only, a public address resolved once
329
+ * and pinned, at most 3 redirects, no `Authorization` or `Cookie` sent, and at most the action's
330
+ * `execution.maxInputMb` (`422 action_input_invalid` with a `url_*` `reason` otherwise); the bytes it reads
331
+ * bill `egress.bytes` to you, and the tool never sees the URL. Nothing is fetched for a call the spend quota,
332
+ * the concurrency limit or the node's slots refuse. A `$file` of another project is
333
+ * `404 resource_not_found`, and an output file of a tool B3OS has removed is `451 tool_blocked`. An output file comes back as a link (`ToolFileOutput`): `$link` is a signed
334
+ * `usercontent.b3os.org` URL served as a download, valid 1 hour, and `file` its `tfile_` ID, which a later
335
+ * call takes as `$file`. Per call, the action's `execution.maxInputMb` of input files, and `maxOutputMb` and
336
+ * `maxOutputFiles` of output files (`502 tool_failed`, `reason: output_too_large`); per organization,
337
+ * `actions.files_bytes` of files kept on the node (`429 quota_exceeded`; an output file it refuses after the
338
+ * command ran is billed compute and the floor); a node whose file store is full answers
339
+ * `503 tool_unavailable`, `reason: file_store`, and bills nothing. The budget is the least of
340
+ * `timeout_ms`, the action's own timeout and 60 seconds; a priced action refuses a `timeout_ms` below its own
341
+ * (`400 invalid_request`) here, and runs to its own timeout when a routine step calls it. Every call is a
342
+ * fresh VM, and a call that finished is charged even if the client had stopped waiting: send
343
+ * `Idempotency-Key` with a priced call, so a retry with the same key gets the stored answer and is not
344
+ * charged again (a routine step's retry with its key gets the answer of the call it started). Per
345
+ * organization: 120 tool calls started a minute, 4 at once, and 20 USD of publisher prices a month, counted
346
+ * on each node (`429`); per node, a limit of tool VMs at once (`503 tool_unavailable`, `reason: node_busy`).
347
+ * The answer has `tier: vm`, `cost` in micro-USD, and the `timing` phases `validate`, `fetch` (when a `$url`
348
+ * was given), `start`, `copy`, `unpack`, `run`, `collect`, `delete` and `cost`. A tool call bills
349
+ * `actions.tool_call` (the floor, once the command ran) instead of `actions.call`, the VM's
350
+ * `actions.vcpu_ms` and `actions.gib_ms`, and, once the tool answered, its output matched its schema and its
351
+ * output files were stored, the publisher's price as `actions.publisher_microusd`: `per_call` once,
352
+ * `per_second` for the `run` phase only, `per_input_mb` for the input file bytes plus the stdin JSON, each
353
+ * after the pack's free calls for your organization this month. A failure before the command ran bills
354
+ * nothing; a failure of the tool bills compute and the floor and no price, and for an org-private tool (your
355
+ * own organization's, `org.<org>/...`) it carries the first 4096 bytes of the command's `stderr`.
356
+ *
357
+ * A tool B3OS has removed answers `451 tool_blocked` with the block's ID, before anything is claimed or
358
+ * billed, here, as an MCP tool and as a routine step. A node that has never received the list of blocks from
359
+ * the edge runs no tool outside `io.b3os` (`503 tool_unavailable`, `reason: blocks_unknown`).
235
360
  *
236
361
  * `POST /v1/actions/call` · scope `actions:run` · served by the node
237
362
  */
@@ -244,7 +369,11 @@ export class ActionsAPI extends Namespace {
244
369
  *
245
370
  * Returns everything needed to call one action: input and output JSON Schemas, effect class, MCP annotations
246
371
  * and tool definition, and the connections it needs. A reference with `@<major>` resolves to the newest
247
- * matching release; the response shows the exact version.
372
+ * matching release that is not yanked (an exact version resolves even when yanked); the response shows the
373
+ * exact version. A hosted tool's action carries `tool`: its price, file limits, declared error codes, the
374
+ * node's start estimate for its archive and, after its first call on this node, `all_in`, what one call
375
+ * costs all in. An org-private tool (`org.<org>/...`) is described only to its own organization; to anyone
376
+ * else it is `404 pack_not_found`.
248
377
  *
249
378
  * `GET /v1/actions/describe` · scope `actions:read` · served by the node
250
379
  */
@@ -252,6 +381,96 @@ export class ActionsAPI extends Namespace {
252
381
  return this._client._call<T.ActionDescription>(describeOp, { query: params }, options);
253
382
  }
254
383
 
384
+ /**
385
+ * Upload a file for a hosted tool
386
+ *
387
+ * Stores the request body as a file a hosted tool's call can take as `{"$file": "tfile_..."}`. The body is the
388
+ * file's bytes, with `Content-Length`, at most 64 MiB. The node checks your organization's
389
+ * `actions.files_bytes` and its own file store before it writes the first byte, so a refused upload leaves
390
+ * nothing behind (`429 quota_exceeded`; `503 tool_unavailable`, `reason: file_store`). The file is kept
391
+ * 1 hour, readable only from your project, and then deleted. Uploading bills nothing.
392
+ *
393
+ * `POST /v1/actions/files` · scope `actions:run` · served by the node
394
+ */
395
+ uploadFile(params: T.ActionsUploadFileParams, data: BinaryInput, options?: RequestOptions): APIPromise<T.ToolFile> {
396
+ return this._client._call<T.ToolFile>(uploadFileOp, { query: params, body: data }, options);
397
+ }
398
+
399
+ /**
400
+ * Delete a hosted tool file
401
+ *
402
+ * Deletes a file of your project now, before its hour is up. Its links stop working (`404`).
403
+ *
404
+ * `DELETE /v1/actions/files/{file_id}` · scope `actions:run` · served by the node
405
+ */
406
+ deleteFile(fileId: string, options?: RequestOptions): APIPromise<void> {
407
+ return this._client._call<void>(deleteFileOp, { path: [fileId] }, options);
408
+ }
409
+
410
+ /**
411
+ * Get a hosted tool file
412
+ *
413
+ * Returns a file of your project (an upload, a fetched `$url` or an output file) with a fresh signed link,
414
+ * which expires at the earlier of the file's `expires_at` and 1 hour from now. An expired file, a deleted one
415
+ * and another project's are `404`.
416
+ *
417
+ * `GET /v1/actions/files/{file_id}` · scope `actions:run` · served by the node
418
+ */
419
+ getFile(fileId: string, options?: RequestOptions): APIPromise<T.ToolFile> {
420
+ return this._client._call<T.ToolFile>(getFileOp, { path: [fileId] }, options);
421
+ }
422
+
423
+ /**
424
+ * A sandbox's tools over MCP
425
+ *
426
+ * The MCP server of one sandbox, for code inside it: an MCP client in the sandbox (an agent framework, a model
427
+ * harness) mounts `http://127.0.0.1:7700/v1/actions/mcp`, which the node puts in the sandbox's environment as
428
+ * `B3OS_MCP_URL` whenever its grant names packs or holds a product toolset's scopes. `tools/list` lists exactly
429
+ * the actions of the packs the sandbox's actions rule allows (`api.actions.allow`, at the versions it names,
430
+ * with `actions:read`; a deployed service's rule is the packs its b3os.yaml declares in `uses`), with each
431
+ * pack's own names, descriptions and input schemas (`io.b3os/wikipedia` serves `wikipedia__search`,
432
+ * `wikipedia__get-summary` and two more), then the product tools its scopes allow (node release 1119): the
433
+ * `browser_*` tools with `vision:run` and `vision:write` (`uses: browser`), `vision_scrape` and
434
+ * `vision_screenshot` with `vision:run` (`uses: vision`; `vision_extract` also needs `infer:run`), and the
435
+ * `render_*` tools with `render:run` (`uses: render`). A sandbox with neither lists nothing, and the server's
436
+ * instructions say why.
437
+ *
438
+ * A product tool call is that product's own request (`POST /v1/vision/scrape`, `POST
439
+ * /v1/vision/sessions/{session_id}/act`, `POST /v1/render/screenshots`, ...) sent on the sandbox's own
440
+ * connection: the route's scope check, admission (credits, the key's and the grant's spend caps, the
441
+ * operation's limits), meters and request log record are exactly a direct call's, and this request's record
442
+ * carries `action` with the toolset as `pack` and `<product>/<operationId>` as `ref`. The actions product's own
443
+ * rate does not apply to it. A product tool the grant lacks a scope for answers as a tool result with
444
+ * `isError: true` and `403 forbidden` naming the scope and the `uses` entry that grants it.
445
+ *
446
+ * Each pack `tools/call` runs under the sandbox's grant (its scopes, connections and spend cap) exactly as the same
447
+ * `POST /v1/actions/call` would: the same checks (`actions:run`, the organization's actions rate, credits and
448
+ * spend caps), the same meters (`actions.call` and `egress.bytes`, or a hosted tool's units) and the same
449
+ * request log line, with `action` naming the pack, action and tool. A refused or failed call answers as a tool
450
+ * result with `isError: true` and the problem (`action_not_allowed`, `spend_cap_exceeded`,
451
+ * `connection_required`, ...), so the model reads why; `structuredContent.error` carries the code and status.
452
+ * A successful call's text is the output as compact JSON, cut at 16,000 characters with a line saying how much
453
+ * was left out; `structuredContent` is the output when it is an object that was not cut. `initialize`,
454
+ * `tools/list` and `ping` bill nothing.
455
+ *
456
+ * Transport: Streamable HTTP without sessions, JSON answers only (no event stream: `GET` and `DELETE` answer
457
+ * `405`), protocol revisions 2026-07-28 (stateless, with the mirrored `MCP-Protocol-Version`, `Mcp-Method` and
458
+ * `Mcp-Name` headers) and 2024-11-05 through 2025-11-25 (a request after `initialize` names its revision in
459
+ * `MCP-Protocol-Version`), as the edge's `/mcp`. Every JSON-RPC answer is `200`, its errors (an unknown method
460
+ * or tool, bad params) included. What the transport cannot take is an HTTP error with a problem whose detail
461
+ * names the JSON-RPC code: `400 invalid_request` for a body that is not JSON (`-32700`), a batch (one JSON-RPC
462
+ * message per request, `-32600`), an unsupported revision (`-32022`) or headers that disagree with the body on
463
+ * 2026-07-28 (`-32020`); `415 unsupported_media_type` for a body that is not `application/json`; and
464
+ * `403 forbidden` (`reason: origin`) for a request with an `Origin` header, so no page a browser in the sandbox
465
+ * opens can call the tools. Only code inside a sandbox may call it: an API key gets `403 forbidden` with
466
+ * `reason: sandbox_only`; use `https://beta-api.b3os.org/mcp?packs=<pack>` with a key instead.
467
+ *
468
+ * `POST /v1/actions/mcp` · scope `authenticated` · served by the node
469
+ */
470
+ mcp(body: T.McpMessage, options?: RequestOptions): APIPromise<T.McpMessage | void> {
471
+ return this._client._call<T.McpMessage | void>(mcpOp, { body }, options);
472
+ }
473
+
255
474
  /**
256
475
  * List packs
257
476
  *
@@ -266,7 +485,10 @@ export class ActionsAPI extends Namespace {
266
485
  /**
267
486
  * Get a pack
268
487
  *
269
- * Returns a pack version (the latest unless `version` is given) with its actions, triggers, connections and egress hosts.
488
+ * Returns a pack version (the latest that is not yanked unless `version` is given; an exact `version` is
489
+ * returned even when yanked) with its actions, triggers, connections and egress hosts. Each action of a hosted
490
+ * tool carries `tool` (`ActionTool`), with `start_estimate_ms` and `all_in`. An org-private tool is returned
491
+ * only to its own organization; to anyone else it is `404 pack_not_found`.
270
492
  *
271
493
  * `GET /v1/actions/packs/{namespace}/{name}` · scope `actions:read` · served by the node
272
494
  */
@@ -319,8 +541,9 @@ export class ActionsAPI extends Namespace {
319
541
  *
320
542
  * Redirects to a short-lived signed URL for the archive (`application/octet-stream`). Served to a node's
321
543
  * registry sync (a node-signed read), to the organization the publisher list names for a namespace that
322
- * published a pack naming this archive, and to B3's organizations; to anyone else it is `404`, as if it did
323
- * not exist. Verify the sha256 before use.
544
+ * published a pack naming this archive, to the organization whose org-private versions name it, to an
545
+ * organization that uploaded these bytes, and to B3's organizations; to anyone else it is `404`, as if it
546
+ * did not exist. Verify the sha256 before use.
324
547
  *
325
548
  * `GET /v1/actions/registry/blobs/{digest}` · scope `actions:read` · served by beta-api.b3os.org
326
549
  */
@@ -337,9 +560,10 @@ export class ActionsAPI extends Namespace {
337
560
  /**
338
561
  * Check for a hosted tool's archive
339
562
  *
340
- * Answers `200` with the archive's `Content-Length` when the blob store holds `digest`, else `404` (a HEAD
341
- * answer carries no body). `b3os tool
342
- * publish` asks before it uploads. Needs the `actions.tools` flag and the scope `actions:tools:publish`.
563
+ * Answers `200` with the archive's `Content-Length` when the blob store holds `digest` and the caller holds
564
+ * it (B3's organizations hold every archive; see the upload), else `404` (a HEAD answer carries no body), so
565
+ * the client uploads it. `b3os tool publish` asks before it uploads. Needs the `actions.tools` and
566
+ * `actions.tools_publish` flags and the scope `actions:tools:publish`.
343
567
  *
344
568
  * `HEAD /v1/actions/registry/blobs/{digest}` · scope `actions:tools:publish` · served by beta-api.b3os.org
345
569
  */
@@ -354,9 +578,15 @@ export class ActionsAPI extends Namespace {
354
578
  * (`platformPublishPack`). The body is the archive's bytes; `Content-Length` is required and at most
355
579
  * 67108864 (64 MiB), and is checked before the body is read. The edge hashes the body as it streams it to
356
580
  * storage: a body whose sha256 is not `digest`, or whose length is not `Content-Length`, is deleted and
357
- * refused with `422 pack_invalid`. No `Content-Length` is `400 invalid_request`. A digest already stored answers `200` and stores nothing, so a retry is
358
- * safe. Needs the `actions.tools` flag and the scope `actions:tools:publish`, which `*` and `actions:*` never
359
- * grant; in the beta only B3's organizations may upload.
581
+ * refused with `422 pack_invalid`. No `Content-Length` is `400 invalid_request`. A digest already stored
582
+ * answers `200` and stores nothing, so a retry is safe; for an organization that is not one of B3's and does
583
+ * not hold it yet, only after the body hashed to `digest` (else `422 pack_invalid`), which makes it a holder
584
+ * of the archive. An organization holds an archive it uploaded and one a version of a namespace it owns
585
+ * names. Needs the `actions.tools` and `actions.tools_publish`
586
+ * flags and the scope `actions:tools:publish`, which `*` and `actions:*` never grant. An organization that is
587
+ * not one of B3's may upload only while its live org-private archives plus this one stay within
588
+ * `actions.tools.archive_bytes` (1 GiB), checked from `Content-Length` before the body is read
589
+ * (`422 limit_exceeded`).
360
590
  *
361
591
  * `PUT /v1/actions/registry/blobs/{digest}` · scope `actions:tools:publish` · served by beta-api.b3os.org
362
592
  */
@@ -364,10 +594,66 @@ export class ActionsAPI extends Namespace {
364
594
  return this._client._call<T.RegistryBlob>(putRegistryBlobOp, { path: [digest], body: data }, options);
365
595
  }
366
596
 
597
+ /**
598
+ * List hosted tool blocks
599
+ *
600
+ * Every block, lifted ones included, newest first. B3's organizations only, with the scope `actions:tools:publish`.
601
+ *
602
+ * `GET /v1/actions/registry/blocks` · scope `actions:tools:publish` · served by beta-api.b3os.org
603
+ */
604
+ listToolBlocks(
605
+ params?: T.PlatformListToolBlocksParams,
606
+ options?: RequestOptions,
607
+ ): ListPromise<T.ToolBlockList, T.ToolBlock> {
608
+ return this._client._list<T.ToolBlockList, T.ToolBlock>(listToolBlocksOp, { query: params }, options);
609
+ }
610
+
611
+ /**
612
+ * Block a hosted tool
613
+ *
614
+ * Removes a hosted tool from service on every node: its publisher (every pack of the namespace), a pack, one
615
+ * version, or one action (of every version, or of one). Nodes read every block on their budgets poll, every
616
+ * 5 seconds, and from then answer `451 tool_blocked` before anything is claimed or billed, on every surface;
617
+ * a node keeps the blocks it has seen on disk, so a restart without the edge still refuses. A call already
618
+ * running is not stopped (a call lasts at most 60 seconds). Only B3's organizations may block, with the scope
619
+ * `actions:tools:publish`; one key or session is enough. A block of `io.b3os` is refused in this version
620
+ * (`400 invalid_request`: it needs a second person), and so is a `pack` outside `publisher`. `reason` and `requested_by` stay at the edge: nodes and
621
+ * publishers never see them. Only a lift signed with an `io.b3os` release key ends a block.
622
+ *
623
+ * `POST /v1/actions/registry/blocks` · scope `actions:tools:publish` · served by beta-api.b3os.org
624
+ */
625
+ createToolBlock(body: T.ToolBlockCreateRequest, options?: RequestOptions): APIPromise<T.ToolBlock> {
626
+ return this._client._call<T.ToolBlock>(createToolBlockOp, { body }, options);
627
+ }
628
+
629
+ /**
630
+ * Lift a hosted tool block
631
+ *
632
+ * Ends a block, with a signature by an `io.b3os` release key (the production release key; a `#dev-` key off
633
+ * production), made with `packages/packs`' release request and attach. `sig` is the base64url (no padding)
634
+ * Ed25519 signature over the UTF-8 bytes of
635
+ *
636
+ * ```
637
+ * "b3os-tool-lift-v1\n" + id + "\n" + scope + "\n" + publisher + "\n" + (pack or "-") + "\n" + (version or "-") + "\n" + (action or "-") + "\n" + lifted_at
638
+ * ```
639
+ *
640
+ * with `lifted_at` exactly as the body sends it. The edge checks it, and every node checks it again from the
641
+ * budgets feed against its own `io.b3os` keys: a lift that does not verify there is ignored and the block
642
+ * stays in force. A missing or wrong signature, or a key that is not an `io.b3os` release key, is
643
+ * `422 pack_signature_invalid`; a block already lifted is `409 conflict`. B3's organizations only, with the
644
+ * scope `actions:tools:publish`.
645
+ *
646
+ * `POST /v1/actions/registry/blocks/{block_id}/lift` · scope `actions:tools:publish` · served by beta-api.b3os.org
647
+ */
648
+ liftToolBlock(blockId: string, body: T.ToolBlockLift, options?: RequestOptions): APIPromise<T.ToolBlock> {
649
+ return this._client._call<T.ToolBlock>(liftToolBlockOp, { path: [blockId], body }, options);
650
+ }
651
+
367
652
  /**
368
653
  * List registry packs
369
654
  *
370
- * Lists packs in the registry with their latest version. Nodes use it to keep their local index current.
655
+ * Lists packs in the registry with their latest version. Nodes use it to keep their local index current. An
656
+ * org-private pack is listed only to its own organization (and to nodes).
371
657
  *
372
658
  * `GET /v1/actions/registry/packs` · scope `actions:read` · served by beta-api.b3os.org
373
659
  */
@@ -388,12 +674,36 @@ export class ActionsAPI extends Namespace {
388
674
  * immutable. In the beta only B3's organizations may publish, into `io.b3os` or a namespace the registry's
389
675
  * publisher list names for the caller's organization.
390
676
  *
391
- * A pack with a `tool` block (a hosted tool) also needs: the `actions.tools` flag for the caller's
392
- * organization (`404 feature_not_enabled`), the scope `actions:tools:publish`, which `*` and `actions:*` never
393
- * grant (`403 forbidden` with `required_scope`), its archive already uploaded with the sha256 and size the
394
- * manifest names (`PUT /v1/actions/registry/blobs/{digest}`; else `422 pack_invalid` with the pointer
395
- * `/tool/bundle/archive`), and the hosted-tool and price rules of the b3pack publish checks (13 to 20). The
396
- * version records who published it (`published_by`).
677
+ * A pack with a `tool` block (a hosted tool) also needs: the `actions.tools` and `actions.tools_publish` flags
678
+ * for the caller's organization (`404 feature_not_enabled`, even while `actions.tools` is on for every
679
+ * organization), the scope `actions:tools:publish`, which `*` and `actions:*` never grant (`403 forbidden`
680
+ * with `required_scope`), its archive already uploaded with the sha256 and size the manifest names
681
+ * (`PUT /v1/actions/registry/blobs/{digest}`; else `422 pack_invalid` with the pointer
682
+ * `/tool/bundle/archive`), and the hosted-tool, price, schema-cap and escalation rules of the b3pack publish
683
+ * checks (13 to 23; a change of base, size, network, egress or price inside one major is `422 pack_invalid`).
684
+ * The version records who published it (`published_by`). A namespace the publisher list names for an
685
+ * organization that is not one of B3's publishes only while that organization holds `actions.tools_publish`;
686
+ * its versions are signed by the namespace's own key, as before.
687
+ *
688
+ * **Org-private tools.** Any organization holding both flags publishes a tool pack into its own namespace,
689
+ * `org.<its org id in host-safe form>` (`org.org-01m5t68q1b590rj801nbzsqzkk/pandoc`). Another organization's namespace is
690
+ * `403 publisher_not_allowed`, and so is an `org.` pack without a tool block. The manifest is unsigned (one
691
+ * with a `signature` is `422 pack_signature_invalid`): after every check the edge signs
692
+ * `b3pack-sig-v1\n<pack>\n<version>\n<contentHash>` with the organization's key, an Ed25519 key whose seed is
693
+ * HKDF-SHA256 of the edge's secret with salt `b3os-pack-org-key/v1` and info `<org id>#g<generation>`, and
694
+ * the record carries `signature.kid` (`org.<org>#g<generation>`) and `signature.public_key`. No private
695
+ * key is stored. Only the organization itself can see the pack: to every other caller it is
696
+ * `404 pack_not_found` on describe, call, MCP, the registry list and the archive download. Per organization,
697
+ * at most 10 org-private tools, 50 versions per tool and 1 GiB of archives that live versions name
698
+ * (`422 limit_exceeded` with `limit`). A dev version, `<x.y.z>-dev.<unix seconds>`, does not make its pack
699
+ * count toward the tools and is not counted toward the versions, but its archive counts toward the archive
700
+ * bytes, and packs with nothing but a dev version are held to the tools number on their own (`this
701
+ * organization has <n> org-private tools with only a dev version, the most it may keep; delete one first`).
702
+ * Publishing one deletes the pack's earlier dev versions (`dev: true`). An organization that is not one of
703
+ * B3's publishes only hosted tools (any other pack is `403 publisher_not_allowed`, "only hosted tools are
704
+ * published from outside B3 in the beta"), and names only an archive it holds: one whose bytes it uploaded,
705
+ * or one a version of a namespace it owns already names. Any other archive is `422 pack_invalid` as one never
706
+ * uploaded, so the sha256 and size a listed tool's manifest shows are not enough to name it.
397
707
  *
398
708
  * `POST /v1/actions/registry/packs` · scope `actions:write` · served by beta-api.b3os.org
399
709
  */
@@ -401,6 +711,21 @@ export class ActionsAPI extends Namespace {
401
711
  return this._client._call<T.RegistryPackVersion>(publishPackOp, { body: data }, options);
402
712
  }
403
713
 
714
+ /**
715
+ * Delete an org-private tool
716
+ *
717
+ * Deletes every version of an org-private tool of your own organization (`org.<your org>/<name>`): their
718
+ * records and bundles, and each archive that no live version names any more, from the blob store. Nodes
719
+ * unload the versions at their next registry pass. A listed pack is never deleted (`403
720
+ * publisher_not_allowed`, "only org-private tools are deleted; a listed version is yanked"); another
721
+ * organization's pack is `404 pack_not_found`. Needs the scope `actions:tools:publish`.
722
+ *
723
+ * `DELETE /v1/actions/registry/packs/{namespace}/{name}` · scope `actions:tools:publish` · served by beta-api.b3os.org
724
+ */
725
+ deleteRegistryPack(namespace: string, name: string, options?: RequestOptions): APIPromise<void> {
726
+ return this._client._call<void>(deleteRegistryPackOp, { path: [namespace, name] }, options);
727
+ }
728
+
404
729
  /**
405
730
  * Get a registry pack
406
731
  *
@@ -412,6 +737,25 @@ export class ActionsAPI extends Namespace {
412
737
  return this._client._call<T.RegistryPack>(getRegistryPackOp, { path: [namespace, name] }, options);
413
738
  }
414
739
 
740
+ /**
741
+ * Delete a version of an org-private tool
742
+ *
743
+ * Deletes one version of an org-private tool of your own organization: its record and bundle, and its archive
744
+ * when no other live version names it. Nodes unload it at their next registry pass. A listed version is
745
+ * never deleted (`403 publisher_not_allowed`, "only org-private tools are deleted; a listed version is
746
+ * yanked"). Needs the scope `actions:tools:publish`.
747
+ *
748
+ * `DELETE /v1/actions/registry/packs/{namespace}/{name}/versions/{version}` · scope `actions:tools:publish` · served by beta-api.b3os.org
749
+ */
750
+ deleteRegistryPackVersion(
751
+ namespace: string,
752
+ name: string,
753
+ version: string,
754
+ options?: RequestOptions,
755
+ ): APIPromise<void> {
756
+ return this._client._call<void>(deleteRegistryPackVersionOp, { path: [namespace, name, version] }, options);
757
+ }
758
+
415
759
  /**
416
760
  * Get a registry pack version
417
761
  *
@@ -432,6 +776,32 @@ export class ActionsAPI extends Namespace {
432
776
  );
433
777
  }
434
778
 
779
+ /**
780
+ * Yank or restore a pack version
781
+ *
782
+ * Sets whether a version is yanked. A yanked version stays published and resolves only when pinned exactly
783
+ * (`@1.0.0`); a range or major (`@1`) skips it, so new callers move to another version and pinned ones keep
784
+ * working. It moves the pack's `updated_at`, which nodes read on their budgets poll, so each node rereads the
785
+ * pack's records within seconds. Allowed for the namespace's owner (your own `org.` namespace, or the
786
+ * organization the publisher list names for it) and for B3's organizations, with the scope
787
+ * `actions:tools:publish` for a hosted tool's pack and `actions:write` for any other.
788
+ *
789
+ * `PATCH /v1/actions/registry/packs/{namespace}/{name}/versions/{version}` · scope `actions:write` · served by beta-api.b3os.org
790
+ */
791
+ yankRegistryPackVersion(
792
+ namespace: string,
793
+ name: string,
794
+ version: string,
795
+ body: T.RegistryYankRequest,
796
+ options?: RequestOptions,
797
+ ): APIPromise<T.RegistryPackVersion> {
798
+ return this._client._call<T.RegistryPackVersion>(
799
+ yankRegistryPackVersionOp,
800
+ { path: [namespace, name, version], body },
801
+ options,
802
+ );
803
+ }
804
+
435
805
  /**
436
806
  * Download a pack version
437
807
  *