@dreamlake/dreamlake-cli 0.88.1 → 0.89.0

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 (535) hide show
  1. package/dist/api/access.d.ts +83 -0
  2. package/dist/api/access.js +77 -0
  3. package/dist/api/agent.d.ts +156 -0
  4. package/dist/api/agent.js +111 -0
  5. package/dist/api/browser.d.ts +90 -0
  6. package/dist/api/browser.js +102 -0
  7. package/dist/api/client.d.ts +53 -0
  8. package/dist/api/client.js +102 -0
  9. package/dist/api/common.d.ts +28 -0
  10. package/dist/api/common.js +16 -0
  11. package/dist/api/content.d.ts +195 -0
  12. package/dist/api/content.js +147 -0
  13. package/dist/api/execution.d.ts +84 -0
  14. package/dist/api/execution.js +73 -0
  15. package/dist/api/http.d.ts +19 -0
  16. package/dist/api/http.js +66 -0
  17. package/dist/api/index.d.ts +2330 -0
  18. package/dist/api/index.js +114 -0
  19. package/dist/api/infra.d.ts +2 -0
  20. package/dist/api/infra.js +2 -0
  21. package/dist/api/jobs.d.ts +2 -0
  22. package/dist/api/jobs.js +2 -0
  23. package/dist/api/layout.d.ts +2 -0
  24. package/dist/api/layout.js +2 -0
  25. package/dist/api/library-edit.d.ts +3 -0
  26. package/dist/api/library-edit.js +3 -0
  27. package/dist/api/library-manifest.d.ts +2 -0
  28. package/dist/api/library-manifest.js +2 -0
  29. package/dist/api/note-character-plan.d.ts +2 -0
  30. package/dist/api/note-character-plan.js +2 -0
  31. package/dist/api/note-editing.d.ts +2 -0
  32. package/dist/api/note-editing.js +2 -0
  33. package/dist/api/note-edits.d.ts +21 -0
  34. package/dist/api/note-edits.js +10 -0
  35. package/dist/api/note-events.d.ts +5 -0
  36. package/dist/api/note-events.js +11 -0
  37. package/dist/api/note-files.d.ts +75 -0
  38. package/dist/api/note-files.js +65 -0
  39. package/dist/api/note-html-read.d.ts +2 -0
  40. package/dist/api/note-html-read.js +2 -0
  41. package/dist/api/note-html.d.ts +2 -0
  42. package/dist/api/note-html.js +2 -0
  43. package/dist/api/note-toc.d.ts +2 -0
  44. package/dist/api/note-toc.js +2 -0
  45. package/dist/api/notes.d.ts +304 -0
  46. package/dist/api/notes.js +181 -0
  47. package/dist/api/open-resources.d.ts +27 -0
  48. package/dist/api/open-resources.js +102 -0
  49. package/dist/api/ownership.d.ts +12 -0
  50. package/dist/api/ownership.js +24 -0
  51. package/dist/api/platform.d.ts +83 -0
  52. package/dist/api/platform.js +56 -0
  53. package/dist/api/presigned-transfer.d.ts +2 -0
  54. package/dist/api/presigned-transfer.js +2 -0
  55. package/dist/api/registered-runs.d.ts +48 -0
  56. package/dist/api/registered-runs.js +33 -0
  57. package/dist/api/sessions.d.ts +299 -0
  58. package/dist/api/sessions.js +105 -0
  59. package/dist/api/storage.d.ts +46 -0
  60. package/dist/api/storage.js +34 -0
  61. package/dist/api/streams.d.ts +18 -0
  62. package/dist/api/streams.js +70 -0
  63. package/dist/api/vault.d.ts +93 -0
  64. package/dist/api/vault.js +79 -0
  65. package/dist/api/workspace.d.ts +180 -0
  66. package/dist/api/workspace.js +146 -0
  67. package/dist/cli/agent-identity.d.ts +4 -0
  68. package/dist/cli/agent-identity.js +21 -0
  69. package/dist/cli/agents/identity.d.ts +50 -0
  70. package/dist/cli/agents/identity.js +105 -0
  71. package/dist/cli/agents/index.d.ts +31 -0
  72. package/dist/cli/agents/index.js +580 -0
  73. package/dist/cli/agents/manage.d.ts +43 -0
  74. package/dist/cli/agents/manage.js +376 -0
  75. package/dist/cli/agents/spec.d.ts +104 -0
  76. package/dist/cli/agents/spec.js +280 -0
  77. package/dist/cli/agents/web.d.ts +7 -0
  78. package/dist/cli/agents/web.js +109 -0
  79. package/dist/cli/artifact/incremental.d.ts +21 -0
  80. package/dist/cli/artifact/incremental.js +80 -0
  81. package/dist/cli/artifact/index.d.ts +52 -0
  82. package/dist/cli/artifact/index.js +405 -0
  83. package/dist/cli/artifact/meta.d.ts +69 -0
  84. package/dist/cli/artifact/meta.js +189 -0
  85. package/dist/cli/auth/commands.d.ts +29 -0
  86. package/dist/cli/auth/commands.js +327 -0
  87. package/dist/cli/auth/constants.d.ts +13 -0
  88. package/dist/cli/auth/constants.js +18 -0
  89. package/dist/cli/auth/credentials.d.ts +37 -0
  90. package/dist/cli/auth/credentials.js +155 -0
  91. package/dist/cli/auth/device-flow.d.ts +32 -0
  92. package/dist/cli/auth/device-flow.js +154 -0
  93. package/dist/cli/auth/device-secret.d.ts +6 -0
  94. package/dist/cli/auth/device-secret.js +26 -0
  95. package/dist/cli/auth/machine.d.ts +15 -0
  96. package/dist/cli/auth/machine.js +126 -0
  97. package/dist/cli/auth/materialized.d.ts +32 -0
  98. package/dist/cli/auth/materialized.js +102 -0
  99. package/dist/cli/auth/migrate.d.ts +10 -0
  100. package/dist/cli/auth/migrate.js +75 -0
  101. package/dist/cli/client.d.ts +102 -0
  102. package/dist/cli/client.js +206 -0
  103. package/dist/cli/collection-list.d.ts +3 -0
  104. package/dist/cli/collection-list.js +25 -0
  105. package/dist/cli/compat/ctx.d.ts +26 -0
  106. package/dist/cli/compat/ctx.js +76 -0
  107. package/dist/cli/compat/dreamdb-wasm-embedded.d.ts +2 -0
  108. package/dist/cli/compat/dreamdb-wasm-embedded.js +8 -0
  109. package/dist/cli/compat/dreamdb-wasm.d.ts +1 -0
  110. package/dist/cli/compat/dreamdb-wasm.js +26 -0
  111. package/dist/cli/compat/dreamdb.d.ts +112 -0
  112. package/dist/cli/compat/dreamdb.js +219 -0
  113. package/dist/cli/compat/flags.d.ts +2 -0
  114. package/dist/cli/compat/flags.js +13 -0
  115. package/dist/cli/compat/http.d.ts +23 -0
  116. package/dist/cli/compat/http.js +137 -0
  117. package/dist/cli/compat/presignedTransfer.d.ts +139 -0
  118. package/dist/cli/compat/presignedTransfer.js +580 -0
  119. package/dist/cli/compat/s3-backend.d.ts +73 -0
  120. package/dist/cli/compat/s3-backend.js +132 -0
  121. package/dist/cli/config.d.ts +22 -0
  122. package/dist/cli/config.js +96 -0
  123. package/dist/cli/connection/dto.d.ts +159 -0
  124. package/dist/cli/connection/dto.js +497 -0
  125. package/dist/cli/connection/index.d.ts +50 -0
  126. package/dist/cli/connection/index.js +413 -0
  127. package/dist/cli/connection/oauth.d.ts +23 -0
  128. package/dist/cli/connection/oauth.js +290 -0
  129. package/dist/cli/connection/write.d.ts +47 -0
  130. package/dist/cli/connection/write.js +573 -0
  131. package/dist/cli/create/index.d.ts +19 -0
  132. package/dist/cli/create/index.js +209 -0
  133. package/dist/cli/declare/index.d.ts +29 -0
  134. package/dist/cli/declare/index.js +304 -0
  135. package/dist/cli/delete/index.d.ts +18 -0
  136. package/dist/cli/delete/index.js +232 -0
  137. package/dist/cli/download/index.d.ts +9 -0
  138. package/dist/cli/download/index.js +128 -0
  139. package/dist/cli/env/compose.d.ts +88 -0
  140. package/dist/cli/env/compose.js +402 -0
  141. package/dist/cli/env/index.d.ts +176 -0
  142. package/dist/cli/env/index.js +1011 -0
  143. package/dist/cli/experiments/index.d.ts +11 -0
  144. package/dist/cli/experiments/index.js +168 -0
  145. package/dist/cli/glob.d.ts +1 -0
  146. package/dist/cli/glob.js +45 -0
  147. package/dist/cli/graphql-helpers.d.ts +23 -0
  148. package/dist/cli/graphql-helpers.js +42 -0
  149. package/dist/cli/graphql.d.ts +10 -0
  150. package/dist/cli/graphql.js +47 -0
  151. package/dist/cli/help-examples.generated.d.ts +1 -0
  152. package/dist/cli/help-examples.generated.js +192 -0
  153. package/dist/cli/helpers.d.ts +8 -0
  154. package/dist/cli/helpers.js +106 -0
  155. package/dist/cli/hosts/api.d.ts +29 -0
  156. package/dist/cli/hosts/api.js +54 -0
  157. package/dist/cli/hosts/bootstrap-source.d.ts +1 -0
  158. package/dist/cli/hosts/bootstrap-source.js +2 -0
  159. package/dist/cli/hosts/catalog.d.ts +26 -0
  160. package/dist/cli/hosts/catalog.js +55 -0
  161. package/dist/cli/hosts/config.d.ts +45 -0
  162. package/dist/cli/hosts/config.js +179 -0
  163. package/dist/cli/hosts/credentials.d.ts +19 -0
  164. package/dist/cli/hosts/credentials.js +173 -0
  165. package/dist/cli/hosts/enroll.d.ts +17 -0
  166. package/dist/cli/hosts/enroll.js +109 -0
  167. package/dist/cli/hosts/enrollments.d.ts +25 -0
  168. package/dist/cli/hosts/enrollments.js +54 -0
  169. package/dist/cli/hosts/index.d.ts +6 -0
  170. package/dist/cli/hosts/index.js +279 -0
  171. package/dist/cli/hosts/inventory.d.ts +40 -0
  172. package/dist/cli/hosts/inventory.js +91 -0
  173. package/dist/cli/hosts/lifecycle.d.ts +15 -0
  174. package/dist/cli/hosts/lifecycle.js +108 -0
  175. package/dist/cli/hosts/metrics-source.d.ts +12 -0
  176. package/dist/cli/hosts/metrics-source.js +89 -0
  177. package/dist/cli/hosts/observations.d.ts +39 -0
  178. package/dist/cli/hosts/observations.js +102 -0
  179. package/dist/cli/hosts/remote.d.ts +5 -0
  180. package/dist/cli/hosts/remote.js +66 -0
  181. package/dist/cli/hosts/ssh.d.ts +63 -0
  182. package/dist/cli/hosts/ssh.js +276 -0
  183. package/dist/cli/index.d.ts +1 -0
  184. package/dist/cli/index.js +288 -0
  185. package/dist/cli/infra/api.d.ts +95 -0
  186. package/dist/cli/infra/api.js +291 -0
  187. package/dist/cli/infra/index.d.ts +5 -0
  188. package/dist/cli/infra/index.js +102 -0
  189. package/dist/cli/infra/move.d.ts +15 -0
  190. package/dist/cli/infra/move.js +123 -0
  191. package/dist/cli/infra/transfer.d.ts +15 -0
  192. package/dist/cli/infra/transfer.js +280 -0
  193. package/dist/cli/jobs/api.d.ts +69 -0
  194. package/dist/cli/jobs/api.js +121 -0
  195. package/dist/cli/jobs/index.d.ts +5 -0
  196. package/dist/cli/jobs/index.js +140 -0
  197. package/dist/cli/lakeshore/index.d.ts +98 -0
  198. package/dist/cli/lakeshore/index.js +502 -0
  199. package/dist/cli/launch/index.d.ts +43 -0
  200. package/dist/cli/launch/index.js +270 -0
  201. package/dist/cli/layout/index.d.ts +2 -0
  202. package/dist/cli/layout/index.js +44 -0
  203. package/dist/cli/layout/transport.d.ts +12 -0
  204. package/dist/cli/layout/transport.js +70 -0
  205. package/dist/cli/library/add.d.ts +60 -0
  206. package/dist/cli/library/add.js +348 -0
  207. package/dist/cli/library/cache.d.ts +26 -0
  208. package/dist/cli/library/cache.js +88 -0
  209. package/dist/cli/library/config.d.ts +75 -0
  210. package/dist/cli/library/config.js +198 -0
  211. package/dist/cli/library/digest.d.ts +5 -0
  212. package/dist/cli/library/digest.js +19 -0
  213. package/dist/cli/library/discover.d.ts +87 -0
  214. package/dist/cli/library/discover.js +534 -0
  215. package/dist/cli/library/freshness.d.ts +35 -0
  216. package/dist/cli/library/freshness.js +109 -0
  217. package/dist/cli/library/generation.d.ts +35 -0
  218. package/dist/cli/library/generation.js +211 -0
  219. package/dist/cli/library/index.d.ts +2 -0
  220. package/dist/cli/library/index.js +36 -0
  221. package/dist/cli/library/info.d.ts +69 -0
  222. package/dist/cli/library/info.js +311 -0
  223. package/dist/cli/library/list.d.ts +33 -0
  224. package/dist/cli/library/list.js +86 -0
  225. package/dist/cli/library/manifest.d.ts +81 -0
  226. package/dist/cli/library/manifest.js +200 -0
  227. package/dist/cli/library/manifestCache.d.ts +45 -0
  228. package/dist/cli/library/manifestCache.js +169 -0
  229. package/dist/cli/library/pull.d.ts +30 -0
  230. package/dist/cli/library/pull.js +438 -0
  231. package/dist/cli/library/push.d.ts +72 -0
  232. package/dist/cli/library/push.js +642 -0
  233. package/dist/cli/library/rm.d.ts +31 -0
  234. package/dist/cli/library/rm.js +200 -0
  235. package/dist/cli/library/search.d.ts +18 -0
  236. package/dist/cli/library/search.js +181 -0
  237. package/dist/cli/library/stat.d.ts +15 -0
  238. package/dist/cli/library/stat.js +127 -0
  239. package/dist/cli/library/tools.d.ts +104 -0
  240. package/dist/cli/library/tools.js +163 -0
  241. package/dist/cli/library/wire.d.ts +47 -0
  242. package/dist/cli/library/wire.js +120 -0
  243. package/dist/cli/list/index.d.ts +26 -0
  244. package/dist/cli/list/index.js +256 -0
  245. package/dist/cli/notes/character-plan.d.ts +22 -0
  246. package/dist/cli/notes/character-plan.js +232 -0
  247. package/dist/cli/notes/document.d.ts +73 -0
  248. package/dist/cli/notes/document.js +306 -0
  249. package/dist/cli/notes/edit-commands.d.ts +106 -0
  250. package/dist/cli/notes/edit-commands.js +623 -0
  251. package/dist/cli/notes/editing.d.ts +81 -0
  252. package/dist/cli/notes/editing.js +305 -0
  253. package/dist/cli/notes/events.d.ts +36 -0
  254. package/dist/cli/notes/events.js +54 -0
  255. package/dist/cli/notes/files-commands.d.ts +120 -0
  256. package/dist/cli/notes/files-commands.js +554 -0
  257. package/dist/cli/notes/html-read.d.ts +9 -0
  258. package/dist/cli/notes/html-read.js +90 -0
  259. package/dist/cli/notes/html.d.ts +73 -0
  260. package/dist/cli/notes/html.js +381 -0
  261. package/dist/cli/notes/index.d.ts +123 -0
  262. package/dist/cli/notes/index.js +1303 -0
  263. package/dist/cli/notes/linger.d.ts +59 -0
  264. package/dist/cli/notes/linger.js +339 -0
  265. package/dist/cli/notes/media-commands.d.ts +5 -0
  266. package/dist/cli/notes/media-commands.js +51 -0
  267. package/dist/cli/notes/move-command.d.ts +83 -0
  268. package/dist/cli/notes/move-command.js +259 -0
  269. package/dist/cli/notes/rm-command.d.ts +22 -0
  270. package/dist/cli/notes/rm-command.js +110 -0
  271. package/dist/cli/notes/select-command.d.ts +12 -0
  272. package/dist/cli/notes/select-command.js +84 -0
  273. package/dist/cli/notes/suggest-diff.d.ts +56 -0
  274. package/dist/cli/notes/suggest-diff.js +311 -0
  275. package/dist/cli/notes/toc.d.ts +38 -0
  276. package/dist/cli/notes/toc.js +144 -0
  277. package/dist/cli/notes/transfer-command.d.ts +6 -0
  278. package/dist/cli/notes/transfer-command.js +9 -0
  279. package/dist/cli/notes/version-commands.d.ts +19 -0
  280. package/dist/cli/notes/version-commands.js +178 -0
  281. package/dist/cli/nymph/index.d.ts +74 -0
  282. package/dist/cli/nymph/index.js +349 -0
  283. package/dist/cli/org/index.d.ts +34 -0
  284. package/dist/cli/org/index.js +341 -0
  285. package/dist/cli/ownership/index.d.ts +12 -0
  286. package/dist/cli/ownership/index.js +122 -0
  287. package/dist/cli/ownership/metadata-transfer.d.ts +20 -0
  288. package/dist/cli/ownership/metadata-transfer.js +159 -0
  289. package/dist/cli/page/index.d.ts +58 -0
  290. package/dist/cli/page/index.js +387 -0
  291. package/dist/cli/pipeline/index.d.ts +69 -0
  292. package/dist/cli/pipeline/index.js +604 -0
  293. package/dist/cli/progress.d.ts +60 -0
  294. package/dist/cli/progress.js +276 -0
  295. package/dist/cli/project/attachments.d.ts +10 -0
  296. package/dist/cli/project/attachments.js +39 -0
  297. package/dist/cli/project/grants.d.ts +10 -0
  298. package/dist/cli/project/grants.js +39 -0
  299. package/dist/cli/project/index.d.ts +8 -0
  300. package/dist/cli/project/index.js +92 -0
  301. package/dist/cli/project/move.d.ts +57 -0
  302. package/dist/cli/project/move.js +242 -0
  303. package/dist/cli/project/output.d.ts +2 -0
  304. package/dist/cli/project/output.js +29 -0
  305. package/dist/cli/project/stream.d.ts +55 -0
  306. package/dist/cli/project/stream.js +207 -0
  307. package/dist/cli/project/transfer-preview.d.ts +8 -0
  308. package/dist/cli/project/transfer-preview.js +10 -0
  309. package/dist/cli/prompt.d.ts +1 -0
  310. package/dist/cli/prompt.js +17 -0
  311. package/dist/cli/provider/dreamdir.d.ts +52 -0
  312. package/dist/cli/provider/dreamdir.js +138 -0
  313. package/dist/cli/provider/index.d.ts +4 -0
  314. package/dist/cli/provider/index.js +419 -0
  315. package/dist/cli/provider/jump-worker.d.ts +9 -0
  316. package/dist/cli/provider/jump-worker.js +141 -0
  317. package/dist/cli/provider/lifecycle.d.ts +149 -0
  318. package/dist/cli/provider/lifecycle.js +1390 -0
  319. package/dist/cli/provider/machine.d.ts +17 -0
  320. package/dist/cli/provider/machine.js +116 -0
  321. package/dist/cli/provider/ssh.d.ts +105 -0
  322. package/dist/cli/provider/ssh.js +305 -0
  323. package/dist/cli/provider/terraform.d.ts +140 -0
  324. package/dist/cli/provider/terraform.js +288 -0
  325. package/dist/cli/providers/index.d.ts +18 -0
  326. package/dist/cli/providers/index.js +422 -0
  327. package/dist/cli/python.d.ts +61 -0
  328. package/dist/cli/python.js +255 -0
  329. package/dist/cli/queues/index.d.ts +33 -0
  330. package/dist/cli/queues/index.js +248 -0
  331. package/dist/cli/queues/slurm.d.ts +10 -0
  332. package/dist/cli/queues/slurm.js +134 -0
  333. package/dist/cli/resources.d.ts +72 -0
  334. package/dist/cli/resources.js +137 -0
  335. package/dist/cli/run/index.d.ts +15 -0
  336. package/dist/cli/run/index.js +163 -0
  337. package/dist/cli/run/input.d.ts +34 -0
  338. package/dist/cli/run/input.js +135 -0
  339. package/dist/cli/run/recovery.d.ts +2 -0
  340. package/dist/cli/run/recovery.js +18 -0
  341. package/dist/cli/run/setup.d.ts +3 -0
  342. package/dist/cli/run/setup.js +62 -0
  343. package/dist/cli/runconfig/index.d.ts +12 -0
  344. package/dist/cli/runconfig/index.js +130 -0
  345. package/dist/cli/runnable/index.d.ts +35 -0
  346. package/dist/cli/runnable/index.js +575 -0
  347. package/dist/cli/runnable/path.d.ts +115 -0
  348. package/dist/cli/runnable/path.js +288 -0
  349. package/dist/cli/runnable/run.d.ts +91 -0
  350. package/dist/cli/runnable/run.js +239 -0
  351. package/dist/cli/runnable/upload.d.ts +43 -0
  352. package/dist/cli/runnable/upload.js +342 -0
  353. package/dist/cli/runnable/worker.d.ts +1 -0
  354. package/dist/cli/runnable/worker.js +44 -0
  355. package/dist/cli/schemas/workflow-spec.schema.json +335 -0
  356. package/dist/cli/self-update/index.d.ts +5 -0
  357. package/dist/cli/self-update/index.js +107 -0
  358. package/dist/cli/self-update/install.d.ts +60 -0
  359. package/dist/cli/self-update/install.js +428 -0
  360. package/dist/cli/self-update/paths.d.ts +40 -0
  361. package/dist/cli/self-update/paths.js +87 -0
  362. package/dist/cli/self-update/releases.d.ts +41 -0
  363. package/dist/cli/self-update/releases.js +153 -0
  364. package/dist/cli/self-update/settings.d.ts +16 -0
  365. package/dist/cli/self-update/settings.js +68 -0
  366. package/dist/cli/self-update/update.d.ts +18 -0
  367. package/dist/cli/self-update/update.js +241 -0
  368. package/dist/cli/service-accounts/index.d.ts +3 -0
  369. package/dist/cli/service-accounts/index.js +149 -0
  370. package/dist/cli/session-affiliation.d.ts +26 -0
  371. package/dist/cli/session-affiliation.js +135 -0
  372. package/dist/cli/sessions/affiliation.d.ts +8 -0
  373. package/dist/cli/sessions/affiliation.js +66 -0
  374. package/dist/cli/sessions/api.d.ts +55 -0
  375. package/dist/cli/sessions/api.js +88 -0
  376. package/dist/cli/sessions/control.d.ts +6 -0
  377. package/dist/cli/sessions/control.js +159 -0
  378. package/dist/cli/sessions/conversation.d.ts +15 -0
  379. package/dist/cli/sessions/conversation.js +118 -0
  380. package/dist/cli/sessions/index.d.ts +2 -0
  381. package/dist/cli/sessions/index.js +209 -0
  382. package/dist/cli/sessions/managed.d.ts +39 -0
  383. package/dist/cli/sessions/managed.js +63 -0
  384. package/dist/cli/sessions/redaction.d.ts +2 -0
  385. package/dist/cli/sessions/redaction.js +11 -0
  386. package/dist/cli/sessions/runner/exec.d.ts +108 -0
  387. package/dist/cli/sessions/runner/exec.js +335 -0
  388. package/dist/cli/sessions/runner/journal.d.ts +26 -0
  389. package/dist/cli/sessions/runner/journal.js +49 -0
  390. package/dist/cli/sessions/runner/native.d.ts +48 -0
  391. package/dist/cli/sessions/runner/native.js +170 -0
  392. package/dist/cli/sessions/runner/pod.d.ts +30 -0
  393. package/dist/cli/sessions/runner/pod.js +129 -0
  394. package/dist/cli/sessions/runner/serve.d.ts +85 -0
  395. package/dist/cli/sessions/runner/serve.js +558 -0
  396. package/dist/cli/sessions/sync.d.ts +47 -0
  397. package/dist/cli/sessions/sync.js +80 -0
  398. package/dist/cli/sessions/transport.d.ts +14 -0
  399. package/dist/cli/sessions/transport.js +116 -0
  400. package/dist/cli/share.d.ts +15 -0
  401. package/dist/cli/share.js +139 -0
  402. package/dist/cli/skill/catalog.d.ts +141 -0
  403. package/dist/cli/skill/catalog.js +442 -0
  404. package/dist/cli/skill/files.d.ts +89 -0
  405. package/dist/cli/skill/files.js +264 -0
  406. package/dist/cli/skill/index.d.ts +268 -0
  407. package/dist/cli/skill/index.js +1216 -0
  408. package/dist/cli/skill/manifest.d.ts +30 -0
  409. package/dist/cli/skill/manifest.js +101 -0
  410. package/dist/cli/skill/prefs.d.ts +9 -0
  411. package/dist/cli/skill/prefs.js +32 -0
  412. package/dist/cli/skill/reminders.d.ts +15 -0
  413. package/dist/cli/skill/reminders.js +105 -0
  414. package/dist/cli/skill/tar.d.ts +17 -0
  415. package/dist/cli/skill/tar.js +195 -0
  416. package/dist/cli/snapshot/index.d.ts +24 -0
  417. package/dist/cli/snapshot/index.js +146 -0
  418. package/dist/cli/source/access.d.ts +45 -0
  419. package/dist/cli/source/access.js +563 -0
  420. package/dist/cli/source/control.d.ts +103 -0
  421. package/dist/cli/source/control.js +546 -0
  422. package/dist/cli/source/delete.d.ts +89 -0
  423. package/dist/cli/source/delete.js +463 -0
  424. package/dist/cli/source/index.d.ts +288 -0
  425. package/dist/cli/source/index.js +1348 -0
  426. package/dist/cli/source/share.d.ts +65 -0
  427. package/dist/cli/source/share.js +530 -0
  428. package/dist/cli/source/upload.d.ts +62 -0
  429. package/dist/cli/source/upload.js +258 -0
  430. package/dist/cli/source/write.d.ts +77 -0
  431. package/dist/cli/source/write.js +335 -0
  432. package/dist/cli/spawn.d.ts +28 -0
  433. package/dist/cli/spawn.js +81 -0
  434. package/dist/cli/target.d.ts +22 -0
  435. package/dist/cli/target.js +85 -0
  436. package/dist/cli/tasks/index.d.ts +38 -0
  437. package/dist/cli/tasks/index.js +365 -0
  438. package/dist/cli/team/index.d.ts +37 -0
  439. package/dist/cli/team/index.js +407 -0
  440. package/dist/cli/telemetry.d.ts +23 -0
  441. package/dist/cli/telemetry.js +262 -0
  442. package/dist/cli/telemetryJournal.d.ts +26 -0
  443. package/dist/cli/telemetryJournal.js +104 -0
  444. package/dist/cli/update/index.d.ts +21 -0
  445. package/dist/cli/update/index.js +284 -0
  446. package/dist/cli/upload/index.d.ts +11 -0
  447. package/dist/cli/upload/index.js +261 -0
  448. package/dist/cli/upload/kinds.d.ts +10 -0
  449. package/dist/cli/upload/kinds.js +85 -0
  450. package/dist/cli/upload/multipart.d.ts +21 -0
  451. package/dist/cli/upload/multipart.js +248 -0
  452. package/dist/cli/vault/affected-preview.d.ts +15 -0
  453. package/dist/cli/vault/affected-preview.js +38 -0
  454. package/dist/cli/vault/cloud.d.ts +55 -0
  455. package/dist/cli/vault/cloud.js +287 -0
  456. package/dist/cli/vault/format.d.ts +18 -0
  457. package/dist/cli/vault/format.js +104 -0
  458. package/dist/cli/vault/hostCredentials.d.ts +21 -0
  459. package/dist/cli/vault/hostCredentials.js +71 -0
  460. package/dist/cli/vault/hostSupersessions.d.ts +18 -0
  461. package/dist/cli/vault/hostSupersessions.js +68 -0
  462. package/dist/cli/vault/import.d.ts +3 -0
  463. package/dist/cli/vault/import.js +79 -0
  464. package/dist/cli/vault/index.d.ts +14 -0
  465. package/dist/cli/vault/index.js +225 -0
  466. package/dist/cli/vault/keys.d.ts +5 -0
  467. package/dist/cli/vault/keys.js +165 -0
  468. package/dist/cli/vault/kms.d.ts +6 -0
  469. package/dist/cli/vault/kms.js +169 -0
  470. package/dist/cli/vault/list.d.ts +13 -0
  471. package/dist/cli/vault/list.js +60 -0
  472. package/dist/cli/vault/listView.d.ts +21 -0
  473. package/dist/cli/vault/listView.js +123 -0
  474. package/dist/cli/vault/managementMetadata.d.ts +2 -0
  475. package/dist/cli/vault/managementMetadata.js +23 -0
  476. package/dist/cli/vault/mutations.d.ts +8 -0
  477. package/dist/cli/vault/mutations.js +151 -0
  478. package/dist/cli/vault/otp.d.ts +6 -0
  479. package/dist/cli/vault/otp.js +62 -0
  480. package/dist/cli/vault/otpIntent.d.ts +23 -0
  481. package/dist/cli/vault/otpIntent.js +76 -0
  482. package/dist/cli/vault/passImport.d.ts +25 -0
  483. package/dist/cli/vault/passImport.js +129 -0
  484. package/dist/cli/vault/passOtp.d.ts +51 -0
  485. package/dist/cli/vault/passOtp.js +101 -0
  486. package/dist/cli/vault/passStore.d.ts +26 -0
  487. package/dist/cli/vault/passStore.js +134 -0
  488. package/dist/cli/vault/passwordCommand.d.ts +39 -0
  489. package/dist/cli/vault/passwordCommand.js +101 -0
  490. package/dist/cli/vault/passwordProbe.d.ts +27 -0
  491. package/dist/cli/vault/passwordProbe.js +282 -0
  492. package/dist/cli/vault/passwordRotation.d.ts +9 -0
  493. package/dist/cli/vault/passwordRotation.js +273 -0
  494. package/dist/cli/vault/rotationApi.d.ts +13 -0
  495. package/dist/cli/vault/rotationApi.js +58 -0
  496. package/dist/cli/vault/rotationCommand.d.ts +2 -0
  497. package/dist/cli/vault/rotationCommand.js +75 -0
  498. package/dist/cli/vault/rotationEngine.d.ts +19 -0
  499. package/dist/cli/vault/rotationEngine.js +65 -0
  500. package/dist/cli/vault/rotationHelperSource.d.ts +2 -0
  501. package/dist/cli/vault/rotationHelperSource.js +3 -0
  502. package/dist/cli/vault/rotationInput.d.ts +11 -0
  503. package/dist/cli/vault/rotationInput.js +48 -0
  504. package/dist/cli/vault/rotationJournal.d.ts +16 -0
  505. package/dist/cli/vault/rotationJournal.js +183 -0
  506. package/dist/cli/vault/rotationKeys.d.ts +4 -0
  507. package/dist/cli/vault/rotationKeys.js +48 -0
  508. package/dist/cli/vault/rotationPrepare.d.ts +17 -0
  509. package/dist/cli/vault/rotationPrepare.js +108 -0
  510. package/dist/cli/vault/rotationRemote.d.ts +33 -0
  511. package/dist/cli/vault/rotationRemote.js +156 -0
  512. package/dist/cli/vault/rotationState.d.ts +42 -0
  513. package/dist/cli/vault/rotationState.js +115 -0
  514. package/dist/cli/vault/rotationTransport.d.ts +18 -0
  515. package/dist/cli/vault/rotationTransport.js +71 -0
  516. package/dist/cli/vault/sshSource.d.ts +18 -0
  517. package/dist/cli/vault/sshSource.js +196 -0
  518. package/dist/cli/vault/sshSync.d.ts +17 -0
  519. package/dist/cli/vault/sshSync.js +224 -0
  520. package/dist/cli/vault/sshTransfer.d.ts +22 -0
  521. package/dist/cli/vault/sshTransfer.js +140 -0
  522. package/dist/cli/vault/terraformState.d.ts +66 -0
  523. package/dist/cli/vault/terraformState.js +252 -0
  524. package/dist/cli/vault/terraformStateCommand.d.ts +2 -0
  525. package/dist/cli/vault/terraformStateCommand.js +61 -0
  526. package/dist/cli/vault/tree.d.ts +43 -0
  527. package/dist/cli/vault/tree.js +292 -0
  528. package/dist/cli/version.d.ts +1 -0
  529. package/dist/cli/version.js +9 -0
  530. package/dist/cli/workflow/index.d.ts +76 -0
  531. package/dist/cli/workflow/index.js +826 -0
  532. package/dist/cli/workflow/validate.d.ts +19 -0
  533. package/dist/cli/workflow/validate.js +353 -0
  534. package/dist/package.json +1 -0
  535. package/package.json +28 -10
@@ -0,0 +1,2330 @@
1
+ export * from "./open-resources.js";
2
+ export * from "./library-manifest.js";
3
+ export * from "./library-edit.js";
4
+ export * from "./storage.js";
5
+ import * as browser from "./browser.js";
6
+ export * from "./browser.js";
7
+ export * from "./registered-runs.js";
8
+ export * from "./streams.js";
9
+ export * from "./platform.js";
10
+ export * from "./vault.js";
11
+ export * from "./access.js";
12
+ import { JobsApi } from "./jobs.js";
13
+ import { InfraApi } from "./infra.js";
14
+ export * from "./common.js";
15
+ export * from "./workspace.js";
16
+ export * from "./content.js";
17
+ export * from "./execution.js";
18
+ export * from "./ownership.js";
19
+ export * from "./note-files.js";
20
+ export * from "./jobs.js";
21
+ export * from "./infra.js";
22
+ import { type ClientOptions, type Transport } from "./client.js";
23
+ export * from "./client.js";
24
+ export * from "./sessions.js";
25
+ export * from "./notes.js";
26
+ export * from "./agent.js";
27
+ /** TypeScript operations use an explicit transport; importing does not execute CLI startup. */
28
+ export declare function createApi(transport: Transport): {
29
+ transport: Transport;
30
+ openResources: {
31
+ find(resources: readonly import("./open-resources.js").OpenResource[], input: {
32
+ query: string;
33
+ offset?: number;
34
+ limit?: number;
35
+ ifResourcesRevision?: string;
36
+ signal?: AbortSignal;
37
+ }): Promise<{
38
+ results: Record<string, unknown>[];
39
+ skipped: {
40
+ resource: string;
41
+ reason: string;
42
+ }[];
43
+ totalResources: number;
44
+ resourcesRevision: string;
45
+ nextOffset: number | null;
46
+ partial: boolean;
47
+ }>;
48
+ };
49
+ browser: typeof browser;
50
+ profile: () => Promise<unknown>;
51
+ registeredRuns: {
52
+ receipt: (ref: string) => Promise<{
53
+ binding: import("./registered-runs.js").Binding;
54
+ execution: {
55
+ kind: string;
56
+ id: any;
57
+ namespace: string;
58
+ };
59
+ requestId: any;
60
+ target: any;
61
+ worker: any;
62
+ status: any;
63
+ exitCode: any;
64
+ createdAt: any;
65
+ completedAt: any;
66
+ resolvedRuntime: any;
67
+ verifiedCodeDigest: any;
68
+ result: any;
69
+ error: any;
70
+ receiptRef: string;
71
+ logsRef: string;
72
+ }>;
73
+ submit(ref: string, options: import("./registered-runs.js").RunOptions): Promise<any>;
74
+ };
75
+ pages: {
76
+ generate: (input: Record<string, unknown>, signal?: AbortSignal) => AsyncGenerator<{
77
+ event?: string;
78
+ data: unknown;
79
+ }, void, any>;
80
+ edit: (workspaceId: string, input: Record<string, unknown>, signal?: AbortSignal) => AsyncGenerator<{
81
+ event?: string;
82
+ data: unknown;
83
+ }, void, any>;
84
+ status: (workspaceId: string) => Promise<unknown>;
85
+ delete: (workspaceId: string) => Promise<unknown>;
86
+ };
87
+ platform: (namespace: string) => {
88
+ providerDeclarations: {
89
+ list: (query?: import("./common.js").Query) => Promise<{
90
+ [key: string]: unknown;
91
+ }>;
92
+ get: (id: string) => Promise<import("./common.js").Resource>;
93
+ create: (input: import("./common.js").JsonObject) => Promise<import("./common.js").Resource>;
94
+ update: (id: string, input: Partial<import("./common.js").JsonObject>) => Promise<import("./common.js").Resource>;
95
+ delete: (id: string) => Promise<unknown>;
96
+ };
97
+ storage: {
98
+ list: (query?: import("./common.js").Query) => Promise<{
99
+ [key: string]: unknown;
100
+ }>;
101
+ get: (id: string) => Promise<import("./common.js").Resource>;
102
+ create: (input: import("./common.js").JsonObject) => Promise<import("./common.js").Resource>;
103
+ update: (id: string, input: Partial<import("./common.js").JsonObject>) => Promise<import("./common.js").Resource>;
104
+ delete: (id: string) => Promise<unknown>;
105
+ };
106
+ queueDefinitions: {
107
+ list: (query?: import("./common.js").Query) => Promise<{
108
+ [key: string]: unknown;
109
+ }>;
110
+ get: (id: string) => Promise<import("./common.js").Resource>;
111
+ create: (input: import("./common.js").JsonObject) => Promise<import("./common.js").Resource>;
112
+ update: (id: string, input: Partial<import("./common.js").JsonObject>) => Promise<import("./common.js").Resource>;
113
+ delete: (id: string) => Promise<unknown>;
114
+ };
115
+ experiments: {
116
+ workspaces: () => Promise<unknown>;
117
+ binding: () => Promise<unknown>;
118
+ connect: (input: {
119
+ namespaceId: string;
120
+ instanceId: string;
121
+ expectedRevision: number;
122
+ }) => Promise<unknown>;
123
+ disconnect: (expectedRevision: number) => Promise<unknown>;
124
+ };
125
+ slurm: {
126
+ clusters: () => Promise<unknown>;
127
+ snapshot: (id: string) => Promise<unknown>;
128
+ };
129
+ repos: {
130
+ snapshot: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
131
+ list: (query?: import("./common.js").Query) => Promise<{
132
+ [key: string]: unknown;
133
+ }>;
134
+ get: (id: string) => Promise<import("./common.js").Resource>;
135
+ create: (input: import("./common.js").JsonObject) => Promise<import("./common.js").Resource>;
136
+ update: (id: string, input: Partial<import("./common.js").JsonObject>) => Promise<import("./common.js").Resource>;
137
+ delete: (id: string) => Promise<unknown>;
138
+ };
139
+ uploads: {
140
+ authorize: (project: string, input: import("./common.js").JsonObject) => Promise<unknown>;
141
+ resume: (project: string, input: {
142
+ objectKey: string;
143
+ uploadId: string;
144
+ size: number;
145
+ }) => Promise<unknown>;
146
+ register: (input: import("./common.js").JsonObject) => Promise<unknown>;
147
+ };
148
+ infrastructure: {
149
+ move: (id: string, phase: "preview" | "commit", input: import("./common.js").JsonObject) => Promise<unknown>;
150
+ transfer: {
151
+ preview: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
152
+ create: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
153
+ status: (id: string) => Promise<unknown>;
154
+ accept: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
155
+ };
156
+ };
157
+ };
158
+ machine: {
159
+ self: () => Promise<unknown>;
160
+ host: (id: string) => Promise<unknown>;
161
+ project: (id: string) => Promise<unknown>;
162
+ };
163
+ projectTools: {
164
+ projects: () => Promise<{
165
+ projects: {
166
+ id: string;
167
+ name: string;
168
+ href: string;
169
+ }[];
170
+ }>;
171
+ searchProject: (projectId: string, query: string, options?: {
172
+ cursor?: string;
173
+ content?: boolean;
174
+ }) => Promise<{
175
+ entries: unknown[];
176
+ results: unknown[];
177
+ skipped: unknown[];
178
+ nextCursor: string | null;
179
+ partial: boolean;
180
+ }>;
181
+ readFile: (projectId: string, fileId: string) => Promise<{
182
+ id: string;
183
+ name: string;
184
+ content: string;
185
+ projectHref: string;
186
+ }>;
187
+ };
188
+ vault: (scope?: string) => {
189
+ scopes: () => Promise<unknown>;
190
+ capabilities: () => Promise<unknown>;
191
+ audit: () => Promise<unknown>;
192
+ tree: (query?: import("./common.js").Query) => Promise<unknown>;
193
+ list: (query?: import("./common.js").Query) => Promise<unknown>;
194
+ get: (name: string) => Promise<unknown>;
195
+ read: (selectors: string[]) => Promise<unknown>;
196
+ put: (input: {
197
+ name: string;
198
+ type: string;
199
+ value: string;
200
+ expiresAt?: string;
201
+ env?: string;
202
+ keyName?: string;
203
+ fileName?: string;
204
+ }, requestId: string, revision?: number) => Promise<unknown>;
205
+ delete: (name: string, revision?: number) => Promise<unknown>;
206
+ restore: (name: string, revision?: number) => Promise<unknown>;
207
+ writeStatus: (requestId: string) => Promise<unknown>;
208
+ policy: () => Promise<unknown>;
209
+ setPolicy: (input: {
210
+ exportEnabled: boolean;
211
+ expectedRevision: number;
212
+ requestId: string;
213
+ }) => Promise<unknown>;
214
+ copyPreview: (input: {
215
+ name: string;
216
+ destinationScope: string | null;
217
+ destinationName: string;
218
+ expectedRevision: number;
219
+ requestId: string;
220
+ mode: "copy";
221
+ }) => Promise<unknown>;
222
+ copyOperation: (id: string, action?: "status" | "commit" | "cancel") => Promise<unknown>;
223
+ copyRecover: (requestId: string) => Promise<unknown>;
224
+ keys: {
225
+ create: (input: {
226
+ selectors: string[];
227
+ ttlSeconds: number;
228
+ renewable: boolean;
229
+ oneTime: boolean;
230
+ maxLifetimeSeconds?: number;
231
+ }, requestId: string) => Promise<unknown>;
232
+ list: () => Promise<unknown>;
233
+ renew: (id: string, ttlSeconds: number) => Promise<unknown>;
234
+ revoke: (id: string) => Promise<unknown>;
235
+ };
236
+ kms: {
237
+ get: (prefix: string) => Promise<unknown>;
238
+ preview: (input: import("./common.js").JsonObject) => Promise<unknown>;
239
+ activate: (prefix: string, keyRef: string, requestId: string) => Promise<unknown>;
240
+ migrate: (prefix: string, keyRef: string, requestId: string) => Promise<unknown>;
241
+ resume: (id: string, input: {
242
+ limit: number;
243
+ expectedPrefix?: string;
244
+ }) => Promise<unknown>;
245
+ status: (id: string) => Promise<unknown>;
246
+ };
247
+ otp: {
248
+ activate: (input: {
249
+ name: string;
250
+ expectedRevision: number;
251
+ counterOwner: string;
252
+ }) => Promise<unknown>;
253
+ generate: (input: {
254
+ name: string;
255
+ entryId?: string;
256
+ expectedRevision?: number;
257
+ requestId?: string;
258
+ }) => Promise<unknown>;
259
+ };
260
+ hostCredentials: {
261
+ get: (id: string) => Promise<unknown>;
262
+ list: (hostId: string, enrollmentId: string) => Promise<unknown>;
263
+ bind: (input: import("./common.js").JsonObject) => Promise<unknown>;
264
+ release: (id: string, input: {
265
+ entryId: string;
266
+ entryRevision: number;
267
+ }) => Promise<unknown>;
268
+ supersede: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
269
+ operation: (id: string) => Promise<unknown>;
270
+ confirmCleanup: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
271
+ };
272
+ passwordRotation: {
273
+ reserve: (bindingId: string, operationId: string, input: import("./common.js").JsonObject) => Promise<unknown>;
274
+ get: (id: string) => Promise<unknown>;
275
+ action: (id: string, action: "read" | "start" | "cancel" | "confirm", input?: import("./common.js").JsonObject) => Promise<unknown>;
276
+ };
277
+ };
278
+ hosts: (namespace: string) => {
279
+ list: (query?: {
280
+ prefix?: string;
281
+ archived?: string;
282
+ page?: number;
283
+ pageSize?: number;
284
+ }) => Promise<unknown>;
285
+ status: (id: string) => Promise<unknown>;
286
+ enroll: (input: import("./common.js").JsonObject) => Promise<unknown>;
287
+ enrollments: (id: string) => Promise<unknown>;
288
+ lifecycle: (id: string) => Promise<unknown>;
289
+ archive: (id: string, input: {
290
+ requestId: string;
291
+ expectedRevision: number;
292
+ }) => Promise<unknown>;
293
+ restore: (id: string, input: {
294
+ requestId: string;
295
+ expectedRevision: number;
296
+ }) => Promise<unknown>;
297
+ power: (id: string) => Promise<unknown>;
298
+ changePower: (id: string, enrollmentId: string, action: "start" | "stop" | "restart" | "terminate", input: import("./common.js").JsonObject) => Promise<unknown>;
299
+ metrics: (id: string, enrollmentId: string, resolution?: 10 | 60 | 900 | 3600) => Promise<unknown>;
300
+ check: (id: string, enrollmentId: string, action: "ssh" | "tracked-run") => Promise<unknown>;
301
+ terminalTargets: () => Promise<unknown>;
302
+ terminalSession: (enrollmentId: string, input: {
303
+ clientPublicKey: string;
304
+ durationSeconds: number;
305
+ }) => Promise<unknown>;
306
+ launch: (id: string) => Promise<unknown>;
307
+ };
308
+ serviceAccounts: (namespace: string) => {
309
+ list: (query?: {
310
+ page?: number;
311
+ pageSize
312
+ /** TypeScript operations use an explicit transport; importing does not execute CLI startup. */
313
+ ?: number;
314
+ }) => Promise<unknown>;
315
+ get: (id: string) => Promise<unknown>;
316
+ create: (input: {
317
+ name: string;
318
+ description?: string;
319
+ }) => Promise<unknown>;
320
+ bind: (id: string, enrollmentId: string) => Promise<unknown>;
321
+ revoke: (id: string) => Promise<unknown>;
322
+ projectGrant: (id: string, projectId: string, role: "READ" | "WRITE" | "ADMIN") => Promise<unknown>;
323
+ removeProjectGrant: (id: string, projectId: string) => Promise<unknown>;
324
+ hostGrant: (id: string, hostId: string, input: {
325
+ read: boolean;
326
+ use: boolean;
327
+ }) => Promise<unknown>;
328
+ removeHostGrant: (id: string, hostId: string) => Promise<unknown>;
329
+ };
330
+ graphql: <T = unknown>(query: string, variables?: Record<string, unknown>, timeoutMs?: number) => Promise<T>;
331
+ organizations: {
332
+ list: () => Promise<unknown>;
333
+ get: (slug: string) => Promise<unknown>;
334
+ create: (input: {
335
+ slug: string;
336
+ name: string;
337
+ description?: string;
338
+ }) => Promise<unknown>;
339
+ update: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
340
+ delete: (id: string) => Promise<unknown>;
341
+ leave: (id: string) => Promise<unknown>;
342
+ members: (id: string) => Promise<unknown>;
343
+ addMember: (orgId: string, userId: string, role?: string) => Promise<unknown>;
344
+ memberRole: (orgId: string, userId: string, role: string) => Promise<unknown>;
345
+ removeMember: (orgId: string, userId: string) => Promise<unknown>;
346
+ };
347
+ teams: {
348
+ list: (orgId?: string) => Promise<unknown>;
349
+ get: (id: string) => Promise<unknown>;
350
+ create: (input: import("./common.js").JsonObject) => Promise<unknown>;
351
+ update: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
352
+ delete: (id: string) => Promise<unknown>;
353
+ leave: (id: string) => Promise<unknown>;
354
+ members: (id: string) => Promise<unknown>;
355
+ addMember: (teamId: string, userId: string, role?: string) => Promise<unknown>;
356
+ memberRole: (teamId: string, userId: string, role: string) => Promise<unknown>;
357
+ removeMember: (teamId: string, userId: string) => Promise<unknown>;
358
+ };
359
+ sessions: (namespace: string) => {
360
+ namespace: string;
361
+ link: (sessionId: string, resource: {
362
+ namespace: string;
363
+ type: "note" | "artifact";
364
+ id: string;
365
+ }) => Promise<unknown>;
366
+ unlink: (sessionId: string, resource: {
367
+ namespace: string;
368
+ type: "note" | "artifact";
369
+ id: string;
370
+ }) => Promise<unknown>;
371
+ list: (query?: import("./sessions.js").ListSessionsQuery) => Promise<import("./sessions.js").SessionPage>;
372
+ available: (query?: import("./sessions.js").ListSessionsQuery) => Promise<import("./sessions.js").SessionPage>;
373
+ get: (sessionId: string) => Promise<import("./sessions.js").Session>;
374
+ conversation: (sessionId: string) => Promise<{
375
+ conversation: import("./sessions.js").Conversation | null;
376
+ revision: string | null;
377
+ provider: string;
378
+ nativeSessionId: string;
379
+ }>;
380
+ uploadConversation: (sessionId: string, conversation: import("./sessions.js").Conversation, expectedRevision: string | null) => Promise<{
381
+ sessionId: string;
382
+ revision: string;
383
+ messageCount: number;
384
+ }>;
385
+ resources: (sessionId: string, cursor?: string, pageSize?: number) => Promise<{
386
+ resources: {
387
+ type: "note" | "artifact";
388
+ id: string;
389
+ namespaceSlug: string;
390
+ title: string;
391
+ }[];
392
+ hasMore: boolean;
393
+ nextCursor: string | null;
394
+ }>;
395
+ rename: (sessionId: string, name: string) => Promise<import("./sessions.js").Session>;
396
+ archive: (sessionId: string, archived: boolean) => Promise<import("./sessions.js").Session>;
397
+ register: (input: {
398
+ provider: import("./sessions.js").Provider;
399
+ nativeSessionId: string;
400
+ cwd: string;
401
+ name?: string;
402
+ visibility?: "public" | "private";
403
+ }) => Promise<{
404
+ session: import("./sessions.js").Session;
405
+ }>;
406
+ commands: {
407
+ create: <K extends import("./sessions.js").CommandKind>(kind: K, input: import("./sessions.js").CommandInput[K], options?: {
408
+ runnerId?: string;
409
+ idempotencyKey?: string;
410
+ }) => Promise<{
411
+ command: import("./sessions.js").Command<K>;
412
+ created: boolean;
413
+ }>;
414
+ broadcast: (sessionIds: string[], text: string, idempotencyKey?: string) => Promise<{
415
+ batchId: string;
416
+ commands: import("./sessions.js").Command<"send">[];
417
+ refused: {
418
+ sessionId: string;
419
+ error: string;
420
+ }[];
421
+ }>;
422
+ list: (query?: {
423
+ sessionId?: string;
424
+ status?: import("./sessions.js").CommandStatus;
425
+ batchId?: string;
426
+ limit?: number;
427
+ }) => Promise<{
428
+ commands: import("./sessions.js").Command[];
429
+ }>;
430
+ get: (commandId: string, wait?: number) => Promise<import("./sessions.js").Command<"status" | "start" | "stop" | "resume" | "send" | "sync" | "subagents">>;
431
+ wait: (commandId: string, seconds: number, signal?: AbortSignal) => Promise<import("./sessions.js").Command<"status" | "start" | "stop" | "resume" | "send" | "sync" | "subagents">>;
432
+ cancel: (commandId: string) => Promise<import("./sessions.js").Command<"status" | "start" | "stop" | "resume" | "send" | "sync" | "subagents">>;
433
+ renew: (commandId: string, runnerId: string, leaseToken: string) => Promise<{
434
+ leaseMs: number;
435
+ cancelRequested?: boolean;
436
+ }>;
437
+ reconcile: (commandId: string, runnerId: string, observation: Record<string, unknown>) => Promise<import("./sessions.js").Command<"status" | "start" | "stop" | "resume" | "send" | "sync" | "subagents">>;
438
+ finish: (commandId: string, runnerId: string, receipt: import("./sessions.js").CommandReceipt) => Promise<import("./sessions.js").Command<"status" | "start" | "stop" | "resume" | "send" | "sync" | "subagents">>;
439
+ };
440
+ runners: {
441
+ list: () => Promise<import("./sessions.js").Runner[]>;
442
+ register: (input: import("./sessions.js").RunnerRegistration) => Promise<import("./sessions.js").Runner>;
443
+ claim: (runnerId: string, seconds: number, signal?: AbortSignal) => Promise<import("./sessions.js").ClaimedCommand | null>;
444
+ };
445
+ };
446
+ terminal: (namespace: string) => {
447
+ targets: () => Promise<unknown>;
448
+ discovery: (input: {
449
+ targetId: string;
450
+ enrollmentId: string;
451
+ cursor?: string;
452
+ }) => Promise<unknown>;
453
+ create: (input: {
454
+ targetId: string;
455
+ enrollmentId: string;
456
+ cwd: string;
457
+ codexSessionId: string;
458
+ nameIfNew?: string;
459
+ visibility?: string;
460
+ provider?: import("./sessions.js").Provider;
461
+ claudeConfigDir?: string;
462
+ }) => Promise<unknown>;
463
+ get: (id: string) => Promise<unknown>;
464
+ metadata: (id: string, input: Record<string, unknown>) => Promise<unknown>;
465
+ visibility: (id: string, visibility: "public" | "private" | "team") => Promise<unknown>;
466
+ ticket: (input: {
467
+ targetId: string;
468
+ launch: unknown;
469
+ managedSessionId: string;
470
+ runtime?: "direct";
471
+ cols?: number;
472
+ rows?: number;
473
+ }) => Promise<unknown>;
474
+ managed: (id: string, action: "status" | "start" | "reconnect" | "stop", input: Record<string, unknown>) => Promise<unknown>;
475
+ };
476
+ notes: (namespace: string) => {
477
+ namespace: string;
478
+ source: (noteId: string, at?: string) => Promise<import("./note-edits.js").NoteSource>;
479
+ patch: (noteId: string, input: import("./note-edits.js").NotePatch) => Promise<{
480
+ note: string;
481
+ hash: string;
482
+ revision: string;
483
+ baseRevision: string;
484
+ mode: "exact" | "merge";
485
+ }>;
486
+ replaceContent: (noteId: string, baseRevision: string, content: string, mode?: "exact" | "merge") => Promise<{
487
+ note: string;
488
+ hash: string;
489
+ revision: string;
490
+ baseRevision: string;
491
+ mode: "exact" | "merge";
492
+ }>;
493
+ replace: (noteId: string, baseRevision: string, text: string, where: import("./note-editing.js").Where, mode?: "exact" | "merge") => Promise<{
494
+ note: string;
495
+ hash: string;
496
+ revision: string;
497
+ baseRevision: string;
498
+ mode: "exact" | "merge";
499
+ }>;
500
+ insert: (noteId: string, baseRevision: string, text: string, where: {
501
+ line?: number;
502
+ ind?: number;
503
+ }, mode?: "exact" | "merge") => Promise<{
504
+ note: string;
505
+ hash: string;
506
+ revision: string;
507
+ baseRevision: string;
508
+ mode: "exact" | "merge";
509
+ }>;
510
+ removeText: (noteId: string, baseRevision: string, where: import("./note-editing.js").Where, mode?: "exact" | "merge") => Promise<{
511
+ note: string;
512
+ hash: string;
513
+ revision: string;
514
+ baseRevision: string;
515
+ mode: "exact" | "merge";
516
+ }>;
517
+ findInSource: (noteId: string, at: string, query?: string, options?: import("./note-editing.js").FindOpts) => Promise<{
518
+ matches: import("./note-editing.js").Match[];
519
+ note: string;
520
+ content: string;
521
+ hash: string;
522
+ revision: string;
523
+ }>;
524
+ outline: (noteId: string, at?: string) => Promise<{
525
+ note: string;
526
+ revision: string;
527
+ hash: string;
528
+ entries: import("./note-toc.js").TocEntry[];
529
+ }>;
530
+ get: (noteId: string) => Promise<import("./notes.js").NoteRow & {
531
+ namespaceSlug: string;
532
+ permissions: Record<string, boolean>;
533
+ }>;
534
+ delete: (noteId: string) => Promise<unknown>;
535
+ shared: () => Promise<{
536
+ notes: import("./notes.js").NoteRow[];
537
+ }>;
538
+ projects: (noteId: string, view?: "nodes") => Promise<unknown>;
539
+ move: (noteId: string, input: {
540
+ namespace: string;
541
+ projects: string[];
542
+ dryRun?: boolean;
543
+ }) => Promise<unknown>;
544
+ share: (noteId: string) => {
545
+ get: () => Promise<Record<string, unknown>>;
546
+ create: (role?: "read" | "write") => Promise<unknown>;
547
+ revoke: (revokeAccepted?: boolean) => Promise<unknown>;
548
+ visibility: (visibility: "private" | "public" | "team") => Promise<unknown>;
549
+ access: () => Promise<unknown>;
550
+ remove: (userId: string) => Promise<unknown>;
551
+ };
552
+ files: (noteId: string) => {
553
+ download: (id: string, signal?: AbortSignal) => Promise<Response>;
554
+ list: (query?: {
555
+ prefix?: string;
556
+ trash?: boolean;
557
+ limit?: number;
558
+ offset?: number;
559
+ }) => Promise<{
560
+ files: import("./note-files.js").NoteFile[];
561
+ total: number;
562
+ }>;
563
+ get: (id: string) => Promise<import("./note-files.js").NoteFile>;
564
+ text: (id: string) => Promise<{
565
+ text: string;
566
+ etag: string;
567
+ }>;
568
+ upload: (path: string, body: NonNullable<import("./client.js").RequestOptions["body"]>, options?: {
569
+ contentType?: string;
570
+ overwrite?: boolean;
571
+ ifMatch?: string;
572
+ }) => Promise<import("./note-files.js").NoteFile>;
573
+ write: (input: {
574
+ path: string;
575
+ text: string;
576
+ overwrite?: boolean;
577
+ contentType?: string;
578
+ }, options?: {
579
+ ifMatch?: string;
580
+ idempotencyKey?: string;
581
+ }) => Promise<import("./note-files.js").NoteFile>;
582
+ move: (id: string, path: string, options?: {
583
+ overwrite?: boolean;
584
+ ifMatch?: string;
585
+ }) => Promise<import("./note-files.js").NoteFile>;
586
+ copy: (id: string, path: string, options?: {
587
+ overwrite?: boolean;
588
+ idempotencyKey?: string;
589
+ }) => Promise<import("./note-files.js").NoteFile>;
590
+ operation: (operationId: string, action?: "status" | "reconcile" | "cancel") => Promise<{
591
+ operationId: string;
592
+ state: string;
593
+ historicalResult: boolean;
594
+ file?: import("./note-files.js").NoteFile;
595
+ }>;
596
+ delete: (id: string, options?: {
597
+ purge?: boolean;
598
+ ifMatch?: string;
599
+ }) => Promise<{
600
+ id: string;
601
+ purged: boolean;
602
+ }>;
603
+ restore: (id: string, path?: string) => Promise<import("./note-files.js").NoteFile>;
604
+ preview: (id: string, share?: boolean) => Promise<{
605
+ [key: string]: unknown;
606
+ url: string;
607
+ }>;
608
+ revokePreview: (id: string) => Promise<{
609
+ id: string;
610
+ shared: boolean;
611
+ }>;
612
+ };
613
+ media: (form: FormData) => Promise<unknown>;
614
+ read: (noteId: string, query?: import("./common.js").Query) => Promise<import("./notes.js").NoteReadResult>;
615
+ html: (noteId: string, options?: {
616
+ at?: string;
617
+ section?: string;
618
+ toc?: boolean;
619
+ tag?: string;
620
+ ifMatch?: string;
621
+ }) => Promise<{
622
+ note: string;
623
+ revision: string;
624
+ html: string;
625
+ bytes: Uint8Array<ArrayBuffer>;
626
+ }>;
627
+ diff: (noteId: string, query: {
628
+ from?: string;
629
+ to?: string;
630
+ since?: string;
631
+ format?: "diff" | "inline-dff";
632
+ }) => Promise<unknown>;
633
+ presence: (noteId: string, input: import("./common.js").JsonObject) => Promise<unknown>;
634
+ saveVersion: (noteId: string, input: {
635
+ hash: string;
636
+ tag?: string;
637
+ summary?: string;
638
+ parentId?: string;
639
+ }) => Promise<unknown>;
640
+ find: (query: {
641
+ q: string;
642
+ note?: string;
643
+ cursor?: string;
644
+ limit?: number;
645
+ caseSensitive?: boolean;
646
+ glob?: string;
647
+ regex?: string;
648
+ flags?: string;
649
+ context?: string;
650
+ }) => Promise<import("./notes.js").NoteSearchPage>;
651
+ create: (input: {
652
+ name: string;
653
+ summary?: string;
654
+ projects?: string[];
655
+ visibility?: "private" | "public";
656
+ }) => Promise<{
657
+ note: import("./notes.js").NoteRow;
658
+ rtc: {
659
+ rtcDocId: string;
660
+ };
661
+ }>;
662
+ edit: (noteId: string, baseRevision: string, edits: import("./note-edits.js").NoteEdit[], mode?: "merge" | "exact") => Promise<{
663
+ note: string;
664
+ hash: string;
665
+ revision: string;
666
+ baseRevision: string;
667
+ mode: "exact" | "merge";
668
+ }>;
669
+ versions: (noteId: string, query?: {
670
+ before?: string;
671
+ }) => Promise<{
672
+ versions: import("./notes.js").NoteVersion[];
673
+ nextCursor?: string | null;
674
+ }>;
675
+ version: (noteId: string, versionId: string) => Promise<import("./notes.js").NoteVersion>;
676
+ list: (query?: {
677
+ q?: string;
678
+ limit?: number;
679
+ offset?: number;
680
+ }) => Promise<{
681
+ notes: import("./notes.js").NoteRow[];
682
+ }>;
683
+ search: (q: string, limit?: number, offset?: number) => Promise<{
684
+ notes: import("./notes.js").NoteRow[];
685
+ total: number;
686
+ }>;
687
+ body: (noteId: string) => Promise<import("./notes.js").NoteBody>;
688
+ sections: (noteId: string) => Promise<{
689
+ sections: import("./notes.js").Section[];
690
+ etag: string;
691
+ }>;
692
+ section: (noteId: string, anchor: string) => Promise<import("./notes.js").NoteBody & Partial<import("./notes.js").Section>>;
693
+ write: (noteId: string, text: string, ifMatch: string) => Promise<import("./notes.js").WriteReceipt>;
694
+ append: (noteId: string, addition: string, ifMatch?: string) => Promise<import("./notes.js").WriteReceipt>;
695
+ addSection: (noteId: string, text: string, placement?: {
696
+ before?: string;
697
+ after?: string;
698
+ }, ifMatch?: string) => Promise<import("./notes.js").WriteReceipt>;
699
+ removeSection: (noteId: string, anchor: string, ifMatch?: string) => Promise<import("./notes.js").WriteReceipt>;
700
+ };
701
+ projects: (namespace: string) => {
702
+ grants: (project: string) => Promise<unknown>;
703
+ grant: (project: string, input: ({
704
+ granteeSlug: string;
705
+ teamId?: never;
706
+ } | {
707
+ teamId: string;
708
+ granteeSlug?: never;
709
+ }) & {
710
+ role: "READ" | "WRITE" | "ADMIN";
711
+ }) => Promise<unknown>;
712
+ revoke: (project: string, grantId: string) => Promise<unknown>;
713
+ attach: (project: string, input: {
714
+ type: string;
715
+ resourceId: string;
716
+ }) => Promise<unknown>;
717
+ detach: (project: string, input: {
718
+ type: string;
719
+ resourceId: string;
720
+ }) => Promise<unknown>;
721
+ resources: (project: string, kind: "bindrs" | "datasets" | "episodes") => {
722
+ list: (query?: import("./common.js").Query) => Promise<{
723
+ [key: string]: unknown;
724
+ }>;
725
+ get: (id: string) => Promise<import("./common.js").Resource>;
726
+ create: (input: import("./common.js").JsonObject) => Promise<import("./common.js").Resource>;
727
+ update: (id: string, input: Partial<import("./common.js").JsonObject>) => Promise<import("./common.js").Resource>;
728
+ delete: (id: string) => Promise<unknown>;
729
+ };
730
+ bindrs: (project: string) => {
731
+ addMembers: (name: string, add: string[]) => Promise<unknown>;
732
+ removeMembers: (name: string, remove: string[]) => Promise<unknown>;
733
+ list: (query?: import("./common.js").Query) => Promise<{
734
+ [key: string]: unknown;
735
+ }>;
736
+ get: (id: string) => Promise<import("./common.js").Resource>;
737
+ create: (input: import("./common.js").JsonObject) => Promise<import("./common.js").Resource>;
738
+ update: (id: string, input: Partial<import("./common.js").JsonObject>) => Promise<import("./common.js").Resource>;
739
+ delete: (id: string) => Promise<unknown>;
740
+ };
741
+ datasets: (project: string) => {
742
+ addBindrs: (name: string, add: string[]) => Promise<unknown>;
743
+ removeBindrs: (name: string, remove: string[]) => Promise<unknown>;
744
+ list: (query?: import("./common.js").Query) => Promise<{
745
+ [key: string]: unknown;
746
+ }>;
747
+ get: (id: string) => Promise<import("./common.js").Resource>;
748
+ create: (input: import("./common.js").JsonObject) => Promise<import("./common.js").Resource>;
749
+ update: (id: string, input: Partial<import("./common.js").JsonObject>) => Promise<import("./common.js").Resource>;
750
+ delete: (id: string) => Promise<unknown>;
751
+ };
752
+ list: (query?: import("./common.js").Query) => Promise<{
753
+ [key: string]: unknown;
754
+ }>;
755
+ get: (id: string) => Promise<import("./common.js").Resource>;
756
+ create: (input: import("./workspace.js").ProjectInput) => Promise<import("./common.js").Resource>;
757
+ update: (id: string, input: Partial<import("./workspace.js").ProjectInput>) => Promise<import("./common.js").Resource>;
758
+ delete: (id: string) => Promise<unknown>;
759
+ };
760
+ nodes: {
761
+ list: (query?: import("./common.js").Query) => Promise<unknown>;
762
+ children: (query: import("./common.js").Query) => Promise<unknown>;
763
+ lookup: (query: {
764
+ namespace: string;
765
+ project: string;
766
+ path: string;
767
+ episode?: string;
768
+ }) => Promise<import("./common.js").Resource>;
769
+ contents: (id: string, query?: import("./common.js").Query) => Promise<unknown>;
770
+ update: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
771
+ delete: (id: string) => Promise<{
772
+ deleted?: number;
773
+ }>;
774
+ download: (id: string) => Promise<{
775
+ url: string;
776
+ }>;
777
+ };
778
+ tasks: (namespace: string, project: string) => {
779
+ list: (query?: {
780
+ prefix?: string;
781
+ includeDeleted?: boolean;
782
+ limit?: number;
783
+ cursor?: string;
784
+ }) => Promise<unknown>;
785
+ get: (id: string, includeDeleted?: boolean) => Promise<unknown>;
786
+ resolve: (taskPath: string, includeDeleted?: boolean) => Promise<unknown>;
787
+ create: (input: {
788
+ path: string;
789
+ title: string;
790
+ blurb?: string;
791
+ kind?: string;
792
+ tags?: string[];
793
+ }) => Promise<unknown>;
794
+ update: (id: string, input: {
795
+ expectedRevision: string;
796
+ title?: string;
797
+ blurb?: string;
798
+ kind?: string;
799
+ tags?: string[];
800
+ children?: string[];
801
+ }) => Promise<unknown>;
802
+ move: (id: string, expectedRevision: string, destination: string) => Promise<unknown>;
803
+ delete: (id: string, expectedRevision: string) => Promise<unknown>;
804
+ restore: (id: string, expectedRevision: string) => Promise<unknown>;
805
+ status: (id: string) => Promise<unknown>;
806
+ events: (id: string, query?: {
807
+ cursor?: string;
808
+ limit?: number;
809
+ includeDeleted?: boolean;
810
+ }) => Promise<unknown>;
811
+ addEvent: (id: string, input: {
812
+ expectedRevision?: string;
813
+ type: string;
814
+ occurredAt: string;
815
+ data: import("./common.js").JsonObject;
816
+ [key: string]: unknown;
817
+ }) => Promise<unknown>;
818
+ notes: (id: string) => Promise<unknown>;
819
+ linkNote: (id: string, expectedRevision: string, link: {
820
+ role: string;
821
+ noteId: string;
822
+ section?: string;
823
+ }) => Promise<unknown>;
824
+ unlinkNote: (id: string, expectedRevision: string, link: {
825
+ role: string;
826
+ noteId: string;
827
+ section?: string;
828
+ }) => Promise<unknown>;
829
+ };
830
+ connections: (namespace: string) => {
831
+ oauth: {
832
+ create: (input: import("./common.js").JsonObject) => Promise<unknown>;
833
+ status: (id: string) => Promise<unknown>;
834
+ };
835
+ list: (query?: {
836
+ limit?: number;
837
+ cursor?: string;
838
+ labelContains?: string;
839
+ lifecycle?: string;
840
+ }) => Promise<unknown>;
841
+ get: (id: string) => Promise<unknown>;
842
+ affectedSources: (id: string, query?: {
843
+ limit?: number;
844
+ cursor?: string;
845
+ }) => Promise<unknown>;
846
+ create: (input: {
847
+ label: string;
848
+ connectorKind: string;
849
+ authKind: string;
850
+ credential?: import("./common.js").JsonObject;
851
+ privateConfig?: import("./common.js").JsonObject;
852
+ }, key: string) => Promise<unknown>;
853
+ rename: (id: string, label: string, expectedSettingsRevision: number, key: string) => Promise<unknown>;
854
+ check: (id: string) => Promise<unknown>;
855
+ reconnect: (id: string, input: {
856
+ expectedSettingsRevision: number;
857
+ credential: import("./common.js").JsonObject;
858
+ privateConfig?: import("./common.js").JsonObject;
859
+ enableAfterSuccess?: boolean;
860
+ }, key: string) => Promise<unknown>;
861
+ enable: (id: string, expectedSettingsRevision: number, key: string) => Promise<unknown>;
862
+ disable: (id: string, expectedSettingsRevision: number, key: string) => Promise<unknown>;
863
+ delete: (id: string, expectedSettingsRevision: number, key: string) => Promise<unknown>;
864
+ };
865
+ artifacts: (namespace: string) => {
866
+ publish: (id: string, input: {
867
+ content: Uint8Array;
868
+ title: string;
869
+ kind: string;
870
+ description?: string;
871
+ visibility?: "private" | "public";
872
+ share?: boolean;
873
+ }, store: import("./storage.js").VersionedContentStore) => Promise<{
874
+ version: number;
875
+ receipt: unknown;
876
+ }>;
877
+ list: (query?: {
878
+ deleted?: boolean;
879
+ }) => Promise<unknown>;
880
+ get: (id: string) => Promise<unknown>;
881
+ uploadCredentials: (artifactId: string) => Promise<unknown>;
882
+ register: (id: string, input: {
883
+ kind: string;
884
+ version: number;
885
+ title?: string;
886
+ description?: string;
887
+ visibility?: string;
888
+ share?: boolean;
889
+ }) => Promise<unknown>;
890
+ delete: (id: string, permanent?: boolean) => Promise<unknown>;
891
+ restore: (id: string) => Promise<unknown>;
892
+ metadata: (id: string) => {
893
+ get: () => Promise<unknown>;
894
+ set: (input: import("./common.js").JsonObject) => Promise<unknown>;
895
+ };
896
+ share: (id: string) => {
897
+ get: () => Promise<Record<string, unknown>>;
898
+ create: (role?: "read" | "write") => Promise<unknown>;
899
+ revoke: (revokeAccepted?: boolean) => Promise<unknown>;
900
+ visibility: (visibility: "private" | "public" | "team") => Promise<unknown>;
901
+ access: () => Promise<unknown>;
902
+ remove: (userId: string) => Promise<unknown>;
903
+ };
904
+ };
905
+ scenes: (namespace: string) => {
906
+ list: () => Promise<unknown>;
907
+ get: (name: string) => Promise<unknown>;
908
+ version: (name: string, version?: string) => Promise<unknown>;
909
+ uploadCredentials: (name: string) => Promise<unknown>;
910
+ register: (name: string, input: import("./common.js").JsonObject) => Promise<unknown>;
911
+ thumbnail: (name: string, input: {
912
+ imageBase64: string;
913
+ version: number;
914
+ source: "manual";
915
+ }) => Promise<unknown>;
916
+ delete: (name: string, permanent?: boolean) => Promise<unknown>;
917
+ restore: (name: string) => Promise<unknown>;
918
+ };
919
+ pipelines: (namespace: string) => {
920
+ versions: (name: string) => Promise<unknown>;
921
+ version: (name: string, hash: string) => Promise<unknown>;
922
+ nodes: (name: string, hash: string) => Promise<unknown>;
923
+ node: (name: string, hash: string, nodeId: string) => Promise<unknown>;
924
+ updateNodeState: (name: string, hash: string, nodeId: string, input: import("./common.js").JsonObject) => Promise<unknown>;
925
+ uploadWorkspace: (body: FormData) => Promise<unknown>;
926
+ hostWorkspace: (body: Uint8Array) => Promise<unknown>;
927
+ list: (query?: import("./common.js").Query) => Promise<{
928
+ [key: string]: unknown;
929
+ }>;
930
+ get: (id: string) => Promise<import("./common.js").Resource>;
931
+ create: (input: import("./common.js").JsonObject) => Promise<import("./common.js").Resource>;
932
+ update: (id: string, input: Partial<import("./common.js").JsonObject>) => Promise<import("./common.js").Resource>;
933
+ delete: (id: string) => Promise<unknown>;
934
+ };
935
+ workflows: (namespace: string) => {
936
+ pushRun: (name: string, runId: string, input: import("./common.js").JsonObject) => Promise<unknown>;
937
+ specCredentials: (name: string) => Promise<unknown>;
938
+ pushSpec: (name: string, input: {
939
+ version: number;
940
+ meta: import("./common.js").JsonObject;
941
+ }) => Promise<unknown>;
942
+ list: (query?: import("./common.js").Query) => Promise<{
943
+ [key: string]: unknown;
944
+ }>;
945
+ get: (id: string) => Promise<import("./common.js").Resource>;
946
+ create: (input: import("./common.js").JsonObject) => Promise<import("./common.js").Resource>;
947
+ update: (id: string, input: Partial<import("./common.js").JsonObject>) => Promise<import("./common.js").Resource>;
948
+ delete: (id: string) => Promise<unknown>;
949
+ publishSpec: (name: string, input: {
950
+ content: Uint8Array;
951
+ meta: import("./common.js").JsonObject;
952
+ }, store: import("./storage.js").VersionedContentStore) => Promise<{
953
+ version: number;
954
+ receipt: unknown;
955
+ }>;
956
+ };
957
+ runnables: (namespace: string) => {
958
+ versions: (name: string) => Promise<unknown>;
959
+ version: (name: string, version: string) => Promise<unknown>;
960
+ pushVersion: (name: string, input: {
961
+ version: string;
962
+ source: string;
963
+ metadata?: import("./common.js").JsonObject;
964
+ }) => Promise<unknown>;
965
+ list: (query?: import("./common.js").Query) => Promise<{
966
+ [key: string]: unknown;
967
+ }>;
968
+ get: (id: string) => Promise<import("./common.js").Resource>;
969
+ create: (input: import("./common.js").JsonObject) => Promise<import("./common.js").Resource>;
970
+ update: (id: string, input: Partial<import("./common.js").JsonObject>) => Promise<import("./common.js").Resource>;
971
+ delete: (id: string) => Promise<unknown>;
972
+ };
973
+ libraries: (namespace: string) => {
974
+ list: (query?: import("./common.js").Query) => Promise<unknown>;
975
+ get: (name: string) => Promise<unknown>;
976
+ manifest: (name: string) => Promise<unknown>;
977
+ search: (query: {
978
+ q: string;
979
+ libraries?: string;
980
+ category?: string;
981
+ kind?: string;
982
+ tag?: string;
983
+ license?: string;
984
+ limit?: number;
985
+ offset?: number;
986
+ }) => Promise<unknown>;
987
+ uploadCapabilities: (name: string) => Promise<unknown>;
988
+ uploadAuthorizations: (name: string, input: import("./common.js").JsonObject) => Promise<unknown>;
989
+ uploadSession: (name: string, id: string) => Promise<unknown>;
990
+ filesStatus: (name: string, id: string, files: import("./common.js").JsonObject[]) => Promise<unknown>;
991
+ filesPresign: (name: string, paths: string[], ttlSeconds?: number) => Promise<unknown>;
992
+ register: (name: string, input: import("./common.js").JsonObject) => Promise<unknown>;
993
+ };
994
+ sources: (namespace: string) => {
995
+ list: (query?: {
996
+ cursor?: string;
997
+ limit?: number;
998
+ nameContains?: string;
999
+ provider?: string;
1000
+ hasExternal?: boolean;
1001
+ lifecycle?: string;
1002
+ }) => Promise<unknown>;
1003
+ get: (id: string) => Promise<unknown>;
1004
+ byName: (name: string) => Promise<unknown>;
1005
+ connectors: () => Promise<unknown>;
1006
+ create: (input: {
1007
+ name: string;
1008
+ description?: string;
1009
+ }, requestId: string) => Promise<unknown>;
1010
+ import: (input: import("./common.js").JsonObject, requestId: string) => Promise<unknown>;
1011
+ metadata: (id: string, input: {
1012
+ expectedSettingsRevision: number;
1013
+ name?: string;
1014
+ description?: string | null;
1015
+ }) => Promise<unknown>;
1016
+ browse: (id: string, query?: {
1017
+ path?: string;
1018
+ cursor?: string;
1019
+ limit?: number;
1020
+ }) => Promise<unknown>;
1021
+ readCapability: (id: string, input: {
1022
+ path: string;
1023
+ intent: string;
1024
+ }) => Promise<unknown>;
1025
+ uploadAuthorizations: (id: string, input: import("./common.js").JsonObject, requestId: string) => Promise<unknown>;
1026
+ deleteObject: (id: string, objectPath: string, requestId: string) => Promise<unknown>;
1027
+ deletePrefix: (id: string, prefix: string, requestId: string) => Promise<unknown>;
1028
+ deleteStatus: (id: string) => Promise<unknown>;
1029
+ deleteRetry: (id: string, requestId: string) => Promise<unknown>;
1030
+ setExternal: (id: string, input: import("./common.js").JsonObject, requestId: string) => Promise<unknown>;
1031
+ removeExternal: (id: string, expectedCompositionRevision: number, requestId: string) => Promise<unknown>;
1032
+ enable: (id: string, requestId: string) => Promise<unknown>;
1033
+ disable: (id: string, requestId: string) => Promise<unknown>;
1034
+ checkAccess: (id: string) => Promise<unknown>;
1035
+ delete: (id: string, requestId: string) => Promise<unknown>;
1036
+ deleteSourceStatus: (id: string) => Promise<unknown>;
1037
+ deleteSourceRetry: (id: string) => Promise<unknown>;
1038
+ stat: (id: string, objectPath: string) => Promise<unknown>;
1039
+ editors: (id: string) => Promise<unknown>;
1040
+ addEditor: (id: string, input: {
1041
+ subjectType: string;
1042
+ subjectId: string;
1043
+ }, requestId: string) => Promise<unknown>;
1044
+ removeEditor: (id: string, subjectType: string, subjectId: string, requestId: string) => Promise<unknown>;
1045
+ references: (id: string, query?: {
1046
+ limit?: number;
1047
+ cursor?: string;
1048
+ }) => Promise<unknown>;
1049
+ share: (id: string, role: string) => Promise<unknown>;
1050
+ revokeShare: (id: string, forget: boolean) => Promise<unknown>;
1051
+ shares: (id: string, query?: {
1052
+ limit?: number;
1053
+ cursor?: string;
1054
+ }) => Promise<unknown>;
1055
+ removeShare: (id: string, user: string) => Promise<unknown>;
1056
+ };
1057
+ runs: (namespace: string) => {
1058
+ capabilities: () => Promise<unknown>;
1059
+ submit: (input: import("./execution.js").RunInput) => Promise<{
1060
+ run: Record<string, unknown>;
1061
+ }>;
1062
+ status: (id: string) => Promise<unknown>;
1063
+ cancel: (id: string) => Promise<unknown>;
1064
+ logs: (id: string, cursor?: string) => Promise<unknown>;
1065
+ };
1066
+ providers: (namespace: string) => {
1067
+ list: (query?: {
1068
+ page?: number;
1069
+ pageSize?: number;
1070
+ }) => Promise<unknown>;
1071
+ get: (id: string) => Promise<unknown>;
1072
+ register: (input: {
1073
+ requestId: string;
1074
+ declaration: import("./common.js").JsonObject;
1075
+ }) => Promise<unknown>;
1076
+ launchServer: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
1077
+ launch: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
1078
+ layers: (id: string) => Promise<unknown>;
1079
+ createLayer: (id: string, input: {
1080
+ requestId: string;
1081
+ name: string;
1082
+ text: string;
1083
+ }) => Promise<unknown>;
1084
+ updateLayer: (id: string, layer: string, input: import("./common.js").JsonObject) => Promise<unknown>;
1085
+ retireLayer: (id: string, layer: string, input: {
1086
+ requestId: string;
1087
+ revision: number;
1088
+ }) => Promise<unknown>;
1089
+ preflight: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
1090
+ instances: (id: string) => Promise<unknown>;
1091
+ launchInstances: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
1092
+ instanceLogs: (id: string, instance: string, tailLines?: number) => Promise<unknown>;
1093
+ instanceAction: (id: string, instance: string, action: "start" | "stop" | "terminate", requestId: string) => Promise<unknown>;
1094
+ nodes: (clusterId: string) => Promise<unknown>;
1095
+ associate: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
1096
+ check: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
1097
+ status: (id: string, query?: {
1098
+ page?: number;
1099
+ pageSize?: number;
1100
+ }) => Promise<unknown>;
1101
+ retire: (id: string, input: {
1102
+ requestId: string;
1103
+ revision: number;
1104
+ }, associationId?: string) => Promise<unknown>;
1105
+ operation: (id: string) => Promise<unknown>;
1106
+ findOperation: (requestId: string) => Promise<unknown>;
1107
+ };
1108
+ queues: (namespace: string) => {
1109
+ mounts: (query?: import("./common.js").Query) => Promise<unknown>;
1110
+ mount: (input: {
1111
+ uri: string;
1112
+ prefix: string;
1113
+ lakeshoreNamespace: string;
1114
+ token: string;
1115
+ }) => Promise<unknown>;
1116
+ get: (prefix: string) => Promise<unknown>;
1117
+ test: (prefix: string) => Promise<unknown>;
1118
+ unmount: (prefix: string) => Promise<unknown>;
1119
+ token: (prefix: string, token: string) => Promise<unknown>;
1120
+ proxy: (prefix: string, lakeshoreNamespace: string, kind: "queues" | "workers" | "jobs" | "invocations", query?: import("./common.js").Query) => Promise<unknown>;
1121
+ };
1122
+ ownership: (namespace: string) => {
1123
+ resource: (kind: "project" | "source", id: string, action?: "inspect" | "manifest" | "restore" | "transfer-plan") => Promise<unknown>;
1124
+ capabilities: () => Promise<unknown>;
1125
+ list: (direction?: "incoming" | "outgoing") => Promise<unknown>;
1126
+ preview: (input: import("./common.js").JsonObject) => Promise<unknown>;
1127
+ create: (input: import("./common.js").JsonObject) => Promise<unknown>;
1128
+ status: (id: string) => Promise<unknown>;
1129
+ action: (id: string, action: "accept" | "reject" | "cancel" | "resume" | "restore" | "snapshot-cleanup", input?: import("./common.js").JsonObject) => Promise<unknown>;
1130
+ inspect: (id: string, suffix: "inspect" | "manifest" | "snapshot" | "progress", query?: import("./common.js").Query) => Promise<unknown>;
1131
+ };
1132
+ runConfigs: (namespace: string) => {
1133
+ list: (query?: import("./common.js").Query) => Promise<{
1134
+ [key: string]: unknown;
1135
+ }>;
1136
+ get: (id: string) => Promise<import("./common.js").Resource>;
1137
+ create: (input: import("./common.js").JsonObject) => Promise<import("./common.js").Resource>;
1138
+ update: (id: string, input: Partial<import("./common.js").JsonObject>) => Promise<import("./common.js").Resource>;
1139
+ delete: (id: string) => Promise<unknown>;
1140
+ };
1141
+ };
1142
+ export type DreamLakeClient = ReturnType<typeof createClient>;
1143
+ export declare function createClient(options: ClientOptions): {
1144
+ agent: {
1145
+ browserActions: (conversationId: string) => Promise<{
1146
+ actions: unknown[];
1147
+ }>;
1148
+ acknowledgeLayout: (sessionId: string, actionId: string, receipt: Record<string, unknown>) => Promise<unknown>;
1149
+ conversations: (query?: {
1150
+ limit?: number;
1151
+ cursor?: string;
1152
+ noteId?: string;
1153
+ }) => Promise<{
1154
+ sessions: import("./agent.js").ConversationSummary[];
1155
+ nextCursor: string | null;
1156
+ }>;
1157
+ restore: (conversationId: string) => Promise<{
1158
+ sessionId: string;
1159
+ status: string;
1160
+ messages: {
1161
+ role: "user" | "assistant";
1162
+ content: string;
1163
+ }[];
1164
+ }>;
1165
+ toolCallsPage: (conversationId: string, query?: {
1166
+ cursor?: string;
1167
+ limit?: number;
1168
+ }) => Promise<{
1169
+ toolCalls: import("./agent.js").ToolCall[];
1170
+ nextCursor: string | null;
1171
+ }>;
1172
+ toolCalls: (conversationId: string) => Promise<import("./agent.js").ToolCall[]>;
1173
+ chat(input: {
1174
+ message: string;
1175
+ sessionId?: string;
1176
+ capabilities?: import("./agent.js").TurnCapabilities;
1177
+ page?: {
1178
+ pathname: string;
1179
+ layouts?: unknown[];
1180
+ content?: browser.PageContentSnapshot;
1181
+ };
1182
+ signal?: AbortSignal;
1183
+ }): AsyncGenerator<import("./agent.js").AgentEvent>;
1184
+ projects: () => Promise<{
1185
+ projects: {
1186
+ id: string;
1187
+ name: string;
1188
+ href: string;
1189
+ }[];
1190
+ }>;
1191
+ searchProject: (projectId: string, query: string, options?: {
1192
+ cursor?: string;
1193
+ content?: boolean;
1194
+ }) => Promise<{
1195
+ entries: unknown[];
1196
+ results: unknown[];
1197
+ skipped: unknown[];
1198
+ nextCursor: string | null;
1199
+ partial: boolean;
1200
+ }>;
1201
+ readFile: (projectId: string, fileId: string) => Promise<{
1202
+ id: string;
1203
+ name: string;
1204
+ content: string;
1205
+ projectHref: string;
1206
+ }>;
1207
+ };
1208
+ jobs: (namespace: string) => JobsApi;
1209
+ infra: InfraApi;
1210
+ transport: Transport;
1211
+ openResources: {
1212
+ find(resources: readonly import("./open-resources.js").OpenResource[], input: {
1213
+ query: string;
1214
+ offset?: number;
1215
+ limit?: number;
1216
+ ifResourcesRevision?: string;
1217
+ signal?: AbortSignal;
1218
+ }): Promise<{
1219
+ results: Record<string, unknown>[];
1220
+ skipped: {
1221
+ resource: string;
1222
+ reason: string;
1223
+ }[];
1224
+ totalResources: number;
1225
+ resourcesRevision: string;
1226
+ nextOffset: number | null;
1227
+ partial: boolean;
1228
+ }>;
1229
+ };
1230
+ browser: typeof browser;
1231
+ profile: () => Promise<unknown>;
1232
+ registeredRuns: {
1233
+ receipt: (ref: string) => Promise<{
1234
+ binding: import("./registered-runs.js").Binding;
1235
+ execution: {
1236
+ kind: string;
1237
+ id: any;
1238
+ namespace: string;
1239
+ };
1240
+ requestId: any;
1241
+ target: any;
1242
+ worker: any;
1243
+ status: any;
1244
+ exitCode: any;
1245
+ createdAt: any;
1246
+ completedAt: any;
1247
+ resolvedRuntime: any;
1248
+ verifiedCodeDigest: any;
1249
+ result: any;
1250
+ error: any;
1251
+ receiptRef: string;
1252
+ logsRef: string;
1253
+ }>;
1254
+ submit(ref: string, options: import("./registered-runs.js").RunOptions): Promise<any>;
1255
+ };
1256
+ pages: {
1257
+ generate: (input: Record<string, unknown>, signal?: AbortSignal) => AsyncGenerator<{
1258
+ event?: string;
1259
+ data: unknown;
1260
+ }, void, any>;
1261
+ edit: (workspaceId: string, input: Record<string, unknown>, signal?: AbortSignal) => AsyncGenerator<{
1262
+ event?: string;
1263
+ data: unknown;
1264
+ }, void, any>;
1265
+ status: (workspaceId: string) => Promise<unknown>;
1266
+ delete: (workspaceId: string) => Promise<unknown>;
1267
+ };
1268
+ platform: (namespace: string) => {
1269
+ providerDeclarations: {
1270
+ list: (query?: import("./common.js").Query) => Promise<{
1271
+ [key: string]: unknown;
1272
+ }>;
1273
+ get: (id: string) => Promise<import("./common.js").Resource>;
1274
+ create: (input: import("./common.js").JsonObject) => Promise<import("./common.js").Resource>;
1275
+ update: (id: string, input: Partial<import("./common.js").JsonObject>) => Promise<import("./common.js").Resource>;
1276
+ delete: (id: string) => Promise<unknown>;
1277
+ };
1278
+ storage: {
1279
+ list: (query?: import("./common.js").Query) => Promise<{
1280
+ [key: string]: unknown;
1281
+ }>;
1282
+ get: (id: string) => Promise<import("./common.js").Resource>;
1283
+ create: (input: import("./common.js").JsonObject) => Promise<import("./common.js").Resource>;
1284
+ update: (id: string, input: Partial<import("./common.js").JsonObject>) => Promise<import("./common.js").Resource>;
1285
+ delete: (id: string) => Promise<unknown>;
1286
+ };
1287
+ queueDefinitions: {
1288
+ list: (query?: import("./common.js").Query) => Promise<{
1289
+ [key: string]: unknown;
1290
+ }>;
1291
+ get: (id: string) => Promise<import("./common.js").Resource>;
1292
+ create: (input: import("./common.js").JsonObject) => Promise<import("./common.js").Resource>;
1293
+ update: (id: string, input: Partial<import("./common.js").JsonObject>) => Promise<import("./common.js").Resource>;
1294
+ delete: (id: string) => Promise<unknown>;
1295
+ };
1296
+ experiments: {
1297
+ workspaces: () => Promise<unknown>;
1298
+ binding: () => Promise<unknown>;
1299
+ connect: (input: {
1300
+ namespaceId: string;
1301
+ instanceId: string;
1302
+ expectedRevision: number;
1303
+ }) => Promise<unknown>;
1304
+ disconnect: (expectedRevision: number) => Promise<unknown>;
1305
+ };
1306
+ slurm: {
1307
+ clusters: () => Promise<unknown>;
1308
+ snapshot: (id: string) => Promise<unknown>;
1309
+ };
1310
+ repos: {
1311
+ snapshot: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
1312
+ list: (query?: import("./common.js").Query) => Promise<{
1313
+ [key: string]: unknown;
1314
+ }>;
1315
+ get: (id: string) => Promise<import("./common.js").Resource>;
1316
+ create: (input: import("./common.js").JsonObject) => Promise<import("./common.js").Resource>;
1317
+ update: (id: string, input: Partial<import("./common.js").JsonObject>) => Promise<import("./common.js").Resource>;
1318
+ delete: (id: string) => Promise<unknown>;
1319
+ };
1320
+ uploads: {
1321
+ authorize: (project: string, input: import("./common.js").JsonObject) => Promise<unknown>;
1322
+ resume: (project: string, input: {
1323
+ objectKey: string;
1324
+ uploadId: string;
1325
+ size: number;
1326
+ }) => Promise<unknown>;
1327
+ register: (input: import("./common.js").JsonObject) => Promise<unknown>;
1328
+ };
1329
+ infrastructure: {
1330
+ move: (id: string, phase: "preview" | "commit", input: import("./common.js").JsonObject) => Promise<unknown>;
1331
+ transfer: {
1332
+ preview: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
1333
+ create: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
1334
+ status: (id: string) => Promise<unknown>;
1335
+ accept: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
1336
+ };
1337
+ };
1338
+ };
1339
+ machine: {
1340
+ self: () => Promise<unknown>;
1341
+ host: (id: string) => Promise<unknown>;
1342
+ project: (id: string) => Promise<unknown>;
1343
+ };
1344
+ projectTools: {
1345
+ projects: () => Promise<{
1346
+ projects: {
1347
+ id: string;
1348
+ name: string;
1349
+ href: string;
1350
+ }[];
1351
+ }>;
1352
+ searchProject: (projectId: string, query: string, options?: {
1353
+ cursor?: string;
1354
+ content?: boolean;
1355
+ }) => Promise<{
1356
+ entries: unknown[];
1357
+ results: unknown[];
1358
+ skipped: unknown[];
1359
+ nextCursor: string | null;
1360
+ partial: boolean;
1361
+ }>;
1362
+ readFile: (projectId: string, fileId: string) => Promise<{
1363
+ id: string;
1364
+ name: string;
1365
+ content: string;
1366
+ projectHref: string;
1367
+ }>;
1368
+ };
1369
+ vault: (scope?: string) => {
1370
+ scopes: () => Promise<unknown>;
1371
+ capabilities: () => Promise<unknown>;
1372
+ audit: () => Promise<unknown>;
1373
+ tree: (query?: import("./common.js").Query) => Promise<unknown>;
1374
+ list: (query?: import("./common.js").Query) => Promise<unknown>;
1375
+ get: (name: string) => Promise<unknown>;
1376
+ read: (selectors: string[]) => Promise<unknown>;
1377
+ put: (input: {
1378
+ name: string;
1379
+ type: string;
1380
+ value: string;
1381
+ expiresAt?: string;
1382
+ env?: string;
1383
+ keyName?: string;
1384
+ fileName?: string;
1385
+ }, requestId: string, revision?: number) => Promise<unknown>;
1386
+ delete: (name: string, revision?: number) => Promise<unknown>;
1387
+ restore: (name: string, revision?: number) => Promise<unknown>;
1388
+ writeStatus: (requestId: string) => Promise<unknown>;
1389
+ policy: () => Promise<unknown>;
1390
+ setPolicy: (input: {
1391
+ exportEnabled: boolean;
1392
+ expectedRevision: number;
1393
+ requestId: string;
1394
+ }) => Promise<unknown>;
1395
+ copyPreview: (input: {
1396
+ name: string;
1397
+ destinationScope: string | null;
1398
+ destinationName: string;
1399
+ expectedRevision: number;
1400
+ requestId: string;
1401
+ mode: "copy";
1402
+ }) => Promise<unknown>;
1403
+ copyOperation: (id: string, action?: "status" | "commit" | "cancel") => Promise<unknown>;
1404
+ copyRecover: (requestId: string) => Promise<unknown>;
1405
+ keys: {
1406
+ create: (input: {
1407
+ selectors: string[];
1408
+ ttlSeconds: number;
1409
+ renewable: boolean;
1410
+ oneTime: boolean;
1411
+ maxLifetimeSeconds?: number;
1412
+ }, requestId: string) => Promise<unknown>;
1413
+ list: () => Promise<unknown>;
1414
+ renew: (id: string, ttlSeconds: number) => Promise<unknown>;
1415
+ revoke: (id: string) => Promise<unknown>;
1416
+ };
1417
+ kms: {
1418
+ get: (prefix: string) => Promise<unknown>;
1419
+ preview: (input: import("./common.js").JsonObject) => Promise<unknown>;
1420
+ activate: (prefix: string, keyRef: string, requestId: string) => Promise<unknown>;
1421
+ migrate: (prefix: string, keyRef: string, requestId: string) => Promise<unknown>;
1422
+ resume: (id: string, input: {
1423
+ limit: number;
1424
+ expectedPrefix?: string;
1425
+ }) => Promise<unknown>;
1426
+ status: (id: string) => Promise<unknown>;
1427
+ };
1428
+ otp: {
1429
+ activate: (input: {
1430
+ name: string;
1431
+ expectedRevision: number;
1432
+ counterOwner: string;
1433
+ }) => Promise<unknown>;
1434
+ generate: (input: {
1435
+ name: string;
1436
+ entryId?: string;
1437
+ expectedRevision?: number;
1438
+ requestId?: string;
1439
+ }) => Promise<unknown>;
1440
+ };
1441
+ hostCredentials: {
1442
+ get: (id: string) => Promise<unknown>;
1443
+ list: (hostId: string, enrollmentId: string) => Promise<unknown>;
1444
+ bind: (input: import("./common.js").JsonObject) => Promise<unknown>;
1445
+ release: (id: string, input: {
1446
+ entryId: string;
1447
+ entryRevision: number;
1448
+ }) => Promise<unknown>;
1449
+ supersede: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
1450
+ operation: (id: string) => Promise<unknown>;
1451
+ confirmCleanup: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
1452
+ };
1453
+ passwordRotation: {
1454
+ reserve: (bindingId: string, operationId: string, input: import("./common.js").JsonObject) => Promise<unknown>;
1455
+ get: (id: string) => Promise<unknown>;
1456
+ action: (id: string, action: "read" | "start" | "cancel" | "confirm", input?: import("./common.js").JsonObject) => Promise<unknown>;
1457
+ };
1458
+ };
1459
+ hosts: (namespace: string) => {
1460
+ list: (query?: {
1461
+ prefix?: string;
1462
+ archived?: string;
1463
+ page?: number;
1464
+ pageSize?: number;
1465
+ }) => Promise<unknown>;
1466
+ status: (id: string) => Promise<unknown>;
1467
+ enroll: (input: import("./common.js").JsonObject) => Promise<unknown>;
1468
+ enrollments: (id: string) => Promise<unknown>;
1469
+ lifecycle: (id: string) => Promise<unknown>;
1470
+ archive: (id: string, input: {
1471
+ requestId: string;
1472
+ expectedRevision: number;
1473
+ }) => Promise<unknown>;
1474
+ restore: (id: string, input: {
1475
+ requestId: string;
1476
+ expectedRevision: number;
1477
+ }) => Promise<unknown>;
1478
+ power: (id: string) => Promise<unknown>;
1479
+ changePower: (id: string, enrollmentId: string, action: "start" | "stop" | "restart" | "terminate", input: import("./common.js").JsonObject) => Promise<unknown>;
1480
+ metrics: (id: string, enrollmentId: string, resolution?: 10 | 60 | 900 | 3600) => Promise<unknown>;
1481
+ check: (id: string, enrollmentId: string, action: "ssh" | "tracked-run") => Promise<unknown>;
1482
+ terminalTargets: () => Promise<unknown>;
1483
+ terminalSession: (enrollmentId: string, input: {
1484
+ clientPublicKey: string;
1485
+ durationSeconds: number;
1486
+ }) => Promise<unknown>;
1487
+ launch: (id: string) => Promise<unknown>;
1488
+ };
1489
+ serviceAccounts: (namespace: string) => {
1490
+ list: (query?: {
1491
+ page?: number;
1492
+ pageSize
1493
+ /** TypeScript operations use an explicit transport; importing does not execute CLI startup. */
1494
+ ?: number;
1495
+ }) => Promise<unknown>;
1496
+ get: (id: string) => Promise<unknown>;
1497
+ create: (input: {
1498
+ name: string;
1499
+ description?: string;
1500
+ }) => Promise<unknown>;
1501
+ bind: (id: string, enrollmentId: string) => Promise<unknown>;
1502
+ revoke: (id: string) => Promise<unknown>;
1503
+ projectGrant: (id: string, projectId: string, role: "READ" | "WRITE" | "ADMIN") => Promise<unknown>;
1504
+ removeProjectGrant: (id: string, projectId: string) => Promise<unknown>;
1505
+ hostGrant: (id: string, hostId: string, input: {
1506
+ read: boolean;
1507
+ use: boolean;
1508
+ }) => Promise<unknown>;
1509
+ removeHostGrant: (id: string, hostId: string) => Promise<unknown>;
1510
+ };
1511
+ graphql: <T = unknown>(query: string, variables?: Record<string, unknown>, timeoutMs?: number) => Promise<T>;
1512
+ organizations: {
1513
+ list: () => Promise<unknown>;
1514
+ get: (slug: string) => Promise<unknown>;
1515
+ create: (input: {
1516
+ slug: string;
1517
+ name: string;
1518
+ description?: string;
1519
+ }) => Promise<unknown>;
1520
+ update: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
1521
+ delete: (id: string) => Promise<unknown>;
1522
+ leave: (id: string) => Promise<unknown>;
1523
+ members: (id: string) => Promise<unknown>;
1524
+ addMember: (orgId: string, userId: string, role?: string) => Promise<unknown>;
1525
+ memberRole: (orgId: string, userId: string, role: string) => Promise<unknown>;
1526
+ removeMember: (orgId: string, userId: string) => Promise<unknown>;
1527
+ };
1528
+ teams: {
1529
+ list: (orgId?: string) => Promise<unknown>;
1530
+ get: (id: string) => Promise<unknown>;
1531
+ create: (input: import("./common.js").JsonObject) => Promise<unknown>;
1532
+ update: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
1533
+ delete: (id: string) => Promise<unknown>;
1534
+ leave: (id: string) => Promise<unknown>;
1535
+ members: (id: string) => Promise<unknown>;
1536
+ addMember: (teamId: string, userId: string, role?: string) => Promise<unknown>;
1537
+ memberRole: (teamId: string, userId: string, role: string) => Promise<unknown>;
1538
+ removeMember: (teamId: string, userId: string) => Promise<unknown>;
1539
+ };
1540
+ sessions: (namespace: string) => {
1541
+ namespace: string;
1542
+ link: (sessionId: string, resource: {
1543
+ namespace: string;
1544
+ type: "note" | "artifact";
1545
+ id: string;
1546
+ }) => Promise<unknown>;
1547
+ unlink: (sessionId: string, resource: {
1548
+ namespace: string;
1549
+ type: "note" | "artifact";
1550
+ id: string;
1551
+ }) => Promise<unknown>;
1552
+ list: (query?: import("./sessions.js").ListSessionsQuery) => Promise<import("./sessions.js").SessionPage>;
1553
+ available: (query?: import("./sessions.js").ListSessionsQuery) => Promise<import("./sessions.js").SessionPage>;
1554
+ get: (sessionId: string) => Promise<import("./sessions.js").Session>;
1555
+ conversation: (sessionId: string) => Promise<{
1556
+ conversation: import("./sessions.js").Conversation | null;
1557
+ revision: string | null;
1558
+ provider: string;
1559
+ nativeSessionId: string;
1560
+ }>;
1561
+ uploadConversation: (sessionId: string, conversation: import("./sessions.js").Conversation, expectedRevision: string | null) => Promise<{
1562
+ sessionId: string;
1563
+ revision: string;
1564
+ messageCount: number;
1565
+ }>;
1566
+ resources: (sessionId: string, cursor?: string, pageSize?: number) => Promise<{
1567
+ resources: {
1568
+ type: "note" | "artifact";
1569
+ id: string;
1570
+ namespaceSlug: string;
1571
+ title: string;
1572
+ }[];
1573
+ hasMore: boolean;
1574
+ nextCursor: string | null;
1575
+ }>;
1576
+ rename: (sessionId: string, name: string) => Promise<import("./sessions.js").Session>;
1577
+ archive: (sessionId: string, archived: boolean) => Promise<import("./sessions.js").Session>;
1578
+ register: (input: {
1579
+ provider: import("./sessions.js").Provider;
1580
+ nativeSessionId: string;
1581
+ cwd: string;
1582
+ name?: string;
1583
+ visibility?: "public" | "private";
1584
+ }) => Promise<{
1585
+ session: import("./sessions.js").Session;
1586
+ }>;
1587
+ commands: {
1588
+ create: <K extends import("./sessions.js").CommandKind>(kind: K, input: import("./sessions.js").CommandInput[K], options?: {
1589
+ runnerId?: string;
1590
+ idempotencyKey?: string;
1591
+ }) => Promise<{
1592
+ command: import("./sessions.js").Command<K>;
1593
+ created: boolean;
1594
+ }>;
1595
+ broadcast: (sessionIds: string[], text: string, idempotencyKey?: string) => Promise<{
1596
+ batchId: string;
1597
+ commands: import("./sessions.js").Command<"send">[];
1598
+ refused: {
1599
+ sessionId: string;
1600
+ error: string;
1601
+ }[];
1602
+ }>;
1603
+ list: (query?: {
1604
+ sessionId?: string;
1605
+ status?: import("./sessions.js").CommandStatus;
1606
+ batchId?: string;
1607
+ limit?: number;
1608
+ }) => Promise<{
1609
+ commands: import("./sessions.js").Command[];
1610
+ }>;
1611
+ get: (commandId: string, wait?: number) => Promise<import("./sessions.js").Command<"status" | "start" | "stop" | "resume" | "send" | "sync" | "subagents">>;
1612
+ wait: (commandId: string, seconds: number, signal?: AbortSignal) => Promise<import("./sessions.js").Command<"status" | "start" | "stop" | "resume" | "send" | "sync" | "subagents">>;
1613
+ cancel: (commandId: string) => Promise<import("./sessions.js").Command<"status" | "start" | "stop" | "resume" | "send" | "sync" | "subagents">>;
1614
+ renew: (commandId: string, runnerId: string, leaseToken: string) => Promise<{
1615
+ leaseMs: number;
1616
+ cancelRequested?: boolean;
1617
+ }>;
1618
+ reconcile: (commandId: string, runnerId: string, observation: Record<string, unknown>) => Promise<import("./sessions.js").Command<"status" | "start" | "stop" | "resume" | "send" | "sync" | "subagents">>;
1619
+ finish: (commandId: string, runnerId: string, receipt: import("./sessions.js").CommandReceipt) => Promise<import("./sessions.js").Command<"status" | "start" | "stop" | "resume" | "send" | "sync" | "subagents">>;
1620
+ };
1621
+ runners: {
1622
+ list: () => Promise<import("./sessions.js").Runner[]>;
1623
+ register: (input: import("./sessions.js").RunnerRegistration) => Promise<import("./sessions.js").Runner>;
1624
+ claim: (runnerId: string, seconds: number, signal?: AbortSignal) => Promise<import("./sessions.js").ClaimedCommand | null>;
1625
+ };
1626
+ };
1627
+ terminal: (namespace: string) => {
1628
+ targets: () => Promise<unknown>;
1629
+ discovery: (input: {
1630
+ targetId: string;
1631
+ enrollmentId: string;
1632
+ cursor?: string;
1633
+ }) => Promise<unknown>;
1634
+ create: (input: {
1635
+ targetId: string;
1636
+ enrollmentId: string;
1637
+ cwd: string;
1638
+ codexSessionId: string;
1639
+ nameIfNew?: string;
1640
+ visibility?: string;
1641
+ provider?: import("./sessions.js").Provider;
1642
+ claudeConfigDir?: string;
1643
+ }) => Promise<unknown>;
1644
+ get: (id: string) => Promise<unknown>;
1645
+ metadata: (id: string, input: Record<string, unknown>) => Promise<unknown>;
1646
+ visibility: (id: string, visibility: "public" | "private" | "team") => Promise<unknown>;
1647
+ ticket: (input: {
1648
+ targetId: string;
1649
+ launch: unknown;
1650
+ managedSessionId: string;
1651
+ runtime?: "direct";
1652
+ cols?: number;
1653
+ rows?: number;
1654
+ }) => Promise<unknown>;
1655
+ managed: (id: string, action: "status" | "start" | "reconnect" | "stop", input: Record<string, unknown>) => Promise<unknown>;
1656
+ };
1657
+ notes: (namespace: string) => {
1658
+ namespace: string;
1659
+ source: (noteId: string, at?: string) => Promise<import("./note-edits.js").NoteSource>;
1660
+ patch: (noteId: string, input: import("./note-edits.js").NotePatch) => Promise<{
1661
+ note: string;
1662
+ hash: string;
1663
+ revision: string;
1664
+ baseRevision: string;
1665
+ mode: "exact" | "merge";
1666
+ }>;
1667
+ replaceContent: (noteId: string, baseRevision: string, content: string, mode?: "exact" | "merge") => Promise<{
1668
+ note: string;
1669
+ hash: string;
1670
+ revision: string;
1671
+ baseRevision: string;
1672
+ mode: "exact" | "merge";
1673
+ }>;
1674
+ replace: (noteId: string, baseRevision: string, text: string, where: import("./note-editing.js").Where, mode?: "exact" | "merge") => Promise<{
1675
+ note: string;
1676
+ hash: string;
1677
+ revision: string;
1678
+ baseRevision: string;
1679
+ mode: "exact" | "merge";
1680
+ }>;
1681
+ insert: (noteId: string, baseRevision: string, text: string, where: {
1682
+ line?: number;
1683
+ ind?: number;
1684
+ }, mode?: "exact" | "merge") => Promise<{
1685
+ note: string;
1686
+ hash: string;
1687
+ revision: string;
1688
+ baseRevision: string;
1689
+ mode: "exact" | "merge";
1690
+ }>;
1691
+ removeText: (noteId: string, baseRevision: string, where: import("./note-editing.js").Where, mode?: "exact" | "merge") => Promise<{
1692
+ note: string;
1693
+ hash: string;
1694
+ revision: string;
1695
+ baseRevision: string;
1696
+ mode: "exact" | "merge";
1697
+ }>;
1698
+ findInSource: (noteId: string, at: string, query?: string, options?: import("./note-editing.js").FindOpts) => Promise<{
1699
+ matches: import("./note-editing.js").Match[];
1700
+ note: string;
1701
+ content: string;
1702
+ hash: string;
1703
+ revision: string;
1704
+ }>;
1705
+ outline: (noteId: string, at?: string) => Promise<{
1706
+ note: string;
1707
+ revision: string;
1708
+ hash: string;
1709
+ entries: import("./note-toc.js").TocEntry[];
1710
+ }>;
1711
+ get: (noteId: string) => Promise<import("./notes.js").NoteRow & {
1712
+ namespaceSlug: string;
1713
+ permissions: Record<string, boolean>;
1714
+ }>;
1715
+ delete: (noteId: string) => Promise<unknown>;
1716
+ shared: () => Promise<{
1717
+ notes: import("./notes.js").NoteRow[];
1718
+ }>;
1719
+ projects: (noteId: string, view?: "nodes") => Promise<unknown>;
1720
+ move: (noteId: string, input: {
1721
+ namespace: string;
1722
+ projects: string[];
1723
+ dryRun?: boolean;
1724
+ }) => Promise<unknown>;
1725
+ share: (noteId: string) => {
1726
+ get: () => Promise<Record<string, unknown>>;
1727
+ create: (role?: "read" | "write") => Promise<unknown>;
1728
+ revoke: (revokeAccepted?: boolean) => Promise<unknown>;
1729
+ visibility: (visibility: "private" | "public" | "team") => Promise<unknown>;
1730
+ access: () => Promise<unknown>;
1731
+ remove: (userId: string) => Promise<unknown>;
1732
+ };
1733
+ files: (noteId: string) => {
1734
+ download: (id: string, signal?: AbortSignal) => Promise<Response>;
1735
+ list: (query?: {
1736
+ prefix?: string;
1737
+ trash?: boolean;
1738
+ limit?: number;
1739
+ offset?: number;
1740
+ }) => Promise<{
1741
+ files: import("./note-files.js").NoteFile[];
1742
+ total: number;
1743
+ }>;
1744
+ get: (id: string) => Promise<import("./note-files.js").NoteFile>;
1745
+ text: (id: string) => Promise<{
1746
+ text: string;
1747
+ etag: string;
1748
+ }>;
1749
+ upload: (path: string, body: NonNullable<import("./client.js").RequestOptions["body"]>, options?: {
1750
+ contentType?: string;
1751
+ overwrite?: boolean;
1752
+ ifMatch?: string;
1753
+ }) => Promise<import("./note-files.js").NoteFile>;
1754
+ write: (input: {
1755
+ path: string;
1756
+ text: string;
1757
+ overwrite?: boolean;
1758
+ contentType?: string;
1759
+ }, options?: {
1760
+ ifMatch?: string;
1761
+ idempotencyKey?: string;
1762
+ }) => Promise<import("./note-files.js").NoteFile>;
1763
+ move: (id: string, path: string, options?: {
1764
+ overwrite?: boolean;
1765
+ ifMatch?: string;
1766
+ }) => Promise<import("./note-files.js").NoteFile>;
1767
+ copy: (id: string, path: string, options?: {
1768
+ overwrite?: boolean;
1769
+ idempotencyKey?: string;
1770
+ }) => Promise<import("./note-files.js").NoteFile>;
1771
+ operation: (operationId: string, action?: "status" | "reconcile" | "cancel") => Promise<{
1772
+ operationId: string;
1773
+ state: string;
1774
+ historicalResult: boolean;
1775
+ file?: import("./note-files.js").NoteFile;
1776
+ }>;
1777
+ delete: (id: string, options?: {
1778
+ purge?: boolean;
1779
+ ifMatch?: string;
1780
+ }) => Promise<{
1781
+ id: string;
1782
+ purged: boolean;
1783
+ }>;
1784
+ restore: (id: string, path?: string) => Promise<import("./note-files.js").NoteFile>;
1785
+ preview: (id: string, share?: boolean) => Promise<{
1786
+ [key: string]: unknown;
1787
+ url: string;
1788
+ }>;
1789
+ revokePreview: (id: string) => Promise<{
1790
+ id: string;
1791
+ shared: boolean;
1792
+ }>;
1793
+ };
1794
+ media: (form: FormData) => Promise<unknown>;
1795
+ read: (noteId: string, query?: import("./common.js").Query) => Promise<import("./notes.js").NoteReadResult>;
1796
+ html: (noteId: string, options?: {
1797
+ at?: string;
1798
+ section?: string;
1799
+ toc?: boolean;
1800
+ tag?: string;
1801
+ ifMatch?: string;
1802
+ }) => Promise<{
1803
+ note: string;
1804
+ revision: string;
1805
+ html: string;
1806
+ bytes: Uint8Array<ArrayBuffer>;
1807
+ }>;
1808
+ diff: (noteId: string, query: {
1809
+ from?: string;
1810
+ to?: string;
1811
+ since?: string;
1812
+ format?: "diff" | "inline-dff";
1813
+ }) => Promise<unknown>;
1814
+ presence: (noteId: string, input: import("./common.js").JsonObject) => Promise<unknown>;
1815
+ saveVersion: (noteId: string, input: {
1816
+ hash: string;
1817
+ tag?: string;
1818
+ summary?: string;
1819
+ parentId?: string;
1820
+ }) => Promise<unknown>;
1821
+ find: (query: {
1822
+ q: string;
1823
+ note?: string;
1824
+ cursor?: string;
1825
+ limit?: number;
1826
+ caseSensitive?: boolean;
1827
+ glob?: string;
1828
+ regex?: string;
1829
+ flags?: string;
1830
+ context?: string;
1831
+ }) => Promise<import("./notes.js").NoteSearchPage>;
1832
+ create: (input: {
1833
+ name: string;
1834
+ summary?: string;
1835
+ projects?: string[];
1836
+ visibility?: "private" | "public";
1837
+ }) => Promise<{
1838
+ note: import("./notes.js").NoteRow;
1839
+ rtc: {
1840
+ rtcDocId: string;
1841
+ };
1842
+ }>;
1843
+ edit: (noteId: string, baseRevision: string, edits: import("./note-edits.js").NoteEdit[], mode?: "merge" | "exact") => Promise<{
1844
+ note: string;
1845
+ hash: string;
1846
+ revision: string;
1847
+ baseRevision: string;
1848
+ mode: "exact" | "merge";
1849
+ }>;
1850
+ versions: (noteId: string, query?: {
1851
+ before?: string;
1852
+ }) => Promise<{
1853
+ versions: import("./notes.js").NoteVersion[];
1854
+ nextCursor?: string | null;
1855
+ }>;
1856
+ version: (noteId: string, versionId: string) => Promise<import("./notes.js").NoteVersion>;
1857
+ list: (query?: {
1858
+ q?: string;
1859
+ limit?: number;
1860
+ offset?: number;
1861
+ }) => Promise<{
1862
+ notes: import("./notes.js").NoteRow[];
1863
+ }>;
1864
+ search: (q: string, limit?: number, offset?: number) => Promise<{
1865
+ notes: import("./notes.js").NoteRow[];
1866
+ total: number;
1867
+ }>;
1868
+ body: (noteId: string) => Promise<import("./notes.js").NoteBody>;
1869
+ sections: (noteId: string) => Promise<{
1870
+ sections: import("./notes.js").Section[];
1871
+ etag: string;
1872
+ }>;
1873
+ section: (noteId: string, anchor: string) => Promise<import("./notes.js").NoteBody & Partial<import("./notes.js").Section>>;
1874
+ write: (noteId: string, text: string, ifMatch: string) => Promise<import("./notes.js").WriteReceipt>;
1875
+ append: (noteId: string, addition: string, ifMatch?: string) => Promise<import("./notes.js").WriteReceipt>;
1876
+ addSection: (noteId: string, text: string, placement?: {
1877
+ before?: string;
1878
+ after?: string;
1879
+ }, ifMatch?: string) => Promise<import("./notes.js").WriteReceipt>;
1880
+ removeSection: (noteId: string, anchor: string, ifMatch?: string) => Promise<import("./notes.js").WriteReceipt>;
1881
+ };
1882
+ projects: (namespace: string) => {
1883
+ grants: (project: string) => Promise<unknown>;
1884
+ grant: (project: string, input: ({
1885
+ granteeSlug: string;
1886
+ teamId?: never;
1887
+ } | {
1888
+ teamId: string;
1889
+ granteeSlug?: never;
1890
+ }) & {
1891
+ role: "READ" | "WRITE" | "ADMIN";
1892
+ }) => Promise<unknown>;
1893
+ revoke: (project: string, grantId: string) => Promise<unknown>;
1894
+ attach: (project: string, input: {
1895
+ type: string;
1896
+ resourceId: string;
1897
+ }) => Promise<unknown>;
1898
+ detach: (project: string, input: {
1899
+ type: string;
1900
+ resourceId: string;
1901
+ }) => Promise<unknown>;
1902
+ resources: (project: string, kind: "bindrs" | "datasets" | "episodes") => {
1903
+ list: (query?: import("./common.js").Query) => Promise<{
1904
+ [key: string]: unknown;
1905
+ }>;
1906
+ get: (id: string) => Promise<import("./common.js").Resource>;
1907
+ create: (input: import("./common.js").JsonObject) => Promise<import("./common.js").Resource>;
1908
+ update: (id: string, input: Partial<import("./common.js").JsonObject>) => Promise<import("./common.js").Resource>;
1909
+ delete: (id: string) => Promise<unknown>;
1910
+ };
1911
+ bindrs: (project: string) => {
1912
+ addMembers: (name: string, add: string[]) => Promise<unknown>;
1913
+ removeMembers: (name: string, remove: string[]) => Promise<unknown>;
1914
+ list: (query?: import("./common.js").Query) => Promise<{
1915
+ [key: string]: unknown;
1916
+ }>;
1917
+ get: (id: string) => Promise<import("./common.js").Resource>;
1918
+ create: (input: import("./common.js").JsonObject) => Promise<import("./common.js").Resource>;
1919
+ update: (id: string, input: Partial<import("./common.js").JsonObject>) => Promise<import("./common.js").Resource>;
1920
+ delete: (id: string) => Promise<unknown>;
1921
+ };
1922
+ datasets: (project: string) => {
1923
+ addBindrs: (name: string, add: string[]) => Promise<unknown>;
1924
+ removeBindrs: (name: string, remove: string[]) => Promise<unknown>;
1925
+ list: (query?: import("./common.js").Query) => Promise<{
1926
+ [key: string]: unknown;
1927
+ }>;
1928
+ get: (id: string) => Promise<import("./common.js").Resource>;
1929
+ create: (input: import("./common.js").JsonObject) => Promise<import("./common.js").Resource>;
1930
+ update: (id: string, input: Partial<import("./common.js").JsonObject>) => Promise<import("./common.js").Resource>;
1931
+ delete: (id: string) => Promise<unknown>;
1932
+ };
1933
+ list: (query?: import("./common.js").Query) => Promise<{
1934
+ [key: string]: unknown;
1935
+ }>;
1936
+ get: (id: string) => Promise<import("./common.js").Resource>;
1937
+ create: (input: import("./workspace.js").ProjectInput) => Promise<import("./common.js").Resource>;
1938
+ update: (id: string, input: Partial<import("./workspace.js").ProjectInput>) => Promise<import("./common.js").Resource>;
1939
+ delete: (id: string) => Promise<unknown>;
1940
+ };
1941
+ nodes: {
1942
+ list: (query?: import("./common.js").Query) => Promise<unknown>;
1943
+ children: (query: import("./common.js").Query) => Promise<unknown>;
1944
+ lookup: (query: {
1945
+ namespace: string;
1946
+ project: string;
1947
+ path: string;
1948
+ episode?: string;
1949
+ }) => Promise<import("./common.js").Resource>;
1950
+ contents: (id: string, query?: import("./common.js").Query) => Promise<unknown>;
1951
+ update: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
1952
+ delete: (id: string) => Promise<{
1953
+ deleted?: number;
1954
+ }>;
1955
+ download: (id: string) => Promise<{
1956
+ url: string;
1957
+ }>;
1958
+ };
1959
+ tasks: (namespace: string, project: string) => {
1960
+ list: (query?: {
1961
+ prefix?: string;
1962
+ includeDeleted?: boolean;
1963
+ limit?: number;
1964
+ cursor?: string;
1965
+ }) => Promise<unknown>;
1966
+ get: (id: string, includeDeleted?: boolean) => Promise<unknown>;
1967
+ resolve: (taskPath: string, includeDeleted?: boolean) => Promise<unknown>;
1968
+ create: (input: {
1969
+ path: string;
1970
+ title: string;
1971
+ blurb?: string;
1972
+ kind?: string;
1973
+ tags?: string[];
1974
+ }) => Promise<unknown>;
1975
+ update: (id: string, input: {
1976
+ expectedRevision: string;
1977
+ title?: string;
1978
+ blurb?: string;
1979
+ kind?: string;
1980
+ tags?: string[];
1981
+ children?: string[];
1982
+ }) => Promise<unknown>;
1983
+ move: (id: string, expectedRevision: string, destination: string) => Promise<unknown>;
1984
+ delete: (id: string, expectedRevision: string) => Promise<unknown>;
1985
+ restore: (id: string, expectedRevision: string) => Promise<unknown>;
1986
+ status: (id: string) => Promise<unknown>;
1987
+ events: (id: string, query?: {
1988
+ cursor?: string;
1989
+ limit?: number;
1990
+ includeDeleted?: boolean;
1991
+ }) => Promise<unknown>;
1992
+ addEvent: (id: string, input: {
1993
+ expectedRevision?: string;
1994
+ type: string;
1995
+ occurredAt: string;
1996
+ data: import("./common.js").JsonObject;
1997
+ [key: string]: unknown;
1998
+ }) => Promise<unknown>;
1999
+ notes: (id: string) => Promise<unknown>;
2000
+ linkNote: (id: string, expectedRevision: string, link: {
2001
+ role: string;
2002
+ noteId: string;
2003
+ section?: string;
2004
+ }) => Promise<unknown>;
2005
+ unlinkNote: (id: string, expectedRevision: string, link: {
2006
+ role: string;
2007
+ noteId: string;
2008
+ section?: string;
2009
+ }) => Promise<unknown>;
2010
+ };
2011
+ connections: (namespace: string) => {
2012
+ oauth: {
2013
+ create: (input: import("./common.js").JsonObject) => Promise<unknown>;
2014
+ status: (id: string) => Promise<unknown>;
2015
+ };
2016
+ list: (query?: {
2017
+ limit?: number;
2018
+ cursor?: string;
2019
+ labelContains?: string;
2020
+ lifecycle?: string;
2021
+ }) => Promise<unknown>;
2022
+ get: (id: string) => Promise<unknown>;
2023
+ affectedSources: (id: string, query?: {
2024
+ limit?: number;
2025
+ cursor?: string;
2026
+ }) => Promise<unknown>;
2027
+ create: (input: {
2028
+ label: string;
2029
+ connectorKind: string;
2030
+ authKind: string;
2031
+ credential?: import("./common.js").JsonObject;
2032
+ privateConfig?: import("./common.js").JsonObject;
2033
+ }, key: string) => Promise<unknown>;
2034
+ rename: (id: string, label: string, expectedSettingsRevision: number, key: string) => Promise<unknown>;
2035
+ check: (id: string) => Promise<unknown>;
2036
+ reconnect: (id: string, input: {
2037
+ expectedSettingsRevision: number;
2038
+ credential: import("./common.js").JsonObject;
2039
+ privateConfig?: import("./common.js").JsonObject;
2040
+ enableAfterSuccess?: boolean;
2041
+ }, key: string) => Promise<unknown>;
2042
+ enable: (id: string, expectedSettingsRevision: number, key: string) => Promise<unknown>;
2043
+ disable: (id: string, expectedSettingsRevision: number, key: string) => Promise<unknown>;
2044
+ delete: (id: string, expectedSettingsRevision: number, key: string) => Promise<unknown>;
2045
+ };
2046
+ artifacts: (namespace: string) => {
2047
+ publish: (id: string, input: {
2048
+ content: Uint8Array;
2049
+ title: string;
2050
+ kind: string;
2051
+ description?: string;
2052
+ visibility?: "private" | "public";
2053
+ share?: boolean;
2054
+ }, store: import("./storage.js").VersionedContentStore) => Promise<{
2055
+ version: number;
2056
+ receipt: unknown;
2057
+ }>;
2058
+ list: (query?: {
2059
+ deleted?: boolean;
2060
+ }) => Promise<unknown>;
2061
+ get: (id: string) => Promise<unknown>;
2062
+ uploadCredentials: (artifactId: string) => Promise<unknown>;
2063
+ register: (id: string, input: {
2064
+ kind: string;
2065
+ version: number;
2066
+ title?: string;
2067
+ description?: string;
2068
+ visibility?: string;
2069
+ share?: boolean;
2070
+ }) => Promise<unknown>;
2071
+ delete: (id: string, permanent?: boolean) => Promise<unknown>;
2072
+ restore: (id: string) => Promise<unknown>;
2073
+ metadata: (id: string) => {
2074
+ get: () => Promise<unknown>;
2075
+ set: (input: import("./common.js").JsonObject) => Promise<unknown>;
2076
+ };
2077
+ share: (id: string) => {
2078
+ get: () => Promise<Record<string, unknown>>;
2079
+ create: (role?: "read" | "write") => Promise<unknown>;
2080
+ revoke: (revokeAccepted?: boolean) => Promise<unknown>;
2081
+ visibility: (visibility: "private" | "public" | "team") => Promise<unknown>;
2082
+ access: () => Promise<unknown>;
2083
+ remove: (userId: string) => Promise<unknown>;
2084
+ };
2085
+ };
2086
+ scenes: (namespace: string) => {
2087
+ list: () => Promise<unknown>;
2088
+ get: (name: string) => Promise<unknown>;
2089
+ version: (name: string, version?: string) => Promise<unknown>;
2090
+ uploadCredentials: (name: string) => Promise<unknown>;
2091
+ register: (name: string, input: import("./common.js").JsonObject) => Promise<unknown>;
2092
+ thumbnail: (name: string, input: {
2093
+ imageBase64: string;
2094
+ version: number;
2095
+ source: "manual";
2096
+ }) => Promise<unknown>;
2097
+ delete: (name: string, permanent?: boolean) => Promise<unknown>;
2098
+ restore: (name: string) => Promise<unknown>;
2099
+ };
2100
+ pipelines: (namespace: string) => {
2101
+ versions: (name: string) => Promise<unknown>;
2102
+ version: (name: string, hash: string) => Promise<unknown>;
2103
+ nodes: (name: string, hash: string) => Promise<unknown>;
2104
+ node: (name: string, hash: string, nodeId: string) => Promise<unknown>;
2105
+ updateNodeState: (name: string, hash: string, nodeId: string, input: import("./common.js").JsonObject) => Promise<unknown>;
2106
+ uploadWorkspace: (body: FormData) => Promise<unknown>;
2107
+ hostWorkspace: (body: Uint8Array) => Promise<unknown>;
2108
+ list: (query?: import("./common.js").Query) => Promise<{
2109
+ [key: string]: unknown;
2110
+ }>;
2111
+ get: (id: string) => Promise<import("./common.js").Resource>;
2112
+ create: (input: import("./common.js").JsonObject) => Promise<import("./common.js").Resource>;
2113
+ update: (id: string, input: Partial<import("./common.js").JsonObject>) => Promise<import("./common.js").Resource>;
2114
+ delete: (id: string) => Promise<unknown>;
2115
+ };
2116
+ workflows: (namespace: string) => {
2117
+ pushRun: (name: string, runId: string, input: import("./common.js").JsonObject) => Promise<unknown>;
2118
+ specCredentials: (name: string) => Promise<unknown>;
2119
+ pushSpec: (name: string, input: {
2120
+ version: number;
2121
+ meta: import("./common.js").JsonObject;
2122
+ }) => Promise<unknown>;
2123
+ list: (query?: import("./common.js").Query) => Promise<{
2124
+ [key: string]: unknown;
2125
+ }>;
2126
+ get: (id: string) => Promise<import("./common.js").Resource>;
2127
+ create: (input: import("./common.js").JsonObject) => Promise<import("./common.js").Resource>;
2128
+ update: (id: string, input: Partial<import("./common.js").JsonObject>) => Promise<import("./common.js").Resource>;
2129
+ delete: (id: string) => Promise<unknown>;
2130
+ publishSpec: (name: string, input: {
2131
+ content: Uint8Array;
2132
+ meta: import("./common.js").JsonObject;
2133
+ }, store: import("./storage.js").VersionedContentStore) => Promise<{
2134
+ version: number;
2135
+ receipt: unknown;
2136
+ }>;
2137
+ };
2138
+ runnables: (namespace: string) => {
2139
+ versions: (name: string) => Promise<unknown>;
2140
+ version: (name: string, version: string) => Promise<unknown>;
2141
+ pushVersion: (name: string, input: {
2142
+ version: string;
2143
+ source: string;
2144
+ metadata?: import("./common.js").JsonObject;
2145
+ }) => Promise<unknown>;
2146
+ list: (query?: import("./common.js").Query) => Promise<{
2147
+ [key: string]: unknown;
2148
+ }>;
2149
+ get: (id: string) => Promise<import("./common.js").Resource>;
2150
+ create: (input: import("./common.js").JsonObject) => Promise<import("./common.js").Resource>;
2151
+ update: (id: string, input: Partial<import("./common.js").JsonObject>) => Promise<import("./common.js").Resource>;
2152
+ delete: (id: string) => Promise<unknown>;
2153
+ };
2154
+ libraries: (namespace: string) => {
2155
+ list: (query?: import("./common.js").Query) => Promise<unknown>;
2156
+ get: (name: string) => Promise<unknown>;
2157
+ manifest: (name: string) => Promise<unknown>;
2158
+ search: (query: {
2159
+ q: string;
2160
+ libraries?: string;
2161
+ category?: string;
2162
+ kind?: string;
2163
+ tag?: string;
2164
+ license?: string;
2165
+ limit?: number;
2166
+ offset?: number;
2167
+ }) => Promise<unknown>;
2168
+ uploadCapabilities: (name: string) => Promise<unknown>;
2169
+ uploadAuthorizations: (name: string, input: import("./common.js").JsonObject) => Promise<unknown>;
2170
+ uploadSession: (name: string, id: string) => Promise<unknown>;
2171
+ filesStatus: (name: string, id: string, files: import("./common.js").JsonObject[]) => Promise<unknown>;
2172
+ filesPresign: (name: string, paths: string[], ttlSeconds?: number) => Promise<unknown>;
2173
+ register: (name: string, input: import("./common.js").JsonObject) => Promise<unknown>;
2174
+ };
2175
+ sources: (namespace: string) => {
2176
+ list: (query?: {
2177
+ cursor?: string;
2178
+ limit?: number;
2179
+ nameContains?: string;
2180
+ provider?: string;
2181
+ hasExternal?: boolean;
2182
+ lifecycle?: string;
2183
+ }) => Promise<unknown>;
2184
+ get: (id: string) => Promise<unknown>;
2185
+ byName: (name: string) => Promise<unknown>;
2186
+ connectors: () => Promise<unknown>;
2187
+ create: (input: {
2188
+ name: string;
2189
+ description?: string;
2190
+ }, requestId: string) => Promise<unknown>;
2191
+ import: (input: import("./common.js").JsonObject, requestId: string) => Promise<unknown>;
2192
+ metadata: (id: string, input: {
2193
+ expectedSettingsRevision: number;
2194
+ name?: string;
2195
+ description?: string | null;
2196
+ }) => Promise<unknown>;
2197
+ browse: (id: string, query?: {
2198
+ path?: string;
2199
+ cursor?: string;
2200
+ limit?: number;
2201
+ }) => Promise<unknown>;
2202
+ readCapability: (id: string, input: {
2203
+ path: string;
2204
+ intent: string;
2205
+ }) => Promise<unknown>;
2206
+ uploadAuthorizations: (id: string, input: import("./common.js").JsonObject, requestId: string) => Promise<unknown>;
2207
+ deleteObject: (id: string, objectPath: string, requestId: string) => Promise<unknown>;
2208
+ deletePrefix: (id: string, prefix: string, requestId: string) => Promise<unknown>;
2209
+ deleteStatus: (id: string) => Promise<unknown>;
2210
+ deleteRetry: (id: string, requestId: string) => Promise<unknown>;
2211
+ setExternal: (id: string, input: import("./common.js").JsonObject, requestId: string) => Promise<unknown>;
2212
+ removeExternal: (id: string, expectedCompositionRevision: number, requestId: string) => Promise<unknown>;
2213
+ enable: (id: string, requestId: string) => Promise<unknown>;
2214
+ disable: (id: string, requestId: string) => Promise<unknown>;
2215
+ checkAccess: (id: string) => Promise<unknown>;
2216
+ delete: (id: string, requestId: string) => Promise<unknown>;
2217
+ deleteSourceStatus: (id: string) => Promise<unknown>;
2218
+ deleteSourceRetry: (id: string) => Promise<unknown>;
2219
+ stat: (id: string, objectPath: string) => Promise<unknown>;
2220
+ editors: (id: string) => Promise<unknown>;
2221
+ addEditor: (id: string, input: {
2222
+ subjectType: string;
2223
+ subjectId: string;
2224
+ }, requestId: string) => Promise<unknown>;
2225
+ removeEditor: (id: string, subjectType: string, subjectId: string, requestId: string) => Promise<unknown>;
2226
+ references: (id: string, query?: {
2227
+ limit?: number;
2228
+ cursor?: string;
2229
+ }) => Promise<unknown>;
2230
+ share: (id: string, role: string) => Promise<unknown>;
2231
+ revokeShare: (id: string, forget: boolean) => Promise<unknown>;
2232
+ shares: (id: string, query?: {
2233
+ limit?: number;
2234
+ cursor?: string;
2235
+ }) => Promise<unknown>;
2236
+ removeShare: (id: string, user: string) => Promise<unknown>;
2237
+ };
2238
+ runs: (namespace: string) => {
2239
+ capabilities: () => Promise<unknown>;
2240
+ submit: (input: import("./execution.js").RunInput) => Promise<{
2241
+ run: Record<string, unknown>;
2242
+ }>;
2243
+ status: (id: string) => Promise<unknown>;
2244
+ cancel: (id: string) => Promise<unknown>;
2245
+ logs: (id: string, cursor?: string) => Promise<unknown>;
2246
+ };
2247
+ providers: (namespace: string) => {
2248
+ list: (query?: {
2249
+ page?: number;
2250
+ pageSize?: number;
2251
+ }) => Promise<unknown>;
2252
+ get: (id: string) => Promise<unknown>;
2253
+ register: (input: {
2254
+ requestId: string;
2255
+ declaration: import("./common.js").JsonObject;
2256
+ }) => Promise<unknown>;
2257
+ launchServer: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
2258
+ launch: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
2259
+ layers: (id: string) => Promise<unknown>;
2260
+ createLayer: (id: string, input: {
2261
+ requestId: string;
2262
+ name: string;
2263
+ text: string;
2264
+ }) => Promise<unknown>;
2265
+ updateLayer: (id: string, layer: string, input: import("./common.js").JsonObject) => Promise<unknown>;
2266
+ retireLayer: (id: string, layer: string, input: {
2267
+ requestId: string;
2268
+ revision: number;
2269
+ }) => Promise<unknown>;
2270
+ preflight: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
2271
+ instances: (id: string) => Promise<unknown>;
2272
+ launchInstances: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
2273
+ instanceLogs: (id: string, instance: string, tailLines?: number) => Promise<unknown>;
2274
+ instanceAction: (id: string, instance: string, action: "start" | "stop" | "terminate", requestId: string) => Promise<unknown>;
2275
+ nodes: (clusterId: string) => Promise<unknown>;
2276
+ associate: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
2277
+ check: (id: string, input: import("./common.js").JsonObject) => Promise<unknown>;
2278
+ status: (id: string, query?: {
2279
+ page?: number;
2280
+ pageSize?: number;
2281
+ }) => Promise<unknown>;
2282
+ retire: (id: string, input: {
2283
+ requestId: string;
2284
+ revision: number;
2285
+ }, associationId?: string) => Promise<unknown>;
2286
+ operation: (id: string) => Promise<unknown>;
2287
+ findOperation: (requestId: string) => Promise<unknown>;
2288
+ };
2289
+ queues: (namespace: string) => {
2290
+ mounts: (query?: import("./common.js").Query) => Promise<unknown>;
2291
+ mount: (input: {
2292
+ uri: string;
2293
+ prefix: string;
2294
+ lakeshoreNamespace: string;
2295
+ token: string;
2296
+ }) => Promise<unknown>;
2297
+ get: (prefix: string) => Promise<unknown>;
2298
+ test: (prefix: string) => Promise<unknown>;
2299
+ unmount: (prefix: string) => Promise<unknown>;
2300
+ token: (prefix: string, token: string) => Promise<unknown>;
2301
+ proxy: (prefix: string, lakeshoreNamespace: string, kind: "queues" | "workers" | "jobs" | "invocations", query?: import("./common.js").Query) => Promise<unknown>;
2302
+ };
2303
+ ownership: (namespace: string) => {
2304
+ resource: (kind: "project" | "source", id: string, action?: "inspect" | "manifest" | "restore" | "transfer-plan") => Promise<unknown>;
2305
+ capabilities: () => Promise<unknown>;
2306
+ list: (direction?: "incoming" | "outgoing") => Promise<unknown>;
2307
+ preview: (input: import("./common.js").JsonObject) => Promise<unknown>;
2308
+ create: (input: import("./common.js").JsonObject) => Promise<unknown>;
2309
+ status: (id: string) => Promise<unknown>;
2310
+ action: (id: string, action: "accept" | "reject" | "cancel" | "resume" | "restore" | "snapshot-cleanup", input?: import("./common.js").JsonObject) => Promise<unknown>;
2311
+ inspect: (id: string, suffix: "inspect" | "manifest" | "snapshot" | "progress", query?: import("./common.js").Query) => Promise<unknown>;
2312
+ };
2313
+ runConfigs: (namespace: string) => {
2314
+ list: (query?: import("./common.js").Query) => Promise<{
2315
+ [key: string]: unknown;
2316
+ }>;
2317
+ get: (id: string) => Promise<import("./common.js").Resource>;
2318
+ create: (input: import("./common.js").JsonObject) => Promise<import("./common.js").Resource>;
2319
+ update: (id: string, input: Partial<import("./common.js").JsonObject>) => Promise<import("./common.js").Resource>;
2320
+ delete: (id: string) => Promise<unknown>;
2321
+ };
2322
+ };
2323
+ export * from "./layout.js";
2324
+ export * as noteEditing from "./note-editing.js";
2325
+ export * as noteOutline from "./note-toc.js";
2326
+ export * as noteHtml from "./note-html.js";
2327
+ export * from "./note-html-read.js";
2328
+ export { characterDiff, NotePatchError, PATCH_LIMITS, } from "./note-character-plan.js";
2329
+ export * from "./presigned-transfer.js";
2330
+ export * from "./note-events.js";