@nodetool-ai/websocket 0.8.1 → 0.8.3

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 (471) hide show
  1. package/dist/.nodetool-build-stamp +1 -1
  2. package/dist/chat-turn-registry.d.ts +2 -1
  3. package/dist/chat-turn-registry.d.ts.map +1 -1
  4. package/dist/chat-turn-registry.js +8 -1
  5. package/dist/chat-turn-registry.js.map +1 -1
  6. package/dist/collection-api.d.ts.map +1 -1
  7. package/dist/collection-api.js +41 -6
  8. package/dist/collection-api.js.map +1 -1
  9. package/dist/custom-providers.d.ts.map +1 -1
  10. package/dist/custom-providers.js +6 -1
  11. package/dist/custom-providers.js.map +1 -1
  12. package/dist/error-traces.d.ts +56 -0
  13. package/dist/error-traces.d.ts.map +1 -0
  14. package/dist/error-traces.js +179 -0
  15. package/dist/error-traces.js.map +1 -0
  16. package/dist/example-workflows.d.ts.map +1 -1
  17. package/dist/example-workflows.js +6 -0
  18. package/dist/example-workflows.js.map +1 -1
  19. package/dist/fake-runtime.d.ts +41 -6
  20. package/dist/fake-runtime.d.ts.map +1 -1
  21. package/dist/fake-runtime.js +247 -16
  22. package/dist/fake-runtime.js.map +1 -1
  23. package/dist/file-api.d.ts.map +1 -1
  24. package/dist/file-api.js +6 -8
  25. package/dist/file-api.js.map +1 -1
  26. package/dist/generation-recovery.d.ts.map +1 -1
  27. package/dist/generation-recovery.js +32 -7
  28. package/dist/generation-recovery.js.map +1 -1
  29. package/dist/headless-job-runner.d.ts.map +1 -1
  30. package/dist/headless-job-runner.js +5 -1
  31. package/dist/headless-job-runner.js.map +1 -1
  32. package/dist/http-api.d.ts +3 -1
  33. package/dist/http-api.d.ts.map +1 -1
  34. package/dist/http-api.js +66 -9
  35. package/dist/http-api.js.map +1 -1
  36. package/dist/http-body-schemas.d.ts +2 -0
  37. package/dist/http-body-schemas.d.ts.map +1 -1
  38. package/dist/http-body-schemas.js +8 -1
  39. package/dist/http-body-schemas.js.map +1 -1
  40. package/dist/index.d.ts +0 -1
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.js +0 -1
  43. package/dist/index.js.map +1 -1
  44. package/dist/interrupted-jobs.d.ts +14 -0
  45. package/dist/interrupted-jobs.d.ts.map +1 -0
  46. package/dist/interrupted-jobs.js +28 -0
  47. package/dist/interrupted-jobs.js.map +1 -0
  48. package/dist/lib/admin.d.ts +7 -0
  49. package/dist/lib/admin.d.ts.map +1 -0
  50. package/dist/lib/admin.js +20 -0
  51. package/dist/lib/admin.js.map +1 -0
  52. package/dist/lib/app-debug-service.js +1 -1
  53. package/dist/lib/app-debug-service.js.map +1 -1
  54. package/dist/lib/app-instances-service.d.ts +1319 -0
  55. package/dist/lib/app-instances-service.d.ts.map +1 -0
  56. package/dist/lib/app-instances-service.js +377 -0
  57. package/dist/lib/app-instances-service.js.map +1 -0
  58. package/dist/lib/app-project-export.d.ts +12 -0
  59. package/dist/lib/app-project-export.d.ts.map +1 -0
  60. package/dist/lib/app-project-export.js +42 -0
  61. package/dist/lib/app-project-export.js.map +1 -0
  62. package/dist/lib/app-run-cancellation.d.ts +4 -0
  63. package/dist/lib/app-run-cancellation.d.ts.map +1 -0
  64. package/dist/lib/app-run-cancellation.js +28 -0
  65. package/dist/lib/app-run-cancellation.js.map +1 -0
  66. package/dist/lib/applications-service.d.ts +182 -1
  67. package/dist/lib/applications-service.d.ts.map +1 -1
  68. package/dist/lib/applications-service.js +27 -6
  69. package/dist/lib/applications-service.js.map +1 -1
  70. package/dist/lib/asset-export.d.ts +6 -2
  71. package/dist/lib/asset-export.d.ts.map +1 -1
  72. package/dist/lib/asset-export.js +15 -7
  73. package/dist/lib/asset-export.js.map +1 -1
  74. package/dist/lib/asset-paths.d.ts +7 -11
  75. package/dist/lib/asset-paths.d.ts.map +1 -1
  76. package/dist/lib/asset-paths.js +8 -56
  77. package/dist/lib/asset-paths.js.map +1 -1
  78. package/dist/lib/asset-response.d.ts.map +1 -1
  79. package/dist/lib/asset-response.js +3 -1
  80. package/dist/lib/asset-response.js.map +1 -1
  81. package/dist/lib/audio-peaks.d.ts.map +1 -1
  82. package/dist/lib/audio-peaks.js +5 -1
  83. package/dist/lib/audio-peaks.js.map +1 -1
  84. package/dist/lib/bridge.d.ts.map +1 -1
  85. package/dist/lib/bridge.js.map +1 -1
  86. package/dist/lib/cloud-profile.d.ts +10 -0
  87. package/dist/lib/cloud-profile.d.ts.map +1 -0
  88. package/dist/lib/cloud-profile.js +13 -0
  89. package/dist/lib/cloud-profile.js.map +1 -0
  90. package/dist/lib/document-model-interfaces.d.ts.map +1 -1
  91. package/dist/lib/document-model-interfaces.js +9 -8
  92. package/dist/lib/document-model-interfaces.js.map +1 -1
  93. package/dist/lib/example-apps.d.ts +9 -0
  94. package/dist/lib/example-apps.d.ts.map +1 -1
  95. package/dist/lib/example-apps.js +61 -14
  96. package/dist/lib/example-apps.js.map +1 -1
  97. package/dist/lib/http-tracing.d.ts +12 -0
  98. package/dist/lib/http-tracing.d.ts.map +1 -0
  99. package/dist/lib/http-tracing.js +81 -0
  100. package/dist/lib/http-tracing.js.map +1 -0
  101. package/dist/lib/http-user-id.d.ts +2 -0
  102. package/dist/lib/http-user-id.d.ts.map +1 -0
  103. package/dist/lib/http-user-id.js +4 -0
  104. package/dist/lib/http-user-id.js.map +1 -0
  105. package/dist/lib/json-body.d.ts +11 -0
  106. package/dist/lib/json-body.d.ts.map +1 -0
  107. package/dist/lib/json-body.js +13 -0
  108. package/dist/lib/json-body.js.map +1 -0
  109. package/dist/lib/media.d.ts +1 -6
  110. package/dist/lib/media.d.ts.map +1 -1
  111. package/dist/lib/media.js +8 -44
  112. package/dist/lib/media.js.map +1 -1
  113. package/dist/lib/public-routes.d.ts +22 -0
  114. package/dist/lib/public-routes.d.ts.map +1 -1
  115. package/dist/lib/public-routes.js +41 -0
  116. package/dist/lib/public-routes.js.map +1 -1
  117. package/dist/lib/public-workflow-share.d.ts +31 -0
  118. package/dist/lib/public-workflow-share.d.ts.map +1 -0
  119. package/dist/lib/public-workflow-share.js +88 -0
  120. package/dist/lib/public-workflow-share.js.map +1 -0
  121. package/dist/lib/python-metadata-roots.d.ts +27 -0
  122. package/dist/lib/python-metadata-roots.d.ts.map +1 -0
  123. package/dist/lib/python-metadata-roots.js +92 -0
  124. package/dist/lib/python-metadata-roots.js.map +1 -0
  125. package/dist/lib/run-trace-live-delivery.d.ts +25 -0
  126. package/dist/lib/run-trace-live-delivery.d.ts.map +1 -0
  127. package/dist/lib/run-trace-live-delivery.js +91 -0
  128. package/dist/lib/run-trace-live-delivery.js.map +1 -0
  129. package/dist/lib/runtime-detection.d.ts +1 -1
  130. package/dist/lib/runtime-detection.d.ts.map +1 -1
  131. package/dist/lib/runtime-detection.js +2 -1
  132. package/dist/lib/runtime-detection.js.map +1 -1
  133. package/dist/lib/server-auth-token.d.ts +18 -0
  134. package/dist/lib/server-auth-token.d.ts.map +1 -0
  135. package/dist/lib/server-auth-token.js +28 -0
  136. package/dist/lib/server-auth-token.js.map +1 -0
  137. package/dist/lib/test-ui-run-routes.d.ts +8 -0
  138. package/dist/lib/test-ui-run-routes.d.ts.map +1 -0
  139. package/dist/lib/test-ui-run-routes.js +42 -0
  140. package/dist/lib/test-ui-run-routes.js.map +1 -0
  141. package/dist/lib/thumbnail.d.ts.map +1 -1
  142. package/dist/lib/thumbnail.js +12 -9
  143. package/dist/lib/thumbnail.js.map +1 -1
  144. package/dist/lib/timeline-bundle.d.ts +159 -16
  145. package/dist/lib/timeline-bundle.d.ts.map +1 -1
  146. package/dist/lib/timeline-bundle.js +34 -6
  147. package/dist/lib/timeline-bundle.js.map +1 -1
  148. package/dist/lib/timeline-media-export.d.ts +18 -0
  149. package/dist/lib/timeline-media-export.d.ts.map +1 -0
  150. package/dist/lib/timeline-media-export.js +66 -0
  151. package/dist/lib/timeline-media-export.js.map +1 -0
  152. package/dist/lib/timeline-premiere-import.d.ts +24 -0
  153. package/dist/lib/timeline-premiere-import.d.ts.map +1 -0
  154. package/dist/lib/timeline-premiere-import.js +102 -0
  155. package/dist/lib/timeline-premiere-import.js.map +1 -0
  156. package/dist/lib/timeline-premiere.d.ts +38 -0
  157. package/dist/lib/timeline-premiere.d.ts.map +1 -0
  158. package/dist/lib/timeline-premiere.js +87 -0
  159. package/dist/lib/timeline-premiere.js.map +1 -0
  160. package/dist/lib/video-proxy.d.ts.map +1 -1
  161. package/dist/lib/video-proxy.js +3 -2
  162. package/dist/lib/video-proxy.js.map +1 -1
  163. package/dist/lib/workflow-service.d.ts.map +1 -1
  164. package/dist/lib/workflow-service.js +4 -1
  165. package/dist/lib/workflow-service.js.map +1 -1
  166. package/dist/mcp-agent-tools.d.ts.map +1 -1
  167. package/dist/mcp-agent-tools.js +95 -162
  168. package/dist/mcp-agent-tools.js.map +1 -1
  169. package/dist/mcp-client-config.d.ts +64 -0
  170. package/dist/mcp-client-config.d.ts.map +1 -0
  171. package/dist/mcp-client-config.js +353 -0
  172. package/dist/mcp-client-config.js.map +1 -0
  173. package/dist/mcp-server.d.ts +7 -0
  174. package/dist/mcp-server.d.ts.map +1 -1
  175. package/dist/mcp-server.js +163 -16
  176. package/dist/mcp-server.js.map +1 -1
  177. package/dist/mcp-skill-prompts.d.ts +23 -0
  178. package/dist/mcp-skill-prompts.d.ts.map +1 -0
  179. package/dist/mcp-skill-prompts.js +91 -0
  180. package/dist/mcp-skill-prompts.js.map +1 -0
  181. package/dist/mcp-tool-deps.d.ts.map +1 -1
  182. package/dist/mcp-tool-deps.js +8 -1
  183. package/dist/mcp-tool-deps.js.map +1 -1
  184. package/dist/models-api.d.ts +10 -0
  185. package/dist/models-api.d.ts.map +1 -1
  186. package/dist/models-api.js +29 -2
  187. package/dist/models-api.js.map +1 -1
  188. package/dist/node-registry-setup.d.ts +1 -1
  189. package/dist/node-registry-setup.d.ts.map +1 -1
  190. package/dist/node-registry-setup.js +21 -114
  191. package/dist/node-registry-setup.js.map +1 -1
  192. package/dist/oauth-api.d.ts.map +1 -1
  193. package/dist/oauth-api.js +45 -23
  194. package/dist/oauth-api.js.map +1 -1
  195. package/dist/openai-api.d.ts.map +1 -1
  196. package/dist/openai-api.js +10 -2
  197. package/dist/openai-api.js.map +1 -1
  198. package/dist/plugins/websocket.d.ts.map +1 -1
  199. package/dist/plugins/websocket.js +27 -59
  200. package/dist/plugins/websocket.js.map +1 -1
  201. package/dist/python-bridge-gate.d.ts +28 -0
  202. package/dist/python-bridge-gate.d.ts.map +1 -0
  203. package/dist/python-bridge-gate.js +36 -0
  204. package/dist/python-bridge-gate.js.map +1 -0
  205. package/dist/routes/app-runs.d.ts +4 -0
  206. package/dist/routes/app-runs.d.ts.map +1 -0
  207. package/dist/routes/app-runs.js +173 -0
  208. package/dist/routes/app-runs.js.map +1 -0
  209. package/dist/routes/applications.d.ts +1 -0
  210. package/dist/routes/applications.d.ts.map +1 -1
  211. package/dist/routes/applications.js +24 -0
  212. package/dist/routes/applications.js.map +1 -1
  213. package/dist/routes/assets.d.ts.map +1 -1
  214. package/dist/routes/assets.js +31 -41
  215. package/dist/routes/assets.js.map +1 -1
  216. package/dist/routes/config.d.ts.map +1 -1
  217. package/dist/routes/config.js +6 -0
  218. package/dist/routes/config.js.map +1 -1
  219. package/dist/routes/documents.d.ts.map +1 -1
  220. package/dist/routes/documents.js +24 -0
  221. package/dist/routes/documents.js.map +1 -1
  222. package/dist/routes/fal-pricing-estimate.d.ts.map +1 -1
  223. package/dist/routes/fal-pricing-estimate.js +2 -0
  224. package/dist/routes/fal-pricing-estimate.js.map +1 -1
  225. package/dist/routes/files.d.ts.map +1 -1
  226. package/dist/routes/files.js +2 -0
  227. package/dist/routes/files.js.map +1 -1
  228. package/dist/routes/games.d.ts +38 -0
  229. package/dist/routes/games.d.ts.map +1 -0
  230. package/dist/routes/games.js +158 -0
  231. package/dist/routes/games.js.map +1 -0
  232. package/dist/routes/integrations.d.ts.map +1 -1
  233. package/dist/routes/integrations.js +22 -26
  234. package/dist/routes/integrations.js.map +1 -1
  235. package/dist/routes/js-scripts.d.ts +10 -4
  236. package/dist/routes/js-scripts.d.ts.map +1 -1
  237. package/dist/routes/js-scripts.js +451 -69
  238. package/dist/routes/js-scripts.js.map +1 -1
  239. package/dist/routes/nodes.d.ts.map +1 -1
  240. package/dist/routes/nodes.js +34 -1
  241. package/dist/routes/nodes.js.map +1 -1
  242. package/dist/routes/public-shared-workflows.d.ts +16 -0
  243. package/dist/routes/public-shared-workflows.d.ts.map +1 -0
  244. package/dist/routes/public-shared-workflows.js +55 -0
  245. package/dist/routes/public-shared-workflows.js.map +1 -0
  246. package/dist/routes/run-spans.d.ts +4 -0
  247. package/dist/routes/run-spans.d.ts.map +1 -0
  248. package/dist/routes/run-spans.js +53 -0
  249. package/dist/routes/run-spans.js.map +1 -0
  250. package/dist/routes/storage.d.ts.map +1 -1
  251. package/dist/routes/storage.js +2 -0
  252. package/dist/routes/storage.js.map +1 -1
  253. package/dist/routes/storyboards.d.ts.map +1 -1
  254. package/dist/routes/storyboards.js +6 -3
  255. package/dist/routes/storyboards.js.map +1 -1
  256. package/dist/routes/timeline-fonts.d.ts +22 -0
  257. package/dist/routes/timeline-fonts.d.ts.map +1 -1
  258. package/dist/routes/timeline-fonts.js +138 -7
  259. package/dist/routes/timeline-fonts.js.map +1 -1
  260. package/dist/routes/timelines.d.ts +8 -4
  261. package/dist/routes/timelines.d.ts.map +1 -1
  262. package/dist/routes/timelines.js +209 -16
  263. package/dist/routes/timelines.js.map +1 -1
  264. package/dist/screenshot-docs-seed.d.ts +24 -0
  265. package/dist/screenshot-docs-seed.d.ts.map +1 -0
  266. package/dist/screenshot-docs-seed.js +414 -0
  267. package/dist/screenshot-docs-seed.js.map +1 -0
  268. package/dist/screenshot-projects.d.ts.map +1 -1
  269. package/dist/screenshot-projects.js +9 -9
  270. package/dist/screenshot-projects.js.map +1 -1
  271. package/dist/screenshot-server.js +114 -20
  272. package/dist/screenshot-server.js.map +1 -1
  273. package/dist/sdk/sdk-model-download-service.d.ts.map +1 -1
  274. package/dist/sdk/sdk-model-download-service.js +5 -2
  275. package/dist/sdk/sdk-model-download-service.js.map +1 -1
  276. package/dist/server.js +173 -109
  277. package/dist/server.js.map +1 -1
  278. package/dist/session/app-run-fold.d.ts +7 -0
  279. package/dist/session/app-run-fold.d.ts.map +1 -0
  280. package/dist/session/app-run-fold.js +45 -0
  281. package/dist/session/app-run-fold.js.map +1 -0
  282. package/dist/session/chat-prompt.d.ts.map +1 -1
  283. package/dist/session/chat-prompt.js +37 -15
  284. package/dist/session/chat-prompt.js.map +1 -1
  285. package/dist/session/chat-turn.d.ts +11 -0
  286. package/dist/session/chat-turn.d.ts.map +1 -1
  287. package/dist/session/chat-turn.js +270 -116
  288. package/dist/session/chat-turn.js.map +1 -1
  289. package/dist/session/commands.d.ts +14 -0
  290. package/dist/session/commands.d.ts.map +1 -1
  291. package/dist/session/commands.js +119 -14
  292. package/dist/session/commands.js.map +1 -1
  293. package/dist/session/inference.d.ts +30 -2
  294. package/dist/session/inference.d.ts.map +1 -1
  295. package/dist/session/inference.js +165 -16
  296. package/dist/session/inference.js.map +1 -1
  297. package/dist/session/job-execution.d.ts +7 -1
  298. package/dist/session/job-execution.d.ts.map +1 -1
  299. package/dist/session/job-execution.js +329 -42
  300. package/dist/session/job-execution.js.map +1 -1
  301. package/dist/session/model-interfaces.d.ts +2 -1
  302. package/dist/session/model-interfaces.d.ts.map +1 -1
  303. package/dist/session/model-interfaces.js +1 -0
  304. package/dist/session/model-interfaces.js.map +1 -1
  305. package/dist/storage-api.d.ts +0 -4
  306. package/dist/storage-api.d.ts.map +1 -1
  307. package/dist/storage-api.js +3 -26
  308. package/dist/storage-api.js.map +1 -1
  309. package/dist/storage-retention.d.ts +5 -0
  310. package/dist/storage-retention.d.ts.map +1 -1
  311. package/dist/storage-retention.js +22 -1
  312. package/dist/storage-retention.js.map +1 -1
  313. package/dist/test-ui-server.d.ts +11 -0
  314. package/dist/test-ui-server.d.ts.map +1 -1
  315. package/dist/test-ui-server.js +84 -6
  316. package/dist/test-ui-server.js.map +1 -1
  317. package/dist/timeline-generation-recovery.d.ts +4 -0
  318. package/dist/timeline-generation-recovery.d.ts.map +1 -0
  319. package/dist/timeline-generation-recovery.js +72 -0
  320. package/dist/timeline-generation-recovery.js.map +1 -0
  321. package/dist/triggers/dispatcher.d.ts.map +1 -1
  322. package/dist/triggers/dispatcher.js +26 -6
  323. package/dist/triggers/dispatcher.js.map +1 -1
  324. package/dist/triggers/file-watch.d.ts.map +1 -1
  325. package/dist/triggers/file-watch.js +35 -19
  326. package/dist/triggers/file-watch.js.map +1 -1
  327. package/dist/triggers/scheduler.d.ts.map +1 -1
  328. package/dist/triggers/scheduler.js +7 -5
  329. package/dist/triggers/scheduler.js.map +1 -1
  330. package/dist/triggers/stores.js +8 -8
  331. package/dist/triggers/stores.js.map +1 -1
  332. package/dist/triggers/webhook-route.js +2 -2
  333. package/dist/triggers/webhook-route.js.map +1 -1
  334. package/dist/trpc/error-formatter.d.ts.map +1 -1
  335. package/dist/trpc/error-formatter.js +2 -1
  336. package/dist/trpc/error-formatter.js.map +1 -1
  337. package/dist/trpc/error-logging.d.ts +10 -0
  338. package/dist/trpc/error-logging.d.ts.map +1 -1
  339. package/dist/trpc/error-logging.js +21 -0
  340. package/dist/trpc/error-logging.js.map +1 -1
  341. package/dist/trpc/router.d.ts +100 -31028
  342. package/dist/trpc/router.d.ts.map +1 -1
  343. package/dist/trpc/router.js +12 -3
  344. package/dist/trpc/router.js.map +1 -1
  345. package/dist/trpc/routers/app-instances.d.ts +2332 -0
  346. package/dist/trpc/routers/app-instances.d.ts.map +1 -0
  347. package/dist/trpc/routers/app-instances.js +52 -0
  348. package/dist/trpc/routers/app-instances.js.map +1 -0
  349. package/dist/trpc/routers/app-runs.d.ts +1120 -0
  350. package/dist/trpc/routers/app-runs.d.ts.map +1 -0
  351. package/dist/trpc/routers/app-runs.js +28 -0
  352. package/dist/trpc/routers/app-runs.js.map +1 -0
  353. package/dist/trpc/routers/applications.d.ts +1102 -0
  354. package/dist/trpc/routers/applications.d.ts.map +1 -1
  355. package/dist/trpc/routers/applications.js +5 -2
  356. package/dist/trpc/routers/applications.js.map +1 -1
  357. package/dist/trpc/routers/assets.d.ts +18 -0
  358. package/dist/trpc/routers/assets.d.ts.map +1 -1
  359. package/dist/trpc/routers/assets.js +20 -5
  360. package/dist/trpc/routers/assets.js.map +1 -1
  361. package/dist/trpc/routers/bug-reports.d.ts +33 -0
  362. package/dist/trpc/routers/bug-reports.d.ts.map +1 -0
  363. package/dist/trpc/routers/bug-reports.js +69 -0
  364. package/dist/trpc/routers/bug-reports.js.map +1 -0
  365. package/dist/trpc/routers/collections.d.ts.map +1 -1
  366. package/dist/trpc/routers/collections.js +16 -10
  367. package/dist/trpc/routers/collections.js.map +1 -1
  368. package/dist/trpc/routers/credits.d.ts.map +1 -1
  369. package/dist/trpc/routers/credits.js +11 -1
  370. package/dist/trpc/routers/credits.js.map +1 -1
  371. package/dist/trpc/routers/documents.d.ts.map +1 -1
  372. package/dist/trpc/routers/documents.js +8 -2
  373. package/dist/trpc/routers/documents.js.map +1 -1
  374. package/dist/trpc/routers/error-traces.d.ts +132 -0
  375. package/dist/trpc/routers/error-traces.d.ts.map +1 -0
  376. package/dist/trpc/routers/error-traces.js +118 -0
  377. package/dist/trpc/routers/error-traces.js.map +1 -0
  378. package/dist/trpc/routers/extension.d.ts +3 -3
  379. package/dist/trpc/routers/extension.d.ts.map +1 -1
  380. package/dist/trpc/routers/extension.js +13 -9
  381. package/dist/trpc/routers/extension.js.map +1 -1
  382. package/dist/trpc/routers/gameDraftHistory.d.ts +7 -0
  383. package/dist/trpc/routers/gameDraftHistory.d.ts.map +1 -0
  384. package/dist/trpc/routers/gameDraftHistory.js +40 -0
  385. package/dist/trpc/routers/gameDraftHistory.js.map +1 -0
  386. package/dist/trpc/routers/games.d.ts +59974 -5414
  387. package/dist/trpc/routers/games.d.ts.map +1 -1
  388. package/dist/trpc/routers/games.js +531 -136
  389. package/dist/trpc/routers/games.js.map +1 -1
  390. package/dist/trpc/routers/jobs.d.ts +42 -0
  391. package/dist/trpc/routers/jobs.d.ts.map +1 -1
  392. package/dist/trpc/routers/jobs.js +89 -4
  393. package/dist/trpc/routers/jobs.js.map +1 -1
  394. package/dist/trpc/routers/js-scripts.d.ts.map +1 -1
  395. package/dist/trpc/routers/js-scripts.js +18 -2
  396. package/dist/trpc/routers/js-scripts.js.map +1 -1
  397. package/dist/trpc/routers/mcp-config.d.ts +3 -1
  398. package/dist/trpc/routers/mcp-config.d.ts.map +1 -1
  399. package/dist/trpc/routers/mcp-config.js +46 -208
  400. package/dist/trpc/routers/mcp-config.js.map +1 -1
  401. package/dist/trpc/routers/messages.d.ts +10 -0
  402. package/dist/trpc/routers/messages.d.ts.map +1 -1
  403. package/dist/trpc/routers/messages.js +16 -2
  404. package/dist/trpc/routers/messages.js.map +1 -1
  405. package/dist/trpc/routers/models.d.ts +130 -0
  406. package/dist/trpc/routers/models.d.ts.map +1 -1
  407. package/dist/trpc/routers/models.js +119 -61
  408. package/dist/trpc/routers/models.js.map +1 -1
  409. package/dist/trpc/routers/packs.d.ts.map +1 -1
  410. package/dist/trpc/routers/packs.js +18 -4
  411. package/dist/trpc/routers/packs.js.map +1 -1
  412. package/dist/trpc/routers/projects.d.ts +66 -2
  413. package/dist/trpc/routers/projects.d.ts.map +1 -1
  414. package/dist/trpc/routers/projects.js +19 -2
  415. package/dist/trpc/routers/projects.js.map +1 -1
  416. package/dist/trpc/routers/runs.d.ts +472 -0
  417. package/dist/trpc/routers/runs.d.ts.map +1 -0
  418. package/dist/trpc/routers/runs.js +40 -0
  419. package/dist/trpc/routers/runs.js.map +1 -0
  420. package/dist/trpc/routers/settings.d.ts +3 -0
  421. package/dist/trpc/routers/settings.d.ts.map +1 -1
  422. package/dist/trpc/routers/settings.js +32 -5
  423. package/dist/trpc/routers/settings.js.map +1 -1
  424. package/dist/trpc/routers/sketch.d.ts +44 -0
  425. package/dist/trpc/routers/sketch.d.ts.map +1 -1
  426. package/dist/trpc/routers/sketch.js +2 -2
  427. package/dist/trpc/routers/sketch.js.map +1 -1
  428. package/dist/trpc/routers/storyboards.d.ts +903 -1
  429. package/dist/trpc/routers/storyboards.d.ts.map +1 -1
  430. package/dist/trpc/routers/storyboards.js +8 -5
  431. package/dist/trpc/routers/storyboards.js.map +1 -1
  432. package/dist/trpc/routers/threads.d.ts.map +1 -1
  433. package/dist/trpc/routers/threads.js +8 -2
  434. package/dist/trpc/routers/threads.js.map +1 -1
  435. package/dist/trpc/routers/timeline.d.ts +647 -63
  436. package/dist/trpc/routers/timeline.d.ts.map +1 -1
  437. package/dist/trpc/routers/timeline.js +193 -4
  438. package/dist/trpc/routers/timeline.js.map +1 -1
  439. package/dist/trpc/routers/triggers.d.ts.map +1 -1
  440. package/dist/trpc/routers/triggers.js +18 -3
  441. package/dist/trpc/routers/triggers.js.map +1 -1
  442. package/dist/trpc/routers/users.d.ts +3 -2
  443. package/dist/trpc/routers/users.d.ts.map +1 -1
  444. package/dist/trpc/routers/users.js +25 -27
  445. package/dist/trpc/routers/users.js.map +1 -1
  446. package/dist/trpc/routers/worker.d.ts +10 -9
  447. package/dist/trpc/routers/worker.d.ts.map +1 -1
  448. package/dist/trpc/routers/worker.js +40 -16
  449. package/dist/trpc/routers/worker.js.map +1 -1
  450. package/dist/trpc/routers/workflows.d.ts +202 -3
  451. package/dist/trpc/routers/workflows.d.ts.map +1 -1
  452. package/dist/trpc/routers/workflows.js +72 -12
  453. package/dist/trpc/routers/workflows.js.map +1 -1
  454. package/dist/trpc/sandbox-coverage.d.ts.map +1 -1
  455. package/dist/trpc/sandbox-coverage.js +119 -0
  456. package/dist/trpc/sandbox-coverage.js.map +1 -1
  457. package/dist/websocket-client-session.d.ts +4 -2
  458. package/dist/websocket-client-session.d.ts.map +1 -1
  459. package/dist/websocket-client-session.js +23 -3
  460. package/dist/websocket-client-session.js.map +1 -1
  461. package/dist/worker-settings-env.d.ts +23 -0
  462. package/dist/worker-settings-env.d.ts.map +1 -0
  463. package/dist/worker-settings-env.js +47 -0
  464. package/dist/worker-settings-env.js.map +1 -0
  465. package/dist/workflow-interface-service.d.ts +7 -0
  466. package/dist/workflow-interface-service.d.ts.map +1 -1
  467. package/package.json +58 -41
  468. package/dist/extension-cdp-bridge.d.ts +0 -85
  469. package/dist/extension-cdp-bridge.d.ts.map +0 -1
  470. package/dist/extension-cdp-bridge.js +0 -163
  471. package/dist/extension-cdp-bridge.js.map +0 -1
@@ -0,0 +1,1120 @@
1
+ export declare const appRunsRouter: import("@trpc/server").TRPCBuiltRouter<{
2
+ ctx: import("../context.js").Context;
3
+ meta: object;
4
+ errorShape: import("../error-formatter.js").ApiErrorShape;
5
+ transformer: false;
6
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
7
+ reserve: import("@trpc/server").TRPCMutationProcedure<{
8
+ input: {
9
+ instance_id: string;
10
+ operation_id: string;
11
+ invocation_id: string;
12
+ };
13
+ output: {
14
+ id: string;
15
+ user_id: string;
16
+ application_id: string | null;
17
+ instance_id: string;
18
+ invocation_id: string;
19
+ operation_id: string;
20
+ version: number | null;
21
+ origin: "agent" | "cli" | "debug" | "public" | "ui";
22
+ status: "cancelled" | "completed" | "failed" | "running";
23
+ snapshot: {
24
+ document: {
25
+ schemaVersion: number;
26
+ ui: {
27
+ [x: string]: unknown;
28
+ root: {
29
+ props?: Record<string, unknown> | undefined;
30
+ };
31
+ content: unknown[];
32
+ zones?: Record<string, unknown[]> | undefined;
33
+ };
34
+ operations: {
35
+ id: string;
36
+ name: string;
37
+ workflowId: string;
38
+ workflowVersion?: number | undefined;
39
+ target?: {
40
+ kind: "workflow";
41
+ workflowId: string;
42
+ workflowVersion?: number | undefined;
43
+ } | {
44
+ kind: "script";
45
+ scriptId: string;
46
+ scriptVersion: number;
47
+ } | undefined;
48
+ inputs: Record<string, {
49
+ from: "widget";
50
+ } | {
51
+ from: "variable";
52
+ variableId: string;
53
+ } | {
54
+ from: "constant";
55
+ value?: unknown;
56
+ } | {
57
+ from: "resource";
58
+ resourceBindingId: string;
59
+ }>;
60
+ outputs: Record<string, {
61
+ to: "display";
62
+ } | {
63
+ to: "variable";
64
+ variableId: string;
65
+ }>;
66
+ policy: "parallel" | "queue" | "replace";
67
+ timeoutMs?: number | undefined;
68
+ }[];
69
+ resources: {
70
+ id: string;
71
+ name: string;
72
+ kind: "asset" | "sketch" | "storyboard" | "timeline";
73
+ scope: {
74
+ projectId?: string | undefined;
75
+ fixedId?: string | undefined;
76
+ };
77
+ operations: ("create" | "delete" | "read" | "update")[];
78
+ }[];
79
+ variables: {
80
+ id: string;
81
+ name: string;
82
+ type?: {
83
+ type: string;
84
+ optional?: boolean | undefined;
85
+ } | null | undefined;
86
+ default?: unknown;
87
+ scope: "instance" | "user";
88
+ persist: boolean;
89
+ }[];
90
+ theme?: {
91
+ id: string;
92
+ } | undefined;
93
+ recipe?: {
94
+ schemaVersion: 1;
95
+ slug: string;
96
+ category?: string | undefined;
97
+ tags?: string[] | undefined;
98
+ inputs: {
99
+ id: string;
100
+ label: string;
101
+ kind: "asset" | "audio" | "boolean" | "color" | "entity" | "image" | "number" | "storyboard" | "text" | "timeline" | "video";
102
+ required: boolean;
103
+ description?: string | undefined;
104
+ choices?: {
105
+ value: string;
106
+ title: string;
107
+ description?: string | undefined;
108
+ image?: string | undefined;
109
+ }[] | undefined;
110
+ }[];
111
+ defaults?: Record<string, unknown> | undefined;
112
+ creativeStrategy?: {
113
+ objective?: string | undefined;
114
+ structure?: string | undefined;
115
+ direction?: string | undefined;
116
+ aspectRatio?: "16:9" | "1:1" | "4:5" | "9:16" | undefined;
117
+ shots?: {
118
+ id: string;
119
+ title: string;
120
+ durationSeconds: number;
121
+ elements: {
122
+ id: string;
123
+ inputId?: string | undefined;
124
+ kind: "asset" | "shape" | "text";
125
+ role: "cta" | "decorative" | "headline" | "logo" | "price" | "product";
126
+ direction?: string | undefined;
127
+ frame?: {
128
+ box: [number, number, number, number];
129
+ fit?: "contain" | "cover" | undefined;
130
+ align?: {
131
+ x?: "center" | "end" | "start" | undefined;
132
+ y?: "center" | "end" | "start" | undefined;
133
+ } | undefined;
134
+ clip?: boolean | undefined;
135
+ } | undefined;
136
+ typography?: {
137
+ size?: number | undefined;
138
+ weight?: 400 | 500 | 600 | 700 | undefined;
139
+ align?: "center" | "left" | "right" | undefined;
140
+ maxLines?: number | undefined;
141
+ } | undefined;
142
+ lock?: ("crop" | "position" | "scale")[] | undefined;
143
+ limits?: {
144
+ x?: number | undefined;
145
+ y?: number | undefined;
146
+ scale?: number | undefined;
147
+ } | undefined;
148
+ style?: {
149
+ fill?: string | undefined;
150
+ stroke?: string | undefined;
151
+ strokeWidth?: number | undefined;
152
+ cornerRadius?: number | undefined;
153
+ } | undefined;
154
+ fallback?: {
155
+ prompt: string;
156
+ } | undefined;
157
+ }[];
158
+ reviewRules?: string[] | undefined;
159
+ }[] | undefined;
160
+ reviewRules?: string[] | undefined;
161
+ } | undefined;
162
+ preservationRules?: {
163
+ inputId: string;
164
+ policy: "exact_asset" | "exact_color" | "exact_text";
165
+ allowedTransformations?: ("composite" | "crop" | "mask" | "opacity" | "position" | "rotate" | "scale")[] | undefined;
166
+ }[] | undefined;
167
+ mediaPolicy?: {
168
+ defaultStrategy?: "generated_video" | "hybrid" | "still_motion_graphics" | undefined;
169
+ allowGeneratedVideo?: boolean | undefined;
170
+ } | undefined;
171
+ operations: {
172
+ id: string;
173
+ bindingId: string;
174
+ intent: string;
175
+ version?: number | undefined;
176
+ strategy?: "agentic" | "deterministic" | undefined;
177
+ model?: {
178
+ provider: string;
179
+ id: string;
180
+ } | undefined;
181
+ }[];
182
+ outputs: {
183
+ id: string;
184
+ kind: "asset" | "storyboard" | "timeline" | "value";
185
+ binding?: string | undefined;
186
+ label?: string | undefined;
187
+ }[];
188
+ presentation?: {
189
+ layout?: string | undefined;
190
+ groups?: {
191
+ id: string;
192
+ title: string;
193
+ inputIds: string[];
194
+ }[] | undefined;
195
+ advancedInputs?: string[] | undefined;
196
+ } | undefined;
197
+ marketing?: {
198
+ shortDescription?: string | undefined;
199
+ thumbnailAssetId?: string | undefined;
200
+ } | undefined;
201
+ } | undefined;
202
+ };
203
+ workflow_graphs: Record<string, {
204
+ nodes: {
205
+ [x: string]: unknown;
206
+ id: string;
207
+ type: string;
208
+ parent_id?: string | null | undefined;
209
+ data?: unknown;
210
+ ui_properties?: unknown;
211
+ dynamic_properties?: Record<string, unknown> | undefined;
212
+ dynamic_outputs?: Record<string, unknown> | undefined;
213
+ }[];
214
+ edges: {
215
+ [x: string]: unknown;
216
+ id?: string | null | undefined;
217
+ source: string;
218
+ sourceHandle: string;
219
+ target: string;
220
+ targetHandle: string;
221
+ ui_properties?: Record<string, string> | null | undefined;
222
+ edge_type?: string | undefined;
223
+ }[];
224
+ links?: {
225
+ id: string;
226
+ source: string;
227
+ target: string;
228
+ label?: string | null | undefined;
229
+ kind?: string | null | undefined;
230
+ }[] | undefined;
231
+ }>;
232
+ script_documents: Record<string, {
233
+ schemaVersion: 1;
234
+ description: string;
235
+ code: string;
236
+ inputs: {
237
+ name: string;
238
+ type: string;
239
+ }[];
240
+ outputs: {
241
+ name: string;
242
+ type: string;
243
+ }[];
244
+ secrets: string[];
245
+ timeoutSeconds: number;
246
+ tests: {
247
+ name: string;
248
+ inputs: Record<string, unknown>;
249
+ inputStreams?: Record<string, unknown[]> | undefined;
250
+ expect?: Record<string, unknown> | undefined;
251
+ expectedStreamed?: {
252
+ name: string;
253
+ value: unknown;
254
+ }[] | undefined;
255
+ }[];
256
+ palette?: {
257
+ category: string;
258
+ } | undefined;
259
+ }>;
260
+ } | null;
261
+ inputs: Record<string, unknown> | null;
262
+ outputs: Record<string, unknown> | null;
263
+ documents: {
264
+ kind: string;
265
+ id: string;
266
+ }[] | null;
267
+ instance_revision: number;
268
+ trace_id: string;
269
+ root_span_id: string | null;
270
+ execution_started_at: string | null;
271
+ known_llm_usd: number | null;
272
+ error: string | null;
273
+ estimated_usd: number;
274
+ actual_usd: number | null;
275
+ state_conflict: number;
276
+ content_expired: number;
277
+ created_at: string;
278
+ settled_at: string | null;
279
+ };
280
+ meta: object;
281
+ }>;
282
+ get: import("@trpc/server").TRPCQueryProcedure<{
283
+ input: {
284
+ id: string;
285
+ };
286
+ output: {
287
+ id: string;
288
+ user_id: string;
289
+ application_id: string | null;
290
+ instance_id: string;
291
+ invocation_id: string;
292
+ operation_id: string;
293
+ version: number | null;
294
+ origin: "agent" | "cli" | "debug" | "public" | "ui";
295
+ status: "cancelled" | "completed" | "failed" | "running";
296
+ snapshot: {
297
+ document: {
298
+ schemaVersion: number;
299
+ ui: {
300
+ [x: string]: unknown;
301
+ root: {
302
+ props?: Record<string, unknown> | undefined;
303
+ };
304
+ content: unknown[];
305
+ zones?: Record<string, unknown[]> | undefined;
306
+ };
307
+ operations: {
308
+ id: string;
309
+ name: string;
310
+ workflowId: string;
311
+ workflowVersion?: number | undefined;
312
+ target?: {
313
+ kind: "workflow";
314
+ workflowId: string;
315
+ workflowVersion?: number | undefined;
316
+ } | {
317
+ kind: "script";
318
+ scriptId: string;
319
+ scriptVersion: number;
320
+ } | undefined;
321
+ inputs: Record<string, {
322
+ from: "widget";
323
+ } | {
324
+ from: "variable";
325
+ variableId: string;
326
+ } | {
327
+ from: "constant";
328
+ value?: unknown;
329
+ } | {
330
+ from: "resource";
331
+ resourceBindingId: string;
332
+ }>;
333
+ outputs: Record<string, {
334
+ to: "display";
335
+ } | {
336
+ to: "variable";
337
+ variableId: string;
338
+ }>;
339
+ policy: "parallel" | "queue" | "replace";
340
+ timeoutMs?: number | undefined;
341
+ }[];
342
+ resources: {
343
+ id: string;
344
+ name: string;
345
+ kind: "asset" | "sketch" | "storyboard" | "timeline";
346
+ scope: {
347
+ projectId?: string | undefined;
348
+ fixedId?: string | undefined;
349
+ };
350
+ operations: ("create" | "delete" | "read" | "update")[];
351
+ }[];
352
+ variables: {
353
+ id: string;
354
+ name: string;
355
+ type?: {
356
+ type: string;
357
+ optional?: boolean | undefined;
358
+ } | null | undefined;
359
+ default?: unknown;
360
+ scope: "instance" | "user";
361
+ persist: boolean;
362
+ }[];
363
+ theme?: {
364
+ id: string;
365
+ } | undefined;
366
+ recipe?: {
367
+ schemaVersion: 1;
368
+ slug: string;
369
+ category?: string | undefined;
370
+ tags?: string[] | undefined;
371
+ inputs: {
372
+ id: string;
373
+ label: string;
374
+ kind: "asset" | "audio" | "boolean" | "color" | "entity" | "image" | "number" | "storyboard" | "text" | "timeline" | "video";
375
+ required: boolean;
376
+ description?: string | undefined;
377
+ choices?: {
378
+ value: string;
379
+ title: string;
380
+ description?: string | undefined;
381
+ image?: string | undefined;
382
+ }[] | undefined;
383
+ }[];
384
+ defaults?: Record<string, unknown> | undefined;
385
+ creativeStrategy?: {
386
+ objective?: string | undefined;
387
+ structure?: string | undefined;
388
+ direction?: string | undefined;
389
+ aspectRatio?: "16:9" | "1:1" | "4:5" | "9:16" | undefined;
390
+ shots?: {
391
+ id: string;
392
+ title: string;
393
+ durationSeconds: number;
394
+ elements: {
395
+ id: string;
396
+ inputId?: string | undefined;
397
+ kind: "asset" | "shape" | "text";
398
+ role: "cta" | "decorative" | "headline" | "logo" | "price" | "product";
399
+ direction?: string | undefined;
400
+ frame?: {
401
+ box: [number, number, number, number];
402
+ fit?: "contain" | "cover" | undefined;
403
+ align?: {
404
+ x?: "center" | "end" | "start" | undefined;
405
+ y?: "center" | "end" | "start" | undefined;
406
+ } | undefined;
407
+ clip?: boolean | undefined;
408
+ } | undefined;
409
+ typography?: {
410
+ size?: number | undefined;
411
+ weight?: 400 | 500 | 600 | 700 | undefined;
412
+ align?: "center" | "left" | "right" | undefined;
413
+ maxLines?: number | undefined;
414
+ } | undefined;
415
+ lock?: ("crop" | "position" | "scale")[] | undefined;
416
+ limits?: {
417
+ x?: number | undefined;
418
+ y?: number | undefined;
419
+ scale?: number | undefined;
420
+ } | undefined;
421
+ style?: {
422
+ fill?: string | undefined;
423
+ stroke?: string | undefined;
424
+ strokeWidth?: number | undefined;
425
+ cornerRadius?: number | undefined;
426
+ } | undefined;
427
+ fallback?: {
428
+ prompt: string;
429
+ } | undefined;
430
+ }[];
431
+ reviewRules?: string[] | undefined;
432
+ }[] | undefined;
433
+ reviewRules?: string[] | undefined;
434
+ } | undefined;
435
+ preservationRules?: {
436
+ inputId: string;
437
+ policy: "exact_asset" | "exact_color" | "exact_text";
438
+ allowedTransformations?: ("composite" | "crop" | "mask" | "opacity" | "position" | "rotate" | "scale")[] | undefined;
439
+ }[] | undefined;
440
+ mediaPolicy?: {
441
+ defaultStrategy?: "generated_video" | "hybrid" | "still_motion_graphics" | undefined;
442
+ allowGeneratedVideo?: boolean | undefined;
443
+ } | undefined;
444
+ operations: {
445
+ id: string;
446
+ bindingId: string;
447
+ intent: string;
448
+ version?: number | undefined;
449
+ strategy?: "agentic" | "deterministic" | undefined;
450
+ model?: {
451
+ provider: string;
452
+ id: string;
453
+ } | undefined;
454
+ }[];
455
+ outputs: {
456
+ id: string;
457
+ kind: "asset" | "storyboard" | "timeline" | "value";
458
+ binding?: string | undefined;
459
+ label?: string | undefined;
460
+ }[];
461
+ presentation?: {
462
+ layout?: string | undefined;
463
+ groups?: {
464
+ id: string;
465
+ title: string;
466
+ inputIds: string[];
467
+ }[] | undefined;
468
+ advancedInputs?: string[] | undefined;
469
+ } | undefined;
470
+ marketing?: {
471
+ shortDescription?: string | undefined;
472
+ thumbnailAssetId?: string | undefined;
473
+ } | undefined;
474
+ } | undefined;
475
+ };
476
+ workflow_graphs: Record<string, {
477
+ nodes: {
478
+ [x: string]: unknown;
479
+ id: string;
480
+ type: string;
481
+ parent_id?: string | null | undefined;
482
+ data?: unknown;
483
+ ui_properties?: unknown;
484
+ dynamic_properties?: Record<string, unknown> | undefined;
485
+ dynamic_outputs?: Record<string, unknown> | undefined;
486
+ }[];
487
+ edges: {
488
+ [x: string]: unknown;
489
+ id?: string | null | undefined;
490
+ source: string;
491
+ sourceHandle: string;
492
+ target: string;
493
+ targetHandle: string;
494
+ ui_properties?: Record<string, string> | null | undefined;
495
+ edge_type?: string | undefined;
496
+ }[];
497
+ links?: {
498
+ id: string;
499
+ source: string;
500
+ target: string;
501
+ label?: string | null | undefined;
502
+ kind?: string | null | undefined;
503
+ }[] | undefined;
504
+ }>;
505
+ script_documents: Record<string, {
506
+ schemaVersion: 1;
507
+ description: string;
508
+ code: string;
509
+ inputs: {
510
+ name: string;
511
+ type: string;
512
+ }[];
513
+ outputs: {
514
+ name: string;
515
+ type: string;
516
+ }[];
517
+ secrets: string[];
518
+ timeoutSeconds: number;
519
+ tests: {
520
+ name: string;
521
+ inputs: Record<string, unknown>;
522
+ inputStreams?: Record<string, unknown[]> | undefined;
523
+ expect?: Record<string, unknown> | undefined;
524
+ expectedStreamed?: {
525
+ name: string;
526
+ value: unknown;
527
+ }[] | undefined;
528
+ }[];
529
+ palette?: {
530
+ category: string;
531
+ } | undefined;
532
+ }>;
533
+ } | null;
534
+ inputs: Record<string, unknown> | null;
535
+ outputs: Record<string, unknown> | null;
536
+ documents: {
537
+ kind: string;
538
+ id: string;
539
+ }[] | null;
540
+ instance_revision: number;
541
+ trace_id: string;
542
+ root_span_id: string | null;
543
+ execution_started_at: string | null;
544
+ known_llm_usd: number | null;
545
+ error: string | null;
546
+ estimated_usd: number;
547
+ actual_usd: number | null;
548
+ state_conflict: number;
549
+ content_expired: number;
550
+ created_at: string;
551
+ settled_at: string | null;
552
+ };
553
+ meta: object;
554
+ }>;
555
+ list: import("@trpc/server").TRPCQueryProcedure<{
556
+ input: {
557
+ instance_id: string;
558
+ limit?: number | undefined;
559
+ };
560
+ output: {
561
+ id: string;
562
+ user_id: string;
563
+ application_id: string | null;
564
+ instance_id: string;
565
+ invocation_id: string;
566
+ operation_id: string;
567
+ version: number | null;
568
+ origin: "agent" | "cli" | "debug" | "public" | "ui";
569
+ status: "cancelled" | "completed" | "failed" | "running";
570
+ snapshot: {
571
+ document: {
572
+ schemaVersion: number;
573
+ ui: {
574
+ [x: string]: unknown;
575
+ root: {
576
+ props?: Record<string, unknown> | undefined;
577
+ };
578
+ content: unknown[];
579
+ zones?: Record<string, unknown[]> | undefined;
580
+ };
581
+ operations: {
582
+ id: string;
583
+ name: string;
584
+ workflowId: string;
585
+ workflowVersion?: number | undefined;
586
+ target?: {
587
+ kind: "workflow";
588
+ workflowId: string;
589
+ workflowVersion?: number | undefined;
590
+ } | {
591
+ kind: "script";
592
+ scriptId: string;
593
+ scriptVersion: number;
594
+ } | undefined;
595
+ inputs: Record<string, {
596
+ from: "widget";
597
+ } | {
598
+ from: "variable";
599
+ variableId: string;
600
+ } | {
601
+ from: "constant";
602
+ value?: unknown;
603
+ } | {
604
+ from: "resource";
605
+ resourceBindingId: string;
606
+ }>;
607
+ outputs: Record<string, {
608
+ to: "display";
609
+ } | {
610
+ to: "variable";
611
+ variableId: string;
612
+ }>;
613
+ policy: "parallel" | "queue" | "replace";
614
+ timeoutMs?: number | undefined;
615
+ }[];
616
+ resources: {
617
+ id: string;
618
+ name: string;
619
+ kind: "asset" | "sketch" | "storyboard" | "timeline";
620
+ scope: {
621
+ projectId?: string | undefined;
622
+ fixedId?: string | undefined;
623
+ };
624
+ operations: ("create" | "delete" | "read" | "update")[];
625
+ }[];
626
+ variables: {
627
+ id: string;
628
+ name: string;
629
+ type?: {
630
+ type: string;
631
+ optional?: boolean | undefined;
632
+ } | null | undefined;
633
+ default?: unknown;
634
+ scope: "instance" | "user";
635
+ persist: boolean;
636
+ }[];
637
+ theme?: {
638
+ id: string;
639
+ } | undefined;
640
+ recipe?: {
641
+ schemaVersion: 1;
642
+ slug: string;
643
+ category?: string | undefined;
644
+ tags?: string[] | undefined;
645
+ inputs: {
646
+ id: string;
647
+ label: string;
648
+ kind: "asset" | "audio" | "boolean" | "color" | "entity" | "image" | "number" | "storyboard" | "text" | "timeline" | "video";
649
+ required: boolean;
650
+ description?: string | undefined;
651
+ choices?: {
652
+ value: string;
653
+ title: string;
654
+ description?: string | undefined;
655
+ image?: string | undefined;
656
+ }[] | undefined;
657
+ }[];
658
+ defaults?: Record<string, unknown> | undefined;
659
+ creativeStrategy?: {
660
+ objective?: string | undefined;
661
+ structure?: string | undefined;
662
+ direction?: string | undefined;
663
+ aspectRatio?: "16:9" | "1:1" | "4:5" | "9:16" | undefined;
664
+ shots?: {
665
+ id: string;
666
+ title: string;
667
+ durationSeconds: number;
668
+ elements: {
669
+ id: string;
670
+ inputId?: string | undefined;
671
+ kind: "asset" | "shape" | "text";
672
+ role: "cta" | "decorative" | "headline" | "logo" | "price" | "product";
673
+ direction?: string | undefined;
674
+ frame?: {
675
+ box: [number, number, number, number];
676
+ fit?: "contain" | "cover" | undefined;
677
+ align?: {
678
+ x?: "center" | "end" | "start" | undefined;
679
+ y?: "center" | "end" | "start" | undefined;
680
+ } | undefined;
681
+ clip?: boolean | undefined;
682
+ } | undefined;
683
+ typography?: {
684
+ size?: number | undefined;
685
+ weight?: 400 | 500 | 600 | 700 | undefined;
686
+ align?: "center" | "left" | "right" | undefined;
687
+ maxLines?: number | undefined;
688
+ } | undefined;
689
+ lock?: ("crop" | "position" | "scale")[] | undefined;
690
+ limits?: {
691
+ x?: number | undefined;
692
+ y?: number | undefined;
693
+ scale?: number | undefined;
694
+ } | undefined;
695
+ style?: {
696
+ fill?: string | undefined;
697
+ stroke?: string | undefined;
698
+ strokeWidth?: number | undefined;
699
+ cornerRadius?: number | undefined;
700
+ } | undefined;
701
+ fallback?: {
702
+ prompt: string;
703
+ } | undefined;
704
+ }[];
705
+ reviewRules?: string[] | undefined;
706
+ }[] | undefined;
707
+ reviewRules?: string[] | undefined;
708
+ } | undefined;
709
+ preservationRules?: {
710
+ inputId: string;
711
+ policy: "exact_asset" | "exact_color" | "exact_text";
712
+ allowedTransformations?: ("composite" | "crop" | "mask" | "opacity" | "position" | "rotate" | "scale")[] | undefined;
713
+ }[] | undefined;
714
+ mediaPolicy?: {
715
+ defaultStrategy?: "generated_video" | "hybrid" | "still_motion_graphics" | undefined;
716
+ allowGeneratedVideo?: boolean | undefined;
717
+ } | undefined;
718
+ operations: {
719
+ id: string;
720
+ bindingId: string;
721
+ intent: string;
722
+ version?: number | undefined;
723
+ strategy?: "agentic" | "deterministic" | undefined;
724
+ model?: {
725
+ provider: string;
726
+ id: string;
727
+ } | undefined;
728
+ }[];
729
+ outputs: {
730
+ id: string;
731
+ kind: "asset" | "storyboard" | "timeline" | "value";
732
+ binding?: string | undefined;
733
+ label?: string | undefined;
734
+ }[];
735
+ presentation?: {
736
+ layout?: string | undefined;
737
+ groups?: {
738
+ id: string;
739
+ title: string;
740
+ inputIds: string[];
741
+ }[] | undefined;
742
+ advancedInputs?: string[] | undefined;
743
+ } | undefined;
744
+ marketing?: {
745
+ shortDescription?: string | undefined;
746
+ thumbnailAssetId?: string | undefined;
747
+ } | undefined;
748
+ } | undefined;
749
+ };
750
+ workflow_graphs: Record<string, {
751
+ nodes: {
752
+ [x: string]: unknown;
753
+ id: string;
754
+ type: string;
755
+ parent_id?: string | null | undefined;
756
+ data?: unknown;
757
+ ui_properties?: unknown;
758
+ dynamic_properties?: Record<string, unknown> | undefined;
759
+ dynamic_outputs?: Record<string, unknown> | undefined;
760
+ }[];
761
+ edges: {
762
+ [x: string]: unknown;
763
+ id?: string | null | undefined;
764
+ source: string;
765
+ sourceHandle: string;
766
+ target: string;
767
+ targetHandle: string;
768
+ ui_properties?: Record<string, string> | null | undefined;
769
+ edge_type?: string | undefined;
770
+ }[];
771
+ links?: {
772
+ id: string;
773
+ source: string;
774
+ target: string;
775
+ label?: string | null | undefined;
776
+ kind?: string | null | undefined;
777
+ }[] | undefined;
778
+ }>;
779
+ script_documents: Record<string, {
780
+ schemaVersion: 1;
781
+ description: string;
782
+ code: string;
783
+ inputs: {
784
+ name: string;
785
+ type: string;
786
+ }[];
787
+ outputs: {
788
+ name: string;
789
+ type: string;
790
+ }[];
791
+ secrets: string[];
792
+ timeoutSeconds: number;
793
+ tests: {
794
+ name: string;
795
+ inputs: Record<string, unknown>;
796
+ inputStreams?: Record<string, unknown[]> | undefined;
797
+ expect?: Record<string, unknown> | undefined;
798
+ expectedStreamed?: {
799
+ name: string;
800
+ value: unknown;
801
+ }[] | undefined;
802
+ }[];
803
+ palette?: {
804
+ category: string;
805
+ } | undefined;
806
+ }>;
807
+ } | null;
808
+ inputs: Record<string, unknown> | null;
809
+ outputs: Record<string, unknown> | null;
810
+ documents: {
811
+ kind: string;
812
+ id: string;
813
+ }[] | null;
814
+ instance_revision: number;
815
+ trace_id: string;
816
+ root_span_id: string | null;
817
+ execution_started_at: string | null;
818
+ known_llm_usd: number | null;
819
+ error: string | null;
820
+ estimated_usd: number;
821
+ actual_usd: number | null;
822
+ state_conflict: number;
823
+ content_expired: number;
824
+ created_at: string;
825
+ settled_at: string | null;
826
+ }[];
827
+ meta: object;
828
+ }>;
829
+ update: import("@trpc/server").TRPCMutationProcedure<{
830
+ input: {
831
+ id: string;
832
+ status?: "cancelled" | "completed" | "failed" | "running" | undefined;
833
+ inputs?: Record<string, unknown> | undefined;
834
+ outputs?: Record<string, unknown> | undefined;
835
+ documents?: {
836
+ kind: string;
837
+ id: string;
838
+ }[] | undefined;
839
+ error?: string | null | undefined;
840
+ };
841
+ output: {
842
+ id: string;
843
+ user_id: string;
844
+ application_id: string | null;
845
+ instance_id: string;
846
+ invocation_id: string;
847
+ operation_id: string;
848
+ version: number | null;
849
+ origin: "agent" | "cli" | "debug" | "public" | "ui";
850
+ status: "cancelled" | "completed" | "failed" | "running";
851
+ snapshot: {
852
+ document: {
853
+ schemaVersion: number;
854
+ ui: {
855
+ [x: string]: unknown;
856
+ root: {
857
+ props?: Record<string, unknown> | undefined;
858
+ };
859
+ content: unknown[];
860
+ zones?: Record<string, unknown[]> | undefined;
861
+ };
862
+ operations: {
863
+ id: string;
864
+ name: string;
865
+ workflowId: string;
866
+ workflowVersion?: number | undefined;
867
+ target?: {
868
+ kind: "workflow";
869
+ workflowId: string;
870
+ workflowVersion?: number | undefined;
871
+ } | {
872
+ kind: "script";
873
+ scriptId: string;
874
+ scriptVersion: number;
875
+ } | undefined;
876
+ inputs: Record<string, {
877
+ from: "widget";
878
+ } | {
879
+ from: "variable";
880
+ variableId: string;
881
+ } | {
882
+ from: "constant";
883
+ value?: unknown;
884
+ } | {
885
+ from: "resource";
886
+ resourceBindingId: string;
887
+ }>;
888
+ outputs: Record<string, {
889
+ to: "display";
890
+ } | {
891
+ to: "variable";
892
+ variableId: string;
893
+ }>;
894
+ policy: "parallel" | "queue" | "replace";
895
+ timeoutMs?: number | undefined;
896
+ }[];
897
+ resources: {
898
+ id: string;
899
+ name: string;
900
+ kind: "asset" | "sketch" | "storyboard" | "timeline";
901
+ scope: {
902
+ projectId?: string | undefined;
903
+ fixedId?: string | undefined;
904
+ };
905
+ operations: ("create" | "delete" | "read" | "update")[];
906
+ }[];
907
+ variables: {
908
+ id: string;
909
+ name: string;
910
+ type?: {
911
+ type: string;
912
+ optional?: boolean | undefined;
913
+ } | null | undefined;
914
+ default?: unknown;
915
+ scope: "instance" | "user";
916
+ persist: boolean;
917
+ }[];
918
+ theme?: {
919
+ id: string;
920
+ } | undefined;
921
+ recipe?: {
922
+ schemaVersion: 1;
923
+ slug: string;
924
+ category?: string | undefined;
925
+ tags?: string[] | undefined;
926
+ inputs: {
927
+ id: string;
928
+ label: string;
929
+ kind: "asset" | "audio" | "boolean" | "color" | "entity" | "image" | "number" | "storyboard" | "text" | "timeline" | "video";
930
+ required: boolean;
931
+ description?: string | undefined;
932
+ choices?: {
933
+ value: string;
934
+ title: string;
935
+ description?: string | undefined;
936
+ image?: string | undefined;
937
+ }[] | undefined;
938
+ }[];
939
+ defaults?: Record<string, unknown> | undefined;
940
+ creativeStrategy?: {
941
+ objective?: string | undefined;
942
+ structure?: string | undefined;
943
+ direction?: string | undefined;
944
+ aspectRatio?: "16:9" | "1:1" | "4:5" | "9:16" | undefined;
945
+ shots?: {
946
+ id: string;
947
+ title: string;
948
+ durationSeconds: number;
949
+ elements: {
950
+ id: string;
951
+ inputId?: string | undefined;
952
+ kind: "asset" | "shape" | "text";
953
+ role: "cta" | "decorative" | "headline" | "logo" | "price" | "product";
954
+ direction?: string | undefined;
955
+ frame?: {
956
+ box: [number, number, number, number];
957
+ fit?: "contain" | "cover" | undefined;
958
+ align?: {
959
+ x?: "center" | "end" | "start" | undefined;
960
+ y?: "center" | "end" | "start" | undefined;
961
+ } | undefined;
962
+ clip?: boolean | undefined;
963
+ } | undefined;
964
+ typography?: {
965
+ size?: number | undefined;
966
+ weight?: 400 | 500 | 600 | 700 | undefined;
967
+ align?: "center" | "left" | "right" | undefined;
968
+ maxLines?: number | undefined;
969
+ } | undefined;
970
+ lock?: ("crop" | "position" | "scale")[] | undefined;
971
+ limits?: {
972
+ x?: number | undefined;
973
+ y?: number | undefined;
974
+ scale?: number | undefined;
975
+ } | undefined;
976
+ style?: {
977
+ fill?: string | undefined;
978
+ stroke?: string | undefined;
979
+ strokeWidth?: number | undefined;
980
+ cornerRadius?: number | undefined;
981
+ } | undefined;
982
+ fallback?: {
983
+ prompt: string;
984
+ } | undefined;
985
+ }[];
986
+ reviewRules?: string[] | undefined;
987
+ }[] | undefined;
988
+ reviewRules?: string[] | undefined;
989
+ } | undefined;
990
+ preservationRules?: {
991
+ inputId: string;
992
+ policy: "exact_asset" | "exact_color" | "exact_text";
993
+ allowedTransformations?: ("composite" | "crop" | "mask" | "opacity" | "position" | "rotate" | "scale")[] | undefined;
994
+ }[] | undefined;
995
+ mediaPolicy?: {
996
+ defaultStrategy?: "generated_video" | "hybrid" | "still_motion_graphics" | undefined;
997
+ allowGeneratedVideo?: boolean | undefined;
998
+ } | undefined;
999
+ operations: {
1000
+ id: string;
1001
+ bindingId: string;
1002
+ intent: string;
1003
+ version?: number | undefined;
1004
+ strategy?: "agentic" | "deterministic" | undefined;
1005
+ model?: {
1006
+ provider: string;
1007
+ id: string;
1008
+ } | undefined;
1009
+ }[];
1010
+ outputs: {
1011
+ id: string;
1012
+ kind: "asset" | "storyboard" | "timeline" | "value";
1013
+ binding?: string | undefined;
1014
+ label?: string | undefined;
1015
+ }[];
1016
+ presentation?: {
1017
+ layout?: string | undefined;
1018
+ groups?: {
1019
+ id: string;
1020
+ title: string;
1021
+ inputIds: string[];
1022
+ }[] | undefined;
1023
+ advancedInputs?: string[] | undefined;
1024
+ } | undefined;
1025
+ marketing?: {
1026
+ shortDescription?: string | undefined;
1027
+ thumbnailAssetId?: string | undefined;
1028
+ } | undefined;
1029
+ } | undefined;
1030
+ };
1031
+ workflow_graphs: Record<string, {
1032
+ nodes: {
1033
+ [x: string]: unknown;
1034
+ id: string;
1035
+ type: string;
1036
+ parent_id?: string | null | undefined;
1037
+ data?: unknown;
1038
+ ui_properties?: unknown;
1039
+ dynamic_properties?: Record<string, unknown> | undefined;
1040
+ dynamic_outputs?: Record<string, unknown> | undefined;
1041
+ }[];
1042
+ edges: {
1043
+ [x: string]: unknown;
1044
+ id?: string | null | undefined;
1045
+ source: string;
1046
+ sourceHandle: string;
1047
+ target: string;
1048
+ targetHandle: string;
1049
+ ui_properties?: Record<string, string> | null | undefined;
1050
+ edge_type?: string | undefined;
1051
+ }[];
1052
+ links?: {
1053
+ id: string;
1054
+ source: string;
1055
+ target: string;
1056
+ label?: string | null | undefined;
1057
+ kind?: string | null | undefined;
1058
+ }[] | undefined;
1059
+ }>;
1060
+ script_documents: Record<string, {
1061
+ schemaVersion: 1;
1062
+ description: string;
1063
+ code: string;
1064
+ inputs: {
1065
+ name: string;
1066
+ type: string;
1067
+ }[];
1068
+ outputs: {
1069
+ name: string;
1070
+ type: string;
1071
+ }[];
1072
+ secrets: string[];
1073
+ timeoutSeconds: number;
1074
+ tests: {
1075
+ name: string;
1076
+ inputs: Record<string, unknown>;
1077
+ inputStreams?: Record<string, unknown[]> | undefined;
1078
+ expect?: Record<string, unknown> | undefined;
1079
+ expectedStreamed?: {
1080
+ name: string;
1081
+ value: unknown;
1082
+ }[] | undefined;
1083
+ }[];
1084
+ palette?: {
1085
+ category: string;
1086
+ } | undefined;
1087
+ }>;
1088
+ } | null;
1089
+ inputs: Record<string, unknown> | null;
1090
+ outputs: Record<string, unknown> | null;
1091
+ documents: {
1092
+ kind: string;
1093
+ id: string;
1094
+ }[] | null;
1095
+ instance_revision: number;
1096
+ trace_id: string;
1097
+ root_span_id: string | null;
1098
+ execution_started_at: string | null;
1099
+ known_llm_usd: number | null;
1100
+ error: string | null;
1101
+ estimated_usd: number;
1102
+ actual_usd: number | null;
1103
+ state_conflict: number;
1104
+ content_expired: number;
1105
+ created_at: string;
1106
+ settled_at: string | null;
1107
+ };
1108
+ meta: object;
1109
+ }>;
1110
+ delete: import("@trpc/server").TRPCMutationProcedure<{
1111
+ input: {
1112
+ id: string;
1113
+ };
1114
+ output: {
1115
+ ok: boolean;
1116
+ };
1117
+ meta: object;
1118
+ }>;
1119
+ }>>;
1120
+ //# sourceMappingURL=app-runs.d.ts.map