@boxrouter/sdk 0.0.0-stage → 0.12.190

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 (343) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +40 -0
  3. package/README.md +508 -2
  4. package/dist/addresses.d.ts +5 -0
  5. package/dist/addresses.js +10 -0
  6. package/dist/api-error.d.ts +62 -0
  7. package/dist/api-error.js +264 -0
  8. package/dist/boxrouter.d.ts +68 -0
  9. package/dist/boxrouter.js +291 -0
  10. package/dist/browser-session/index.d.ts +17 -0
  11. package/dist/browser-session/index.js +48 -0
  12. package/dist/browser-session/operations.gen.d.ts +272 -0
  13. package/dist/browser-session/operations.gen.js +58 -0
  14. package/dist/browser-session/responseContracts/api_keys.d.ts +2 -0
  15. package/dist/browser-session/responseContracts/api_keys.js +10 -0
  16. package/dist/browser-session/responseContracts/credits.d.ts +2 -0
  17. package/dist/browser-session/responseContracts/credits.js +8 -0
  18. package/dist/browser-session/responseContracts/github.d.ts +2 -0
  19. package/dist/browser-session/responseContracts/github.js +11 -0
  20. package/dist/browser-session/responseContracts/identity.d.ts +2 -0
  21. package/dist/browser-session/responseContracts/identity.js +30 -0
  22. package/dist/browser-session/responseContracts/organizations.d.ts +2 -0
  23. package/dist/browser-session/responseContracts/organizations.js +17 -0
  24. package/dist/browser-session/responseContracts/privacy.d.ts +2 -0
  25. package/dist/browser-session/responseContracts/privacy.js +7 -0
  26. package/dist/browser-session/responseContracts.gen.d.ts +3 -0
  27. package/dist/browser-session/responseContracts.gen.js +10 -0
  28. package/dist/browser-session/responseValidators/api_keys-diagnostics.cjs +1 -0
  29. package/dist/browser-session/responseValidators/api_keys-diagnostics.d.cts +4 -0
  30. package/dist/browser-session/responseValidators/api_keys.cjs +2 -0
  31. package/dist/browser-session/responseValidators/api_keys.d.cts +4 -0
  32. package/dist/browser-session/responseValidators/credits-diagnostics.cjs +1 -0
  33. package/dist/browser-session/responseValidators/credits-diagnostics.d.cts +3 -0
  34. package/dist/browser-session/responseValidators/credits.cjs +2 -0
  35. package/dist/browser-session/responseValidators/credits.d.cts +3 -0
  36. package/dist/browser-session/responseValidators/github-diagnostics.cjs +1 -0
  37. package/dist/browser-session/responseValidators/github-diagnostics.d.cts +3 -0
  38. package/dist/browser-session/responseValidators/github.cjs +2 -0
  39. package/dist/browser-session/responseValidators/github.d.cts +3 -0
  40. package/dist/browser-session/responseValidators/identity-diagnostics.cjs +1 -0
  41. package/dist/browser-session/responseValidators/identity-diagnostics.d.cts +23 -0
  42. package/dist/browser-session/responseValidators/identity.cjs +2 -0
  43. package/dist/browser-session/responseValidators/identity.d.cts +23 -0
  44. package/dist/browser-session/responseValidators/organizations-diagnostics.cjs +1 -0
  45. package/dist/browser-session/responseValidators/organizations-diagnostics.d.cts +15 -0
  46. package/dist/browser-session/responseValidators/organizations.cjs +2 -0
  47. package/dist/browser-session/responseValidators/organizations.d.cts +15 -0
  48. package/dist/browser-session/responseValidators/privacy-diagnostics.cjs +1 -0
  49. package/dist/browser-session/responseValidators/privacy-diagnostics.d.cts +2 -0
  50. package/dist/browser-session/responseValidators/privacy.cjs +2 -0
  51. package/dist/browser-session/responseValidators/privacy.d.cts +2 -0
  52. package/dist/client/client.gen.d.ts +2 -0
  53. package/dist/client/client.gen.js +168 -0
  54. package/dist/client/index.d.ts +10 -0
  55. package/dist/client/index.js +17 -0
  56. package/dist/client/types.gen.d.ts +120 -0
  57. package/dist/client/types.gen.js +3 -0
  58. package/dist/client/utils.gen.d.ts +37 -0
  59. package/dist/client/utils.gen.js +239 -0
  60. package/dist/client.gen.d.ts +12 -0
  61. package/dist/client.gen.js +6 -0
  62. package/dist/command-check.gen.d.ts +14 -0
  63. package/dist/command-check.gen.js +23 -0
  64. package/dist/command-input.gen.d.ts +6 -0
  65. package/dist/command-input.gen.js +45 -0
  66. package/dist/core/auth.gen.d.ts +25 -0
  67. package/dist/core/auth.gen.js +18 -0
  68. package/dist/core/binaryStream.d.ts +8 -0
  69. package/dist/core/binaryStream.js +76 -0
  70. package/dist/core/bodySerializer.gen.d.ts +25 -0
  71. package/dist/core/bodySerializer.gen.js +60 -0
  72. package/dist/core/commandValidators.cjs +1 -0
  73. package/dist/core/commandValidators.d.cts +14 -0
  74. package/dist/core/eventValidation.d.ts +17 -0
  75. package/dist/core/eventValidation.js +56 -0
  76. package/dist/core/eventValidators.cjs +1 -0
  77. package/dist/core/eventValidators.d.cts +2 -0
  78. package/dist/core/json.d.ts +3 -0
  79. package/dist/core/json.js +33 -0
  80. package/dist/core/params.gen.d.ts +43 -0
  81. package/dist/core/params.gen.js +112 -0
  82. package/dist/core/pathSerializer.gen.d.ts +33 -0
  83. package/dist/core/pathSerializer.gen.js +115 -0
  84. package/dist/core/queryKeySerializer.gen.d.ts +18 -0
  85. package/dist/core/queryKeySerializer.gen.js +98 -0
  86. package/dist/core/responseContracts/actions.d.ts +2 -0
  87. package/dist/core/responseContracts/actions.js +30 -0
  88. package/dist/core/responseContracts/agents.d.ts +2 -0
  89. package/dist/core/responseContracts/agents.js +7 -0
  90. package/dist/core/responseContracts/artifacts.d.ts +2 -0
  91. package/dist/core/responseContracts/artifacts.js +8 -0
  92. package/dist/core/responseContracts/commands.d.ts +2 -0
  93. package/dist/core/responseContracts/commands.js +6 -0
  94. package/dist/core/responseContracts/credits.d.ts +2 -0
  95. package/dist/core/responseContracts/credits.js +27 -0
  96. package/dist/core/responseContracts/files.d.ts +2 -0
  97. package/dist/core/responseContracts/files.js +15 -0
  98. package/dist/core/responseContracts/github.d.ts +2 -0
  99. package/dist/core/responseContracts/github.js +8 -0
  100. package/dist/core/responseContracts/images.d.ts +2 -0
  101. package/dist/core/responseContracts/images.js +8 -0
  102. package/dist/core/responseContracts/launchRuns.d.ts +2 -0
  103. package/dist/core/responseContracts/launchRuns.js +10 -0
  104. package/dist/core/responseContracts/launches.d.ts +2 -0
  105. package/dist/core/responseContracts/launches.js +10 -0
  106. package/dist/core/responseContracts/operations.d.ts +2 -0
  107. package/dist/core/responseContracts/operations.js +7 -0
  108. package/dist/core/responseContracts/previews.d.ts +2 -0
  109. package/dist/core/responseContracts/previews.js +8 -0
  110. package/dist/core/responseContracts/pricing.d.ts +2 -0
  111. package/dist/core/responseContracts/pricing.js +6 -0
  112. package/dist/core/responseContracts/processes.d.ts +2 -0
  113. package/dist/core/responseContracts/processes.js +11 -0
  114. package/dist/core/responseContracts/provider_accounts.d.ts +2 -0
  115. package/dist/core/responseContracts/provider_accounts.js +13 -0
  116. package/dist/core/responseContracts/providers.d.ts +2 -0
  117. package/dist/core/responseContracts/providers.js +6 -0
  118. package/dist/core/responseContracts/routing.d.ts +2 -0
  119. package/dist/core/responseContracts/routing.js +8 -0
  120. package/dist/core/responseContracts/sandboxes.d.ts +2 -0
  121. package/dist/core/responseContracts/sandboxes.js +15 -0
  122. package/dist/core/responseContracts/secrets.d.ts +2 -0
  123. package/dist/core/responseContracts/secrets.js +8 -0
  124. package/dist/core/responseContracts/spend_limits.d.ts +2 -0
  125. package/dist/core/responseContracts/spend_limits.js +8 -0
  126. package/dist/core/responseContracts/terminals.d.ts +2 -0
  127. package/dist/core/responseContracts/terminals.js +11 -0
  128. package/dist/core/responseContracts/usage.d.ts +2 -0
  129. package/dist/core/responseContracts/usage.js +7 -0
  130. package/dist/core/responseContracts/volumes.d.ts +2 -0
  131. package/dist/core/responseContracts/volumes.js +19 -0
  132. package/dist/core/responseContracts.gen.d.ts +3 -0
  133. package/dist/core/responseContracts.gen.js +27 -0
  134. package/dist/core/responseModes.d.ts +19 -0
  135. package/dist/core/responseModes.js +13 -0
  136. package/dist/core/responseValidation.d.ts +44 -0
  137. package/dist/core/responseValidation.js +174 -0
  138. package/dist/core/responseValidators/actions-diagnostics.cjs +4 -0
  139. package/dist/core/responseValidators/actions-diagnostics.d.cts +24 -0
  140. package/dist/core/responseValidators/actions.cjs +2 -0
  141. package/dist/core/responseValidators/actions.d.cts +24 -0
  142. package/dist/core/responseValidators/agents-diagnostics.cjs +1 -0
  143. package/dist/core/responseValidators/agents-diagnostics.d.cts +2 -0
  144. package/dist/core/responseValidators/agents.cjs +2 -0
  145. package/dist/core/responseValidators/agents.d.cts +2 -0
  146. package/dist/core/responseValidators/artifacts-diagnostics.cjs +1 -0
  147. package/dist/core/responseValidators/artifacts-diagnostics.d.cts +2 -0
  148. package/dist/core/responseValidators/artifacts.cjs +2 -0
  149. package/dist/core/responseValidators/artifacts.d.cts +2 -0
  150. package/dist/core/responseValidators/commands-diagnostics.cjs +1 -0
  151. package/dist/core/responseValidators/commands-diagnostics.d.cts +1 -0
  152. package/dist/core/responseValidators/commands.cjs +2 -0
  153. package/dist/core/responseValidators/commands.d.cts +1 -0
  154. package/dist/core/responseValidators/compact.cjs +122 -0
  155. package/dist/core/responseValidators/credits-diagnostics.cjs +1 -0
  156. package/dist/core/responseValidators/credits-diagnostics.d.cts +21 -0
  157. package/dist/core/responseValidators/credits.cjs +2 -0
  158. package/dist/core/responseValidators/credits.d.cts +21 -0
  159. package/dist/core/responseValidators/files-diagnostics.cjs +1 -0
  160. package/dist/core/responseValidators/files-diagnostics.d.cts +5 -0
  161. package/dist/core/responseValidators/files.cjs +2 -0
  162. package/dist/core/responseValidators/files.d.cts +5 -0
  163. package/dist/core/responseValidators/github-diagnostics.cjs +1 -0
  164. package/dist/core/responseValidators/github-diagnostics.d.cts +2 -0
  165. package/dist/core/responseValidators/github.cjs +2 -0
  166. package/dist/core/responseValidators/github.d.cts +2 -0
  167. package/dist/core/responseValidators/images-diagnostics.cjs +1 -0
  168. package/dist/core/responseValidators/images-diagnostics.d.cts +3 -0
  169. package/dist/core/responseValidators/images.cjs +2 -0
  170. package/dist/core/responseValidators/images.d.cts +3 -0
  171. package/dist/core/responseValidators/launchRuns-diagnostics.cjs +1 -0
  172. package/dist/core/responseValidators/launchRuns-diagnostics.d.cts +5 -0
  173. package/dist/core/responseValidators/launchRuns.cjs +2 -0
  174. package/dist/core/responseValidators/launchRuns.d.cts +5 -0
  175. package/dist/core/responseValidators/launches-diagnostics.cjs +10 -0
  176. package/dist/core/responseValidators/launches-diagnostics.d.cts +5 -0
  177. package/dist/core/responseValidators/launches.cjs +2 -0
  178. package/dist/core/responseValidators/launches.d.cts +5 -0
  179. package/dist/core/responseValidators/operations-diagnostics.cjs +1 -0
  180. package/dist/core/responseValidators/operations-diagnostics.d.cts +2 -0
  181. package/dist/core/responseValidators/operations.cjs +2 -0
  182. package/dist/core/responseValidators/operations.d.cts +2 -0
  183. package/dist/core/responseValidators/previews-diagnostics.cjs +1 -0
  184. package/dist/core/responseValidators/previews-diagnostics.d.cts +3 -0
  185. package/dist/core/responseValidators/previews.cjs +2 -0
  186. package/dist/core/responseValidators/previews.d.cts +3 -0
  187. package/dist/core/responseValidators/pricing-diagnostics.cjs +7 -0
  188. package/dist/core/responseValidators/pricing-diagnostics.d.cts +1 -0
  189. package/dist/core/responseValidators/pricing.cjs +2 -0
  190. package/dist/core/responseValidators/pricing.d.cts +1 -0
  191. package/dist/core/responseValidators/processes-diagnostics.cjs +1 -0
  192. package/dist/core/responseValidators/processes-diagnostics.d.cts +2 -0
  193. package/dist/core/responseValidators/processes.cjs +2 -0
  194. package/dist/core/responseValidators/processes.d.cts +2 -0
  195. package/dist/core/responseValidators/provider_accounts-diagnostics.cjs +1 -0
  196. package/dist/core/responseValidators/provider_accounts-diagnostics.d.cts +8 -0
  197. package/dist/core/responseValidators/provider_accounts.cjs +2 -0
  198. package/dist/core/responseValidators/provider_accounts.d.cts +8 -0
  199. package/dist/core/responseValidators/providers-diagnostics.cjs +1 -0
  200. package/dist/core/responseValidators/providers-diagnostics.d.cts +1 -0
  201. package/dist/core/responseValidators/providers.cjs +2 -0
  202. package/dist/core/responseValidators/providers.d.cts +1 -0
  203. package/dist/core/responseValidators/routing-diagnostics.cjs +1 -0
  204. package/dist/core/responseValidators/routing-diagnostics.d.cts +3 -0
  205. package/dist/core/responseValidators/routing.cjs +2 -0
  206. package/dist/core/responseValidators/routing.d.cts +3 -0
  207. package/dist/core/responseValidators/sandboxes-diagnostics.cjs +1 -0
  208. package/dist/core/responseValidators/sandboxes-diagnostics.d.cts +10 -0
  209. package/dist/core/responseValidators/sandboxes.cjs +2 -0
  210. package/dist/core/responseValidators/sandboxes.d.cts +10 -0
  211. package/dist/core/responseValidators/secrets-diagnostics.cjs +1 -0
  212. package/dist/core/responseValidators/secrets-diagnostics.d.cts +1 -0
  213. package/dist/core/responseValidators/secrets.cjs +2 -0
  214. package/dist/core/responseValidators/secrets.d.cts +1 -0
  215. package/dist/core/responseValidators/spend_limits-diagnostics.cjs +1 -0
  216. package/dist/core/responseValidators/spend_limits-diagnostics.d.cts +3 -0
  217. package/dist/core/responseValidators/spend_limits.cjs +2 -0
  218. package/dist/core/responseValidators/spend_limits.d.cts +3 -0
  219. package/dist/core/responseValidators/terminals-diagnostics.cjs +1 -0
  220. package/dist/core/responseValidators/terminals-diagnostics.d.cts +2 -0
  221. package/dist/core/responseValidators/terminals.cjs +2 -0
  222. package/dist/core/responseValidators/terminals.d.cts +2 -0
  223. package/dist/core/responseValidators/usage-diagnostics.cjs +1 -0
  224. package/dist/core/responseValidators/usage-diagnostics.d.cts +1 -0
  225. package/dist/core/responseValidators/usage.cjs +2 -0
  226. package/dist/core/responseValidators/usage.d.cts +1 -0
  227. package/dist/core/responseValidators/volumes-diagnostics.cjs +1 -0
  228. package/dist/core/responseValidators/volumes-diagnostics.d.cts +10 -0
  229. package/dist/core/responseValidators/volumes.cjs +2 -0
  230. package/dist/core/responseValidators/volumes.d.cts +10 -0
  231. package/dist/core/serverSentEvents.gen.d.ts +30 -0
  232. package/dist/core/serverSentEvents.gen.js +313 -0
  233. package/dist/core/streamErrors.d.ts +32 -0
  234. package/dist/core/streamErrors.js +51 -0
  235. package/dist/core/types.gen.d.ts +83 -0
  236. package/dist/core/types.gen.js +3 -0
  237. package/dist/core/utils.gen.d.ts +19 -0
  238. package/dist/core/utils.gen.js +93 -0
  239. package/dist/creation.gen.d.ts +21 -0
  240. package/dist/creation.gen.js +35 -0
  241. package/dist/data-origin.d.ts +25 -0
  242. package/dist/data-origin.js +57 -0
  243. package/dist/error-codes.gen.d.ts +2 -0
  244. package/dist/error-codes.gen.js +2 -0
  245. package/dist/idempotency.gen.d.ts +1 -0
  246. package/dist/idempotency.gen.js +60 -0
  247. package/dist/images.d.ts +74 -0
  248. package/dist/images.js +88 -0
  249. package/dist/index.d.ts +22 -0
  250. package/dist/index.js +80 -0
  251. package/dist/launch-input.gen.d.ts +9 -0
  252. package/dist/launch-input.gen.js +83 -0
  253. package/dist/launch.d.ts +28 -0
  254. package/dist/launch.js +222 -0
  255. package/dist/namespace-actions.d.mts +307 -0
  256. package/dist/namespace-actions.mjs +595 -0
  257. package/dist/namespace-agents.d.mts +33 -0
  258. package/dist/namespace-agents.mjs +40 -0
  259. package/dist/namespace-artifacts.d.mts +46 -0
  260. package/dist/namespace-artifacts.mjs +69 -0
  261. package/dist/namespace-base.d.mts +7 -0
  262. package/dist/namespace-base.mjs +7 -0
  263. package/dist/namespace-commands.d.mts +57 -0
  264. package/dist/namespace-commands.mjs +57 -0
  265. package/dist/namespace-credits.d.mts +213 -0
  266. package/dist/namespace-credits.mjs +476 -0
  267. package/dist/namespace-files.d.mts +203 -0
  268. package/dist/namespace-files.mjs +334 -0
  269. package/dist/namespace-github.d.mts +50 -0
  270. package/dist/namespace-github.mjs +68 -0
  271. package/dist/namespace-images.d.mts +52 -0
  272. package/dist/namespace-images.mjs +78 -0
  273. package/dist/namespace-launch_runs.d.mts +89 -0
  274. package/dist/namespace-launch_runs.mjs +133 -0
  275. package/dist/namespace-launches.d.mts +89 -0
  276. package/dist/namespace-launches.mjs +133 -0
  277. package/dist/namespace-operations.d.mts +45 -0
  278. package/dist/namespace-operations.mjs +52 -0
  279. package/dist/namespace-previews.d.mts +79 -0
  280. package/dist/namespace-previews.mjs +101 -0
  281. package/dist/namespace-pricing.d.mts +31 -0
  282. package/dist/namespace-pricing.mjs +22 -0
  283. package/dist/namespace-processes.d.mts +125 -0
  284. package/dist/namespace-processes.mjs +184 -0
  285. package/dist/namespace-provider_accounts.d.mts +156 -0
  286. package/dist/namespace-provider_accounts.mjs +241 -0
  287. package/dist/namespace-providers.d.mts +28 -0
  288. package/dist/namespace-providers.mjs +24 -0
  289. package/dist/namespace-routing.d.mts +64 -0
  290. package/dist/namespace-routing.mjs +86 -0
  291. package/dist/namespace-sandboxes.d.mts +287 -0
  292. package/dist/namespace-sandboxes.mjs +402 -0
  293. package/dist/namespace-secrets.d.mts +46 -0
  294. package/dist/namespace-secrets.mjs +68 -0
  295. package/dist/namespace-spend_limits.d.mts +48 -0
  296. package/dist/namespace-spend_limits.mjs +70 -0
  297. package/dist/namespace-terminals.d.mts +112 -0
  298. package/dist/namespace-terminals.mjs +177 -0
  299. package/dist/namespace-usage.d.mts +46 -0
  300. package/dist/namespace-usage.mjs +53 -0
  301. package/dist/namespace-volumes.d.mts +110 -0
  302. package/dist/namespace-volumes.mjs +269 -0
  303. package/dist/operations.d.ts +14 -0
  304. package/dist/operations.js +31 -0
  305. package/dist/retry.d.ts +8 -0
  306. package/dist/retry.js +63 -0
  307. package/dist/routing-choices.gen.d.ts +132 -0
  308. package/dist/routing-choices.gen.js +136 -0
  309. package/dist/routing.d.ts +23 -0
  310. package/dist/routing.js +38 -0
  311. package/dist/sandbox-handle.gen.d.ts +8 -0
  312. package/dist/sandbox-handle.gen.js +14 -0
  313. package/dist/sandboxes.d.ts +213 -0
  314. package/dist/sandboxes.js +507 -0
  315. package/dist/sdk.gen.d.ts +2029 -0
  316. package/dist/sdk.gen.js +3862 -0
  317. package/dist/server-timing.d.ts +19 -0
  318. package/dist/server-timing.gen.d.ts +265 -0
  319. package/dist/server-timing.gen.js +254 -0
  320. package/dist/server-timing.js +421 -0
  321. package/dist/spend-limits.d.ts +17 -0
  322. package/dist/spend-limits.js +26 -0
  323. package/dist/telemetry.d.ts +51 -0
  324. package/dist/telemetry.gen.d.ts +1 -0
  325. package/dist/telemetry.gen.js +5 -0
  326. package/dist/telemetry.js +438 -0
  327. package/dist/terminal.d.ts +61 -0
  328. package/dist/terminal.js +266 -0
  329. package/dist/transfer.d.ts +75 -0
  330. package/dist/transfer.js +389 -0
  331. package/dist/types.gen.d.ts +15016 -0
  332. package/dist/types.gen.js +3 -0
  333. package/dist/user-agent.d.ts +2 -0
  334. package/dist/user-agent.js +18 -0
  335. package/dist/version.gen.d.ts +1 -0
  336. package/dist/version.gen.js +5 -0
  337. package/dist/volumes.d.ts +33 -0
  338. package/dist/volumes.js +221 -0
  339. package/dist/waits.d.ts +31 -0
  340. package/dist/waits.js +42 -0
  341. package/dist/workflow-policy.gen.d.ts +41 -0
  342. package/dist/workflow-policy.gen.js +45 -0
  343. package/package.json +135 -4
@@ -0,0 +1,334 @@
1
+ import { HeyApiClient } from './namespace-base.mjs';
2
+ export class Files extends HeyApiClient {
3
+ /**
4
+ * Read exact file bytes
5
+ *
6
+ * You can rely on:
7
+ * - Returns complete bytes, or resource_limit with no prefix returned.
8
+ * - Reading a directory or another path that is not a regular file fails and returns no data.
9
+ * - An absent path is not_found, outcome failed: a read has no effect, so its outcome is never unknown.
10
+ *
11
+ * You can set: path.
12
+ *
13
+ * Not promised: consistency while another writer changes the file.
14
+ *
15
+ * The limit is the advertised limits.file_transfer_bytes. Bytes are not text-decoded.
16
+ * Closing the transfer does not destroy the sandbox. A stream that ends before
17
+ * Content-Length is an incomplete transfer, not a successful file read.
18
+ *
19
+ */
20
+ read(options) {
21
+ return (options.client ?? this.client).get({
22
+ responseStyle: 'data',
23
+ security: [{ scheme: 'bearer', type: 'http' }, {
24
+ in: 'cookie',
25
+ name: '__Host-boxrouter_session',
26
+ type: 'apiKey'
27
+ }],
28
+ url: '/sandboxes/{sandbox_id}/files/content',
29
+ ...options
30
+ });
31
+ }
32
+ /**
33
+ * Read exact file bytes
34
+ *
35
+ * You can rely on:
36
+ * - Returns complete bytes, or resource_limit with no prefix returned.
37
+ * - Reading a directory or another path that is not a regular file fails and returns no data.
38
+ * - An absent path is not_found, outcome failed: a read has no effect, so its outcome is never unknown.
39
+ *
40
+ * You can set: path.
41
+ *
42
+ * Not promised: consistency while another writer changes the file.
43
+ *
44
+ * The limit is the advertised limits.file_transfer_bytes. Bytes are not text-decoded.
45
+ * Closing the transfer does not destroy the sandbox. A stream that ends before
46
+ * Content-Length is an incomplete transfer, not a successful file read.
47
+ *
48
+ */
49
+ readStream(options) {
50
+ return (options.client ?? this.client).get({
51
+ security: [{ scheme: 'bearer', type: 'http' }, {
52
+ in: 'cookie',
53
+ name: '__Host-boxrouter_session',
54
+ type: 'apiKey'
55
+ }],
56
+ url: '/sandboxes/{sandbox_id}/files/content',
57
+ ...options,
58
+ parseAs: "binaryStream",
59
+ responseStyle: "fields"
60
+ });
61
+ }
62
+ /**
63
+ * Write exact file bytes
64
+ *
65
+ * You can rely on:
66
+ * - Writes exact bytes.
67
+ * - Creates missing parents.
68
+ * - A new file is readable and writable by the command user.
69
+ * - The size limit is enforced.
70
+ *
71
+ * You can set: path, data.
72
+ *
73
+ * Not promised: owner, mode or executable bit; atomic replace; whether a symbolic link at the path is followed or replaced.
74
+ *
75
+ * The limit is the advertised limits.file_transfer_bytes. A failed transfer may leave
76
+ * partial data; the error's outcome describes what is known. SDK text helpers must encode
77
+ * text as UTF-8 before transfer.
78
+ *
79
+ */
80
+ write(options) {
81
+ return (options.client ?? this.client).put({
82
+ bodySerializer: null,
83
+ responseStyle: 'data',
84
+ security: [{ scheme: 'bearer', type: 'http' }, {
85
+ in: 'cookie',
86
+ name: '__Host-boxrouter_session',
87
+ type: 'apiKey'
88
+ }],
89
+ url: '/sandboxes/{sandbox_id}/files/content',
90
+ ...options,
91
+ headers: {
92
+ 'Content-Type': 'application/octet-stream',
93
+ ...options.headers
94
+ }
95
+ });
96
+ }
97
+ /**
98
+ * Create a sandbox file upload
99
+ *
100
+ * You can rely on:
101
+ * - A completed upload leaves exactly the declared bytes at the path; a body of another length is refused.
102
+ *
103
+ * You can set: path, size.
104
+ *
105
+ * Not promised: removing bytes already written when an upload is aborted.
106
+ *
107
+ * Starts an upload of a file of known size to an absolute path in a running sandbox. Send
108
+ * every returned part as described by its `TransferPart`, then call `completeSandboxUpload`
109
+ * with each part's response `ETag`, if any. BoxRouter chooses the `route`; it is
110
+ * informational and clients must not branch on it. Upload links and the session last up to
111
+ * six hours after creation; `expires_at` says when they end. Launch behaviour is always
112
+ * exactly one part. Idempotency-Key is required on create, complete and abort; repeat an
113
+ * uncertain call with the same key.
114
+ *
115
+ */
116
+ createUpload(options) {
117
+ return (options.client ?? this.client).post({
118
+ responseStyle: 'data',
119
+ security: [{ scheme: 'bearer', type: 'http' }, {
120
+ in: 'cookie',
121
+ name: '__Host-boxrouter_session',
122
+ type: 'apiKey'
123
+ }],
124
+ url: '/sandboxes/{sandbox_id}/files/uploads',
125
+ ...options,
126
+ headers: {
127
+ 'Content-Type': 'application/json',
128
+ ...options.headers
129
+ }
130
+ });
131
+ }
132
+ /**
133
+ * Complete a sandbox file upload
134
+ *
135
+ * You can rely on:
136
+ * - A completed upload leaves exactly the declared bytes at the path; a body of another length is refused.
137
+ *
138
+ * You can set: path, size.
139
+ *
140
+ * Not promised: removing bytes already written when an upload is aborted.
141
+ *
142
+ * Supply each part number exactly once with the `ETag` header returned by its request, if
143
+ * it returned one. Repeating the call with the same idempotency key returns the same result.
144
+ *
145
+ */
146
+ completeUpload(options) {
147
+ return (options.client ?? this.client).post({
148
+ responseStyle: 'data',
149
+ security: [{ scheme: 'bearer', type: 'http' }, {
150
+ in: 'cookie',
151
+ name: '__Host-boxrouter_session',
152
+ type: 'apiKey'
153
+ }],
154
+ url: '/sandboxes/{sandbox_id}/files/uploads/{upload_id}/complete',
155
+ ...options,
156
+ headers: {
157
+ 'Content-Type': 'application/json',
158
+ ...options.headers
159
+ }
160
+ });
161
+ }
162
+ /**
163
+ * Abort a sandbox file upload
164
+ *
165
+ * You can rely on:
166
+ * - A completed upload leaves exactly the declared bytes at the path; a body of another length is refused.
167
+ *
168
+ * You can set: path, size.
169
+ *
170
+ * Not promised: removing bytes already written when an upload is aborted.
171
+ *
172
+ * Idempotent.
173
+ *
174
+ */
175
+ abortUpload(options) {
176
+ return (options.client ?? this.client).delete({
177
+ responseStyle: 'data',
178
+ security: [{ scheme: 'bearer', type: 'http' }, {
179
+ in: 'cookie',
180
+ name: '__Host-boxrouter_session',
181
+ type: 'apiKey'
182
+ }],
183
+ url: '/sandboxes/{sandbox_id}/files/uploads/{upload_id}',
184
+ ...options
185
+ });
186
+ }
187
+ /**
188
+ * Create a sandbox file download
189
+ *
190
+ * You can rely on:
191
+ * - A complete download returns exactly the file's bytes; a transfer that ends short fails instead of returning a prefix.
192
+ *
193
+ * You can set: path.
194
+ *
195
+ * Not promised: the file's size before the download starts.
196
+ *
197
+ * Creates a temporary download link for a file in a running sandbox. The link lasts up to
198
+ * one hour after creation; `expires_at` says when it ends. `route` is informational and
199
+ * clients must not branch on it.
200
+ *
201
+ */
202
+ createDownload(options) {
203
+ return (options.client ?? this.client).post({
204
+ responseStyle: 'data',
205
+ security: [{ scheme: 'bearer', type: 'http' }, {
206
+ in: 'cookie',
207
+ name: '__Host-boxrouter_session',
208
+ type: 'apiKey'
209
+ }],
210
+ url: '/sandboxes/{sandbox_id}/files/downloads',
211
+ ...options,
212
+ headers: {
213
+ 'Content-Type': 'application/json',
214
+ ...options.headers
215
+ }
216
+ });
217
+ }
218
+ /**
219
+ * List the immediate entries of a directory
220
+ *
221
+ * You can rely on:
222
+ * - Returns every immediate entry, including hidden ones and broken symbolic links, sorted by name.
223
+ * - Each entry has its type (file, directory, symlink, other); a link is not followed.
224
+ * - More entries than the advertised limit fail; the list is never truncated.
225
+ *
226
+ * You can set: path.
227
+ *
228
+ * Not promised: metadata beyond the type; a consistent snapshot while the directory changes.
229
+ *
230
+ * An unreadable or missing directory fails; it does not appear empty. No recursion.
231
+ *
232
+ */
233
+ list(options) {
234
+ return (options.client ?? this.client).get({
235
+ responseStyle: 'data',
236
+ security: [{ scheme: 'bearer', type: 'http' }, {
237
+ in: 'cookie',
238
+ name: '__Host-boxrouter_session',
239
+ type: 'apiKey'
240
+ }],
241
+ url: '/sandboxes/{sandbox_id}/files/directories',
242
+ ...options
243
+ });
244
+ }
245
+ /**
246
+ * Create a directory
247
+ *
248
+ * You can rely on:
249
+ * - parents=true (the default) creates missing parents and accepts an existing directory.
250
+ * - parents=false requires the parent and refuses an existing path.
251
+ *
252
+ * You can set: path, parents.
253
+ *
254
+ * Not promised: mode and owner beyond command-user usability.
255
+ *
256
+ * A failure may leave some parent directories created. An uncertain mutation is never automatically replayed.
257
+ *
258
+ */
259
+ mkdir(options) {
260
+ return (options.client ?? this.client).post({
261
+ responseStyle: 'data',
262
+ security: [{ scheme: 'bearer', type: 'http' }, {
263
+ in: 'cookie',
264
+ name: '__Host-boxrouter_session',
265
+ type: 'apiKey'
266
+ }],
267
+ url: '/sandboxes/{sandbox_id}/files/directories',
268
+ ...options,
269
+ headers: {
270
+ 'Content-Type': 'application/json',
271
+ ...options.headers
272
+ }
273
+ });
274
+ }
275
+ /**
276
+ * Check for an accessible filesystem target
277
+ *
278
+ * You can rely on:
279
+ * - Follows symbolic links. True when the target exists; false when it is missing, the link is broken, or the target is not accessible.
280
+ * - A failure to check raises an error; it never reads as false.
281
+ *
282
+ * You can set: path.
283
+ *
284
+ * Not promised: whether the answer still holds after the call.
285
+ *
286
+ * Transport and command-startup failures remain errors. This read does not reserve the path or guarantee it remains present.
287
+ *
288
+ */
289
+ exists(options) {
290
+ return (options.client ?? this.client).get({
291
+ responseStyle: 'data',
292
+ security: [{ scheme: 'bearer', type: 'http' }, {
293
+ in: 'cookie',
294
+ name: '__Host-boxrouter_session',
295
+ type: 'apiKey'
296
+ }],
297
+ url: '/sandboxes/{sandbox_id}/files/exists',
298
+ ...options
299
+ });
300
+ }
301
+ /**
302
+ * Remove a file, symbolic link or directory
303
+ *
304
+ * You can rely on:
305
+ * - Removes only the named entry.
306
+ * - A nonempty directory needs recursive.
307
+ * - A symbolic link, broken or not, is unlinked and its target kept.
308
+ * - A missing path fails.
309
+ * - The sandbox root is refused.
310
+ *
311
+ * You can set: path, recursive.
312
+ *
313
+ * Not promised: atomicity; partial progress after a failure.
314
+ *
315
+ * A final slash does not change which entry is removed. Failures may leave partial changes. An uncertain mutation is never automatically replayed.
316
+ *
317
+ */
318
+ remove(options) {
319
+ return (options.client ?? this.client).post({
320
+ responseStyle: 'data',
321
+ security: [{ scheme: 'bearer', type: 'http' }, {
322
+ in: 'cookie',
323
+ name: '__Host-boxrouter_session',
324
+ type: 'apiKey'
325
+ }],
326
+ url: '/sandboxes/{sandbox_id}/files/remove',
327
+ ...options,
328
+ headers: {
329
+ 'Content-Type': 'application/json',
330
+ ...options.headers
331
+ }
332
+ });
333
+ }
334
+ }
@@ -0,0 +1,50 @@
1
+ import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client/index.js';
2
+ import { HeyApiClient } from './namespace-base.mjs';
3
+ import type { GithubListInstallationsData, GithubListInstallationsErrors, GithubListInstallationsResponses, GithubListRepositoriesData, GithubListRepositoriesErrors, GithubListRepositoriesResponses, GithubUnlinkInstallationData, GithubUnlinkInstallationErrors, GithubUnlinkInstallationResponses } from './types.gen.js';
4
+ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
5
+ /**
6
+ * You can provide a client instance returned by `createClient()` instead of
7
+ * individual options. This might be also useful if you want to implement a
8
+ * custom client.
9
+ */
10
+ client?: Client;
11
+ /**
12
+ * You can pass arbitrary values through the `meta` object. This can be
13
+ * used to access values that aren't defined as part of the SDK function.
14
+ */
15
+ meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
16
+ };
17
+ export declare class Github extends HeyApiClient {
18
+ /**
19
+ * List GitHub App installations linked to this workspace
20
+ *
21
+ * Requires read authority in the authenticated workspace. Results include only
22
+ * installations linked to that workspace; an installation ID supplied by a caller
23
+ * is not authority. Empty workspaces return an empty page. This is a read and never
24
+ * installs, uninstalls or relinks the App.
25
+ *
26
+ */
27
+ listInstallations<ThrowOnError extends boolean = true>(options?: Options<GithubListInstallationsData, ThrowOnError>): RequestResult<GithubListInstallationsResponses, GithubListInstallationsErrors, ThrowOnError, 'data'>;
28
+ /**
29
+ * Unlink a GitHub App installation from this workspace
30
+ *
31
+ * Requires workspace administrator authority. Browser-session calls require the CSRF
32
+ * token and configured Origin. An Idempotency-Key identifies this one unlink request;
33
+ * an identical replay returns its recorded result, a changed request under that key
34
+ * conflicts, and an unknown GitHub or storage outcome is reconciled without replay.
35
+ * Unlinking prevents new Actions work and does not uninstall the shared App from
36
+ * GitHub or cancel already accepted workflow runs.
37
+ *
38
+ */
39
+ unlinkInstallation<ThrowOnError extends boolean = true>(options: Options<GithubUnlinkInstallationData, ThrowOnError>): RequestResult<GithubUnlinkInstallationResponses, GithubUnlinkInstallationErrors, ThrowOnError, 'data'>;
40
+ /**
41
+ * List repositories visible through a linked installation
42
+ *
43
+ * Requires read authority in the authenticated workspace. The installation must be
44
+ * linked to that workspace and its current GitHub permissions are revalidated; names
45
+ * are descriptive while stable repository IDs bind settings and work. Results contain
46
+ * no installation access credentials. Empty installations return an empty page.
47
+ *
48
+ */
49
+ listRepositories<ThrowOnError extends boolean = true>(options: Options<GithubListRepositoriesData, ThrowOnError>): RequestResult<GithubListRepositoriesResponses, GithubListRepositoriesErrors, ThrowOnError, 'data'>;
50
+ }
@@ -0,0 +1,68 @@
1
+ import { HeyApiClient } from './namespace-base.mjs';
2
+ export class Github extends HeyApiClient {
3
+ /**
4
+ * List GitHub App installations linked to this workspace
5
+ *
6
+ * Requires read authority in the authenticated workspace. Results include only
7
+ * installations linked to that workspace; an installation ID supplied by a caller
8
+ * is not authority. Empty workspaces return an empty page. This is a read and never
9
+ * installs, uninstalls or relinks the App.
10
+ *
11
+ */
12
+ listInstallations(options) {
13
+ return (options?.client ?? this.client).get({
14
+ responseStyle: 'data',
15
+ security: [{ scheme: 'bearer', type: 'http' }, {
16
+ in: 'cookie',
17
+ name: '__Host-boxrouter_session',
18
+ type: 'apiKey'
19
+ }],
20
+ url: '/github/installations',
21
+ ...options
22
+ });
23
+ }
24
+ /**
25
+ * Unlink a GitHub App installation from this workspace
26
+ *
27
+ * Requires workspace administrator authority. Browser-session calls require the CSRF
28
+ * token and configured Origin. An Idempotency-Key identifies this one unlink request;
29
+ * an identical replay returns its recorded result, a changed request under that key
30
+ * conflicts, and an unknown GitHub or storage outcome is reconciled without replay.
31
+ * Unlinking prevents new Actions work and does not uninstall the shared App from
32
+ * GitHub or cancel already accepted workflow runs.
33
+ *
34
+ */
35
+ unlinkInstallation(options) {
36
+ return (options.client ?? this.client).delete({
37
+ responseStyle: 'data',
38
+ security: [{ scheme: 'bearer', type: 'http' }, {
39
+ in: 'cookie',
40
+ name: '__Host-boxrouter_session',
41
+ type: 'apiKey'
42
+ }],
43
+ url: '/github/installations/{installation_id}',
44
+ ...options
45
+ });
46
+ }
47
+ /**
48
+ * List repositories visible through a linked installation
49
+ *
50
+ * Requires read authority in the authenticated workspace. The installation must be
51
+ * linked to that workspace and its current GitHub permissions are revalidated; names
52
+ * are descriptive while stable repository IDs bind settings and work. Results contain
53
+ * no installation access credentials. Empty installations return an empty page.
54
+ *
55
+ */
56
+ listRepositories(options) {
57
+ return (options.client ?? this.client).get({
58
+ responseStyle: 'data',
59
+ security: [{ scheme: 'bearer', type: 'http' }, {
60
+ in: 'cookie',
61
+ name: '__Host-boxrouter_session',
62
+ type: 'apiKey'
63
+ }],
64
+ url: '/github/repositories',
65
+ ...options
66
+ });
67
+ }
68
+ }
@@ -0,0 +1,52 @@
1
+ import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client/index.js';
2
+ import { HeyApiClient } from './namespace-base.mjs';
3
+ import type { ImagesPrepareData, ImagesPrepareErrors, ImagesPrepareResponses, ImagesStatusData, ImagesStatusErrors, ImagesStatusResponses, ImagesUnprepareData, ImagesUnprepareErrors, ImagesUnprepareResponses } from './types.gen.js';
4
+ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
5
+ /**
6
+ * You can provide a client instance returned by `createClient()` instead of
7
+ * individual options. This might be also useful if you want to implement a
8
+ * custom client.
9
+ */
10
+ client?: Client;
11
+ /**
12
+ * You can pass arbitrary values through the `meta` object. This can be
13
+ * used to access values that aren't defined as part of the SDK function.
14
+ */
15
+ meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
16
+ };
17
+ export declare class Images extends HeyApiClient {
18
+ /**
19
+ * Prepare an image on selected providers
20
+ *
21
+ * Start background preparation using this workspace's payer-account rules, on the named
22
+ * `providers` or on the `top` providers a create with the `match` body would pick now.
23
+ * A named provider that cannot run the image reports its fit reason immediately; a
24
+ * `match` body that no route can run is refused as that create would be. With `match`,
25
+ * the response lists the picked providers in rank order, and each reason says how it
26
+ * was ranked. A ready result means a usable copy existed when preparation completed;
27
+ * it does not keep the copy awake afterward. Read progress from GET /images/preparations.
28
+ * OCI and Dockerfile inputs use the same declared preparation capabilities as a create.
29
+ * A Dockerfile response returns a content selector for status and unprepare. If no selected
30
+ * offering declares prepared Dockerfile/context support, it is refused before reading the
31
+ * context or starting provider work. Existing provider artifacts are already prepared.
32
+ * The request JSON is limited to 64 KiB; uploaded contexts retain the artifacts API limits.
33
+ *
34
+ */
35
+ prepare<ThrowOnError extends boolean = true>(options: Options<ImagesPrepareData, ThrowOnError>): RequestResult<ImagesPrepareResponses, ImagesPrepareErrors, ThrowOnError, 'data'>;
36
+ /**
37
+ * Read image preparation status
38
+ *
39
+ * Reads preparation state recorded for the requested image in this workspace. The providers query can limit the result; omitted returns every recorded provider. A content selector reads the workspace's recorded copy without contacting a registry.
40
+ */
41
+ status<ThrowOnError extends boolean = true>(options: Options<ImagesStatusData, ThrowOnError>): RequestResult<ImagesStatusResponses, ImagesStatusErrors, ThrowOnError, 'data'>;
42
+ /**
43
+ * Remove this workspace's prepared image copies
44
+ *
45
+ * Remove only copies Cloud recorded for this workspace. Copies on managed accounts
46
+ * that other workspaces still use remain available, while this workspace's use is
47
+ * dropped. The image itself is not deleted. A provider reports gone only after it
48
+ * confirms removal. A later sandbox create may prepare the image again.
49
+ *
50
+ */
51
+ unprepare<ThrowOnError extends boolean = true>(options: Options<ImagesUnprepareData, ThrowOnError>): RequestResult<ImagesUnprepareResponses, ImagesUnprepareErrors, ThrowOnError, 'data'>;
52
+ }
@@ -0,0 +1,78 @@
1
+ import { HeyApiClient } from './namespace-base.mjs';
2
+ export class Images extends HeyApiClient {
3
+ /**
4
+ * Prepare an image on selected providers
5
+ *
6
+ * Start background preparation using this workspace's payer-account rules, on the named
7
+ * `providers` or on the `top` providers a create with the `match` body would pick now.
8
+ * A named provider that cannot run the image reports its fit reason immediately; a
9
+ * `match` body that no route can run is refused as that create would be. With `match`,
10
+ * the response lists the picked providers in rank order, and each reason says how it
11
+ * was ranked. A ready result means a usable copy existed when preparation completed;
12
+ * it does not keep the copy awake afterward. Read progress from GET /images/preparations.
13
+ * OCI and Dockerfile inputs use the same declared preparation capabilities as a create.
14
+ * A Dockerfile response returns a content selector for status and unprepare. If no selected
15
+ * offering declares prepared Dockerfile/context support, it is refused before reading the
16
+ * context or starting provider work. Existing provider artifacts are already prepared.
17
+ * The request JSON is limited to 64 KiB; uploaded contexts retain the artifacts API limits.
18
+ *
19
+ */
20
+ prepare(options) {
21
+ return (options.client ?? this.client).post({
22
+ responseStyle: 'data',
23
+ security: [{ scheme: 'bearer', type: 'http' }, {
24
+ in: 'cookie',
25
+ name: '__Host-boxrouter_session',
26
+ type: 'apiKey'
27
+ }],
28
+ url: '/images/prepare',
29
+ ...options,
30
+ headers: {
31
+ 'Content-Type': 'application/json',
32
+ ...options.headers
33
+ }
34
+ });
35
+ }
36
+ /**
37
+ * Read image preparation status
38
+ *
39
+ * Reads preparation state recorded for the requested image in this workspace. The providers query can limit the result; omitted returns every recorded provider. A content selector reads the workspace's recorded copy without contacting a registry.
40
+ */
41
+ status(options) {
42
+ return (options.client ?? this.client).get({
43
+ responseStyle: 'data',
44
+ security: [{ scheme: 'bearer', type: 'http' }, {
45
+ in: 'cookie',
46
+ name: '__Host-boxrouter_session',
47
+ type: 'apiKey'
48
+ }],
49
+ url: '/images/preparations',
50
+ ...options
51
+ });
52
+ }
53
+ /**
54
+ * Remove this workspace's prepared image copies
55
+ *
56
+ * Remove only copies Cloud recorded for this workspace. Copies on managed accounts
57
+ * that other workspaces still use remain available, while this workspace's use is
58
+ * dropped. The image itself is not deleted. A provider reports gone only after it
59
+ * confirms removal. A later sandbox create may prepare the image again.
60
+ *
61
+ */
62
+ unprepare(options) {
63
+ return (options.client ?? this.client).post({
64
+ responseStyle: 'data',
65
+ security: [{ scheme: 'bearer', type: 'http' }, {
66
+ in: 'cookie',
67
+ name: '__Host-boxrouter_session',
68
+ type: 'apiKey'
69
+ }],
70
+ url: '/images/unprepare',
71
+ ...options,
72
+ headers: {
73
+ 'Content-Type': 'application/json',
74
+ ...options.headers
75
+ }
76
+ });
77
+ }
78
+ }
@@ -0,0 +1,89 @@
1
+ import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client/index.js';
2
+ import { HeyApiClient } from './namespace-base.mjs';
3
+ import type { LaunchRunsCreateData, LaunchRunsCreateErrors, LaunchRunsCreateResponses, LaunchRunsDestroyCopyData, LaunchRunsDestroyCopyErrors, LaunchRunsDestroyCopyResponses, LaunchRunsGetData, LaunchRunsGetErrors, LaunchRunsGetResponses, LaunchRunsListData, LaunchRunsListErrors, LaunchRunsListResponses, LaunchRunsStopData, LaunchRunsStopErrors, LaunchRunsStopResponses } from './types.gen.js';
4
+ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
5
+ /**
6
+ * You can provide a client instance returned by `createClient()` instead of
7
+ * individual options. This might be also useful if you want to implement a
8
+ * custom client.
9
+ */
10
+ client?: Client;
11
+ /**
12
+ * You can pass arbitrary values through the `meta` object. This can be
13
+ * used to access values that aren't defined as part of the SDK function.
14
+ */
15
+ meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
16
+ };
17
+ export declare class LaunchRuns extends HeyApiClient {
18
+ /**
19
+ * List launch runs
20
+ *
21
+ * List the authenticated workspace's launch runs, newest first, as lightweight summaries.
22
+ * Rows contain no copy items, specs, command data or outputs; read getLaunchRun for one
23
+ * run's copies. `total_copies` and `live_copies` cover every run in the workspace, not
24
+ * only the returned page. A live copy is one whose sandbox has not been confirmed absent,
25
+ * including copies that are stopping. The read uses stored metadata only and makes no
26
+ * provider calls. Responses are private to the workspace and must not be cached.
27
+ *
28
+ * If launch-run copies are not available to you, the read still answers 200, with `available`
29
+ * false, no runs and zero totals.
30
+ *
31
+ * `next_cursor` is an opaque, workspace-scoped value for the next page and is null on the
32
+ * last page. A cursor from another workspace or a malformed cursor is invalid_request.
33
+ *
34
+ */
35
+ list<ThrowOnError extends boolean = true>(options?: Options<LaunchRunsListData, ThrowOnError>): RequestResult<LaunchRunsListResponses, LaunchRunsListErrors, ThrowOnError, 'data'>;
36
+ /**
37
+ * Start an unattended launch run
38
+ *
39
+ * Reserve one workspace-owned run and all requested copies atomically. The existing
40
+ * launch request fields select exactly one catalog agent or inline manifest; `copies`
41
+ * is required. Acceptance returns 202 with a Location for metadata polling and makes
42
+ * no provider create before the executor claims each copy. Reuse the same
43
+ * Idempotency-Key and identical body to recover an uncertain acceptance; a changed
44
+ * body conflicts and never creates another run.
45
+ *
46
+ * Credential selectors are resolved at each copy claim. Secret values and provider
47
+ * tokens are never stored. Saved secrets are re-read by name, so rotation can affect
48
+ * later copies. Inline secret_values, interactive launches, and unsupported manifest
49
+ * features are refused before reservation. The feature remains opt-in until compatible
50
+ * clients are released.
51
+ *
52
+ */
53
+ create<ThrowOnError extends boolean = true>(options: Options<LaunchRunsCreateData, ThrowOnError>): RequestResult<LaunchRunsCreateResponses, LaunchRunsCreateErrors, ThrowOnError, 'data'>;
54
+ /**
55
+ * Read launch run metadata
56
+ *
57
+ * Read the stored run row and copy rows only. This response excludes command data and
58
+ * output fields and makes no provider calls. `include=command` opts into bounded state
59
+ * and exit-code observations for active copies; the server uses at most eight
60
+ * observations at once and one five-second response deadline. Unknown, hung, saturated,
61
+ * or failed observations return `unknown`. Neither variant exposes command text,
62
+ * outputs, process handles, or credentials. Foreign and missing IDs have the same 404
63
+ * response.
64
+ *
65
+ */
66
+ get<ThrowOnError extends boolean = true>(options: Options<LaunchRunsGetData, ThrowOnError>): RequestResult<LaunchRunsGetResponses, LaunchRunsGetErrors, ThrowOnError, 'data'>;
67
+ /**
68
+ * Stop a launch run
69
+ *
70
+ * Set the workspace-owned run's desired state to stopped and request copy cancellation. The request is idempotent; repeating stop returns the original stop timestamp. This does not imply that the provider sandbox was destroyed. Foreign and missing IDs have the same 404 response.
71
+ */
72
+ stop<ThrowOnError extends boolean = true>(options: Options<LaunchRunsStopData, ThrowOnError>): RequestResult<LaunchRunsStopResponses, LaunchRunsStopErrors, ThrowOnError, 'data'>;
73
+ /**
74
+ * Destroy one launch-run copy
75
+ *
76
+ * Durably request cleanup of one copy of a workspace-owned run; the run and its other
77
+ * copies keep running. Acceptance records the request only: no provider call is made
78
+ * during the request, and `stopping` does not mean the sandbox is gone. The copy's
79
+ * status in getLaunchRun becomes `stopped` only after its absence is confirmed; a queued
80
+ * copy that was never dispatched has no sandbox and stops at once.
81
+ *
82
+ * The request is idempotent. Retrying it, or destroying a copy that is already stopping
83
+ * or stopped, returns the same 202 and leaves the copy's state and timestamps unchanged.
84
+ * Foreign and missing run IDs and copy indexes have the same 404 response. Responses are
85
+ * private and must not be cached.
86
+ *
87
+ */
88
+ destroyCopy<ThrowOnError extends boolean = true>(options: Options<LaunchRunsDestroyCopyData, ThrowOnError>): RequestResult<LaunchRunsDestroyCopyResponses, LaunchRunsDestroyCopyErrors, ThrowOnError, 'data'>;
89
+ }