@boxrouter/sdk 0.0.1-alpha.0 → 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 (338) hide show
  1. package/NOTICE +29 -5
  2. package/README.md +497 -24
  3. package/dist/addresses.d.ts +5 -0
  4. package/dist/addresses.js +10 -0
  5. package/dist/api-error.d.ts +62 -0
  6. package/dist/api-error.js +264 -0
  7. package/dist/boxrouter.d.ts +68 -0
  8. package/dist/boxrouter.js +291 -0
  9. package/dist/browser-session/index.d.ts +17 -0
  10. package/dist/browser-session/index.js +48 -0
  11. package/dist/browser-session/operations.gen.d.ts +272 -0
  12. package/dist/browser-session/operations.gen.js +58 -0
  13. package/dist/browser-session/responseContracts/api_keys.d.ts +2 -0
  14. package/dist/browser-session/responseContracts/api_keys.js +10 -0
  15. package/dist/browser-session/responseContracts/credits.d.ts +2 -0
  16. package/dist/browser-session/responseContracts/credits.js +8 -0
  17. package/dist/browser-session/responseContracts/github.d.ts +2 -0
  18. package/dist/browser-session/responseContracts/github.js +11 -0
  19. package/dist/browser-session/responseContracts/identity.d.ts +2 -0
  20. package/dist/browser-session/responseContracts/identity.js +30 -0
  21. package/dist/browser-session/responseContracts/organizations.d.ts +2 -0
  22. package/dist/browser-session/responseContracts/organizations.js +17 -0
  23. package/dist/browser-session/responseContracts/privacy.d.ts +2 -0
  24. package/dist/browser-session/responseContracts/privacy.js +7 -0
  25. package/dist/browser-session/responseContracts.gen.d.ts +3 -0
  26. package/dist/browser-session/responseContracts.gen.js +10 -0
  27. package/dist/browser-session/responseValidators/api_keys-diagnostics.cjs +1 -0
  28. package/dist/browser-session/responseValidators/api_keys-diagnostics.d.cts +4 -0
  29. package/dist/browser-session/responseValidators/api_keys.cjs +2 -0
  30. package/dist/browser-session/responseValidators/api_keys.d.cts +4 -0
  31. package/dist/browser-session/responseValidators/credits-diagnostics.cjs +1 -0
  32. package/dist/browser-session/responseValidators/credits-diagnostics.d.cts +3 -0
  33. package/dist/browser-session/responseValidators/credits.cjs +2 -0
  34. package/dist/browser-session/responseValidators/credits.d.cts +3 -0
  35. package/dist/browser-session/responseValidators/github-diagnostics.cjs +1 -0
  36. package/dist/browser-session/responseValidators/github-diagnostics.d.cts +3 -0
  37. package/dist/browser-session/responseValidators/github.cjs +2 -0
  38. package/dist/browser-session/responseValidators/github.d.cts +3 -0
  39. package/dist/browser-session/responseValidators/identity-diagnostics.cjs +1 -0
  40. package/dist/browser-session/responseValidators/identity-diagnostics.d.cts +23 -0
  41. package/dist/browser-session/responseValidators/identity.cjs +2 -0
  42. package/dist/browser-session/responseValidators/identity.d.cts +23 -0
  43. package/dist/browser-session/responseValidators/organizations-diagnostics.cjs +1 -0
  44. package/dist/browser-session/responseValidators/organizations-diagnostics.d.cts +15 -0
  45. package/dist/browser-session/responseValidators/organizations.cjs +2 -0
  46. package/dist/browser-session/responseValidators/organizations.d.cts +15 -0
  47. package/dist/browser-session/responseValidators/privacy-diagnostics.cjs +1 -0
  48. package/dist/browser-session/responseValidators/privacy-diagnostics.d.cts +2 -0
  49. package/dist/browser-session/responseValidators/privacy.cjs +2 -0
  50. package/dist/browser-session/responseValidators/privacy.d.cts +2 -0
  51. package/dist/client/client.gen.d.ts +1 -1
  52. package/dist/client/client.gen.js +46 -94
  53. package/dist/client/index.d.ts +10 -10
  54. package/dist/client/index.js +16 -5
  55. package/dist/client/types.gen.d.ts +6 -6
  56. package/dist/client/types.gen.js +2 -1
  57. package/dist/client/utils.gen.d.ts +2 -2
  58. package/dist/client/utils.gen.js +31 -20
  59. package/dist/client.gen.d.ts +2 -2
  60. package/dist/client.gen.js +5 -2
  61. package/dist/command-check.gen.d.ts +14 -0
  62. package/dist/command-check.gen.js +23 -0
  63. package/dist/command-input.gen.d.ts +6 -0
  64. package/dist/command-input.gen.js +45 -0
  65. package/dist/core/auth.gen.js +5 -1
  66. package/dist/core/binaryStream.d.ts +8 -0
  67. package/dist/core/binaryStream.js +76 -0
  68. package/dist/core/bodySerializer.gen.d.ts +1 -1
  69. package/dist/core/bodySerializer.gen.js +8 -5
  70. package/dist/core/commandValidators.cjs +1 -0
  71. package/dist/core/commandValidators.d.cts +14 -0
  72. package/dist/core/eventValidation.d.ts +17 -0
  73. package/dist/core/eventValidation.js +56 -0
  74. package/dist/core/eventValidators.cjs +1 -0
  75. package/dist/core/eventValidators.d.cts +2 -0
  76. package/dist/core/json.d.ts +3 -0
  77. package/dist/core/json.js +33 -0
  78. package/dist/core/params.gen.js +4 -1
  79. package/dist/core/pathSerializer.gen.js +20 -11
  80. package/dist/core/queryKeySerializer.gen.js +12 -6
  81. package/dist/core/responseContracts/actions.d.ts +2 -0
  82. package/dist/core/responseContracts/actions.js +30 -0
  83. package/dist/core/responseContracts/agents.d.ts +2 -0
  84. package/dist/core/responseContracts/agents.js +7 -0
  85. package/dist/core/responseContracts/artifacts.d.ts +2 -0
  86. package/dist/core/responseContracts/artifacts.js +8 -0
  87. package/dist/core/responseContracts/commands.d.ts +2 -0
  88. package/dist/core/responseContracts/commands.js +6 -0
  89. package/dist/core/responseContracts/credits.d.ts +2 -0
  90. package/dist/core/responseContracts/credits.js +27 -0
  91. package/dist/core/responseContracts/files.d.ts +2 -0
  92. package/dist/core/responseContracts/files.js +15 -0
  93. package/dist/core/responseContracts/github.d.ts +2 -0
  94. package/dist/core/responseContracts/github.js +8 -0
  95. package/dist/core/responseContracts/images.d.ts +2 -0
  96. package/dist/core/responseContracts/images.js +8 -0
  97. package/dist/core/responseContracts/launchRuns.d.ts +2 -0
  98. package/dist/core/responseContracts/launchRuns.js +10 -0
  99. package/dist/core/responseContracts/launches.d.ts +2 -0
  100. package/dist/core/responseContracts/launches.js +10 -0
  101. package/dist/core/responseContracts/operations.d.ts +2 -0
  102. package/dist/core/responseContracts/operations.js +7 -0
  103. package/dist/core/responseContracts/previews.d.ts +2 -0
  104. package/dist/core/responseContracts/previews.js +8 -0
  105. package/dist/core/responseContracts/pricing.d.ts +2 -0
  106. package/dist/core/responseContracts/pricing.js +6 -0
  107. package/dist/core/responseContracts/processes.d.ts +2 -0
  108. package/dist/core/responseContracts/processes.js +11 -0
  109. package/dist/core/responseContracts/provider_accounts.d.ts +2 -0
  110. package/dist/core/responseContracts/provider_accounts.js +13 -0
  111. package/dist/core/responseContracts/providers.d.ts +2 -0
  112. package/dist/core/responseContracts/providers.js +6 -0
  113. package/dist/core/responseContracts/routing.d.ts +2 -0
  114. package/dist/core/responseContracts/routing.js +8 -0
  115. package/dist/core/responseContracts/sandboxes.d.ts +2 -0
  116. package/dist/core/responseContracts/sandboxes.js +15 -0
  117. package/dist/core/responseContracts/secrets.d.ts +2 -0
  118. package/dist/core/responseContracts/secrets.js +8 -0
  119. package/dist/core/responseContracts/spend_limits.d.ts +2 -0
  120. package/dist/core/responseContracts/spend_limits.js +8 -0
  121. package/dist/core/responseContracts/terminals.d.ts +2 -0
  122. package/dist/core/responseContracts/terminals.js +11 -0
  123. package/dist/core/responseContracts/usage.d.ts +2 -0
  124. package/dist/core/responseContracts/usage.js +7 -0
  125. package/dist/core/responseContracts/volumes.d.ts +2 -0
  126. package/dist/core/responseContracts/volumes.js +19 -0
  127. package/dist/core/responseContracts.gen.d.ts +3 -0
  128. package/dist/core/responseContracts.gen.js +27 -0
  129. package/dist/core/responseModes.d.ts +19 -0
  130. package/dist/core/responseModes.js +13 -0
  131. package/dist/core/responseValidation.d.ts +44 -0
  132. package/dist/core/responseValidation.js +174 -0
  133. package/dist/core/responseValidators/actions-diagnostics.cjs +4 -0
  134. package/dist/core/responseValidators/actions-diagnostics.d.cts +24 -0
  135. package/dist/core/responseValidators/actions.cjs +2 -0
  136. package/dist/core/responseValidators/actions.d.cts +24 -0
  137. package/dist/core/responseValidators/agents-diagnostics.cjs +1 -0
  138. package/dist/core/responseValidators/agents-diagnostics.d.cts +2 -0
  139. package/dist/core/responseValidators/agents.cjs +2 -0
  140. package/dist/core/responseValidators/agents.d.cts +2 -0
  141. package/dist/core/responseValidators/artifacts-diagnostics.cjs +1 -0
  142. package/dist/core/responseValidators/artifacts-diagnostics.d.cts +2 -0
  143. package/dist/core/responseValidators/artifacts.cjs +2 -0
  144. package/dist/core/responseValidators/artifacts.d.cts +2 -0
  145. package/dist/core/responseValidators/commands-diagnostics.cjs +1 -0
  146. package/dist/core/responseValidators/commands-diagnostics.d.cts +1 -0
  147. package/dist/core/responseValidators/commands.cjs +2 -0
  148. package/dist/core/responseValidators/commands.d.cts +1 -0
  149. package/dist/core/responseValidators/compact.cjs +122 -0
  150. package/dist/core/responseValidators/credits-diagnostics.cjs +1 -0
  151. package/dist/core/responseValidators/credits-diagnostics.d.cts +21 -0
  152. package/dist/core/responseValidators/credits.cjs +2 -0
  153. package/dist/core/responseValidators/credits.d.cts +21 -0
  154. package/dist/core/responseValidators/files-diagnostics.cjs +1 -0
  155. package/dist/core/responseValidators/files-diagnostics.d.cts +5 -0
  156. package/dist/core/responseValidators/files.cjs +2 -0
  157. package/dist/core/responseValidators/files.d.cts +5 -0
  158. package/dist/core/responseValidators/github-diagnostics.cjs +1 -0
  159. package/dist/core/responseValidators/github-diagnostics.d.cts +2 -0
  160. package/dist/core/responseValidators/github.cjs +2 -0
  161. package/dist/core/responseValidators/github.d.cts +2 -0
  162. package/dist/core/responseValidators/images-diagnostics.cjs +1 -0
  163. package/dist/core/responseValidators/images-diagnostics.d.cts +3 -0
  164. package/dist/core/responseValidators/images.cjs +2 -0
  165. package/dist/core/responseValidators/images.d.cts +3 -0
  166. package/dist/core/responseValidators/launchRuns-diagnostics.cjs +1 -0
  167. package/dist/core/responseValidators/launchRuns-diagnostics.d.cts +5 -0
  168. package/dist/core/responseValidators/launchRuns.cjs +2 -0
  169. package/dist/core/responseValidators/launchRuns.d.cts +5 -0
  170. package/dist/core/responseValidators/launches-diagnostics.cjs +10 -0
  171. package/dist/core/responseValidators/launches-diagnostics.d.cts +5 -0
  172. package/dist/core/responseValidators/launches.cjs +2 -0
  173. package/dist/core/responseValidators/launches.d.cts +5 -0
  174. package/dist/core/responseValidators/operations-diagnostics.cjs +1 -0
  175. package/dist/core/responseValidators/operations-diagnostics.d.cts +2 -0
  176. package/dist/core/responseValidators/operations.cjs +2 -0
  177. package/dist/core/responseValidators/operations.d.cts +2 -0
  178. package/dist/core/responseValidators/previews-diagnostics.cjs +1 -0
  179. package/dist/core/responseValidators/previews-diagnostics.d.cts +3 -0
  180. package/dist/core/responseValidators/previews.cjs +2 -0
  181. package/dist/core/responseValidators/previews.d.cts +3 -0
  182. package/dist/core/responseValidators/pricing-diagnostics.cjs +7 -0
  183. package/dist/core/responseValidators/pricing-diagnostics.d.cts +1 -0
  184. package/dist/core/responseValidators/pricing.cjs +2 -0
  185. package/dist/core/responseValidators/pricing.d.cts +1 -0
  186. package/dist/core/responseValidators/processes-diagnostics.cjs +1 -0
  187. package/dist/core/responseValidators/processes-diagnostics.d.cts +2 -0
  188. package/dist/core/responseValidators/processes.cjs +2 -0
  189. package/dist/core/responseValidators/processes.d.cts +2 -0
  190. package/dist/core/responseValidators/provider_accounts-diagnostics.cjs +1 -0
  191. package/dist/core/responseValidators/provider_accounts-diagnostics.d.cts +8 -0
  192. package/dist/core/responseValidators/provider_accounts.cjs +2 -0
  193. package/dist/core/responseValidators/provider_accounts.d.cts +8 -0
  194. package/dist/core/responseValidators/providers-diagnostics.cjs +1 -0
  195. package/dist/core/responseValidators/providers-diagnostics.d.cts +1 -0
  196. package/dist/core/responseValidators/providers.cjs +2 -0
  197. package/dist/core/responseValidators/providers.d.cts +1 -0
  198. package/dist/core/responseValidators/routing-diagnostics.cjs +1 -0
  199. package/dist/core/responseValidators/routing-diagnostics.d.cts +3 -0
  200. package/dist/core/responseValidators/routing.cjs +2 -0
  201. package/dist/core/responseValidators/routing.d.cts +3 -0
  202. package/dist/core/responseValidators/sandboxes-diagnostics.cjs +1 -0
  203. package/dist/core/responseValidators/sandboxes-diagnostics.d.cts +10 -0
  204. package/dist/core/responseValidators/sandboxes.cjs +2 -0
  205. package/dist/core/responseValidators/sandboxes.d.cts +10 -0
  206. package/dist/core/responseValidators/secrets-diagnostics.cjs +1 -0
  207. package/dist/core/responseValidators/secrets-diagnostics.d.cts +1 -0
  208. package/dist/core/responseValidators/secrets.cjs +2 -0
  209. package/dist/core/responseValidators/secrets.d.cts +1 -0
  210. package/dist/core/responseValidators/spend_limits-diagnostics.cjs +1 -0
  211. package/dist/core/responseValidators/spend_limits-diagnostics.d.cts +3 -0
  212. package/dist/core/responseValidators/spend_limits.cjs +2 -0
  213. package/dist/core/responseValidators/spend_limits.d.cts +3 -0
  214. package/dist/core/responseValidators/terminals-diagnostics.cjs +1 -0
  215. package/dist/core/responseValidators/terminals-diagnostics.d.cts +2 -0
  216. package/dist/core/responseValidators/terminals.cjs +2 -0
  217. package/dist/core/responseValidators/terminals.d.cts +2 -0
  218. package/dist/core/responseValidators/usage-diagnostics.cjs +1 -0
  219. package/dist/core/responseValidators/usage-diagnostics.d.cts +1 -0
  220. package/dist/core/responseValidators/usage.cjs +2 -0
  221. package/dist/core/responseValidators/usage.d.cts +1 -0
  222. package/dist/core/responseValidators/volumes-diagnostics.cjs +1 -0
  223. package/dist/core/responseValidators/volumes-diagnostics.d.cts +10 -0
  224. package/dist/core/responseValidators/volumes.cjs +2 -0
  225. package/dist/core/responseValidators/volumes.d.cts +10 -0
  226. package/dist/core/serverSentEvents.gen.d.ts +21 -62
  227. package/dist/core/serverSentEvents.gen.js +297 -116
  228. package/dist/core/streamErrors.d.ts +32 -0
  229. package/dist/core/streamErrors.js +51 -0
  230. package/dist/core/types.gen.d.ts +2 -2
  231. package/dist/core/types.gen.js +2 -1
  232. package/dist/core/utils.gen.d.ts +1 -1
  233. package/dist/core/utils.gen.js +16 -10
  234. package/dist/creation.gen.d.ts +21 -0
  235. package/dist/creation.gen.js +35 -0
  236. package/dist/data-origin.d.ts +25 -0
  237. package/dist/data-origin.js +57 -0
  238. package/dist/error-codes.gen.d.ts +2 -0
  239. package/dist/error-codes.gen.js +2 -0
  240. package/dist/idempotency.gen.d.ts +1 -0
  241. package/dist/idempotency.gen.js +60 -0
  242. package/dist/images.d.ts +74 -0
  243. package/dist/images.js +88 -0
  244. package/dist/index.d.ts +22 -2
  245. package/dist/index.js +79 -1
  246. package/dist/launch-input.gen.d.ts +9 -0
  247. package/dist/launch-input.gen.js +83 -0
  248. package/dist/launch.d.ts +28 -0
  249. package/dist/launch.js +222 -0
  250. package/dist/namespace-actions.d.mts +307 -0
  251. package/dist/namespace-actions.mjs +595 -0
  252. package/dist/namespace-agents.d.mts +33 -0
  253. package/dist/namespace-agents.mjs +40 -0
  254. package/dist/namespace-artifacts.d.mts +46 -0
  255. package/dist/namespace-artifacts.mjs +69 -0
  256. package/dist/namespace-base.d.mts +7 -0
  257. package/dist/namespace-base.mjs +7 -0
  258. package/dist/namespace-commands.d.mts +57 -0
  259. package/dist/namespace-commands.mjs +57 -0
  260. package/dist/namespace-credits.d.mts +213 -0
  261. package/dist/namespace-credits.mjs +476 -0
  262. package/dist/namespace-files.d.mts +203 -0
  263. package/dist/namespace-files.mjs +334 -0
  264. package/dist/namespace-github.d.mts +50 -0
  265. package/dist/namespace-github.mjs +68 -0
  266. package/dist/namespace-images.d.mts +52 -0
  267. package/dist/namespace-images.mjs +78 -0
  268. package/dist/namespace-launch_runs.d.mts +89 -0
  269. package/dist/namespace-launch_runs.mjs +133 -0
  270. package/dist/namespace-launches.d.mts +89 -0
  271. package/dist/namespace-launches.mjs +133 -0
  272. package/dist/namespace-operations.d.mts +45 -0
  273. package/dist/namespace-operations.mjs +52 -0
  274. package/dist/namespace-previews.d.mts +79 -0
  275. package/dist/namespace-previews.mjs +101 -0
  276. package/dist/namespace-pricing.d.mts +31 -0
  277. package/dist/namespace-pricing.mjs +22 -0
  278. package/dist/namespace-processes.d.mts +125 -0
  279. package/dist/namespace-processes.mjs +184 -0
  280. package/dist/namespace-provider_accounts.d.mts +156 -0
  281. package/dist/namespace-provider_accounts.mjs +241 -0
  282. package/dist/namespace-providers.d.mts +28 -0
  283. package/dist/namespace-providers.mjs +24 -0
  284. package/dist/namespace-routing.d.mts +64 -0
  285. package/dist/namespace-routing.mjs +86 -0
  286. package/dist/namespace-sandboxes.d.mts +287 -0
  287. package/dist/namespace-sandboxes.mjs +402 -0
  288. package/dist/namespace-secrets.d.mts +46 -0
  289. package/dist/namespace-secrets.mjs +68 -0
  290. package/dist/namespace-spend_limits.d.mts +48 -0
  291. package/dist/namespace-spend_limits.mjs +70 -0
  292. package/dist/namespace-terminals.d.mts +112 -0
  293. package/dist/namespace-terminals.mjs +177 -0
  294. package/dist/namespace-usage.d.mts +46 -0
  295. package/dist/namespace-usage.mjs +53 -0
  296. package/dist/namespace-volumes.d.mts +110 -0
  297. package/dist/namespace-volumes.mjs +269 -0
  298. package/dist/operations.d.ts +14 -0
  299. package/dist/operations.js +31 -0
  300. package/dist/retry.d.ts +8 -0
  301. package/dist/retry.js +63 -0
  302. package/dist/routing-choices.gen.d.ts +132 -0
  303. package/dist/routing-choices.gen.js +136 -0
  304. package/dist/routing.d.ts +23 -0
  305. package/dist/routing.js +38 -0
  306. package/dist/sandbox-handle.gen.d.ts +8 -0
  307. package/dist/sandbox-handle.gen.js +14 -0
  308. package/dist/sandboxes.d.ts +213 -0
  309. package/dist/sandboxes.js +507 -0
  310. package/dist/sdk.gen.d.ts +2016 -12
  311. package/dist/sdk.gen.js +3862 -16
  312. package/dist/server-timing.d.ts +19 -0
  313. package/dist/server-timing.gen.d.ts +265 -0
  314. package/dist/server-timing.gen.js +254 -0
  315. package/dist/server-timing.js +421 -0
  316. package/dist/spend-limits.d.ts +17 -0
  317. package/dist/spend-limits.js +26 -0
  318. package/dist/telemetry.d.ts +51 -0
  319. package/dist/telemetry.gen.d.ts +1 -0
  320. package/dist/telemetry.gen.js +5 -0
  321. package/dist/telemetry.js +438 -0
  322. package/dist/terminal.d.ts +61 -0
  323. package/dist/terminal.js +266 -0
  324. package/dist/transfer.d.ts +75 -0
  325. package/dist/transfer.js +389 -0
  326. package/dist/types.gen.d.ts +14936 -110
  327. package/dist/types.gen.js +2 -1
  328. package/dist/user-agent.d.ts +2 -0
  329. package/dist/user-agent.js +18 -0
  330. package/dist/version.gen.d.ts +1 -0
  331. package/dist/version.gen.js +5 -0
  332. package/dist/volumes.d.ts +33 -0
  333. package/dist/volumes.js +221 -0
  334. package/dist/waits.d.ts +31 -0
  335. package/dist/waits.js +42 -0
  336. package/dist/workflow-policy.gen.d.ts +41 -0
  337. package/dist/workflow-policy.gen.js +45 -0
  338. package/package.json +124 -14
@@ -0,0 +1,307 @@
1
+ import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client/index.js';
2
+ import { HeyApiClient } from './namespace-base.mjs';
3
+ import type { ActionsJobsGetData, ActionsJobsGetErrors, ActionsJobsGetLogsData, ActionsJobsGetLogsErrors, ActionsJobsGetLogsResponses, ActionsJobsGetResponses, ActionsJobsGetStepLogsData, ActionsJobsGetStepLogsErrors, ActionsJobsGetStepLogsResponses, ActionsJobsGetStepsData, ActionsJobsGetStepsErrors, ActionsJobsGetStepsResponses, ActionsJobsListEventsData, ActionsJobsListEventsErrors, ActionsJobsListEventsResponses, ActionsPlacementsGetData, ActionsPlacementsGetErrors, ActionsPlacementsGetResponses, ActionsPoliciesCreateData, ActionsPoliciesCreateErrors, ActionsPoliciesCreateResponses, ActionsPoliciesDeleteData, ActionsPoliciesDeleteErrors, ActionsPoliciesDeleteResponses, ActionsPoliciesGetData, ActionsPoliciesGetErrors, ActionsPoliciesGetResponses, ActionsPoliciesListData, ActionsPoliciesListErrors, ActionsPoliciesListResponses, ActionsPoliciesUpdateData, ActionsPoliciesUpdateErrors, ActionsPoliciesUpdateResponses, ActionsPoolIdleTimeGetData, ActionsPoolIdleTimeGetErrors, ActionsPoolIdleTimeGetResponses, ActionsPreviewData, ActionsPreviewErrors, ActionsPreviewResponses, ActionsReadinessData, ActionsReadinessErrors, ActionsReadinessResponses, ActionsRepositoriesGetData, ActionsRepositoriesGetErrors, ActionsRepositoriesGetResponses, ActionsRepositoriesUpdateData, ActionsRepositoriesUpdateErrors, ActionsRepositoriesUpdateResponses, ActionsRunnerCatalogData, ActionsRunnerCatalogErrors, ActionsRunnerCatalogResponses, ActionsRunsCancelData, ActionsRunsCancelErrors, ActionsRunsCancelResponses, ActionsRunsGetData, ActionsRunsGetErrors, ActionsRunsGetResponses, ActionsRunsListData, ActionsRunsListErrors, ActionsRunsListFacetsData, ActionsRunsListFacetsErrors, ActionsRunsListFacetsResponses, ActionsRunsListJobsData, ActionsRunsListJobsErrors, ActionsRunsListJobsResponses, ActionsRunsListPlacementsData, ActionsRunsListPlacementsErrors, ActionsRunsListPlacementsResponses, ActionsRunsListResponses, ActionsRunsRerunData, ActionsRunsRerunErrors, ActionsRunsRerunFailedJobsData, ActionsRunsRerunFailedJobsErrors, ActionsRunsRerunFailedJobsResponses, ActionsRunsRerunResponses } 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 Actions extends HeyApiClient {
18
+ /**
19
+ * Read Actions runner and workspace funding readiness
20
+ *
21
+ * Requires workspace read authority. This read-only view uses the workspace's
22
+ * existing provider accounts and credits. Unknown source facts remain unknown;
23
+ * link targets appear only when an existing page can address the reported issue.
24
+ * When `repository_id` is supplied, readiness is scoped to that repository's saved
25
+ * software profile. The profile is resolved from workspace-owned settings; callers
26
+ * cannot select a profile through this parameter.
27
+ *
28
+ */
29
+ readiness<ThrowOnError extends boolean = true>(options?: Options<ActionsReadinessData, ThrowOnError>): RequestResult<ActionsReadinessResponses, ActionsReadinessErrors, ThrowOnError, 'data'>;
30
+ /**
31
+ * Read the recommended Actions runner labels and resource floors
32
+ *
33
+ * Requires workspace read authority. The catalog is fixed for a server release and does not
34
+ * depend on the workspace, so clients and caches may reuse it until its ETag changes. It does not assert live route availability or
35
+ * verified software; use readiness for that. Readiness still carries `runner_catalog` for
36
+ * older clients, but new clients should read this operation instead.
37
+ *
38
+ */
39
+ runnerCatalog<ThrowOnError extends boolean = true>(options?: Options<ActionsRunnerCatalogData, ThrowOnError>): RequestResult<ActionsRunnerCatalogResponses, ActionsRunnerCatalogErrors, ThrowOnError, 'data'>;
40
+ /**
41
+ * Preview Actions label and policy eligibility
42
+ *
43
+ * Requires read authority for the linked repository in the authenticated workspace.
44
+ * This is a read-only evaluation of the same resolved policy and route matcher used
45
+ * for dispatch. It creates no runner, sandbox, reservation or billing hold. Refused
46
+ * and unknown results remain explicit; the preview never relaxes a requirement or
47
+ * claims an unverified route is eligible. It does not verify runner images. Runner image readiness is checked separately before dispatch.
48
+ *
49
+ */
50
+ preview<ThrowOnError extends boolean = true>(options: Options<ActionsPreviewData, ThrowOnError>): RequestResult<ActionsPreviewResponses, ActionsPreviewErrors, ThrowOnError, 'data'>;
51
+ private _repositories?;
52
+ get repositories(): Repositories;
53
+ private _policies?;
54
+ get policies(): Policies;
55
+ private _runs?;
56
+ get runs(): Runs;
57
+ private _poolIdleTime?;
58
+ get poolIdleTime(): PoolIdleTime;
59
+ private _jobs?;
60
+ get jobs(): Jobs;
61
+ private _placements?;
62
+ get placements(): Placements;
63
+ }
64
+ export declare class Repositories extends HeyApiClient {
65
+ /**
66
+ * Get Actions enablement and defaults for a repository
67
+ *
68
+ * Requires read authority in the authenticated workspace. The repository must have
69
+ * a currently linked, verified GitHub installation. The returned ETag identifies
70
+ * this settings revision. A missing settings record is represented as `exists: false`,
71
+ * disabled with no required policy; it is not silently enabled by reading it. For
72
+ * `exists: false`, omit If-Match on the first write; for `exists: true`, send the
73
+ * returned ETag to update the existing record safely.
74
+ *
75
+ */
76
+ get<ThrowOnError extends boolean = true>(options: Options<ActionsRepositoriesGetData, ThrowOnError>): RequestResult<ActionsRepositoriesGetResponses, ActionsRepositoriesGetErrors, ThrowOnError, 'data'>;
77
+ /**
78
+ * Enable or update Actions defaults for a repository
79
+ *
80
+ * Requires workspace administrator authority. Browser-session calls require the CSRF
81
+ * token and configured Origin. The minimal enable request is `{"enabled":true}`;
82
+ * Actions creates its safe default settings and begins automatic image preparation
83
+ * without requiring a named policy, provider key, runner registration or YAML change.
84
+ * `policy_id` is optional and, when null, selects the workspace's current safe
85
+ * defaults. When the preceding read returned `exists: false`, omit If-Match to create
86
+ * the settings record; when it returned `exists: true`, send its ETag to update. The
87
+ * server rejects a write if that existence state changed after the read. An
88
+ * Idempotency-Key records
89
+ * the logical mutation: identical uncertain retries return the recorded outcome,
90
+ * changed input under the same key conflicts, and unknown effects are reconciled
91
+ * without automatic redispatch. Disabling stops new admission; it does not cancel
92
+ * accepted GitHub workflow runs or change their funding binding.
93
+ *
94
+ */
95
+ update<ThrowOnError extends boolean = true>(options: Options<ActionsRepositoriesUpdateData, ThrowOnError>): RequestResult<ActionsRepositoriesUpdateResponses, ActionsRepositoriesUpdateErrors, ThrowOnError, 'data'>;
96
+ }
97
+ export declare class Policies extends HeyApiClient {
98
+ /**
99
+ * List workspace Actions policies
100
+ *
101
+ * Requires workspace read authority. Stable ID-ordered pages may be empty; listing never changes policy or starts compute.
102
+ */
103
+ list<ThrowOnError extends boolean = true>(options?: Options<ActionsPoliciesListData, ThrowOnError>): RequestResult<ActionsPoliciesListResponses, ActionsPoliciesListErrors, ThrowOnError, 'data'>;
104
+ /**
105
+ * Create a named workspace Actions policy
106
+ *
107
+ * Requires workspace administrator authority. Browser-session calls require the CSRF
108
+ * token and configured Origin. Policy settings can only narrow workspace and
109
+ * repository guardrails. The workspace funding choice decides the logical authority
110
+ * (workspace BYOK or platform managed); the actual provider, account and payer binding
111
+ * is confirmed separately for each attempt and is never taken from a policy. A policy
112
+ * cannot change supply or add accounts. Idempotency-Key replays the recorded
113
+ * outcome for identical input; changed input conflicts. An unknown outcome is
114
+ * reconciled without creating a second policy.
115
+ *
116
+ */
117
+ create<ThrowOnError extends boolean = true>(options: Options<ActionsPoliciesCreateData, ThrowOnError>): RequestResult<ActionsPoliciesCreateResponses, ActionsPoliciesCreateErrors, ThrowOnError, 'data'>;
118
+ /**
119
+ * Delete an unused workspace Actions policy
120
+ *
121
+ * Requires workspace administrator authority. Browser-session calls require CSRF and
122
+ * the configured Origin. If-Match is required. A policy referenced by repository
123
+ * defaults or accepted work cannot be deleted and returns 409. Idempotency-Key
124
+ * returns the recorded delete result for identical retries; changed input conflicts. Unknown outcomes are
125
+ * reconciled without repeating the deletion.
126
+ *
127
+ */
128
+ delete<ThrowOnError extends boolean = true>(options: Options<ActionsPoliciesDeleteData, ThrowOnError>): RequestResult<ActionsPoliciesDeleteResponses, ActionsPoliciesDeleteErrors, ThrowOnError, 'data'>;
129
+ /**
130
+ * Get a workspace Actions policy
131
+ *
132
+ * Requires workspace read authority. The policy ID is workspace-scoped; foreign and unknown IDs both return 404.
133
+ */
134
+ get<ThrowOnError extends boolean = true>(options: Options<ActionsPoliciesGetData, ThrowOnError>): RequestResult<ActionsPoliciesGetResponses, ActionsPoliciesGetErrors, ThrowOnError, 'data'>;
135
+ /**
136
+ * Replace a workspace Actions policy
137
+ *
138
+ * Requires workspace administrator authority. Browser-session calls require CSRF and
139
+ * the configured Origin. If-Match is required and must equal the latest ETag. Policy
140
+ * changes only narrow workspace/repository guardrails and do not mutate accepted jobs
141
+ * or change their supply, accounts or logical funding authority. Idempotency-Key replays an identical recorded update;
142
+ * changed input conflicts. A stale ETag returns 409 without writing. Unknown outcomes
143
+ * are reconciled, never automatically redispatched.
144
+ *
145
+ */
146
+ update<ThrowOnError extends boolean = true>(options: Options<ActionsPoliciesUpdateData, ThrowOnError>): RequestResult<ActionsPoliciesUpdateResponses, ActionsPoliciesUpdateErrors, ThrowOnError, 'data'>;
147
+ }
148
+ export declare class Runs extends HeyApiClient {
149
+ /**
150
+ * List workspace Actions workflow-run projections
151
+ *
152
+ * Requires workspace read authority. Pages may be empty and default to newest-first
153
+ * by creation time; `sort` also supports oldest-first by creation time and longest
154
+ * first by duration. Equal sort values retain a stable run ID order, including
155
+ * across pages. A run's status and cost are BoxRouter's latest recorded evidence;
156
+ * this read does not poll GitHub, change a run, start a job or retry an uncertain
157
+ * effect.
158
+ *
159
+ */
160
+ list<ThrowOnError extends boolean = true>(options?: Options<ActionsRunsListData, ThrowOnError>): RequestResult<ActionsRunsListResponses, ActionsRunsListErrors, ThrowOnError, 'data'>;
161
+ /**
162
+ * Count the values each run filter offers
163
+ *
164
+ * For each filter of `listActionsRuns`, its values with the number of runs in the whole
165
+ * workspace that have the value, ignoring any active filters. A run counts once for each
166
+ * value it has. Requires workspace read authority; it does not poll GitHub.
167
+ *
168
+ */
169
+ listFacets<ThrowOnError extends boolean = true>(options?: Options<ActionsRunsListFacetsData, ThrowOnError>): RequestResult<ActionsRunsListFacetsResponses, ActionsRunsListFacetsErrors, ThrowOnError, 'data'>;
170
+ /**
171
+ * Get a workflow-run projection and aggregate billing evidence
172
+ *
173
+ * Requires workspace read authority. Foreign and unknown run IDs both return 404; state and costs are not inferred from missing observations.
174
+ */
175
+ get<ThrowOnError extends boolean = true>(options: Options<ActionsRunsGetData, ThrowOnError>): RequestResult<ActionsRunsGetResponses, ActionsRunsGetErrors, ThrowOnError, 'data'>;
176
+ /**
177
+ * List GitHub jobs projected for a workflow run
178
+ *
179
+ * Requires workspace read authority. Job assignment is tied to the runner GitHub actually assigns, not the job a JIT label initially requested.
180
+ */
181
+ listJobs<ThrowOnError extends boolean = true>(options: Options<ActionsRunsListJobsData, ThrowOnError>): RequestResult<ActionsRunsListJobsResponses, ActionsRunsListJobsErrors, ThrowOnError, 'data'>;
182
+ /**
183
+ * List placements attempted for a workflow run
184
+ *
185
+ * Requires workspace read authority. Placement state, outcome, cleanup and billing evidence remain separate; uncertain effects are never replayed by this read.
186
+ */
187
+ listPlacements<ThrowOnError extends boolean = true>(options: Options<ActionsRunsListPlacementsData, ThrowOnError>): RequestResult<ActionsRunsListPlacementsResponses, ActionsRunsListPlacementsErrors, ThrowOnError, 'data'>;
188
+ /**
189
+ * Ask GitHub to cancel the entire workflow run
190
+ *
191
+ * Requires workspace execute authority. This explicitly cancels the whole GitHub
192
+ * workflow run, including its other jobs; it cannot cancel only one job. GitHub
193
+ * remains authoritative for cancellation. A 202 means GitHub acknowledged the
194
+ * request, not that every job or sandbox has ended. Idempotency-Key identifies this
195
+ * user-authorized mutation. An identical replay returns the recorded result; changed
196
+ * input conflicts. Unknown outcomes are reconciled against GitHub without repeating
197
+ * the cancellation automatically. BoxRouter never cancels as a side effect of a
198
+ * read, timeout or cleanup failure.
199
+ *
200
+ */
201
+ cancel<ThrowOnError extends boolean = true>(options: Options<ActionsRunsCancelData, ThrowOnError>): RequestResult<ActionsRunsCancelResponses, ActionsRunsCancelErrors, ThrowOnError, 'data'>;
202
+ /**
203
+ * Ask GitHub to rerun the entire workflow
204
+ *
205
+ * Requires workspace execute authority. This explicitly asks GitHub to rerun the
206
+ * entire workflow run, not one job or only failed jobs. GitHub creates and owns the
207
+ * new attempt. A 202 means GitHub acknowledged the request; it does not mean the new
208
+ * jobs have started. Idempotency-Key identifies this user-authorized mutation. An
209
+ * identical replay returns the recorded result; changed input conflicts. An unknown
210
+ * outcome is reconciled against GitHub and never automatically submitted again.
211
+ * Actions admission still rechecks repository binding, policy, trust and the
212
+ * immutable workspace/account/payer before creating any new placement.
213
+ *
214
+ */
215
+ rerun<ThrowOnError extends boolean = true>(options: Options<ActionsRunsRerunData, ThrowOnError>): RequestResult<ActionsRunsRerunResponses, ActionsRunsRerunErrors, ThrowOnError, 'data'>;
216
+ /**
217
+ * Ask GitHub to rerun failed jobs and their dependents
218
+ *
219
+ * Requires workspace execute authority. This explicitly asks GitHub to rerun the failed
220
+ * jobs of the entire workflow run and the jobs that depend on them in a new attempt.
221
+ * Passed jobs rerun only when they depend on a failed job. GitHub creates and owns the new attempt. A 202 means
222
+ * GitHub acknowledged the request; it does not mean the new jobs have started.
223
+ * Idempotency-Key identifies this user-authorized mutation. An identical replay returns
224
+ * the recorded result; changed input conflicts. An unknown outcome is reconciled against
225
+ * GitHub and never automatically submitted again. A run with no failed job is refused
226
+ * with 409. Actions admission still rechecks repository binding, policy, trust and the
227
+ * immutable workspace/account/payer before creating any new placement.
228
+ *
229
+ */
230
+ rerunFailedJobs<ThrowOnError extends boolean = true>(options: Options<ActionsRunsRerunFailedJobsData, ThrowOnError>): RequestResult<ActionsRunsRerunFailedJobsResponses, ActionsRunsRerunFailedJobsErrors, ThrowOnError, 'data'>;
231
+ }
232
+ export declare class PoolIdleTime extends HeyApiClient {
233
+ /**
234
+ * Get the billed time of runners that served no job
235
+ *
236
+ * Requires workspace read authority. A pooled runner can cost money while no GitHub job
237
+ * shows it: it sat idle until the pool drained it, or its pickup was foreign or revoked,
238
+ * or it failed after its sandbox existed. That time is charged to the payer and shown
239
+ * here, apart from every run and job. The read counts the runners that started in
240
+ * `[since, until)`, in total and per pool, with the same `billing` object a run carries.
241
+ * `idle_seconds` is each runner's lifetime from creation to its end (to now for a runner
242
+ * that is still alive). `until` defaults to now, `since` to 30 days before `until`, and the
243
+ * range may not exceed 92 days; a longer or empty range returns 400. It does not poll
244
+ * GitHub or a provider and does not change a runner.
245
+ *
246
+ */
247
+ get<ThrowOnError extends boolean = true>(options?: Options<ActionsPoolIdleTimeGetData, ThrowOnError>): RequestResult<ActionsPoolIdleTimeGetResponses, ActionsPoolIdleTimeGetErrors, ThrowOnError, 'data'>;
248
+ }
249
+ export declare class Jobs extends HeyApiClient {
250
+ /**
251
+ * Get an Actions job projection
252
+ *
253
+ * Requires workspace read authority. The GitHub assignment is authoritative; a requested job ID is not treated as runner reservation.
254
+ */
255
+ get<ThrowOnError extends boolean = true>(options: Options<ActionsJobsGetData, ThrowOnError>): RequestResult<ActionsJobsGetResponses, ActionsJobsGetErrors, ThrowOnError, 'data'>;
256
+ /**
257
+ * Get GitHub workflow steps for an Actions job
258
+ *
259
+ * Requires workspace execute authority. Resolves the selected workspace-owned
260
+ * job and its exact historical run attempt before reading the assigned GitHub
261
+ * workflow job. Steps preserve GitHub source order and original step numbers;
262
+ * position is the zero-based display order. Pending, unavailable, forbidden and
263
+ * removed are explicit source states. Step output is not included.
264
+ *
265
+ */
266
+ getSteps<ThrowOnError extends boolean = true>(options: Options<ActionsJobsGetStepsData, ThrowOnError>): RequestResult<ActionsJobsGetStepsResponses, ActionsJobsGetStepsErrors, ThrowOnError, 'data'>;
267
+ /**
268
+ * Read a bounded prefix of the selected GitHub job log
269
+ *
270
+ * Requires workspace execute authority. Resolves the workspace-owned job,
271
+ * current repository binding, assigned GitHub job and exact historical attempt
272
+ * before fetching only that native whole-job log. At most 1 MiB is returned;
273
+ * partial indicates a bounded prefix. Output is transient and is not retained.
274
+ * Individual step log availability depends on the GitHub App/repository source.
275
+ *
276
+ */
277
+ getLogs<ThrowOnError extends boolean = true>(options: Options<ActionsJobsGetLogsData, ThrowOnError>): RequestResult<ActionsJobsGetLogsResponses, ActionsJobsGetLogsErrors, ThrowOnError, 'data'>;
278
+ /**
279
+ * Read a bounded prefix of one GitHub step log
280
+ *
281
+ * Requires workspace execute authority. step_position is zero-based and is
282
+ * verified against the selected fresh GitHub job before this endpoint is read.
283
+ * GitHub may report individual step logs unavailable for an App/repository;
284
+ * this is returned explicitly without synthesizing output from the whole-job log.
285
+ * At most 1 MiB is returned and partial indicates a bounded prefix.
286
+ *
287
+ */
288
+ getStepLogs<ThrowOnError extends boolean = true>(options: Options<ActionsJobsGetStepLogsData, ThrowOnError>): RequestResult<ActionsJobsGetStepLogsResponses, ActionsJobsGetStepLogsErrors, ThrowOnError, 'data'>;
289
+ /**
290
+ * List Actions step events for a job
291
+ *
292
+ * Requires workspace execute authority. Returns durable step events recorded for
293
+ * this workspace-owned Actions job, ordered by event time and ID. Use the
294
+ * continuation cursor to retrieve the next page; the list is empty when no
295
+ * events are available.
296
+ *
297
+ */
298
+ listEvents<ThrowOnError extends boolean = true>(options: Options<ActionsJobsListEventsData, ThrowOnError>): RequestResult<ActionsJobsListEventsResponses, ActionsJobsListEventsErrors, ThrowOnError, 'data'>;
299
+ }
300
+ export declare class Placements extends HeyApiClient {
301
+ /**
302
+ * Get an Actions placement and its cost and cleanup evidence
303
+ *
304
+ * Requires workspace read authority. A completed workflow job does not prove sandbox cleanup or final charge; pending and unknown remain explicit.
305
+ */
306
+ get<ThrowOnError extends boolean = true>(options: Options<ActionsPlacementsGetData, ThrowOnError>): RequestResult<ActionsPlacementsGetResponses, ActionsPlacementsGetErrors, ThrowOnError, 'data'>;
307
+ }