botmux 2.111.0 → 2.112.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1041) hide show
  1. package/README.en.md +19 -7
  2. package/README.md +19 -7
  3. package/dist/adapters/adopt-route.d.ts.map +1 -1
  4. package/dist/adapters/adopt-route.js +2 -1
  5. package/dist/adapters/adopt-route.js.map +1 -1
  6. package/dist/adapters/backend/herdr-backend.d.ts +29 -0
  7. package/dist/adapters/backend/herdr-backend.d.ts.map +1 -1
  8. package/dist/adapters/backend/herdr-backend.js +167 -0
  9. package/dist/adapters/backend/herdr-backend.js.map +1 -1
  10. package/dist/adapters/backend/riff-backend.js +2 -2
  11. package/dist/adapters/backend/sandbox.d.ts +61 -6
  12. package/dist/adapters/backend/sandbox.d.ts.map +1 -1
  13. package/dist/adapters/backend/sandbox.js +235 -43
  14. package/dist/adapters/backend/sandbox.js.map +1 -1
  15. package/dist/adapters/backend/tmux-backend.d.ts +1 -0
  16. package/dist/adapters/backend/tmux-backend.d.ts.map +1 -1
  17. package/dist/adapters/backend/tmux-backend.js +1 -0
  18. package/dist/adapters/backend/tmux-backend.js.map +1 -1
  19. package/dist/adapters/cli/claude-code.d.ts +2 -0
  20. package/dist/adapters/cli/claude-code.d.ts.map +1 -1
  21. package/dist/adapters/cli/claude-code.js +7 -0
  22. package/dist/adapters/cli/claude-code.js.map +1 -1
  23. package/dist/adapters/cli/codex-app-turn.d.ts +16 -0
  24. package/dist/adapters/cli/codex-app-turn.d.ts.map +1 -1
  25. package/dist/adapters/cli/codex-app-turn.js +26 -0
  26. package/dist/adapters/cli/codex-app-turn.js.map +1 -1
  27. package/dist/adapters/cli/codex.d.ts.map +1 -1
  28. package/dist/adapters/cli/codex.js +1 -0
  29. package/dist/adapters/cli/codex.js.map +1 -1
  30. package/dist/adapters/cli/grok.d.ts +8 -6
  31. package/dist/adapters/cli/grok.d.ts.map +1 -1
  32. package/dist/adapters/cli/grok.js +14 -6
  33. package/dist/adapters/cli/grok.js.map +1 -1
  34. package/dist/adapters/cli/read-isolation.d.ts +40 -14
  35. package/dist/adapters/cli/read-isolation.d.ts.map +1 -1
  36. package/dist/adapters/cli/read-isolation.js +116 -19
  37. package/dist/adapters/cli/read-isolation.js.map +1 -1
  38. package/dist/adapters/cli/runner-control-channel.d.ts +32 -0
  39. package/dist/adapters/cli/runner-control-channel.d.ts.map +1 -0
  40. package/dist/adapters/cli/runner-control-channel.js +104 -0
  41. package/dist/adapters/cli/runner-control-channel.js.map +1 -0
  42. package/dist/adapters/cli/shared-hints.d.ts +1 -1
  43. package/dist/adapters/cli/shared-hints.d.ts.map +1 -1
  44. package/dist/adapters/cli/shared-hints.js +9 -0
  45. package/dist/adapters/cli/shared-hints.js.map +1 -1
  46. package/dist/adapters/cli/traex.d.ts.map +1 -1
  47. package/dist/adapters/cli/traex.js +100 -64
  48. package/dist/adapters/cli/traex.js.map +1 -1
  49. package/dist/adapters/cli/types.d.ts +13 -0
  50. package/dist/adapters/cli/types.d.ts.map +1 -1
  51. package/dist/bot-registry.d.ts +36 -27
  52. package/dist/bot-registry.d.ts.map +1 -1
  53. package/dist/bot-registry.js +354 -8
  54. package/dist/bot-registry.js.map +1 -1
  55. package/dist/cli/saved-workflow.d.ts +25 -0
  56. package/dist/cli/saved-workflow.d.ts.map +1 -0
  57. package/dist/cli/saved-workflow.js +338 -0
  58. package/dist/cli/saved-workflow.js.map +1 -0
  59. package/dist/cli/send-dispatch.d.ts +18 -3
  60. package/dist/cli/send-dispatch.d.ts.map +1 -1
  61. package/dist/cli/send-dispatch.js +22 -3
  62. package/dist/cli/send-dispatch.js.map +1 -1
  63. package/dist/cli/v3-run-cancel.d.ts +47 -0
  64. package/dist/cli/v3-run-cancel.d.ts.map +1 -0
  65. package/dist/cli/v3-run-cancel.js +96 -0
  66. package/dist/cli/v3-run-cancel.js.map +1 -0
  67. package/dist/cli/vc-agent.d.ts.map +1 -1
  68. package/dist/cli/vc-agent.js +54 -1
  69. package/dist/cli/vc-agent.js.map +1 -1
  70. package/dist/cli/workflow-migration.d.ts +39 -0
  71. package/dist/cli/workflow-migration.d.ts.map +1 -0
  72. package/dist/cli/workflow-migration.js +302 -0
  73. package/dist/cli/workflow-migration.js.map +1 -0
  74. package/dist/cli/workflow-run-archive.d.ts +29 -0
  75. package/dist/cli/workflow-run-archive.d.ts.map +1 -0
  76. package/dist/cli/workflow-run-archive.js +183 -0
  77. package/dist/cli/workflow-run-archive.js.map +1 -0
  78. package/dist/cli/workflow.d.ts +5 -10
  79. package/dist/cli/workflow.d.ts.map +1 -1
  80. package/dist/cli/workflow.js +85 -764
  81. package/dist/cli/workflow.js.map +1 -1
  82. package/dist/cli.d.ts.map +1 -1
  83. package/dist/cli.js +1018 -191
  84. package/dist/cli.js.map +1 -1
  85. package/dist/codex-app-runner.js +30 -21
  86. package/dist/codex-app-runner.js.map +1 -1
  87. package/dist/core/command-handler.d.ts.map +1 -1
  88. package/dist/core/command-handler.js +21 -9
  89. package/dist/core/command-handler.js.map +1 -1
  90. package/dist/core/current-turn-provenance.d.ts +39 -0
  91. package/dist/core/current-turn-provenance.d.ts.map +1 -0
  92. package/dist/core/current-turn-provenance.js +122 -0
  93. package/dist/core/current-turn-provenance.js.map +1 -0
  94. package/dist/core/daemon-ipc-auth.d.ts +20 -0
  95. package/dist/core/daemon-ipc-auth.d.ts.map +1 -0
  96. package/dist/core/daemon-ipc-auth.js +44 -0
  97. package/dist/core/daemon-ipc-auth.js.map +1 -0
  98. package/dist/core/daemon-ipc-session-auth.d.ts +37 -0
  99. package/dist/core/daemon-ipc-session-auth.d.ts.map +1 -0
  100. package/dist/core/daemon-ipc-session-auth.js +35 -0
  101. package/dist/core/daemon-ipc-session-auth.js.map +1 -0
  102. package/dist/core/dashboard-command/index.d.ts +0 -2
  103. package/dist/core/dashboard-command/index.d.ts.map +1 -1
  104. package/dist/core/dashboard-command/index.js +2 -2
  105. package/dist/core/dashboard-command/index.js.map +1 -1
  106. package/dist/core/dashboard-command/stub.d.ts +1 -1
  107. package/dist/core/dashboard-command/stub.d.ts.map +1 -1
  108. package/dist/core/dashboard-command/stub.js +0 -1
  109. package/dist/core/dashboard-command/stub.js.map +1 -1
  110. package/dist/core/dashboard-ipc-server.d.ts +11 -2
  111. package/dist/core/dashboard-ipc-server.d.ts.map +1 -1
  112. package/dist/core/dashboard-ipc-server.js +266 -41
  113. package/dist/core/dashboard-ipc-server.js.map +1 -1
  114. package/dist/core/dashboard-secret.d.ts +3 -0
  115. package/dist/core/dashboard-secret.d.ts.map +1 -0
  116. package/dist/core/dashboard-secret.js +7 -0
  117. package/dist/core/dashboard-secret.js.map +1 -0
  118. package/dist/core/data-dir.d.ts +24 -0
  119. package/dist/core/data-dir.d.ts.map +1 -0
  120. package/dist/core/data-dir.js +48 -0
  121. package/dist/core/data-dir.js.map +1 -0
  122. package/dist/core/inflight-input-tracker.d.ts +4 -2
  123. package/dist/core/inflight-input-tracker.d.ts.map +1 -1
  124. package/dist/core/inflight-input-tracker.js +6 -5
  125. package/dist/core/inflight-input-tracker.js.map +1 -1
  126. package/dist/core/inject-queue-policy.d.ts +70 -0
  127. package/dist/core/inject-queue-policy.d.ts.map +1 -0
  128. package/dist/core/inject-queue-policy.js +30 -0
  129. package/dist/core/inject-queue-policy.js.map +1 -0
  130. package/dist/core/maintenance.d.ts +1 -1
  131. package/dist/core/maintenance.d.ts.map +1 -1
  132. package/dist/core/maintenance.js +3 -2
  133. package/dist/core/maintenance.js.map +1 -1
  134. package/dist/core/managed-origin-capability.d.ts +30 -0
  135. package/dist/core/managed-origin-capability.d.ts.map +1 -0
  136. package/dist/core/managed-origin-capability.js +88 -0
  137. package/dist/core/managed-origin-capability.js.map +1 -0
  138. package/dist/core/role-library.d.ts +15 -0
  139. package/dist/core/role-library.d.ts.map +1 -0
  140. package/dist/core/role-library.js +75 -0
  141. package/dist/core/role-library.js.map +1 -0
  142. package/dist/core/session-cwd.d.ts +14 -0
  143. package/dist/core/session-cwd.d.ts.map +1 -0
  144. package/dist/core/session-cwd.js +17 -0
  145. package/dist/core/session-cwd.js.map +1 -0
  146. package/dist/core/session-manager.d.ts +4 -1
  147. package/dist/core/session-manager.d.ts.map +1 -1
  148. package/dist/core/session-manager.js +27 -8
  149. package/dist/core/session-manager.js.map +1 -1
  150. package/dist/core/session-marker.d.ts +22 -0
  151. package/dist/core/session-marker.d.ts.map +1 -1
  152. package/dist/core/session-marker.js +185 -20
  153. package/dist/core/session-marker.js.map +1 -1
  154. package/dist/core/slash-inject.d.ts +15 -0
  155. package/dist/core/slash-inject.d.ts.map +1 -0
  156. package/dist/core/slash-inject.js +25 -0
  157. package/dist/core/slash-inject.js.map +1 -0
  158. package/dist/core/terminal-url.d.ts +1 -0
  159. package/dist/core/terminal-url.d.ts.map +1 -1
  160. package/dist/core/terminal-url.js +14 -8
  161. package/dist/core/terminal-url.js.map +1 -1
  162. package/dist/core/terminal-write-auth.d.ts +26 -0
  163. package/dist/core/terminal-write-auth.d.ts.map +1 -1
  164. package/dist/core/terminal-write-auth.js +48 -3
  165. package/dist/core/terminal-write-auth.js.map +1 -1
  166. package/dist/core/trigger-session.d.ts +24 -1
  167. package/dist/core/trigger-session.d.ts.map +1 -1
  168. package/dist/core/trigger-session.js +106 -15
  169. package/dist/core/trigger-session.js.map +1 -1
  170. package/dist/core/types.d.ts +26 -1
  171. package/dist/core/types.d.ts.map +1 -1
  172. package/dist/core/types.js +10 -0
  173. package/dist/core/types.js.map +1 -1
  174. package/dist/core/worker-pool.d.ts +65 -2
  175. package/dist/core/worker-pool.d.ts.map +1 -1
  176. package/dist/core/worker-pool.js +459 -39
  177. package/dist/core/worker-pool.js.map +1 -1
  178. package/dist/daemon.d.ts +249 -8
  179. package/dist/daemon.d.ts.map +1 -1
  180. package/dist/daemon.js +7383 -1195
  181. package/dist/daemon.js.map +1 -1
  182. package/dist/dashboard/aggregator.d.ts +1 -1
  183. package/dist/dashboard/aggregator.d.ts.map +1 -1
  184. package/dist/dashboard/aggregator.js +2 -2
  185. package/dist/dashboard/aggregator.js.map +1 -1
  186. package/dist/dashboard/auth.d.ts +3 -8
  187. package/dist/dashboard/auth.d.ts.map +1 -1
  188. package/dist/dashboard/auth.js +63 -22
  189. package/dist/dashboard/auth.js.map +1 -1
  190. package/dist/dashboard/bot-onboarding.d.ts +5 -0
  191. package/dist/dashboard/bot-onboarding.d.ts.map +1 -1
  192. package/dist/dashboard/bot-onboarding.js +37 -0
  193. package/dist/dashboard/bot-onboarding.js.map +1 -1
  194. package/dist/dashboard/connector-api.d.ts.map +1 -1
  195. package/dist/dashboard/connector-api.js +42 -2
  196. package/dist/dashboard/connector-api.js.map +1 -1
  197. package/dist/dashboard/daemon-internal-api.d.ts +0 -2
  198. package/dist/dashboard/daemon-internal-api.d.ts.map +1 -1
  199. package/dist/dashboard/daemon-internal-api.js +26 -93
  200. package/dist/dashboard/daemon-internal-api.js.map +1 -1
  201. package/dist/dashboard/daemon-internal-client.d.ts.map +1 -1
  202. package/dist/dashboard/daemon-internal-client.js +2 -3
  203. package/dist/dashboard/daemon-internal-client.js.map +1 -1
  204. package/dist/dashboard/federation-api.js +1 -1
  205. package/dist/dashboard/federation-api.js.map +1 -1
  206. package/dist/dashboard/federation-spoke-api.js +1 -1
  207. package/dist/dashboard/federation-spoke-api.js.map +1 -1
  208. package/dist/dashboard/history-senders.d.ts +3 -0
  209. package/dist/dashboard/history-senders.d.ts.map +1 -1
  210. package/dist/dashboard/history-senders.js.map +1 -1
  211. package/dist/dashboard/http.d.ts +4 -0
  212. package/dist/dashboard/http.d.ts.map +1 -0
  213. package/dist/dashboard/http.js +6 -0
  214. package/dist/dashboard/http.js.map +1 -0
  215. package/dist/dashboard/registry.d.ts +4 -0
  216. package/dist/dashboard/registry.d.ts.map +1 -1
  217. package/dist/dashboard/registry.js.map +1 -1
  218. package/dist/dashboard/trigger-api.js +1 -1
  219. package/dist/dashboard/trigger-api.js.map +1 -1
  220. package/dist/dashboard/v3-runs-api.d.ts +13 -10
  221. package/dist/dashboard/v3-runs-api.d.ts.map +1 -1
  222. package/dist/dashboard/v3-runs-api.js +121 -4
  223. package/dist/dashboard/v3-runs-api.js.map +1 -1
  224. package/dist/dashboard/vc-consumer-profiles-api.d.ts +105 -0
  225. package/dist/dashboard/vc-consumer-profiles-api.d.ts.map +1 -0
  226. package/dist/dashboard/vc-consumer-profiles-api.js +312 -0
  227. package/dist/dashboard/vc-consumer-profiles-api.js.map +1 -0
  228. package/dist/dashboard/web/app.d.ts.map +1 -1
  229. package/dist/dashboard/web/app.js +7 -6
  230. package/dist/dashboard/web/app.js.map +1 -1
  231. package/dist/dashboard/web/bot-defaults-page.d.ts.map +1 -1
  232. package/dist/dashboard/web/bot-defaults-page.js +9 -14
  233. package/dist/dashboard/web/bot-defaults-page.js.map +1 -1
  234. package/dist/dashboard/web/bot-onboarding.d.ts.map +1 -1
  235. package/dist/dashboard/web/bot-onboarding.js +7 -3
  236. package/dist/dashboard/web/bot-onboarding.js.map +1 -1
  237. package/dist/dashboard/web/connectors-page.d.ts +5 -0
  238. package/dist/dashboard/web/connectors-page.d.ts.map +1 -1
  239. package/dist/dashboard/web/connectors-page.js +16 -12
  240. package/dist/dashboard/web/connectors-page.js.map +1 -1
  241. package/dist/dashboard/web/create-session-entry.d.ts +4 -0
  242. package/dist/dashboard/web/create-session-entry.d.ts.map +1 -0
  243. package/dist/dashboard/web/create-session-entry.js +17 -0
  244. package/dist/dashboard/web/create-session-entry.js.map +1 -0
  245. package/dist/dashboard/web/dashboard-components.d.ts +5 -0
  246. package/dist/dashboard/web/dashboard-components.d.ts.map +1 -1
  247. package/dist/dashboard/web/dashboard-components.js +29 -4
  248. package/dist/dashboard/web/dashboard-components.js.map +1 -1
  249. package/dist/dashboard/web/dashboard-routes.d.ts.map +1 -1
  250. package/dist/dashboard/web/dashboard-routes.js +0 -1
  251. package/dist/dashboard/web/dashboard-routes.js.map +1 -1
  252. package/dist/dashboard/web/i18n.d.ts.map +1 -1
  253. package/dist/dashboard/web/i18n.js +192 -382
  254. package/dist/dashboard/web/i18n.js.map +1 -1
  255. package/dist/dashboard/web/preferences.d.ts +3 -0
  256. package/dist/dashboard/web/preferences.d.ts.map +1 -1
  257. package/dist/dashboard/web/preferences.js +18 -0
  258. package/dist/dashboard/web/preferences.js.map +1 -1
  259. package/dist/dashboard/web/schedules-page.d.ts.map +1 -1
  260. package/dist/dashboard/web/schedules-page.js +4 -1
  261. package/dist/dashboard/web/schedules-page.js.map +1 -1
  262. package/dist/dashboard/web/sessions-page.d.ts.map +1 -1
  263. package/dist/dashboard/web/sessions-page.js +64 -18
  264. package/dist/dashboard/web/sessions-page.js.map +1 -1
  265. package/dist/dashboard/web/settings-page.d.ts.map +1 -1
  266. package/dist/dashboard/web/settings-page.js +2 -1
  267. package/dist/dashboard/web/settings-page.js.map +1 -1
  268. package/dist/dashboard/web/v3-api.d.ts +12 -2
  269. package/dist/dashboard/web/v3-api.d.ts.map +1 -1
  270. package/dist/dashboard/web/v3-api.js +34 -6
  271. package/dist/dashboard/web/v3-api.js.map +1 -1
  272. package/dist/dashboard/web/v3-components.d.ts +6 -0
  273. package/dist/dashboard/web/v3-components.d.ts.map +1 -1
  274. package/dist/dashboard/web/v3-components.js +66 -23
  275. package/dist/dashboard/web/v3-components.js.map +1 -1
  276. package/dist/dashboard/web/v3-model.js +1 -1
  277. package/dist/dashboard/web/v3-model.js.map +1 -1
  278. package/dist/dashboard/web/v3-terminal.js +2 -2
  279. package/dist/dashboard/web/v3-terminal.js.map +1 -1
  280. package/dist/dashboard/web/vc-consumer-profiles-section.d.ts +19 -0
  281. package/dist/dashboard/web/vc-consumer-profiles-section.d.ts.map +1 -0
  282. package/dist/dashboard/web/vc-consumer-profiles-section.js +382 -0
  283. package/dist/dashboard/web/vc-consumer-profiles-section.js.map +1 -0
  284. package/dist/dashboard/webhook-routes.d.ts.map +1 -1
  285. package/dist/dashboard/webhook-routes.js +29 -6
  286. package/dist/dashboard/webhook-routes.js.map +1 -1
  287. package/dist/dashboard-web/app.js +1 -1
  288. package/dist/dashboard-web/chunks/bot-defaults-page-RYBL4ZYE.js +4 -0
  289. package/dist/dashboard-web/chunks/{chunk-OEJIT66L.js → chunk-CMDPZOPK.js} +1 -1
  290. package/dist/dashboard-web/chunks/chunk-I35DXGM4.js +1 -0
  291. package/dist/dashboard-web/chunks/chunk-NYZHARIU.js +47 -0
  292. package/dist/dashboard-web/chunks/chunk-SZOB6VK2.js +1 -0
  293. package/dist/dashboard-web/chunks/{chunk-YQFXGRSD.js → chunk-YBOHL7T7.js} +1 -1
  294. package/dist/dashboard-web/chunks/chunk-YWCPDL4S.js +1 -0
  295. package/dist/dashboard-web/chunks/connectors-page-DAMP7TTV.js +1 -0
  296. package/dist/dashboard-web/chunks/{groups-page-5AJPPJH2.js → groups-page-BPFA356N.js} +1 -1
  297. package/dist/dashboard-web/chunks/{insights-page-R3DFECX4.js → insights-page-SHOPHTWY.js} +1 -1
  298. package/dist/dashboard-web/chunks/{monitor-room-NLMKJLDY.js → monitor-room-PXPJGZCN.js} +1 -1
  299. package/dist/dashboard-web/chunks/{monitoring-page-EHSOX4GV.js → monitoring-page-4DF54M5Y.js} +1 -1
  300. package/dist/dashboard-web/chunks/{office-page-OXJKFJ4R.js → office-page-6OHU6KMZ.js} +1 -1
  301. package/dist/dashboard-web/chunks/{overview-page-GJHIVXJF.js → overview-page-IHIZ6F5M.js} +1 -1
  302. package/dist/dashboard-web/chunks/{roles-page-6ZODQISW.js → roles-page-JYTBYKEF.js} +1 -1
  303. package/dist/dashboard-web/chunks/{schedules-page-DAGMHVCH.js → schedules-page-WJ72T7KV.js} +1 -1
  304. package/dist/dashboard-web/chunks/sessions-page-QC56OIAI.js +3 -0
  305. package/dist/dashboard-web/chunks/settings-page-TCKWEXTN.js +2 -0
  306. package/dist/dashboard-web/chunks/{skills-page-J7EVUHXP.js → skills-page-RJJNIECW.js} +1 -1
  307. package/dist/dashboard-web/chunks/{team-federation-page-YM5JBIII.js → team-federation-page-ZMDX3E7K.js} +1 -1
  308. package/dist/dashboard-web/chunks/v3-page-VLLAUQ33.js +94 -0
  309. package/dist/dashboard-web/chunks/{whiteboards-page-75N2U6W4.js → whiteboards-page-NAO53CKM.js} +1 -1
  310. package/dist/dashboard-web/style.css +363 -274
  311. package/dist/dashboard.js +194 -78
  312. package/dist/dashboard.js.map +1 -1
  313. package/dist/global-config.d.ts +1 -1
  314. package/dist/i18n/en.d.ts.map +1 -1
  315. package/dist/i18n/en.js +12 -87
  316. package/dist/i18n/en.js.map +1 -1
  317. package/dist/i18n/zh.d.ts.map +1 -1
  318. package/dist/i18n/zh.js +12 -87
  319. package/dist/i18n/zh.js.map +1 -1
  320. package/dist/im/lark/brand-template.d.ts +15 -0
  321. package/dist/im/lark/brand-template.d.ts.map +1 -0
  322. package/dist/im/lark/brand-template.js +114 -0
  323. package/dist/im/lark/brand-template.js.map +1 -0
  324. package/dist/im/lark/card-handler.d.ts +6 -3
  325. package/dist/im/lark/card-handler.d.ts.map +1 -1
  326. package/dist/im/lark/card-handler.js +23 -39
  327. package/dist/im/lark/card-handler.js.map +1 -1
  328. package/dist/im/lark/client.d.ts +8 -2
  329. package/dist/im/lark/client.d.ts.map +1 -1
  330. package/dist/im/lark/client.js +33 -31
  331. package/dist/im/lark/client.js.map +1 -1
  332. package/dist/im/lark/doc-comment.d.ts +18 -0
  333. package/dist/im/lark/doc-comment.d.ts.map +1 -1
  334. package/dist/im/lark/doc-comment.js +119 -5
  335. package/dist/im/lark/doc-comment.js.map +1 -1
  336. package/dist/im/lark/event-dispatcher.d.ts +18 -2
  337. package/dist/im/lark/event-dispatcher.d.ts.map +1 -1
  338. package/dist/im/lark/event-dispatcher.js +41 -19
  339. package/dist/im/lark/event-dispatcher.js.map +1 -1
  340. package/dist/im/lark/merge-forward.d.ts.map +1 -1
  341. package/dist/im/lark/merge-forward.js +7 -2
  342. package/dist/im/lark/merge-forward.js.map +1 -1
  343. package/dist/im/lark/message-parser.d.ts.map +1 -1
  344. package/dist/im/lark/message-parser.js +7 -0
  345. package/dist/im/lark/message-parser.js.map +1 -1
  346. package/dist/im/lark/overview-card.d.ts +1 -2
  347. package/dist/im/lark/overview-card.d.ts.map +1 -1
  348. package/dist/im/lark/overview-card.js +1 -48
  349. package/dist/im/lark/overview-card.js.map +1 -1
  350. package/dist/im/lark/v3-blocked-card-handler.d.ts.map +1 -1
  351. package/dist/im/lark/v3-blocked-card-handler.js +5 -5
  352. package/dist/im/lark/v3-blocked-card-handler.js.map +1 -1
  353. package/dist/im/lark/v3-blocked-card.d.ts +1 -0
  354. package/dist/im/lark/v3-blocked-card.d.ts.map +1 -1
  355. package/dist/im/lark/v3-blocked-card.js +19 -2
  356. package/dist/im/lark/v3-blocked-card.js.map +1 -1
  357. package/dist/im/lark/v3-distillation-card-handler.d.ts +12 -0
  358. package/dist/im/lark/v3-distillation-card-handler.d.ts.map +1 -0
  359. package/dist/im/lark/v3-distillation-card-handler.js +107 -0
  360. package/dist/im/lark/v3-distillation-card-handler.js.map +1 -0
  361. package/dist/im/lark/v3-distillation-card.d.ts +42 -0
  362. package/dist/im/lark/v3-distillation-card.d.ts.map +1 -0
  363. package/dist/im/lark/v3-distillation-card.js +206 -0
  364. package/dist/im/lark/v3-distillation-card.js.map +1 -0
  365. package/dist/im/lark/v3-gate-card-handler.d.ts +1 -1
  366. package/dist/im/lark/v3-gate-card-handler.d.ts.map +1 -1
  367. package/dist/im/lark/v3-gate-card-handler.js +6 -5
  368. package/dist/im/lark/v3-gate-card-handler.js.map +1 -1
  369. package/dist/im/lark/v3-gate-card.d.ts +8 -1
  370. package/dist/im/lark/v3-gate-card.d.ts.map +1 -1
  371. package/dist/im/lark/v3-gate-card.js +38 -7
  372. package/dist/im/lark/v3-gate-card.js.map +1 -1
  373. package/dist/im/lark/v3-loop-grant-card-handler.d.ts.map +1 -1
  374. package/dist/im/lark/v3-loop-grant-card-handler.js +3 -4
  375. package/dist/im/lark/v3-loop-grant-card-handler.js.map +1 -1
  376. package/dist/im/lark/v3-loop-grant-card.js +1 -1
  377. package/dist/im/lark/v3-loop-grant-card.js.map +1 -1
  378. package/dist/im/lark/v3-progress-card-manager.d.ts +79 -0
  379. package/dist/im/lark/v3-progress-card-manager.d.ts.map +1 -0
  380. package/dist/im/lark/v3-progress-card-manager.js +444 -0
  381. package/dist/im/lark/v3-progress-card-manager.js.map +1 -0
  382. package/dist/im/lark/v3-progress-card.d.ts +26 -0
  383. package/dist/im/lark/v3-progress-card.d.ts.map +1 -0
  384. package/dist/im/lark/v3-progress-card.js +211 -0
  385. package/dist/im/lark/v3-progress-card.js.map +1 -0
  386. package/dist/im/lark/v3-revisit-grant-card-handler.d.ts.map +1 -1
  387. package/dist/im/lark/v3-revisit-grant-card-handler.js +3 -4
  388. package/dist/im/lark/v3-revisit-grant-card-handler.js.map +1 -1
  389. package/dist/im/lark/v3-revisit-grant-card.js +1 -1
  390. package/dist/im/lark/v3-revisit-grant-card.js.map +1 -1
  391. package/dist/im/lark/v3-run-save-card-handler.d.ts +12 -0
  392. package/dist/im/lark/v3-run-save-card-handler.d.ts.map +1 -0
  393. package/dist/im/lark/v3-run-save-card-handler.js +160 -0
  394. package/dist/im/lark/v3-run-save-card-handler.js.map +1 -0
  395. package/dist/im/lark/v3-run-save-card.d.ts +38 -0
  396. package/dist/im/lark/v3-run-save-card.d.ts.map +1 -0
  397. package/dist/im/lark/v3-run-save-card.js +125 -0
  398. package/dist/im/lark/v3-run-save-card.js.map +1 -0
  399. package/dist/im/lark/v3-saved-workflow-command.d.ts +36 -0
  400. package/dist/im/lark/v3-saved-workflow-command.d.ts.map +1 -0
  401. package/dist/im/lark/v3-saved-workflow-command.js +186 -0
  402. package/dist/im/lark/v3-saved-workflow-command.js.map +1 -0
  403. package/dist/im/lark/v3-saved-workflow-handler.d.ts +89 -0
  404. package/dist/im/lark/v3-saved-workflow-handler.d.ts.map +1 -0
  405. package/dist/im/lark/v3-saved-workflow-handler.js +212 -0
  406. package/dist/im/lark/v3-saved-workflow-handler.js.map +1 -0
  407. package/dist/im/lark/workflow-slash-command.d.ts +7 -110
  408. package/dist/im/lark/workflow-slash-command.d.ts.map +1 -1
  409. package/dist/im/lark/workflow-slash-command.js +16 -230
  410. package/dist/im/lark/workflow-slash-command.js.map +1 -1
  411. package/dist/index-daemon.js +1 -1
  412. package/dist/index-daemon.js.map +1 -1
  413. package/dist/mir-runner.js +11 -15
  414. package/dist/mir-runner.js.map +1 -1
  415. package/dist/mira-runner.js +8 -12
  416. package/dist/mira-runner.js.map +1 -1
  417. package/dist/services/bridge-turn-queue.d.ts +29 -12
  418. package/dist/services/bridge-turn-queue.d.ts.map +1 -1
  419. package/dist/services/bridge-turn-queue.js +59 -23
  420. package/dist/services/bridge-turn-queue.js.map +1 -1
  421. package/dist/services/claude-transcript.d.ts +15 -0
  422. package/dist/services/claude-transcript.d.ts.map +1 -1
  423. package/dist/services/claude-transcript.js +24 -0
  424. package/dist/services/claude-transcript.js.map +1 -1
  425. package/dist/services/codex-bridge-queue.d.ts +13 -2
  426. package/dist/services/codex-bridge-queue.d.ts.map +1 -1
  427. package/dist/services/codex-bridge-queue.js +20 -3
  428. package/dist/services/codex-bridge-queue.js.map +1 -1
  429. package/dist/services/codex-transcript.d.ts +6 -0
  430. package/dist/services/codex-transcript.d.ts.map +1 -1
  431. package/dist/services/codex-transcript.js.map +1 -1
  432. package/dist/services/grok-transcript.d.ts +3 -2
  433. package/dist/services/grok-transcript.d.ts.map +1 -1
  434. package/dist/services/grok-transcript.js +73 -22
  435. package/dist/services/grok-transcript.js.map +1 -1
  436. package/dist/services/hook-runner.d.ts.map +1 -1
  437. package/dist/services/hook-runner.js +26 -3
  438. package/dist/services/hook-runner.js.map +1 -1
  439. package/dist/services/schedule-store.d.ts +37 -0
  440. package/dist/services/schedule-store.d.ts.map +1 -1
  441. package/dist/services/schedule-store.js +259 -141
  442. package/dist/services/schedule-store.js.map +1 -1
  443. package/dist/services/send-policy.d.ts +50 -0
  444. package/dist/services/send-policy.d.ts.map +1 -1
  445. package/dist/services/send-policy.js +65 -0
  446. package/dist/services/send-policy.js.map +1 -1
  447. package/dist/services/session-lifecycle-hooks.d.ts.map +1 -1
  448. package/dist/services/session-lifecycle-hooks.js +12 -0
  449. package/dist/services/session-lifecycle-hooks.js.map +1 -1
  450. package/dist/services/traex-transcript.d.ts +11 -2
  451. package/dist/services/traex-transcript.d.ts.map +1 -1
  452. package/dist/services/traex-transcript.js +142 -8
  453. package/dist/services/traex-transcript.js.map +1 -1
  454. package/dist/services/trigger-types.d.ts +6 -1
  455. package/dist/services/trigger-types.d.ts.map +1 -1
  456. package/dist/services/trigger-types.js.map +1 -1
  457. package/dist/services/turn-terminal-deduper.d.ts +14 -0
  458. package/dist/services/turn-terminal-deduper.d.ts.map +1 -0
  459. package/dist/services/turn-terminal-deduper.js +34 -0
  460. package/dist/services/turn-terminal-deduper.js.map +1 -0
  461. package/dist/services/vc-meeting-action-gate.d.ts +246 -0
  462. package/dist/services/vc-meeting-action-gate.d.ts.map +1 -0
  463. package/dist/services/vc-meeting-action-gate.js +756 -0
  464. package/dist/services/vc-meeting-action-gate.js.map +1 -0
  465. package/dist/services/vc-meeting-action-store.d.ts +222 -0
  466. package/dist/services/vc-meeting-action-store.d.ts.map +1 -0
  467. package/dist/services/vc-meeting-action-store.js +806 -0
  468. package/dist/services/vc-meeting-action-store.js.map +1 -0
  469. package/dist/services/vc-meeting-consumer-isolation.d.ts +27 -0
  470. package/dist/services/vc-meeting-consumer-isolation.d.ts.map +1 -0
  471. package/dist/services/vc-meeting-consumer-isolation.js +37 -0
  472. package/dist/services/vc-meeting-consumer-isolation.js.map +1 -0
  473. package/dist/services/vc-meeting-consumer-profile-bootstrap.d.ts +72 -0
  474. package/dist/services/vc-meeting-consumer-profile-bootstrap.d.ts.map +1 -0
  475. package/dist/services/vc-meeting-consumer-profile-bootstrap.js +343 -0
  476. package/dist/services/vc-meeting-consumer-profile-bootstrap.js.map +1 -0
  477. package/dist/services/vc-meeting-consumer-profile-store.d.ts +39 -0
  478. package/dist/services/vc-meeting-consumer-profile-store.d.ts.map +1 -0
  479. package/dist/services/vc-meeting-consumer-profile-store.js +190 -0
  480. package/dist/services/vc-meeting-consumer-profile-store.js.map +1 -0
  481. package/dist/services/vc-meeting-daemon-auth.d.ts +29 -0
  482. package/dist/services/vc-meeting-daemon-auth.d.ts.map +1 -0
  483. package/dist/services/vc-meeting-daemon-auth.js +117 -0
  484. package/dist/services/vc-meeting-daemon-auth.js.map +1 -0
  485. package/dist/services/vc-meeting-delivery-feed.d.ts +52 -0
  486. package/dist/services/vc-meeting-delivery-feed.d.ts.map +1 -0
  487. package/dist/services/vc-meeting-delivery-feed.js +231 -0
  488. package/dist/services/vc-meeting-delivery-feed.js.map +1 -0
  489. package/dist/services/vc-meeting-delivery-hub-store.d.ts +213 -0
  490. package/dist/services/vc-meeting-delivery-hub-store.d.ts.map +1 -0
  491. package/dist/services/vc-meeting-delivery-hub-store.js +1230 -0
  492. package/dist/services/vc-meeting-delivery-hub-store.js.map +1 -0
  493. package/dist/services/vc-meeting-delivery-protocol.d.ts +159 -0
  494. package/dist/services/vc-meeting-delivery-protocol.d.ts.map +1 -0
  495. package/dist/services/vc-meeting-delivery-protocol.js +443 -0
  496. package/dist/services/vc-meeting-delivery-protocol.js.map +1 -0
  497. package/dist/services/vc-meeting-delivery-receiver.d.ts +80 -0
  498. package/dist/services/vc-meeting-delivery-receiver.d.ts.map +1 -0
  499. package/dist/services/vc-meeting-delivery-receiver.js +543 -0
  500. package/dist/services/vc-meeting-delivery-receiver.js.map +1 -0
  501. package/dist/services/vc-meeting-delivery-store.d.ts +339 -0
  502. package/dist/services/vc-meeting-delivery-store.d.ts.map +1 -0
  503. package/dist/services/vc-meeting-delivery-store.js +1024 -0
  504. package/dist/services/vc-meeting-delivery-store.js.map +1 -0
  505. package/dist/services/vc-meeting-feed-metadata-store.d.ts +58 -0
  506. package/dist/services/vc-meeting-feed-metadata-store.d.ts.map +1 -0
  507. package/dist/services/vc-meeting-feed-metadata-store.js +356 -0
  508. package/dist/services/vc-meeting-feed-metadata-store.js.map +1 -0
  509. package/dist/services/vc-meeting-im-reply.d.ts +55 -0
  510. package/dist/services/vc-meeting-im-reply.d.ts.map +1 -0
  511. package/dist/services/vc-meeting-im-reply.js +279 -0
  512. package/dist/services/vc-meeting-im-reply.js.map +1 -0
  513. package/dist/services/vc-meeting-im-routing.d.ts +131 -0
  514. package/dist/services/vc-meeting-im-routing.d.ts.map +1 -0
  515. package/dist/services/vc-meeting-im-routing.js +449 -0
  516. package/dist/services/vc-meeting-im-routing.js.map +1 -0
  517. package/dist/services/vc-meeting-listener-message-store.d.ts +23 -0
  518. package/dist/services/vc-meeting-listener-message-store.d.ts.map +1 -0
  519. package/dist/services/vc-meeting-listener-message-store.js +142 -0
  520. package/dist/services/vc-meeting-listener-message-store.js.map +1 -0
  521. package/dist/services/vc-meeting-member-policy.d.ts +37 -0
  522. package/dist/services/vc-meeting-member-policy.d.ts.map +1 -0
  523. package/dist/services/vc-meeting-member-policy.js +102 -0
  524. package/dist/services/vc-meeting-member-policy.js.map +1 -0
  525. package/dist/services/vc-meeting-profile-instructions.d.ts +22 -0
  526. package/dist/services/vc-meeting-profile-instructions.d.ts.map +1 -0
  527. package/dist/services/vc-meeting-profile-instructions.js +64 -0
  528. package/dist/services/vc-meeting-profile-instructions.js.map +1 -0
  529. package/dist/services/vc-meeting-runtime-store.d.ts +63 -0
  530. package/dist/services/vc-meeting-runtime-store.d.ts.map +1 -1
  531. package/dist/services/vc-meeting-runtime-store.js +605 -116
  532. package/dist/services/vc-meeting-runtime-store.js.map +1 -1
  533. package/dist/services/vc-meeting-send-policy.d.ts +89 -0
  534. package/dist/services/vc-meeting-send-policy.d.ts.map +1 -0
  535. package/dist/services/vc-meeting-send-policy.js +150 -0
  536. package/dist/services/vc-meeting-send-policy.js.map +1 -0
  537. package/dist/services/vc-meeting-terminal-reconciler.d.ts +93 -0
  538. package/dist/services/vc-meeting-terminal-reconciler.d.ts.map +1 -0
  539. package/dist/services/vc-meeting-terminal-reconciler.js +198 -0
  540. package/dist/services/vc-meeting-terminal-reconciler.js.map +1 -0
  541. package/dist/setup/open-platform-automation.d.ts +2 -0
  542. package/dist/setup/open-platform-automation.d.ts.map +1 -1
  543. package/dist/setup/open-platform-automation.js +1 -0
  544. package/dist/setup/open-platform-automation.js.map +1 -1
  545. package/dist/setup/open-platform-outcome.d.ts +50 -0
  546. package/dist/setup/open-platform-outcome.d.ts.map +1 -0
  547. package/dist/setup/open-platform-outcome.js +56 -0
  548. package/dist/setup/open-platform-outcome.js.map +1 -0
  549. package/dist/setup/setup-args.d.ts +7 -2
  550. package/dist/setup/setup-args.d.ts.map +1 -1
  551. package/dist/setup/setup-args.js +21 -5
  552. package/dist/setup/setup-args.js.map +1 -1
  553. package/dist/skills/definitions.d.ts.map +1 -1
  554. package/dist/skills/definitions.js +66 -54
  555. package/dist/skills/definitions.js.map +1 -1
  556. package/dist/skills/injection-mode.d.ts +5 -4
  557. package/dist/skills/injection-mode.d.ts.map +1 -1
  558. package/dist/skills/injection-mode.js +19 -10
  559. package/dist/skills/injection-mode.js.map +1 -1
  560. package/dist/types.d.ts +187 -0
  561. package/dist/types.d.ts.map +1 -1
  562. package/dist/utils/canonical-input-hash.d.ts +5 -0
  563. package/dist/utils/canonical-input-hash.d.ts.map +1 -0
  564. package/dist/utils/canonical-input-hash.js +43 -0
  565. package/dist/utils/canonical-input-hash.js.map +1 -0
  566. package/dist/utils/canonical-json.d.ts +10 -0
  567. package/dist/utils/canonical-json.d.ts.map +1 -0
  568. package/dist/utils/canonical-json.js +23 -0
  569. package/dist/utils/canonical-json.js.map +1 -0
  570. package/dist/utils/child-env.d.ts +1 -1
  571. package/dist/utils/child-env.d.ts.map +1 -1
  572. package/dist/utils/child-env.js +8 -0
  573. package/dist/utils/child-env.js.map +1 -1
  574. package/dist/utils/daemon-discovery.d.ts +4 -0
  575. package/dist/utils/daemon-discovery.d.ts.map +1 -1
  576. package/dist/utils/daemon-discovery.js +12 -6
  577. package/dist/utils/daemon-discovery.js.map +1 -1
  578. package/dist/utils/file-lock.d.ts.map +1 -1
  579. package/dist/utils/file-lock.js +696 -102
  580. package/dist/utils/file-lock.js.map +1 -1
  581. package/dist/utils/fs-durability.d.ts +20 -0
  582. package/dist/utils/fs-durability.d.ts.map +1 -0
  583. package/dist/utils/fs-durability.js +84 -0
  584. package/dist/utils/fs-durability.js.map +1 -0
  585. package/dist/utils/global-install.d.ts +5 -2
  586. package/dist/utils/global-install.d.ts.map +1 -1
  587. package/dist/utils/global-install.js +22 -4
  588. package/dist/utils/global-install.js.map +1 -1
  589. package/dist/utils/herdr-web-history.d.ts +12 -0
  590. package/dist/utils/herdr-web-history.d.ts.map +1 -0
  591. package/dist/utils/herdr-web-history.js +74 -0
  592. package/dist/utils/herdr-web-history.js.map +1 -0
  593. package/dist/utils/herdr-web-terminal-binding.d.ts +39 -0
  594. package/dist/utils/herdr-web-terminal-binding.d.ts.map +1 -0
  595. package/dist/utils/herdr-web-terminal-binding.js +56 -0
  596. package/dist/utils/herdr-web-terminal-binding.js.map +1 -0
  597. package/dist/utils/pending-input-queue.d.ts +30 -1
  598. package/dist/utils/pending-input-queue.d.ts.map +1 -1
  599. package/dist/utils/pending-input-queue.js +45 -5
  600. package/dist/utils/pending-input-queue.js.map +1 -1
  601. package/dist/vc-agent/cards.d.ts +49 -4
  602. package/dist/vc-agent/cards.d.ts.map +1 -1
  603. package/dist/vc-agent/cards.js +460 -70
  604. package/dist/vc-agent/cards.js.map +1 -1
  605. package/dist/vc-agent/polling-source.d.ts +6 -1
  606. package/dist/vc-agent/polling-source.d.ts.map +1 -1
  607. package/dist/vc-agent/polling-source.js +17 -4
  608. package/dist/vc-agent/polling-source.js.map +1 -1
  609. package/dist/worker.js +1333 -283
  610. package/dist/worker.js.map +1 -1
  611. package/dist/workflows/definition.d.ts +28 -35
  612. package/dist/workflows/definition.d.ts.map +1 -1
  613. package/dist/workflows/definition.js +7 -24
  614. package/dist/workflows/definition.js.map +1 -1
  615. package/dist/workflows/events/payloads.d.ts +28 -28
  616. package/dist/workflows/events/replay.d.ts +5 -0
  617. package/dist/workflows/events/replay.d.ts.map +1 -1
  618. package/dist/workflows/events/replay.js +6 -1
  619. package/dist/workflows/events/replay.js.map +1 -1
  620. package/dist/workflows/events/schema.d.ts +663 -663
  621. package/dist/workflows/events/schema.d.ts.map +1 -1
  622. package/dist/workflows/events/schema.js +1 -4
  623. package/dist/workflows/events/schema.js.map +1 -1
  624. package/dist/workflows/hostExecutors/botmux-schedule.d.ts +5 -4
  625. package/dist/workflows/hostExecutors/botmux-schedule.d.ts.map +1 -1
  626. package/dist/workflows/hostExecutors/botmux-schedule.js +80 -35
  627. package/dist/workflows/hostExecutors/botmux-schedule.js.map +1 -1
  628. package/dist/workflows/hostExecutors/feishu-im.d.ts +3 -3
  629. package/dist/workflows/hostExecutors/feishu-im.d.ts.map +1 -1
  630. package/dist/workflows/hostExecutors/feishu-im.js +3 -3
  631. package/dist/workflows/hostExecutors/feishu-im.js.map +1 -1
  632. package/dist/workflows/hostExecutors/feishu-reply.d.ts +1 -1
  633. package/dist/workflows/hostExecutors/feishu-reply.d.ts.map +1 -1
  634. package/dist/workflows/hostExecutors/feishu-reply.js +1 -1
  635. package/dist/workflows/hostExecutors/feishu-reply.js.map +1 -1
  636. package/dist/workflows/hostExecutors/feishu-send.d.ts +1 -1
  637. package/dist/workflows/hostExecutors/feishu-send.d.ts.map +1 -1
  638. package/dist/workflows/hostExecutors/feishu-send.js +1 -1
  639. package/dist/workflows/hostExecutors/feishu-send.js.map +1 -1
  640. package/dist/workflows/hostExecutors/index.d.ts +0 -1
  641. package/dist/workflows/hostExecutors/index.d.ts.map +1 -1
  642. package/dist/workflows/hostExecutors/index.js +0 -1
  643. package/dist/workflows/hostExecutors/index.js.map +1 -1
  644. package/dist/workflows/hostExecutors/registry.d.ts +1 -1
  645. package/dist/workflows/hostExecutors/registry.d.ts.map +1 -1
  646. package/dist/workflows/hostExecutors/types.d.ts +21 -29
  647. package/dist/workflows/hostExecutors/types.d.ts.map +1 -1
  648. package/dist/workflows/migration/v2-definition-paths.d.ts +3 -0
  649. package/dist/workflows/migration/v2-definition-paths.d.ts.map +1 -0
  650. package/dist/workflows/migration/v2-definition-paths.js +10 -0
  651. package/dist/workflows/migration/v2-definition-paths.js.map +1 -0
  652. package/dist/workflows/migration/v2-ledger.d.ts +138 -0
  653. package/dist/workflows/migration/v2-ledger.d.ts.map +1 -0
  654. package/dist/workflows/migration/v2-ledger.js +599 -0
  655. package/dist/workflows/migration/v2-ledger.js.map +1 -0
  656. package/dist/workflows/migration/v2-migration-service.d.ts +40 -0
  657. package/dist/workflows/migration/v2-migration-service.d.ts.map +1 -0
  658. package/dist/workflows/migration/v2-migration-service.js +454 -0
  659. package/dist/workflows/migration/v2-migration-service.js.map +1 -0
  660. package/dist/workflows/migration/v2-read-only-ids.d.ts +7 -0
  661. package/dist/workflows/migration/v2-read-only-ids.d.ts.map +1 -0
  662. package/dist/workflows/migration/v2-read-only-ids.js +9 -0
  663. package/dist/workflows/migration/v2-read-only-ids.js.map +1 -0
  664. package/dist/workflows/migration/v2-run-archive-schema.d.ts +976 -0
  665. package/dist/workflows/migration/v2-run-archive-schema.d.ts.map +1 -0
  666. package/dist/workflows/migration/v2-run-archive-schema.js +113 -0
  667. package/dist/workflows/migration/v2-run-archive-schema.js.map +1 -0
  668. package/dist/workflows/migration/v2-run-archive.d.ts +92 -0
  669. package/dist/workflows/migration/v2-run-archive.d.ts.map +1 -0
  670. package/dist/workflows/migration/v2-run-archive.js +1220 -0
  671. package/dist/workflows/migration/v2-run-archive.js.map +1 -0
  672. package/dist/workflows/migration/v2-scanner.d.ts +22 -0
  673. package/dist/workflows/migration/v2-scanner.d.ts.map +1 -0
  674. package/dist/workflows/migration/v2-scanner.js +114 -0
  675. package/dist/workflows/migration/v2-scanner.js.map +1 -0
  676. package/dist/workflows/migration/v2-to-v3.d.ts +32 -0
  677. package/dist/workflows/migration/v2-to-v3.d.ts.map +1 -0
  678. package/dist/workflows/migration/v2-to-v3.js +494 -0
  679. package/dist/workflows/migration/v2-to-v3.js.map +1 -0
  680. package/dist/workflows/ops-projection.d.ts.map +1 -1
  681. package/dist/workflows/ops-projection.js +4 -3
  682. package/dist/workflows/ops-projection.js.map +1 -1
  683. package/dist/workflows/shared/idempotency-key.d.ts +19 -0
  684. package/dist/workflows/shared/idempotency-key.d.ts.map +1 -0
  685. package/dist/workflows/shared/idempotency-key.js +23 -0
  686. package/dist/workflows/shared/idempotency-key.js.map +1 -0
  687. package/dist/workflows/{params.d.ts → shared/params.d.ts} +42 -6
  688. package/dist/workflows/shared/params.d.ts.map +1 -0
  689. package/dist/workflows/{params.js → shared/params.js} +91 -4
  690. package/dist/workflows/shared/params.js.map +1 -0
  691. package/dist/workflows/shared/provider-reconciler.d.ts +47 -0
  692. package/dist/workflows/shared/provider-reconciler.d.ts.map +1 -0
  693. package/dist/workflows/shared/provider-reconciler.js +17 -0
  694. package/dist/workflows/shared/provider-reconciler.js.map +1 -0
  695. package/dist/workflows/{spawn-policy.d.ts → shared/sandbox-policy.d.ts} +2 -2
  696. package/dist/workflows/shared/sandbox-policy.d.ts.map +1 -0
  697. package/dist/workflows/{spawn-policy.js → shared/sandbox-policy.js} +1 -1
  698. package/dist/workflows/shared/sandbox-policy.js.map +1 -0
  699. package/dist/workflows/shared/worker-process.d.ts +29 -0
  700. package/dist/workflows/shared/worker-process.d.ts.map +1 -0
  701. package/dist/workflows/shared/worker-process.js +56 -0
  702. package/dist/workflows/shared/worker-process.js.map +1 -0
  703. package/dist/workflows/v3/architect.d.ts.map +1 -1
  704. package/dist/workflows/v3/architect.js +16 -4
  705. package/dist/workflows/v3/architect.js.map +1 -1
  706. package/dist/workflows/v3/attempt-ledger.d.ts +23 -0
  707. package/dist/workflows/v3/attempt-ledger.d.ts.map +1 -0
  708. package/dist/workflows/v3/attempt-ledger.js +74 -0
  709. package/dist/workflows/v3/attempt-ledger.js.map +1 -0
  710. package/dist/workflows/v3/bot-resolve.d.ts +19 -1
  711. package/dist/workflows/v3/bot-resolve.d.ts.map +1 -1
  712. package/dist/workflows/v3/bot-resolve.js +129 -3
  713. package/dist/workflows/v3/bot-resolve.js.map +1 -1
  714. package/dist/workflows/v3/cli-daemon-command-authority.d.ts +59 -0
  715. package/dist/workflows/v3/cli-daemon-command-authority.d.ts.map +1 -0
  716. package/dist/workflows/v3/cli-daemon-command-authority.js +175 -0
  717. package/dist/workflows/v3/cli-daemon-command-authority.js.map +1 -0
  718. package/dist/workflows/v3/cli-run.d.ts +27 -0
  719. package/dist/workflows/v3/cli-run.d.ts.map +1 -1
  720. package/dist/workflows/v3/cli-run.js +113 -29
  721. package/dist/workflows/v3/cli-run.js.map +1 -1
  722. package/dist/workflows/v3/contract.d.ts +16 -16
  723. package/dist/workflows/v3/contract.d.ts.map +1 -1
  724. package/dist/workflows/v3/contract.js +15 -11
  725. package/dist/workflows/v3/contract.js.map +1 -1
  726. package/dist/workflows/v3/daemon-ipc-auth.d.ts +113 -0
  727. package/dist/workflows/v3/daemon-ipc-auth.d.ts.map +1 -0
  728. package/dist/workflows/v3/daemon-ipc-auth.js +294 -0
  729. package/dist/workflows/v3/daemon-ipc-auth.js.map +1 -0
  730. package/dist/workflows/v3/daemon-ipc-body.d.ts +30 -0
  731. package/dist/workflows/v3/daemon-ipc-body.d.ts.map +1 -0
  732. package/dist/workflows/v3/daemon-ipc-body.js +65 -0
  733. package/dist/workflows/v3/daemon-ipc-body.js.map +1 -0
  734. package/dist/workflows/v3/daemon-ipc-client.d.ts +32 -0
  735. package/dist/workflows/v3/daemon-ipc-client.d.ts.map +1 -0
  736. package/dist/workflows/v3/daemon-ipc-client.js +74 -0
  737. package/dist/workflows/v3/daemon-ipc-client.js.map +1 -0
  738. package/dist/workflows/v3/daemon-run.d.ts +87 -2
  739. package/dist/workflows/v3/daemon-run.d.ts.map +1 -1
  740. package/dist/workflows/v3/daemon-run.js +863 -68
  741. package/dist/workflows/v3/daemon-run.js.map +1 -1
  742. package/dist/workflows/v3/dag.d.ts +22 -8
  743. package/dist/workflows/v3/dag.d.ts.map +1 -1
  744. package/dist/workflows/v3/dag.js +214 -22
  745. package/dist/workflows/v3/dag.js.map +1 -1
  746. package/dist/workflows/v3/distillation-compiler.d.ts +36 -0
  747. package/dist/workflows/v3/distillation-compiler.d.ts.map +1 -0
  748. package/dist/workflows/v3/distillation-compiler.js +704 -0
  749. package/dist/workflows/v3/distillation-compiler.js.map +1 -0
  750. package/dist/workflows/v3/distillation-private-root.d.ts +10 -0
  751. package/dist/workflows/v3/distillation-private-root.d.ts.map +1 -0
  752. package/dist/workflows/v3/distillation-private-root.js +34 -0
  753. package/dist/workflows/v3/distillation-private-root.js.map +1 -0
  754. package/dist/workflows/v3/distillation-runner.d.ts +64 -0
  755. package/dist/workflows/v3/distillation-runner.d.ts.map +1 -0
  756. package/dist/workflows/v3/distillation-runner.js +1028 -0
  757. package/dist/workflows/v3/distillation-runner.js.map +1 -0
  758. package/dist/workflows/v3/distillation-schema.d.ts +63 -0
  759. package/dist/workflows/v3/distillation-schema.d.ts.map +1 -0
  760. package/dist/workflows/v3/distillation-schema.js +184 -0
  761. package/dist/workflows/v3/distillation-schema.js.map +1 -0
  762. package/dist/workflows/v3/distillation-service.d.ts +78 -0
  763. package/dist/workflows/v3/distillation-service.d.ts.map +1 -0
  764. package/dist/workflows/v3/distillation-service.js +416 -0
  765. package/dist/workflows/v3/distillation-service.js.map +1 -0
  766. package/dist/workflows/v3/distillation-source.d.ts +35 -0
  767. package/dist/workflows/v3/distillation-source.d.ts.map +1 -0
  768. package/dist/workflows/v3/distillation-source.js +118 -0
  769. package/dist/workflows/v3/distillation-source.js.map +1 -0
  770. package/dist/workflows/v3/distillation-store.d.ts +185 -0
  771. package/dist/workflows/v3/distillation-store.d.ts.map +1 -0
  772. package/dist/workflows/v3/distillation-store.js +1127 -0
  773. package/dist/workflows/v3/distillation-store.js.map +1 -0
  774. package/dist/workflows/v3/drive-lease.d.ts +7 -0
  775. package/dist/workflows/v3/drive-lease.d.ts.map +1 -0
  776. package/dist/workflows/v3/drive-lease.js +10 -0
  777. package/dist/workflows/v3/drive-lease.js.map +1 -0
  778. package/dist/workflows/v3/ephemeral-pool.d.ts +1 -1
  779. package/dist/workflows/v3/ephemeral-pool.d.ts.map +1 -1
  780. package/dist/workflows/v3/ephemeral-pool.js +222 -37
  781. package/dist/workflows/v3/ephemeral-pool.js.map +1 -1
  782. package/dist/workflows/v3/grill-state.d.ts +18 -3
  783. package/dist/workflows/v3/grill-state.d.ts.map +1 -1
  784. package/dist/workflows/v3/grill-state.js +22 -5
  785. package/dist/workflows/v3/grill-state.js.map +1 -1
  786. package/dist/workflows/v3/host-bindings.d.ts +40 -0
  787. package/dist/workflows/v3/host-bindings.d.ts.map +1 -0
  788. package/dist/workflows/v3/host-bindings.js +272 -0
  789. package/dist/workflows/v3/host-bindings.js.map +1 -0
  790. package/dist/workflows/v3/host-effect-ledger.d.ts +22 -0
  791. package/dist/workflows/v3/host-effect-ledger.d.ts.map +1 -0
  792. package/dist/workflows/v3/host-effect-ledger.js +110 -0
  793. package/dist/workflows/v3/host-effect-ledger.js.map +1 -0
  794. package/dist/workflows/v3/host-execution.d.ts +142 -0
  795. package/dist/workflows/v3/host-execution.d.ts.map +1 -0
  796. package/dist/workflows/v3/host-execution.js +424 -0
  797. package/dist/workflows/v3/host-execution.js.map +1 -0
  798. package/dist/workflows/v3/host.d.ts +46 -10
  799. package/dist/workflows/v3/host.d.ts.map +1 -1
  800. package/dist/workflows/v3/host.js +419 -140
  801. package/dist/workflows/v3/host.js.map +1 -1
  802. package/dist/workflows/v3/human-gate.d.ts +19 -1
  803. package/dist/workflows/v3/human-gate.d.ts.map +1 -1
  804. package/dist/workflows/v3/human-gate.js +145 -19
  805. package/dist/workflows/v3/human-gate.js.map +1 -1
  806. package/dist/workflows/v3/journal.d.ts +125 -7
  807. package/dist/workflows/v3/journal.d.ts.map +1 -1
  808. package/dist/workflows/v3/journal.js +154 -38
  809. package/dist/workflows/v3/journal.js.map +1 -1
  810. package/dist/workflows/v3/library-materialize.d.ts +88 -0
  811. package/dist/workflows/v3/library-materialize.d.ts.map +1 -0
  812. package/dist/workflows/v3/library-materialize.js +294 -0
  813. package/dist/workflows/v3/library-materialize.js.map +1 -0
  814. package/dist/workflows/v3/library-schema.d.ts +138 -0
  815. package/dist/workflows/v3/library-schema.d.ts.map +1 -0
  816. package/dist/workflows/v3/library-schema.js +573 -0
  817. package/dist/workflows/v3/library-schema.js.map +1 -0
  818. package/dist/workflows/v3/library-service.d.ts +126 -0
  819. package/dist/workflows/v3/library-service.d.ts.map +1 -0
  820. package/dist/workflows/v3/library-service.js +542 -0
  821. package/dist/workflows/v3/library-service.js.map +1 -0
  822. package/dist/workflows/v3/library-store.d.ts +124 -0
  823. package/dist/workflows/v3/library-store.d.ts.map +1 -0
  824. package/dist/workflows/v3/library-store.js +665 -0
  825. package/dist/workflows/v3/library-store.js.map +1 -0
  826. package/dist/workflows/v3/orchestrator.d.ts +9 -1
  827. package/dist/workflows/v3/orchestrator.d.ts.map +1 -1
  828. package/dist/workflows/v3/orchestrator.js +2 -1
  829. package/dist/workflows/v3/orchestrator.js.map +1 -1
  830. package/dist/workflows/v3/progress-projection.d.ts +99 -0
  831. package/dist/workflows/v3/progress-projection.d.ts.map +1 -0
  832. package/dist/workflows/v3/progress-projection.js +197 -0
  833. package/dist/workflows/v3/progress-projection.js.map +1 -0
  834. package/dist/workflows/v3/run-envelope.d.ts +1279 -0
  835. package/dist/workflows/v3/run-envelope.d.ts.map +1 -0
  836. package/dist/workflows/v3/run-envelope.js +681 -0
  837. package/dist/workflows/v3/run-envelope.js.map +1 -0
  838. package/dist/workflows/v3/runtime.d.ts +39 -7
  839. package/dist/workflows/v3/runtime.d.ts.map +1 -1
  840. package/dist/workflows/v3/runtime.js +1992 -100
  841. package/dist/workflows/v3/runtime.js.map +1 -1
  842. package/dist/workflows/v3/session-relay-client.d.ts +61 -0
  843. package/dist/workflows/v3/session-relay-client.d.ts.map +1 -0
  844. package/dist/workflows/v3/session-relay-client.js +92 -0
  845. package/dist/workflows/v3/session-relay-client.js.map +1 -0
  846. package/dist/workflows/v3/session-relay.d.ts +66 -0
  847. package/dist/workflows/v3/session-relay.d.ts.map +1 -0
  848. package/dist/workflows/v3/session-relay.js +157 -0
  849. package/dist/workflows/v3/session-relay.js.map +1 -0
  850. package/dist/workflows/v3/start-intent.d.ts +8 -0
  851. package/dist/workflows/v3/start-intent.d.ts.map +1 -0
  852. package/dist/workflows/v3/start-intent.js +34 -0
  853. package/dist/workflows/v3/start-intent.js.map +1 -0
  854. package/dist/workflows/v3/state.d.ts +11 -2
  855. package/dist/workflows/v3/state.d.ts.map +1 -1
  856. package/dist/workflows/v3/state.js +182 -10
  857. package/dist/workflows/v3/state.js.map +1 -1
  858. package/dist/workflows/v3/template-bindings.d.ts +22 -0
  859. package/dist/workflows/v3/template-bindings.d.ts.map +1 -0
  860. package/dist/workflows/v3/template-bindings.js +204 -0
  861. package/dist/workflows/v3/template-bindings.js.map +1 -0
  862. package/dist/workflows/v3/worker-fence.d.ts +158 -0
  863. package/dist/workflows/v3/worker-fence.d.ts.map +1 -0
  864. package/dist/workflows/v3/worker-fence.js +685 -0
  865. package/dist/workflows/v3/worker-fence.js.map +1 -0
  866. package/package.json +3 -2
  867. package/dist/core/dashboard-command/workflows.d.ts +0 -20
  868. package/dist/core/dashboard-command/workflows.d.ts.map +0 -1
  869. package/dist/core/dashboard-command/workflows.js +0 -45
  870. package/dist/core/dashboard-command/workflows.js.map +0 -1
  871. package/dist/dashboard/web/legacy-workflow-link.d.ts +0 -2
  872. package/dist/dashboard/web/legacy-workflow-link.d.ts.map +0 -1
  873. package/dist/dashboard/web/legacy-workflow-link.js +0 -12
  874. package/dist/dashboard/web/legacy-workflow-link.js.map +0 -1
  875. package/dist/dashboard/web/legacy-workflow-page.d.ts +0 -3
  876. package/dist/dashboard/web/legacy-workflow-page.d.ts.map +0 -1
  877. package/dist/dashboard/web/legacy-workflow-page.js +0 -717
  878. package/dist/dashboard/web/legacy-workflow-page.js.map +0 -1
  879. package/dist/dashboard/web/workflow-version-switch.d.ts +0 -8
  880. package/dist/dashboard/web/workflow-version-switch.d.ts.map +0 -1
  881. package/dist/dashboard/web/workflow-version-switch.js +0 -9
  882. package/dist/dashboard/web/workflow-version-switch.js.map +0 -1
  883. package/dist/dashboard/web/workflows.d.ts +0 -273
  884. package/dist/dashboard/web/workflows.d.ts.map +0 -1
  885. package/dist/dashboard/web/workflows.js +0 -436
  886. package/dist/dashboard/web/workflows.js.map +0 -1
  887. package/dist/dashboard/workflow-api.d.ts +0 -30
  888. package/dist/dashboard/workflow-api.d.ts.map +0 -1
  889. package/dist/dashboard/workflow-api.js +0 -397
  890. package/dist/dashboard/workflow-api.js.map +0 -1
  891. package/dist/dashboard/workflow-card-model.d.ts +0 -127
  892. package/dist/dashboard/workflow-card-model.d.ts.map +0 -1
  893. package/dist/dashboard/workflow-card-model.js +0 -186
  894. package/dist/dashboard/workflow-card-model.js.map +0 -1
  895. package/dist/dashboard/workflows-action-helpers.d.ts +0 -105
  896. package/dist/dashboard/workflows-action-helpers.d.ts.map +0 -1
  897. package/dist/dashboard/workflows-action-helpers.js +0 -196
  898. package/dist/dashboard/workflows-action-helpers.js.map +0 -1
  899. package/dist/dashboard-web/chunks/bot-defaults-page-7T7DPOV6.js +0 -4
  900. package/dist/dashboard-web/chunks/chunk-IGXYYRYJ.js +0 -1
  901. package/dist/dashboard-web/chunks/chunk-ISOD7VDX.js +0 -1
  902. package/dist/dashboard-web/chunks/chunk-PNK3HQBI.js +0 -37
  903. package/dist/dashboard-web/chunks/chunk-SRIE4MLQ.js +0 -1
  904. package/dist/dashboard-web/chunks/connectors-page-UQ4QBE45.js +0 -1
  905. package/dist/dashboard-web/chunks/legacy-workflow-page-QMC7OZXH.js +0 -2
  906. package/dist/dashboard-web/chunks/sessions-page-NNZIDHZM.js +0 -3
  907. package/dist/dashboard-web/chunks/settings-page-LJIXX5LQ.js +0 -2
  908. package/dist/dashboard-web/chunks/v3-page-YLYVHGKD.js +0 -94
  909. package/dist/dashboard-web/terminal-replay.html +0 -227
  910. package/dist/im/lark/workflow-card-handler.d.ts +0 -51
  911. package/dist/im/lark/workflow-card-handler.d.ts.map +0 -1
  912. package/dist/im/lark/workflow-card-handler.js +0 -163
  913. package/dist/im/lark/workflow-card-handler.js.map +0 -1
  914. package/dist/im/lark/workflow-cards.d.ts +0 -47
  915. package/dist/im/lark/workflow-cards.d.ts.map +0 -1
  916. package/dist/im/lark/workflow-cards.js +0 -231
  917. package/dist/im/lark/workflow-cards.js.map +0 -1
  918. package/dist/im/lark/workflow-progress-card.d.ts +0 -81
  919. package/dist/im/lark/workflow-progress-card.d.ts.map +0 -1
  920. package/dist/im/lark/workflow-progress-card.js +0 -336
  921. package/dist/im/lark/workflow-progress-card.js.map +0 -1
  922. package/dist/im/lark/workflows-card.d.ts +0 -102
  923. package/dist/im/lark/workflows-card.d.ts.map +0 -1
  924. package/dist/im/lark/workflows-card.js +0 -737
  925. package/dist/im/lark/workflows-card.js.map +0 -1
  926. package/dist/workflows/attempt-resume.d.ts +0 -119
  927. package/dist/workflows/attempt-resume.d.ts.map +0 -1
  928. package/dist/workflows/attempt-resume.js +0 -392
  929. package/dist/workflows/attempt-resume.js.map +0 -1
  930. package/dist/workflows/blob.d.ts +0 -27
  931. package/dist/workflows/blob.d.ts.map +0 -1
  932. package/dist/workflows/blob.js +0 -40
  933. package/dist/workflows/blob.js.map +0 -1
  934. package/dist/workflows/cancel-run.d.ts +0 -45
  935. package/dist/workflows/cancel-run.d.ts.map +0 -1
  936. package/dist/workflows/cancel-run.js +0 -99
  937. package/dist/workflows/cancel-run.js.map +0 -1
  938. package/dist/workflows/cancel.d.ts +0 -111
  939. package/dist/workflows/cancel.d.ts.map +0 -1
  940. package/dist/workflows/cancel.js +0 -120
  941. package/dist/workflows/cancel.js.map +0 -1
  942. package/dist/workflows/catalog.d.ts +0 -60
  943. package/dist/workflows/catalog.d.ts.map +0 -1
  944. package/dist/workflows/catalog.js +0 -119
  945. package/dist/workflows/catalog.js.map +0 -1
  946. package/dist/workflows/cold-attach.d.ts +0 -30
  947. package/dist/workflows/cold-attach.d.ts.map +0 -1
  948. package/dist/workflows/cold-attach.js +0 -40
  949. package/dist/workflows/cold-attach.js.map +0 -1
  950. package/dist/workflows/cold-scan.d.ts +0 -21
  951. package/dist/workflows/cold-scan.d.ts.map +0 -1
  952. package/dist/workflows/cold-scan.js +0 -70
  953. package/dist/workflows/cold-scan.js.map +0 -1
  954. package/dist/workflows/daemon-spawn.d.ts +0 -119
  955. package/dist/workflows/daemon-spawn.d.ts.map +0 -1
  956. package/dist/workflows/daemon-spawn.js +0 -564
  957. package/dist/workflows/daemon-spawn.js.map +0 -1
  958. package/dist/workflows/effect-input.d.ts +0 -4
  959. package/dist/workflows/effect-input.d.ts.map +0 -1
  960. package/dist/workflows/effect-input.js +0 -19
  961. package/dist/workflows/effect-input.js.map +0 -1
  962. package/dist/workflows/events/append.d.ts +0 -77
  963. package/dist/workflows/events/append.d.ts.map +0 -1
  964. package/dist/workflows/events/append.js +0 -214
  965. package/dist/workflows/events/append.js.map +0 -1
  966. package/dist/workflows/events/idempotency.d.ts +0 -77
  967. package/dist/workflows/events/idempotency.d.ts.map +0 -1
  968. package/dist/workflows/events/idempotency.js +0 -116
  969. package/dist/workflows/events/idempotency.js.map +0 -1
  970. package/dist/workflows/events/index.d.ts +0 -7
  971. package/dist/workflows/events/index.d.ts.map +0 -1
  972. package/dist/workflows/events/index.js +0 -7
  973. package/dist/workflows/events/index.js.map +0 -1
  974. package/dist/workflows/fanout.d.ts +0 -36
  975. package/dist/workflows/fanout.d.ts.map +0 -1
  976. package/dist/workflows/fanout.js +0 -115
  977. package/dist/workflows/fanout.js.map +0 -1
  978. package/dist/workflows/hostExecutors/protocol.d.ts +0 -42
  979. package/dist/workflows/hostExecutors/protocol.d.ts.map +0 -1
  980. package/dist/workflows/hostExecutors/protocol.js +0 -181
  981. package/dist/workflows/hostExecutors/protocol.js.map +0 -1
  982. package/dist/workflows/loader.d.ts +0 -30
  983. package/dist/workflows/loader.d.ts.map +0 -1
  984. package/dist/workflows/loader.js +0 -84
  985. package/dist/workflows/loader.js.map +0 -1
  986. package/dist/workflows/loop.d.ts +0 -50
  987. package/dist/workflows/loop.d.ts.map +0 -1
  988. package/dist/workflows/loop.js +0 -408
  989. package/dist/workflows/loop.js.map +0 -1
  990. package/dist/workflows/orchestrator.d.ts +0 -171
  991. package/dist/workflows/orchestrator.d.ts.map +0 -1
  992. package/dist/workflows/orchestrator.js +0 -609
  993. package/dist/workflows/orchestrator.js.map +0 -1
  994. package/dist/workflows/output-binding.d.ts +0 -77
  995. package/dist/workflows/output-binding.d.ts.map +0 -1
  996. package/dist/workflows/output-binding.js +0 -329
  997. package/dist/workflows/output-binding.js.map +0 -1
  998. package/dist/workflows/params.d.ts.map +0 -1
  999. package/dist/workflows/params.js.map +0 -1
  1000. package/dist/workflows/resume.d.ts +0 -263
  1001. package/dist/workflows/resume.d.ts.map +0 -1
  1002. package/dist/workflows/resume.js +0 -808
  1003. package/dist/workflows/resume.js.map +0 -1
  1004. package/dist/workflows/run-id.d.ts +0 -2
  1005. package/dist/workflows/run-id.d.ts.map +0 -1
  1006. package/dist/workflows/run-id.js +0 -7
  1007. package/dist/workflows/run-id.js.map +0 -1
  1008. package/dist/workflows/run-init.d.ts +0 -48
  1009. package/dist/workflows/run-init.d.ts.map +0 -1
  1010. package/dist/workflows/run-init.js +0 -100
  1011. package/dist/workflows/run-init.js.map +0 -1
  1012. package/dist/workflows/runs-dir.d.ts +0 -4
  1013. package/dist/workflows/runs-dir.d.ts.map +0 -1
  1014. package/dist/workflows/runs-dir.js +0 -15
  1015. package/dist/workflows/runs-dir.js.map +0 -1
  1016. package/dist/workflows/runtime.d.ts +0 -215
  1017. package/dist/workflows/runtime.d.ts.map +0 -1
  1018. package/dist/workflows/runtime.js +0 -630
  1019. package/dist/workflows/runtime.js.map +0 -1
  1020. package/dist/workflows/spawn-bot.d.ts +0 -165
  1021. package/dist/workflows/spawn-bot.d.ts.map +0 -1
  1022. package/dist/workflows/spawn-bot.js +0 -215
  1023. package/dist/workflows/spawn-bot.js.map +0 -1
  1024. package/dist/workflows/spawn-policy.d.ts.map +0 -1
  1025. package/dist/workflows/spawn-policy.js.map +0 -1
  1026. package/dist/workflows/system.d.ts +0 -49
  1027. package/dist/workflows/system.d.ts.map +0 -1
  1028. package/dist/workflows/system.js +0 -48
  1029. package/dist/workflows/system.js.map +0 -1
  1030. package/dist/workflows/trigger-from-envelope.d.ts +0 -13
  1031. package/dist/workflows/trigger-from-envelope.d.ts.map +0 -1
  1032. package/dist/workflows/trigger-from-envelope.js +0 -68
  1033. package/dist/workflows/trigger-from-envelope.js.map +0 -1
  1034. package/dist/workflows/trigger-run.d.ts +0 -70
  1035. package/dist/workflows/trigger-run.d.ts.map +0 -1
  1036. package/dist/workflows/trigger-run.js +0 -88
  1037. package/dist/workflows/trigger-run.js.map +0 -1
  1038. package/dist/workflows/wait.d.ts +0 -141
  1039. package/dist/workflows/wait.d.ts.map +0 -1
  1040. package/dist/workflows/wait.js +0 -203
  1041. package/dist/workflows/wait.js.map +0 -1
@@ -6,12 +6,12 @@ export declare const PayloadRefSchema: z.ZodObject<{
6
6
  schemaVersion: z.ZodNumber;
7
7
  }, "strip", z.ZodTypeAny, {
8
8
  ref: string;
9
- bytes: number;
10
9
  schemaVersion: number;
10
+ bytes: number;
11
11
  }, {
12
12
  ref: string;
13
- bytes: number;
14
13
  schemaVersion: number;
14
+ bytes: number;
15
15
  }>;
16
16
  export type PayloadRef = z.infer<typeof PayloadRefSchema>;
17
17
  export declare function isPayloadRef(p: unknown): p is PayloadRef;
@@ -122,12 +122,12 @@ export declare const RunCreatedEventSchema: z.ZodObject<{
122
122
  schemaVersion: z.ZodNumber;
123
123
  }, "strip", z.ZodTypeAny, {
124
124
  ref: string;
125
- bytes: number;
126
125
  schemaVersion: number;
126
+ bytes: number;
127
127
  }, {
128
128
  ref: string;
129
- bytes: number;
130
129
  schemaVersion: number;
130
+ bytes: number;
131
131
  }>]>;
132
132
  eventId: z.ZodString;
133
133
  runId: z.ZodString;
@@ -160,15 +160,15 @@ export declare const RunCreatedEventSchema: z.ZodObject<{
160
160
  }> | undefined;
161
161
  } | {
162
162
  ref: string;
163
- bytes: number;
164
163
  schemaVersion: number;
164
+ bytes: number;
165
165
  };
166
166
  type: "runCreated";
167
167
  runId: string;
168
+ schemaVersion: 1;
168
169
  timestamp: number;
169
170
  eventId: string;
170
- schemaVersion: 1;
171
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
171
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
172
172
  payloadHash?: string | undefined;
173
173
  }, {
174
174
  payload: {
@@ -195,15 +195,15 @@ export declare const RunCreatedEventSchema: z.ZodObject<{
195
195
  }> | undefined;
196
196
  } | {
197
197
  ref: string;
198
- bytes: number;
199
198
  schemaVersion: number;
199
+ bytes: number;
200
200
  };
201
201
  type: "runCreated";
202
202
  runId: string;
203
+ schemaVersion: 1;
203
204
  timestamp: number;
204
205
  eventId: string;
205
- schemaVersion: 1;
206
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
206
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
207
207
  payloadHash?: string | undefined;
208
208
  }>;
209
209
  export declare const RunStartedEventSchema: z.ZodObject<{
@@ -214,12 +214,12 @@ export declare const RunStartedEventSchema: z.ZodObject<{
214
214
  schemaVersion: z.ZodNumber;
215
215
  }, "strip", z.ZodTypeAny, {
216
216
  ref: string;
217
- bytes: number;
218
217
  schemaVersion: number;
218
+ bytes: number;
219
219
  }, {
220
220
  ref: string;
221
- bytes: number;
222
221
  schemaVersion: number;
222
+ bytes: number;
223
223
  }>]>;
224
224
  eventId: z.ZodString;
225
225
  runId: z.ZodString;
@@ -230,28 +230,28 @@ export declare const RunStartedEventSchema: z.ZodObject<{
230
230
  }, "strip", z.ZodTypeAny, {
231
231
  payload: {} | {
232
232
  ref: string;
233
- bytes: number;
234
233
  schemaVersion: number;
234
+ bytes: number;
235
235
  };
236
236
  type: "runStarted";
237
237
  runId: string;
238
+ schemaVersion: 1;
238
239
  timestamp: number;
239
240
  eventId: string;
240
- schemaVersion: 1;
241
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
241
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
242
242
  payloadHash?: string | undefined;
243
243
  }, {
244
244
  payload: {} | {
245
245
  ref: string;
246
- bytes: number;
247
246
  schemaVersion: number;
247
+ bytes: number;
248
248
  };
249
249
  type: "runStarted";
250
250
  runId: string;
251
+ schemaVersion: 1;
251
252
  timestamp: number;
252
253
  eventId: string;
253
- schemaVersion: 1;
254
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
254
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
255
255
  payloadHash?: string | undefined;
256
256
  }>;
257
257
  export declare const RunSucceededEventSchema: z.ZodObject<{
@@ -298,12 +298,12 @@ export declare const RunSucceededEventSchema: z.ZodObject<{
298
298
  schemaVersion: z.ZodNumber;
299
299
  }, "strip", z.ZodTypeAny, {
300
300
  ref: string;
301
- bytes: number;
302
301
  schemaVersion: number;
302
+ bytes: number;
303
303
  }, {
304
304
  ref: string;
305
- bytes: number;
306
305
  schemaVersion: number;
306
+ bytes: number;
307
307
  }>]>;
308
308
  eventId: z.ZodString;
309
309
  runId: z.ZodString;
@@ -322,15 +322,15 @@ export declare const RunSucceededEventSchema: z.ZodObject<{
322
322
  };
323
323
  } | {
324
324
  ref: string;
325
- bytes: number;
326
325
  schemaVersion: number;
326
+ bytes: number;
327
327
  };
328
328
  type: "runSucceeded";
329
329
  runId: string;
330
+ schemaVersion: 1;
330
331
  timestamp: number;
331
332
  eventId: string;
332
- schemaVersion: 1;
333
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
333
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
334
334
  payloadHash?: string | undefined;
335
335
  }, {
336
336
  payload: {
@@ -343,15 +343,15 @@ export declare const RunSucceededEventSchema: z.ZodObject<{
343
343
  };
344
344
  } | {
345
345
  ref: string;
346
- bytes: number;
347
346
  schemaVersion: number;
347
+ bytes: number;
348
348
  };
349
349
  type: "runSucceeded";
350
350
  runId: string;
351
+ schemaVersion: 1;
351
352
  timestamp: number;
352
353
  eventId: string;
353
- schemaVersion: 1;
354
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
354
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
355
355
  payloadHash?: string | undefined;
356
356
  }>;
357
357
  export declare const RunFailedEventSchema: z.ZodObject<{
@@ -371,12 +371,12 @@ export declare const RunFailedEventSchema: z.ZodObject<{
371
371
  schemaVersion: z.ZodNumber;
372
372
  }, "strip", z.ZodTypeAny, {
373
373
  ref: string;
374
- bytes: number;
375
374
  schemaVersion: number;
375
+ bytes: number;
376
376
  }, {
377
377
  ref: string;
378
- bytes: number;
379
378
  schemaVersion: number;
379
+ bytes: number;
380
380
  }>]>;
381
381
  eventId: z.ZodString;
382
382
  runId: z.ZodString;
@@ -390,15 +390,15 @@ export declare const RunFailedEventSchema: z.ZodObject<{
390
390
  rootCauseEventId: string;
391
391
  } | {
392
392
  ref: string;
393
- bytes: number;
394
393
  schemaVersion: number;
394
+ bytes: number;
395
395
  };
396
396
  type: "runFailed";
397
397
  runId: string;
398
+ schemaVersion: 1;
398
399
  timestamp: number;
399
400
  eventId: string;
400
- schemaVersion: 1;
401
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
401
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
402
402
  payloadHash?: string | undefined;
403
403
  }, {
404
404
  payload: {
@@ -406,15 +406,15 @@ export declare const RunFailedEventSchema: z.ZodObject<{
406
406
  rootCauseEventId: string;
407
407
  } | {
408
408
  ref: string;
409
- bytes: number;
410
409
  schemaVersion: number;
410
+ bytes: number;
411
411
  };
412
412
  type: "runFailed";
413
413
  runId: string;
414
+ schemaVersion: 1;
414
415
  timestamp: number;
415
416
  eventId: string;
416
- schemaVersion: 1;
417
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
417
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
418
418
  payloadHash?: string | undefined;
419
419
  }>;
420
420
  export declare const RunCanceledEventSchema: z.ZodObject<{
@@ -431,12 +431,12 @@ export declare const RunCanceledEventSchema: z.ZodObject<{
431
431
  schemaVersion: z.ZodNumber;
432
432
  }, "strip", z.ZodTypeAny, {
433
433
  ref: string;
434
- bytes: number;
435
434
  schemaVersion: number;
435
+ bytes: number;
436
436
  }, {
437
437
  ref: string;
438
- bytes: number;
439
438
  schemaVersion: number;
439
+ bytes: number;
440
440
  }>]>;
441
441
  eventId: z.ZodString;
442
442
  runId: z.ZodString;
@@ -449,30 +449,30 @@ export declare const RunCanceledEventSchema: z.ZodObject<{
449
449
  cancelOriginEventId: string;
450
450
  } | {
451
451
  ref: string;
452
- bytes: number;
453
452
  schemaVersion: number;
453
+ bytes: number;
454
454
  };
455
455
  type: "runCanceled";
456
456
  runId: string;
457
+ schemaVersion: 1;
457
458
  timestamp: number;
458
459
  eventId: string;
459
- schemaVersion: 1;
460
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
460
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
461
461
  payloadHash?: string | undefined;
462
462
  }, {
463
463
  payload: {
464
464
  cancelOriginEventId: string;
465
465
  } | {
466
466
  ref: string;
467
- bytes: number;
468
467
  schemaVersion: number;
468
+ bytes: number;
469
469
  };
470
470
  type: "runCanceled";
471
471
  runId: string;
472
+ schemaVersion: 1;
472
473
  timestamp: number;
473
474
  eventId: string;
474
- schemaVersion: 1;
475
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
475
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
476
476
  payloadHash?: string | undefined;
477
477
  }>;
478
478
  export declare const NodeWaitingEventSchema: z.ZodObject<{
@@ -495,12 +495,12 @@ export declare const NodeWaitingEventSchema: z.ZodObject<{
495
495
  schemaVersion: z.ZodNumber;
496
496
  }, "strip", z.ZodTypeAny, {
497
497
  ref: string;
498
- bytes: number;
499
498
  schemaVersion: number;
499
+ bytes: number;
500
500
  }, {
501
501
  ref: string;
502
- bytes: number;
503
502
  schemaVersion: number;
503
+ bytes: number;
504
504
  }>]>;
505
505
  eventId: z.ZodString;
506
506
  runId: z.ZodString;
@@ -515,15 +515,15 @@ export declare const NodeWaitingEventSchema: z.ZodObject<{
515
515
  deadlineAt?: number | undefined;
516
516
  } | {
517
517
  ref: string;
518
- bytes: number;
519
518
  schemaVersion: number;
519
+ bytes: number;
520
520
  };
521
521
  type: "nodeWaiting";
522
522
  runId: string;
523
+ schemaVersion: 1;
523
524
  timestamp: number;
524
525
  eventId: string;
525
- schemaVersion: 1;
526
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
526
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
527
527
  payloadHash?: string | undefined;
528
528
  }, {
529
529
  payload: {
@@ -532,15 +532,15 @@ export declare const NodeWaitingEventSchema: z.ZodObject<{
532
532
  deadlineAt?: number | undefined;
533
533
  } | {
534
534
  ref: string;
535
- bytes: number;
536
535
  schemaVersion: number;
536
+ bytes: number;
537
537
  };
538
538
  type: "nodeWaiting";
539
539
  runId: string;
540
+ schemaVersion: 1;
540
541
  timestamp: number;
541
542
  eventId: string;
542
- schemaVersion: 1;
543
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
543
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
544
544
  payloadHash?: string | undefined;
545
545
  }>;
546
546
  export declare const NodeRetryingEventSchema: z.ZodObject<{
@@ -563,12 +563,12 @@ export declare const NodeRetryingEventSchema: z.ZodObject<{
563
563
  schemaVersion: z.ZodNumber;
564
564
  }, "strip", z.ZodTypeAny, {
565
565
  ref: string;
566
- bytes: number;
567
566
  schemaVersion: number;
567
+ bytes: number;
568
568
  }, {
569
569
  ref: string;
570
- bytes: number;
571
570
  schemaVersion: number;
571
+ bytes: number;
572
572
  }>]>;
573
573
  eventId: z.ZodString;
574
574
  runId: z.ZodString;
@@ -583,15 +583,15 @@ export declare const NodeRetryingEventSchema: z.ZodObject<{
583
583
  nextBackoffMs: number;
584
584
  } | {
585
585
  ref: string;
586
- bytes: number;
587
586
  schemaVersion: number;
587
+ bytes: number;
588
588
  };
589
589
  type: "nodeRetrying";
590
590
  runId: string;
591
+ schemaVersion: 1;
591
592
  timestamp: number;
592
593
  eventId: string;
593
- schemaVersion: 1;
594
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
594
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
595
595
  payloadHash?: string | undefined;
596
596
  }, {
597
597
  payload: {
@@ -600,15 +600,15 @@ export declare const NodeRetryingEventSchema: z.ZodObject<{
600
600
  nextBackoffMs: number;
601
601
  } | {
602
602
  ref: string;
603
- bytes: number;
604
603
  schemaVersion: number;
604
+ bytes: number;
605
605
  };
606
606
  type: "nodeRetrying";
607
607
  runId: string;
608
+ schemaVersion: 1;
608
609
  timestamp: number;
609
610
  eventId: string;
610
- schemaVersion: 1;
611
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
611
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
612
612
  payloadHash?: string | undefined;
613
613
  }>;
614
614
  export declare const NodeSucceededEventSchema: z.ZodObject<{
@@ -628,12 +628,12 @@ export declare const NodeSucceededEventSchema: z.ZodObject<{
628
628
  schemaVersion: z.ZodNumber;
629
629
  }, "strip", z.ZodTypeAny, {
630
630
  ref: string;
631
- bytes: number;
632
631
  schemaVersion: number;
632
+ bytes: number;
633
633
  }, {
634
634
  ref: string;
635
- bytes: number;
636
635
  schemaVersion: number;
636
+ bytes: number;
637
637
  }>]>;
638
638
  eventId: z.ZodString;
639
639
  runId: z.ZodString;
@@ -647,15 +647,15 @@ export declare const NodeSucceededEventSchema: z.ZodObject<{
647
647
  lastActivityId: string;
648
648
  } | {
649
649
  ref: string;
650
- bytes: number;
651
650
  schemaVersion: number;
651
+ bytes: number;
652
652
  };
653
653
  type: "nodeSucceeded";
654
654
  runId: string;
655
+ schemaVersion: 1;
655
656
  timestamp: number;
656
657
  eventId: string;
657
- schemaVersion: 1;
658
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
658
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
659
659
  payloadHash?: string | undefined;
660
660
  }, {
661
661
  payload: {
@@ -663,15 +663,15 @@ export declare const NodeSucceededEventSchema: z.ZodObject<{
663
663
  lastActivityId: string;
664
664
  } | {
665
665
  ref: string;
666
- bytes: number;
667
666
  schemaVersion: number;
667
+ bytes: number;
668
668
  };
669
669
  type: "nodeSucceeded";
670
670
  runId: string;
671
+ schemaVersion: 1;
671
672
  timestamp: number;
672
673
  eventId: string;
673
- schemaVersion: 1;
674
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
674
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
675
675
  payloadHash?: string | undefined;
676
676
  }>;
677
677
  export declare const NodeFailedEventSchema: z.ZodObject<{
@@ -694,12 +694,12 @@ export declare const NodeFailedEventSchema: z.ZodObject<{
694
694
  schemaVersion: z.ZodNumber;
695
695
  }, "strip", z.ZodTypeAny, {
696
696
  ref: string;
697
- bytes: number;
698
697
  schemaVersion: number;
698
+ bytes: number;
699
699
  }, {
700
700
  ref: string;
701
- bytes: number;
702
701
  schemaVersion: number;
702
+ bytes: number;
703
703
  }>]>;
704
704
  eventId: z.ZodString;
705
705
  runId: z.ZodString;
@@ -714,15 +714,15 @@ export declare const NodeFailedEventSchema: z.ZodObject<{
714
714
  lastActivityId: string;
715
715
  } | {
716
716
  ref: string;
717
- bytes: number;
718
717
  schemaVersion: number;
718
+ bytes: number;
719
719
  };
720
720
  type: "nodeFailed";
721
721
  runId: string;
722
+ schemaVersion: 1;
722
723
  timestamp: number;
723
724
  eventId: string;
724
- schemaVersion: 1;
725
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
725
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
726
726
  payloadHash?: string | undefined;
727
727
  }, {
728
728
  payload: {
@@ -731,15 +731,15 @@ export declare const NodeFailedEventSchema: z.ZodObject<{
731
731
  lastActivityId: string;
732
732
  } | {
733
733
  ref: string;
734
- bytes: number;
735
734
  schemaVersion: number;
735
+ bytes: number;
736
736
  };
737
737
  type: "nodeFailed";
738
738
  runId: string;
739
+ schemaVersion: 1;
739
740
  timestamp: number;
740
741
  eventId: string;
741
- schemaVersion: 1;
742
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
742
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
743
743
  payloadHash?: string | undefined;
744
744
  }>;
745
745
  export declare const NodeSkippedEventSchema: z.ZodObject<{
@@ -759,12 +759,12 @@ export declare const NodeSkippedEventSchema: z.ZodObject<{
759
759
  schemaVersion: z.ZodNumber;
760
760
  }, "strip", z.ZodTypeAny, {
761
761
  ref: string;
762
- bytes: number;
763
762
  schemaVersion: number;
763
+ bytes: number;
764
764
  }, {
765
765
  ref: string;
766
- bytes: number;
767
766
  schemaVersion: number;
767
+ bytes: number;
768
768
  }>]>;
769
769
  eventId: z.ZodString;
770
770
  runId: z.ZodString;
@@ -778,15 +778,15 @@ export declare const NodeSkippedEventSchema: z.ZodObject<{
778
778
  conditionEventId: string;
779
779
  } | {
780
780
  ref: string;
781
- bytes: number;
782
781
  schemaVersion: number;
782
+ bytes: number;
783
783
  };
784
784
  type: "nodeSkipped";
785
785
  runId: string;
786
+ schemaVersion: 1;
786
787
  timestamp: number;
787
788
  eventId: string;
788
- schemaVersion: 1;
789
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
789
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
790
790
  payloadHash?: string | undefined;
791
791
  }, {
792
792
  payload: {
@@ -794,15 +794,15 @@ export declare const NodeSkippedEventSchema: z.ZodObject<{
794
794
  conditionEventId: string;
795
795
  } | {
796
796
  ref: string;
797
- bytes: number;
798
797
  schemaVersion: number;
798
+ bytes: number;
799
799
  };
800
800
  type: "nodeSkipped";
801
801
  runId: string;
802
+ schemaVersion: 1;
802
803
  timestamp: number;
803
804
  eventId: string;
804
- schemaVersion: 1;
805
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
805
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
806
806
  payloadHash?: string | undefined;
807
807
  }>;
808
808
  export declare const NodeCanceledEventSchema: z.ZodObject<{
@@ -822,12 +822,12 @@ export declare const NodeCanceledEventSchema: z.ZodObject<{
822
822
  schemaVersion: z.ZodNumber;
823
823
  }, "strip", z.ZodTypeAny, {
824
824
  ref: string;
825
- bytes: number;
826
825
  schemaVersion: number;
826
+ bytes: number;
827
827
  }, {
828
828
  ref: string;
829
- bytes: number;
830
829
  schemaVersion: number;
830
+ bytes: number;
831
831
  }>]>;
832
832
  eventId: z.ZodString;
833
833
  runId: z.ZodString;
@@ -841,15 +841,15 @@ export declare const NodeCanceledEventSchema: z.ZodObject<{
841
841
  cancelOriginEventId: string;
842
842
  } | {
843
843
  ref: string;
844
- bytes: number;
845
844
  schemaVersion: number;
845
+ bytes: number;
846
846
  };
847
847
  type: "nodeCanceled";
848
848
  runId: string;
849
+ schemaVersion: 1;
849
850
  timestamp: number;
850
851
  eventId: string;
851
- schemaVersion: 1;
852
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
852
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
853
853
  payloadHash?: string | undefined;
854
854
  }, {
855
855
  payload: {
@@ -857,15 +857,15 @@ export declare const NodeCanceledEventSchema: z.ZodObject<{
857
857
  cancelOriginEventId: string;
858
858
  } | {
859
859
  ref: string;
860
- bytes: number;
861
860
  schemaVersion: number;
861
+ bytes: number;
862
862
  };
863
863
  type: "nodeCanceled";
864
864
  runId: string;
865
+ schemaVersion: 1;
865
866
  timestamp: number;
866
867
  eventId: string;
867
- schemaVersion: 1;
868
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
868
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
869
869
  payloadHash?: string | undefined;
870
870
  }>;
871
871
  export declare const ActivityRunningEventSchema: z.ZodObject<{
@@ -888,12 +888,12 @@ export declare const ActivityRunningEventSchema: z.ZodObject<{
888
888
  schemaVersion: z.ZodNumber;
889
889
  }, "strip", z.ZodTypeAny, {
890
890
  ref: string;
891
- bytes: number;
892
891
  schemaVersion: number;
892
+ bytes: number;
893
893
  }, {
894
894
  ref: string;
895
- bytes: number;
896
895
  schemaVersion: number;
896
+ bytes: number;
897
897
  }>]>;
898
898
  eventId: z.ZodString;
899
899
  runId: z.ZodString;
@@ -908,15 +908,15 @@ export declare const ActivityRunningEventSchema: z.ZodObject<{
908
908
  leaseId: string;
909
909
  } | {
910
910
  ref: string;
911
- bytes: number;
912
911
  schemaVersion: number;
912
+ bytes: number;
913
913
  };
914
914
  type: "activityRunning";
915
915
  runId: string;
916
+ schemaVersion: 1;
916
917
  timestamp: number;
917
918
  eventId: string;
918
- schemaVersion: 1;
919
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
919
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
920
920
  payloadHash?: string | undefined;
921
921
  }, {
922
922
  payload: {
@@ -925,15 +925,15 @@ export declare const ActivityRunningEventSchema: z.ZodObject<{
925
925
  leaseId: string;
926
926
  } | {
927
927
  ref: string;
928
- bytes: number;
929
928
  schemaVersion: number;
929
+ bytes: number;
930
930
  };
931
931
  type: "activityRunning";
932
932
  runId: string;
933
+ schemaVersion: 1;
933
934
  timestamp: number;
934
935
  eventId: string;
935
- schemaVersion: 1;
936
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
936
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
937
937
  payloadHash?: string | undefined;
938
938
  }>;
939
939
  export declare const ActivityWaitingEventSchema: z.ZodObject<{
@@ -953,12 +953,12 @@ export declare const ActivityWaitingEventSchema: z.ZodObject<{
953
953
  schemaVersion: z.ZodNumber;
954
954
  }, "strip", z.ZodTypeAny, {
955
955
  ref: string;
956
- bytes: number;
957
956
  schemaVersion: number;
957
+ bytes: number;
958
958
  }, {
959
959
  ref: string;
960
- bytes: number;
961
960
  schemaVersion: number;
961
+ bytes: number;
962
962
  }>]>;
963
963
  eventId: z.ZodString;
964
964
  runId: z.ZodString;
@@ -972,15 +972,15 @@ export declare const ActivityWaitingEventSchema: z.ZodObject<{
972
972
  activityId: string;
973
973
  } | {
974
974
  ref: string;
975
- bytes: number;
976
975
  schemaVersion: number;
976
+ bytes: number;
977
977
  };
978
978
  type: "activityWaiting";
979
979
  runId: string;
980
+ schemaVersion: 1;
980
981
  timestamp: number;
981
982
  eventId: string;
982
- schemaVersion: 1;
983
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
983
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
984
984
  payloadHash?: string | undefined;
985
985
  }, {
986
986
  payload: {
@@ -988,15 +988,15 @@ export declare const ActivityWaitingEventSchema: z.ZodObject<{
988
988
  activityId: string;
989
989
  } | {
990
990
  ref: string;
991
- bytes: number;
992
991
  schemaVersion: number;
992
+ bytes: number;
993
993
  };
994
994
  type: "activityWaiting";
995
995
  runId: string;
996
+ schemaVersion: 1;
996
997
  timestamp: number;
997
998
  eventId: string;
998
- schemaVersion: 1;
999
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
999
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
1000
1000
  payloadHash?: string | undefined;
1001
1001
  }>;
1002
1002
  export declare const ActivityTimedOutEventSchema: z.ZodObject<{
@@ -1025,12 +1025,12 @@ export declare const ActivityTimedOutEventSchema: z.ZodObject<{
1025
1025
  schemaVersion: z.ZodNumber;
1026
1026
  }, "strip", z.ZodTypeAny, {
1027
1027
  ref: string;
1028
- bytes: number;
1029
1028
  schemaVersion: number;
1029
+ bytes: number;
1030
1030
  }, {
1031
1031
  ref: string;
1032
- bytes: number;
1033
1032
  schemaVersion: number;
1033
+ bytes: number;
1034
1034
  }>]>;
1035
1035
  eventId: z.ZodString;
1036
1036
  runId: z.ZodString;
@@ -1047,15 +1047,15 @@ export declare const ActivityTimedOutEventSchema: z.ZodObject<{
1047
1047
  runningMs: number;
1048
1048
  } | {
1049
1049
  ref: string;
1050
- bytes: number;
1051
1050
  schemaVersion: number;
1051
+ bytes: number;
1052
1052
  };
1053
1053
  type: "activityTimedOut";
1054
1054
  runId: string;
1055
+ schemaVersion: 1;
1055
1056
  timestamp: number;
1056
1057
  eventId: string;
1057
- schemaVersion: 1;
1058
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1058
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
1059
1059
  payloadHash?: string | undefined;
1060
1060
  }, {
1061
1061
  payload: {
@@ -1066,15 +1066,15 @@ export declare const ActivityTimedOutEventSchema: z.ZodObject<{
1066
1066
  runningMs: number;
1067
1067
  } | {
1068
1068
  ref: string;
1069
- bytes: number;
1070
1069
  schemaVersion: number;
1070
+ bytes: number;
1071
1071
  };
1072
1072
  type: "activityTimedOut";
1073
1073
  runId: string;
1074
+ schemaVersion: 1;
1074
1075
  timestamp: number;
1075
1076
  eventId: string;
1076
- schemaVersion: 1;
1077
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1077
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
1078
1078
  payloadHash?: string | undefined;
1079
1079
  }>;
1080
1080
  export declare const LoopStartedEventSchema: z.ZodObject<{
@@ -1094,12 +1094,12 @@ export declare const LoopStartedEventSchema: z.ZodObject<{
1094
1094
  schemaVersion: z.ZodNumber;
1095
1095
  }, "strip", z.ZodTypeAny, {
1096
1096
  ref: string;
1097
- bytes: number;
1098
1097
  schemaVersion: number;
1098
+ bytes: number;
1099
1099
  }, {
1100
1100
  ref: string;
1101
- bytes: number;
1102
1101
  schemaVersion: number;
1102
+ bytes: number;
1103
1103
  }>]>;
1104
1104
  eventId: z.ZodString;
1105
1105
  runId: z.ZodString;
@@ -1113,15 +1113,15 @@ export declare const LoopStartedEventSchema: z.ZodObject<{
1113
1113
  loopId: string;
1114
1114
  } | {
1115
1115
  ref: string;
1116
- bytes: number;
1117
1116
  schemaVersion: number;
1117
+ bytes: number;
1118
1118
  };
1119
1119
  type: "loopStarted";
1120
1120
  runId: string;
1121
+ schemaVersion: 1;
1121
1122
  timestamp: number;
1122
1123
  eventId: string;
1123
- schemaVersion: 1;
1124
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1124
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
1125
1125
  payloadHash?: string | undefined;
1126
1126
  }, {
1127
1127
  payload: {
@@ -1129,15 +1129,15 @@ export declare const LoopStartedEventSchema: z.ZodObject<{
1129
1129
  loopId: string;
1130
1130
  } | {
1131
1131
  ref: string;
1132
- bytes: number;
1133
1132
  schemaVersion: number;
1133
+ bytes: number;
1134
1134
  };
1135
1135
  type: "loopStarted";
1136
1136
  runId: string;
1137
+ schemaVersion: 1;
1137
1138
  timestamp: number;
1138
1139
  eventId: string;
1139
- schemaVersion: 1;
1140
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1140
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
1141
1141
  payloadHash?: string | undefined;
1142
1142
  }>;
1143
1143
  export declare const LoopIterationStartedEventSchema: z.ZodObject<{
@@ -1160,12 +1160,12 @@ export declare const LoopIterationStartedEventSchema: z.ZodObject<{
1160
1160
  schemaVersion: z.ZodNumber;
1161
1161
  }, "strip", z.ZodTypeAny, {
1162
1162
  ref: string;
1163
- bytes: number;
1164
1163
  schemaVersion: number;
1164
+ bytes: number;
1165
1165
  }, {
1166
1166
  ref: string;
1167
- bytes: number;
1168
1167
  schemaVersion: number;
1168
+ bytes: number;
1169
1169
  }>]>;
1170
1170
  eventId: z.ZodString;
1171
1171
  runId: z.ZodString;
@@ -1180,15 +1180,15 @@ export declare const LoopIterationStartedEventSchema: z.ZodObject<{
1180
1180
  prevResolution: "rejected" | "initial";
1181
1181
  } | {
1182
1182
  ref: string;
1183
- bytes: number;
1184
1183
  schemaVersion: number;
1184
+ bytes: number;
1185
1185
  };
1186
1186
  type: "loopIterationStarted";
1187
1187
  runId: string;
1188
+ schemaVersion: 1;
1188
1189
  timestamp: number;
1189
1190
  eventId: string;
1190
- schemaVersion: 1;
1191
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1191
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
1192
1192
  payloadHash?: string | undefined;
1193
1193
  }, {
1194
1194
  payload: {
@@ -1197,15 +1197,15 @@ export declare const LoopIterationStartedEventSchema: z.ZodObject<{
1197
1197
  prevResolution: "rejected" | "initial";
1198
1198
  } | {
1199
1199
  ref: string;
1200
- bytes: number;
1201
1200
  schemaVersion: number;
1201
+ bytes: number;
1202
1202
  };
1203
1203
  type: "loopIterationStarted";
1204
1204
  runId: string;
1205
+ schemaVersion: 1;
1205
1206
  timestamp: number;
1206
1207
  eventId: string;
1207
- schemaVersion: 1;
1208
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1208
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
1209
1209
  payloadHash?: string | undefined;
1210
1210
  }>;
1211
1211
  export declare const LoopIterationFinishedEventSchema: z.ZodObject<{
@@ -1223,18 +1223,18 @@ export declare const LoopIterationFinishedEventSchema: z.ZodObject<{
1223
1223
  loopId: string;
1224
1224
  iteration: number;
1225
1225
  resolution: "approved" | "rejected";
1226
+ by: string;
1226
1227
  decisionActivityId: string;
1227
1228
  waitResolvedEventId: string;
1228
- by: string;
1229
1229
  timedOut?: boolean | undefined;
1230
1230
  comment?: string | undefined;
1231
1231
  }, {
1232
1232
  loopId: string;
1233
1233
  iteration: number;
1234
1234
  resolution: "approved" | "rejected";
1235
+ by: string;
1235
1236
  decisionActivityId: string;
1236
1237
  waitResolvedEventId: string;
1237
- by: string;
1238
1238
  timedOut?: boolean | undefined;
1239
1239
  comment?: string | undefined;
1240
1240
  }>, z.ZodObject<{
@@ -1243,12 +1243,12 @@ export declare const LoopIterationFinishedEventSchema: z.ZodObject<{
1243
1243
  schemaVersion: z.ZodNumber;
1244
1244
  }, "strip", z.ZodTypeAny, {
1245
1245
  ref: string;
1246
- bytes: number;
1247
1246
  schemaVersion: number;
1247
+ bytes: number;
1248
1248
  }, {
1249
1249
  ref: string;
1250
- bytes: number;
1251
1250
  schemaVersion: number;
1251
+ bytes: number;
1252
1252
  }>]>;
1253
1253
  eventId: z.ZodString;
1254
1254
  runId: z.ZodString;
@@ -1261,44 +1261,44 @@ export declare const LoopIterationFinishedEventSchema: z.ZodObject<{
1261
1261
  loopId: string;
1262
1262
  iteration: number;
1263
1263
  resolution: "approved" | "rejected";
1264
+ by: string;
1264
1265
  decisionActivityId: string;
1265
1266
  waitResolvedEventId: string;
1266
- by: string;
1267
1267
  timedOut?: boolean | undefined;
1268
1268
  comment?: string | undefined;
1269
1269
  } | {
1270
1270
  ref: string;
1271
- bytes: number;
1272
1271
  schemaVersion: number;
1272
+ bytes: number;
1273
1273
  };
1274
1274
  type: "loopIterationFinished";
1275
1275
  runId: string;
1276
+ schemaVersion: 1;
1276
1277
  timestamp: number;
1277
1278
  eventId: string;
1278
- schemaVersion: 1;
1279
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1279
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
1280
1280
  payloadHash?: string | undefined;
1281
1281
  }, {
1282
1282
  payload: {
1283
1283
  loopId: string;
1284
1284
  iteration: number;
1285
1285
  resolution: "approved" | "rejected";
1286
+ by: string;
1286
1287
  decisionActivityId: string;
1287
1288
  waitResolvedEventId: string;
1288
- by: string;
1289
1289
  timedOut?: boolean | undefined;
1290
1290
  comment?: string | undefined;
1291
1291
  } | {
1292
1292
  ref: string;
1293
- bytes: number;
1294
1293
  schemaVersion: number;
1294
+ bytes: number;
1295
1295
  };
1296
1296
  type: "loopIterationFinished";
1297
1297
  runId: string;
1298
+ schemaVersion: 1;
1298
1299
  timestamp: number;
1299
1300
  eventId: string;
1300
- schemaVersion: 1;
1301
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1301
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
1302
1302
  payloadHash?: string | undefined;
1303
1303
  }>;
1304
1304
  export declare const LoopFinishedEventSchema: z.ZodObject<{
@@ -1330,9 +1330,9 @@ export declare const LoopFinishedEventSchema: z.ZodObject<{
1330
1330
  errorClass: z.ZodOptional<z.ZodEnum<["retryable", "fatal", "userFault", "manual"]>>;
1331
1331
  }, "strip", z.ZodTypeAny, {
1332
1332
  loopId: string;
1333
- resolution: "timeout" | "cancelled" | "approved" | "max-iterations-exceeded" | "body-failed";
1333
+ resolution: "cancelled" | "timeout" | "approved" | "max-iterations-exceeded" | "body-failed";
1334
1334
  finalIteration: number;
1335
- errorCode?: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
1335
+ errorCode?: "IdempotencyConflict" | "InputValidationFailed" | "UnknownProviderError" | "ProviderRateLimited" | "NetworkError" | "LeaseExpired" | "WorkerCrashed" | "IdempotencyInputMismatch" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
1336
1336
  errorClass?: "retryable" | "manual" | "fatal" | "userFault" | undefined;
1337
1337
  outputRef?: {
1338
1338
  outputHash: string;
@@ -1343,9 +1343,9 @@ export declare const LoopFinishedEventSchema: z.ZodObject<{
1343
1343
  } | undefined;
1344
1344
  }, {
1345
1345
  loopId: string;
1346
- resolution: "timeout" | "cancelled" | "approved" | "max-iterations-exceeded" | "body-failed";
1346
+ resolution: "cancelled" | "timeout" | "approved" | "max-iterations-exceeded" | "body-failed";
1347
1347
  finalIteration: number;
1348
- errorCode?: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
1348
+ errorCode?: "IdempotencyConflict" | "InputValidationFailed" | "UnknownProviderError" | "ProviderRateLimited" | "NetworkError" | "LeaseExpired" | "WorkerCrashed" | "IdempotencyInputMismatch" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
1349
1349
  errorClass?: "retryable" | "manual" | "fatal" | "userFault" | undefined;
1350
1350
  outputRef?: {
1351
1351
  outputHash: string;
@@ -1360,12 +1360,12 @@ export declare const LoopFinishedEventSchema: z.ZodObject<{
1360
1360
  schemaVersion: z.ZodNumber;
1361
1361
  }, "strip", z.ZodTypeAny, {
1362
1362
  ref: string;
1363
- bytes: number;
1364
1363
  schemaVersion: number;
1364
+ bytes: number;
1365
1365
  }, {
1366
1366
  ref: string;
1367
- bytes: number;
1368
1367
  schemaVersion: number;
1368
+ bytes: number;
1369
1369
  }>]>;
1370
1370
  eventId: z.ZodString;
1371
1371
  runId: z.ZodString;
@@ -1376,9 +1376,9 @@ export declare const LoopFinishedEventSchema: z.ZodObject<{
1376
1376
  }, "strip", z.ZodTypeAny, {
1377
1377
  payload: {
1378
1378
  loopId: string;
1379
- resolution: "timeout" | "cancelled" | "approved" | "max-iterations-exceeded" | "body-failed";
1379
+ resolution: "cancelled" | "timeout" | "approved" | "max-iterations-exceeded" | "body-failed";
1380
1380
  finalIteration: number;
1381
- errorCode?: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
1381
+ errorCode?: "IdempotencyConflict" | "InputValidationFailed" | "UnknownProviderError" | "ProviderRateLimited" | "NetworkError" | "LeaseExpired" | "WorkerCrashed" | "IdempotencyInputMismatch" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
1382
1382
  errorClass?: "retryable" | "manual" | "fatal" | "userFault" | undefined;
1383
1383
  outputRef?: {
1384
1384
  outputHash: string;
@@ -1389,22 +1389,22 @@ export declare const LoopFinishedEventSchema: z.ZodObject<{
1389
1389
  } | undefined;
1390
1390
  } | {
1391
1391
  ref: string;
1392
- bytes: number;
1393
1392
  schemaVersion: number;
1393
+ bytes: number;
1394
1394
  };
1395
1395
  type: "loopFinished";
1396
1396
  runId: string;
1397
+ schemaVersion: 1;
1397
1398
  timestamp: number;
1398
1399
  eventId: string;
1399
- schemaVersion: 1;
1400
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1400
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
1401
1401
  payloadHash?: string | undefined;
1402
1402
  }, {
1403
1403
  payload: {
1404
1404
  loopId: string;
1405
- resolution: "timeout" | "cancelled" | "approved" | "max-iterations-exceeded" | "body-failed";
1405
+ resolution: "cancelled" | "timeout" | "approved" | "max-iterations-exceeded" | "body-failed";
1406
1406
  finalIteration: number;
1407
- errorCode?: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
1407
+ errorCode?: "IdempotencyConflict" | "InputValidationFailed" | "UnknownProviderError" | "ProviderRateLimited" | "NetworkError" | "LeaseExpired" | "WorkerCrashed" | "IdempotencyInputMismatch" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
1408
1408
  errorClass?: "retryable" | "manual" | "fatal" | "userFault" | undefined;
1409
1409
  outputRef?: {
1410
1410
  outputHash: string;
@@ -1415,15 +1415,15 @@ export declare const LoopFinishedEventSchema: z.ZodObject<{
1415
1415
  } | undefined;
1416
1416
  } | {
1417
1417
  ref: string;
1418
- bytes: number;
1419
1418
  schemaVersion: number;
1419
+ bytes: number;
1420
1420
  };
1421
1421
  type: "loopFinished";
1422
1422
  runId: string;
1423
+ schemaVersion: 1;
1423
1424
  timestamp: number;
1424
1425
  eventId: string;
1425
- schemaVersion: 1;
1426
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1426
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
1427
1427
  payloadHash?: string | undefined;
1428
1428
  }>;
1429
1429
  export declare const ConditionEvaluatedEventSchema: z.ZodObject<{
@@ -1449,12 +1449,12 @@ export declare const ConditionEvaluatedEventSchema: z.ZodObject<{
1449
1449
  schemaVersion: z.ZodNumber;
1450
1450
  }, "strip", z.ZodTypeAny, {
1451
1451
  ref: string;
1452
- bytes: number;
1453
1452
  schemaVersion: number;
1453
+ bytes: number;
1454
1454
  }, {
1455
1455
  ref: string;
1456
- bytes: number;
1457
1456
  schemaVersion: number;
1457
+ bytes: number;
1458
1458
  }>]>;
1459
1459
  eventId: z.ZodString;
1460
1460
  runId: z.ZodString;
@@ -1470,15 +1470,15 @@ export declare const ConditionEvaluatedEventSchema: z.ZodObject<{
1470
1470
  evaluatedInputs?: Record<string, unknown> | undefined;
1471
1471
  } | {
1472
1472
  ref: string;
1473
- bytes: number;
1474
1473
  schemaVersion: number;
1474
+ bytes: number;
1475
1475
  };
1476
1476
  type: "conditionEvaluated";
1477
1477
  runId: string;
1478
+ schemaVersion: 1;
1478
1479
  timestamp: number;
1479
1480
  eventId: string;
1480
- schemaVersion: 1;
1481
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1481
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
1482
1482
  payloadHash?: string | undefined;
1483
1483
  }, {
1484
1484
  payload: {
@@ -1488,15 +1488,15 @@ export declare const ConditionEvaluatedEventSchema: z.ZodObject<{
1488
1488
  evaluatedInputs?: Record<string, unknown> | undefined;
1489
1489
  } | {
1490
1490
  ref: string;
1491
- bytes: number;
1492
1491
  schemaVersion: number;
1492
+ bytes: number;
1493
1493
  };
1494
1494
  type: "conditionEvaluated";
1495
1495
  runId: string;
1496
+ schemaVersion: 1;
1496
1497
  timestamp: number;
1497
1498
  eventId: string;
1498
- schemaVersion: 1;
1499
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1499
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
1500
1500
  payloadHash?: string | undefined;
1501
1501
  }>;
1502
1502
  export declare const LeaseSignedEventSchema: z.ZodObject<{
@@ -1525,12 +1525,12 @@ export declare const LeaseSignedEventSchema: z.ZodObject<{
1525
1525
  schemaVersion: z.ZodNumber;
1526
1526
  }, "strip", z.ZodTypeAny, {
1527
1527
  ref: string;
1528
- bytes: number;
1529
1528
  schemaVersion: number;
1529
+ bytes: number;
1530
1530
  }, {
1531
1531
  ref: string;
1532
- bytes: number;
1533
1532
  schemaVersion: number;
1533
+ bytes: number;
1534
1534
  }>]>;
1535
1535
  eventId: z.ZodString;
1536
1536
  runId: z.ZodString;
@@ -1547,15 +1547,15 @@ export declare const LeaseSignedEventSchema: z.ZodObject<{
1547
1547
  maxOutputBytes: number;
1548
1548
  } | {
1549
1549
  ref: string;
1550
- bytes: number;
1551
1550
  schemaVersion: number;
1551
+ bytes: number;
1552
1552
  };
1553
1553
  type: "leaseSigned";
1554
1554
  runId: string;
1555
+ schemaVersion: 1;
1555
1556
  timestamp: number;
1556
1557
  eventId: string;
1557
- schemaVersion: 1;
1558
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1558
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
1559
1559
  payloadHash?: string | undefined;
1560
1560
  }, {
1561
1561
  payload: {
@@ -1566,15 +1566,15 @@ export declare const LeaseSignedEventSchema: z.ZodObject<{
1566
1566
  maxOutputBytes: number;
1567
1567
  } | {
1568
1568
  ref: string;
1569
- bytes: number;
1570
1569
  schemaVersion: number;
1570
+ bytes: number;
1571
1571
  };
1572
1572
  type: "leaseSigned";
1573
1573
  runId: string;
1574
+ schemaVersion: 1;
1574
1575
  timestamp: number;
1575
1576
  eventId: string;
1576
- schemaVersion: 1;
1577
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1577
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
1578
1578
  payloadHash?: string | undefined;
1579
1579
  }>;
1580
1580
  export declare const AttemptCreatedEventSchema: z.ZodObject<{
@@ -1606,7 +1606,6 @@ export declare const AttemptCreatedEventSchema: z.ZodObject<{
1606
1606
  }, "strip", z.ZodTypeAny, {
1607
1607
  nodeId: string;
1608
1608
  attemptId: string;
1609
- activityId: string;
1610
1609
  inputRef: {
1611
1610
  outputHash: string;
1612
1611
  outputBytes: number;
@@ -1614,11 +1613,11 @@ export declare const AttemptCreatedEventSchema: z.ZodObject<{
1614
1613
  outputPath?: string | undefined;
1615
1614
  contentType?: string | undefined;
1616
1615
  };
1616
+ activityId: string;
1617
1617
  attemptNumber: number;
1618
1618
  }, {
1619
1619
  nodeId: string;
1620
1620
  attemptId: string;
1621
- activityId: string;
1622
1621
  inputRef: {
1623
1622
  outputHash: string;
1624
1623
  outputBytes: number;
@@ -1626,6 +1625,7 @@ export declare const AttemptCreatedEventSchema: z.ZodObject<{
1626
1625
  outputPath?: string | undefined;
1627
1626
  contentType?: string | undefined;
1628
1627
  };
1628
+ activityId: string;
1629
1629
  attemptNumber: number;
1630
1630
  }>, z.ZodObject<{
1631
1631
  ref: z.ZodString;
@@ -1633,12 +1633,12 @@ export declare const AttemptCreatedEventSchema: z.ZodObject<{
1633
1633
  schemaVersion: z.ZodNumber;
1634
1634
  }, "strip", z.ZodTypeAny, {
1635
1635
  ref: string;
1636
- bytes: number;
1637
1636
  schemaVersion: number;
1637
+ bytes: number;
1638
1638
  }, {
1639
1639
  ref: string;
1640
- bytes: number;
1641
1640
  schemaVersion: number;
1641
+ bytes: number;
1642
1642
  }>]>;
1643
1643
  eventId: z.ZodString;
1644
1644
  runId: z.ZodString;
@@ -1650,7 +1650,6 @@ export declare const AttemptCreatedEventSchema: z.ZodObject<{
1650
1650
  payload: {
1651
1651
  nodeId: string;
1652
1652
  attemptId: string;
1653
- activityId: string;
1654
1653
  inputRef: {
1655
1654
  outputHash: string;
1656
1655
  outputBytes: number;
@@ -1658,24 +1657,24 @@ export declare const AttemptCreatedEventSchema: z.ZodObject<{
1658
1657
  outputPath?: string | undefined;
1659
1658
  contentType?: string | undefined;
1660
1659
  };
1660
+ activityId: string;
1661
1661
  attemptNumber: number;
1662
1662
  } | {
1663
1663
  ref: string;
1664
- bytes: number;
1665
1664
  schemaVersion: number;
1665
+ bytes: number;
1666
1666
  };
1667
1667
  type: "attemptCreated";
1668
1668
  runId: string;
1669
+ schemaVersion: 1;
1669
1670
  timestamp: number;
1670
1671
  eventId: string;
1671
- schemaVersion: 1;
1672
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1672
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
1673
1673
  payloadHash?: string | undefined;
1674
1674
  }, {
1675
1675
  payload: {
1676
1676
  nodeId: string;
1677
1677
  attemptId: string;
1678
- activityId: string;
1679
1678
  inputRef: {
1680
1679
  outputHash: string;
1681
1680
  outputBytes: number;
@@ -1683,18 +1682,19 @@ export declare const AttemptCreatedEventSchema: z.ZodObject<{
1683
1682
  outputPath?: string | undefined;
1684
1683
  contentType?: string | undefined;
1685
1684
  };
1685
+ activityId: string;
1686
1686
  attemptNumber: number;
1687
1687
  } | {
1688
1688
  ref: string;
1689
- bytes: number;
1690
1689
  schemaVersion: number;
1690
+ bytes: number;
1691
1691
  };
1692
1692
  type: "attemptCreated";
1693
1693
  runId: string;
1694
+ schemaVersion: 1;
1694
1695
  timestamp: number;
1695
1696
  eventId: string;
1696
- schemaVersion: 1;
1697
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1697
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
1698
1698
  payloadHash?: string | undefined;
1699
1699
  }>;
1700
1700
  export declare const BackoffScheduledEventSchema: z.ZodObject<{
@@ -1745,12 +1745,12 @@ export declare const BackoffScheduledEventSchema: z.ZodObject<{
1745
1745
  schemaVersion: z.ZodNumber;
1746
1746
  }, "strip", z.ZodTypeAny, {
1747
1747
  ref: string;
1748
- bytes: number;
1749
1748
  schemaVersion: number;
1749
+ bytes: number;
1750
1750
  }, {
1751
1751
  ref: string;
1752
- bytes: number;
1753
1752
  schemaVersion: number;
1753
+ bytes: number;
1754
1754
  }>]>;
1755
1755
  eventId: z.ZodString;
1756
1756
  runId: z.ZodString;
@@ -1771,15 +1771,15 @@ export declare const BackoffScheduledEventSchema: z.ZodObject<{
1771
1771
  };
1772
1772
  } | {
1773
1773
  ref: string;
1774
- bytes: number;
1775
1774
  schemaVersion: number;
1775
+ bytes: number;
1776
1776
  };
1777
1777
  type: "backoffScheduled";
1778
1778
  runId: string;
1779
+ schemaVersion: 1;
1779
1780
  timestamp: number;
1780
1781
  eventId: string;
1781
- schemaVersion: 1;
1782
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1782
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
1783
1783
  payloadHash?: string | undefined;
1784
1784
  }, {
1785
1785
  payload: {
@@ -1794,15 +1794,15 @@ export declare const BackoffScheduledEventSchema: z.ZodObject<{
1794
1794
  };
1795
1795
  } | {
1796
1796
  ref: string;
1797
- bytes: number;
1798
1797
  schemaVersion: number;
1798
+ bytes: number;
1799
1799
  };
1800
1800
  type: "backoffScheduled";
1801
1801
  runId: string;
1802
+ schemaVersion: 1;
1802
1803
  timestamp: number;
1803
1804
  eventId: string;
1804
- schemaVersion: 1;
1805
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1805
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
1806
1806
  payloadHash?: string | undefined;
1807
1807
  }>;
1808
1808
  export declare const BackoffElapsedEventSchema: z.ZodObject<{
@@ -1822,12 +1822,12 @@ export declare const BackoffElapsedEventSchema: z.ZodObject<{
1822
1822
  schemaVersion: z.ZodNumber;
1823
1823
  }, "strip", z.ZodTypeAny, {
1824
1824
  ref: string;
1825
- bytes: number;
1826
1825
  schemaVersion: number;
1826
+ bytes: number;
1827
1827
  }, {
1828
1828
  ref: string;
1829
- bytes: number;
1830
1829
  schemaVersion: number;
1830
+ bytes: number;
1831
1831
  }>]>;
1832
1832
  eventId: z.ZodString;
1833
1833
  runId: z.ZodString;
@@ -1841,15 +1841,15 @@ export declare const BackoffElapsedEventSchema: z.ZodObject<{
1841
1841
  scheduledAttemptId: string;
1842
1842
  } | {
1843
1843
  ref: string;
1844
- bytes: number;
1845
1844
  schemaVersion: number;
1845
+ bytes: number;
1846
1846
  };
1847
1847
  type: "backoffElapsed";
1848
1848
  runId: string;
1849
+ schemaVersion: 1;
1849
1850
  timestamp: number;
1850
1851
  eventId: string;
1851
- schemaVersion: 1;
1852
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1852
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
1853
1853
  payloadHash?: string | undefined;
1854
1854
  }, {
1855
1855
  payload: {
@@ -1857,15 +1857,15 @@ export declare const BackoffElapsedEventSchema: z.ZodObject<{
1857
1857
  scheduledAttemptId: string;
1858
1858
  } | {
1859
1859
  ref: string;
1860
- bytes: number;
1861
1860
  schemaVersion: number;
1861
+ bytes: number;
1862
1862
  };
1863
1863
  type: "backoffElapsed";
1864
1864
  runId: string;
1865
+ schemaVersion: 1;
1865
1866
  timestamp: number;
1866
1867
  eventId: string;
1867
- schemaVersion: 1;
1868
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1868
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
1869
1869
  payloadHash?: string | undefined;
1870
1870
  }>;
1871
1871
  export declare const EffectAttemptedEventSchema: z.ZodObject<{
@@ -1879,30 +1879,30 @@ export declare const EffectAttemptedEventSchema: z.ZodObject<{
1879
1879
  provider: z.ZodString;
1880
1880
  }, "strip", z.ZodTypeAny, {
1881
1881
  attemptId: string;
1882
- activityId: string;
1883
- idempotencyKey: string;
1884
1882
  inputHash: string;
1885
- idempotencyTtlMs: number;
1883
+ idempotencyKey: string;
1886
1884
  provider: string;
1885
+ idempotencyTtlMs: number;
1886
+ activityId: string;
1887
1887
  }, {
1888
1888
  attemptId: string;
1889
- activityId: string;
1890
- idempotencyKey: string;
1891
1889
  inputHash: string;
1892
- idempotencyTtlMs: number;
1890
+ idempotencyKey: string;
1893
1891
  provider: string;
1892
+ idempotencyTtlMs: number;
1893
+ activityId: string;
1894
1894
  }>, z.ZodObject<{
1895
1895
  ref: z.ZodString;
1896
1896
  bytes: z.ZodNumber;
1897
1897
  schemaVersion: z.ZodNumber;
1898
1898
  }, "strip", z.ZodTypeAny, {
1899
1899
  ref: string;
1900
- bytes: number;
1901
1900
  schemaVersion: number;
1901
+ bytes: number;
1902
1902
  }, {
1903
1903
  ref: string;
1904
- bytes: number;
1905
1904
  schemaVersion: number;
1905
+ bytes: number;
1906
1906
  }>]>;
1907
1907
  eventId: z.ZodString;
1908
1908
  runId: z.ZodString;
@@ -1913,42 +1913,42 @@ export declare const EffectAttemptedEventSchema: z.ZodObject<{
1913
1913
  }, "strip", z.ZodTypeAny, {
1914
1914
  payload: {
1915
1915
  attemptId: string;
1916
- activityId: string;
1917
- idempotencyKey: string;
1918
1916
  inputHash: string;
1919
- idempotencyTtlMs: number;
1917
+ idempotencyKey: string;
1920
1918
  provider: string;
1919
+ idempotencyTtlMs: number;
1920
+ activityId: string;
1921
1921
  } | {
1922
1922
  ref: string;
1923
- bytes: number;
1924
1923
  schemaVersion: number;
1924
+ bytes: number;
1925
1925
  };
1926
1926
  type: "effectAttempted";
1927
1927
  runId: string;
1928
+ schemaVersion: 1;
1928
1929
  timestamp: number;
1929
1930
  eventId: string;
1930
- schemaVersion: 1;
1931
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1931
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
1932
1932
  payloadHash?: string | undefined;
1933
1933
  }, {
1934
1934
  payload: {
1935
1935
  attemptId: string;
1936
- activityId: string;
1937
- idempotencyKey: string;
1938
1936
  inputHash: string;
1939
- idempotencyTtlMs: number;
1937
+ idempotencyKey: string;
1940
1938
  provider: string;
1939
+ idempotencyTtlMs: number;
1940
+ activityId: string;
1941
1941
  } | {
1942
1942
  ref: string;
1943
- bytes: number;
1944
1943
  schemaVersion: number;
1944
+ bytes: number;
1945
1945
  };
1946
1946
  type: "effectAttempted";
1947
1947
  runId: string;
1948
+ schemaVersion: 1;
1948
1949
  timestamp: number;
1949
1950
  eventId: string;
1950
- schemaVersion: 1;
1951
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1951
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
1952
1952
  payloadHash?: string | undefined;
1953
1953
  }>;
1954
1954
  export declare const ActivitySucceededEventSchema: z.ZodObject<{
@@ -2004,12 +2004,12 @@ export declare const ActivitySucceededEventSchema: z.ZodObject<{
2004
2004
  schemaVersion: z.ZodNumber;
2005
2005
  }, "strip", z.ZodTypeAny, {
2006
2006
  ref: string;
2007
- bytes: number;
2008
2007
  schemaVersion: number;
2008
+ bytes: number;
2009
2009
  }, {
2010
2010
  ref: string;
2011
- bytes: number;
2012
2011
  schemaVersion: number;
2012
+ bytes: number;
2013
2013
  }>]>;
2014
2014
  eventId: z.ZodString;
2015
2015
  runId: z.ZodString;
@@ -2031,15 +2031,15 @@ export declare const ActivitySucceededEventSchema: z.ZodObject<{
2031
2031
  externalRefs?: Record<string, unknown> | undefined;
2032
2032
  } | {
2033
2033
  ref: string;
2034
- bytes: number;
2035
2034
  schemaVersion: number;
2035
+ bytes: number;
2036
2036
  };
2037
2037
  type: "activitySucceeded";
2038
2038
  runId: string;
2039
+ schemaVersion: 1;
2039
2040
  timestamp: number;
2040
2041
  eventId: string;
2041
- schemaVersion: 1;
2042
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2042
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
2043
2043
  payloadHash?: string | undefined;
2044
2044
  }, {
2045
2045
  payload: {
@@ -2055,15 +2055,15 @@ export declare const ActivitySucceededEventSchema: z.ZodObject<{
2055
2055
  externalRefs?: Record<string, unknown> | undefined;
2056
2056
  } | {
2057
2057
  ref: string;
2058
- bytes: number;
2059
2058
  schemaVersion: number;
2059
+ bytes: number;
2060
2060
  };
2061
2061
  type: "activitySucceeded";
2062
2062
  runId: string;
2063
+ schemaVersion: 1;
2063
2064
  timestamp: number;
2064
2065
  eventId: string;
2065
- schemaVersion: 1;
2066
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2066
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
2067
2067
  payloadHash?: string | undefined;
2068
2068
  }>;
2069
2069
  export declare const ActivityFailedEventSchema: z.ZodObject<{
@@ -2077,19 +2077,19 @@ export declare const ActivityFailedEventSchema: z.ZodObject<{
2077
2077
  errorMessage: z.ZodString;
2078
2078
  stackRef: z.ZodOptional<z.ZodString>;
2079
2079
  }, "strip", z.ZodTypeAny, {
2080
- errorCode: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
2080
+ errorCode: "IdempotencyConflict" | "InputValidationFailed" | "UnknownProviderError" | "ProviderRateLimited" | "NetworkError" | "LeaseExpired" | "WorkerCrashed" | "IdempotencyInputMismatch" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
2081
2081
  errorClass: "retryable" | "manual" | "fatal" | "userFault";
2082
2082
  errorMessage: string;
2083
2083
  stackRef?: string | undefined;
2084
2084
  }, {
2085
- errorCode: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
2085
+ errorCode: "IdempotencyConflict" | "InputValidationFailed" | "UnknownProviderError" | "ProviderRateLimited" | "NetworkError" | "LeaseExpired" | "WorkerCrashed" | "IdempotencyInputMismatch" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
2086
2086
  errorClass: "retryable" | "manual" | "fatal" | "userFault";
2087
2087
  errorMessage: string;
2088
2088
  stackRef?: string | undefined;
2089
2089
  }>;
2090
2090
  }, "strip", z.ZodTypeAny, {
2091
2091
  error: {
2092
- errorCode: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
2092
+ errorCode: "IdempotencyConflict" | "InputValidationFailed" | "UnknownProviderError" | "ProviderRateLimited" | "NetworkError" | "LeaseExpired" | "WorkerCrashed" | "IdempotencyInputMismatch" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
2093
2093
  errorClass: "retryable" | "manual" | "fatal" | "userFault";
2094
2094
  errorMessage: string;
2095
2095
  stackRef?: string | undefined;
@@ -2098,7 +2098,7 @@ export declare const ActivityFailedEventSchema: z.ZodObject<{
2098
2098
  activityId: string;
2099
2099
  }, {
2100
2100
  error: {
2101
- errorCode: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
2101
+ errorCode: "IdempotencyConflict" | "InputValidationFailed" | "UnknownProviderError" | "ProviderRateLimited" | "NetworkError" | "LeaseExpired" | "WorkerCrashed" | "IdempotencyInputMismatch" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
2102
2102
  errorClass: "retryable" | "manual" | "fatal" | "userFault";
2103
2103
  errorMessage: string;
2104
2104
  stackRef?: string | undefined;
@@ -2111,12 +2111,12 @@ export declare const ActivityFailedEventSchema: z.ZodObject<{
2111
2111
  schemaVersion: z.ZodNumber;
2112
2112
  }, "strip", z.ZodTypeAny, {
2113
2113
  ref: string;
2114
- bytes: number;
2115
2114
  schemaVersion: number;
2115
+ bytes: number;
2116
2116
  }, {
2117
2117
  ref: string;
2118
- bytes: number;
2119
2118
  schemaVersion: number;
2119
+ bytes: number;
2120
2120
  }>]>;
2121
2121
  eventId: z.ZodString;
2122
2122
  runId: z.ZodString;
@@ -2127,7 +2127,7 @@ export declare const ActivityFailedEventSchema: z.ZodObject<{
2127
2127
  }, "strip", z.ZodTypeAny, {
2128
2128
  payload: {
2129
2129
  error: {
2130
- errorCode: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
2130
+ errorCode: "IdempotencyConflict" | "InputValidationFailed" | "UnknownProviderError" | "ProviderRateLimited" | "NetworkError" | "LeaseExpired" | "WorkerCrashed" | "IdempotencyInputMismatch" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
2131
2131
  errorClass: "retryable" | "manual" | "fatal" | "userFault";
2132
2132
  errorMessage: string;
2133
2133
  stackRef?: string | undefined;
@@ -2136,20 +2136,20 @@ export declare const ActivityFailedEventSchema: z.ZodObject<{
2136
2136
  activityId: string;
2137
2137
  } | {
2138
2138
  ref: string;
2139
- bytes: number;
2140
2139
  schemaVersion: number;
2140
+ bytes: number;
2141
2141
  };
2142
2142
  type: "activityFailed";
2143
2143
  runId: string;
2144
+ schemaVersion: 1;
2144
2145
  timestamp: number;
2145
2146
  eventId: string;
2146
- schemaVersion: 1;
2147
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2147
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
2148
2148
  payloadHash?: string | undefined;
2149
2149
  }, {
2150
2150
  payload: {
2151
2151
  error: {
2152
- errorCode: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
2152
+ errorCode: "IdempotencyConflict" | "InputValidationFailed" | "UnknownProviderError" | "ProviderRateLimited" | "NetworkError" | "LeaseExpired" | "WorkerCrashed" | "IdempotencyInputMismatch" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
2153
2153
  errorClass: "retryable" | "manual" | "fatal" | "userFault";
2154
2154
  errorMessage: string;
2155
2155
  stackRef?: string | undefined;
@@ -2158,15 +2158,15 @@ export declare const ActivityFailedEventSchema: z.ZodObject<{
2158
2158
  activityId: string;
2159
2159
  } | {
2160
2160
  ref: string;
2161
- bytes: number;
2162
2161
  schemaVersion: number;
2162
+ bytes: number;
2163
2163
  };
2164
2164
  type: "activityFailed";
2165
2165
  runId: string;
2166
+ schemaVersion: 1;
2166
2167
  timestamp: number;
2167
2168
  eventId: string;
2168
- schemaVersion: 1;
2169
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2169
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
2170
2170
  payloadHash?: string | undefined;
2171
2171
  }>;
2172
2172
  export declare const WaitCreatedEventSchema: z.ZodObject<{
@@ -2237,12 +2237,12 @@ export declare const WaitCreatedEventSchema: z.ZodObject<{
2237
2237
  schemaVersion: z.ZodNumber;
2238
2238
  }, "strip", z.ZodTypeAny, {
2239
2239
  ref: string;
2240
- bytes: number;
2241
2240
  schemaVersion: number;
2241
+ bytes: number;
2242
2242
  }, {
2243
2243
  ref: string;
2244
- bytes: number;
2245
2244
  schemaVersion: number;
2245
+ bytes: number;
2246
2246
  }>]>;
2247
2247
  eventId: z.ZodString;
2248
2248
  runId: z.ZodString;
@@ -2269,15 +2269,15 @@ export declare const WaitCreatedEventSchema: z.ZodObject<{
2269
2269
  onTimeout?: "fail" | "success" | undefined;
2270
2270
  } | {
2271
2271
  ref: string;
2272
- bytes: number;
2273
2272
  schemaVersion: number;
2273
+ bytes: number;
2274
2274
  };
2275
2275
  type: "waitCreated";
2276
2276
  runId: string;
2277
+ schemaVersion: 1;
2277
2278
  timestamp: number;
2278
2279
  eventId: string;
2279
- schemaVersion: 1;
2280
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2280
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
2281
2281
  payloadHash?: string | undefined;
2282
2282
  }, {
2283
2283
  payload: {
@@ -2298,15 +2298,15 @@ export declare const WaitCreatedEventSchema: z.ZodObject<{
2298
2298
  onTimeout?: "fail" | "success" | undefined;
2299
2299
  } | {
2300
2300
  ref: string;
2301
- bytes: number;
2302
2301
  schemaVersion: number;
2302
+ bytes: number;
2303
2303
  };
2304
2304
  type: "waitCreated";
2305
2305
  runId: string;
2306
+ schemaVersion: 1;
2306
2307
  timestamp: number;
2307
2308
  eventId: string;
2308
- schemaVersion: 1;
2309
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2309
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
2310
2310
  payloadHash?: string | undefined;
2311
2311
  }>;
2312
2312
  export declare const WaitResolvedEventSchema: z.ZodObject<{
@@ -2317,14 +2317,14 @@ export declare const WaitResolvedEventSchema: z.ZodObject<{
2317
2317
  by: z.ZodString;
2318
2318
  comment: z.ZodOptional<z.ZodString>;
2319
2319
  }, "strip", z.ZodTypeAny, {
2320
- activityId: string;
2321
2320
  resolution: "approved" | "rejected" | "external";
2322
2321
  by: string;
2322
+ activityId: string;
2323
2323
  comment?: string | undefined;
2324
2324
  }, {
2325
- activityId: string;
2326
2325
  resolution: "approved" | "rejected" | "external";
2327
2326
  by: string;
2327
+ activityId: string;
2328
2328
  comment?: string | undefined;
2329
2329
  }>, z.ZodObject<{
2330
2330
  ref: z.ZodString;
@@ -2332,12 +2332,12 @@ export declare const WaitResolvedEventSchema: z.ZodObject<{
2332
2332
  schemaVersion: z.ZodNumber;
2333
2333
  }, "strip", z.ZodTypeAny, {
2334
2334
  ref: string;
2335
- bytes: number;
2336
2335
  schemaVersion: number;
2336
+ bytes: number;
2337
2337
  }, {
2338
2338
  ref: string;
2339
- bytes: number;
2340
2339
  schemaVersion: number;
2340
+ bytes: number;
2341
2341
  }>]>;
2342
2342
  eventId: z.ZodString;
2343
2343
  runId: z.ZodString;
@@ -2347,39 +2347,39 @@ export declare const WaitResolvedEventSchema: z.ZodObject<{
2347
2347
  payloadHash: z.ZodOptional<z.ZodString>;
2348
2348
  }, "strip", z.ZodTypeAny, {
2349
2349
  payload: {
2350
- activityId: string;
2351
2350
  resolution: "approved" | "rejected" | "external";
2352
2351
  by: string;
2352
+ activityId: string;
2353
2353
  comment?: string | undefined;
2354
2354
  } | {
2355
2355
  ref: string;
2356
- bytes: number;
2357
2356
  schemaVersion: number;
2357
+ bytes: number;
2358
2358
  };
2359
2359
  type: "waitResolved";
2360
2360
  runId: string;
2361
+ schemaVersion: 1;
2361
2362
  timestamp: number;
2362
2363
  eventId: string;
2363
- schemaVersion: 1;
2364
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2364
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
2365
2365
  payloadHash?: string | undefined;
2366
2366
  }, {
2367
2367
  payload: {
2368
- activityId: string;
2369
2368
  resolution: "approved" | "rejected" | "external";
2370
2369
  by: string;
2370
+ activityId: string;
2371
2371
  comment?: string | undefined;
2372
2372
  } | {
2373
2373
  ref: string;
2374
- bytes: number;
2375
2374
  schemaVersion: number;
2375
+ bytes: number;
2376
2376
  };
2377
2377
  type: "waitResolved";
2378
2378
  runId: string;
2379
+ schemaVersion: 1;
2379
2380
  timestamp: number;
2380
2381
  eventId: string;
2381
- schemaVersion: 1;
2382
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2382
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
2383
2383
  payloadHash?: string | undefined;
2384
2384
  }>;
2385
2385
  export declare const WaitDeadlineExceededEventSchema: z.ZodObject<{
@@ -2389,12 +2389,12 @@ export declare const WaitDeadlineExceededEventSchema: z.ZodObject<{
2389
2389
  deadlineAt: z.ZodNumber;
2390
2390
  exceededAtMs: z.ZodNumber;
2391
2391
  }, "strip", z.ZodTypeAny, {
2392
- activityId: string;
2393
2392
  deadlineAt: number;
2393
+ activityId: string;
2394
2394
  exceededAtMs: number;
2395
2395
  }, {
2396
- activityId: string;
2397
2396
  deadlineAt: number;
2397
+ activityId: string;
2398
2398
  exceededAtMs: number;
2399
2399
  }>, z.ZodObject<{
2400
2400
  ref: z.ZodString;
@@ -2402,12 +2402,12 @@ export declare const WaitDeadlineExceededEventSchema: z.ZodObject<{
2402
2402
  schemaVersion: z.ZodNumber;
2403
2403
  }, "strip", z.ZodTypeAny, {
2404
2404
  ref: string;
2405
- bytes: number;
2406
2405
  schemaVersion: number;
2406
+ bytes: number;
2407
2407
  }, {
2408
2408
  ref: string;
2409
- bytes: number;
2410
2409
  schemaVersion: number;
2410
+ bytes: number;
2411
2411
  }>]>;
2412
2412
  eventId: z.ZodString;
2413
2413
  runId: z.ZodString;
@@ -2417,37 +2417,37 @@ export declare const WaitDeadlineExceededEventSchema: z.ZodObject<{
2417
2417
  payloadHash: z.ZodOptional<z.ZodString>;
2418
2418
  }, "strip", z.ZodTypeAny, {
2419
2419
  payload: {
2420
- activityId: string;
2421
2420
  deadlineAt: number;
2421
+ activityId: string;
2422
2422
  exceededAtMs: number;
2423
2423
  } | {
2424
2424
  ref: string;
2425
- bytes: number;
2426
2425
  schemaVersion: number;
2426
+ bytes: number;
2427
2427
  };
2428
2428
  type: "waitDeadlineExceeded";
2429
2429
  runId: string;
2430
+ schemaVersion: 1;
2430
2431
  timestamp: number;
2431
2432
  eventId: string;
2432
- schemaVersion: 1;
2433
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2433
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
2434
2434
  payloadHash?: string | undefined;
2435
2435
  }, {
2436
2436
  payload: {
2437
- activityId: string;
2438
2437
  deadlineAt: number;
2438
+ activityId: string;
2439
2439
  exceededAtMs: number;
2440
2440
  } | {
2441
2441
  ref: string;
2442
- bytes: number;
2443
2442
  schemaVersion: number;
2443
+ bytes: number;
2444
2444
  };
2445
2445
  type: "waitDeadlineExceeded";
2446
2446
  runId: string;
2447
+ schemaVersion: 1;
2447
2448
  timestamp: number;
2448
2449
  eventId: string;
2449
- schemaVersion: 1;
2450
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2450
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
2451
2451
  payloadHash?: string | undefined;
2452
2452
  }>;
2453
2453
  export declare const CancelRequestedEventSchema: z.ZodObject<{
@@ -2515,12 +2515,12 @@ export declare const CancelRequestedEventSchema: z.ZodObject<{
2515
2515
  schemaVersion: z.ZodNumber;
2516
2516
  }, "strip", z.ZodTypeAny, {
2517
2517
  ref: string;
2518
- bytes: number;
2519
2518
  schemaVersion: number;
2519
+ bytes: number;
2520
2520
  }, {
2521
2521
  ref: string;
2522
- bytes: number;
2523
2522
  schemaVersion: number;
2523
+ bytes: number;
2524
2524
  }>]>;
2525
2525
  eventId: z.ZodString;
2526
2526
  runId: z.ZodString;
@@ -2544,15 +2544,15 @@ export declare const CancelRequestedEventSchema: z.ZodObject<{
2544
2544
  by: string;
2545
2545
  } | {
2546
2546
  ref: string;
2547
- bytes: number;
2548
2547
  schemaVersion: number;
2548
+ bytes: number;
2549
2549
  };
2550
2550
  type: "cancelRequested";
2551
2551
  runId: string;
2552
+ schemaVersion: 1;
2552
2553
  timestamp: number;
2553
2554
  eventId: string;
2554
- schemaVersion: 1;
2555
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2555
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
2556
2556
  payloadHash?: string | undefined;
2557
2557
  }, {
2558
2558
  payload: {
@@ -2570,15 +2570,15 @@ export declare const CancelRequestedEventSchema: z.ZodObject<{
2570
2570
  by: string;
2571
2571
  } | {
2572
2572
  ref: string;
2573
- bytes: number;
2574
2573
  schemaVersion: number;
2574
+ bytes: number;
2575
2575
  };
2576
2576
  type: "cancelRequested";
2577
2577
  runId: string;
2578
+ schemaVersion: 1;
2578
2579
  timestamp: number;
2579
2580
  eventId: string;
2580
- schemaVersion: 1;
2581
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2581
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
2582
2582
  payloadHash?: string | undefined;
2583
2583
  }>;
2584
2584
  export declare const CancelDeliveredEventSchema: z.ZodObject<{
@@ -2643,12 +2643,12 @@ export declare const CancelDeliveredEventSchema: z.ZodObject<{
2643
2643
  schemaVersion: z.ZodNumber;
2644
2644
  }, "strip", z.ZodTypeAny, {
2645
2645
  ref: string;
2646
- bytes: number;
2647
2646
  schemaVersion: number;
2647
+ bytes: number;
2648
2648
  }, {
2649
2649
  ref: string;
2650
- bytes: number;
2651
2650
  schemaVersion: number;
2651
+ bytes: number;
2652
2652
  }>]>;
2653
2653
  eventId: z.ZodString;
2654
2654
  runId: z.ZodString;
@@ -2671,15 +2671,15 @@ export declare const CancelDeliveredEventSchema: z.ZodObject<{
2671
2671
  activityId: string;
2672
2672
  } | {
2673
2673
  ref: string;
2674
- bytes: number;
2675
2674
  schemaVersion: number;
2675
+ bytes: number;
2676
2676
  };
2677
2677
  type: "cancelDelivered";
2678
2678
  runId: string;
2679
+ schemaVersion: 1;
2679
2680
  timestamp: number;
2680
2681
  eventId: string;
2681
- schemaVersion: 1;
2682
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2682
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
2683
2683
  payloadHash?: string | undefined;
2684
2684
  }, {
2685
2685
  payload: {
@@ -2696,15 +2696,15 @@ export declare const CancelDeliveredEventSchema: z.ZodObject<{
2696
2696
  activityId: string;
2697
2697
  } | {
2698
2698
  ref: string;
2699
- bytes: number;
2700
2699
  schemaVersion: number;
2700
+ bytes: number;
2701
2701
  };
2702
2702
  type: "cancelDelivered";
2703
2703
  runId: string;
2704
+ schemaVersion: 1;
2704
2705
  timestamp: number;
2705
2706
  eventId: string;
2706
- schemaVersion: 1;
2707
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2707
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
2708
2708
  payloadHash?: string | undefined;
2709
2709
  }>;
2710
2710
  export declare const ActivityCanceledEventSchema: z.ZodObject<{
@@ -2727,12 +2727,12 @@ export declare const ActivityCanceledEventSchema: z.ZodObject<{
2727
2727
  schemaVersion: z.ZodNumber;
2728
2728
  }, "strip", z.ZodTypeAny, {
2729
2729
  ref: string;
2730
- bytes: number;
2731
2730
  schemaVersion: number;
2731
+ bytes: number;
2732
2732
  }, {
2733
2733
  ref: string;
2734
- bytes: number;
2735
2734
  schemaVersion: number;
2735
+ bytes: number;
2736
2736
  }>]>;
2737
2737
  eventId: z.ZodString;
2738
2738
  runId: z.ZodString;
@@ -2747,15 +2747,15 @@ export declare const ActivityCanceledEventSchema: z.ZodObject<{
2747
2747
  cancelOriginEventId: string;
2748
2748
  } | {
2749
2749
  ref: string;
2750
- bytes: number;
2751
2750
  schemaVersion: number;
2751
+ bytes: number;
2752
2752
  };
2753
2753
  type: "activityCanceled";
2754
2754
  runId: string;
2755
+ schemaVersion: 1;
2755
2756
  timestamp: number;
2756
2757
  eventId: string;
2757
- schemaVersion: 1;
2758
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2758
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
2759
2759
  payloadHash?: string | undefined;
2760
2760
  }, {
2761
2761
  payload: {
@@ -2764,15 +2764,15 @@ export declare const ActivityCanceledEventSchema: z.ZodObject<{
2764
2764
  cancelOriginEventId: string;
2765
2765
  } | {
2766
2766
  ref: string;
2767
- bytes: number;
2768
2767
  schemaVersion: number;
2768
+ bytes: number;
2769
2769
  };
2770
2770
  type: "activityCanceled";
2771
2771
  runId: string;
2772
+ schemaVersion: 1;
2772
2773
  timestamp: number;
2773
2774
  eventId: string;
2774
- schemaVersion: 1;
2775
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2775
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
2776
2776
  payloadHash?: string | undefined;
2777
2777
  }>;
2778
2778
  export declare const WorkerLostEventSchema: z.ZodObject<{
@@ -2792,12 +2792,12 @@ export declare const WorkerLostEventSchema: z.ZodObject<{
2792
2792
  schemaVersion: z.ZodNumber;
2793
2793
  }, "strip", z.ZodTypeAny, {
2794
2794
  ref: string;
2795
- bytes: number;
2796
2795
  schemaVersion: number;
2796
+ bytes: number;
2797
2797
  }, {
2798
2798
  ref: string;
2799
- bytes: number;
2800
2799
  schemaVersion: number;
2800
+ bytes: number;
2801
2801
  }>]>;
2802
2802
  eventId: z.ZodString;
2803
2803
  runId: z.ZodString;
@@ -2811,15 +2811,15 @@ export declare const WorkerLostEventSchema: z.ZodObject<{
2811
2811
  lostActivityIds: string[];
2812
2812
  } | {
2813
2813
  ref: string;
2814
- bytes: number;
2815
2814
  schemaVersion: number;
2815
+ bytes: number;
2816
2816
  };
2817
2817
  type: "workerLost";
2818
2818
  runId: string;
2819
+ schemaVersion: 1;
2819
2820
  timestamp: number;
2820
2821
  eventId: string;
2821
- schemaVersion: 1;
2822
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2822
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
2823
2823
  payloadHash?: string | undefined;
2824
2824
  }, {
2825
2825
  payload: {
@@ -2827,15 +2827,15 @@ export declare const WorkerLostEventSchema: z.ZodObject<{
2827
2827
  lostActivityIds: string[];
2828
2828
  } | {
2829
2829
  ref: string;
2830
- bytes: number;
2831
2830
  schemaVersion: number;
2831
+ bytes: number;
2832
2832
  };
2833
2833
  type: "workerLost";
2834
2834
  runId: string;
2835
+ schemaVersion: 1;
2835
2836
  timestamp: number;
2836
2837
  eventId: string;
2837
- schemaVersion: 1;
2838
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2838
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
2839
2839
  payloadHash?: string | undefined;
2840
2840
  }>;
2841
2841
  export declare const ResumeStartedEventSchema: z.ZodObject<{
@@ -2855,12 +2855,12 @@ export declare const ResumeStartedEventSchema: z.ZodObject<{
2855
2855
  schemaVersion: z.ZodNumber;
2856
2856
  }, "strip", z.ZodTypeAny, {
2857
2857
  ref: string;
2858
- bytes: number;
2859
2858
  schemaVersion: number;
2859
+ bytes: number;
2860
2860
  }, {
2861
2861
  ref: string;
2862
- bytes: number;
2863
2862
  schemaVersion: number;
2863
+ bytes: number;
2864
2864
  }>]>;
2865
2865
  eventId: z.ZodString;
2866
2866
  runId: z.ZodString;
@@ -2874,15 +2874,15 @@ export declare const ResumeStartedEventSchema: z.ZodObject<{
2874
2874
  lastSeenEventId: string;
2875
2875
  } | {
2876
2876
  ref: string;
2877
- bytes: number;
2878
2877
  schemaVersion: number;
2878
+ bytes: number;
2879
2879
  };
2880
2880
  type: "resumeStarted";
2881
2881
  runId: string;
2882
+ schemaVersion: 1;
2882
2883
  timestamp: number;
2883
2884
  eventId: string;
2884
- schemaVersion: 1;
2885
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2885
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
2886
2886
  payloadHash?: string | undefined;
2887
2887
  }, {
2888
2888
  payload: {
@@ -2890,15 +2890,15 @@ export declare const ResumeStartedEventSchema: z.ZodObject<{
2890
2890
  lastSeenEventId: string;
2891
2891
  } | {
2892
2892
  ref: string;
2893
- bytes: number;
2894
2893
  schemaVersion: number;
2894
+ bytes: number;
2895
2895
  };
2896
2896
  type: "resumeStarted";
2897
2897
  runId: string;
2898
+ schemaVersion: 1;
2898
2899
  timestamp: number;
2899
2900
  eventId: string;
2900
- schemaVersion: 1;
2901
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2901
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
2902
2902
  payloadHash?: string | undefined;
2903
2903
  }>;
2904
2904
  export declare const ReconcileResultEventSchema: z.ZodObject<{
@@ -2910,29 +2910,29 @@ export declare const ReconcileResultEventSchema: z.ZodObject<{
2910
2910
  decision: z.ZodEnum<["replayed", "completedByIdempotentSubmit", "manual", "freshRetry"]>;
2911
2911
  evidence: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2912
2912
  }, "strip", z.ZodTypeAny, {
2913
- capability: "none" | "readOnlyLookup" | "idempotentSubmit";
2913
+ capability: "none" | "idempotentSubmit" | "readOnlyLookup";
2914
2914
  decision: "manual" | "replayed" | "completedByIdempotentSubmit" | "freshRetry";
2915
2915
  evidence: Record<string, unknown>;
2916
- activityId: string;
2917
2916
  idempotencyKey: string;
2917
+ activityId: string;
2918
2918
  }, {
2919
- capability: "none" | "readOnlyLookup" | "idempotentSubmit";
2919
+ capability: "none" | "idempotentSubmit" | "readOnlyLookup";
2920
2920
  decision: "manual" | "replayed" | "completedByIdempotentSubmit" | "freshRetry";
2921
2921
  evidence: Record<string, unknown>;
2922
- activityId: string;
2923
2922
  idempotencyKey: string;
2923
+ activityId: string;
2924
2924
  }>, z.ZodObject<{
2925
2925
  ref: z.ZodString;
2926
2926
  bytes: z.ZodNumber;
2927
2927
  schemaVersion: z.ZodNumber;
2928
2928
  }, "strip", z.ZodTypeAny, {
2929
2929
  ref: string;
2930
- bytes: number;
2931
2930
  schemaVersion: number;
2931
+ bytes: number;
2932
2932
  }, {
2933
2933
  ref: string;
2934
- bytes: number;
2935
2934
  schemaVersion: number;
2935
+ bytes: number;
2936
2936
  }>]>;
2937
2937
  eventId: z.ZodString;
2938
2938
  runId: z.ZodString;
@@ -2942,41 +2942,41 @@ export declare const ReconcileResultEventSchema: z.ZodObject<{
2942
2942
  payloadHash: z.ZodOptional<z.ZodString>;
2943
2943
  }, "strip", z.ZodTypeAny, {
2944
2944
  payload: {
2945
- capability: "none" | "readOnlyLookup" | "idempotentSubmit";
2945
+ capability: "none" | "idempotentSubmit" | "readOnlyLookup";
2946
2946
  decision: "manual" | "replayed" | "completedByIdempotentSubmit" | "freshRetry";
2947
2947
  evidence: Record<string, unknown>;
2948
- activityId: string;
2949
2948
  idempotencyKey: string;
2949
+ activityId: string;
2950
2950
  } | {
2951
2951
  ref: string;
2952
- bytes: number;
2953
2952
  schemaVersion: number;
2953
+ bytes: number;
2954
2954
  };
2955
2955
  type: "reconcileResult";
2956
2956
  runId: string;
2957
+ schemaVersion: 1;
2957
2958
  timestamp: number;
2958
2959
  eventId: string;
2959
- schemaVersion: 1;
2960
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2960
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
2961
2961
  payloadHash?: string | undefined;
2962
2962
  }, {
2963
2963
  payload: {
2964
- capability: "none" | "readOnlyLookup" | "idempotentSubmit";
2964
+ capability: "none" | "idempotentSubmit" | "readOnlyLookup";
2965
2965
  decision: "manual" | "replayed" | "completedByIdempotentSubmit" | "freshRetry";
2966
2966
  evidence: Record<string, unknown>;
2967
- activityId: string;
2968
2967
  idempotencyKey: string;
2968
+ activityId: string;
2969
2969
  } | {
2970
2970
  ref: string;
2971
- bytes: number;
2972
2971
  schemaVersion: number;
2972
+ bytes: number;
2973
2973
  };
2974
2974
  type: "reconcileResult";
2975
2975
  runId: string;
2976
+ schemaVersion: 1;
2976
2977
  timestamp: number;
2977
2978
  eventId: string;
2978
- schemaVersion: 1;
2979
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2979
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
2980
2980
  payloadHash?: string | undefined;
2981
2981
  }>;
2982
2982
  /**
@@ -3094,12 +3094,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3094
3094
  schemaVersion: z.ZodNumber;
3095
3095
  }, "strip", z.ZodTypeAny, {
3096
3096
  ref: string;
3097
- bytes: number;
3098
3097
  schemaVersion: number;
3098
+ bytes: number;
3099
3099
  }, {
3100
3100
  ref: string;
3101
- bytes: number;
3102
3101
  schemaVersion: number;
3102
+ bytes: number;
3103
3103
  }>]>;
3104
3104
  eventId: z.ZodString;
3105
3105
  runId: z.ZodString;
@@ -3132,15 +3132,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3132
3132
  }> | undefined;
3133
3133
  } | {
3134
3134
  ref: string;
3135
- bytes: number;
3136
3135
  schemaVersion: number;
3136
+ bytes: number;
3137
3137
  };
3138
3138
  type: "runCreated";
3139
3139
  runId: string;
3140
+ schemaVersion: 1;
3140
3141
  timestamp: number;
3141
3142
  eventId: string;
3142
- schemaVersion: 1;
3143
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3143
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3144
3144
  payloadHash?: string | undefined;
3145
3145
  }, {
3146
3146
  payload: {
@@ -3167,15 +3167,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3167
3167
  }> | undefined;
3168
3168
  } | {
3169
3169
  ref: string;
3170
- bytes: number;
3171
3170
  schemaVersion: number;
3171
+ bytes: number;
3172
3172
  };
3173
3173
  type: "runCreated";
3174
3174
  runId: string;
3175
+ schemaVersion: 1;
3175
3176
  timestamp: number;
3176
3177
  eventId: string;
3177
- schemaVersion: 1;
3178
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3178
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3179
3179
  payloadHash?: string | undefined;
3180
3180
  }>, z.ZodObject<{
3181
3181
  type: z.ZodLiteral<"runStarted">;
@@ -3185,12 +3185,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3185
3185
  schemaVersion: z.ZodNumber;
3186
3186
  }, "strip", z.ZodTypeAny, {
3187
3187
  ref: string;
3188
- bytes: number;
3189
3188
  schemaVersion: number;
3189
+ bytes: number;
3190
3190
  }, {
3191
3191
  ref: string;
3192
- bytes: number;
3193
3192
  schemaVersion: number;
3193
+ bytes: number;
3194
3194
  }>]>;
3195
3195
  eventId: z.ZodString;
3196
3196
  runId: z.ZodString;
@@ -3201,28 +3201,28 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3201
3201
  }, "strip", z.ZodTypeAny, {
3202
3202
  payload: {} | {
3203
3203
  ref: string;
3204
- bytes: number;
3205
3204
  schemaVersion: number;
3205
+ bytes: number;
3206
3206
  };
3207
3207
  type: "runStarted";
3208
3208
  runId: string;
3209
+ schemaVersion: 1;
3209
3210
  timestamp: number;
3210
3211
  eventId: string;
3211
- schemaVersion: 1;
3212
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3212
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3213
3213
  payloadHash?: string | undefined;
3214
3214
  }, {
3215
3215
  payload: {} | {
3216
3216
  ref: string;
3217
- bytes: number;
3218
3217
  schemaVersion: number;
3218
+ bytes: number;
3219
3219
  };
3220
3220
  type: "runStarted";
3221
3221
  runId: string;
3222
+ schemaVersion: 1;
3222
3223
  timestamp: number;
3223
3224
  eventId: string;
3224
- schemaVersion: 1;
3225
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3225
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3226
3226
  payloadHash?: string | undefined;
3227
3227
  }>, z.ZodObject<{
3228
3228
  type: z.ZodLiteral<"runSucceeded">;
@@ -3268,12 +3268,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3268
3268
  schemaVersion: z.ZodNumber;
3269
3269
  }, "strip", z.ZodTypeAny, {
3270
3270
  ref: string;
3271
- bytes: number;
3272
3271
  schemaVersion: number;
3272
+ bytes: number;
3273
3273
  }, {
3274
3274
  ref: string;
3275
- bytes: number;
3276
3275
  schemaVersion: number;
3276
+ bytes: number;
3277
3277
  }>]>;
3278
3278
  eventId: z.ZodString;
3279
3279
  runId: z.ZodString;
@@ -3292,15 +3292,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3292
3292
  };
3293
3293
  } | {
3294
3294
  ref: string;
3295
- bytes: number;
3296
3295
  schemaVersion: number;
3296
+ bytes: number;
3297
3297
  };
3298
3298
  type: "runSucceeded";
3299
3299
  runId: string;
3300
+ schemaVersion: 1;
3300
3301
  timestamp: number;
3301
3302
  eventId: string;
3302
- schemaVersion: 1;
3303
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3303
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3304
3304
  payloadHash?: string | undefined;
3305
3305
  }, {
3306
3306
  payload: {
@@ -3313,15 +3313,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3313
3313
  };
3314
3314
  } | {
3315
3315
  ref: string;
3316
- bytes: number;
3317
3316
  schemaVersion: number;
3317
+ bytes: number;
3318
3318
  };
3319
3319
  type: "runSucceeded";
3320
3320
  runId: string;
3321
+ schemaVersion: 1;
3321
3322
  timestamp: number;
3322
3323
  eventId: string;
3323
- schemaVersion: 1;
3324
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3324
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3325
3325
  payloadHash?: string | undefined;
3326
3326
  }>, z.ZodObject<{
3327
3327
  type: z.ZodLiteral<"runFailed">;
@@ -3340,12 +3340,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3340
3340
  schemaVersion: z.ZodNumber;
3341
3341
  }, "strip", z.ZodTypeAny, {
3342
3342
  ref: string;
3343
- bytes: number;
3344
3343
  schemaVersion: number;
3344
+ bytes: number;
3345
3345
  }, {
3346
3346
  ref: string;
3347
- bytes: number;
3348
3347
  schemaVersion: number;
3348
+ bytes: number;
3349
3349
  }>]>;
3350
3350
  eventId: z.ZodString;
3351
3351
  runId: z.ZodString;
@@ -3359,15 +3359,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3359
3359
  rootCauseEventId: string;
3360
3360
  } | {
3361
3361
  ref: string;
3362
- bytes: number;
3363
3362
  schemaVersion: number;
3363
+ bytes: number;
3364
3364
  };
3365
3365
  type: "runFailed";
3366
3366
  runId: string;
3367
+ schemaVersion: 1;
3367
3368
  timestamp: number;
3368
3369
  eventId: string;
3369
- schemaVersion: 1;
3370
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3370
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3371
3371
  payloadHash?: string | undefined;
3372
3372
  }, {
3373
3373
  payload: {
@@ -3375,15 +3375,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3375
3375
  rootCauseEventId: string;
3376
3376
  } | {
3377
3377
  ref: string;
3378
- bytes: number;
3379
3378
  schemaVersion: number;
3379
+ bytes: number;
3380
3380
  };
3381
3381
  type: "runFailed";
3382
3382
  runId: string;
3383
+ schemaVersion: 1;
3383
3384
  timestamp: number;
3384
3385
  eventId: string;
3385
- schemaVersion: 1;
3386
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3386
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3387
3387
  payloadHash?: string | undefined;
3388
3388
  }>, z.ZodObject<{
3389
3389
  type: z.ZodLiteral<"runCanceled">;
@@ -3399,12 +3399,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3399
3399
  schemaVersion: z.ZodNumber;
3400
3400
  }, "strip", z.ZodTypeAny, {
3401
3401
  ref: string;
3402
- bytes: number;
3403
3402
  schemaVersion: number;
3403
+ bytes: number;
3404
3404
  }, {
3405
3405
  ref: string;
3406
- bytes: number;
3407
3406
  schemaVersion: number;
3407
+ bytes: number;
3408
3408
  }>]>;
3409
3409
  eventId: z.ZodString;
3410
3410
  runId: z.ZodString;
@@ -3417,30 +3417,30 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3417
3417
  cancelOriginEventId: string;
3418
3418
  } | {
3419
3419
  ref: string;
3420
- bytes: number;
3421
3420
  schemaVersion: number;
3421
+ bytes: number;
3422
3422
  };
3423
3423
  type: "runCanceled";
3424
3424
  runId: string;
3425
+ schemaVersion: 1;
3425
3426
  timestamp: number;
3426
3427
  eventId: string;
3427
- schemaVersion: 1;
3428
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3428
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3429
3429
  payloadHash?: string | undefined;
3430
3430
  }, {
3431
3431
  payload: {
3432
3432
  cancelOriginEventId: string;
3433
3433
  } | {
3434
3434
  ref: string;
3435
- bytes: number;
3436
3435
  schemaVersion: number;
3436
+ bytes: number;
3437
3437
  };
3438
3438
  type: "runCanceled";
3439
3439
  runId: string;
3440
+ schemaVersion: 1;
3440
3441
  timestamp: number;
3441
3442
  eventId: string;
3442
- schemaVersion: 1;
3443
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3443
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3444
3444
  payloadHash?: string | undefined;
3445
3445
  }>, z.ZodObject<{
3446
3446
  type: z.ZodLiteral<"nodeWaiting">;
@@ -3462,12 +3462,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3462
3462
  schemaVersion: z.ZodNumber;
3463
3463
  }, "strip", z.ZodTypeAny, {
3464
3464
  ref: string;
3465
- bytes: number;
3466
3465
  schemaVersion: number;
3466
+ bytes: number;
3467
3467
  }, {
3468
3468
  ref: string;
3469
- bytes: number;
3470
3469
  schemaVersion: number;
3470
+ bytes: number;
3471
3471
  }>]>;
3472
3472
  eventId: z.ZodString;
3473
3473
  runId: z.ZodString;
@@ -3482,15 +3482,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3482
3482
  deadlineAt?: number | undefined;
3483
3483
  } | {
3484
3484
  ref: string;
3485
- bytes: number;
3486
3485
  schemaVersion: number;
3486
+ bytes: number;
3487
3487
  };
3488
3488
  type: "nodeWaiting";
3489
3489
  runId: string;
3490
+ schemaVersion: 1;
3490
3491
  timestamp: number;
3491
3492
  eventId: string;
3492
- schemaVersion: 1;
3493
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3493
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3494
3494
  payloadHash?: string | undefined;
3495
3495
  }, {
3496
3496
  payload: {
@@ -3499,15 +3499,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3499
3499
  deadlineAt?: number | undefined;
3500
3500
  } | {
3501
3501
  ref: string;
3502
- bytes: number;
3503
3502
  schemaVersion: number;
3503
+ bytes: number;
3504
3504
  };
3505
3505
  type: "nodeWaiting";
3506
3506
  runId: string;
3507
+ schemaVersion: 1;
3507
3508
  timestamp: number;
3508
3509
  eventId: string;
3509
- schemaVersion: 1;
3510
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3510
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3511
3511
  payloadHash?: string | undefined;
3512
3512
  }>, z.ZodObject<{
3513
3513
  type: z.ZodLiteral<"nodeRetrying">;
@@ -3529,12 +3529,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3529
3529
  schemaVersion: z.ZodNumber;
3530
3530
  }, "strip", z.ZodTypeAny, {
3531
3531
  ref: string;
3532
- bytes: number;
3533
3532
  schemaVersion: number;
3533
+ bytes: number;
3534
3534
  }, {
3535
3535
  ref: string;
3536
- bytes: number;
3537
3536
  schemaVersion: number;
3537
+ bytes: number;
3538
3538
  }>]>;
3539
3539
  eventId: z.ZodString;
3540
3540
  runId: z.ZodString;
@@ -3549,15 +3549,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3549
3549
  nextBackoffMs: number;
3550
3550
  } | {
3551
3551
  ref: string;
3552
- bytes: number;
3553
3552
  schemaVersion: number;
3553
+ bytes: number;
3554
3554
  };
3555
3555
  type: "nodeRetrying";
3556
3556
  runId: string;
3557
+ schemaVersion: 1;
3557
3558
  timestamp: number;
3558
3559
  eventId: string;
3559
- schemaVersion: 1;
3560
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3560
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3561
3561
  payloadHash?: string | undefined;
3562
3562
  }, {
3563
3563
  payload: {
@@ -3566,15 +3566,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3566
3566
  nextBackoffMs: number;
3567
3567
  } | {
3568
3568
  ref: string;
3569
- bytes: number;
3570
3569
  schemaVersion: number;
3570
+ bytes: number;
3571
3571
  };
3572
3572
  type: "nodeRetrying";
3573
3573
  runId: string;
3574
+ schemaVersion: 1;
3574
3575
  timestamp: number;
3575
3576
  eventId: string;
3576
- schemaVersion: 1;
3577
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3577
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3578
3578
  payloadHash?: string | undefined;
3579
3579
  }>, z.ZodObject<{
3580
3580
  type: z.ZodLiteral<"nodeSucceeded">;
@@ -3593,12 +3593,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3593
3593
  schemaVersion: z.ZodNumber;
3594
3594
  }, "strip", z.ZodTypeAny, {
3595
3595
  ref: string;
3596
- bytes: number;
3597
3596
  schemaVersion: number;
3597
+ bytes: number;
3598
3598
  }, {
3599
3599
  ref: string;
3600
- bytes: number;
3601
3600
  schemaVersion: number;
3601
+ bytes: number;
3602
3602
  }>]>;
3603
3603
  eventId: z.ZodString;
3604
3604
  runId: z.ZodString;
@@ -3612,15 +3612,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3612
3612
  lastActivityId: string;
3613
3613
  } | {
3614
3614
  ref: string;
3615
- bytes: number;
3616
3615
  schemaVersion: number;
3616
+ bytes: number;
3617
3617
  };
3618
3618
  type: "nodeSucceeded";
3619
3619
  runId: string;
3620
+ schemaVersion: 1;
3620
3621
  timestamp: number;
3621
3622
  eventId: string;
3622
- schemaVersion: 1;
3623
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3623
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3624
3624
  payloadHash?: string | undefined;
3625
3625
  }, {
3626
3626
  payload: {
@@ -3628,15 +3628,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3628
3628
  lastActivityId: string;
3629
3629
  } | {
3630
3630
  ref: string;
3631
- bytes: number;
3632
3631
  schemaVersion: number;
3632
+ bytes: number;
3633
3633
  };
3634
3634
  type: "nodeSucceeded";
3635
3635
  runId: string;
3636
+ schemaVersion: 1;
3636
3637
  timestamp: number;
3637
3638
  eventId: string;
3638
- schemaVersion: 1;
3639
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3639
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3640
3640
  payloadHash?: string | undefined;
3641
3641
  }>, z.ZodObject<{
3642
3642
  type: z.ZodLiteral<"nodeFailed">;
@@ -3658,12 +3658,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3658
3658
  schemaVersion: z.ZodNumber;
3659
3659
  }, "strip", z.ZodTypeAny, {
3660
3660
  ref: string;
3661
- bytes: number;
3662
3661
  schemaVersion: number;
3662
+ bytes: number;
3663
3663
  }, {
3664
3664
  ref: string;
3665
- bytes: number;
3666
3665
  schemaVersion: number;
3666
+ bytes: number;
3667
3667
  }>]>;
3668
3668
  eventId: z.ZodString;
3669
3669
  runId: z.ZodString;
@@ -3678,15 +3678,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3678
3678
  lastActivityId: string;
3679
3679
  } | {
3680
3680
  ref: string;
3681
- bytes: number;
3682
3681
  schemaVersion: number;
3682
+ bytes: number;
3683
3683
  };
3684
3684
  type: "nodeFailed";
3685
3685
  runId: string;
3686
+ schemaVersion: 1;
3686
3687
  timestamp: number;
3687
3688
  eventId: string;
3688
- schemaVersion: 1;
3689
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3689
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3690
3690
  payloadHash?: string | undefined;
3691
3691
  }, {
3692
3692
  payload: {
@@ -3695,15 +3695,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3695
3695
  lastActivityId: string;
3696
3696
  } | {
3697
3697
  ref: string;
3698
- bytes: number;
3699
3698
  schemaVersion: number;
3699
+ bytes: number;
3700
3700
  };
3701
3701
  type: "nodeFailed";
3702
3702
  runId: string;
3703
+ schemaVersion: 1;
3703
3704
  timestamp: number;
3704
3705
  eventId: string;
3705
- schemaVersion: 1;
3706
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3706
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3707
3707
  payloadHash?: string | undefined;
3708
3708
  }>, z.ZodObject<{
3709
3709
  type: z.ZodLiteral<"nodeSkipped">;
@@ -3722,12 +3722,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3722
3722
  schemaVersion: z.ZodNumber;
3723
3723
  }, "strip", z.ZodTypeAny, {
3724
3724
  ref: string;
3725
- bytes: number;
3726
3725
  schemaVersion: number;
3726
+ bytes: number;
3727
3727
  }, {
3728
3728
  ref: string;
3729
- bytes: number;
3730
3729
  schemaVersion: number;
3730
+ bytes: number;
3731
3731
  }>]>;
3732
3732
  eventId: z.ZodString;
3733
3733
  runId: z.ZodString;
@@ -3741,15 +3741,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3741
3741
  conditionEventId: string;
3742
3742
  } | {
3743
3743
  ref: string;
3744
- bytes: number;
3745
3744
  schemaVersion: number;
3745
+ bytes: number;
3746
3746
  };
3747
3747
  type: "nodeSkipped";
3748
3748
  runId: string;
3749
+ schemaVersion: 1;
3749
3750
  timestamp: number;
3750
3751
  eventId: string;
3751
- schemaVersion: 1;
3752
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3752
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3753
3753
  payloadHash?: string | undefined;
3754
3754
  }, {
3755
3755
  payload: {
@@ -3757,15 +3757,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3757
3757
  conditionEventId: string;
3758
3758
  } | {
3759
3759
  ref: string;
3760
- bytes: number;
3761
3760
  schemaVersion: number;
3761
+ bytes: number;
3762
3762
  };
3763
3763
  type: "nodeSkipped";
3764
3764
  runId: string;
3765
+ schemaVersion: 1;
3765
3766
  timestamp: number;
3766
3767
  eventId: string;
3767
- schemaVersion: 1;
3768
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3768
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3769
3769
  payloadHash?: string | undefined;
3770
3770
  }>, z.ZodObject<{
3771
3771
  type: z.ZodLiteral<"nodeCanceled">;
@@ -3784,12 +3784,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3784
3784
  schemaVersion: z.ZodNumber;
3785
3785
  }, "strip", z.ZodTypeAny, {
3786
3786
  ref: string;
3787
- bytes: number;
3788
3787
  schemaVersion: number;
3788
+ bytes: number;
3789
3789
  }, {
3790
3790
  ref: string;
3791
- bytes: number;
3792
3791
  schemaVersion: number;
3792
+ bytes: number;
3793
3793
  }>]>;
3794
3794
  eventId: z.ZodString;
3795
3795
  runId: z.ZodString;
@@ -3803,15 +3803,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3803
3803
  cancelOriginEventId: string;
3804
3804
  } | {
3805
3805
  ref: string;
3806
- bytes: number;
3807
3806
  schemaVersion: number;
3807
+ bytes: number;
3808
3808
  };
3809
3809
  type: "nodeCanceled";
3810
3810
  runId: string;
3811
+ schemaVersion: 1;
3811
3812
  timestamp: number;
3812
3813
  eventId: string;
3813
- schemaVersion: 1;
3814
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3814
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3815
3815
  payloadHash?: string | undefined;
3816
3816
  }, {
3817
3817
  payload: {
@@ -3819,15 +3819,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3819
3819
  cancelOriginEventId: string;
3820
3820
  } | {
3821
3821
  ref: string;
3822
- bytes: number;
3823
3822
  schemaVersion: number;
3823
+ bytes: number;
3824
3824
  };
3825
3825
  type: "nodeCanceled";
3826
3826
  runId: string;
3827
+ schemaVersion: 1;
3827
3828
  timestamp: number;
3828
3829
  eventId: string;
3829
- schemaVersion: 1;
3830
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3830
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3831
3831
  payloadHash?: string | undefined;
3832
3832
  }>, z.ZodObject<{
3833
3833
  type: z.ZodLiteral<"activityRunning">;
@@ -3849,12 +3849,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3849
3849
  schemaVersion: z.ZodNumber;
3850
3850
  }, "strip", z.ZodTypeAny, {
3851
3851
  ref: string;
3852
- bytes: number;
3853
3852
  schemaVersion: number;
3853
+ bytes: number;
3854
3854
  }, {
3855
3855
  ref: string;
3856
- bytes: number;
3857
3856
  schemaVersion: number;
3857
+ bytes: number;
3858
3858
  }>]>;
3859
3859
  eventId: z.ZodString;
3860
3860
  runId: z.ZodString;
@@ -3869,15 +3869,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3869
3869
  leaseId: string;
3870
3870
  } | {
3871
3871
  ref: string;
3872
- bytes: number;
3873
3872
  schemaVersion: number;
3873
+ bytes: number;
3874
3874
  };
3875
3875
  type: "activityRunning";
3876
3876
  runId: string;
3877
+ schemaVersion: 1;
3877
3878
  timestamp: number;
3878
3879
  eventId: string;
3879
- schemaVersion: 1;
3880
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3880
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3881
3881
  payloadHash?: string | undefined;
3882
3882
  }, {
3883
3883
  payload: {
@@ -3886,15 +3886,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3886
3886
  leaseId: string;
3887
3887
  } | {
3888
3888
  ref: string;
3889
- bytes: number;
3890
3889
  schemaVersion: number;
3890
+ bytes: number;
3891
3891
  };
3892
3892
  type: "activityRunning";
3893
3893
  runId: string;
3894
+ schemaVersion: 1;
3894
3895
  timestamp: number;
3895
3896
  eventId: string;
3896
- schemaVersion: 1;
3897
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3897
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3898
3898
  payloadHash?: string | undefined;
3899
3899
  }>, z.ZodObject<{
3900
3900
  type: z.ZodLiteral<"activityWaiting">;
@@ -3913,12 +3913,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3913
3913
  schemaVersion: z.ZodNumber;
3914
3914
  }, "strip", z.ZodTypeAny, {
3915
3915
  ref: string;
3916
- bytes: number;
3917
3916
  schemaVersion: number;
3917
+ bytes: number;
3918
3918
  }, {
3919
3919
  ref: string;
3920
- bytes: number;
3921
3920
  schemaVersion: number;
3921
+ bytes: number;
3922
3922
  }>]>;
3923
3923
  eventId: z.ZodString;
3924
3924
  runId: z.ZodString;
@@ -3932,15 +3932,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3932
3932
  activityId: string;
3933
3933
  } | {
3934
3934
  ref: string;
3935
- bytes: number;
3936
3935
  schemaVersion: number;
3936
+ bytes: number;
3937
3937
  };
3938
3938
  type: "activityWaiting";
3939
3939
  runId: string;
3940
+ schemaVersion: 1;
3940
3941
  timestamp: number;
3941
3942
  eventId: string;
3942
- schemaVersion: 1;
3943
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3943
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3944
3944
  payloadHash?: string | undefined;
3945
3945
  }, {
3946
3946
  payload: {
@@ -3948,15 +3948,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3948
3948
  activityId: string;
3949
3949
  } | {
3950
3950
  ref: string;
3951
- bytes: number;
3952
3951
  schemaVersion: number;
3952
+ bytes: number;
3953
3953
  };
3954
3954
  type: "activityWaiting";
3955
3955
  runId: string;
3956
+ schemaVersion: 1;
3956
3957
  timestamp: number;
3957
3958
  eventId: string;
3958
- schemaVersion: 1;
3959
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3959
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
3960
3960
  payloadHash?: string | undefined;
3961
3961
  }>, z.ZodObject<{
3962
3962
  type: z.ZodLiteral<"activityTimedOut">;
@@ -3984,12 +3984,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3984
3984
  schemaVersion: z.ZodNumber;
3985
3985
  }, "strip", z.ZodTypeAny, {
3986
3986
  ref: string;
3987
- bytes: number;
3988
3987
  schemaVersion: number;
3988
+ bytes: number;
3989
3989
  }, {
3990
3990
  ref: string;
3991
- bytes: number;
3992
3991
  schemaVersion: number;
3992
+ bytes: number;
3993
3993
  }>]>;
3994
3994
  eventId: z.ZodString;
3995
3995
  runId: z.ZodString;
@@ -4006,15 +4006,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4006
4006
  runningMs: number;
4007
4007
  } | {
4008
4008
  ref: string;
4009
- bytes: number;
4010
4009
  schemaVersion: number;
4010
+ bytes: number;
4011
4011
  };
4012
4012
  type: "activityTimedOut";
4013
4013
  runId: string;
4014
+ schemaVersion: 1;
4014
4015
  timestamp: number;
4015
4016
  eventId: string;
4016
- schemaVersion: 1;
4017
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4017
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
4018
4018
  payloadHash?: string | undefined;
4019
4019
  }, {
4020
4020
  payload: {
@@ -4025,15 +4025,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4025
4025
  runningMs: number;
4026
4026
  } | {
4027
4027
  ref: string;
4028
- bytes: number;
4029
4028
  schemaVersion: number;
4029
+ bytes: number;
4030
4030
  };
4031
4031
  type: "activityTimedOut";
4032
4032
  runId: string;
4033
+ schemaVersion: 1;
4033
4034
  timestamp: number;
4034
4035
  eventId: string;
4035
- schemaVersion: 1;
4036
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4036
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
4037
4037
  payloadHash?: string | undefined;
4038
4038
  }>, z.ZodObject<{
4039
4039
  type: z.ZodLiteral<"loopStarted">;
@@ -4052,12 +4052,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4052
4052
  schemaVersion: z.ZodNumber;
4053
4053
  }, "strip", z.ZodTypeAny, {
4054
4054
  ref: string;
4055
- bytes: number;
4056
4055
  schemaVersion: number;
4056
+ bytes: number;
4057
4057
  }, {
4058
4058
  ref: string;
4059
- bytes: number;
4060
4059
  schemaVersion: number;
4060
+ bytes: number;
4061
4061
  }>]>;
4062
4062
  eventId: z.ZodString;
4063
4063
  runId: z.ZodString;
@@ -4071,15 +4071,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4071
4071
  loopId: string;
4072
4072
  } | {
4073
4073
  ref: string;
4074
- bytes: number;
4075
4074
  schemaVersion: number;
4075
+ bytes: number;
4076
4076
  };
4077
4077
  type: "loopStarted";
4078
4078
  runId: string;
4079
+ schemaVersion: 1;
4079
4080
  timestamp: number;
4080
4081
  eventId: string;
4081
- schemaVersion: 1;
4082
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4082
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
4083
4083
  payloadHash?: string | undefined;
4084
4084
  }, {
4085
4085
  payload: {
@@ -4087,15 +4087,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4087
4087
  loopId: string;
4088
4088
  } | {
4089
4089
  ref: string;
4090
- bytes: number;
4091
4090
  schemaVersion: number;
4091
+ bytes: number;
4092
4092
  };
4093
4093
  type: "loopStarted";
4094
4094
  runId: string;
4095
+ schemaVersion: 1;
4095
4096
  timestamp: number;
4096
4097
  eventId: string;
4097
- schemaVersion: 1;
4098
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4098
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
4099
4099
  payloadHash?: string | undefined;
4100
4100
  }>, z.ZodObject<{
4101
4101
  type: z.ZodLiteral<"loopIterationStarted">;
@@ -4117,12 +4117,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4117
4117
  schemaVersion: z.ZodNumber;
4118
4118
  }, "strip", z.ZodTypeAny, {
4119
4119
  ref: string;
4120
- bytes: number;
4121
4120
  schemaVersion: number;
4121
+ bytes: number;
4122
4122
  }, {
4123
4123
  ref: string;
4124
- bytes: number;
4125
4124
  schemaVersion: number;
4125
+ bytes: number;
4126
4126
  }>]>;
4127
4127
  eventId: z.ZodString;
4128
4128
  runId: z.ZodString;
@@ -4137,15 +4137,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4137
4137
  prevResolution: "rejected" | "initial";
4138
4138
  } | {
4139
4139
  ref: string;
4140
- bytes: number;
4141
4140
  schemaVersion: number;
4141
+ bytes: number;
4142
4142
  };
4143
4143
  type: "loopIterationStarted";
4144
4144
  runId: string;
4145
+ schemaVersion: 1;
4145
4146
  timestamp: number;
4146
4147
  eventId: string;
4147
- schemaVersion: 1;
4148
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4148
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
4149
4149
  payloadHash?: string | undefined;
4150
4150
  }, {
4151
4151
  payload: {
@@ -4154,15 +4154,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4154
4154
  prevResolution: "rejected" | "initial";
4155
4155
  } | {
4156
4156
  ref: string;
4157
- bytes: number;
4158
4157
  schemaVersion: number;
4158
+ bytes: number;
4159
4159
  };
4160
4160
  type: "loopIterationStarted";
4161
4161
  runId: string;
4162
+ schemaVersion: 1;
4162
4163
  timestamp: number;
4163
4164
  eventId: string;
4164
- schemaVersion: 1;
4165
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4165
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
4166
4166
  payloadHash?: string | undefined;
4167
4167
  }>, z.ZodObject<{
4168
4168
  type: z.ZodLiteral<"loopIterationFinished">;
@@ -4179,18 +4179,18 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4179
4179
  loopId: string;
4180
4180
  iteration: number;
4181
4181
  resolution: "approved" | "rejected";
4182
+ by: string;
4182
4183
  decisionActivityId: string;
4183
4184
  waitResolvedEventId: string;
4184
- by: string;
4185
4185
  timedOut?: boolean | undefined;
4186
4186
  comment?: string | undefined;
4187
4187
  }, {
4188
4188
  loopId: string;
4189
4189
  iteration: number;
4190
4190
  resolution: "approved" | "rejected";
4191
+ by: string;
4191
4192
  decisionActivityId: string;
4192
4193
  waitResolvedEventId: string;
4193
- by: string;
4194
4194
  timedOut?: boolean | undefined;
4195
4195
  comment?: string | undefined;
4196
4196
  }>, z.ZodObject<{
@@ -4199,12 +4199,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4199
4199
  schemaVersion: z.ZodNumber;
4200
4200
  }, "strip", z.ZodTypeAny, {
4201
4201
  ref: string;
4202
- bytes: number;
4203
4202
  schemaVersion: number;
4203
+ bytes: number;
4204
4204
  }, {
4205
4205
  ref: string;
4206
- bytes: number;
4207
4206
  schemaVersion: number;
4207
+ bytes: number;
4208
4208
  }>]>;
4209
4209
  eventId: z.ZodString;
4210
4210
  runId: z.ZodString;
@@ -4217,44 +4217,44 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4217
4217
  loopId: string;
4218
4218
  iteration: number;
4219
4219
  resolution: "approved" | "rejected";
4220
+ by: string;
4220
4221
  decisionActivityId: string;
4221
4222
  waitResolvedEventId: string;
4222
- by: string;
4223
4223
  timedOut?: boolean | undefined;
4224
4224
  comment?: string | undefined;
4225
4225
  } | {
4226
4226
  ref: string;
4227
- bytes: number;
4228
4227
  schemaVersion: number;
4228
+ bytes: number;
4229
4229
  };
4230
4230
  type: "loopIterationFinished";
4231
4231
  runId: string;
4232
+ schemaVersion: 1;
4232
4233
  timestamp: number;
4233
4234
  eventId: string;
4234
- schemaVersion: 1;
4235
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4235
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
4236
4236
  payloadHash?: string | undefined;
4237
4237
  }, {
4238
4238
  payload: {
4239
4239
  loopId: string;
4240
4240
  iteration: number;
4241
4241
  resolution: "approved" | "rejected";
4242
+ by: string;
4242
4243
  decisionActivityId: string;
4243
4244
  waitResolvedEventId: string;
4244
- by: string;
4245
4245
  timedOut?: boolean | undefined;
4246
4246
  comment?: string | undefined;
4247
4247
  } | {
4248
4248
  ref: string;
4249
- bytes: number;
4250
4249
  schemaVersion: number;
4250
+ bytes: number;
4251
4251
  };
4252
4252
  type: "loopIterationFinished";
4253
4253
  runId: string;
4254
+ schemaVersion: 1;
4254
4255
  timestamp: number;
4255
4256
  eventId: string;
4256
- schemaVersion: 1;
4257
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4257
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
4258
4258
  payloadHash?: string | undefined;
4259
4259
  }>, z.ZodObject<{
4260
4260
  type: z.ZodLiteral<"loopFinished">;
@@ -4285,9 +4285,9 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4285
4285
  errorClass: z.ZodOptional<z.ZodEnum<["retryable", "fatal", "userFault", "manual"]>>;
4286
4286
  }, "strip", z.ZodTypeAny, {
4287
4287
  loopId: string;
4288
- resolution: "timeout" | "cancelled" | "approved" | "max-iterations-exceeded" | "body-failed";
4288
+ resolution: "cancelled" | "timeout" | "approved" | "max-iterations-exceeded" | "body-failed";
4289
4289
  finalIteration: number;
4290
- errorCode?: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
4290
+ errorCode?: "IdempotencyConflict" | "InputValidationFailed" | "UnknownProviderError" | "ProviderRateLimited" | "NetworkError" | "LeaseExpired" | "WorkerCrashed" | "IdempotencyInputMismatch" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
4291
4291
  errorClass?: "retryable" | "manual" | "fatal" | "userFault" | undefined;
4292
4292
  outputRef?: {
4293
4293
  outputHash: string;
@@ -4298,9 +4298,9 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4298
4298
  } | undefined;
4299
4299
  }, {
4300
4300
  loopId: string;
4301
- resolution: "timeout" | "cancelled" | "approved" | "max-iterations-exceeded" | "body-failed";
4301
+ resolution: "cancelled" | "timeout" | "approved" | "max-iterations-exceeded" | "body-failed";
4302
4302
  finalIteration: number;
4303
- errorCode?: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
4303
+ errorCode?: "IdempotencyConflict" | "InputValidationFailed" | "UnknownProviderError" | "ProviderRateLimited" | "NetworkError" | "LeaseExpired" | "WorkerCrashed" | "IdempotencyInputMismatch" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
4304
4304
  errorClass?: "retryable" | "manual" | "fatal" | "userFault" | undefined;
4305
4305
  outputRef?: {
4306
4306
  outputHash: string;
@@ -4315,12 +4315,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4315
4315
  schemaVersion: z.ZodNumber;
4316
4316
  }, "strip", z.ZodTypeAny, {
4317
4317
  ref: string;
4318
- bytes: number;
4319
4318
  schemaVersion: number;
4319
+ bytes: number;
4320
4320
  }, {
4321
4321
  ref: string;
4322
- bytes: number;
4323
4322
  schemaVersion: number;
4323
+ bytes: number;
4324
4324
  }>]>;
4325
4325
  eventId: z.ZodString;
4326
4326
  runId: z.ZodString;
@@ -4331,9 +4331,9 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4331
4331
  }, "strip", z.ZodTypeAny, {
4332
4332
  payload: {
4333
4333
  loopId: string;
4334
- resolution: "timeout" | "cancelled" | "approved" | "max-iterations-exceeded" | "body-failed";
4334
+ resolution: "cancelled" | "timeout" | "approved" | "max-iterations-exceeded" | "body-failed";
4335
4335
  finalIteration: number;
4336
- errorCode?: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
4336
+ errorCode?: "IdempotencyConflict" | "InputValidationFailed" | "UnknownProviderError" | "ProviderRateLimited" | "NetworkError" | "LeaseExpired" | "WorkerCrashed" | "IdempotencyInputMismatch" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
4337
4337
  errorClass?: "retryable" | "manual" | "fatal" | "userFault" | undefined;
4338
4338
  outputRef?: {
4339
4339
  outputHash: string;
@@ -4344,22 +4344,22 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4344
4344
  } | undefined;
4345
4345
  } | {
4346
4346
  ref: string;
4347
- bytes: number;
4348
4347
  schemaVersion: number;
4348
+ bytes: number;
4349
4349
  };
4350
4350
  type: "loopFinished";
4351
4351
  runId: string;
4352
+ schemaVersion: 1;
4352
4353
  timestamp: number;
4353
4354
  eventId: string;
4354
- schemaVersion: 1;
4355
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4355
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
4356
4356
  payloadHash?: string | undefined;
4357
4357
  }, {
4358
4358
  payload: {
4359
4359
  loopId: string;
4360
- resolution: "timeout" | "cancelled" | "approved" | "max-iterations-exceeded" | "body-failed";
4360
+ resolution: "cancelled" | "timeout" | "approved" | "max-iterations-exceeded" | "body-failed";
4361
4361
  finalIteration: number;
4362
- errorCode?: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
4362
+ errorCode?: "IdempotencyConflict" | "InputValidationFailed" | "UnknownProviderError" | "ProviderRateLimited" | "NetworkError" | "LeaseExpired" | "WorkerCrashed" | "IdempotencyInputMismatch" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
4363
4363
  errorClass?: "retryable" | "manual" | "fatal" | "userFault" | undefined;
4364
4364
  outputRef?: {
4365
4365
  outputHash: string;
@@ -4370,15 +4370,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4370
4370
  } | undefined;
4371
4371
  } | {
4372
4372
  ref: string;
4373
- bytes: number;
4374
4373
  schemaVersion: number;
4374
+ bytes: number;
4375
4375
  };
4376
4376
  type: "loopFinished";
4377
4377
  runId: string;
4378
+ schemaVersion: 1;
4378
4379
  timestamp: number;
4379
4380
  eventId: string;
4380
- schemaVersion: 1;
4381
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4381
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
4382
4382
  payloadHash?: string | undefined;
4383
4383
  }>, z.ZodObject<{
4384
4384
  type: z.ZodLiteral<"conditionEvaluated">;
@@ -4403,12 +4403,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4403
4403
  schemaVersion: z.ZodNumber;
4404
4404
  }, "strip", z.ZodTypeAny, {
4405
4405
  ref: string;
4406
- bytes: number;
4407
4406
  schemaVersion: number;
4407
+ bytes: number;
4408
4408
  }, {
4409
4409
  ref: string;
4410
- bytes: number;
4411
4410
  schemaVersion: number;
4411
+ bytes: number;
4412
4412
  }>]>;
4413
4413
  eventId: z.ZodString;
4414
4414
  runId: z.ZodString;
@@ -4424,15 +4424,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4424
4424
  evaluatedInputs?: Record<string, unknown> | undefined;
4425
4425
  } | {
4426
4426
  ref: string;
4427
- bytes: number;
4428
4427
  schemaVersion: number;
4428
+ bytes: number;
4429
4429
  };
4430
4430
  type: "conditionEvaluated";
4431
4431
  runId: string;
4432
+ schemaVersion: 1;
4432
4433
  timestamp: number;
4433
4434
  eventId: string;
4434
- schemaVersion: 1;
4435
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4435
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
4436
4436
  payloadHash?: string | undefined;
4437
4437
  }, {
4438
4438
  payload: {
@@ -4442,15 +4442,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4442
4442
  evaluatedInputs?: Record<string, unknown> | undefined;
4443
4443
  } | {
4444
4444
  ref: string;
4445
- bytes: number;
4446
4445
  schemaVersion: number;
4446
+ bytes: number;
4447
4447
  };
4448
4448
  type: "conditionEvaluated";
4449
4449
  runId: string;
4450
+ schemaVersion: 1;
4450
4451
  timestamp: number;
4451
4452
  eventId: string;
4452
- schemaVersion: 1;
4453
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4453
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
4454
4454
  payloadHash?: string | undefined;
4455
4455
  }>, z.ZodObject<{
4456
4456
  type: z.ZodLiteral<"leaseSigned">;
@@ -4478,12 +4478,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4478
4478
  schemaVersion: z.ZodNumber;
4479
4479
  }, "strip", z.ZodTypeAny, {
4480
4480
  ref: string;
4481
- bytes: number;
4482
4481
  schemaVersion: number;
4482
+ bytes: number;
4483
4483
  }, {
4484
4484
  ref: string;
4485
- bytes: number;
4486
4485
  schemaVersion: number;
4486
+ bytes: number;
4487
4487
  }>]>;
4488
4488
  eventId: z.ZodString;
4489
4489
  runId: z.ZodString;
@@ -4500,15 +4500,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4500
4500
  maxOutputBytes: number;
4501
4501
  } | {
4502
4502
  ref: string;
4503
- bytes: number;
4504
4503
  schemaVersion: number;
4504
+ bytes: number;
4505
4505
  };
4506
4506
  type: "leaseSigned";
4507
4507
  runId: string;
4508
+ schemaVersion: 1;
4508
4509
  timestamp: number;
4509
4510
  eventId: string;
4510
- schemaVersion: 1;
4511
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4511
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
4512
4512
  payloadHash?: string | undefined;
4513
4513
  }, {
4514
4514
  payload: {
@@ -4519,15 +4519,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4519
4519
  maxOutputBytes: number;
4520
4520
  } | {
4521
4521
  ref: string;
4522
- bytes: number;
4523
4522
  schemaVersion: number;
4523
+ bytes: number;
4524
4524
  };
4525
4525
  type: "leaseSigned";
4526
4526
  runId: string;
4527
+ schemaVersion: 1;
4527
4528
  timestamp: number;
4528
4529
  eventId: string;
4529
- schemaVersion: 1;
4530
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4530
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
4531
4531
  payloadHash?: string | undefined;
4532
4532
  }>, z.ZodObject<{
4533
4533
  type: z.ZodLiteral<"attemptCreated">;
@@ -4558,7 +4558,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4558
4558
  }, "strip", z.ZodTypeAny, {
4559
4559
  nodeId: string;
4560
4560
  attemptId: string;
4561
- activityId: string;
4562
4561
  inputRef: {
4563
4562
  outputHash: string;
4564
4563
  outputBytes: number;
@@ -4566,11 +4565,11 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4566
4565
  outputPath?: string | undefined;
4567
4566
  contentType?: string | undefined;
4568
4567
  };
4568
+ activityId: string;
4569
4569
  attemptNumber: number;
4570
4570
  }, {
4571
4571
  nodeId: string;
4572
4572
  attemptId: string;
4573
- activityId: string;
4574
4573
  inputRef: {
4575
4574
  outputHash: string;
4576
4575
  outputBytes: number;
@@ -4578,6 +4577,7 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4578
4577
  outputPath?: string | undefined;
4579
4578
  contentType?: string | undefined;
4580
4579
  };
4580
+ activityId: string;
4581
4581
  attemptNumber: number;
4582
4582
  }>, z.ZodObject<{
4583
4583
  ref: z.ZodString;
@@ -4585,12 +4585,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4585
4585
  schemaVersion: z.ZodNumber;
4586
4586
  }, "strip", z.ZodTypeAny, {
4587
4587
  ref: string;
4588
- bytes: number;
4589
4588
  schemaVersion: number;
4589
+ bytes: number;
4590
4590
  }, {
4591
4591
  ref: string;
4592
- bytes: number;
4593
4592
  schemaVersion: number;
4593
+ bytes: number;
4594
4594
  }>]>;
4595
4595
  eventId: z.ZodString;
4596
4596
  runId: z.ZodString;
@@ -4602,7 +4602,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4602
4602
  payload: {
4603
4603
  nodeId: string;
4604
4604
  attemptId: string;
4605
- activityId: string;
4606
4605
  inputRef: {
4607
4606
  outputHash: string;
4608
4607
  outputBytes: number;
@@ -4610,24 +4609,24 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4610
4609
  outputPath?: string | undefined;
4611
4610
  contentType?: string | undefined;
4612
4611
  };
4612
+ activityId: string;
4613
4613
  attemptNumber: number;
4614
4614
  } | {
4615
4615
  ref: string;
4616
- bytes: number;
4617
4616
  schemaVersion: number;
4617
+ bytes: number;
4618
4618
  };
4619
4619
  type: "attemptCreated";
4620
4620
  runId: string;
4621
+ schemaVersion: 1;
4621
4622
  timestamp: number;
4622
4623
  eventId: string;
4623
- schemaVersion: 1;
4624
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4624
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
4625
4625
  payloadHash?: string | undefined;
4626
4626
  }, {
4627
4627
  payload: {
4628
4628
  nodeId: string;
4629
4629
  attemptId: string;
4630
- activityId: string;
4631
4630
  inputRef: {
4632
4631
  outputHash: string;
4633
4632
  outputBytes: number;
@@ -4635,18 +4634,19 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4635
4634
  outputPath?: string | undefined;
4636
4635
  contentType?: string | undefined;
4637
4636
  };
4637
+ activityId: string;
4638
4638
  attemptNumber: number;
4639
4639
  } | {
4640
4640
  ref: string;
4641
- bytes: number;
4642
4641
  schemaVersion: number;
4642
+ bytes: number;
4643
4643
  };
4644
4644
  type: "attemptCreated";
4645
4645
  runId: string;
4646
+ schemaVersion: 1;
4646
4647
  timestamp: number;
4647
4648
  eventId: string;
4648
- schemaVersion: 1;
4649
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4649
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
4650
4650
  payloadHash?: string | undefined;
4651
4651
  }>, z.ZodObject<{
4652
4652
  type: z.ZodLiteral<"backoffScheduled">;
@@ -4696,12 +4696,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4696
4696
  schemaVersion: z.ZodNumber;
4697
4697
  }, "strip", z.ZodTypeAny, {
4698
4698
  ref: string;
4699
- bytes: number;
4700
4699
  schemaVersion: number;
4700
+ bytes: number;
4701
4701
  }, {
4702
4702
  ref: string;
4703
- bytes: number;
4704
4703
  schemaVersion: number;
4704
+ bytes: number;
4705
4705
  }>]>;
4706
4706
  eventId: z.ZodString;
4707
4707
  runId: z.ZodString;
@@ -4722,15 +4722,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4722
4722
  };
4723
4723
  } | {
4724
4724
  ref: string;
4725
- bytes: number;
4726
4725
  schemaVersion: number;
4726
+ bytes: number;
4727
4727
  };
4728
4728
  type: "backoffScheduled";
4729
4729
  runId: string;
4730
+ schemaVersion: 1;
4730
4731
  timestamp: number;
4731
4732
  eventId: string;
4732
- schemaVersion: 1;
4733
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4733
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
4734
4734
  payloadHash?: string | undefined;
4735
4735
  }, {
4736
4736
  payload: {
@@ -4745,15 +4745,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4745
4745
  };
4746
4746
  } | {
4747
4747
  ref: string;
4748
- bytes: number;
4749
4748
  schemaVersion: number;
4749
+ bytes: number;
4750
4750
  };
4751
4751
  type: "backoffScheduled";
4752
4752
  runId: string;
4753
+ schemaVersion: 1;
4753
4754
  timestamp: number;
4754
4755
  eventId: string;
4755
- schemaVersion: 1;
4756
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4756
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
4757
4757
  payloadHash?: string | undefined;
4758
4758
  }>, z.ZodObject<{
4759
4759
  type: z.ZodLiteral<"backoffElapsed">;
@@ -4772,12 +4772,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4772
4772
  schemaVersion: z.ZodNumber;
4773
4773
  }, "strip", z.ZodTypeAny, {
4774
4774
  ref: string;
4775
- bytes: number;
4776
4775
  schemaVersion: number;
4776
+ bytes: number;
4777
4777
  }, {
4778
4778
  ref: string;
4779
- bytes: number;
4780
4779
  schemaVersion: number;
4780
+ bytes: number;
4781
4781
  }>]>;
4782
4782
  eventId: z.ZodString;
4783
4783
  runId: z.ZodString;
@@ -4791,15 +4791,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4791
4791
  scheduledAttemptId: string;
4792
4792
  } | {
4793
4793
  ref: string;
4794
- bytes: number;
4795
4794
  schemaVersion: number;
4795
+ bytes: number;
4796
4796
  };
4797
4797
  type: "backoffElapsed";
4798
4798
  runId: string;
4799
+ schemaVersion: 1;
4799
4800
  timestamp: number;
4800
4801
  eventId: string;
4801
- schemaVersion: 1;
4802
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4802
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
4803
4803
  payloadHash?: string | undefined;
4804
4804
  }, {
4805
4805
  payload: {
@@ -4807,15 +4807,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4807
4807
  scheduledAttemptId: string;
4808
4808
  } | {
4809
4809
  ref: string;
4810
- bytes: number;
4811
4810
  schemaVersion: number;
4811
+ bytes: number;
4812
4812
  };
4813
4813
  type: "backoffElapsed";
4814
4814
  runId: string;
4815
+ schemaVersion: 1;
4815
4816
  timestamp: number;
4816
4817
  eventId: string;
4817
- schemaVersion: 1;
4818
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4818
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
4819
4819
  payloadHash?: string | undefined;
4820
4820
  }>, z.ZodObject<{
4821
4821
  type: z.ZodLiteral<"effectAttempted">;
@@ -4828,30 +4828,30 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4828
4828
  provider: z.ZodString;
4829
4829
  }, "strip", z.ZodTypeAny, {
4830
4830
  attemptId: string;
4831
- activityId: string;
4832
- idempotencyKey: string;
4833
4831
  inputHash: string;
4834
- idempotencyTtlMs: number;
4832
+ idempotencyKey: string;
4835
4833
  provider: string;
4834
+ idempotencyTtlMs: number;
4835
+ activityId: string;
4836
4836
  }, {
4837
4837
  attemptId: string;
4838
- activityId: string;
4839
- idempotencyKey: string;
4840
4838
  inputHash: string;
4841
- idempotencyTtlMs: number;
4839
+ idempotencyKey: string;
4842
4840
  provider: string;
4841
+ idempotencyTtlMs: number;
4842
+ activityId: string;
4843
4843
  }>, z.ZodObject<{
4844
4844
  ref: z.ZodString;
4845
4845
  bytes: z.ZodNumber;
4846
4846
  schemaVersion: z.ZodNumber;
4847
4847
  }, "strip", z.ZodTypeAny, {
4848
4848
  ref: string;
4849
- bytes: number;
4850
4849
  schemaVersion: number;
4850
+ bytes: number;
4851
4851
  }, {
4852
4852
  ref: string;
4853
- bytes: number;
4854
4853
  schemaVersion: number;
4854
+ bytes: number;
4855
4855
  }>]>;
4856
4856
  eventId: z.ZodString;
4857
4857
  runId: z.ZodString;
@@ -4862,42 +4862,42 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4862
4862
  }, "strip", z.ZodTypeAny, {
4863
4863
  payload: {
4864
4864
  attemptId: string;
4865
- activityId: string;
4866
- idempotencyKey: string;
4867
4865
  inputHash: string;
4868
- idempotencyTtlMs: number;
4866
+ idempotencyKey: string;
4869
4867
  provider: string;
4868
+ idempotencyTtlMs: number;
4869
+ activityId: string;
4870
4870
  } | {
4871
4871
  ref: string;
4872
- bytes: number;
4873
4872
  schemaVersion: number;
4873
+ bytes: number;
4874
4874
  };
4875
4875
  type: "effectAttempted";
4876
4876
  runId: string;
4877
+ schemaVersion: 1;
4877
4878
  timestamp: number;
4878
4879
  eventId: string;
4879
- schemaVersion: 1;
4880
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4880
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
4881
4881
  payloadHash?: string | undefined;
4882
4882
  }, {
4883
4883
  payload: {
4884
4884
  attemptId: string;
4885
- activityId: string;
4886
- idempotencyKey: string;
4887
4885
  inputHash: string;
4888
- idempotencyTtlMs: number;
4886
+ idempotencyKey: string;
4889
4887
  provider: string;
4888
+ idempotencyTtlMs: number;
4889
+ activityId: string;
4890
4890
  } | {
4891
4891
  ref: string;
4892
- bytes: number;
4893
4892
  schemaVersion: number;
4893
+ bytes: number;
4894
4894
  };
4895
4895
  type: "effectAttempted";
4896
4896
  runId: string;
4897
+ schemaVersion: 1;
4897
4898
  timestamp: number;
4898
4899
  eventId: string;
4899
- schemaVersion: 1;
4900
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4900
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
4901
4901
  payloadHash?: string | undefined;
4902
4902
  }>, z.ZodObject<{
4903
4903
  type: z.ZodLiteral<"activitySucceeded">;
@@ -4952,12 +4952,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4952
4952
  schemaVersion: z.ZodNumber;
4953
4953
  }, "strip", z.ZodTypeAny, {
4954
4954
  ref: string;
4955
- bytes: number;
4956
4955
  schemaVersion: number;
4956
+ bytes: number;
4957
4957
  }, {
4958
4958
  ref: string;
4959
- bytes: number;
4960
4959
  schemaVersion: number;
4960
+ bytes: number;
4961
4961
  }>]>;
4962
4962
  eventId: z.ZodString;
4963
4963
  runId: z.ZodString;
@@ -4979,15 +4979,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4979
4979
  externalRefs?: Record<string, unknown> | undefined;
4980
4980
  } | {
4981
4981
  ref: string;
4982
- bytes: number;
4983
4982
  schemaVersion: number;
4983
+ bytes: number;
4984
4984
  };
4985
4985
  type: "activitySucceeded";
4986
4986
  runId: string;
4987
+ schemaVersion: 1;
4987
4988
  timestamp: number;
4988
4989
  eventId: string;
4989
- schemaVersion: 1;
4990
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4990
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
4991
4991
  payloadHash?: string | undefined;
4992
4992
  }, {
4993
4993
  payload: {
@@ -5003,15 +5003,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5003
5003
  externalRefs?: Record<string, unknown> | undefined;
5004
5004
  } | {
5005
5005
  ref: string;
5006
- bytes: number;
5007
5006
  schemaVersion: number;
5007
+ bytes: number;
5008
5008
  };
5009
5009
  type: "activitySucceeded";
5010
5010
  runId: string;
5011
+ schemaVersion: 1;
5011
5012
  timestamp: number;
5012
5013
  eventId: string;
5013
- schemaVersion: 1;
5014
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5014
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
5015
5015
  payloadHash?: string | undefined;
5016
5016
  }>, z.ZodObject<{
5017
5017
  type: z.ZodLiteral<"activityFailed">;
@@ -5024,19 +5024,19 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5024
5024
  errorMessage: z.ZodString;
5025
5025
  stackRef: z.ZodOptional<z.ZodString>;
5026
5026
  }, "strip", z.ZodTypeAny, {
5027
- errorCode: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
5027
+ errorCode: "IdempotencyConflict" | "InputValidationFailed" | "UnknownProviderError" | "ProviderRateLimited" | "NetworkError" | "LeaseExpired" | "WorkerCrashed" | "IdempotencyInputMismatch" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
5028
5028
  errorClass: "retryable" | "manual" | "fatal" | "userFault";
5029
5029
  errorMessage: string;
5030
5030
  stackRef?: string | undefined;
5031
5031
  }, {
5032
- errorCode: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
5032
+ errorCode: "IdempotencyConflict" | "InputValidationFailed" | "UnknownProviderError" | "ProviderRateLimited" | "NetworkError" | "LeaseExpired" | "WorkerCrashed" | "IdempotencyInputMismatch" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
5033
5033
  errorClass: "retryable" | "manual" | "fatal" | "userFault";
5034
5034
  errorMessage: string;
5035
5035
  stackRef?: string | undefined;
5036
5036
  }>;
5037
5037
  }, "strip", z.ZodTypeAny, {
5038
5038
  error: {
5039
- errorCode: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
5039
+ errorCode: "IdempotencyConflict" | "InputValidationFailed" | "UnknownProviderError" | "ProviderRateLimited" | "NetworkError" | "LeaseExpired" | "WorkerCrashed" | "IdempotencyInputMismatch" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
5040
5040
  errorClass: "retryable" | "manual" | "fatal" | "userFault";
5041
5041
  errorMessage: string;
5042
5042
  stackRef?: string | undefined;
@@ -5045,7 +5045,7 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5045
5045
  activityId: string;
5046
5046
  }, {
5047
5047
  error: {
5048
- errorCode: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
5048
+ errorCode: "IdempotencyConflict" | "InputValidationFailed" | "UnknownProviderError" | "ProviderRateLimited" | "NetworkError" | "LeaseExpired" | "WorkerCrashed" | "IdempotencyInputMismatch" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
5049
5049
  errorClass: "retryable" | "manual" | "fatal" | "userFault";
5050
5050
  errorMessage: string;
5051
5051
  stackRef?: string | undefined;
@@ -5058,12 +5058,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5058
5058
  schemaVersion: z.ZodNumber;
5059
5059
  }, "strip", z.ZodTypeAny, {
5060
5060
  ref: string;
5061
- bytes: number;
5062
5061
  schemaVersion: number;
5062
+ bytes: number;
5063
5063
  }, {
5064
5064
  ref: string;
5065
- bytes: number;
5066
5065
  schemaVersion: number;
5066
+ bytes: number;
5067
5067
  }>]>;
5068
5068
  eventId: z.ZodString;
5069
5069
  runId: z.ZodString;
@@ -5074,7 +5074,7 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5074
5074
  }, "strip", z.ZodTypeAny, {
5075
5075
  payload: {
5076
5076
  error: {
5077
- errorCode: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
5077
+ errorCode: "IdempotencyConflict" | "InputValidationFailed" | "UnknownProviderError" | "ProviderRateLimited" | "NetworkError" | "LeaseExpired" | "WorkerCrashed" | "IdempotencyInputMismatch" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
5078
5078
  errorClass: "retryable" | "manual" | "fatal" | "userFault";
5079
5079
  errorMessage: string;
5080
5080
  stackRef?: string | undefined;
@@ -5083,20 +5083,20 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5083
5083
  activityId: string;
5084
5084
  } | {
5085
5085
  ref: string;
5086
- bytes: number;
5087
5086
  schemaVersion: number;
5087
+ bytes: number;
5088
5088
  };
5089
5089
  type: "activityFailed";
5090
5090
  runId: string;
5091
+ schemaVersion: 1;
5091
5092
  timestamp: number;
5092
5093
  eventId: string;
5093
- schemaVersion: 1;
5094
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5094
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
5095
5095
  payloadHash?: string | undefined;
5096
5096
  }, {
5097
5097
  payload: {
5098
5098
  error: {
5099
- errorCode: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
5099
+ errorCode: "IdempotencyConflict" | "InputValidationFailed" | "UnknownProviderError" | "ProviderRateLimited" | "NetworkError" | "LeaseExpired" | "WorkerCrashed" | "IdempotencyInputMismatch" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
5100
5100
  errorClass: "retryable" | "manual" | "fatal" | "userFault";
5101
5101
  errorMessage: string;
5102
5102
  stackRef?: string | undefined;
@@ -5105,15 +5105,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5105
5105
  activityId: string;
5106
5106
  } | {
5107
5107
  ref: string;
5108
- bytes: number;
5109
5108
  schemaVersion: number;
5109
+ bytes: number;
5110
5110
  };
5111
5111
  type: "activityFailed";
5112
5112
  runId: string;
5113
+ schemaVersion: 1;
5113
5114
  timestamp: number;
5114
5115
  eventId: string;
5115
- schemaVersion: 1;
5116
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5116
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
5117
5117
  payloadHash?: string | undefined;
5118
5118
  }>, z.ZodObject<{
5119
5119
  type: z.ZodLiteral<"waitCreated">;
@@ -5183,12 +5183,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5183
5183
  schemaVersion: z.ZodNumber;
5184
5184
  }, "strip", z.ZodTypeAny, {
5185
5185
  ref: string;
5186
- bytes: number;
5187
5186
  schemaVersion: number;
5187
+ bytes: number;
5188
5188
  }, {
5189
5189
  ref: string;
5190
- bytes: number;
5191
5190
  schemaVersion: number;
5191
+ bytes: number;
5192
5192
  }>]>;
5193
5193
  eventId: z.ZodString;
5194
5194
  runId: z.ZodString;
@@ -5215,15 +5215,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5215
5215
  onTimeout?: "fail" | "success" | undefined;
5216
5216
  } | {
5217
5217
  ref: string;
5218
- bytes: number;
5219
5218
  schemaVersion: number;
5219
+ bytes: number;
5220
5220
  };
5221
5221
  type: "waitCreated";
5222
5222
  runId: string;
5223
+ schemaVersion: 1;
5223
5224
  timestamp: number;
5224
5225
  eventId: string;
5225
- schemaVersion: 1;
5226
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5226
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
5227
5227
  payloadHash?: string | undefined;
5228
5228
  }, {
5229
5229
  payload: {
@@ -5244,15 +5244,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5244
5244
  onTimeout?: "fail" | "success" | undefined;
5245
5245
  } | {
5246
5246
  ref: string;
5247
- bytes: number;
5248
5247
  schemaVersion: number;
5248
+ bytes: number;
5249
5249
  };
5250
5250
  type: "waitCreated";
5251
5251
  runId: string;
5252
+ schemaVersion: 1;
5252
5253
  timestamp: number;
5253
5254
  eventId: string;
5254
- schemaVersion: 1;
5255
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5255
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
5256
5256
  payloadHash?: string | undefined;
5257
5257
  }>, z.ZodObject<{
5258
5258
  type: z.ZodLiteral<"waitResolved">;
@@ -5262,14 +5262,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5262
5262
  by: z.ZodString;
5263
5263
  comment: z.ZodOptional<z.ZodString>;
5264
5264
  }, "strip", z.ZodTypeAny, {
5265
- activityId: string;
5266
5265
  resolution: "approved" | "rejected" | "external";
5267
5266
  by: string;
5267
+ activityId: string;
5268
5268
  comment?: string | undefined;
5269
5269
  }, {
5270
- activityId: string;
5271
5270
  resolution: "approved" | "rejected" | "external";
5272
5271
  by: string;
5272
+ activityId: string;
5273
5273
  comment?: string | undefined;
5274
5274
  }>, z.ZodObject<{
5275
5275
  ref: z.ZodString;
@@ -5277,12 +5277,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5277
5277
  schemaVersion: z.ZodNumber;
5278
5278
  }, "strip", z.ZodTypeAny, {
5279
5279
  ref: string;
5280
- bytes: number;
5281
5280
  schemaVersion: number;
5281
+ bytes: number;
5282
5282
  }, {
5283
5283
  ref: string;
5284
- bytes: number;
5285
5284
  schemaVersion: number;
5285
+ bytes: number;
5286
5286
  }>]>;
5287
5287
  eventId: z.ZodString;
5288
5288
  runId: z.ZodString;
@@ -5292,39 +5292,39 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5292
5292
  payloadHash: z.ZodOptional<z.ZodString>;
5293
5293
  }, "strip", z.ZodTypeAny, {
5294
5294
  payload: {
5295
- activityId: string;
5296
5295
  resolution: "approved" | "rejected" | "external";
5297
5296
  by: string;
5297
+ activityId: string;
5298
5298
  comment?: string | undefined;
5299
5299
  } | {
5300
5300
  ref: string;
5301
- bytes: number;
5302
5301
  schemaVersion: number;
5302
+ bytes: number;
5303
5303
  };
5304
5304
  type: "waitResolved";
5305
5305
  runId: string;
5306
+ schemaVersion: 1;
5306
5307
  timestamp: number;
5307
5308
  eventId: string;
5308
- schemaVersion: 1;
5309
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5309
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
5310
5310
  payloadHash?: string | undefined;
5311
5311
  }, {
5312
5312
  payload: {
5313
- activityId: string;
5314
5313
  resolution: "approved" | "rejected" | "external";
5315
5314
  by: string;
5315
+ activityId: string;
5316
5316
  comment?: string | undefined;
5317
5317
  } | {
5318
5318
  ref: string;
5319
- bytes: number;
5320
5319
  schemaVersion: number;
5320
+ bytes: number;
5321
5321
  };
5322
5322
  type: "waitResolved";
5323
5323
  runId: string;
5324
+ schemaVersion: 1;
5324
5325
  timestamp: number;
5325
5326
  eventId: string;
5326
- schemaVersion: 1;
5327
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5327
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
5328
5328
  payloadHash?: string | undefined;
5329
5329
  }>, z.ZodObject<{
5330
5330
  type: z.ZodLiteral<"waitDeadlineExceeded">;
@@ -5333,12 +5333,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5333
5333
  deadlineAt: z.ZodNumber;
5334
5334
  exceededAtMs: z.ZodNumber;
5335
5335
  }, "strip", z.ZodTypeAny, {
5336
- activityId: string;
5337
5336
  deadlineAt: number;
5337
+ activityId: string;
5338
5338
  exceededAtMs: number;
5339
5339
  }, {
5340
- activityId: string;
5341
5340
  deadlineAt: number;
5341
+ activityId: string;
5342
5342
  exceededAtMs: number;
5343
5343
  }>, z.ZodObject<{
5344
5344
  ref: z.ZodString;
@@ -5346,12 +5346,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5346
5346
  schemaVersion: z.ZodNumber;
5347
5347
  }, "strip", z.ZodTypeAny, {
5348
5348
  ref: string;
5349
- bytes: number;
5350
5349
  schemaVersion: number;
5350
+ bytes: number;
5351
5351
  }, {
5352
5352
  ref: string;
5353
- bytes: number;
5354
5353
  schemaVersion: number;
5354
+ bytes: number;
5355
5355
  }>]>;
5356
5356
  eventId: z.ZodString;
5357
5357
  runId: z.ZodString;
@@ -5361,37 +5361,37 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5361
5361
  payloadHash: z.ZodOptional<z.ZodString>;
5362
5362
  }, "strip", z.ZodTypeAny, {
5363
5363
  payload: {
5364
- activityId: string;
5365
5364
  deadlineAt: number;
5365
+ activityId: string;
5366
5366
  exceededAtMs: number;
5367
5367
  } | {
5368
5368
  ref: string;
5369
- bytes: number;
5370
5369
  schemaVersion: number;
5370
+ bytes: number;
5371
5371
  };
5372
5372
  type: "waitDeadlineExceeded";
5373
5373
  runId: string;
5374
+ schemaVersion: 1;
5374
5375
  timestamp: number;
5375
5376
  eventId: string;
5376
- schemaVersion: 1;
5377
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5377
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
5378
5378
  payloadHash?: string | undefined;
5379
5379
  }, {
5380
5380
  payload: {
5381
- activityId: string;
5382
5381
  deadlineAt: number;
5382
+ activityId: string;
5383
5383
  exceededAtMs: number;
5384
5384
  } | {
5385
5385
  ref: string;
5386
- bytes: number;
5387
5386
  schemaVersion: number;
5387
+ bytes: number;
5388
5388
  };
5389
5389
  type: "waitDeadlineExceeded";
5390
5390
  runId: string;
5391
+ schemaVersion: 1;
5391
5392
  timestamp: number;
5392
5393
  eventId: string;
5393
- schemaVersion: 1;
5394
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5394
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
5395
5395
  payloadHash?: string | undefined;
5396
5396
  }>, z.ZodObject<{
5397
5397
  type: z.ZodLiteral<"cancelRequested">;
@@ -5458,12 +5458,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5458
5458
  schemaVersion: z.ZodNumber;
5459
5459
  }, "strip", z.ZodTypeAny, {
5460
5460
  ref: string;
5461
- bytes: number;
5462
5461
  schemaVersion: number;
5462
+ bytes: number;
5463
5463
  }, {
5464
5464
  ref: string;
5465
- bytes: number;
5466
5465
  schemaVersion: number;
5466
+ bytes: number;
5467
5467
  }>]>;
5468
5468
  eventId: z.ZodString;
5469
5469
  runId: z.ZodString;
@@ -5487,15 +5487,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5487
5487
  by: string;
5488
5488
  } | {
5489
5489
  ref: string;
5490
- bytes: number;
5491
5490
  schemaVersion: number;
5491
+ bytes: number;
5492
5492
  };
5493
5493
  type: "cancelRequested";
5494
5494
  runId: string;
5495
+ schemaVersion: 1;
5495
5496
  timestamp: number;
5496
5497
  eventId: string;
5497
- schemaVersion: 1;
5498
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5498
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
5499
5499
  payloadHash?: string | undefined;
5500
5500
  }, {
5501
5501
  payload: {
@@ -5513,15 +5513,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5513
5513
  by: string;
5514
5514
  } | {
5515
5515
  ref: string;
5516
- bytes: number;
5517
5516
  schemaVersion: number;
5517
+ bytes: number;
5518
5518
  };
5519
5519
  type: "cancelRequested";
5520
5520
  runId: string;
5521
+ schemaVersion: 1;
5521
5522
  timestamp: number;
5522
5523
  eventId: string;
5523
- schemaVersion: 1;
5524
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5524
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
5525
5525
  payloadHash?: string | undefined;
5526
5526
  }>, z.ZodObject<{
5527
5527
  type: z.ZodLiteral<"cancelDelivered">;
@@ -5585,12 +5585,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5585
5585
  schemaVersion: z.ZodNumber;
5586
5586
  }, "strip", z.ZodTypeAny, {
5587
5587
  ref: string;
5588
- bytes: number;
5589
5588
  schemaVersion: number;
5589
+ bytes: number;
5590
5590
  }, {
5591
5591
  ref: string;
5592
- bytes: number;
5593
5592
  schemaVersion: number;
5593
+ bytes: number;
5594
5594
  }>]>;
5595
5595
  eventId: z.ZodString;
5596
5596
  runId: z.ZodString;
@@ -5613,15 +5613,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5613
5613
  activityId: string;
5614
5614
  } | {
5615
5615
  ref: string;
5616
- bytes: number;
5617
5616
  schemaVersion: number;
5617
+ bytes: number;
5618
5618
  };
5619
5619
  type: "cancelDelivered";
5620
5620
  runId: string;
5621
+ schemaVersion: 1;
5621
5622
  timestamp: number;
5622
5623
  eventId: string;
5623
- schemaVersion: 1;
5624
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5624
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
5625
5625
  payloadHash?: string | undefined;
5626
5626
  }, {
5627
5627
  payload: {
@@ -5638,15 +5638,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5638
5638
  activityId: string;
5639
5639
  } | {
5640
5640
  ref: string;
5641
- bytes: number;
5642
5641
  schemaVersion: number;
5642
+ bytes: number;
5643
5643
  };
5644
5644
  type: "cancelDelivered";
5645
5645
  runId: string;
5646
+ schemaVersion: 1;
5646
5647
  timestamp: number;
5647
5648
  eventId: string;
5648
- schemaVersion: 1;
5649
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5649
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
5650
5650
  payloadHash?: string | undefined;
5651
5651
  }>, z.ZodObject<{
5652
5652
  type: z.ZodLiteral<"activityCanceled">;
@@ -5668,12 +5668,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5668
5668
  schemaVersion: z.ZodNumber;
5669
5669
  }, "strip", z.ZodTypeAny, {
5670
5670
  ref: string;
5671
- bytes: number;
5672
5671
  schemaVersion: number;
5672
+ bytes: number;
5673
5673
  }, {
5674
5674
  ref: string;
5675
- bytes: number;
5676
5675
  schemaVersion: number;
5676
+ bytes: number;
5677
5677
  }>]>;
5678
5678
  eventId: z.ZodString;
5679
5679
  runId: z.ZodString;
@@ -5688,15 +5688,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5688
5688
  cancelOriginEventId: string;
5689
5689
  } | {
5690
5690
  ref: string;
5691
- bytes: number;
5692
5691
  schemaVersion: number;
5692
+ bytes: number;
5693
5693
  };
5694
5694
  type: "activityCanceled";
5695
5695
  runId: string;
5696
+ schemaVersion: 1;
5696
5697
  timestamp: number;
5697
5698
  eventId: string;
5698
- schemaVersion: 1;
5699
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5699
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
5700
5700
  payloadHash?: string | undefined;
5701
5701
  }, {
5702
5702
  payload: {
@@ -5705,15 +5705,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5705
5705
  cancelOriginEventId: string;
5706
5706
  } | {
5707
5707
  ref: string;
5708
- bytes: number;
5709
5708
  schemaVersion: number;
5709
+ bytes: number;
5710
5710
  };
5711
5711
  type: "activityCanceled";
5712
5712
  runId: string;
5713
+ schemaVersion: 1;
5713
5714
  timestamp: number;
5714
5715
  eventId: string;
5715
- schemaVersion: 1;
5716
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5716
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
5717
5717
  payloadHash?: string | undefined;
5718
5718
  }>, z.ZodObject<{
5719
5719
  type: z.ZodLiteral<"workerLost">;
@@ -5732,12 +5732,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5732
5732
  schemaVersion: z.ZodNumber;
5733
5733
  }, "strip", z.ZodTypeAny, {
5734
5734
  ref: string;
5735
- bytes: number;
5736
5735
  schemaVersion: number;
5736
+ bytes: number;
5737
5737
  }, {
5738
5738
  ref: string;
5739
- bytes: number;
5740
5739
  schemaVersion: number;
5740
+ bytes: number;
5741
5741
  }>]>;
5742
5742
  eventId: z.ZodString;
5743
5743
  runId: z.ZodString;
@@ -5751,15 +5751,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5751
5751
  lostActivityIds: string[];
5752
5752
  } | {
5753
5753
  ref: string;
5754
- bytes: number;
5755
5754
  schemaVersion: number;
5755
+ bytes: number;
5756
5756
  };
5757
5757
  type: "workerLost";
5758
5758
  runId: string;
5759
+ schemaVersion: 1;
5759
5760
  timestamp: number;
5760
5761
  eventId: string;
5761
- schemaVersion: 1;
5762
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5762
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
5763
5763
  payloadHash?: string | undefined;
5764
5764
  }, {
5765
5765
  payload: {
@@ -5767,15 +5767,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5767
5767
  lostActivityIds: string[];
5768
5768
  } | {
5769
5769
  ref: string;
5770
- bytes: number;
5771
5770
  schemaVersion: number;
5771
+ bytes: number;
5772
5772
  };
5773
5773
  type: "workerLost";
5774
5774
  runId: string;
5775
+ schemaVersion: 1;
5775
5776
  timestamp: number;
5776
5777
  eventId: string;
5777
- schemaVersion: 1;
5778
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5778
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
5779
5779
  payloadHash?: string | undefined;
5780
5780
  }>, z.ZodObject<{
5781
5781
  type: z.ZodLiteral<"resumeStarted">;
@@ -5794,12 +5794,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5794
5794
  schemaVersion: z.ZodNumber;
5795
5795
  }, "strip", z.ZodTypeAny, {
5796
5796
  ref: string;
5797
- bytes: number;
5798
5797
  schemaVersion: number;
5798
+ bytes: number;
5799
5799
  }, {
5800
5800
  ref: string;
5801
- bytes: number;
5802
5801
  schemaVersion: number;
5802
+ bytes: number;
5803
5803
  }>]>;
5804
5804
  eventId: z.ZodString;
5805
5805
  runId: z.ZodString;
@@ -5813,15 +5813,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5813
5813
  lastSeenEventId: string;
5814
5814
  } | {
5815
5815
  ref: string;
5816
- bytes: number;
5817
5816
  schemaVersion: number;
5817
+ bytes: number;
5818
5818
  };
5819
5819
  type: "resumeStarted";
5820
5820
  runId: string;
5821
+ schemaVersion: 1;
5821
5822
  timestamp: number;
5822
5823
  eventId: string;
5823
- schemaVersion: 1;
5824
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5824
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
5825
5825
  payloadHash?: string | undefined;
5826
5826
  }, {
5827
5827
  payload: {
@@ -5829,15 +5829,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5829
5829
  lastSeenEventId: string;
5830
5830
  } | {
5831
5831
  ref: string;
5832
- bytes: number;
5833
5832
  schemaVersion: number;
5833
+ bytes: number;
5834
5834
  };
5835
5835
  type: "resumeStarted";
5836
5836
  runId: string;
5837
+ schemaVersion: 1;
5837
5838
  timestamp: number;
5838
5839
  eventId: string;
5839
- schemaVersion: 1;
5840
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5840
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
5841
5841
  payloadHash?: string | undefined;
5842
5842
  }>, z.ZodObject<{
5843
5843
  type: z.ZodLiteral<"reconcileResult">;
@@ -5848,29 +5848,29 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5848
5848
  decision: z.ZodEnum<["replayed", "completedByIdempotentSubmit", "manual", "freshRetry"]>;
5849
5849
  evidence: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5850
5850
  }, "strip", z.ZodTypeAny, {
5851
- capability: "none" | "readOnlyLookup" | "idempotentSubmit";
5851
+ capability: "none" | "idempotentSubmit" | "readOnlyLookup";
5852
5852
  decision: "manual" | "replayed" | "completedByIdempotentSubmit" | "freshRetry";
5853
5853
  evidence: Record<string, unknown>;
5854
- activityId: string;
5855
5854
  idempotencyKey: string;
5855
+ activityId: string;
5856
5856
  }, {
5857
- capability: "none" | "readOnlyLookup" | "idempotentSubmit";
5857
+ capability: "none" | "idempotentSubmit" | "readOnlyLookup";
5858
5858
  decision: "manual" | "replayed" | "completedByIdempotentSubmit" | "freshRetry";
5859
5859
  evidence: Record<string, unknown>;
5860
- activityId: string;
5861
5860
  idempotencyKey: string;
5861
+ activityId: string;
5862
5862
  }>, z.ZodObject<{
5863
5863
  ref: z.ZodString;
5864
5864
  bytes: z.ZodNumber;
5865
5865
  schemaVersion: z.ZodNumber;
5866
5866
  }, "strip", z.ZodTypeAny, {
5867
5867
  ref: string;
5868
- bytes: number;
5869
5868
  schemaVersion: number;
5869
+ bytes: number;
5870
5870
  }, {
5871
5871
  ref: string;
5872
- bytes: number;
5873
5872
  schemaVersion: number;
5873
+ bytes: number;
5874
5874
  }>]>;
5875
5875
  eventId: z.ZodString;
5876
5876
  runId: z.ZodString;
@@ -5880,41 +5880,41 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5880
5880
  payloadHash: z.ZodOptional<z.ZodString>;
5881
5881
  }, "strip", z.ZodTypeAny, {
5882
5882
  payload: {
5883
- capability: "none" | "readOnlyLookup" | "idempotentSubmit";
5883
+ capability: "none" | "idempotentSubmit" | "readOnlyLookup";
5884
5884
  decision: "manual" | "replayed" | "completedByIdempotentSubmit" | "freshRetry";
5885
5885
  evidence: Record<string, unknown>;
5886
- activityId: string;
5887
5886
  idempotencyKey: string;
5887
+ activityId: string;
5888
5888
  } | {
5889
5889
  ref: string;
5890
- bytes: number;
5891
5890
  schemaVersion: number;
5891
+ bytes: number;
5892
5892
  };
5893
5893
  type: "reconcileResult";
5894
5894
  runId: string;
5895
+ schemaVersion: 1;
5895
5896
  timestamp: number;
5896
5897
  eventId: string;
5897
- schemaVersion: 1;
5898
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5898
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
5899
5899
  payloadHash?: string | undefined;
5900
5900
  }, {
5901
5901
  payload: {
5902
- capability: "none" | "readOnlyLookup" | "idempotentSubmit";
5902
+ capability: "none" | "idempotentSubmit" | "readOnlyLookup";
5903
5903
  decision: "manual" | "replayed" | "completedByIdempotentSubmit" | "freshRetry";
5904
5904
  evidence: Record<string, unknown>;
5905
- activityId: string;
5906
5905
  idempotencyKey: string;
5906
+ activityId: string;
5907
5907
  } | {
5908
5908
  ref: string;
5909
- bytes: number;
5910
5909
  schemaVersion: number;
5910
+ bytes: number;
5911
5911
  };
5912
5912
  type: "reconcileResult";
5913
5913
  runId: string;
5914
+ schemaVersion: 1;
5914
5915
  timestamp: number;
5915
5916
  eventId: string;
5916
- schemaVersion: 1;
5917
- actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5917
+ actor: "worker" | "system" | "human" | "scheduler" | "hostExecutor" | "supervisor";
5918
5918
  payloadHash?: string | undefined;
5919
5919
  }>]>;
5920
5920
  export type WorkflowEvent = z.infer<typeof EventSchema>;
@@ -6002,6 +6002,6 @@ export declare const INLINE_PAYLOAD_MAX_BYTES = 4096;
6002
6002
  * still be safely retried with the same uuid. Feishu's documented uuid
6003
6003
  * dedupe window is 1 hour (spike report §1.2).
6004
6004
  */
6005
- export declare const PROVIDER_TTL_MS: Record<string, number>;
6005
+ export { PROVIDER_TTL_MS } from '../shared/provider-reconciler.js';
6006
6006
  export { Sha256Schema };
6007
6007
  //# sourceMappingURL=schema.d.ts.map