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