@nodetool-ai/protocol 0.7.0-rc.23 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (624) hide show
  1. package/README.md +56 -0
  2. package/dist/.nodetool-build-stamp +1 -0
  3. package/dist/ai-video-production.d.ts +276 -0
  4. package/dist/ai-video-production.d.ts.map +1 -0
  5. package/dist/ai-video-production.js +131 -0
  6. package/dist/ai-video-production.js.map +1 -0
  7. package/dist/api-schemas/agent-access.d.ts +134 -0
  8. package/dist/api-schemas/agent-access.d.ts.map +1 -0
  9. package/dist/api-schemas/agent-access.js +93 -0
  10. package/dist/api-schemas/agent-access.js.map +1 -0
  11. package/dist/api-schemas/api-error-code.d.ts +11 -1
  12. package/dist/api-schemas/api-error-code.d.ts.map +1 -1
  13. package/dist/api-schemas/api-error-code.js +10 -0
  14. package/dist/api-schemas/api-error-code.js.map +1 -1
  15. package/dist/api-schemas/app-runs.d.ts +1410 -0
  16. package/dist/api-schemas/app-runs.d.ts.map +1 -0
  17. package/dist/api-schemas/app-runs.js +105 -0
  18. package/dist/api-schemas/app-runs.js.map +1 -0
  19. package/dist/api-schemas/applications.d.ts +3216 -0
  20. package/dist/api-schemas/applications.d.ts.map +1 -0
  21. package/dist/api-schemas/applications.js +487 -0
  22. package/dist/api-schemas/applications.js.map +1 -0
  23. package/dist/api-schemas/assets.d.ts +239 -0
  24. package/dist/api-schemas/assets.d.ts.map +1 -1
  25. package/dist/api-schemas/assets.js +136 -5
  26. package/dist/api-schemas/assets.js.map +1 -1
  27. package/dist/api-schemas/bug-reports.d.ts +38 -0
  28. package/dist/api-schemas/bug-reports.d.ts.map +1 -0
  29. package/dist/api-schemas/bug-reports.js +34 -0
  30. package/dist/api-schemas/bug-reports.js.map +1 -0
  31. package/dist/api-schemas/code-gen.d.ts +176 -0
  32. package/dist/api-schemas/code-gen.d.ts.map +1 -0
  33. package/dist/api-schemas/code-gen.js +205 -0
  34. package/dist/api-schemas/code-gen.js.map +1 -0
  35. package/dist/api-schemas/collections.d.ts.map +1 -1
  36. package/dist/api-schemas/collections.js +3 -4
  37. package/dist/api-schemas/collections.js.map +1 -1
  38. package/dist/api-schemas/costs.d.ts +179 -0
  39. package/dist/api-schemas/costs.d.ts.map +1 -1
  40. package/dist/api-schemas/costs.js +100 -4
  41. package/dist/api-schemas/costs.js.map +1 -1
  42. package/dist/api-schemas/credits.d.ts +42 -0
  43. package/dist/api-schemas/credits.d.ts.map +1 -0
  44. package/dist/api-schemas/credits.js +43 -0
  45. package/dist/api-schemas/credits.js.map +1 -0
  46. package/dist/api-schemas/documents.d.ts +163 -0
  47. package/dist/api-schemas/documents.d.ts.map +1 -0
  48. package/dist/api-schemas/documents.js +75 -0
  49. package/dist/api-schemas/documents.js.map +1 -0
  50. package/dist/api-schemas/error-traces.d.ts +249 -0
  51. package/dist/api-schemas/error-traces.d.ts.map +1 -0
  52. package/dist/api-schemas/error-traces.js +112 -0
  53. package/dist/api-schemas/error-traces.js.map +1 -0
  54. package/dist/api-schemas/files.d.ts +13 -0
  55. package/dist/api-schemas/files.d.ts.map +1 -1
  56. package/dist/api-schemas/files.js +8 -0
  57. package/dist/api-schemas/files.js.map +1 -1
  58. package/dist/api-schemas/fonts.d.ts +17 -1
  59. package/dist/api-schemas/fonts.d.ts.map +1 -1
  60. package/dist/api-schemas/fonts.js +19 -3
  61. package/dist/api-schemas/fonts.js.map +1 -1
  62. package/dist/api-schemas/index.d.ts +27 -1
  63. package/dist/api-schemas/index.d.ts.map +1 -1
  64. package/dist/api-schemas/index.js +27 -1
  65. package/dist/api-schemas/index.js.map +1 -1
  66. package/dist/api-schemas/jobs.d.ts +44 -0
  67. package/dist/api-schemas/jobs.d.ts.map +1 -1
  68. package/dist/api-schemas/jobs.js +26 -2
  69. package/dist/api-schemas/jobs.js.map +1 -1
  70. package/dist/api-schemas/js-scripts.d.ts +367 -0
  71. package/dist/api-schemas/js-scripts.d.ts.map +1 -0
  72. package/dist/api-schemas/js-scripts.js +341 -0
  73. package/dist/api-schemas/js-scripts.js.map +1 -0
  74. package/dist/api-schemas/mcp-config.d.ts +4 -1
  75. package/dist/api-schemas/mcp-config.d.ts.map +1 -1
  76. package/dist/api-schemas/mcp-config.js +10 -3
  77. package/dist/api-schemas/mcp-config.js.map +1 -1
  78. package/dist/api-schemas/memories.d.ts +84 -0
  79. package/dist/api-schemas/memories.d.ts.map +1 -0
  80. package/dist/api-schemas/memories.js +54 -0
  81. package/dist/api-schemas/memories.js.map +1 -0
  82. package/dist/api-schemas/messages.d.ts +1 -0
  83. package/dist/api-schemas/messages.d.ts.map +1 -1
  84. package/dist/api-schemas/messages.js +4 -4
  85. package/dist/api-schemas/messages.js.map +1 -1
  86. package/dist/api-schemas/models.d.ts +164 -0
  87. package/dist/api-schemas/models.d.ts.map +1 -1
  88. package/dist/api-schemas/models.js +53 -6
  89. package/dist/api-schemas/models.js.map +1 -1
  90. package/dist/api-schemas/nodes.d.ts +97 -0
  91. package/dist/api-schemas/nodes.d.ts.map +1 -1
  92. package/dist/api-schemas/nodes.js +89 -0
  93. package/dist/api-schemas/nodes.js.map +1 -1
  94. package/dist/api-schemas/projects.d.ts +427 -0
  95. package/dist/api-schemas/projects.d.ts.map +1 -0
  96. package/dist/api-schemas/projects.js +224 -0
  97. package/dist/api-schemas/projects.js.map +1 -0
  98. package/dist/api-schemas/recipes.d.ts +172 -0
  99. package/dist/api-schemas/recipes.d.ts.map +1 -0
  100. package/dist/api-schemas/recipes.js +144 -0
  101. package/dist/api-schemas/recipes.js.map +1 -0
  102. package/dist/api-schemas/resources.d.ts +112 -0
  103. package/dist/api-schemas/resources.d.ts.map +1 -0
  104. package/dist/api-schemas/resources.js +44 -0
  105. package/dist/api-schemas/resources.js.map +1 -0
  106. package/dist/api-schemas/runs.d.ts +6 -0
  107. package/dist/api-schemas/runs.d.ts.map +1 -0
  108. package/dist/api-schemas/runs.js +4 -0
  109. package/dist/api-schemas/runs.js.map +1 -0
  110. package/dist/api-schemas/scripts.d.ts +1571 -0
  111. package/dist/api-schemas/scripts.d.ts.map +1 -0
  112. package/dist/api-schemas/scripts.js +153 -0
  113. package/dist/api-schemas/scripts.js.map +1 -0
  114. package/dist/api-schemas/sdk-execution-v1.d.ts +468 -0
  115. package/dist/api-schemas/sdk-execution-v1.d.ts.map +1 -0
  116. package/dist/api-schemas/sdk-execution-v1.js +115 -0
  117. package/dist/api-schemas/sdk-execution-v1.js.map +1 -0
  118. package/dist/api-schemas/sdk-lifecycle-v1.d.ts +217 -0
  119. package/dist/api-schemas/sdk-lifecycle-v1.d.ts.map +1 -0
  120. package/dist/api-schemas/sdk-lifecycle-v1.js +117 -0
  121. package/dist/api-schemas/sdk-lifecycle-v1.js.map +1 -0
  122. package/dist/api-schemas/sdk-models-v1.d.ts +181 -0
  123. package/dist/api-schemas/sdk-models-v1.d.ts.map +1 -0
  124. package/dist/api-schemas/sdk-models-v1.js +108 -0
  125. package/dist/api-schemas/sdk-models-v1.js.map +1 -0
  126. package/dist/api-schemas/sdk-v1-http-operations.d.ts +941 -0
  127. package/dist/api-schemas/sdk-v1-http-operations.d.ts.map +1 -0
  128. package/dist/api-schemas/sdk-v1-http-operations.js +465 -0
  129. package/dist/api-schemas/sdk-v1-http-operations.js.map +1 -0
  130. package/dist/api-schemas/sdk-v1-operations.d.ts +151 -0
  131. package/dist/api-schemas/sdk-v1-operations.d.ts.map +1 -0
  132. package/dist/api-schemas/sdk-v1-operations.js +97 -0
  133. package/dist/api-schemas/sdk-v1-operations.js.map +1 -0
  134. package/dist/api-schemas/sdk-v1-websocket-operations.d.ts +97 -0
  135. package/dist/api-schemas/sdk-v1-websocket-operations.d.ts.map +1 -0
  136. package/dist/api-schemas/sdk-v1-websocket-operations.js +96 -0
  137. package/dist/api-schemas/sdk-v1-websocket-operations.js.map +1 -0
  138. package/dist/api-schemas/sdk-v1.d.ts +15 -0
  139. package/dist/api-schemas/sdk-v1.d.ts.map +1 -0
  140. package/dist/api-schemas/sdk-v1.js +22 -0
  141. package/dist/api-schemas/sdk-v1.js.map +1 -0
  142. package/dist/api-schemas/segmentation.d.ts +75 -0
  143. package/dist/api-schemas/segmentation.d.ts.map +1 -0
  144. package/dist/api-schemas/segmentation.js +54 -0
  145. package/dist/api-schemas/segmentation.js.map +1 -0
  146. package/dist/api-schemas/settings.d.ts +162 -0
  147. package/dist/api-schemas/settings.d.ts.map +1 -1
  148. package/dist/api-schemas/settings.js +71 -0
  149. package/dist/api-schemas/settings.js.map +1 -1
  150. package/dist/api-schemas/sketch.d.ts +858 -0
  151. package/dist/api-schemas/sketch.d.ts.map +1 -0
  152. package/dist/api-schemas/sketch.js +546 -0
  153. package/dist/api-schemas/sketch.js.map +1 -0
  154. package/dist/api-schemas/skills.d.ts +27 -14
  155. package/dist/api-schemas/skills.d.ts.map +1 -1
  156. package/dist/api-schemas/skills.js +64 -11
  157. package/dist/api-schemas/skills.js.map +1 -1
  158. package/dist/api-schemas/storage.d.ts +8 -0
  159. package/dist/api-schemas/storage.d.ts.map +1 -1
  160. package/dist/api-schemas/storage.js +7 -0
  161. package/dist/api-schemas/storage.js.map +1 -1
  162. package/dist/api-schemas/storyboards.d.ts +8595 -0
  163. package/dist/api-schemas/storyboards.d.ts.map +1 -0
  164. package/dist/api-schemas/storyboards.js +524 -0
  165. package/dist/api-schemas/storyboards.js.map +1 -0
  166. package/dist/api-schemas/threads.d.ts +12 -4
  167. package/dist/api-schemas/threads.d.ts.map +1 -1
  168. package/dist/api-schemas/threads.js +12 -4
  169. package/dist/api-schemas/threads.js.map +1 -1
  170. package/dist/api-schemas/timeline-tool-contracts.d.ts +1687 -0
  171. package/dist/api-schemas/timeline-tool-contracts.d.ts.map +1 -0
  172. package/dist/api-schemas/timeline-tool-contracts.js +725 -0
  173. package/dist/api-schemas/timeline-tool-contracts.js.map +1 -0
  174. package/dist/api-schemas/timeline-tool-params.d.ts +1270 -0
  175. package/dist/api-schemas/timeline-tool-params.d.ts.map +1 -0
  176. package/dist/api-schemas/timeline-tool-params.js +1529 -0
  177. package/dist/api-schemas/timeline-tool-params.js.map +1 -0
  178. package/dist/api-schemas/timeline.d.ts +13740 -0
  179. package/dist/api-schemas/timeline.d.ts.map +1 -0
  180. package/dist/api-schemas/timeline.js +1928 -0
  181. package/dist/api-schemas/timeline.js.map +1 -0
  182. package/dist/api-schemas/ui-tool-contract.d.ts +35 -0
  183. package/dist/api-schemas/ui-tool-contract.d.ts.map +1 -0
  184. package/dist/api-schemas/ui-tool-contract.js +31 -0
  185. package/dist/api-schemas/ui-tool-contract.js.map +1 -0
  186. package/dist/api-schemas/workflows.d.ts +904 -18
  187. package/dist/api-schemas/workflows.d.ts.map +1 -1
  188. package/dist/api-schemas/workflows.js +507 -6
  189. package/dist/api-schemas/workflows.js.map +1 -1
  190. package/dist/api-schemas/workspace.d.ts +45 -0
  191. package/dist/api-schemas/workspace.d.ts.map +1 -1
  192. package/dist/api-schemas/workspace.js +47 -1
  193. package/dist/api-schemas/workspace.js.map +1 -1
  194. package/dist/api-types.d.ts +651 -27
  195. package/dist/api-types.d.ts.map +1 -1
  196. package/dist/api-types.js +252 -1
  197. package/dist/api-types.js.map +1 -1
  198. package/dist/app-deployment.d.ts +37 -0
  199. package/dist/app-deployment.d.ts.map +1 -0
  200. package/dist/app-deployment.js +42 -0
  201. package/dist/app-deployment.js.map +1 -0
  202. package/dist/asset-file-name.d.ts +15 -0
  203. package/dist/asset-file-name.d.ts.map +1 -0
  204. package/dist/asset-file-name.js +61 -0
  205. package/dist/asset-file-name.js.map +1 -0
  206. package/dist/asset-generation.d.ts +58 -0
  207. package/dist/asset-generation.d.ts.map +1 -0
  208. package/dist/asset-generation.js +147 -0
  209. package/dist/asset-generation.js.map +1 -0
  210. package/dist/blend-modes.d.ts +20 -0
  211. package/dist/blend-modes.d.ts.map +1 -0
  212. package/dist/blend-modes.js +33 -0
  213. package/dist/blend-modes.js.map +1 -0
  214. package/dist/bridge-frames.d.ts +654 -0
  215. package/dist/bridge-frames.d.ts.map +1 -0
  216. package/dist/bridge-frames.js +448 -0
  217. package/dist/bridge-frames.js.map +1 -0
  218. package/dist/bridge-frames.schema.json +862 -0
  219. package/dist/bridge-protocol.d.ts +57 -20
  220. package/dist/bridge-protocol.d.ts.map +1 -1
  221. package/dist/bridge-protocol.js +57 -20
  222. package/dist/bridge-protocol.js.map +1 -1
  223. package/dist/browser-run-traces.d.ts +102 -0
  224. package/dist/browser-run-traces.d.ts.map +1 -0
  225. package/dist/browser-run-traces.js +30 -0
  226. package/dist/browser-run-traces.js.map +1 -0
  227. package/dist/builtin-packs.d.ts +45 -0
  228. package/dist/builtin-packs.d.ts.map +1 -0
  229. package/dist/builtin-packs.js +121 -0
  230. package/dist/builtin-packs.js.map +1 -0
  231. package/dist/caption-word.d.ts +15 -0
  232. package/dist/caption-word.d.ts.map +1 -0
  233. package/dist/caption-word.js +10 -0
  234. package/dist/caption-word.js.map +1 -0
  235. package/dist/cloud-profile.d.ts +187 -0
  236. package/dist/cloud-profile.d.ts.map +1 -0
  237. package/dist/cloud-profile.js +286 -0
  238. package/dist/cloud-profile.js.map +1 -0
  239. package/dist/creative.d.ts +580 -0
  240. package/dist/creative.d.ts.map +1 -0
  241. package/dist/creative.js +274 -0
  242. package/dist/creative.js.map +1 -0
  243. package/dist/custom-providers.d.ts +70 -0
  244. package/dist/custom-providers.d.ts.map +1 -0
  245. package/dist/custom-providers.js +125 -0
  246. package/dist/custom-providers.js.map +1 -0
  247. package/dist/document-ops.d.ts +15 -0
  248. package/dist/document-ops.d.ts.map +1 -0
  249. package/dist/document-ops.js +2 -0
  250. package/dist/document-ops.js.map +1 -0
  251. package/dist/game-assets.d.ts +344 -0
  252. package/dist/game-assets.d.ts.map +1 -0
  253. package/dist/game-assets.js +297 -0
  254. package/dist/game-assets.js.map +1 -0
  255. package/dist/game-authoring.d.ts +113 -0
  256. package/dist/game-authoring.d.ts.map +1 -0
  257. package/dist/game-authoring.js +37 -0
  258. package/dist/game-authoring.js.map +1 -0
  259. package/dist/game-design.d.ts +90 -0
  260. package/dist/game-design.d.ts.map +1 -0
  261. package/dist/game-design.js +417 -0
  262. package/dist/game-design.js.map +1 -0
  263. package/dist/game-flow-prompt.d.ts +68 -0
  264. package/dist/game-flow-prompt.d.ts.map +1 -0
  265. package/dist/game-flow-prompt.js +121 -0
  266. package/dist/game-flow-prompt.js.map +1 -0
  267. package/dist/game-graph.d.ts +96 -0
  268. package/dist/game-graph.d.ts.map +1 -0
  269. package/dist/game-graph.js +481 -0
  270. package/dist/game-graph.js.map +1 -0
  271. package/dist/game-migration.d.ts +4 -0
  272. package/dist/game-migration.d.ts.map +1 -0
  273. package/dist/game-migration.js +6 -0
  274. package/dist/game-migration.js.map +1 -0
  275. package/dist/game-slot-prompt.d.ts +90 -0
  276. package/dist/game-slot-prompt.d.ts.map +1 -0
  277. package/dist/game-slot-prompt.js +237 -0
  278. package/dist/game-slot-prompt.js.map +1 -0
  279. package/dist/game-step.d.ts +10 -0
  280. package/dist/game-step.d.ts.map +1 -0
  281. package/dist/game-step.js +2 -0
  282. package/dist/game-step.js.map +1 -0
  283. package/dist/game.d.ts +2 -0
  284. package/dist/game.d.ts.map +1 -0
  285. package/dist/game.js +2 -0
  286. package/dist/game.js.map +1 -0
  287. package/dist/game2d/components/animator.d.ts +22 -0
  288. package/dist/game2d/components/animator.d.ts.map +1 -0
  289. package/dist/game2d/components/animator.js +6 -0
  290. package/dist/game2d/components/animator.js.map +1 -0
  291. package/dist/game2d/components/assets.d.ts +132 -0
  292. package/dist/game2d/components/assets.d.ts.map +1 -0
  293. package/dist/game2d/components/assets.js +52 -0
  294. package/dist/game2d/components/assets.js.map +1 -0
  295. package/dist/game2d/components/audioSource.d.ts +7 -0
  296. package/dist/game2d/components/audioSource.d.ts.map +1 -0
  297. package/dist/game2d/components/audioSource.js +4 -0
  298. package/dist/game2d/components/audioSource.js.map +1 -0
  299. package/dist/game2d/components/background.d.ts +38 -0
  300. package/dist/game2d/components/background.d.ts.map +1 -0
  301. package/dist/game2d/components/background.js +10 -0
  302. package/dist/game2d/components/background.js.map +1 -0
  303. package/dist/game2d/components/behaviors.d.ts +50 -0
  304. package/dist/game2d/components/behaviors.d.ts.map +1 -0
  305. package/dist/game2d/components/behaviors.js +15 -0
  306. package/dist/game2d/components/behaviors.js.map +1 -0
  307. package/dist/game2d/components/body2d.d.ts +13 -0
  308. package/dist/game2d/components/body2d.d.ts.map +1 -0
  309. package/dist/game2d/components/body2d.js +4 -0
  310. package/dist/game2d/components/body2d.js.map +1 -0
  311. package/dist/game2d/components/camera2d.d.ts +7 -0
  312. package/dist/game2d/components/camera2d.d.ts.map +1 -0
  313. package/dist/game2d/components/camera2d.js +4 -0
  314. package/dist/game2d/components/camera2d.js.map +1 -0
  315. package/dist/game2d/components/collider2d.d.ts +10 -0
  316. package/dist/game2d/components/collider2d.d.ts.map +1 -0
  317. package/dist/game2d/components/collider2d.js +5 -0
  318. package/dist/game2d/components/collider2d.js.map +1 -0
  319. package/dist/game2d/components/common.d.ts +16 -0
  320. package/dist/game2d/components/common.d.ts.map +1 -0
  321. package/dist/game2d/components/common.js +13 -0
  322. package/dist/game2d/components/common.js.map +1 -0
  323. package/dist/game2d/components/entity-components.d.ts +181 -0
  324. package/dist/game2d/components/entity-components.d.ts.map +1 -0
  325. package/dist/game2d/components/entity-components.js +21 -0
  326. package/dist/game2d/components/entity-components.js.map +1 -0
  327. package/dist/game2d/components/light2d.d.ts +12 -0
  328. package/dist/game2d/components/light2d.d.ts.map +1 -0
  329. package/dist/game2d/components/light2d.js +5 -0
  330. package/dist/game2d/components/light2d.js.map +1 -0
  331. package/dist/game2d/components/lighting.d.ts +17 -0
  332. package/dist/game2d/components/lighting.d.ts.map +1 -0
  333. package/dist/game2d/components/lighting.js +6 -0
  334. package/dist/game2d/components/lighting.js.map +1 -0
  335. package/dist/game2d/components/music.d.ts +8 -0
  336. package/dist/game2d/components/music.d.ts.map +1 -0
  337. package/dist/game2d/components/music.js +4 -0
  338. package/dist/game2d/components/music.js.map +1 -0
  339. package/dist/game2d/components/sprite.d.ts +26 -0
  340. package/dist/game2d/components/sprite.d.ts.map +1 -0
  341. package/dist/game2d/components/sprite.js +6 -0
  342. package/dist/game2d/components/sprite.js.map +1 -0
  343. package/dist/game2d/components/tilemap.d.ts +23 -0
  344. package/dist/game2d/components/tilemap.d.ts.map +1 -0
  345. package/dist/game2d/components/tilemap.js +6 -0
  346. package/dist/game2d/components/tilemap.js.map +1 -0
  347. package/dist/game2d/components/transform.d.ts +10 -0
  348. package/dist/game2d/components/transform.d.ts.map +1 -0
  349. package/dist/game2d/components/transform.js +10 -0
  350. package/dist/game2d/components/transform.js.map +1 -0
  351. package/dist/game2d/components/visual-animation.d.ts +148 -0
  352. package/dist/game2d/components/visual-animation.d.ts.map +1 -0
  353. package/dist/game2d/components/visual-animation.js +10 -0
  354. package/dist/game2d/components/visual-animation.js.map +1 -0
  355. package/dist/game2d/index.d.ts +1426 -0
  356. package/dist/game2d/index.d.ts.map +1 -0
  357. package/dist/game2d/index.js +135 -0
  358. package/dist/game2d/index.js.map +1 -0
  359. package/dist/game3d/components/animator.d.ts +9 -0
  360. package/dist/game3d/components/animator.d.ts.map +1 -0
  361. package/dist/game3d/components/animator.js +7 -0
  362. package/dist/game3d/components/animator.js.map +1 -0
  363. package/dist/game3d/components/assets.d.ts +261 -0
  364. package/dist/game3d/components/assets.d.ts.map +1 -0
  365. package/dist/game3d/components/assets.js +21 -0
  366. package/dist/game3d/components/assets.js.map +1 -0
  367. package/dist/game3d/components/behaviors.d.ts +66 -0
  368. package/dist/game3d/components/behaviors.d.ts.map +1 -0
  369. package/dist/game3d/components/behaviors.js +9 -0
  370. package/dist/game3d/components/behaviors.js.map +1 -0
  371. package/dist/game3d/components/body.d.ts +53 -0
  372. package/dist/game3d/components/body.d.ts.map +1 -0
  373. package/dist/game3d/components/body.js +15 -0
  374. package/dist/game3d/components/body.js.map +1 -0
  375. package/dist/game3d/components/camera.d.ts +49 -0
  376. package/dist/game3d/components/camera.d.ts.map +1 -0
  377. package/dist/game3d/components/camera.js +20 -0
  378. package/dist/game3d/components/camera.js.map +1 -0
  379. package/dist/game3d/components/character.d.ts +16 -0
  380. package/dist/game3d/components/character.d.ts.map +1 -0
  381. package/dist/game3d/components/character.js +10 -0
  382. package/dist/game3d/components/character.js.map +1 -0
  383. package/dist/game3d/components/collider-geometry.d.ts +7 -0
  384. package/dist/game3d/components/collider-geometry.d.ts.map +1 -0
  385. package/dist/game3d/components/collider-geometry.js +13 -0
  386. package/dist/game3d/components/collider-geometry.js.map +1 -0
  387. package/dist/game3d/components/collider.d.ts +79 -0
  388. package/dist/game3d/components/collider.d.ts.map +1 -0
  389. package/dist/game3d/components/collider.js +16 -0
  390. package/dist/game3d/components/collider.js.map +1 -0
  391. package/dist/game3d/components/common.d.ts +8 -0
  392. package/dist/game3d/components/common.d.ts.map +1 -0
  393. package/dist/game3d/components/common.js +8 -0
  394. package/dist/game3d/components/common.js.map +1 -0
  395. package/dist/game3d/components/environment.d.ts +20 -0
  396. package/dist/game3d/components/environment.d.ts.map +1 -0
  397. package/dist/game3d/components/environment.js +8 -0
  398. package/dist/game3d/components/environment.js.map +1 -0
  399. package/dist/game3d/components/interaction-actor.d.ts +6 -0
  400. package/dist/game3d/components/interaction-actor.d.ts.map +1 -0
  401. package/dist/game3d/components/interaction-actor.js +3 -0
  402. package/dist/game3d/components/interaction-actor.js.map +1 -0
  403. package/dist/game3d/components/light.d.ts +23 -0
  404. package/dist/game3d/components/light.d.ts.map +1 -0
  405. package/dist/game3d/components/light.js +9 -0
  406. package/dist/game3d/components/light.js.map +1 -0
  407. package/dist/game3d/components/material.d.ts +15 -0
  408. package/dist/game3d/components/material.d.ts.map +1 -0
  409. package/dist/game3d/components/material.js +9 -0
  410. package/dist/game3d/components/material.js.map +1 -0
  411. package/dist/game3d/components/model.d.ts +22 -0
  412. package/dist/game3d/components/model.d.ts.map +1 -0
  413. package/dist/game3d/components/model.js +8 -0
  414. package/dist/game3d/components/model.js.map +1 -0
  415. package/dist/game3d/components/primitive.d.ts +31 -0
  416. package/dist/game3d/components/primitive.d.ts.map +1 -0
  417. package/dist/game3d/components/primitive.js +10 -0
  418. package/dist/game3d/components/primitive.js.map +1 -0
  419. package/dist/game3d/components/transform.d.ts +24 -0
  420. package/dist/game3d/components/transform.d.ts.map +1 -0
  421. package/dist/game3d/components/transform.js +10 -0
  422. package/dist/game3d/components/transform.js.map +1 -0
  423. package/dist/game3d/index.d.ts +4045 -0
  424. package/dist/game3d/index.d.ts.map +1 -0
  425. package/dist/game3d/index.js +159 -0
  426. package/dist/game3d/index.js.map +1 -0
  427. package/dist/game3d.d.ts +2 -0
  428. package/dist/game3d.d.ts.map +1 -0
  429. package/dist/game3d.js +2 -0
  430. package/dist/game3d.js.map +1 -0
  431. package/dist/graph.d.ts +192 -5
  432. package/dist/graph.d.ts.map +1 -1
  433. package/dist/graph.js +515 -0
  434. package/dist/graph.js.map +1 -1
  435. package/dist/index.d.ts +59 -2
  436. package/dist/index.d.ts.map +1 -1
  437. package/dist/index.js +57 -2
  438. package/dist/index.js.map +1 -1
  439. package/dist/loop.d.ts +38 -0
  440. package/dist/loop.d.ts.map +1 -0
  441. package/dist/loop.js +69 -0
  442. package/dist/loop.js.map +1 -0
  443. package/dist/mcp-server-config.d.ts +113 -0
  444. package/dist/mcp-server-config.d.ts.map +1 -0
  445. package/dist/mcp-server-config.js +147 -0
  446. package/dist/mcp-server-config.js.map +1 -0
  447. package/dist/messages.d.ts +1577 -243
  448. package/dist/messages.d.ts.map +1 -1
  449. package/dist/messages.js +718 -22
  450. package/dist/messages.js.map +1 -1
  451. package/dist/missing-runtime-package.d.ts +23 -0
  452. package/dist/missing-runtime-package.d.ts.map +1 -0
  453. package/dist/missing-runtime-package.js +34 -0
  454. package/dist/missing-runtime-package.js.map +1 -0
  455. package/dist/model-selection.d.ts +20 -0
  456. package/dist/model-selection.d.ts.map +1 -0
  457. package/dist/model-selection.js +27 -0
  458. package/dist/model-selection.js.map +1 -0
  459. package/dist/nodetool-models.d.ts +71 -0
  460. package/dist/nodetool-models.d.ts.map +1 -0
  461. package/dist/nodetool-models.js +138 -0
  462. package/dist/nodetool-models.js.map +1 -0
  463. package/dist/package-assets.d.ts +39 -0
  464. package/dist/package-assets.d.ts.map +1 -0
  465. package/dist/package-assets.js +63 -0
  466. package/dist/package-assets.js.map +1 -0
  467. package/dist/platform.d.ts +66 -0
  468. package/dist/platform.d.ts.map +1 -0
  469. package/dist/platform.js +68 -0
  470. package/dist/platform.js.map +1 -0
  471. package/dist/predicates.d.ts +43 -0
  472. package/dist/predicates.d.ts.map +1 -0
  473. package/dist/predicates.js +65 -0
  474. package/dist/predicates.js.map +1 -0
  475. package/dist/processing-messages.schema.json +2545 -0
  476. package/dist/production-authoring.d.ts +931 -0
  477. package/dist/production-authoring.d.ts.map +1 -0
  478. package/dist/production-authoring.js +931 -0
  479. package/dist/production-authoring.js.map +1 -0
  480. package/dist/python-packs.d.ts +25 -0
  481. package/dist/python-packs.d.ts.map +1 -0
  482. package/dist/python-packs.js +51 -0
  483. package/dist/python-packs.js.map +1 -0
  484. package/dist/render-record.d.ts +228 -0
  485. package/dist/render-record.d.ts.map +1 -0
  486. package/dist/render-record.js +212 -0
  487. package/dist/render-record.js.map +1 -0
  488. package/dist/resource-id.d.ts +22 -0
  489. package/dist/resource-id.d.ts.map +1 -0
  490. package/dist/resource-id.js +32 -0
  491. package/dist/resource-id.js.map +1 -0
  492. package/dist/resource-uri.d.ts +15 -0
  493. package/dist/resource-uri.d.ts.map +1 -0
  494. package/dist/resource-uri.js +91 -0
  495. package/dist/resource-uri.js.map +1 -0
  496. package/dist/run-readers.d.ts +760 -0
  497. package/dist/run-readers.d.ts.map +1 -0
  498. package/dist/run-readers.js +153 -0
  499. package/dist/run-readers.js.map +1 -0
  500. package/dist/run-trace.d.ts +206 -0
  501. package/dist/run-trace.d.ts.map +1 -0
  502. package/dist/run-trace.js +177 -0
  503. package/dist/run-trace.js.map +1 -0
  504. package/dist/sandbox-capability.d.ts +86 -0
  505. package/dist/sandbox-capability.d.ts.map +1 -0
  506. package/dist/sandbox-capability.js +106 -0
  507. package/dist/sandbox-capability.js.map +1 -0
  508. package/dist/sandbox-host.d.ts +98 -0
  509. package/dist/sandbox-host.d.ts.map +1 -0
  510. package/dist/sandbox-host.js +311 -0
  511. package/dist/sandbox-host.js.map +1 -0
  512. package/dist/sandbox-package.d.ts +674 -0
  513. package/dist/sandbox-package.d.ts.map +1 -0
  514. package/dist/sandbox-package.js +622 -0
  515. package/dist/sandbox-package.js.map +1 -0
  516. package/dist/sandbox-wasm.d.ts +84 -0
  517. package/dist/sandbox-wasm.d.ts.map +1 -0
  518. package/dist/sandbox-wasm.js +139 -0
  519. package/dist/sandbox-wasm.js.map +1 -0
  520. package/dist/screenplay-authoring.d.ts +69 -0
  521. package/dist/screenplay-authoring.d.ts.map +1 -0
  522. package/dist/screenplay-authoring.js +352 -0
  523. package/dist/screenplay-authoring.js.map +1 -0
  524. package/dist/script-authoring.d.ts +161 -0
  525. package/dist/script-authoring.d.ts.map +1 -0
  526. package/dist/script-authoring.js +503 -0
  527. package/dist/script-authoring.js.map +1 -0
  528. package/dist/script-fill.d.ts +39 -0
  529. package/dist/script-fill.d.ts.map +1 -0
  530. package/dist/script-fill.js +67 -0
  531. package/dist/script-fill.js.map +1 -0
  532. package/dist/script-link.d.ts +110 -0
  533. package/dist/script-link.d.ts.map +1 -0
  534. package/dist/script-link.js +252 -0
  535. package/dist/script-link.js.map +1 -0
  536. package/dist/script-pace.d.ts +4 -0
  537. package/dist/script-pace.d.ts.map +1 -0
  538. package/dist/script-pace.js +11 -0
  539. package/dist/script-pace.js.map +1 -0
  540. package/dist/sha256.d.ts +11 -0
  541. package/dist/sha256.d.ts.map +1 -0
  542. package/dist/sha256.js +110 -0
  543. package/dist/sha256.js.map +1 -0
  544. package/dist/shot-prompt.d.ts +78 -0
  545. package/dist/shot-prompt.d.ts.map +1 -0
  546. package/dist/shot-prompt.js +120 -0
  547. package/dist/shot-prompt.js.map +1 -0
  548. package/dist/skill-document.d.ts +36 -0
  549. package/dist/skill-document.d.ts.map +1 -0
  550. package/dist/skill-document.js +140 -0
  551. package/dist/skill-document.js.map +1 -0
  552. package/dist/storyboard-render-spec.d.ts +4 -0
  553. package/dist/storyboard-render-spec.d.ts.map +1 -0
  554. package/dist/storyboard-render-spec.js +4 -0
  555. package/dist/storyboard-render-spec.js.map +1 -0
  556. package/dist/style-presets.d.ts +73 -0
  557. package/dist/style-presets.d.ts.map +1 -0
  558. package/dist/style-presets.js +147 -0
  559. package/dist/style-presets.js.map +1 -0
  560. package/dist/supervisor.d.ts +227 -0
  561. package/dist/supervisor.d.ts.map +1 -0
  562. package/dist/supervisor.js +116 -0
  563. package/dist/supervisor.js.map +1 -0
  564. package/dist/token-providers.d.ts +31 -0
  565. package/dist/token-providers.d.ts.map +1 -0
  566. package/dist/token-providers.js +52 -0
  567. package/dist/token-providers.js.map +1 -0
  568. package/dist/toolSchemas.d.ts +18 -14
  569. package/dist/toolSchemas.d.ts.map +1 -1
  570. package/dist/toolSchemas.js +30 -31
  571. package/dist/toolSchemas.js.map +1 -1
  572. package/dist/triggers.d.ts +41 -0
  573. package/dist/triggers.d.ts.map +1 -0
  574. package/dist/triggers.js +50 -0
  575. package/dist/triggers.js.map +1 -0
  576. package/dist/trpc-policy.d.ts +3 -0
  577. package/dist/trpc-policy.d.ts.map +1 -0
  578. package/dist/trpc-policy.js +3 -0
  579. package/dist/trpc-policy.js.map +1 -0
  580. package/dist/type-metadata.d.ts +5 -0
  581. package/dist/type-metadata.d.ts.map +1 -1
  582. package/dist/type-metadata.js +17 -8
  583. package/dist/type-metadata.js.map +1 -1
  584. package/dist/typecheck.d.ts.map +1 -1
  585. package/dist/typecheck.js +5 -4
  586. package/dist/typecheck.js.map +1 -1
  587. package/dist/wasm-binary.d.ts +61 -0
  588. package/dist/wasm-binary.d.ts.map +1 -0
  589. package/dist/wasm-binary.js +215 -0
  590. package/dist/wasm-binary.js.map +1 -0
  591. package/dist/workflow-document-revision.d.ts +4 -0
  592. package/dist/workflow-document-revision.d.ts.map +1 -0
  593. package/dist/workflow-document-revision.js +111 -0
  594. package/dist/workflow-document-revision.js.map +1 -0
  595. package/dist/workflow-plan.d.ts +274 -0
  596. package/dist/workflow-plan.d.ts.map +1 -0
  597. package/dist/workflow-plan.js +667 -0
  598. package/dist/workflow-plan.js.map +1 -0
  599. package/dist/wrap-primitives.d.ts +0 -11
  600. package/dist/wrap-primitives.d.ts.map +1 -1
  601. package/dist/wrap-primitives.js +3 -9
  602. package/dist/wrap-primitives.js.map +1 -1
  603. package/dist/ws-commands.d.ts +770 -0
  604. package/dist/ws-commands.d.ts.map +1 -0
  605. package/dist/ws-commands.js +624 -0
  606. package/dist/ws-commands.js.map +1 -0
  607. package/dist/zod-schema.d.ts +20 -0
  608. package/dist/zod-schema.d.ts.map +1 -0
  609. package/dist/zod-schema.js +298 -0
  610. package/dist/zod-schema.js.map +1 -0
  611. package/package.json +96 -7
  612. package/schema/sdk-v1.asyncapi.implemented.json +65 -0
  613. package/schema/sdk-v1.asyncapi.json +65 -0
  614. package/schema/sdk-v1.discovery.schema.json +1218 -0
  615. package/schema/sdk-v1.execution.schema.json +2792 -0
  616. package/schema/sdk-v1.lifecycle.schema.json +1031 -0
  617. package/schema/sdk-v1.manifest.json +71 -0
  618. package/schema/sdk-v1.openapi.implemented.json +730 -0
  619. package/schema/sdk-v1.openapi.json +730 -0
  620. package/schema/sdk-v1.operations.json +732 -0
  621. package/dist/agent-protocol.d.ts +0 -217
  622. package/dist/agent-protocol.d.ts.map +0 -1
  623. package/dist/agent-protocol.js +0 -85
  624. package/dist/agent-protocol.js.map +0 -1
@@ -5,7 +5,39 @@
5
5
  * These mirror the database models but are transport-only (no class methods).
6
6
  * Used by both the backend HTTP handlers and the frontend stores.
7
7
  */
8
- import type { Edge } from "./graph.js";
8
+ import type { Edge, InputMode, OutputCorrelation } from "./graph.js";
9
+ import type { NodeEffect } from "./platform.js";
10
+ /**
11
+ * Discriminator `mimeType` marking an {@link ImageRef} whose `data` holds raw,
12
+ * straight-alpha RGBA8 pixels (`length === width * height * 4`) rather than an
13
+ * encoded image. GPU image ops emit this so an adjacent GPU op can skip the
14
+ * codec; it's the in-flight format, lazily encoded to a real image at any
15
+ * boundary that needs portable bytes (client, storage, file save, Python
16
+ * bridge). Code that reads `data` must go through the shared decode/encode
17
+ * helpers, never assume it is already PNG.
18
+ */
19
+ export declare const RAW_RGBA_MIME = "image/x-raw-rgba";
20
+ /**
21
+ * In-flight GPU-texture image (browser only). `texture` holds a live
22
+ * `GPUTexture` (typed `unknown` here so protocol stays WebGPU-free). It exists
23
+ * only inside the in-browser runner for the duration of one run — it is never
24
+ * serialized: a `GPUTexture` can't cross `postMessage`, reach the server, or
25
+ * persist. It MUST be resolved to a CPU backing (raw-RGBA / encoded) at every
26
+ * boundary (see the runner's transport resolve step). Lets chained shader nodes
27
+ * keep the image on the GPU instead of reading back / re-uploading per hop.
28
+ */
29
+ export declare const GPU_TEXTURE_MIME = "image/x-gpu-texture";
30
+ /**
31
+ * Preview-bitmap image (browser only). `bitmap` holds a decoded `ImageBitmap`
32
+ * (typed `unknown` here so protocol stays DOM-free). The in-browser runner's
33
+ * worker emits this as its transport format for GPU/raw image outputs: an
34
+ * `ImageBitmap` is transferable across `postMessage` (zero-copy) and paints
35
+ * straight onto a canvas, so the live preview skips the PNG encode → base64 →
36
+ * `<img>` decode round-trip entirely. Like the other in-flight formats it never
37
+ * reaches the server or persists; boundaries that need portable bytes derive
38
+ * them from the bitmap via the shared image codec helpers.
39
+ */
40
+ export declare const BITMAP_IMAGE_MIME = "image/x-imagebitmap";
9
41
  export interface ImageRef {
10
42
  type: "image";
11
43
  uri?: string;
@@ -16,7 +48,56 @@ export interface ImageRef {
16
48
  mimeType?: string;
17
49
  width?: number;
18
50
  height?: number;
51
+ /**
52
+ * Live `GPUTexture` for the {@link GPU_TEXTURE_MIME} in-flight backing
53
+ * (browser, single run, never serialized). Typed `unknown` to keep protocol
54
+ * WebGPU-free.
55
+ */
56
+ texture?: unknown;
57
+ /**
58
+ * Decoded `ImageBitmap` for the {@link BITMAP_IMAGE_MIME} backing (browser
59
+ * only, never serialized). Typed `unknown` to keep protocol DOM-free.
60
+ */
61
+ bitmap?: unknown;
62
+ /**
63
+ * Monotonic per-bitmap counter. Two distinct `ImageBitmap`s are
64
+ * indistinguishable to structural equality (no enumerable own properties), so
65
+ * memoized consumers compare this to detect a new frame.
66
+ */
67
+ bitmapVersion?: number;
19
68
  }
69
+ /**
70
+ * True when `value` is an in-flight raw-RGBA image (see {@link RAW_RGBA_MIME}):
71
+ * `data` is a `Uint8Array` of `width * height * 4` straight-alpha bytes.
72
+ */
73
+ export declare function isRawRgbaImage(value: unknown): value is ImageRef & {
74
+ data: Uint8Array;
75
+ width: number;
76
+ height: number;
77
+ };
78
+ /**
79
+ * True when `value` is an in-flight GPU-texture image (see
80
+ * {@link GPU_TEXTURE_MIME}): a live `GPUTexture` plus its dimensions. Only ever
81
+ * valid inside the in-browser runner; callers at a serialize/CPU boundary must
82
+ * resolve it to bytes first.
83
+ */
84
+ export declare function isGpuTextureImage(value: unknown): value is ImageRef & {
85
+ texture: object;
86
+ width: number;
87
+ height: number;
88
+ };
89
+ /**
90
+ * True when `value` is a preview-bitmap image (see {@link BITMAP_IMAGE_MIME}):
91
+ * a live `ImageBitmap` plus its dimensions. Structural check only (no
92
+ * `instanceof ImageBitmap`) so it works in DOM-free environments and tests.
93
+ */
94
+ export declare function isBitmapImage(value: unknown): value is ImageRef & {
95
+ bitmap: object;
96
+ width: number;
97
+ height: number;
98
+ };
99
+ /** True when `value` is any in-flight image (raw-RGBA CPU buffer, GPU texture, or preview bitmap). */
100
+ export declare function isInFlightImage(value: unknown): boolean;
20
101
  export interface AudioRef {
21
102
  type: "audio";
22
103
  uri?: string;
@@ -86,6 +167,56 @@ export interface AssetRef {
86
167
  data?: unknown;
87
168
  metadata?: Record<string, unknown> | null;
88
169
  }
170
+ /**
171
+ * Reference to a persisted sketch (image document), editable in the
172
+ * sketch editor and passable between workflow nodes.
173
+ */
174
+ export interface SketchRef {
175
+ type: "sketch";
176
+ /** Id of the persisted image document holding the sketch. */
177
+ id?: string | null;
178
+ /** Optional inline sketch document payload. */
179
+ data?: unknown;
180
+ }
181
+ /**
182
+ * Reference to a persisted timeline sequence, editable in the
183
+ * timeline editor and passable between workflow nodes.
184
+ */
185
+ export interface TimelineRef {
186
+ type: "timeline";
187
+ /** Id of the persisted timeline sequence. */
188
+ id?: string | null;
189
+ /** Optional inline timeline document payload. */
190
+ data?: unknown;
191
+ }
192
+ /**
193
+ * Reference to a persisted script (text-owns-audio document), editable in the
194
+ * script editor and passable between workflow nodes.
195
+ */
196
+ export interface ScriptRef {
197
+ type: "script";
198
+ /** Id of the persisted script. */
199
+ id?: string | null;
200
+ /** Optional inline script document payload. */
201
+ data?: unknown;
202
+ }
203
+ /**
204
+ * Reference to a persisted storyboard, editable in the board editor and
205
+ * passable between workflow nodes. Mirrors ScriptRef / TimelineRef.
206
+ */
207
+ export interface StoryboardRef {
208
+ type: "storyboard";
209
+ /** Id of the persisted storyboard. */
210
+ id?: string | null;
211
+ /** Optional inline StoryboardDocument, for tests and the debug harness. */
212
+ data?: unknown;
213
+ /**
214
+ * Set only by a node that created or derived the row in this run. A ref from
215
+ * the picker or from LoadStoryboard never carries it, so a batch cannot
216
+ * write the board a person approved.
217
+ */
218
+ writable?: boolean;
219
+ }
89
220
  export interface WorkflowRef {
90
221
  type: "workflow_ref";
91
222
  id: string;
@@ -176,21 +307,41 @@ export interface CalendarEvent {
176
307
  export interface Asset {
177
308
  id: string;
178
309
  user_id: string;
179
- parent_id: string;
310
+ parent_id: string | null;
180
311
  name: string;
181
312
  content_type: string;
182
313
  size?: number | null;
183
314
  duration?: number | null;
184
315
  metadata?: Record<string, unknown> | null;
316
+ /** Sketch document that backs this image asset, if any. */
317
+ sketch_document_id?: string | null;
185
318
  workflow_id: string | null;
186
319
  node_id?: string | null;
187
320
  job_id?: string | null;
321
+ /** Source timeline a video was rendered from, if any. */
322
+ timeline_id?: string | null;
323
+ /** The project the asset belongs to; `"default"` for none. */
324
+ project_id?: string;
325
+ /** The user starred this asset. */
326
+ favorite?: boolean;
188
327
  created_at: string;
189
328
  /** URL to download/access the asset (computed by API) */
190
329
  get_url: string | null;
191
330
  /** URL for thumbnail image (computed by API) */
192
331
  thumb_url: string | null;
193
332
  etag?: string | null;
333
+ /**
334
+ * Set only on an asset that references a local file in place: true when
335
+ * that file is missing or changed since import or relink.
336
+ */
337
+ offline?: boolean;
338
+ /**
339
+ * Set only on a video asset on a local server: the state of its all-intra
340
+ * preview proxy.
341
+ */
342
+ proxy_status?: "none" | "queued" | "running" | "ready" | "failed";
343
+ /** The preview proxy's URL while `proxy_status` is `ready`. Preview only. */
344
+ proxy_url?: string | null;
194
345
  }
195
346
  export interface AssetList {
196
347
  next: string | null;
@@ -208,6 +359,7 @@ export interface WorkflowGraph {
208
359
  export interface Workflow {
209
360
  id: string;
210
361
  user_id?: string;
362
+ project_id?: string;
211
363
  name: string;
212
364
  tool_name?: string | null;
213
365
  description: string;
@@ -217,7 +369,12 @@ export interface Workflow {
217
369
  graph: WorkflowGraph;
218
370
  input_schema?: Record<string, unknown> | null;
219
371
  output_schema?: Record<string, unknown> | null;
220
- settings?: Record<string, string | number | boolean | null> | null;
372
+ /**
373
+ * Client-owned settings bag. Values nest: the guided creation flow keeps a
374
+ * `setup` record here (PRD § 11.5), and the zod schema and the models layer
375
+ * have always typed it `Record<string, unknown>`.
376
+ */
377
+ settings?: Record<string, unknown> | null;
221
378
  package_name?: string | null;
222
379
  path?: string | null;
223
380
  run_mode?: string | null;
@@ -225,6 +382,8 @@ export interface Workflow {
225
382
  required_providers?: string[] | null;
226
383
  required_models?: string[] | null;
227
384
  html_app?: string | null;
385
+ /** App-builder document (Puck layout + bindings): `{ version, data }`. */
386
+ app_doc?: Record<string, unknown> | null;
228
387
  receive_clipboard?: boolean | null;
229
388
  access: string;
230
389
  created_at: string;
@@ -237,6 +396,7 @@ export interface WorkflowList {
237
396
  }
238
397
  export interface WorkflowRequest {
239
398
  name: string;
399
+ project_id?: string;
240
400
  tool_name?: string | null;
241
401
  package_name?: string | null;
242
402
  path?: string | null;
@@ -244,10 +404,16 @@ export interface WorkflowRequest {
244
404
  tags?: string[] | null;
245
405
  access: string;
246
406
  graph?: WorkflowGraph;
247
- settings?: Record<string, string | number | boolean | null> | null;
407
+ /**
408
+ * Client-owned settings bag. Values nest: the guided creation flow keeps a
409
+ * `setup` record here (PRD § 11.5), and the zod schema and the models layer
410
+ * have always typed it `Record<string, unknown>`.
411
+ */
412
+ settings?: Record<string, unknown> | null;
248
413
  run_mode?: string | null;
249
414
  workspace_id?: string | null;
250
415
  html_app?: string | null;
416
+ app_doc?: Record<string, unknown> | null;
251
417
  thumbnail?: string | null;
252
418
  thumbnail_url?: string | null;
253
419
  receive_clipboard?: boolean | null;
@@ -264,6 +430,9 @@ export interface WorkflowToolList {
264
430
  export interface Thread {
265
431
  id: string;
266
432
  user_id: string;
433
+ project_id?: string;
434
+ /** Workflow this conversation belongs to, or null for global chat. */
435
+ workflow_id?: string | null;
267
436
  title: string | null;
268
437
  created_at: string;
269
438
  updated_at: string;
@@ -275,6 +444,8 @@ export interface ThreadList {
275
444
  }
276
445
  export interface ThreadCreateRequest {
277
446
  title?: string;
447
+ workflow_id?: string | null;
448
+ project_id?: string;
278
449
  }
279
450
  export interface ThreadUpdateRequest {
280
451
  title: string;
@@ -321,6 +492,12 @@ export interface ToolCall {
321
492
  result?: unknown;
322
493
  step_id?: string | null;
323
494
  message?: string | null;
495
+ /**
496
+ * Gemini's encrypted reasoning state for the call. Gemini 3 rejects a
497
+ * request whose history replays a function call without it, so the value
498
+ * has to survive the trip through the database.
499
+ */
500
+ thought_signature?: string | null;
324
501
  }
325
502
  /**
326
503
  * Media-generation request metadata attached to chat messages.
@@ -330,7 +507,7 @@ export interface ToolCall {
330
507
  * returned as MessageImageContent / MessageVideoContent in the assistant
331
508
  * message and stored via the asset service.
332
509
  */
333
- export type MediaGenerationMode = "chat" | "image" | "image_edit" | "video" | "image_to_video" | "audio" | "audio_to_video" | "retake" | "extend" | "motion_control";
510
+ export type MediaGenerationMode = "chat" | "image" | "image_edit" | "video" | "image_to_video" | "reference_to_video" | "audio" | "music" | "audio_to_video" | "retake" | "extend" | "motion_control";
334
511
  export interface MediaGenerationRequest {
335
512
  mode: MediaGenerationMode;
336
513
  /** Provider id (e.g. "fal_ai", "openai", "replicate"). */
@@ -347,7 +524,7 @@ export interface MediaGenerationRequest {
347
524
  resolution?: string | null;
348
525
  /** Number of variations to generate (images). */
349
526
  variations?: number | null;
350
- /** Duration in seconds (video). */
527
+ /** Requested duration in seconds (video or music). */
351
528
  duration?: number | null;
352
529
  /** Voice id for text-to-speech. */
353
530
  voice?: string | null;
@@ -361,6 +538,12 @@ export interface MediaGenerationRequest {
361
538
  num_inference_steps?: number | null;
362
539
  /** Source image asset id (image_edit / image_to_video). */
363
540
  source_asset_id?: string | null;
541
+ /**
542
+ * Keep the audio of the first reference *video* instead of whatever the
543
+ * model would synthesize (reference_to_video). Only some models take it;
544
+ * the provider rejects the request when the selected one does not.
545
+ */
546
+ use_reference_video_audio?: boolean | null;
364
547
  /** Extra provider-specific params. */
365
548
  extras?: Record<string, unknown> | null;
366
549
  }
@@ -383,21 +566,41 @@ export interface Message {
383
566
  graph?: Record<string, unknown> | null;
384
567
  tools?: string[] | null;
385
568
  collections?: string[] | null;
386
- agent_mode?: boolean | null;
387
569
  /**
388
- * When `agent_mode` is true, selects which planner the server uses:
389
- * - `"multi"` — TaskPlanner builds a parallel task DAG (one LLM step per
390
- * task) and ParallelTaskExecutor runs them.
391
- * - `"graph"` — GraphPlanner builds a workflow graph of nodes
392
- * (TextToImage, AgentStep, etc.) and AgentWorkflowRunner executes it.
393
- *
394
- * If omitted, the server picks a default ("graph" when a NodeRegistry is
395
- * wired, otherwise "multi") for backward compatibility.
570
+ * Permission mode for the chat turn. Governs whether the agent's tool calls
571
+ * run automatically, ask for approval, or are blocked:
572
+ * - `"plan"` — read-only; actionable tools are blocked.
573
+ * - `"default"` — read tools auto-run; actions require approval.
574
+ * - `"auto"` — routine work runs unattended; a code action declared high
575
+ * risk (deletes, publishes, spends) asks for approval once.
576
+ * Omitted defaults to `"default"`.
577
+ */
578
+ permission_mode?: "plan" | "default" | "auto" | null;
579
+ /**
580
+ * The read-only `run_search` fan-out primitive — a `run_search` tool next to
581
+ * `run_subtask` whose child loop is restricted to read-only tools and cannot
582
+ * spawn further work. Enabled by default (omitted / `true`); send `false` to
583
+ * remove it from the toolbelt.
396
584
  */
397
- agent_planner?: "multi" | "graph" | null;
398
- help_mode?: boolean | null;
585
+ enable_read_only_search?: boolean | null;
586
+ /**
587
+ * Context-specific system-prompt addendum supplied by the originating surface
588
+ * (e.g. the App Builder's build-an-app-UI guidance, an editor's assistant
589
+ * instructions). The server layers it after the base chat system prompt — it
590
+ * augments, never replaces. Omit for plain chat.
591
+ */
592
+ system_prompt?: string | null;
399
593
  agent_execution_id?: string | null;
400
594
  execution_event_type?: string | null;
595
+ /**
596
+ * The tool_call_id of the enclosing `run_subtask` / `run_search` call when
597
+ * this message was produced inside a sub-agent. Null at the chat root. The
598
+ * chat renders such messages inside the spawning call's card rather than in
599
+ * the main timeline.
600
+ */
601
+ parent_tool_call_id?: string | null;
602
+ /** Sub-agent recursion depth: 0 at the chat root, 1 inside run_subtask. */
603
+ subtask_depth?: number | null;
401
604
  workflow_target?: string | null;
402
605
  created_at?: string | null;
403
606
  /**
@@ -407,6 +610,57 @@ export interface Message {
407
610
  * headers (model, variation count, resolution) alongside the output assets.
408
611
  */
409
612
  media_generation?: MediaGenerationRequest | null;
613
+ /**
614
+ * What the user is looking at when they send the message. The server renders
615
+ * this into the system prompt so the agent knows which documents are open and
616
+ * which one has focus, and can pass their ids to the `ui_*` tools — every one
617
+ * of which requires an explicit document id rather than acting on whatever
618
+ * editor happens to be mounted.
619
+ */
620
+ ui_context?: UiContext | null;
621
+ }
622
+ /** A document open in the workspace, addressable by the `ui_*` tools. */
623
+ export interface UiDocumentRef {
624
+ type: UiSurfaceType;
625
+ /**
626
+ * The document's id: `image_documents.id` for sketch, `timeline_sequences.id`
627
+ * for timeline, `storyboards.id`, `scripts.id`, `js_scripts.id` for
628
+ * `jsscript`, `workflows.id` for `workflow`, and `applications.id` for
629
+ * `app`.
630
+ */
631
+ id: string;
632
+ title?: string | null;
633
+ }
634
+ export type UiSurfaceType = "workflow" | "sketch" | "timeline" | "game" | "storyboard" | "script" | "jsscript" | "app" | "chat";
635
+ /**
636
+ * Chat surface that sent a turn. Distinct from {@link UiContext.focused}: the
637
+ * user can have a sketch tab focused and still send from workspace chat.
638
+ */
639
+ export type ChatSource = "workspace_chat" | "workflow_canvas" | "sketch_assistant" | "timeline_assistant" | "game_assistant" | "storyboard_assistant" | "script_assistant" | "jsscript_assistant" | "app_builder" | "code_assistant" | "text_editor" | "model3d_assistant";
640
+ export interface UiRunReference {
641
+ run_id: string;
642
+ span_id?: string;
643
+ }
644
+ export interface UiContext {
645
+ /** The surface the user is currently looking at. */
646
+ focused?: UiDocumentRef | null;
647
+ /** Every document open in the workspace, including the focused one. */
648
+ open?: UiDocumentRef[] | null;
649
+ /** What is selected inside the focused document, when anything is. */
650
+ selection?: {
651
+ node_ids?: string[] | null;
652
+ clip_ids?: string[] | null;
653
+ layer_ids?: string[] | null;
654
+ shot_ids?: string[] | null;
655
+ line_ids?: string[] | null;
656
+ component_ids?: string[] | null;
657
+ entity_ids?: string[] | null;
658
+ behavior_index?: number | null;
659
+ } | null;
660
+ /** Chat surface the user typed in. The server names it in the system prompt. */
661
+ source?: ChatSource | null;
662
+ /** The stored run the user asked the agent to inspect. Readers enforce ownership. */
663
+ run?: UiRunReference | null;
410
664
  }
411
665
  export interface MessageCreateRequest {
412
666
  role?: string;
@@ -442,26 +696,97 @@ export interface OutputSlot {
442
696
  name: string;
443
697
  stream: boolean;
444
698
  }
699
+ /** FAL.ai list price on generated FAL nodes (API / index JSON uses snake_case). */
700
+ export interface FalUnitPricing {
701
+ endpoint_id: string;
702
+ unit_price: number;
703
+ billing_unit: string;
704
+ currency: string;
705
+ }
445
706
  export interface NodeMetadata {
446
707
  title: string;
447
708
  description: string;
448
709
  namespace: string;
449
710
  node_type: string;
450
711
  layout: string;
712
+ /**
713
+ * Node body renderer. "content_card" opts the node into the media/text-forward
714
+ * ContentCardBody (variant derived from the primary output type). Absent or
715
+ * "default" uses the generic input/output body.
716
+ */
717
+ body?: string;
451
718
  properties: Property[];
452
719
  outputs: OutputSlot[];
720
+ primary_output?: string;
453
721
  recommended_models: UnifiedModel[];
454
- basic_fields: string[];
722
+ inline_fields?: string[];
723
+ input_fields?: string[];
455
724
  required_settings: string[];
456
- is_dynamic: boolean;
725
+ supports_dynamic_inputs: boolean;
457
726
  is_streaming_output: boolean;
458
- expose_as_tool: boolean;
727
+ input_mode?: InputMode;
728
+ output_correlation?: Record<string, OutputCorrelation>;
459
729
  supports_dynamic_outputs: boolean;
730
+ /**
731
+ * Types a user may pick for a dynamic input slot on this node. Unset means
732
+ * the full type palette.
733
+ */
734
+ allowed_dynamic_slot_types?: PropertyTypeMetadata[];
735
+ /**
736
+ * Per-type cache lifetime for partial runs (seconds, or the `"forever"`
737
+ * sentinel — never `Infinity`, which JSON-serializes to `null`). Only
738
+ * consulted for Computed nodes; unset / `0` means never reuse.
739
+ */
740
+ cache_ttl?: number | "forever";
741
+ /**
742
+ * What running the node does to the world: "pure" (output depends only on
743
+ * inputs), "read" (reads external state, changes nothing), "write" (mutates
744
+ * observable state), "external" (leaves the system). Reactive runs — a
745
+ * mini-app slider drag, a live preview — may traverse "pure" and "read" only;
746
+ * anything else needs an explicit run. Absent is treated as "external".
747
+ */
748
+ effect?: NodeEffect;
749
+ /**
750
+ * Opt-in: re-running the node with identical inputs is safe. Absent means
751
+ * unsafe — cost tracking cannot see external writes, so an unclassified node
752
+ * must not gain `retry` by omission. See docs/workflow-supervisor-design.md §5.3.
753
+ */
754
+ retry_safe?: boolean;
755
+ /**
756
+ * List properties that keep their static items when an edge feeds them:
757
+ * the node receives the connected items followed by the static ones.
758
+ */
759
+ append_static_inputs?: string[];
460
760
  model_packs?: ModelPack[];
761
+ fal_unit_pricing?: FalUnitPricing | null;
762
+ /** When true, the node remains runnable but is hidden from default discovery. */
763
+ deprecated?: boolean;
764
+ /**
765
+ * When true, the node is registered and runnable but filtered out of
766
+ * discovery UIs (palette, search) entirely — for internal nodes a user never
767
+ * adds by hand (e.g. agent-runner-inserted steps).
768
+ */
769
+ hidden?: boolean;
770
+ /** Preferred replacement node_type when deprecated is true. */
771
+ replaced_by?: string;
772
+ /**
773
+ * Deployment platforms this node supports. See `@nodetool-ai/protocol`'s
774
+ * Platform type. Absent or empty values are treated as ["node"].
775
+ */
776
+ platforms?: readonly ("node" | "workers" | "edge" | "browser")[];
461
777
  }
462
778
  export interface IndexResponse {
463
779
  node_metadata: NodeMetadata[];
464
780
  }
781
+ /** API-transport form of a typed dynamic input slot declaration. */
782
+ export interface DynamicSlotMetadata {
783
+ type: PropertyTypeMetadata;
784
+ description?: string;
785
+ default?: unknown;
786
+ required?: boolean;
787
+ min?: number;
788
+ max?: number;
789
+ }
465
790
  export interface Node {
466
791
  id: string;
467
792
  parent_id?: string | null;
@@ -469,8 +794,8 @@ export interface Node {
469
794
  data?: unknown;
470
795
  ui_properties?: unknown;
471
796
  dynamic_properties?: Record<string, unknown>;
797
+ dynamic_inputs?: Record<string, DynamicSlotMetadata>;
472
798
  dynamic_outputs?: Record<string, PropertyTypeMetadata>;
473
- sync_mode: string;
474
799
  [key: string]: unknown;
475
800
  }
476
801
  export interface Graph {
@@ -480,18 +805,18 @@ export interface Graph {
480
805
  export interface JobResponse {
481
806
  id: string;
482
807
  user_id: string;
808
+ project_id?: string;
483
809
  job_type: string;
484
810
  workflow_id: string;
485
811
  status: string | null;
812
+ /** Human-readable run title (workflow name, or node name for a single-node run). */
813
+ name?: string | null;
486
814
  error?: string | null;
487
815
  started_at?: string | null;
488
816
  finished_at?: string | null;
489
817
  cost?: number | null;
490
- suspended_node_id?: string | null;
491
- suspension_reason?: string | null;
492
818
  error_message?: string | null;
493
- execution_strategy?: string | null;
494
- is_resumable?: boolean;
819
+ outputs?: Record<string, unknown> | null;
495
820
  etag?: string | null;
496
821
  }
497
822
  export interface JobListResponse {
@@ -500,10 +825,14 @@ export interface JobListResponse {
500
825
  }
501
826
  export interface RunJobRequest {
502
827
  type?: "run_job_request";
828
+ traceparent?: string;
503
829
  job_id?: string | null;
830
+ /** Human-readable title for the run (workflow name, or node name for a single-node run). */
831
+ job_name?: string | null;
504
832
  job_type?: string;
505
833
  execution_strategy?: string;
506
834
  workflow_id: string;
835
+ project_id?: string | null;
507
836
  user_id?: string;
508
837
  auth_token?: string;
509
838
  api_url?: string | null;
@@ -512,17 +841,223 @@ export interface RunJobRequest {
512
841
  env?: Record<string, unknown>;
513
842
  graph?: WorkflowGraph;
514
843
  explicit_types?: Record<string, string> | boolean;
844
+ /** Suppress provisional completed events and emit one terminal result snapshot. */
845
+ require_terminal_result?: boolean;
846
+ /** Additive execution relaxations. Omitted values preserve current behavior. */
847
+ execution_options?: RunJobExecutionOptions;
848
+ /**
849
+ * Supervise this run: a node invocation that fails after its own error
850
+ * handling escalates to a supervisor agent, which answers with a verdict.
851
+ * **Off unless the client asks for it** — supervision sends failure context
852
+ * (node inputs, error text) to a model, so it is never implied by anything
853
+ * else on the request. See docs/workflow-supervisor-design.md.
854
+ */
855
+ supervise?: boolean;
856
+ /** Supervisor configuration. Ignored unless `supervise` is true. */
857
+ supervisor?: SupervisorRunOptions;
515
858
  resource_limits?: ResourceLimits | null;
859
+ /**
860
+ * The mini app this run belongs to, when it was started by one. Present only
861
+ * for app runs; the server checks the app's spend budget before creating the
862
+ * job and settles the ledger when it finishes.
863
+ */
864
+ application_id?: string | null;
865
+ app_run_id?: string;
866
+ instance_id?: string;
867
+ /** Released version the run executes against; absent for a draft run. */
868
+ application_version?: number | null;
869
+ /**
870
+ * The app operation this run implements, when the app declares more than the
871
+ * one. The ledger stores it alongside the invocation, so per-operation
872
+ * governance reports ("which button costs the money") can be built from real
873
+ * runs. Optional: a client that omits it still runs, its rows just carry no
874
+ * operation.
875
+ */
876
+ operation_id?: string | null;
877
+ /**
878
+ * Wake-up payload for a trigger-driven run: the trigger node whose event
879
+ * started this job, the durable input's id (for idempotent ack), and the
880
+ * event payload itself. Present only for runs started by the trigger
881
+ * dispatcher; absent for interactive/live-test runs.
882
+ */
883
+ trigger_event?: {
884
+ node_id: string;
885
+ payload: unknown;
886
+ input_id: string;
887
+ } | null;
888
+ }
889
+ /**
890
+ * What a run's supervisor is allowed to be and to spend. Every field is
891
+ * optional: a host that only sets `supervise: true` gets its configured
892
+ * defaults (provider/model) and the kernel's default bounds.
893
+ */
894
+ export interface SupervisorRunOptions {
895
+ /** Provider id for the supervising model; defaults to the server's. */
896
+ provider?: string;
897
+ /** Model id for the supervising model; defaults to the server's. */
898
+ model?: string;
899
+ /** Decisions the supervisor may make in this run. */
900
+ max_decisions?: number;
901
+ /** Retries per `(node, invocation)`. */
902
+ max_retries_per_node?: number;
903
+ /** Per-decision wall clock, in ms. */
904
+ decision_timeout_ms?: number;
905
+ /** Dollar ceiling on supervision for the whole run. */
906
+ cost_cap_usd?: number;
907
+ }
908
+ export interface RunJobExecutionOptions {
909
+ persistence?: "job" | "session";
910
+ event_detail?: "full" | "outputs" | "terminal";
911
+ asset_persistence?: "auto" | "temporary";
516
912
  }
517
913
  export interface ResourceLimits {
518
914
  max_jobs?: number;
519
915
  max_duration_seconds?: number;
520
916
  }
521
- export type Provider = "openai" | "anthropic" | "google" | "ollama" | "huggingface" | "replicate" | "fal" | "elevenlabs" | "aime" | "local" | "empty" | string;
917
+ /**
918
+ * Canonical registry of model-provider identifiers.
919
+ *
920
+ * This is the single source of truth for provider IDs across the monorepo:
921
+ * the runtime provider registry, the cost calculator, and the web model menu
922
+ * all derive from here instead of re-spelling the literals. Keys are stable
923
+ * UPPER_SNAKE references; values are the wire identifiers stored on models and
924
+ * passed to `getProvider()`.
925
+ *
926
+ * Adding a provider? Add it here first, then register it in
927
+ * `@nodetool-ai/runtime`'s provider index.
928
+ */
929
+ export declare const PROVIDER_IDS: {
930
+ readonly OPENAI: "openai";
931
+ readonly CODEX: "codex";
932
+ readonly ANTHROPIC: "anthropic";
933
+ readonly CLAUDE_AGENT_SDK: "claude_agent_sdk";
934
+ readonly DREAMINA: "dreamina";
935
+ readonly GEMINI: "gemini";
936
+ readonly GROQ: "groq";
937
+ readonly MISTRAL: "mistral";
938
+ readonly MOONSHOT: "moonshot";
939
+ readonly MINIMAX: "minimax";
940
+ readonly DEEPSEEK: "deepseek";
941
+ readonly XAI: "xai";
942
+ readonly COHERE: "cohere";
943
+ readonly OPENROUTER: "openrouter";
944
+ readonly REQUESTY: "requesty";
945
+ readonly TOGETHER: "together";
946
+ readonly ALIBABA: "alibaba";
947
+ readonly CEREBRAS: "cerebras";
948
+ readonly EVOLINK: "evolink";
949
+ readonly GMI: "gmi";
950
+ readonly META: "meta";
951
+ readonly NODETOOL: "nodetool";
952
+ readonly REPLICATE: "replicate";
953
+ readonly FAL_AI: "fal_ai";
954
+ readonly KIE: "kie";
955
+ readonly COMFY_CLOUD: "comfy_cloud";
956
+ readonly ELEVENLABS: "elevenlabs";
957
+ readonly TOPAZ: "topaz";
958
+ readonly REVE: "reve";
959
+ readonly ATLASCLOUD: "atlascloud";
960
+ readonly HIGGSFIELD: "higgsfield";
961
+ readonly USEAPI: "useapi";
962
+ readonly AKI: "aki";
963
+ readonly MESHY: "meshy";
964
+ readonly RODIN: "rodin";
965
+ readonly VOYAGE: "voyage";
966
+ readonly JINA: "jina";
967
+ readonly OLLAMA: "ollama";
968
+ readonly LMSTUDIO: "lmstudio";
969
+ readonly LLAMA_CPP: "llama_cpp";
970
+ readonly NODE_LLAMA_CPP: "node_llama_cpp";
971
+ readonly WHISPER_CPP: "whisper_cpp";
972
+ readonly WHISPER_CPP_SERVER: "whisper_cpp_server";
973
+ readonly VLLM: "vllm";
974
+ readonly HUGGINGFACE: "huggingface";
975
+ readonly TRANSFORMERS_JS: "transformers_js";
976
+ readonly FAKE: "fake";
977
+ };
978
+ /** A provider identifier known to the registry above. */
979
+ export type KnownProviderId = (typeof PROVIDER_IDS)[keyof typeof PROVIDER_IDS];
980
+ /**
981
+ * Codex (ChatGPT-backed) OAuth constants, shared across packages so the login
982
+ * flow (`websocket`), the token resolver (`models`), and the provider
983
+ * (`runtime`) all agree without a cross-layer dependency. The client is the
984
+ * published public Codex CLI app — there is no client secret.
985
+ */
986
+ export declare const CODEX_OAUTH_CLIENT_ID = "app_EMoamEEZ73f0CkXaXp7hrann";
987
+ export declare const CODEX_OAUTH_AUTHORIZATION_URL = "https://auth.openai.com/oauth/authorize";
988
+ export declare const CODEX_OAUTH_TOKEN_URL = "https://auth.openai.com/oauth/token";
989
+ export declare const CODEX_OAUTH_REVOCATION_URL = "https://auth.openai.com/oauth/revoke";
990
+ export declare const CODEX_OAUTH_SCOPES: readonly ["openid", "profile", "email", "offline_access"];
991
+ /** ChatGPT backend base URL the Codex routes live under. */
992
+ export declare const CODEX_BACKEND_BASE_URL = "https://chatgpt.com/backend-api/codex";
993
+ /** `originator` header the ChatGPT backend expects from a Codex client. */
994
+ export declare const CODEX_DEFAULT_ORIGINATOR = "codex_cli_rs";
995
+ /**
996
+ * Codex client version presented to the ChatGPT backend. The backend gates its
997
+ * model allowlist on this: too-old a version yields an empty `/models` list and
998
+ * "model not supported" on `/responses`. Must be ≥ the served models'
999
+ * `minimal_client_version`. Override via `CODEX_CLIENT_VERSION`.
1000
+ */
1001
+ export declare const CODEX_CLIENT_VERSION = "0.155.0";
1002
+ /** Loopback port/path the Codex client's redirect URI is registered against. */
1003
+ export declare const CODEX_CALLBACK_PORT = 1455;
1004
+ export declare const CODEX_CALLBACK_PATH = "/auth/callback";
1005
+ /**
1006
+ * Claude Code OAuth constants — the same public client and endpoints the
1007
+ * `claude` CLI uses to sign in with a Claude subscription. Shared across
1008
+ * packages so the login flow (`websocket`, `cli`) and the credential store
1009
+ * (`runtime`) agree. The client is public: there is no client secret.
1010
+ *
1011
+ * The resulting tokens are written to the Claude Agent SDK's own credential
1012
+ * file, so a NodeTool login and a `claude login` are interchangeable.
1013
+ */
1014
+ export declare const CLAUDE_CODE_OAUTH_CLIENT_ID = "9d1c250a-e61b-44d9-88ed-5944d1962f5e";
1015
+ /** Consumer sign-in page (claude.ai subscription accounts). */
1016
+ export declare const CLAUDE_CODE_OAUTH_AUTHORIZATION_URL = "https://claude.com/cai/oauth/authorize";
1017
+ /** Console sign-in page (API-billed org accounts). */
1018
+ export declare const CLAUDE_CODE_OAUTH_CONSOLE_AUTHORIZATION_URL = "https://platform.claude.com/oauth/authorize";
1019
+ export declare const CLAUDE_CODE_OAUTH_TOKEN_URL = "https://platform.claude.com/v1/oauth/token";
1020
+ /**
1021
+ * Redirect used when no loopback listener is reachable from the browser. The
1022
+ * console shows the user a `<code>#<state>` string to paste back.
1023
+ */
1024
+ export declare const CLAUDE_CODE_OAUTH_MANUAL_REDIRECT_URL = "https://platform.claude.com/oauth/code/callback";
1025
+ /**
1026
+ * The loopback redirect the `claude` CLI registers: a fixed port, like the
1027
+ * Codex client's 1455, so the browser lands on the same address whichever
1028
+ * tool started the login. A `claude login` already holding the port is the
1029
+ * one expected collision.
1030
+ */
1031
+ export declare const CLAUDE_CODE_CALLBACK_PORT = 54545;
1032
+ export declare const CLAUDE_CODE_CALLBACK_PATH = "/callback";
1033
+ /** Scopes requested at login. */
1034
+ export declare const CLAUDE_CODE_OAUTH_SCOPES: readonly ["org:create_api_key", "user:profile", "user:inference", "user:sessions:claude_code", "user:mcp_servers", "user:file_upload"];
1035
+ /**
1036
+ * Scopes sent on refresh. Narrower than the login set — the CLI drops
1037
+ * `org:create_api_key`, which is only needed to mint an API key at login.
1038
+ */
1039
+ export declare const CLAUDE_CODE_OAUTH_REFRESH_SCOPES: readonly ["user:profile", "user:inference", "user:sessions:claude_code", "user:mcp_servers", "user:file_upload"];
1040
+ /** Profile endpoint used to label the account (plan tier, email). */
1041
+ export declare const CLAUDE_CODE_OAUTH_PROFILE_URL = "https://api.anthropic.com/api/oauth/profile";
1042
+ /**
1043
+ * Provider identifier. Resolves to a known {@link PROVIDER_IDS} value with
1044
+ * editor autocompletion, but still accepts arbitrary strings — dynamic
1045
+ * sub-providers (OpenRouter, HuggingFace inference) and Python-bridged
1046
+ * providers (MLX, local HF) supply IDs that aren't enumerated above. The
1047
+ * `(string & {})` arm preserves the literal hints while keeping the type open.
1048
+ */
1049
+ export type ProviderId = KnownProviderId | (string & {});
1050
+ /**
1051
+ * Alias of {@link ProviderId}. Retained as the field-type name used across the
1052
+ * model interfaces below (`LanguageModel.provider`, `ProviderInfo.provider`, …).
1053
+ */
1054
+ export type Provider = ProviderId;
522
1055
  export type InferenceProvider = "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "replicate" | "sambanova" | "scaleway" | "together" | "zai-org" | string;
523
1056
  export interface ProviderInfo {
524
1057
  provider: Provider;
525
1058
  capabilities: string[];
1059
+ access?: "in_process" | "local_service" | "remote_api";
1060
+ display_name?: string;
526
1061
  }
527
1062
  export interface LanguageModel {
528
1063
  type: string;
@@ -554,6 +1089,9 @@ export interface ImageModel {
554
1089
  provider: Provider;
555
1090
  path?: string | null;
556
1091
  supported_tasks?: string[];
1092
+ /** Per-model option constraints derived from the provider manifest. */
1093
+ resolutions?: string[] | null;
1094
+ aspect_ratios?: string[] | null;
557
1095
  }
558
1096
  export interface TTSModel {
559
1097
  type: string;
@@ -563,6 +1101,40 @@ export interface TTSModel {
563
1101
  path?: string | null;
564
1102
  voices?: string[];
565
1103
  selected_voice?: string;
1104
+ /** Optional feature flags such as voice_cloning or language_selection. */
1105
+ capabilities?: string[];
1106
+ languages?: string[];
1107
+ sample_rate?: number | null;
1108
+ requires_reference_text?: boolean;
1109
+ adapter?: ModelAdapterInfo | null;
1110
+ execution?: ModelExecutionAvailability | null;
1111
+ }
1112
+ export interface ModelArtifactRef {
1113
+ source: "huggingface";
1114
+ repo_id: string;
1115
+ revision?: string | null;
1116
+ path?: string | null;
1117
+ /** The files the adapter loads, when it needs only part of the repository. */
1118
+ allow_patterns?: string[] | null;
1119
+ /** The model type the download service fetches the artifact with, e.g. `tjs.feature_extraction`. */
1120
+ model_type?: string | null;
1121
+ }
1122
+ export interface ModelAdapterInfo {
1123
+ state: "installed" | "missing_dependency" | "unknown";
1124
+ reason_code?: string | null;
1125
+ reason?: string | null;
1126
+ artifact_ref?: ModelArtifactRef | null;
1127
+ }
1128
+ export interface ModelExecutionAvailability {
1129
+ /** User-facing execution origin, kept separate from cache/download state. */
1130
+ kind: "local" | "server" | "api" | "unavailable";
1131
+ state: "ready" | "download_required" | "unavailable";
1132
+ label: "Local" | "Server" | "API" | "Unavailable";
1133
+ reason?: string | null;
1134
+ /** Stable execution location before the client resolves co-location. */
1135
+ execution_site?: "nodetool_host" | "provider" | null;
1136
+ /** Runtime or provider name used to build a location-aware explanation. */
1137
+ runtime_name?: string | null;
566
1138
  }
567
1139
  export interface ASRModel {
568
1140
  type: string;
@@ -571,6 +1143,34 @@ export interface ASRModel {
571
1143
  provider: Provider;
572
1144
  path?: string | null;
573
1145
  }
1146
+ export interface RerankModel {
1147
+ type: string;
1148
+ id: string;
1149
+ name: string;
1150
+ provider: Provider;
1151
+ }
1152
+ export interface MusicModel {
1153
+ type: string;
1154
+ id: string;
1155
+ name: string;
1156
+ provider: Provider;
1157
+ path?: string | null;
1158
+ supported_tasks?: string[];
1159
+ }
1160
+ /**
1161
+ * A model that rewrites a recording rather than generating one: voice
1162
+ * conversion, isolation and denoise, stem separation, audio super-resolution.
1163
+ * Backs the `audio_to_audio` capability and the `audio_to_audio_model`
1164
+ * property type.
1165
+ */
1166
+ export interface AudioToAudioModel {
1167
+ type: string;
1168
+ id: string;
1169
+ name: string;
1170
+ provider: Provider;
1171
+ path?: string | null;
1172
+ supported_tasks?: string[];
1173
+ }
574
1174
  export interface VideoModel {
575
1175
  type: string;
576
1176
  id: string;
@@ -578,6 +1178,10 @@ export interface VideoModel {
578
1178
  provider: Provider;
579
1179
  path?: string | null;
580
1180
  supported_tasks?: string[];
1181
+ /** Per-model option constraints derived from the provider manifest. */
1182
+ durations?: number[] | null;
1183
+ resolutions?: string[] | null;
1184
+ aspect_ratios?: string[] | null;
581
1185
  }
582
1186
  export interface LlamaModel {
583
1187
  repo_id: string;
@@ -602,7 +1206,7 @@ export interface HuggingFaceModel {
602
1206
  export interface UnifiedModel {
603
1207
  id: string;
604
1208
  name: string;
605
- provider?: Provider;
1209
+ provider?: Provider | null;
606
1210
  type?: string | null;
607
1211
  repo_id?: string | null;
608
1212
  path?: string | null;
@@ -629,6 +1233,24 @@ export interface UnifiedModel {
629
1233
  supports_tools?: boolean | null;
630
1234
  /** Voice IDs supported by this model. Only meaningful for TTS models. */
631
1235
  voices?: string[] | null;
1236
+ /** Optional feature flags advertised by TTS models. */
1237
+ capabilities?: string[] | null;
1238
+ /** Supported language codes/names advertised by TTS models. */
1239
+ languages?: string[] | null;
1240
+ /** Native output sample rate advertised by a TTS model. */
1241
+ sample_rate?: number | null;
1242
+ /** Whether cloning requires a transcript of the reference recording. */
1243
+ requires_reference_text?: boolean | null;
1244
+ /** Local execution adapter facts; independent from downloaded/cache state. */
1245
+ adapter?: ModelAdapterInfo | null;
1246
+ /** Resolved execution status for presentation and selection gating. */
1247
+ execution?: ModelExecutionAvailability | null;
1248
+ /** Allowed clip durations (seconds). Only meaningful for video models. */
1249
+ durations?: number[] | null;
1250
+ /** Allowed output resolutions (e.g. "720p"). Only meaningful for video models. */
1251
+ resolutions?: string[] | null;
1252
+ /** Allowed aspect ratios (e.g. "16:9"). Only meaningful for video models. */
1253
+ aspect_ratios?: string[] | null;
632
1254
  }
633
1255
  export interface ModelPack {
634
1256
  id?: string;
@@ -735,6 +1357,7 @@ export interface CollectionCreate {
735
1357
  export interface WorkspaceResponse {
736
1358
  id: string;
737
1359
  user_id: string;
1360
+ project_id?: string;
738
1361
  name: string;
739
1362
  path: string;
740
1363
  is_default?: boolean;
@@ -750,6 +1373,7 @@ export interface WorkspaceListResponse {
750
1373
  export interface WorkspaceCreateRequest {
751
1374
  name: string;
752
1375
  description?: string;
1376
+ project_id?: string;
753
1377
  }
754
1378
  export interface WorkspaceUpdateRequest {
755
1379
  name?: string;