botmux 2.104.0 → 2.105.1

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 (339) hide show
  1. package/README.en.md +10 -10
  2. package/README.md +10 -10
  3. package/dist/adapters/backend/sandbox.d.ts +5 -1
  4. package/dist/adapters/backend/sandbox.d.ts.map +1 -1
  5. package/dist/adapters/backend/sandbox.js +54 -5
  6. package/dist/adapters/backend/sandbox.js.map +1 -1
  7. package/dist/adapters/backend/tmux-pipe-backend.d.ts +1 -1
  8. package/dist/adapters/backend/tmux-pipe-backend.js +1 -1
  9. package/dist/adapters/backend/zellij-observe-backend.d.ts +1 -1
  10. package/dist/adapters/backend/zellij-observe-backend.js +1 -1
  11. package/dist/adapters/cli/claude-code.d.ts +1 -1
  12. package/dist/adapters/cli/read-isolation.d.ts +2 -1
  13. package/dist/adapters/cli/read-isolation.d.ts.map +1 -1
  14. package/dist/adapters/cli/read-isolation.js +51 -4
  15. package/dist/adapters/cli/read-isolation.js.map +1 -1
  16. package/dist/adapters/cli/relay.d.ts +2 -2
  17. package/dist/adapters/cli/relay.js +2 -2
  18. package/dist/adapters/cli/seed.d.ts +2 -2
  19. package/dist/adapters/cli/seed.js +2 -2
  20. package/dist/adapters/cli/shared-hints.d.ts.map +1 -1
  21. package/dist/adapters/cli/shared-hints.js +1 -0
  22. package/dist/adapters/cli/shared-hints.js.map +1 -1
  23. package/dist/bot-registry.d.ts +65 -1
  24. package/dist/bot-registry.d.ts.map +1 -1
  25. package/dist/bot-registry.js +145 -0
  26. package/dist/bot-registry.js.map +1 -1
  27. package/dist/cli/send-dispatch.d.ts +44 -0
  28. package/dist/cli/send-dispatch.d.ts.map +1 -1
  29. package/dist/cli/send-dispatch.js +79 -0
  30. package/dist/cli/send-dispatch.js.map +1 -1
  31. package/dist/cli/vc-agent.d.ts +2 -0
  32. package/dist/cli/vc-agent.d.ts.map +1 -0
  33. package/dist/cli/vc-agent.js +331 -0
  34. package/dist/cli/vc-agent.js.map +1 -0
  35. package/dist/cli.d.ts.map +1 -1
  36. package/dist/cli.js +125 -24
  37. package/dist/cli.js.map +1 -1
  38. package/dist/config.d.ts +8 -0
  39. package/dist/config.d.ts.map +1 -1
  40. package/dist/config.js +13 -1
  41. package/dist/config.js.map +1 -1
  42. package/dist/core/auto-start.d.ts +2 -2
  43. package/dist/core/auto-start.js +2 -2
  44. package/dist/core/command-handler.d.ts.map +1 -1
  45. package/dist/core/command-handler.js +2 -1
  46. package/dist/core/command-handler.js.map +1 -1
  47. package/dist/core/dashboard-events.d.ts +5 -0
  48. package/dist/core/dashboard-events.d.ts.map +1 -1
  49. package/dist/core/dashboard-events.js.map +1 -1
  50. package/dist/core/dashboard-ipc-server.d.ts.map +1 -1
  51. package/dist/core/dashboard-ipc-server.js +47 -2
  52. package/dist/core/dashboard-ipc-server.js.map +1 -1
  53. package/dist/core/idle-worker-sweeper.d.ts +1 -1
  54. package/dist/core/idle-worker-sweeper.js +1 -1
  55. package/dist/core/passthrough-commands.d.ts.map +1 -1
  56. package/dist/core/passthrough-commands.js +1 -0
  57. package/dist/core/passthrough-commands.js.map +1 -1
  58. package/dist/core/scheduler.d.ts +12 -0
  59. package/dist/core/scheduler.d.ts.map +1 -1
  60. package/dist/core/scheduler.js +67 -7
  61. package/dist/core/scheduler.js.map +1 -1
  62. package/dist/core/session-discovery.js +1 -1
  63. package/dist/core/session-discovery.js.map +1 -1
  64. package/dist/core/session-manager.d.ts +1 -1
  65. package/dist/core/session-manager.d.ts.map +1 -1
  66. package/dist/core/session-manager.js +55 -10
  67. package/dist/core/session-manager.js.map +1 -1
  68. package/dist/core/trigger-session.d.ts.map +1 -1
  69. package/dist/core/trigger-session.js +78 -23
  70. package/dist/core/trigger-session.js.map +1 -1
  71. package/dist/core/types.d.ts +3 -3
  72. package/dist/core/types.d.ts.map +1 -1
  73. package/dist/core/worker-pool.d.ts +8 -1
  74. package/dist/core/worker-pool.d.ts.map +1 -1
  75. package/dist/core/worker-pool.js +31 -9
  76. package/dist/core/worker-pool.js.map +1 -1
  77. package/dist/core/zellij-adopt-discovery.js +1 -1
  78. package/dist/core/zellij-adopt-discovery.js.map +1 -1
  79. package/dist/daemon.d.ts +121 -0
  80. package/dist/daemon.d.ts.map +1 -1
  81. package/dist/daemon.js +2644 -2
  82. package/dist/daemon.js.map +1 -1
  83. package/dist/dashboard/federated-group-core.js +1 -1
  84. package/dist/dashboard/federated-group-core.js.map +1 -1
  85. package/dist/dashboard/federation-api.js +1 -1
  86. package/dist/dashboard/schedule-card-model.d.ts +4 -3
  87. package/dist/dashboard/schedule-card-model.d.ts.map +1 -1
  88. package/dist/dashboard/schedule-card-model.js +5 -4
  89. package/dist/dashboard/schedule-card-model.js.map +1 -1
  90. package/dist/dashboard/settings-write-applier.d.ts +37 -3
  91. package/dist/dashboard/settings-write-applier.d.ts.map +1 -1
  92. package/dist/dashboard/settings-write-applier.js +63 -0
  93. package/dist/dashboard/settings-write-applier.js.map +1 -1
  94. package/dist/dashboard/web/i18n.d.ts.map +1 -1
  95. package/dist/dashboard/web/i18n.js +28 -0
  96. package/dist/dashboard/web/i18n.js.map +1 -1
  97. package/dist/dashboard/web/insights.js +19 -19
  98. package/dist/dashboard/web/insights.js.map +1 -1
  99. package/dist/dashboard/web/overview-page.d.ts.map +1 -1
  100. package/dist/dashboard/web/overview-page.js +7 -4
  101. package/dist/dashboard/web/overview-page.js.map +1 -1
  102. package/dist/dashboard/web/schedules-page.d.ts +1 -1
  103. package/dist/dashboard/web/schedules-page.d.ts.map +1 -1
  104. package/dist/dashboard/web/schedules-page.js +7 -3
  105. package/dist/dashboard/web/schedules-page.js.map +1 -1
  106. package/dist/dashboard/web/sessions.js +2 -2
  107. package/dist/dashboard/web/settings-page.d.ts +9 -0
  108. package/dist/dashboard/web/settings-page.d.ts.map +1 -1
  109. package/dist/dashboard/web/settings-page.js +132 -43
  110. package/dist/dashboard/web/settings-page.js.map +1 -1
  111. package/dist/dashboard/web/store.d.ts +6 -0
  112. package/dist/dashboard/web/store.d.ts.map +1 -1
  113. package/dist/dashboard/web/store.js +18 -1
  114. package/dist/dashboard/web/store.js.map +1 -1
  115. package/dist/dashboard/webhook-routes.d.ts.map +1 -1
  116. package/dist/dashboard/webhook-routes.js +24 -0
  117. package/dist/dashboard/webhook-routes.js.map +1 -1
  118. package/dist/dashboard-web/app.js +3 -3
  119. package/dist/dashboard-web/chunks/{bot-defaults-page-Z36I5CKM.js → bot-defaults-page-3OIY7N76.js} +1 -1
  120. package/dist/dashboard-web/chunks/{chunk-2BBCKWNO.js → chunk-BNEXMNQD.js} +3 -3
  121. package/dist/dashboard-web/chunks/{chunk-QDKIUULH.js → chunk-DKKOGZCG.js} +1 -1
  122. package/dist/dashboard-web/chunks/chunk-LXIK7OUJ.js +1 -0
  123. package/dist/dashboard-web/chunks/{chunk-BAMNP73K.js → chunk-VFCACTRF.js} +1 -1
  124. package/dist/dashboard-web/chunks/{connectors-I3MGERCM.js → connectors-VDOAKUW3.js} +1 -1
  125. package/dist/dashboard-web/chunks/{groups-page-DTP2L4FQ.js → groups-page-CX5AN4XG.js} +1 -1
  126. package/dist/dashboard-web/chunks/{insights-page-FNI24WYF.js → insights-page-DOMRL4S6.js} +1 -1
  127. package/dist/dashboard-web/chunks/overview-page-AZBAXVZ7.js +1 -0
  128. package/dist/dashboard-web/chunks/{roles-page-A5DZ7Q6U.js → roles-page-3FEAH6S4.js} +1 -1
  129. package/dist/dashboard-web/chunks/schedules-CTQEA7IE.js +1 -0
  130. package/dist/dashboard-web/chunks/{sessions-YJ735IH4.js → sessions-LVZCXO2Z.js} +1 -1
  131. package/dist/dashboard-web/chunks/{sessions-page-2REIJ56C.js → sessions-page-NHBJDSBC.js} +1 -1
  132. package/dist/dashboard-web/chunks/settings-page-CRDIHRNE.js +2 -0
  133. package/dist/dashboard-web/chunks/{skills-page-ZCCLHWMJ.js → skills-page-VUG3EPWX.js} +1 -1
  134. package/dist/dashboard-web/chunks/{team-federation-page-4FCGO3WW.js → team-federation-page-ZKL3YMGN.js} +1 -1
  135. package/dist/dashboard-web/chunks/{workflows-KFJ7O57L.js → workflows-4BYQQBFP.js} +1 -1
  136. package/dist/dashboard-web/index.html +1 -1
  137. package/dist/dashboard-web/style.css +111 -16
  138. package/dist/dashboard.js +196 -2
  139. package/dist/dashboard.js.map +1 -1
  140. package/dist/global-config.d.ts +30 -0
  141. package/dist/global-config.d.ts.map +1 -1
  142. package/dist/global-config.js +64 -1
  143. package/dist/global-config.js.map +1 -1
  144. package/dist/i18n/en.d.ts.map +1 -1
  145. package/dist/i18n/en.js +10 -7
  146. package/dist/i18n/en.js.map +1 -1
  147. package/dist/i18n/zh.d.ts.map +1 -1
  148. package/dist/i18n/zh.js +10 -7
  149. package/dist/i18n/zh.js.map +1 -1
  150. package/dist/im/lark/card-builder.d.ts +1 -1
  151. package/dist/im/lark/card-builder.js +1 -1
  152. package/dist/im/lark/card-handler.d.ts +3 -0
  153. package/dist/im/lark/card-handler.d.ts.map +1 -1
  154. package/dist/im/lark/card-handler.js +8 -0
  155. package/dist/im/lark/card-handler.js.map +1 -1
  156. package/dist/im/lark/client.d.ts +1 -0
  157. package/dist/im/lark/client.d.ts.map +1 -1
  158. package/dist/im/lark/client.js +19 -0
  159. package/dist/im/lark/client.js.map +1 -1
  160. package/dist/im/lark/event-dispatcher.d.ts +10 -0
  161. package/dist/im/lark/event-dispatcher.d.ts.map +1 -1
  162. package/dist/im/lark/event-dispatcher.js +100 -21
  163. package/dist/im/lark/event-dispatcher.js.map +1 -1
  164. package/dist/im/lark/grant-command.d.ts +1 -1
  165. package/dist/im/lark/grant-command.js +1 -1
  166. package/dist/im/lark/workflow-slash-command.js +4 -0
  167. package/dist/im/lark/workflow-slash-command.js.map +1 -1
  168. package/dist/mir-prompt.d.ts +16 -0
  169. package/dist/mir-prompt.d.ts.map +1 -0
  170. package/dist/mir-prompt.js +170 -0
  171. package/dist/mir-prompt.js.map +1 -0
  172. package/dist/mir-runner.js +1 -149
  173. package/dist/mir-runner.js.map +1 -1
  174. package/dist/platform/bind.d.ts.map +1 -1
  175. package/dist/platform/bind.js +3 -11
  176. package/dist/platform/bind.js.map +1 -1
  177. package/dist/platform/binding.d.ts +4 -5
  178. package/dist/platform/binding.d.ts.map +1 -1
  179. package/dist/platform/binding.js +0 -11
  180. package/dist/platform/binding.js.map +1 -1
  181. package/dist/platform/tunnel-client.d.ts.map +1 -1
  182. package/dist/platform/tunnel-client.js +37 -28
  183. package/dist/platform/tunnel-client.js.map +1 -1
  184. package/dist/services/deployment-identity.d.ts +1 -1
  185. package/dist/services/deployment-identity.d.ts.map +1 -1
  186. package/dist/services/deployment-identity.js +1 -1
  187. package/dist/services/deployment-identity.js.map +1 -1
  188. package/dist/services/doc-subs-store.js +1 -1
  189. package/dist/services/team-board-store.js +1 -1
  190. package/dist/services/team-board-store.js.map +1 -1
  191. package/dist/services/trigger-types.d.ts +2 -1
  192. package/dist/services/trigger-types.d.ts.map +1 -1
  193. package/dist/services/trigger-types.js +11 -2
  194. package/dist/services/trigger-types.js.map +1 -1
  195. package/dist/services/vc-meeting-runtime-store.d.ts +55 -0
  196. package/dist/services/vc-meeting-runtime-store.d.ts.map +1 -0
  197. package/dist/services/vc-meeting-runtime-store.js +313 -0
  198. package/dist/services/vc-meeting-runtime-store.js.map +1 -0
  199. package/dist/services/voice/index.d.ts +6 -1
  200. package/dist/services/voice/index.d.ts.map +1 -1
  201. package/dist/services/voice/index.js +12 -5
  202. package/dist/services/voice/index.js.map +1 -1
  203. package/dist/services/voice/sami.js +1 -1
  204. package/dist/setup/lark-scopes.json +5 -0
  205. package/dist/setup/verify-permissions.d.ts +6 -0
  206. package/dist/setup/verify-permissions.d.ts.map +1 -1
  207. package/dist/setup/verify-permissions.js +17 -0
  208. package/dist/setup/verify-permissions.js.map +1 -1
  209. package/dist/skills/definitions.d.ts.map +1 -1
  210. package/dist/skills/definitions.js +10 -0
  211. package/dist/skills/definitions.js.map +1 -1
  212. package/dist/types.d.ts +4 -0
  213. package/dist/types.d.ts.map +1 -1
  214. package/dist/utils/daemon-discovery.d.ts +2 -0
  215. package/dist/utils/daemon-discovery.d.ts.map +1 -1
  216. package/dist/utils/daemon-discovery.js +2 -0
  217. package/dist/utils/daemon-discovery.js.map +1 -1
  218. package/dist/utils/timezone.d.ts +51 -0
  219. package/dist/utils/timezone.d.ts.map +1 -0
  220. package/dist/utils/timezone.js +110 -0
  221. package/dist/utils/timezone.js.map +1 -0
  222. package/dist/vc-agent/cards.d.ts +47 -0
  223. package/dist/vc-agent/cards.d.ts.map +1 -0
  224. package/dist/vc-agent/cards.js +489 -0
  225. package/dist/vc-agent/cards.js.map +1 -0
  226. package/dist/vc-agent/meeting-state.d.ts +39 -0
  227. package/dist/vc-agent/meeting-state.d.ts.map +1 -0
  228. package/dist/vc-agent/meeting-state.js +186 -0
  229. package/dist/vc-agent/meeting-state.js.map +1 -0
  230. package/dist/vc-agent/normalizer.d.ts +13 -0
  231. package/dist/vc-agent/normalizer.d.ts.map +1 -0
  232. package/dist/vc-agent/normalizer.js +411 -0
  233. package/dist/vc-agent/normalizer.js.map +1 -0
  234. package/dist/vc-agent/polling-source.d.ts +36 -0
  235. package/dist/vc-agent/polling-source.d.ts.map +1 -0
  236. package/dist/vc-agent/polling-source.js +129 -0
  237. package/dist/vc-agent/polling-source.js.map +1 -0
  238. package/dist/vc-agent/push-source.d.ts +13 -0
  239. package/dist/vc-agent/push-source.d.ts.map +1 -0
  240. package/dist/vc-agent/push-source.js +109 -0
  241. package/dist/vc-agent/push-source.js.map +1 -0
  242. package/dist/vc-agent/realtime/audio-source.d.ts +6 -0
  243. package/dist/vc-agent/realtime/audio-source.d.ts.map +1 -0
  244. package/dist/vc-agent/realtime/audio-source.js +17 -0
  245. package/dist/vc-agent/realtime/audio-source.js.map +1 -0
  246. package/dist/vc-agent/realtime/endpoint.d.ts +6 -0
  247. package/dist/vc-agent/realtime/endpoint.d.ts.map +1 -0
  248. package/dist/vc-agent/realtime/endpoint.js +25 -0
  249. package/dist/vc-agent/realtime/endpoint.js.map +1 -0
  250. package/dist/vc-agent/realtime/errors.d.ts +9 -0
  251. package/dist/vc-agent/realtime/errors.d.ts.map +1 -0
  252. package/dist/vc-agent/realtime/errors.js +17 -0
  253. package/dist/vc-agent/realtime/errors.js.map +1 -0
  254. package/dist/vc-agent/realtime/events.d.ts +24 -0
  255. package/dist/vc-agent/realtime/events.d.ts.map +1 -0
  256. package/dist/vc-agent/realtime/events.js +190 -0
  257. package/dist/vc-agent/realtime/events.js.map +1 -0
  258. package/dist/vc-agent/realtime/frontier.d.ts +34 -0
  259. package/dist/vc-agent/realtime/frontier.d.ts.map +1 -0
  260. package/dist/vc-agent/realtime/frontier.js +40 -0
  261. package/dist/vc-agent/realtime/frontier.js.map +1 -0
  262. package/dist/vc-agent/realtime/index.d.ts +11 -0
  263. package/dist/vc-agent/realtime/index.d.ts.map +1 -0
  264. package/dist/vc-agent/realtime/index.js +11 -0
  265. package/dist/vc-agent/realtime/index.js.map +1 -0
  266. package/dist/vc-agent/realtime/pacer.d.ts +21 -0
  267. package/dist/vc-agent/realtime/pacer.d.ts.map +1 -0
  268. package/dist/vc-agent/realtime/pacer.js +80 -0
  269. package/dist/vc-agent/realtime/pacer.js.map +1 -0
  270. package/dist/vc-agent/realtime/protobuf.d.ts +33 -0
  271. package/dist/vc-agent/realtime/protobuf.d.ts.map +1 -0
  272. package/dist/vc-agent/realtime/protobuf.js +159 -0
  273. package/dist/vc-agent/realtime/protobuf.js.map +1 -0
  274. package/dist/vc-agent/realtime/protocol.d.ts +4 -0
  275. package/dist/vc-agent/realtime/protocol.d.ts.map +1 -0
  276. package/dist/vc-agent/realtime/protocol.js +59 -0
  277. package/dist/vc-agent/realtime/protocol.js.map +1 -0
  278. package/dist/vc-agent/realtime/session.d.ts +39 -0
  279. package/dist/vc-agent/realtime/session.d.ts.map +1 -0
  280. package/dist/vc-agent/realtime/session.js +221 -0
  281. package/dist/vc-agent/realtime/session.js.map +1 -0
  282. package/dist/vc-agent/realtime/transport.d.ts +23 -0
  283. package/dist/vc-agent/realtime/transport.d.ts.map +1 -0
  284. package/dist/vc-agent/realtime/transport.js +112 -0
  285. package/dist/vc-agent/realtime/transport.js.map +1 -0
  286. package/dist/vc-agent/realtime/types.d.ts +84 -0
  287. package/dist/vc-agent/realtime/types.d.ts.map +1 -0
  288. package/dist/vc-agent/realtime/types.js +5 -0
  289. package/dist/vc-agent/realtime/types.js.map +1 -0
  290. package/dist/vc-agent/types.d.ts +142 -0
  291. package/dist/vc-agent/types.d.ts.map +1 -0
  292. package/dist/vc-agent/types.js +2 -0
  293. package/dist/vc-agent/types.js.map +1 -0
  294. package/dist/worker.js +8 -5
  295. package/dist/worker.js.map +1 -1
  296. package/dist/workflows/attempt-resume.d.ts +4 -0
  297. package/dist/workflows/attempt-resume.d.ts.map +1 -1
  298. package/dist/workflows/attempt-resume.js +2 -0
  299. package/dist/workflows/attempt-resume.js.map +1 -1
  300. package/dist/workflows/attempt-terminal.d.ts +4 -0
  301. package/dist/workflows/attempt-terminal.d.ts.map +1 -1
  302. package/dist/workflows/attempt-terminal.js.map +1 -1
  303. package/dist/workflows/daemon-spawn.d.ts.map +1 -1
  304. package/dist/workflows/daemon-spawn.js +7 -0
  305. package/dist/workflows/daemon-spawn.js.map +1 -1
  306. package/dist/workflows/definition.d.ts +14 -14
  307. package/dist/workflows/events/payloads.d.ts +40 -8
  308. package/dist/workflows/events/payloads.d.ts.map +1 -1
  309. package/dist/workflows/events/payloads.js +4 -0
  310. package/dist/workflows/events/payloads.js.map +1 -1
  311. package/dist/workflows/events/schema.d.ts +508 -452
  312. package/dist/workflows/events/schema.d.ts.map +1 -1
  313. package/dist/workflows/runtime.d.ts +4 -0
  314. package/dist/workflows/runtime.d.ts.map +1 -1
  315. package/dist/workflows/runtime.js.map +1 -1
  316. package/dist/workflows/spawn-policy.d.ts +14 -0
  317. package/dist/workflows/spawn-policy.d.ts.map +1 -0
  318. package/dist/workflows/spawn-policy.js +9 -0
  319. package/dist/workflows/spawn-policy.js.map +1 -0
  320. package/dist/workflows/v3/bot-resolve.d.ts.map +1 -1
  321. package/dist/workflows/v3/bot-resolve.js +4 -0
  322. package/dist/workflows/v3/bot-resolve.js.map +1 -1
  323. package/dist/workflows/v3/cli-run.d.ts.map +1 -1
  324. package/dist/workflows/v3/cli-run.js +4 -0
  325. package/dist/workflows/v3/cli-run.js.map +1 -1
  326. package/dist/workflows/v3/contract.d.ts +9 -3
  327. package/dist/workflows/v3/contract.d.ts.map +1 -1
  328. package/dist/workflows/v3/contract.js +3 -3
  329. package/dist/workflows/v3/contract.js.map +1 -1
  330. package/dist/workflows/v3/ephemeral-pool.d.ts.map +1 -1
  331. package/dist/workflows/v3/ephemeral-pool.js +2 -0
  332. package/dist/workflows/v3/ephemeral-pool.js.map +1 -1
  333. package/dist/workflows/v3/runtime.js +1 -1
  334. package/dist/workflows/v3/runtime.js.map +1 -1
  335. package/package.json +1 -1
  336. package/dist/dashboard-web/chunks/chunk-76J7PNZI.js +0 -1
  337. package/dist/dashboard-web/chunks/overview-page-EHCZJBWY.js +0 -1
  338. package/dist/dashboard-web/chunks/schedules-RSXALJU4.js +0 -1
  339. package/dist/dashboard-web/chunks/settings-page-XKFTXTDE.js +0 -2
@@ -47,17 +47,29 @@ export declare const RunCreatedEventSchema: z.ZodObject<{
47
47
  displayName: z.ZodOptional<z.ZodString>;
48
48
  workingDir: z.ZodOptional<z.ZodString>;
49
49
  cliPathOverride: z.ZodOptional<z.ZodString>;
50
+ sandbox: z.ZodOptional<z.ZodBoolean>;
51
+ sandboxHidePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
52
+ sandboxReadonlyPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
53
+ sandboxNetwork: z.ZodOptional<z.ZodBoolean>;
50
54
  }, "strip", z.ZodTypeAny, {
51
55
  larkAppId?: string | undefined;
52
56
  displayName?: string | undefined;
53
57
  cliId?: string | undefined;
54
58
  cliPathOverride?: string | undefined;
59
+ sandbox?: boolean | undefined;
60
+ sandboxHidePaths?: string[] | undefined;
61
+ sandboxReadonlyPaths?: string[] | undefined;
62
+ sandboxNetwork?: boolean | undefined;
55
63
  workingDir?: string | undefined;
56
64
  }, {
57
65
  larkAppId?: string | undefined;
58
66
  displayName?: string | undefined;
59
67
  cliId?: string | undefined;
60
68
  cliPathOverride?: string | undefined;
69
+ sandbox?: boolean | undefined;
70
+ sandboxHidePaths?: string[] | undefined;
71
+ sandboxReadonlyPaths?: string[] | undefined;
72
+ sandboxNetwork?: boolean | undefined;
61
73
  workingDir?: string | undefined;
62
74
  }>>>;
63
75
  }, "strip", z.ZodTypeAny, {
@@ -76,6 +88,10 @@ export declare const RunCreatedEventSchema: z.ZodObject<{
76
88
  displayName?: string | undefined;
77
89
  cliId?: string | undefined;
78
90
  cliPathOverride?: string | undefined;
91
+ sandbox?: boolean | undefined;
92
+ sandboxHidePaths?: string[] | undefined;
93
+ sandboxReadonlyPaths?: string[] | undefined;
94
+ sandboxNetwork?: boolean | undefined;
79
95
  workingDir?: string | undefined;
80
96
  }> | undefined;
81
97
  }, {
@@ -94,6 +110,10 @@ export declare const RunCreatedEventSchema: z.ZodObject<{
94
110
  displayName?: string | undefined;
95
111
  cliId?: string | undefined;
96
112
  cliPathOverride?: string | undefined;
113
+ sandbox?: boolean | undefined;
114
+ sandboxHidePaths?: string[] | undefined;
115
+ sandboxReadonlyPaths?: string[] | undefined;
116
+ sandboxNetwork?: boolean | undefined;
97
117
  workingDir?: string | undefined;
98
118
  }> | undefined;
99
119
  }>, z.ZodObject<{
@@ -118,7 +138,6 @@ export declare const RunCreatedEventSchema: z.ZodObject<{
118
138
  }, "strip", z.ZodTypeAny, {
119
139
  type: "runCreated";
120
140
  runId: string;
121
- timestamp: number;
122
141
  payload: {
123
142
  workflowId: string;
124
143
  revisionId: string;
@@ -135,6 +154,10 @@ export declare const RunCreatedEventSchema: z.ZodObject<{
135
154
  displayName?: string | undefined;
136
155
  cliId?: string | undefined;
137
156
  cliPathOverride?: string | undefined;
157
+ sandbox?: boolean | undefined;
158
+ sandboxHidePaths?: string[] | undefined;
159
+ sandboxReadonlyPaths?: string[] | undefined;
160
+ sandboxNetwork?: boolean | undefined;
138
161
  workingDir?: string | undefined;
139
162
  }> | undefined;
140
163
  } | {
@@ -142,14 +165,14 @@ export declare const RunCreatedEventSchema: z.ZodObject<{
142
165
  bytes: number;
143
166
  schemaVersion: number;
144
167
  };
145
- schemaVersion: 1;
168
+ timestamp: number;
146
169
  eventId: string;
147
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
170
+ schemaVersion: 1;
171
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
148
172
  payloadHash?: string | undefined;
149
173
  }, {
150
174
  type: "runCreated";
151
175
  runId: string;
152
- timestamp: number;
153
176
  payload: {
154
177
  workflowId: string;
155
178
  revisionId: string;
@@ -166,6 +189,10 @@ export declare const RunCreatedEventSchema: z.ZodObject<{
166
189
  displayName?: string | undefined;
167
190
  cliId?: string | undefined;
168
191
  cliPathOverride?: string | undefined;
192
+ sandbox?: boolean | undefined;
193
+ sandboxHidePaths?: string[] | undefined;
194
+ sandboxReadonlyPaths?: string[] | undefined;
195
+ sandboxNetwork?: boolean | undefined;
169
196
  workingDir?: string | undefined;
170
197
  }> | undefined;
171
198
  } | {
@@ -173,9 +200,10 @@ export declare const RunCreatedEventSchema: z.ZodObject<{
173
200
  bytes: number;
174
201
  schemaVersion: number;
175
202
  };
176
- schemaVersion: 1;
203
+ timestamp: number;
177
204
  eventId: string;
178
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
205
+ schemaVersion: 1;
206
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
179
207
  payloadHash?: string | undefined;
180
208
  }>;
181
209
  export declare const RunStartedEventSchema: z.ZodObject<{
@@ -202,28 +230,28 @@ export declare const RunStartedEventSchema: z.ZodObject<{
202
230
  }, "strip", z.ZodTypeAny, {
203
231
  type: "runStarted";
204
232
  runId: string;
205
- timestamp: number;
206
233
  payload: {} | {
207
234
  ref: string;
208
235
  bytes: number;
209
236
  schemaVersion: number;
210
237
  };
211
- schemaVersion: 1;
238
+ timestamp: number;
212
239
  eventId: string;
213
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
240
+ schemaVersion: 1;
241
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
214
242
  payloadHash?: string | undefined;
215
243
  }, {
216
244
  type: "runStarted";
217
245
  runId: string;
218
- timestamp: number;
219
246
  payload: {} | {
220
247
  ref: string;
221
248
  bytes: number;
222
249
  schemaVersion: number;
223
250
  };
224
- schemaVersion: 1;
251
+ timestamp: number;
225
252
  eventId: string;
226
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
253
+ schemaVersion: 1;
254
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
227
255
  payloadHash?: string | undefined;
228
256
  }>;
229
257
  export declare const RunSucceededEventSchema: z.ZodObject<{
@@ -286,7 +314,6 @@ export declare const RunSucceededEventSchema: z.ZodObject<{
286
314
  }, "strip", z.ZodTypeAny, {
287
315
  type: "runSucceeded";
288
316
  runId: string;
289
- timestamp: number;
290
317
  payload: {
291
318
  outputRef: {
292
319
  outputHash: string;
@@ -300,14 +327,14 @@ export declare const RunSucceededEventSchema: z.ZodObject<{
300
327
  bytes: number;
301
328
  schemaVersion: number;
302
329
  };
303
- schemaVersion: 1;
330
+ timestamp: number;
304
331
  eventId: string;
305
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
332
+ schemaVersion: 1;
333
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
306
334
  payloadHash?: string | undefined;
307
335
  }, {
308
336
  type: "runSucceeded";
309
337
  runId: string;
310
- timestamp: number;
311
338
  payload: {
312
339
  outputRef: {
313
340
  outputHash: string;
@@ -321,9 +348,10 @@ export declare const RunSucceededEventSchema: z.ZodObject<{
321
348
  bytes: number;
322
349
  schemaVersion: number;
323
350
  };
324
- schemaVersion: 1;
351
+ timestamp: number;
325
352
  eventId: string;
326
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
353
+ schemaVersion: 1;
354
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
327
355
  payloadHash?: string | undefined;
328
356
  }>;
329
357
  export declare const RunFailedEventSchema: z.ZodObject<{
@@ -359,7 +387,6 @@ export declare const RunFailedEventSchema: z.ZodObject<{
359
387
  }, "strip", z.ZodTypeAny, {
360
388
  type: "runFailed";
361
389
  runId: string;
362
- timestamp: number;
363
390
  payload: {
364
391
  failedNodeId: string;
365
392
  rootCauseEventId: string;
@@ -368,14 +395,14 @@ export declare const RunFailedEventSchema: z.ZodObject<{
368
395
  bytes: number;
369
396
  schemaVersion: number;
370
397
  };
371
- schemaVersion: 1;
398
+ timestamp: number;
372
399
  eventId: string;
373
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
400
+ schemaVersion: 1;
401
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
374
402
  payloadHash?: string | undefined;
375
403
  }, {
376
404
  type: "runFailed";
377
405
  runId: string;
378
- timestamp: number;
379
406
  payload: {
380
407
  failedNodeId: string;
381
408
  rootCauseEventId: string;
@@ -384,9 +411,10 @@ export declare const RunFailedEventSchema: z.ZodObject<{
384
411
  bytes: number;
385
412
  schemaVersion: number;
386
413
  };
387
- schemaVersion: 1;
414
+ timestamp: number;
388
415
  eventId: string;
389
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
416
+ schemaVersion: 1;
417
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
390
418
  payloadHash?: string | undefined;
391
419
  }>;
392
420
  export declare const RunCanceledEventSchema: z.ZodObject<{
@@ -419,7 +447,6 @@ export declare const RunCanceledEventSchema: z.ZodObject<{
419
447
  }, "strip", z.ZodTypeAny, {
420
448
  type: "runCanceled";
421
449
  runId: string;
422
- timestamp: number;
423
450
  payload: {
424
451
  cancelOriginEventId: string;
425
452
  } | {
@@ -427,14 +454,14 @@ export declare const RunCanceledEventSchema: z.ZodObject<{
427
454
  bytes: number;
428
455
  schemaVersion: number;
429
456
  };
430
- schemaVersion: 1;
457
+ timestamp: number;
431
458
  eventId: string;
432
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
459
+ schemaVersion: 1;
460
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
433
461
  payloadHash?: string | undefined;
434
462
  }, {
435
463
  type: "runCanceled";
436
464
  runId: string;
437
- timestamp: number;
438
465
  payload: {
439
466
  cancelOriginEventId: string;
440
467
  } | {
@@ -442,9 +469,10 @@ export declare const RunCanceledEventSchema: z.ZodObject<{
442
469
  bytes: number;
443
470
  schemaVersion: number;
444
471
  };
445
- schemaVersion: 1;
472
+ timestamp: number;
446
473
  eventId: string;
447
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
474
+ schemaVersion: 1;
475
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
448
476
  payloadHash?: string | undefined;
449
477
  }>;
450
478
  export declare const NodeWaitingEventSchema: z.ZodObject<{
@@ -483,7 +511,6 @@ export declare const NodeWaitingEventSchema: z.ZodObject<{
483
511
  }, "strip", z.ZodTypeAny, {
484
512
  type: "nodeWaiting";
485
513
  runId: string;
486
- timestamp: number;
487
514
  payload: {
488
515
  nodeId: string;
489
516
  waitReason: string;
@@ -493,14 +520,14 @@ export declare const NodeWaitingEventSchema: z.ZodObject<{
493
520
  bytes: number;
494
521
  schemaVersion: number;
495
522
  };
496
- schemaVersion: 1;
523
+ timestamp: number;
497
524
  eventId: string;
498
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
525
+ schemaVersion: 1;
526
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
499
527
  payloadHash?: string | undefined;
500
528
  }, {
501
529
  type: "nodeWaiting";
502
530
  runId: string;
503
- timestamp: number;
504
531
  payload: {
505
532
  nodeId: string;
506
533
  waitReason: string;
@@ -510,9 +537,10 @@ export declare const NodeWaitingEventSchema: z.ZodObject<{
510
537
  bytes: number;
511
538
  schemaVersion: number;
512
539
  };
513
- schemaVersion: 1;
540
+ timestamp: number;
514
541
  eventId: string;
515
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
542
+ schemaVersion: 1;
543
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
516
544
  payloadHash?: string | undefined;
517
545
  }>;
518
546
  export declare const NodeRetryingEventSchema: z.ZodObject<{
@@ -551,7 +579,6 @@ export declare const NodeRetryingEventSchema: z.ZodObject<{
551
579
  }, "strip", z.ZodTypeAny, {
552
580
  type: "nodeRetrying";
553
581
  runId: string;
554
- timestamp: number;
555
582
  payload: {
556
583
  nodeId: string;
557
584
  lastAttemptId: string;
@@ -561,14 +588,14 @@ export declare const NodeRetryingEventSchema: z.ZodObject<{
561
588
  bytes: number;
562
589
  schemaVersion: number;
563
590
  };
564
- schemaVersion: 1;
591
+ timestamp: number;
565
592
  eventId: string;
566
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
593
+ schemaVersion: 1;
594
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
567
595
  payloadHash?: string | undefined;
568
596
  }, {
569
597
  type: "nodeRetrying";
570
598
  runId: string;
571
- timestamp: number;
572
599
  payload: {
573
600
  nodeId: string;
574
601
  lastAttemptId: string;
@@ -578,9 +605,10 @@ export declare const NodeRetryingEventSchema: z.ZodObject<{
578
605
  bytes: number;
579
606
  schemaVersion: number;
580
607
  };
581
- schemaVersion: 1;
608
+ timestamp: number;
582
609
  eventId: string;
583
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
610
+ schemaVersion: 1;
611
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
584
612
  payloadHash?: string | undefined;
585
613
  }>;
586
614
  export declare const NodeSucceededEventSchema: z.ZodObject<{
@@ -616,7 +644,6 @@ export declare const NodeSucceededEventSchema: z.ZodObject<{
616
644
  }, "strip", z.ZodTypeAny, {
617
645
  type: "nodeSucceeded";
618
646
  runId: string;
619
- timestamp: number;
620
647
  payload: {
621
648
  nodeId: string;
622
649
  lastActivityId: string;
@@ -625,14 +652,14 @@ export declare const NodeSucceededEventSchema: z.ZodObject<{
625
652
  bytes: number;
626
653
  schemaVersion: number;
627
654
  };
628
- schemaVersion: 1;
655
+ timestamp: number;
629
656
  eventId: string;
630
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
657
+ schemaVersion: 1;
658
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
631
659
  payloadHash?: string | undefined;
632
660
  }, {
633
661
  type: "nodeSucceeded";
634
662
  runId: string;
635
- timestamp: number;
636
663
  payload: {
637
664
  nodeId: string;
638
665
  lastActivityId: string;
@@ -641,9 +668,10 @@ export declare const NodeSucceededEventSchema: z.ZodObject<{
641
668
  bytes: number;
642
669
  schemaVersion: number;
643
670
  };
644
- schemaVersion: 1;
671
+ timestamp: number;
645
672
  eventId: string;
646
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
673
+ schemaVersion: 1;
674
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
647
675
  payloadHash?: string | undefined;
648
676
  }>;
649
677
  export declare const NodeFailedEventSchema: z.ZodObject<{
@@ -682,7 +710,6 @@ export declare const NodeFailedEventSchema: z.ZodObject<{
682
710
  }, "strip", z.ZodTypeAny, {
683
711
  type: "nodeFailed";
684
712
  runId: string;
685
- timestamp: number;
686
713
  payload: {
687
714
  nodeId: string;
688
715
  errorClass: "manual" | "fatal" | "retryable" | "userFault";
@@ -692,14 +719,14 @@ export declare const NodeFailedEventSchema: z.ZodObject<{
692
719
  bytes: number;
693
720
  schemaVersion: number;
694
721
  };
695
- schemaVersion: 1;
722
+ timestamp: number;
696
723
  eventId: string;
697
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
724
+ schemaVersion: 1;
725
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
698
726
  payloadHash?: string | undefined;
699
727
  }, {
700
728
  type: "nodeFailed";
701
729
  runId: string;
702
- timestamp: number;
703
730
  payload: {
704
731
  nodeId: string;
705
732
  errorClass: "manual" | "fatal" | "retryable" | "userFault";
@@ -709,9 +736,10 @@ export declare const NodeFailedEventSchema: z.ZodObject<{
709
736
  bytes: number;
710
737
  schemaVersion: number;
711
738
  };
712
- schemaVersion: 1;
739
+ timestamp: number;
713
740
  eventId: string;
714
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
741
+ schemaVersion: 1;
742
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
715
743
  payloadHash?: string | undefined;
716
744
  }>;
717
745
  export declare const NodeSkippedEventSchema: z.ZodObject<{
@@ -747,7 +775,6 @@ export declare const NodeSkippedEventSchema: z.ZodObject<{
747
775
  }, "strip", z.ZodTypeAny, {
748
776
  type: "nodeSkipped";
749
777
  runId: string;
750
- timestamp: number;
751
778
  payload: {
752
779
  nodeId: string;
753
780
  conditionEventId: string;
@@ -756,14 +783,14 @@ export declare const NodeSkippedEventSchema: z.ZodObject<{
756
783
  bytes: number;
757
784
  schemaVersion: number;
758
785
  };
759
- schemaVersion: 1;
786
+ timestamp: number;
760
787
  eventId: string;
761
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
788
+ schemaVersion: 1;
789
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
762
790
  payloadHash?: string | undefined;
763
791
  }, {
764
792
  type: "nodeSkipped";
765
793
  runId: string;
766
- timestamp: number;
767
794
  payload: {
768
795
  nodeId: string;
769
796
  conditionEventId: string;
@@ -772,9 +799,10 @@ export declare const NodeSkippedEventSchema: z.ZodObject<{
772
799
  bytes: number;
773
800
  schemaVersion: number;
774
801
  };
775
- schemaVersion: 1;
802
+ timestamp: number;
776
803
  eventId: string;
777
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
804
+ schemaVersion: 1;
805
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
778
806
  payloadHash?: string | undefined;
779
807
  }>;
780
808
  export declare const NodeCanceledEventSchema: z.ZodObject<{
@@ -810,7 +838,6 @@ export declare const NodeCanceledEventSchema: z.ZodObject<{
810
838
  }, "strip", z.ZodTypeAny, {
811
839
  type: "nodeCanceled";
812
840
  runId: string;
813
- timestamp: number;
814
841
  payload: {
815
842
  nodeId: string;
816
843
  cancelOriginEventId: string;
@@ -819,14 +846,14 @@ export declare const NodeCanceledEventSchema: z.ZodObject<{
819
846
  bytes: number;
820
847
  schemaVersion: number;
821
848
  };
822
- schemaVersion: 1;
849
+ timestamp: number;
823
850
  eventId: string;
824
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
851
+ schemaVersion: 1;
852
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
825
853
  payloadHash?: string | undefined;
826
854
  }, {
827
855
  type: "nodeCanceled";
828
856
  runId: string;
829
- timestamp: number;
830
857
  payload: {
831
858
  nodeId: string;
832
859
  cancelOriginEventId: string;
@@ -835,9 +862,10 @@ export declare const NodeCanceledEventSchema: z.ZodObject<{
835
862
  bytes: number;
836
863
  schemaVersion: number;
837
864
  };
838
- schemaVersion: 1;
865
+ timestamp: number;
839
866
  eventId: string;
840
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
867
+ schemaVersion: 1;
868
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
841
869
  payloadHash?: string | undefined;
842
870
  }>;
843
871
  export declare const ActivityRunningEventSchema: z.ZodObject<{
@@ -876,7 +904,6 @@ export declare const ActivityRunningEventSchema: z.ZodObject<{
876
904
  }, "strip", z.ZodTypeAny, {
877
905
  type: "activityRunning";
878
906
  runId: string;
879
- timestamp: number;
880
907
  payload: {
881
908
  attemptId: string;
882
909
  activityId: string;
@@ -886,14 +913,14 @@ export declare const ActivityRunningEventSchema: z.ZodObject<{
886
913
  bytes: number;
887
914
  schemaVersion: number;
888
915
  };
889
- schemaVersion: 1;
916
+ timestamp: number;
890
917
  eventId: string;
891
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
918
+ schemaVersion: 1;
919
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
892
920
  payloadHash?: string | undefined;
893
921
  }, {
894
922
  type: "activityRunning";
895
923
  runId: string;
896
- timestamp: number;
897
924
  payload: {
898
925
  attemptId: string;
899
926
  activityId: string;
@@ -903,9 +930,10 @@ export declare const ActivityRunningEventSchema: z.ZodObject<{
903
930
  bytes: number;
904
931
  schemaVersion: number;
905
932
  };
906
- schemaVersion: 1;
933
+ timestamp: number;
907
934
  eventId: string;
908
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
935
+ schemaVersion: 1;
936
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
909
937
  payloadHash?: string | undefined;
910
938
  }>;
911
939
  export declare const ActivityWaitingEventSchema: z.ZodObject<{
@@ -941,7 +969,6 @@ export declare const ActivityWaitingEventSchema: z.ZodObject<{
941
969
  }, "strip", z.ZodTypeAny, {
942
970
  type: "activityWaiting";
943
971
  runId: string;
944
- timestamp: number;
945
972
  payload: {
946
973
  reason: string;
947
974
  activityId: string;
@@ -950,14 +977,14 @@ export declare const ActivityWaitingEventSchema: z.ZodObject<{
950
977
  bytes: number;
951
978
  schemaVersion: number;
952
979
  };
953
- schemaVersion: 1;
980
+ timestamp: number;
954
981
  eventId: string;
955
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
982
+ schemaVersion: 1;
983
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
956
984
  payloadHash?: string | undefined;
957
985
  }, {
958
986
  type: "activityWaiting";
959
987
  runId: string;
960
- timestamp: number;
961
988
  payload: {
962
989
  reason: string;
963
990
  activityId: string;
@@ -966,9 +993,10 @@ export declare const ActivityWaitingEventSchema: z.ZodObject<{
966
993
  bytes: number;
967
994
  schemaVersion: number;
968
995
  };
969
- schemaVersion: 1;
996
+ timestamp: number;
970
997
  eventId: string;
971
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
998
+ schemaVersion: 1;
999
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
972
1000
  payloadHash?: string | undefined;
973
1001
  }>;
974
1002
  export declare const ActivityTimedOutEventSchema: z.ZodObject<{
@@ -1013,7 +1041,6 @@ export declare const ActivityTimedOutEventSchema: z.ZodObject<{
1013
1041
  }, "strip", z.ZodTypeAny, {
1014
1042
  type: "activityTimedOut";
1015
1043
  runId: string;
1016
- timestamp: number;
1017
1044
  payload: {
1018
1045
  reason: "LeaseExpired";
1019
1046
  attemptId: string;
@@ -1025,14 +1052,14 @@ export declare const ActivityTimedOutEventSchema: z.ZodObject<{
1025
1052
  bytes: number;
1026
1053
  schemaVersion: number;
1027
1054
  };
1028
- schemaVersion: 1;
1055
+ timestamp: number;
1029
1056
  eventId: string;
1030
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1057
+ schemaVersion: 1;
1058
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1031
1059
  payloadHash?: string | undefined;
1032
1060
  }, {
1033
1061
  type: "activityTimedOut";
1034
1062
  runId: string;
1035
- timestamp: number;
1036
1063
  payload: {
1037
1064
  reason: "LeaseExpired";
1038
1065
  attemptId: string;
@@ -1044,9 +1071,10 @@ export declare const ActivityTimedOutEventSchema: z.ZodObject<{
1044
1071
  bytes: number;
1045
1072
  schemaVersion: number;
1046
1073
  };
1047
- schemaVersion: 1;
1074
+ timestamp: number;
1048
1075
  eventId: string;
1049
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1076
+ schemaVersion: 1;
1077
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1050
1078
  payloadHash?: string | undefined;
1051
1079
  }>;
1052
1080
  export declare const LoopStartedEventSchema: z.ZodObject<{
@@ -1082,7 +1110,6 @@ export declare const LoopStartedEventSchema: z.ZodObject<{
1082
1110
  }, "strip", z.ZodTypeAny, {
1083
1111
  type: "loopStarted";
1084
1112
  runId: string;
1085
- timestamp: number;
1086
1113
  payload: {
1087
1114
  maxIterations: number;
1088
1115
  loopId: string;
@@ -1091,14 +1118,14 @@ export declare const LoopStartedEventSchema: z.ZodObject<{
1091
1118
  bytes: number;
1092
1119
  schemaVersion: number;
1093
1120
  };
1094
- schemaVersion: 1;
1121
+ timestamp: number;
1095
1122
  eventId: string;
1096
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1123
+ schemaVersion: 1;
1124
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1097
1125
  payloadHash?: string | undefined;
1098
1126
  }, {
1099
1127
  type: "loopStarted";
1100
1128
  runId: string;
1101
- timestamp: number;
1102
1129
  payload: {
1103
1130
  maxIterations: number;
1104
1131
  loopId: string;
@@ -1107,9 +1134,10 @@ export declare const LoopStartedEventSchema: z.ZodObject<{
1107
1134
  bytes: number;
1108
1135
  schemaVersion: number;
1109
1136
  };
1110
- schemaVersion: 1;
1137
+ timestamp: number;
1111
1138
  eventId: string;
1112
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1139
+ schemaVersion: 1;
1140
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1113
1141
  payloadHash?: string | undefined;
1114
1142
  }>;
1115
1143
  export declare const LoopIterationStartedEventSchema: z.ZodObject<{
@@ -1148,7 +1176,6 @@ export declare const LoopIterationStartedEventSchema: z.ZodObject<{
1148
1176
  }, "strip", z.ZodTypeAny, {
1149
1177
  type: "loopIterationStarted";
1150
1178
  runId: string;
1151
- timestamp: number;
1152
1179
  payload: {
1153
1180
  loopId: string;
1154
1181
  iteration: number;
@@ -1158,14 +1185,14 @@ export declare const LoopIterationStartedEventSchema: z.ZodObject<{
1158
1185
  bytes: number;
1159
1186
  schemaVersion: number;
1160
1187
  };
1161
- schemaVersion: 1;
1188
+ timestamp: number;
1162
1189
  eventId: string;
1163
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1190
+ schemaVersion: 1;
1191
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1164
1192
  payloadHash?: string | undefined;
1165
1193
  }, {
1166
1194
  type: "loopIterationStarted";
1167
1195
  runId: string;
1168
- timestamp: number;
1169
1196
  payload: {
1170
1197
  loopId: string;
1171
1198
  iteration: number;
@@ -1175,9 +1202,10 @@ export declare const LoopIterationStartedEventSchema: z.ZodObject<{
1175
1202
  bytes: number;
1176
1203
  schemaVersion: number;
1177
1204
  };
1178
- schemaVersion: 1;
1205
+ timestamp: number;
1179
1206
  eventId: string;
1180
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1207
+ schemaVersion: 1;
1208
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1181
1209
  payloadHash?: string | undefined;
1182
1210
  }>;
1183
1211
  export declare const LoopIterationFinishedEventSchema: z.ZodObject<{
@@ -1231,7 +1259,6 @@ export declare const LoopIterationFinishedEventSchema: z.ZodObject<{
1231
1259
  }, "strip", z.ZodTypeAny, {
1232
1260
  type: "loopIterationFinished";
1233
1261
  runId: string;
1234
- timestamp: number;
1235
1262
  payload: {
1236
1263
  loopId: string;
1237
1264
  iteration: number;
@@ -1246,14 +1273,14 @@ export declare const LoopIterationFinishedEventSchema: z.ZodObject<{
1246
1273
  bytes: number;
1247
1274
  schemaVersion: number;
1248
1275
  };
1249
- schemaVersion: 1;
1276
+ timestamp: number;
1250
1277
  eventId: string;
1251
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1278
+ schemaVersion: 1;
1279
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1252
1280
  payloadHash?: string | undefined;
1253
1281
  }, {
1254
1282
  type: "loopIterationFinished";
1255
1283
  runId: string;
1256
- timestamp: number;
1257
1284
  payload: {
1258
1285
  loopId: string;
1259
1286
  iteration: number;
@@ -1268,9 +1295,10 @@ export declare const LoopIterationFinishedEventSchema: z.ZodObject<{
1268
1295
  bytes: number;
1269
1296
  schemaVersion: number;
1270
1297
  };
1271
- schemaVersion: 1;
1298
+ timestamp: number;
1272
1299
  eventId: string;
1273
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1300
+ schemaVersion: 1;
1301
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1274
1302
  payloadHash?: string | undefined;
1275
1303
  }>;
1276
1304
  export declare const LoopFinishedEventSchema: z.ZodObject<{
@@ -1302,7 +1330,7 @@ export declare const LoopFinishedEventSchema: z.ZodObject<{
1302
1330
  errorClass: z.ZodOptional<z.ZodEnum<["retryable", "fatal", "userFault", "manual"]>>;
1303
1331
  }, "strip", z.ZodTypeAny, {
1304
1332
  loopId: string;
1305
- resolution: "timeout" | "approved" | "max-iterations-exceeded" | "body-failed" | "cancelled";
1333
+ resolution: "timeout" | "cancelled" | "approved" | "max-iterations-exceeded" | "body-failed";
1306
1334
  finalIteration: number;
1307
1335
  errorCode?: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
1308
1336
  errorClass?: "manual" | "fatal" | "retryable" | "userFault" | undefined;
@@ -1315,7 +1343,7 @@ export declare const LoopFinishedEventSchema: z.ZodObject<{
1315
1343
  } | undefined;
1316
1344
  }, {
1317
1345
  loopId: string;
1318
- resolution: "timeout" | "approved" | "max-iterations-exceeded" | "body-failed" | "cancelled";
1346
+ resolution: "timeout" | "cancelled" | "approved" | "max-iterations-exceeded" | "body-failed";
1319
1347
  finalIteration: number;
1320
1348
  errorCode?: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
1321
1349
  errorClass?: "manual" | "fatal" | "retryable" | "userFault" | undefined;
@@ -1348,10 +1376,9 @@ export declare const LoopFinishedEventSchema: z.ZodObject<{
1348
1376
  }, "strip", z.ZodTypeAny, {
1349
1377
  type: "loopFinished";
1350
1378
  runId: string;
1351
- timestamp: number;
1352
1379
  payload: {
1353
1380
  loopId: string;
1354
- resolution: "timeout" | "approved" | "max-iterations-exceeded" | "body-failed" | "cancelled";
1381
+ resolution: "timeout" | "cancelled" | "approved" | "max-iterations-exceeded" | "body-failed";
1355
1382
  finalIteration: number;
1356
1383
  errorCode?: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
1357
1384
  errorClass?: "manual" | "fatal" | "retryable" | "userFault" | undefined;
@@ -1367,17 +1394,17 @@ export declare const LoopFinishedEventSchema: z.ZodObject<{
1367
1394
  bytes: number;
1368
1395
  schemaVersion: number;
1369
1396
  };
1370
- schemaVersion: 1;
1397
+ timestamp: number;
1371
1398
  eventId: string;
1372
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1399
+ schemaVersion: 1;
1400
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1373
1401
  payloadHash?: string | undefined;
1374
1402
  }, {
1375
1403
  type: "loopFinished";
1376
1404
  runId: string;
1377
- timestamp: number;
1378
1405
  payload: {
1379
1406
  loopId: string;
1380
- resolution: "timeout" | "approved" | "max-iterations-exceeded" | "body-failed" | "cancelled";
1407
+ resolution: "timeout" | "cancelled" | "approved" | "max-iterations-exceeded" | "body-failed";
1381
1408
  finalIteration: number;
1382
1409
  errorCode?: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
1383
1410
  errorClass?: "manual" | "fatal" | "retryable" | "userFault" | undefined;
@@ -1393,9 +1420,10 @@ export declare const LoopFinishedEventSchema: z.ZodObject<{
1393
1420
  bytes: number;
1394
1421
  schemaVersion: number;
1395
1422
  };
1396
- schemaVersion: 1;
1423
+ timestamp: number;
1397
1424
  eventId: string;
1398
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1425
+ schemaVersion: 1;
1426
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1399
1427
  payloadHash?: string | undefined;
1400
1428
  }>;
1401
1429
  export declare const ConditionEvaluatedEventSchema: z.ZodObject<{
@@ -1437,7 +1465,6 @@ export declare const ConditionEvaluatedEventSchema: z.ZodObject<{
1437
1465
  }, "strip", z.ZodTypeAny, {
1438
1466
  type: "conditionEvaluated";
1439
1467
  runId: string;
1440
- timestamp: number;
1441
1468
  payload: {
1442
1469
  nodeId: string;
1443
1470
  conditionExpr: string;
@@ -1448,14 +1475,14 @@ export declare const ConditionEvaluatedEventSchema: z.ZodObject<{
1448
1475
  bytes: number;
1449
1476
  schemaVersion: number;
1450
1477
  };
1451
- schemaVersion: 1;
1478
+ timestamp: number;
1452
1479
  eventId: string;
1453
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1480
+ schemaVersion: 1;
1481
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1454
1482
  payloadHash?: string | undefined;
1455
1483
  }, {
1456
1484
  type: "conditionEvaluated";
1457
1485
  runId: string;
1458
- timestamp: number;
1459
1486
  payload: {
1460
1487
  nodeId: string;
1461
1488
  conditionExpr: string;
@@ -1466,9 +1493,10 @@ export declare const ConditionEvaluatedEventSchema: z.ZodObject<{
1466
1493
  bytes: number;
1467
1494
  schemaVersion: number;
1468
1495
  };
1469
- schemaVersion: 1;
1496
+ timestamp: number;
1470
1497
  eventId: string;
1471
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1498
+ schemaVersion: 1;
1499
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1472
1500
  payloadHash?: string | undefined;
1473
1501
  }>;
1474
1502
  export declare const LeaseSignedEventSchema: z.ZodObject<{
@@ -1513,7 +1541,6 @@ export declare const LeaseSignedEventSchema: z.ZodObject<{
1513
1541
  }, "strip", z.ZodTypeAny, {
1514
1542
  type: "leaseSigned";
1515
1543
  runId: string;
1516
- timestamp: number;
1517
1544
  payload: {
1518
1545
  timeoutMs: number;
1519
1546
  attemptId: string;
@@ -1525,14 +1552,14 @@ export declare const LeaseSignedEventSchema: z.ZodObject<{
1525
1552
  bytes: number;
1526
1553
  schemaVersion: number;
1527
1554
  };
1528
- schemaVersion: 1;
1555
+ timestamp: number;
1529
1556
  eventId: string;
1530
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1557
+ schemaVersion: 1;
1558
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1531
1559
  payloadHash?: string | undefined;
1532
1560
  }, {
1533
1561
  type: "leaseSigned";
1534
1562
  runId: string;
1535
- timestamp: number;
1536
1563
  payload: {
1537
1564
  timeoutMs: number;
1538
1565
  attemptId: string;
@@ -1544,9 +1571,10 @@ export declare const LeaseSignedEventSchema: z.ZodObject<{
1544
1571
  bytes: number;
1545
1572
  schemaVersion: number;
1546
1573
  };
1547
- schemaVersion: 1;
1574
+ timestamp: number;
1548
1575
  eventId: string;
1549
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1576
+ schemaVersion: 1;
1577
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1550
1578
  payloadHash?: string | undefined;
1551
1579
  }>;
1552
1580
  export declare const AttemptCreatedEventSchema: z.ZodObject<{
@@ -1621,7 +1649,6 @@ export declare const AttemptCreatedEventSchema: z.ZodObject<{
1621
1649
  }, "strip", z.ZodTypeAny, {
1622
1650
  type: "attemptCreated";
1623
1651
  runId: string;
1624
- timestamp: number;
1625
1652
  payload: {
1626
1653
  nodeId: string;
1627
1654
  attemptId: string;
@@ -1639,14 +1666,14 @@ export declare const AttemptCreatedEventSchema: z.ZodObject<{
1639
1666
  bytes: number;
1640
1667
  schemaVersion: number;
1641
1668
  };
1642
- schemaVersion: 1;
1669
+ timestamp: number;
1643
1670
  eventId: string;
1644
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1671
+ schemaVersion: 1;
1672
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1645
1673
  payloadHash?: string | undefined;
1646
1674
  }, {
1647
1675
  type: "attemptCreated";
1648
1676
  runId: string;
1649
- timestamp: number;
1650
1677
  payload: {
1651
1678
  nodeId: string;
1652
1679
  attemptId: string;
@@ -1664,9 +1691,10 @@ export declare const AttemptCreatedEventSchema: z.ZodObject<{
1664
1691
  bytes: number;
1665
1692
  schemaVersion: number;
1666
1693
  };
1667
- schemaVersion: 1;
1694
+ timestamp: number;
1668
1695
  eventId: string;
1669
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1696
+ schemaVersion: 1;
1697
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1670
1698
  payloadHash?: string | undefined;
1671
1699
  }>;
1672
1700
  export declare const BackoffScheduledEventSchema: z.ZodObject<{
@@ -1733,7 +1761,6 @@ export declare const BackoffScheduledEventSchema: z.ZodObject<{
1733
1761
  }, "strip", z.ZodTypeAny, {
1734
1762
  type: "backoffScheduled";
1735
1763
  runId: string;
1736
- timestamp: number;
1737
1764
  payload: {
1738
1765
  nodeId: string;
1739
1766
  lastAttemptId: string;
@@ -1749,14 +1776,14 @@ export declare const BackoffScheduledEventSchema: z.ZodObject<{
1749
1776
  bytes: number;
1750
1777
  schemaVersion: number;
1751
1778
  };
1752
- schemaVersion: 1;
1779
+ timestamp: number;
1753
1780
  eventId: string;
1754
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1781
+ schemaVersion: 1;
1782
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1755
1783
  payloadHash?: string | undefined;
1756
1784
  }, {
1757
1785
  type: "backoffScheduled";
1758
1786
  runId: string;
1759
- timestamp: number;
1760
1787
  payload: {
1761
1788
  nodeId: string;
1762
1789
  lastAttemptId: string;
@@ -1772,9 +1799,10 @@ export declare const BackoffScheduledEventSchema: z.ZodObject<{
1772
1799
  bytes: number;
1773
1800
  schemaVersion: number;
1774
1801
  };
1775
- schemaVersion: 1;
1802
+ timestamp: number;
1776
1803
  eventId: string;
1777
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1804
+ schemaVersion: 1;
1805
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1778
1806
  payloadHash?: string | undefined;
1779
1807
  }>;
1780
1808
  export declare const BackoffElapsedEventSchema: z.ZodObject<{
@@ -1810,7 +1838,6 @@ export declare const BackoffElapsedEventSchema: z.ZodObject<{
1810
1838
  }, "strip", z.ZodTypeAny, {
1811
1839
  type: "backoffElapsed";
1812
1840
  runId: string;
1813
- timestamp: number;
1814
1841
  payload: {
1815
1842
  nodeId: string;
1816
1843
  scheduledAttemptId: string;
@@ -1819,14 +1846,14 @@ export declare const BackoffElapsedEventSchema: z.ZodObject<{
1819
1846
  bytes: number;
1820
1847
  schemaVersion: number;
1821
1848
  };
1822
- schemaVersion: 1;
1849
+ timestamp: number;
1823
1850
  eventId: string;
1824
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1851
+ schemaVersion: 1;
1852
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1825
1853
  payloadHash?: string | undefined;
1826
1854
  }, {
1827
1855
  type: "backoffElapsed";
1828
1856
  runId: string;
1829
- timestamp: number;
1830
1857
  payload: {
1831
1858
  nodeId: string;
1832
1859
  scheduledAttemptId: string;
@@ -1835,9 +1862,10 @@ export declare const BackoffElapsedEventSchema: z.ZodObject<{
1835
1862
  bytes: number;
1836
1863
  schemaVersion: number;
1837
1864
  };
1838
- schemaVersion: 1;
1865
+ timestamp: number;
1839
1866
  eventId: string;
1840
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1867
+ schemaVersion: 1;
1868
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1841
1869
  payloadHash?: string | undefined;
1842
1870
  }>;
1843
1871
  export declare const EffectAttemptedEventSchema: z.ZodObject<{
@@ -1885,7 +1913,6 @@ export declare const EffectAttemptedEventSchema: z.ZodObject<{
1885
1913
  }, "strip", z.ZodTypeAny, {
1886
1914
  type: "effectAttempted";
1887
1915
  runId: string;
1888
- timestamp: number;
1889
1916
  payload: {
1890
1917
  attemptId: string;
1891
1918
  activityId: string;
@@ -1898,14 +1925,14 @@ export declare const EffectAttemptedEventSchema: z.ZodObject<{
1898
1925
  bytes: number;
1899
1926
  schemaVersion: number;
1900
1927
  };
1901
- schemaVersion: 1;
1928
+ timestamp: number;
1902
1929
  eventId: string;
1903
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1930
+ schemaVersion: 1;
1931
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1904
1932
  payloadHash?: string | undefined;
1905
1933
  }, {
1906
1934
  type: "effectAttempted";
1907
1935
  runId: string;
1908
- timestamp: number;
1909
1936
  payload: {
1910
1937
  attemptId: string;
1911
1938
  activityId: string;
@@ -1918,9 +1945,10 @@ export declare const EffectAttemptedEventSchema: z.ZodObject<{
1918
1945
  bytes: number;
1919
1946
  schemaVersion: number;
1920
1947
  };
1921
- schemaVersion: 1;
1948
+ timestamp: number;
1922
1949
  eventId: string;
1923
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1950
+ schemaVersion: 1;
1951
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
1924
1952
  payloadHash?: string | undefined;
1925
1953
  }>;
1926
1954
  export declare const ActivitySucceededEventSchema: z.ZodObject<{
@@ -1992,7 +2020,6 @@ export declare const ActivitySucceededEventSchema: z.ZodObject<{
1992
2020
  }, "strip", z.ZodTypeAny, {
1993
2021
  type: "activitySucceeded";
1994
2022
  runId: string;
1995
- timestamp: number;
1996
2023
  payload: {
1997
2024
  attemptId: string;
1998
2025
  activityId: string;
@@ -2009,14 +2036,14 @@ export declare const ActivitySucceededEventSchema: z.ZodObject<{
2009
2036
  bytes: number;
2010
2037
  schemaVersion: number;
2011
2038
  };
2012
- schemaVersion: 1;
2039
+ timestamp: number;
2013
2040
  eventId: string;
2014
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2041
+ schemaVersion: 1;
2042
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2015
2043
  payloadHash?: string | undefined;
2016
2044
  }, {
2017
2045
  type: "activitySucceeded";
2018
2046
  runId: string;
2019
- timestamp: number;
2020
2047
  payload: {
2021
2048
  attemptId: string;
2022
2049
  activityId: string;
@@ -2033,9 +2060,10 @@ export declare const ActivitySucceededEventSchema: z.ZodObject<{
2033
2060
  bytes: number;
2034
2061
  schemaVersion: number;
2035
2062
  };
2036
- schemaVersion: 1;
2063
+ timestamp: number;
2037
2064
  eventId: string;
2038
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2065
+ schemaVersion: 1;
2066
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2039
2067
  payloadHash?: string | undefined;
2040
2068
  }>;
2041
2069
  export declare const ActivityFailedEventSchema: z.ZodObject<{
@@ -2099,7 +2127,6 @@ export declare const ActivityFailedEventSchema: z.ZodObject<{
2099
2127
  }, "strip", z.ZodTypeAny, {
2100
2128
  type: "activityFailed";
2101
2129
  runId: string;
2102
- timestamp: number;
2103
2130
  payload: {
2104
2131
  error: {
2105
2132
  errorCode: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
@@ -2114,14 +2141,14 @@ export declare const ActivityFailedEventSchema: z.ZodObject<{
2114
2141
  bytes: number;
2115
2142
  schemaVersion: number;
2116
2143
  };
2117
- schemaVersion: 1;
2144
+ timestamp: number;
2118
2145
  eventId: string;
2119
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2146
+ schemaVersion: 1;
2147
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2120
2148
  payloadHash?: string | undefined;
2121
2149
  }, {
2122
2150
  type: "activityFailed";
2123
2151
  runId: string;
2124
- timestamp: number;
2125
2152
  payload: {
2126
2153
  error: {
2127
2154
  errorCode: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
@@ -2136,9 +2163,10 @@ export declare const ActivityFailedEventSchema: z.ZodObject<{
2136
2163
  bytes: number;
2137
2164
  schemaVersion: number;
2138
2165
  };
2139
- schemaVersion: 1;
2166
+ timestamp: number;
2140
2167
  eventId: string;
2141
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2168
+ schemaVersion: 1;
2169
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2142
2170
  payloadHash?: string | undefined;
2143
2171
  }>;
2144
2172
  export declare const WaitCreatedEventSchema: z.ZodObject<{
@@ -2225,7 +2253,6 @@ export declare const WaitCreatedEventSchema: z.ZodObject<{
2225
2253
  }, "strip", z.ZodTypeAny, {
2226
2254
  type: "waitCreated";
2227
2255
  runId: string;
2228
- timestamp: number;
2229
2256
  payload: {
2230
2257
  nodeId: string;
2231
2258
  activityId: string;
@@ -2247,14 +2274,14 @@ export declare const WaitCreatedEventSchema: z.ZodObject<{
2247
2274
  bytes: number;
2248
2275
  schemaVersion: number;
2249
2276
  };
2250
- schemaVersion: 1;
2277
+ timestamp: number;
2251
2278
  eventId: string;
2252
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2279
+ schemaVersion: 1;
2280
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2253
2281
  payloadHash?: string | undefined;
2254
2282
  }, {
2255
2283
  type: "waitCreated";
2256
2284
  runId: string;
2257
- timestamp: number;
2258
2285
  payload: {
2259
2286
  nodeId: string;
2260
2287
  activityId: string;
@@ -2276,9 +2303,10 @@ export declare const WaitCreatedEventSchema: z.ZodObject<{
2276
2303
  bytes: number;
2277
2304
  schemaVersion: number;
2278
2305
  };
2279
- schemaVersion: 1;
2306
+ timestamp: number;
2280
2307
  eventId: string;
2281
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2308
+ schemaVersion: 1;
2309
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2282
2310
  payloadHash?: string | undefined;
2283
2311
  }>;
2284
2312
  export declare const WaitResolvedEventSchema: z.ZodObject<{
@@ -2320,7 +2348,6 @@ export declare const WaitResolvedEventSchema: z.ZodObject<{
2320
2348
  }, "strip", z.ZodTypeAny, {
2321
2349
  type: "waitResolved";
2322
2350
  runId: string;
2323
- timestamp: number;
2324
2351
  payload: {
2325
2352
  activityId: string;
2326
2353
  resolution: "approved" | "rejected" | "external";
@@ -2331,14 +2358,14 @@ export declare const WaitResolvedEventSchema: z.ZodObject<{
2331
2358
  bytes: number;
2332
2359
  schemaVersion: number;
2333
2360
  };
2334
- schemaVersion: 1;
2361
+ timestamp: number;
2335
2362
  eventId: string;
2336
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2363
+ schemaVersion: 1;
2364
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2337
2365
  payloadHash?: string | undefined;
2338
2366
  }, {
2339
2367
  type: "waitResolved";
2340
2368
  runId: string;
2341
- timestamp: number;
2342
2369
  payload: {
2343
2370
  activityId: string;
2344
2371
  resolution: "approved" | "rejected" | "external";
@@ -2349,9 +2376,10 @@ export declare const WaitResolvedEventSchema: z.ZodObject<{
2349
2376
  bytes: number;
2350
2377
  schemaVersion: number;
2351
2378
  };
2352
- schemaVersion: 1;
2379
+ timestamp: number;
2353
2380
  eventId: string;
2354
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2381
+ schemaVersion: 1;
2382
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2355
2383
  payloadHash?: string | undefined;
2356
2384
  }>;
2357
2385
  export declare const WaitDeadlineExceededEventSchema: z.ZodObject<{
@@ -2390,7 +2418,6 @@ export declare const WaitDeadlineExceededEventSchema: z.ZodObject<{
2390
2418
  }, "strip", z.ZodTypeAny, {
2391
2419
  type: "waitDeadlineExceeded";
2392
2420
  runId: string;
2393
- timestamp: number;
2394
2421
  payload: {
2395
2422
  activityId: string;
2396
2423
  deadlineAt: number;
@@ -2400,14 +2427,14 @@ export declare const WaitDeadlineExceededEventSchema: z.ZodObject<{
2400
2427
  bytes: number;
2401
2428
  schemaVersion: number;
2402
2429
  };
2403
- schemaVersion: 1;
2430
+ timestamp: number;
2404
2431
  eventId: string;
2405
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2432
+ schemaVersion: 1;
2433
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2406
2434
  payloadHash?: string | undefined;
2407
2435
  }, {
2408
2436
  type: "waitDeadlineExceeded";
2409
2437
  runId: string;
2410
- timestamp: number;
2411
2438
  payload: {
2412
2439
  activityId: string;
2413
2440
  deadlineAt: number;
@@ -2417,9 +2444,10 @@ export declare const WaitDeadlineExceededEventSchema: z.ZodObject<{
2417
2444
  bytes: number;
2418
2445
  schemaVersion: number;
2419
2446
  };
2420
- schemaVersion: 1;
2447
+ timestamp: number;
2421
2448
  eventId: string;
2422
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2449
+ schemaVersion: 1;
2450
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2423
2451
  payloadHash?: string | undefined;
2424
2452
  }>;
2425
2453
  export declare const CancelRequestedEventSchema: z.ZodObject<{
@@ -2457,7 +2485,6 @@ export declare const CancelRequestedEventSchema: z.ZodObject<{
2457
2485
  by: z.ZodString;
2458
2486
  }, "strip", z.ZodTypeAny, {
2459
2487
  reason: string;
2460
- by: string;
2461
2488
  target: {
2462
2489
  kind: "run";
2463
2490
  runId: string;
@@ -2468,9 +2495,9 @@ export declare const CancelRequestedEventSchema: z.ZodObject<{
2468
2495
  kind: "activity";
2469
2496
  activityId: string;
2470
2497
  };
2498
+ by: string;
2471
2499
  }, {
2472
2500
  reason: string;
2473
- by: string;
2474
2501
  target: {
2475
2502
  kind: "run";
2476
2503
  runId: string;
@@ -2481,6 +2508,7 @@ export declare const CancelRequestedEventSchema: z.ZodObject<{
2481
2508
  kind: "activity";
2482
2509
  activityId: string;
2483
2510
  };
2511
+ by: string;
2484
2512
  }>, z.ZodObject<{
2485
2513
  ref: z.ZodString;
2486
2514
  bytes: z.ZodNumber;
@@ -2503,10 +2531,8 @@ export declare const CancelRequestedEventSchema: z.ZodObject<{
2503
2531
  }, "strip", z.ZodTypeAny, {
2504
2532
  type: "cancelRequested";
2505
2533
  runId: string;
2506
- timestamp: number;
2507
2534
  payload: {
2508
2535
  reason: string;
2509
- by: string;
2510
2536
  target: {
2511
2537
  kind: "run";
2512
2538
  runId: string;
@@ -2517,22 +2543,22 @@ export declare const CancelRequestedEventSchema: z.ZodObject<{
2517
2543
  kind: "activity";
2518
2544
  activityId: string;
2519
2545
  };
2546
+ by: string;
2520
2547
  } | {
2521
2548
  ref: string;
2522
2549
  bytes: number;
2523
2550
  schemaVersion: number;
2524
2551
  };
2525
- schemaVersion: 1;
2552
+ timestamp: number;
2526
2553
  eventId: string;
2527
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2554
+ schemaVersion: 1;
2555
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2528
2556
  payloadHash?: string | undefined;
2529
2557
  }, {
2530
2558
  type: "cancelRequested";
2531
2559
  runId: string;
2532
- timestamp: number;
2533
2560
  payload: {
2534
2561
  reason: string;
2535
- by: string;
2536
2562
  target: {
2537
2563
  kind: "run";
2538
2564
  runId: string;
@@ -2543,14 +2569,16 @@ export declare const CancelRequestedEventSchema: z.ZodObject<{
2543
2569
  kind: "activity";
2544
2570
  activityId: string;
2545
2571
  };
2572
+ by: string;
2546
2573
  } | {
2547
2574
  ref: string;
2548
2575
  bytes: number;
2549
2576
  schemaVersion: number;
2550
2577
  };
2551
- schemaVersion: 1;
2578
+ timestamp: number;
2552
2579
  eventId: string;
2553
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2580
+ schemaVersion: 1;
2581
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2554
2582
  payloadHash?: string | undefined;
2555
2583
  }>;
2556
2584
  export declare const CancelDeliveredEventSchema: z.ZodObject<{
@@ -2586,7 +2614,6 @@ export declare const CancelDeliveredEventSchema: z.ZodObject<{
2586
2614
  }>]>;
2587
2615
  activityId: z.ZodString;
2588
2616
  }, "strip", z.ZodTypeAny, {
2589
- activityId: string;
2590
2617
  target: {
2591
2618
  kind: "run";
2592
2619
  runId: string;
@@ -2597,8 +2624,8 @@ export declare const CancelDeliveredEventSchema: z.ZodObject<{
2597
2624
  kind: "activity";
2598
2625
  activityId: string;
2599
2626
  };
2600
- }, {
2601
2627
  activityId: string;
2628
+ }, {
2602
2629
  target: {
2603
2630
  kind: "run";
2604
2631
  runId: string;
@@ -2609,6 +2636,7 @@ export declare const CancelDeliveredEventSchema: z.ZodObject<{
2609
2636
  kind: "activity";
2610
2637
  activityId: string;
2611
2638
  };
2639
+ activityId: string;
2612
2640
  }>, z.ZodObject<{
2613
2641
  ref: z.ZodString;
2614
2642
  bytes: z.ZodNumber;
@@ -2631,9 +2659,7 @@ export declare const CancelDeliveredEventSchema: z.ZodObject<{
2631
2659
  }, "strip", z.ZodTypeAny, {
2632
2660
  type: "cancelDelivered";
2633
2661
  runId: string;
2634
- timestamp: number;
2635
2662
  payload: {
2636
- activityId: string;
2637
2663
  target: {
2638
2664
  kind: "run";
2639
2665
  runId: string;
@@ -2644,21 +2670,21 @@ export declare const CancelDeliveredEventSchema: z.ZodObject<{
2644
2670
  kind: "activity";
2645
2671
  activityId: string;
2646
2672
  };
2673
+ activityId: string;
2647
2674
  } | {
2648
2675
  ref: string;
2649
2676
  bytes: number;
2650
2677
  schemaVersion: number;
2651
2678
  };
2652
- schemaVersion: 1;
2679
+ timestamp: number;
2653
2680
  eventId: string;
2654
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2681
+ schemaVersion: 1;
2682
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2655
2683
  payloadHash?: string | undefined;
2656
2684
  }, {
2657
2685
  type: "cancelDelivered";
2658
2686
  runId: string;
2659
- timestamp: number;
2660
2687
  payload: {
2661
- activityId: string;
2662
2688
  target: {
2663
2689
  kind: "run";
2664
2690
  runId: string;
@@ -2669,14 +2695,16 @@ export declare const CancelDeliveredEventSchema: z.ZodObject<{
2669
2695
  kind: "activity";
2670
2696
  activityId: string;
2671
2697
  };
2698
+ activityId: string;
2672
2699
  } | {
2673
2700
  ref: string;
2674
2701
  bytes: number;
2675
2702
  schemaVersion: number;
2676
2703
  };
2677
- schemaVersion: 1;
2704
+ timestamp: number;
2678
2705
  eventId: string;
2679
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2706
+ schemaVersion: 1;
2707
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2680
2708
  payloadHash?: string | undefined;
2681
2709
  }>;
2682
2710
  export declare const ActivityCanceledEventSchema: z.ZodObject<{
@@ -2715,7 +2743,6 @@ export declare const ActivityCanceledEventSchema: z.ZodObject<{
2715
2743
  }, "strip", z.ZodTypeAny, {
2716
2744
  type: "activityCanceled";
2717
2745
  runId: string;
2718
- timestamp: number;
2719
2746
  payload: {
2720
2747
  attemptId: string;
2721
2748
  activityId: string;
@@ -2725,14 +2752,14 @@ export declare const ActivityCanceledEventSchema: z.ZodObject<{
2725
2752
  bytes: number;
2726
2753
  schemaVersion: number;
2727
2754
  };
2728
- schemaVersion: 1;
2755
+ timestamp: number;
2729
2756
  eventId: string;
2730
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2757
+ schemaVersion: 1;
2758
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2731
2759
  payloadHash?: string | undefined;
2732
2760
  }, {
2733
2761
  type: "activityCanceled";
2734
2762
  runId: string;
2735
- timestamp: number;
2736
2763
  payload: {
2737
2764
  attemptId: string;
2738
2765
  activityId: string;
@@ -2742,9 +2769,10 @@ export declare const ActivityCanceledEventSchema: z.ZodObject<{
2742
2769
  bytes: number;
2743
2770
  schemaVersion: number;
2744
2771
  };
2745
- schemaVersion: 1;
2772
+ timestamp: number;
2746
2773
  eventId: string;
2747
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2774
+ schemaVersion: 1;
2775
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2748
2776
  payloadHash?: string | undefined;
2749
2777
  }>;
2750
2778
  export declare const WorkerLostEventSchema: z.ZodObject<{
@@ -2780,7 +2808,6 @@ export declare const WorkerLostEventSchema: z.ZodObject<{
2780
2808
  }, "strip", z.ZodTypeAny, {
2781
2809
  type: "workerLost";
2782
2810
  runId: string;
2783
- timestamp: number;
2784
2811
  payload: {
2785
2812
  workerId: string;
2786
2813
  lostActivityIds: string[];
@@ -2789,14 +2816,14 @@ export declare const WorkerLostEventSchema: z.ZodObject<{
2789
2816
  bytes: number;
2790
2817
  schemaVersion: number;
2791
2818
  };
2792
- schemaVersion: 1;
2819
+ timestamp: number;
2793
2820
  eventId: string;
2794
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2821
+ schemaVersion: 1;
2822
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2795
2823
  payloadHash?: string | undefined;
2796
2824
  }, {
2797
2825
  type: "workerLost";
2798
2826
  runId: string;
2799
- timestamp: number;
2800
2827
  payload: {
2801
2828
  workerId: string;
2802
2829
  lostActivityIds: string[];
@@ -2805,9 +2832,10 @@ export declare const WorkerLostEventSchema: z.ZodObject<{
2805
2832
  bytes: number;
2806
2833
  schemaVersion: number;
2807
2834
  };
2808
- schemaVersion: 1;
2835
+ timestamp: number;
2809
2836
  eventId: string;
2810
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2837
+ schemaVersion: 1;
2838
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2811
2839
  payloadHash?: string | undefined;
2812
2840
  }>;
2813
2841
  export declare const ResumeStartedEventSchema: z.ZodObject<{
@@ -2843,7 +2871,6 @@ export declare const ResumeStartedEventSchema: z.ZodObject<{
2843
2871
  }, "strip", z.ZodTypeAny, {
2844
2872
  type: "resumeStarted";
2845
2873
  runId: string;
2846
- timestamp: number;
2847
2874
  payload: {
2848
2875
  daemonId: string;
2849
2876
  lastSeenEventId: string;
@@ -2852,14 +2879,14 @@ export declare const ResumeStartedEventSchema: z.ZodObject<{
2852
2879
  bytes: number;
2853
2880
  schemaVersion: number;
2854
2881
  };
2855
- schemaVersion: 1;
2882
+ timestamp: number;
2856
2883
  eventId: string;
2857
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2884
+ schemaVersion: 1;
2885
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2858
2886
  payloadHash?: string | undefined;
2859
2887
  }, {
2860
2888
  type: "resumeStarted";
2861
2889
  runId: string;
2862
- timestamp: number;
2863
2890
  payload: {
2864
2891
  daemonId: string;
2865
2892
  lastSeenEventId: string;
@@ -2868,9 +2895,10 @@ export declare const ResumeStartedEventSchema: z.ZodObject<{
2868
2895
  bytes: number;
2869
2896
  schemaVersion: number;
2870
2897
  };
2871
- schemaVersion: 1;
2898
+ timestamp: number;
2872
2899
  eventId: string;
2873
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2900
+ schemaVersion: 1;
2901
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2874
2902
  payloadHash?: string | undefined;
2875
2903
  }>;
2876
2904
  export declare const ReconcileResultEventSchema: z.ZodObject<{
@@ -2884,15 +2912,15 @@ export declare const ReconcileResultEventSchema: z.ZodObject<{
2884
2912
  }, "strip", z.ZodTypeAny, {
2885
2913
  capability: "none" | "readOnlyLookup" | "idempotentSubmit";
2886
2914
  decision: "manual" | "replayed" | "completedByIdempotentSubmit" | "freshRetry";
2915
+ evidence: Record<string, unknown>;
2887
2916
  activityId: string;
2888
2917
  idempotencyKey: string;
2889
- evidence: Record<string, unknown>;
2890
2918
  }, {
2891
2919
  capability: "none" | "readOnlyLookup" | "idempotentSubmit";
2892
2920
  decision: "manual" | "replayed" | "completedByIdempotentSubmit" | "freshRetry";
2921
+ evidence: Record<string, unknown>;
2893
2922
  activityId: string;
2894
2923
  idempotencyKey: string;
2895
- evidence: Record<string, unknown>;
2896
2924
  }>, z.ZodObject<{
2897
2925
  ref: z.ZodString;
2898
2926
  bytes: z.ZodNumber;
@@ -2915,40 +2943,40 @@ export declare const ReconcileResultEventSchema: z.ZodObject<{
2915
2943
  }, "strip", z.ZodTypeAny, {
2916
2944
  type: "reconcileResult";
2917
2945
  runId: string;
2918
- timestamp: number;
2919
2946
  payload: {
2920
2947
  capability: "none" | "readOnlyLookup" | "idempotentSubmit";
2921
2948
  decision: "manual" | "replayed" | "completedByIdempotentSubmit" | "freshRetry";
2949
+ evidence: Record<string, unknown>;
2922
2950
  activityId: string;
2923
2951
  idempotencyKey: string;
2924
- evidence: Record<string, unknown>;
2925
2952
  } | {
2926
2953
  ref: string;
2927
2954
  bytes: number;
2928
2955
  schemaVersion: number;
2929
2956
  };
2930
- schemaVersion: 1;
2957
+ timestamp: number;
2931
2958
  eventId: string;
2932
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2959
+ schemaVersion: 1;
2960
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2933
2961
  payloadHash?: string | undefined;
2934
2962
  }, {
2935
2963
  type: "reconcileResult";
2936
2964
  runId: string;
2937
- timestamp: number;
2938
2965
  payload: {
2939
2966
  capability: "none" | "readOnlyLookup" | "idempotentSubmit";
2940
2967
  decision: "manual" | "replayed" | "completedByIdempotentSubmit" | "freshRetry";
2968
+ evidence: Record<string, unknown>;
2941
2969
  activityId: string;
2942
2970
  idempotencyKey: string;
2943
- evidence: Record<string, unknown>;
2944
2971
  } | {
2945
2972
  ref: string;
2946
2973
  bytes: number;
2947
2974
  schemaVersion: number;
2948
2975
  };
2949
- schemaVersion: 1;
2976
+ timestamp: number;
2950
2977
  eventId: string;
2951
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2978
+ schemaVersion: 1;
2979
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
2952
2980
  payloadHash?: string | undefined;
2953
2981
  }>;
2954
2982
  /**
@@ -2991,17 +3019,29 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2991
3019
  displayName: z.ZodOptional<z.ZodString>;
2992
3020
  workingDir: z.ZodOptional<z.ZodString>;
2993
3021
  cliPathOverride: z.ZodOptional<z.ZodString>;
3022
+ sandbox: z.ZodOptional<z.ZodBoolean>;
3023
+ sandboxHidePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3024
+ sandboxReadonlyPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3025
+ sandboxNetwork: z.ZodOptional<z.ZodBoolean>;
2994
3026
  }, "strip", z.ZodTypeAny, {
2995
3027
  larkAppId?: string | undefined;
2996
3028
  displayName?: string | undefined;
2997
3029
  cliId?: string | undefined;
2998
3030
  cliPathOverride?: string | undefined;
3031
+ sandbox?: boolean | undefined;
3032
+ sandboxHidePaths?: string[] | undefined;
3033
+ sandboxReadonlyPaths?: string[] | undefined;
3034
+ sandboxNetwork?: boolean | undefined;
2999
3035
  workingDir?: string | undefined;
3000
3036
  }, {
3001
3037
  larkAppId?: string | undefined;
3002
3038
  displayName?: string | undefined;
3003
3039
  cliId?: string | undefined;
3004
3040
  cliPathOverride?: string | undefined;
3041
+ sandbox?: boolean | undefined;
3042
+ sandboxHidePaths?: string[] | undefined;
3043
+ sandboxReadonlyPaths?: string[] | undefined;
3044
+ sandboxNetwork?: boolean | undefined;
3005
3045
  workingDir?: string | undefined;
3006
3046
  }>>>;
3007
3047
  }, "strip", z.ZodTypeAny, {
@@ -3020,6 +3060,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3020
3060
  displayName?: string | undefined;
3021
3061
  cliId?: string | undefined;
3022
3062
  cliPathOverride?: string | undefined;
3063
+ sandbox?: boolean | undefined;
3064
+ sandboxHidePaths?: string[] | undefined;
3065
+ sandboxReadonlyPaths?: string[] | undefined;
3066
+ sandboxNetwork?: boolean | undefined;
3023
3067
  workingDir?: string | undefined;
3024
3068
  }> | undefined;
3025
3069
  }, {
@@ -3038,6 +3082,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3038
3082
  displayName?: string | undefined;
3039
3083
  cliId?: string | undefined;
3040
3084
  cliPathOverride?: string | undefined;
3085
+ sandbox?: boolean | undefined;
3086
+ sandboxHidePaths?: string[] | undefined;
3087
+ sandboxReadonlyPaths?: string[] | undefined;
3088
+ sandboxNetwork?: boolean | undefined;
3041
3089
  workingDir?: string | undefined;
3042
3090
  }> | undefined;
3043
3091
  }>, z.ZodObject<{
@@ -3062,7 +3110,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3062
3110
  }, "strip", z.ZodTypeAny, {
3063
3111
  type: "runCreated";
3064
3112
  runId: string;
3065
- timestamp: number;
3066
3113
  payload: {
3067
3114
  workflowId: string;
3068
3115
  revisionId: string;
@@ -3079,6 +3126,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3079
3126
  displayName?: string | undefined;
3080
3127
  cliId?: string | undefined;
3081
3128
  cliPathOverride?: string | undefined;
3129
+ sandbox?: boolean | undefined;
3130
+ sandboxHidePaths?: string[] | undefined;
3131
+ sandboxReadonlyPaths?: string[] | undefined;
3132
+ sandboxNetwork?: boolean | undefined;
3082
3133
  workingDir?: string | undefined;
3083
3134
  }> | undefined;
3084
3135
  } | {
@@ -3086,14 +3137,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3086
3137
  bytes: number;
3087
3138
  schemaVersion: number;
3088
3139
  };
3089
- schemaVersion: 1;
3140
+ timestamp: number;
3090
3141
  eventId: string;
3091
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3142
+ schemaVersion: 1;
3143
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3092
3144
  payloadHash?: string | undefined;
3093
3145
  }, {
3094
3146
  type: "runCreated";
3095
3147
  runId: string;
3096
- timestamp: number;
3097
3148
  payload: {
3098
3149
  workflowId: string;
3099
3150
  revisionId: string;
@@ -3110,6 +3161,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3110
3161
  displayName?: string | undefined;
3111
3162
  cliId?: string | undefined;
3112
3163
  cliPathOverride?: string | undefined;
3164
+ sandbox?: boolean | undefined;
3165
+ sandboxHidePaths?: string[] | undefined;
3166
+ sandboxReadonlyPaths?: string[] | undefined;
3167
+ sandboxNetwork?: boolean | undefined;
3113
3168
  workingDir?: string | undefined;
3114
3169
  }> | undefined;
3115
3170
  } | {
@@ -3117,9 +3172,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3117
3172
  bytes: number;
3118
3173
  schemaVersion: number;
3119
3174
  };
3120
- schemaVersion: 1;
3175
+ timestamp: number;
3121
3176
  eventId: string;
3122
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3177
+ schemaVersion: 1;
3178
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3123
3179
  payloadHash?: string | undefined;
3124
3180
  }>, z.ZodObject<{
3125
3181
  type: z.ZodLiteral<"runStarted">;
@@ -3145,28 +3201,28 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3145
3201
  }, "strip", z.ZodTypeAny, {
3146
3202
  type: "runStarted";
3147
3203
  runId: string;
3148
- timestamp: number;
3149
3204
  payload: {} | {
3150
3205
  ref: string;
3151
3206
  bytes: number;
3152
3207
  schemaVersion: number;
3153
3208
  };
3154
- schemaVersion: 1;
3209
+ timestamp: number;
3155
3210
  eventId: string;
3156
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3211
+ schemaVersion: 1;
3212
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3157
3213
  payloadHash?: string | undefined;
3158
3214
  }, {
3159
3215
  type: "runStarted";
3160
3216
  runId: string;
3161
- timestamp: number;
3162
3217
  payload: {} | {
3163
3218
  ref: string;
3164
3219
  bytes: number;
3165
3220
  schemaVersion: number;
3166
3221
  };
3167
- schemaVersion: 1;
3222
+ timestamp: number;
3168
3223
  eventId: string;
3169
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3224
+ schemaVersion: 1;
3225
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3170
3226
  payloadHash?: string | undefined;
3171
3227
  }>, z.ZodObject<{
3172
3228
  type: z.ZodLiteral<"runSucceeded">;
@@ -3228,7 +3284,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3228
3284
  }, "strip", z.ZodTypeAny, {
3229
3285
  type: "runSucceeded";
3230
3286
  runId: string;
3231
- timestamp: number;
3232
3287
  payload: {
3233
3288
  outputRef: {
3234
3289
  outputHash: string;
@@ -3242,14 +3297,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3242
3297
  bytes: number;
3243
3298
  schemaVersion: number;
3244
3299
  };
3245
- schemaVersion: 1;
3300
+ timestamp: number;
3246
3301
  eventId: string;
3247
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3302
+ schemaVersion: 1;
3303
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3248
3304
  payloadHash?: string | undefined;
3249
3305
  }, {
3250
3306
  type: "runSucceeded";
3251
3307
  runId: string;
3252
- timestamp: number;
3253
3308
  payload: {
3254
3309
  outputRef: {
3255
3310
  outputHash: string;
@@ -3263,9 +3318,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3263
3318
  bytes: number;
3264
3319
  schemaVersion: number;
3265
3320
  };
3266
- schemaVersion: 1;
3321
+ timestamp: number;
3267
3322
  eventId: string;
3268
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3323
+ schemaVersion: 1;
3324
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3269
3325
  payloadHash?: string | undefined;
3270
3326
  }>, z.ZodObject<{
3271
3327
  type: z.ZodLiteral<"runFailed">;
@@ -3300,7 +3356,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3300
3356
  }, "strip", z.ZodTypeAny, {
3301
3357
  type: "runFailed";
3302
3358
  runId: string;
3303
- timestamp: number;
3304
3359
  payload: {
3305
3360
  failedNodeId: string;
3306
3361
  rootCauseEventId: string;
@@ -3309,14 +3364,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3309
3364
  bytes: number;
3310
3365
  schemaVersion: number;
3311
3366
  };
3312
- schemaVersion: 1;
3367
+ timestamp: number;
3313
3368
  eventId: string;
3314
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3369
+ schemaVersion: 1;
3370
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3315
3371
  payloadHash?: string | undefined;
3316
3372
  }, {
3317
3373
  type: "runFailed";
3318
3374
  runId: string;
3319
- timestamp: number;
3320
3375
  payload: {
3321
3376
  failedNodeId: string;
3322
3377
  rootCauseEventId: string;
@@ -3325,9 +3380,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3325
3380
  bytes: number;
3326
3381
  schemaVersion: number;
3327
3382
  };
3328
- schemaVersion: 1;
3383
+ timestamp: number;
3329
3384
  eventId: string;
3330
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3385
+ schemaVersion: 1;
3386
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3331
3387
  payloadHash?: string | undefined;
3332
3388
  }>, z.ZodObject<{
3333
3389
  type: z.ZodLiteral<"runCanceled">;
@@ -3359,7 +3415,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3359
3415
  }, "strip", z.ZodTypeAny, {
3360
3416
  type: "runCanceled";
3361
3417
  runId: string;
3362
- timestamp: number;
3363
3418
  payload: {
3364
3419
  cancelOriginEventId: string;
3365
3420
  } | {
@@ -3367,14 +3422,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3367
3422
  bytes: number;
3368
3423
  schemaVersion: number;
3369
3424
  };
3370
- schemaVersion: 1;
3425
+ timestamp: number;
3371
3426
  eventId: string;
3372
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3427
+ schemaVersion: 1;
3428
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3373
3429
  payloadHash?: string | undefined;
3374
3430
  }, {
3375
3431
  type: "runCanceled";
3376
3432
  runId: string;
3377
- timestamp: number;
3378
3433
  payload: {
3379
3434
  cancelOriginEventId: string;
3380
3435
  } | {
@@ -3382,9 +3437,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3382
3437
  bytes: number;
3383
3438
  schemaVersion: number;
3384
3439
  };
3385
- schemaVersion: 1;
3440
+ timestamp: number;
3386
3441
  eventId: string;
3387
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3442
+ schemaVersion: 1;
3443
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3388
3444
  payloadHash?: string | undefined;
3389
3445
  }>, z.ZodObject<{
3390
3446
  type: z.ZodLiteral<"nodeWaiting">;
@@ -3422,7 +3478,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3422
3478
  }, "strip", z.ZodTypeAny, {
3423
3479
  type: "nodeWaiting";
3424
3480
  runId: string;
3425
- timestamp: number;
3426
3481
  payload: {
3427
3482
  nodeId: string;
3428
3483
  waitReason: string;
@@ -3432,14 +3487,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3432
3487
  bytes: number;
3433
3488
  schemaVersion: number;
3434
3489
  };
3435
- schemaVersion: 1;
3490
+ timestamp: number;
3436
3491
  eventId: string;
3437
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3492
+ schemaVersion: 1;
3493
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3438
3494
  payloadHash?: string | undefined;
3439
3495
  }, {
3440
3496
  type: "nodeWaiting";
3441
3497
  runId: string;
3442
- timestamp: number;
3443
3498
  payload: {
3444
3499
  nodeId: string;
3445
3500
  waitReason: string;
@@ -3449,9 +3504,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3449
3504
  bytes: number;
3450
3505
  schemaVersion: number;
3451
3506
  };
3452
- schemaVersion: 1;
3507
+ timestamp: number;
3453
3508
  eventId: string;
3454
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3509
+ schemaVersion: 1;
3510
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3455
3511
  payloadHash?: string | undefined;
3456
3512
  }>, z.ZodObject<{
3457
3513
  type: z.ZodLiteral<"nodeRetrying">;
@@ -3489,7 +3545,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3489
3545
  }, "strip", z.ZodTypeAny, {
3490
3546
  type: "nodeRetrying";
3491
3547
  runId: string;
3492
- timestamp: number;
3493
3548
  payload: {
3494
3549
  nodeId: string;
3495
3550
  lastAttemptId: string;
@@ -3499,14 +3554,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3499
3554
  bytes: number;
3500
3555
  schemaVersion: number;
3501
3556
  };
3502
- schemaVersion: 1;
3557
+ timestamp: number;
3503
3558
  eventId: string;
3504
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3559
+ schemaVersion: 1;
3560
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3505
3561
  payloadHash?: string | undefined;
3506
3562
  }, {
3507
3563
  type: "nodeRetrying";
3508
3564
  runId: string;
3509
- timestamp: number;
3510
3565
  payload: {
3511
3566
  nodeId: string;
3512
3567
  lastAttemptId: string;
@@ -3516,9 +3571,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3516
3571
  bytes: number;
3517
3572
  schemaVersion: number;
3518
3573
  };
3519
- schemaVersion: 1;
3574
+ timestamp: number;
3520
3575
  eventId: string;
3521
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3576
+ schemaVersion: 1;
3577
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3522
3578
  payloadHash?: string | undefined;
3523
3579
  }>, z.ZodObject<{
3524
3580
  type: z.ZodLiteral<"nodeSucceeded">;
@@ -3553,7 +3609,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3553
3609
  }, "strip", z.ZodTypeAny, {
3554
3610
  type: "nodeSucceeded";
3555
3611
  runId: string;
3556
- timestamp: number;
3557
3612
  payload: {
3558
3613
  nodeId: string;
3559
3614
  lastActivityId: string;
@@ -3562,14 +3617,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3562
3617
  bytes: number;
3563
3618
  schemaVersion: number;
3564
3619
  };
3565
- schemaVersion: 1;
3620
+ timestamp: number;
3566
3621
  eventId: string;
3567
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3622
+ schemaVersion: 1;
3623
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3568
3624
  payloadHash?: string | undefined;
3569
3625
  }, {
3570
3626
  type: "nodeSucceeded";
3571
3627
  runId: string;
3572
- timestamp: number;
3573
3628
  payload: {
3574
3629
  nodeId: string;
3575
3630
  lastActivityId: string;
@@ -3578,9 +3633,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3578
3633
  bytes: number;
3579
3634
  schemaVersion: number;
3580
3635
  };
3581
- schemaVersion: 1;
3636
+ timestamp: number;
3582
3637
  eventId: string;
3583
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3638
+ schemaVersion: 1;
3639
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3584
3640
  payloadHash?: string | undefined;
3585
3641
  }>, z.ZodObject<{
3586
3642
  type: z.ZodLiteral<"nodeFailed">;
@@ -3618,7 +3674,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3618
3674
  }, "strip", z.ZodTypeAny, {
3619
3675
  type: "nodeFailed";
3620
3676
  runId: string;
3621
- timestamp: number;
3622
3677
  payload: {
3623
3678
  nodeId: string;
3624
3679
  errorClass: "manual" | "fatal" | "retryable" | "userFault";
@@ -3628,14 +3683,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3628
3683
  bytes: number;
3629
3684
  schemaVersion: number;
3630
3685
  };
3631
- schemaVersion: 1;
3686
+ timestamp: number;
3632
3687
  eventId: string;
3633
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3688
+ schemaVersion: 1;
3689
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3634
3690
  payloadHash?: string | undefined;
3635
3691
  }, {
3636
3692
  type: "nodeFailed";
3637
3693
  runId: string;
3638
- timestamp: number;
3639
3694
  payload: {
3640
3695
  nodeId: string;
3641
3696
  errorClass: "manual" | "fatal" | "retryable" | "userFault";
@@ -3645,9 +3700,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3645
3700
  bytes: number;
3646
3701
  schemaVersion: number;
3647
3702
  };
3648
- schemaVersion: 1;
3703
+ timestamp: number;
3649
3704
  eventId: string;
3650
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3705
+ schemaVersion: 1;
3706
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3651
3707
  payloadHash?: string | undefined;
3652
3708
  }>, z.ZodObject<{
3653
3709
  type: z.ZodLiteral<"nodeSkipped">;
@@ -3682,7 +3738,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3682
3738
  }, "strip", z.ZodTypeAny, {
3683
3739
  type: "nodeSkipped";
3684
3740
  runId: string;
3685
- timestamp: number;
3686
3741
  payload: {
3687
3742
  nodeId: string;
3688
3743
  conditionEventId: string;
@@ -3691,14 +3746,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3691
3746
  bytes: number;
3692
3747
  schemaVersion: number;
3693
3748
  };
3694
- schemaVersion: 1;
3749
+ timestamp: number;
3695
3750
  eventId: string;
3696
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3751
+ schemaVersion: 1;
3752
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3697
3753
  payloadHash?: string | undefined;
3698
3754
  }, {
3699
3755
  type: "nodeSkipped";
3700
3756
  runId: string;
3701
- timestamp: number;
3702
3757
  payload: {
3703
3758
  nodeId: string;
3704
3759
  conditionEventId: string;
@@ -3707,9 +3762,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3707
3762
  bytes: number;
3708
3763
  schemaVersion: number;
3709
3764
  };
3710
- schemaVersion: 1;
3765
+ timestamp: number;
3711
3766
  eventId: string;
3712
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3767
+ schemaVersion: 1;
3768
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3713
3769
  payloadHash?: string | undefined;
3714
3770
  }>, z.ZodObject<{
3715
3771
  type: z.ZodLiteral<"nodeCanceled">;
@@ -3744,7 +3800,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3744
3800
  }, "strip", z.ZodTypeAny, {
3745
3801
  type: "nodeCanceled";
3746
3802
  runId: string;
3747
- timestamp: number;
3748
3803
  payload: {
3749
3804
  nodeId: string;
3750
3805
  cancelOriginEventId: string;
@@ -3753,14 +3808,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3753
3808
  bytes: number;
3754
3809
  schemaVersion: number;
3755
3810
  };
3756
- schemaVersion: 1;
3811
+ timestamp: number;
3757
3812
  eventId: string;
3758
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3813
+ schemaVersion: 1;
3814
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3759
3815
  payloadHash?: string | undefined;
3760
3816
  }, {
3761
3817
  type: "nodeCanceled";
3762
3818
  runId: string;
3763
- timestamp: number;
3764
3819
  payload: {
3765
3820
  nodeId: string;
3766
3821
  cancelOriginEventId: string;
@@ -3769,9 +3824,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3769
3824
  bytes: number;
3770
3825
  schemaVersion: number;
3771
3826
  };
3772
- schemaVersion: 1;
3827
+ timestamp: number;
3773
3828
  eventId: string;
3774
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3829
+ schemaVersion: 1;
3830
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3775
3831
  payloadHash?: string | undefined;
3776
3832
  }>, z.ZodObject<{
3777
3833
  type: z.ZodLiteral<"activityRunning">;
@@ -3809,7 +3865,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3809
3865
  }, "strip", z.ZodTypeAny, {
3810
3866
  type: "activityRunning";
3811
3867
  runId: string;
3812
- timestamp: number;
3813
3868
  payload: {
3814
3869
  attemptId: string;
3815
3870
  activityId: string;
@@ -3819,14 +3874,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3819
3874
  bytes: number;
3820
3875
  schemaVersion: number;
3821
3876
  };
3822
- schemaVersion: 1;
3877
+ timestamp: number;
3823
3878
  eventId: string;
3824
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3879
+ schemaVersion: 1;
3880
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3825
3881
  payloadHash?: string | undefined;
3826
3882
  }, {
3827
3883
  type: "activityRunning";
3828
3884
  runId: string;
3829
- timestamp: number;
3830
3885
  payload: {
3831
3886
  attemptId: string;
3832
3887
  activityId: string;
@@ -3836,9 +3891,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3836
3891
  bytes: number;
3837
3892
  schemaVersion: number;
3838
3893
  };
3839
- schemaVersion: 1;
3894
+ timestamp: number;
3840
3895
  eventId: string;
3841
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3896
+ schemaVersion: 1;
3897
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3842
3898
  payloadHash?: string | undefined;
3843
3899
  }>, z.ZodObject<{
3844
3900
  type: z.ZodLiteral<"activityWaiting">;
@@ -3873,7 +3929,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3873
3929
  }, "strip", z.ZodTypeAny, {
3874
3930
  type: "activityWaiting";
3875
3931
  runId: string;
3876
- timestamp: number;
3877
3932
  payload: {
3878
3933
  reason: string;
3879
3934
  activityId: string;
@@ -3882,14 +3937,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3882
3937
  bytes: number;
3883
3938
  schemaVersion: number;
3884
3939
  };
3885
- schemaVersion: 1;
3940
+ timestamp: number;
3886
3941
  eventId: string;
3887
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3942
+ schemaVersion: 1;
3943
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3888
3944
  payloadHash?: string | undefined;
3889
3945
  }, {
3890
3946
  type: "activityWaiting";
3891
3947
  runId: string;
3892
- timestamp: number;
3893
3948
  payload: {
3894
3949
  reason: string;
3895
3950
  activityId: string;
@@ -3898,9 +3953,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3898
3953
  bytes: number;
3899
3954
  schemaVersion: number;
3900
3955
  };
3901
- schemaVersion: 1;
3956
+ timestamp: number;
3902
3957
  eventId: string;
3903
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3958
+ schemaVersion: 1;
3959
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3904
3960
  payloadHash?: string | undefined;
3905
3961
  }>, z.ZodObject<{
3906
3962
  type: z.ZodLiteral<"activityTimedOut">;
@@ -3944,7 +4000,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3944
4000
  }, "strip", z.ZodTypeAny, {
3945
4001
  type: "activityTimedOut";
3946
4002
  runId: string;
3947
- timestamp: number;
3948
4003
  payload: {
3949
4004
  reason: "LeaseExpired";
3950
4005
  attemptId: string;
@@ -3956,14 +4011,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3956
4011
  bytes: number;
3957
4012
  schemaVersion: number;
3958
4013
  };
3959
- schemaVersion: 1;
4014
+ timestamp: number;
3960
4015
  eventId: string;
3961
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4016
+ schemaVersion: 1;
4017
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3962
4018
  payloadHash?: string | undefined;
3963
4019
  }, {
3964
4020
  type: "activityTimedOut";
3965
4021
  runId: string;
3966
- timestamp: number;
3967
4022
  payload: {
3968
4023
  reason: "LeaseExpired";
3969
4024
  attemptId: string;
@@ -3975,9 +4030,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3975
4030
  bytes: number;
3976
4031
  schemaVersion: number;
3977
4032
  };
3978
- schemaVersion: 1;
4033
+ timestamp: number;
3979
4034
  eventId: string;
3980
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4035
+ schemaVersion: 1;
4036
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
3981
4037
  payloadHash?: string | undefined;
3982
4038
  }>, z.ZodObject<{
3983
4039
  type: z.ZodLiteral<"loopStarted">;
@@ -4012,7 +4068,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4012
4068
  }, "strip", z.ZodTypeAny, {
4013
4069
  type: "loopStarted";
4014
4070
  runId: string;
4015
- timestamp: number;
4016
4071
  payload: {
4017
4072
  maxIterations: number;
4018
4073
  loopId: string;
@@ -4021,14 +4076,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4021
4076
  bytes: number;
4022
4077
  schemaVersion: number;
4023
4078
  };
4024
- schemaVersion: 1;
4079
+ timestamp: number;
4025
4080
  eventId: string;
4026
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4081
+ schemaVersion: 1;
4082
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4027
4083
  payloadHash?: string | undefined;
4028
4084
  }, {
4029
4085
  type: "loopStarted";
4030
4086
  runId: string;
4031
- timestamp: number;
4032
4087
  payload: {
4033
4088
  maxIterations: number;
4034
4089
  loopId: string;
@@ -4037,9 +4092,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4037
4092
  bytes: number;
4038
4093
  schemaVersion: number;
4039
4094
  };
4040
- schemaVersion: 1;
4095
+ timestamp: number;
4041
4096
  eventId: string;
4042
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4097
+ schemaVersion: 1;
4098
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4043
4099
  payloadHash?: string | undefined;
4044
4100
  }>, z.ZodObject<{
4045
4101
  type: z.ZodLiteral<"loopIterationStarted">;
@@ -4077,7 +4133,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4077
4133
  }, "strip", z.ZodTypeAny, {
4078
4134
  type: "loopIterationStarted";
4079
4135
  runId: string;
4080
- timestamp: number;
4081
4136
  payload: {
4082
4137
  loopId: string;
4083
4138
  iteration: number;
@@ -4087,14 +4142,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4087
4142
  bytes: number;
4088
4143
  schemaVersion: number;
4089
4144
  };
4090
- schemaVersion: 1;
4145
+ timestamp: number;
4091
4146
  eventId: string;
4092
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4147
+ schemaVersion: 1;
4148
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4093
4149
  payloadHash?: string | undefined;
4094
4150
  }, {
4095
4151
  type: "loopIterationStarted";
4096
4152
  runId: string;
4097
- timestamp: number;
4098
4153
  payload: {
4099
4154
  loopId: string;
4100
4155
  iteration: number;
@@ -4104,9 +4159,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4104
4159
  bytes: number;
4105
4160
  schemaVersion: number;
4106
4161
  };
4107
- schemaVersion: 1;
4162
+ timestamp: number;
4108
4163
  eventId: string;
4109
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4164
+ schemaVersion: 1;
4165
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4110
4166
  payloadHash?: string | undefined;
4111
4167
  }>, z.ZodObject<{
4112
4168
  type: z.ZodLiteral<"loopIterationFinished">;
@@ -4159,7 +4215,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4159
4215
  }, "strip", z.ZodTypeAny, {
4160
4216
  type: "loopIterationFinished";
4161
4217
  runId: string;
4162
- timestamp: number;
4163
4218
  payload: {
4164
4219
  loopId: string;
4165
4220
  iteration: number;
@@ -4174,14 +4229,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4174
4229
  bytes: number;
4175
4230
  schemaVersion: number;
4176
4231
  };
4177
- schemaVersion: 1;
4232
+ timestamp: number;
4178
4233
  eventId: string;
4179
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4234
+ schemaVersion: 1;
4235
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4180
4236
  payloadHash?: string | undefined;
4181
4237
  }, {
4182
4238
  type: "loopIterationFinished";
4183
4239
  runId: string;
4184
- timestamp: number;
4185
4240
  payload: {
4186
4241
  loopId: string;
4187
4242
  iteration: number;
@@ -4196,9 +4251,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4196
4251
  bytes: number;
4197
4252
  schemaVersion: number;
4198
4253
  };
4199
- schemaVersion: 1;
4254
+ timestamp: number;
4200
4255
  eventId: string;
4201
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4256
+ schemaVersion: 1;
4257
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4202
4258
  payloadHash?: string | undefined;
4203
4259
  }>, z.ZodObject<{
4204
4260
  type: z.ZodLiteral<"loopFinished">;
@@ -4229,7 +4285,7 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4229
4285
  errorClass: z.ZodOptional<z.ZodEnum<["retryable", "fatal", "userFault", "manual"]>>;
4230
4286
  }, "strip", z.ZodTypeAny, {
4231
4287
  loopId: string;
4232
- resolution: "timeout" | "approved" | "max-iterations-exceeded" | "body-failed" | "cancelled";
4288
+ resolution: "timeout" | "cancelled" | "approved" | "max-iterations-exceeded" | "body-failed";
4233
4289
  finalIteration: number;
4234
4290
  errorCode?: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
4235
4291
  errorClass?: "manual" | "fatal" | "retryable" | "userFault" | undefined;
@@ -4242,7 +4298,7 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4242
4298
  } | undefined;
4243
4299
  }, {
4244
4300
  loopId: string;
4245
- resolution: "timeout" | "approved" | "max-iterations-exceeded" | "body-failed" | "cancelled";
4301
+ resolution: "timeout" | "cancelled" | "approved" | "max-iterations-exceeded" | "body-failed";
4246
4302
  finalIteration: number;
4247
4303
  errorCode?: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
4248
4304
  errorClass?: "manual" | "fatal" | "retryable" | "userFault" | undefined;
@@ -4275,10 +4331,9 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4275
4331
  }, "strip", z.ZodTypeAny, {
4276
4332
  type: "loopFinished";
4277
4333
  runId: string;
4278
- timestamp: number;
4279
4334
  payload: {
4280
4335
  loopId: string;
4281
- resolution: "timeout" | "approved" | "max-iterations-exceeded" | "body-failed" | "cancelled";
4336
+ resolution: "timeout" | "cancelled" | "approved" | "max-iterations-exceeded" | "body-failed";
4282
4337
  finalIteration: number;
4283
4338
  errorCode?: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
4284
4339
  errorClass?: "manual" | "fatal" | "retryable" | "userFault" | undefined;
@@ -4294,17 +4349,17 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4294
4349
  bytes: number;
4295
4350
  schemaVersion: number;
4296
4351
  };
4297
- schemaVersion: 1;
4352
+ timestamp: number;
4298
4353
  eventId: string;
4299
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4354
+ schemaVersion: 1;
4355
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4300
4356
  payloadHash?: string | undefined;
4301
4357
  }, {
4302
4358
  type: "loopFinished";
4303
4359
  runId: string;
4304
- timestamp: number;
4305
4360
  payload: {
4306
4361
  loopId: string;
4307
- resolution: "timeout" | "approved" | "max-iterations-exceeded" | "body-failed" | "cancelled";
4362
+ resolution: "timeout" | "cancelled" | "approved" | "max-iterations-exceeded" | "body-failed";
4308
4363
  finalIteration: number;
4309
4364
  errorCode?: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed" | undefined;
4310
4365
  errorClass?: "manual" | "fatal" | "retryable" | "userFault" | undefined;
@@ -4320,9 +4375,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4320
4375
  bytes: number;
4321
4376
  schemaVersion: number;
4322
4377
  };
4323
- schemaVersion: 1;
4378
+ timestamp: number;
4324
4379
  eventId: string;
4325
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4380
+ schemaVersion: 1;
4381
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4326
4382
  payloadHash?: string | undefined;
4327
4383
  }>, z.ZodObject<{
4328
4384
  type: z.ZodLiteral<"conditionEvaluated">;
@@ -4363,7 +4419,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4363
4419
  }, "strip", z.ZodTypeAny, {
4364
4420
  type: "conditionEvaluated";
4365
4421
  runId: string;
4366
- timestamp: number;
4367
4422
  payload: {
4368
4423
  nodeId: string;
4369
4424
  conditionExpr: string;
@@ -4374,14 +4429,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4374
4429
  bytes: number;
4375
4430
  schemaVersion: number;
4376
4431
  };
4377
- schemaVersion: 1;
4432
+ timestamp: number;
4378
4433
  eventId: string;
4379
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4434
+ schemaVersion: 1;
4435
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4380
4436
  payloadHash?: string | undefined;
4381
4437
  }, {
4382
4438
  type: "conditionEvaluated";
4383
4439
  runId: string;
4384
- timestamp: number;
4385
4440
  payload: {
4386
4441
  nodeId: string;
4387
4442
  conditionExpr: string;
@@ -4392,9 +4447,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4392
4447
  bytes: number;
4393
4448
  schemaVersion: number;
4394
4449
  };
4395
- schemaVersion: 1;
4450
+ timestamp: number;
4396
4451
  eventId: string;
4397
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4452
+ schemaVersion: 1;
4453
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4398
4454
  payloadHash?: string | undefined;
4399
4455
  }>, z.ZodObject<{
4400
4456
  type: z.ZodLiteral<"leaseSigned">;
@@ -4438,7 +4494,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4438
4494
  }, "strip", z.ZodTypeAny, {
4439
4495
  type: "leaseSigned";
4440
4496
  runId: string;
4441
- timestamp: number;
4442
4497
  payload: {
4443
4498
  timeoutMs: number;
4444
4499
  attemptId: string;
@@ -4450,14 +4505,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4450
4505
  bytes: number;
4451
4506
  schemaVersion: number;
4452
4507
  };
4453
- schemaVersion: 1;
4508
+ timestamp: number;
4454
4509
  eventId: string;
4455
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4510
+ schemaVersion: 1;
4511
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4456
4512
  payloadHash?: string | undefined;
4457
4513
  }, {
4458
4514
  type: "leaseSigned";
4459
4515
  runId: string;
4460
- timestamp: number;
4461
4516
  payload: {
4462
4517
  timeoutMs: number;
4463
4518
  attemptId: string;
@@ -4469,9 +4524,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4469
4524
  bytes: number;
4470
4525
  schemaVersion: number;
4471
4526
  };
4472
- schemaVersion: 1;
4527
+ timestamp: number;
4473
4528
  eventId: string;
4474
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4529
+ schemaVersion: 1;
4530
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4475
4531
  payloadHash?: string | undefined;
4476
4532
  }>, z.ZodObject<{
4477
4533
  type: z.ZodLiteral<"attemptCreated">;
@@ -4545,7 +4601,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4545
4601
  }, "strip", z.ZodTypeAny, {
4546
4602
  type: "attemptCreated";
4547
4603
  runId: string;
4548
- timestamp: number;
4549
4604
  payload: {
4550
4605
  nodeId: string;
4551
4606
  attemptId: string;
@@ -4563,14 +4618,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4563
4618
  bytes: number;
4564
4619
  schemaVersion: number;
4565
4620
  };
4566
- schemaVersion: 1;
4621
+ timestamp: number;
4567
4622
  eventId: string;
4568
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4623
+ schemaVersion: 1;
4624
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4569
4625
  payloadHash?: string | undefined;
4570
4626
  }, {
4571
4627
  type: "attemptCreated";
4572
4628
  runId: string;
4573
- timestamp: number;
4574
4629
  payload: {
4575
4630
  nodeId: string;
4576
4631
  attemptId: string;
@@ -4588,9 +4643,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4588
4643
  bytes: number;
4589
4644
  schemaVersion: number;
4590
4645
  };
4591
- schemaVersion: 1;
4646
+ timestamp: number;
4592
4647
  eventId: string;
4593
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4648
+ schemaVersion: 1;
4649
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4594
4650
  payloadHash?: string | undefined;
4595
4651
  }>, z.ZodObject<{
4596
4652
  type: z.ZodLiteral<"backoffScheduled">;
@@ -4656,7 +4712,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4656
4712
  }, "strip", z.ZodTypeAny, {
4657
4713
  type: "backoffScheduled";
4658
4714
  runId: string;
4659
- timestamp: number;
4660
4715
  payload: {
4661
4716
  nodeId: string;
4662
4717
  lastAttemptId: string;
@@ -4672,14 +4727,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4672
4727
  bytes: number;
4673
4728
  schemaVersion: number;
4674
4729
  };
4675
- schemaVersion: 1;
4730
+ timestamp: number;
4676
4731
  eventId: string;
4677
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4732
+ schemaVersion: 1;
4733
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4678
4734
  payloadHash?: string | undefined;
4679
4735
  }, {
4680
4736
  type: "backoffScheduled";
4681
4737
  runId: string;
4682
- timestamp: number;
4683
4738
  payload: {
4684
4739
  nodeId: string;
4685
4740
  lastAttemptId: string;
@@ -4695,9 +4750,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4695
4750
  bytes: number;
4696
4751
  schemaVersion: number;
4697
4752
  };
4698
- schemaVersion: 1;
4753
+ timestamp: number;
4699
4754
  eventId: string;
4700
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4755
+ schemaVersion: 1;
4756
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4701
4757
  payloadHash?: string | undefined;
4702
4758
  }>, z.ZodObject<{
4703
4759
  type: z.ZodLiteral<"backoffElapsed">;
@@ -4732,7 +4788,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4732
4788
  }, "strip", z.ZodTypeAny, {
4733
4789
  type: "backoffElapsed";
4734
4790
  runId: string;
4735
- timestamp: number;
4736
4791
  payload: {
4737
4792
  nodeId: string;
4738
4793
  scheduledAttemptId: string;
@@ -4741,14 +4796,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4741
4796
  bytes: number;
4742
4797
  schemaVersion: number;
4743
4798
  };
4744
- schemaVersion: 1;
4799
+ timestamp: number;
4745
4800
  eventId: string;
4746
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4801
+ schemaVersion: 1;
4802
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4747
4803
  payloadHash?: string | undefined;
4748
4804
  }, {
4749
4805
  type: "backoffElapsed";
4750
4806
  runId: string;
4751
- timestamp: number;
4752
4807
  payload: {
4753
4808
  nodeId: string;
4754
4809
  scheduledAttemptId: string;
@@ -4757,9 +4812,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4757
4812
  bytes: number;
4758
4813
  schemaVersion: number;
4759
4814
  };
4760
- schemaVersion: 1;
4815
+ timestamp: number;
4761
4816
  eventId: string;
4762
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4817
+ schemaVersion: 1;
4818
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4763
4819
  payloadHash?: string | undefined;
4764
4820
  }>, z.ZodObject<{
4765
4821
  type: z.ZodLiteral<"effectAttempted">;
@@ -4806,7 +4862,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4806
4862
  }, "strip", z.ZodTypeAny, {
4807
4863
  type: "effectAttempted";
4808
4864
  runId: string;
4809
- timestamp: number;
4810
4865
  payload: {
4811
4866
  attemptId: string;
4812
4867
  activityId: string;
@@ -4819,14 +4874,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4819
4874
  bytes: number;
4820
4875
  schemaVersion: number;
4821
4876
  };
4822
- schemaVersion: 1;
4877
+ timestamp: number;
4823
4878
  eventId: string;
4824
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4879
+ schemaVersion: 1;
4880
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4825
4881
  payloadHash?: string | undefined;
4826
4882
  }, {
4827
4883
  type: "effectAttempted";
4828
4884
  runId: string;
4829
- timestamp: number;
4830
4885
  payload: {
4831
4886
  attemptId: string;
4832
4887
  activityId: string;
@@ -4839,9 +4894,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4839
4894
  bytes: number;
4840
4895
  schemaVersion: number;
4841
4896
  };
4842
- schemaVersion: 1;
4897
+ timestamp: number;
4843
4898
  eventId: string;
4844
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4899
+ schemaVersion: 1;
4900
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4845
4901
  payloadHash?: string | undefined;
4846
4902
  }>, z.ZodObject<{
4847
4903
  type: z.ZodLiteral<"activitySucceeded">;
@@ -4912,7 +4968,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4912
4968
  }, "strip", z.ZodTypeAny, {
4913
4969
  type: "activitySucceeded";
4914
4970
  runId: string;
4915
- timestamp: number;
4916
4971
  payload: {
4917
4972
  attemptId: string;
4918
4973
  activityId: string;
@@ -4929,14 +4984,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4929
4984
  bytes: number;
4930
4985
  schemaVersion: number;
4931
4986
  };
4932
- schemaVersion: 1;
4987
+ timestamp: number;
4933
4988
  eventId: string;
4934
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4989
+ schemaVersion: 1;
4990
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4935
4991
  payloadHash?: string | undefined;
4936
4992
  }, {
4937
4993
  type: "activitySucceeded";
4938
4994
  runId: string;
4939
- timestamp: number;
4940
4995
  payload: {
4941
4996
  attemptId: string;
4942
4997
  activityId: string;
@@ -4953,9 +5008,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4953
5008
  bytes: number;
4954
5009
  schemaVersion: number;
4955
5010
  };
4956
- schemaVersion: 1;
5011
+ timestamp: number;
4957
5012
  eventId: string;
4958
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5013
+ schemaVersion: 1;
5014
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
4959
5015
  payloadHash?: string | undefined;
4960
5016
  }>, z.ZodObject<{
4961
5017
  type: z.ZodLiteral<"activityFailed">;
@@ -5018,7 +5074,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5018
5074
  }, "strip", z.ZodTypeAny, {
5019
5075
  type: "activityFailed";
5020
5076
  runId: string;
5021
- timestamp: number;
5022
5077
  payload: {
5023
5078
  error: {
5024
5079
  errorCode: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
@@ -5033,14 +5088,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5033
5088
  bytes: number;
5034
5089
  schemaVersion: number;
5035
5090
  };
5036
- schemaVersion: 1;
5091
+ timestamp: number;
5037
5092
  eventId: string;
5038
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5093
+ schemaVersion: 1;
5094
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5039
5095
  payloadHash?: string | undefined;
5040
5096
  }, {
5041
5097
  type: "activityFailed";
5042
5098
  runId: string;
5043
- timestamp: number;
5044
5099
  payload: {
5045
5100
  error: {
5046
5101
  errorCode: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
@@ -5055,9 +5110,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5055
5110
  bytes: number;
5056
5111
  schemaVersion: number;
5057
5112
  };
5058
- schemaVersion: 1;
5113
+ timestamp: number;
5059
5114
  eventId: string;
5060
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5115
+ schemaVersion: 1;
5116
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5061
5117
  payloadHash?: string | undefined;
5062
5118
  }>, z.ZodObject<{
5063
5119
  type: z.ZodLiteral<"waitCreated">;
@@ -5143,7 +5199,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5143
5199
  }, "strip", z.ZodTypeAny, {
5144
5200
  type: "waitCreated";
5145
5201
  runId: string;
5146
- timestamp: number;
5147
5202
  payload: {
5148
5203
  nodeId: string;
5149
5204
  activityId: string;
@@ -5165,14 +5220,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5165
5220
  bytes: number;
5166
5221
  schemaVersion: number;
5167
5222
  };
5168
- schemaVersion: 1;
5223
+ timestamp: number;
5169
5224
  eventId: string;
5170
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5225
+ schemaVersion: 1;
5226
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5171
5227
  payloadHash?: string | undefined;
5172
5228
  }, {
5173
5229
  type: "waitCreated";
5174
5230
  runId: string;
5175
- timestamp: number;
5176
5231
  payload: {
5177
5232
  nodeId: string;
5178
5233
  activityId: string;
@@ -5194,9 +5249,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5194
5249
  bytes: number;
5195
5250
  schemaVersion: number;
5196
5251
  };
5197
- schemaVersion: 1;
5252
+ timestamp: number;
5198
5253
  eventId: string;
5199
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5254
+ schemaVersion: 1;
5255
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5200
5256
  payloadHash?: string | undefined;
5201
5257
  }>, z.ZodObject<{
5202
5258
  type: z.ZodLiteral<"waitResolved">;
@@ -5237,7 +5293,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5237
5293
  }, "strip", z.ZodTypeAny, {
5238
5294
  type: "waitResolved";
5239
5295
  runId: string;
5240
- timestamp: number;
5241
5296
  payload: {
5242
5297
  activityId: string;
5243
5298
  resolution: "approved" | "rejected" | "external";
@@ -5248,14 +5303,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5248
5303
  bytes: number;
5249
5304
  schemaVersion: number;
5250
5305
  };
5251
- schemaVersion: 1;
5306
+ timestamp: number;
5252
5307
  eventId: string;
5253
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5308
+ schemaVersion: 1;
5309
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5254
5310
  payloadHash?: string | undefined;
5255
5311
  }, {
5256
5312
  type: "waitResolved";
5257
5313
  runId: string;
5258
- timestamp: number;
5259
5314
  payload: {
5260
5315
  activityId: string;
5261
5316
  resolution: "approved" | "rejected" | "external";
@@ -5266,9 +5321,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5266
5321
  bytes: number;
5267
5322
  schemaVersion: number;
5268
5323
  };
5269
- schemaVersion: 1;
5324
+ timestamp: number;
5270
5325
  eventId: string;
5271
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5326
+ schemaVersion: 1;
5327
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5272
5328
  payloadHash?: string | undefined;
5273
5329
  }>, z.ZodObject<{
5274
5330
  type: z.ZodLiteral<"waitDeadlineExceeded">;
@@ -5306,7 +5362,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5306
5362
  }, "strip", z.ZodTypeAny, {
5307
5363
  type: "waitDeadlineExceeded";
5308
5364
  runId: string;
5309
- timestamp: number;
5310
5365
  payload: {
5311
5366
  activityId: string;
5312
5367
  deadlineAt: number;
@@ -5316,14 +5371,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5316
5371
  bytes: number;
5317
5372
  schemaVersion: number;
5318
5373
  };
5319
- schemaVersion: 1;
5374
+ timestamp: number;
5320
5375
  eventId: string;
5321
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5376
+ schemaVersion: 1;
5377
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5322
5378
  payloadHash?: string | undefined;
5323
5379
  }, {
5324
5380
  type: "waitDeadlineExceeded";
5325
5381
  runId: string;
5326
- timestamp: number;
5327
5382
  payload: {
5328
5383
  activityId: string;
5329
5384
  deadlineAt: number;
@@ -5333,9 +5388,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5333
5388
  bytes: number;
5334
5389
  schemaVersion: number;
5335
5390
  };
5336
- schemaVersion: 1;
5391
+ timestamp: number;
5337
5392
  eventId: string;
5338
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5393
+ schemaVersion: 1;
5394
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5339
5395
  payloadHash?: string | undefined;
5340
5396
  }>, z.ZodObject<{
5341
5397
  type: z.ZodLiteral<"cancelRequested">;
@@ -5372,7 +5428,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5372
5428
  by: z.ZodString;
5373
5429
  }, "strip", z.ZodTypeAny, {
5374
5430
  reason: string;
5375
- by: string;
5376
5431
  target: {
5377
5432
  kind: "run";
5378
5433
  runId: string;
@@ -5383,9 +5438,9 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5383
5438
  kind: "activity";
5384
5439
  activityId: string;
5385
5440
  };
5441
+ by: string;
5386
5442
  }, {
5387
5443
  reason: string;
5388
- by: string;
5389
5444
  target: {
5390
5445
  kind: "run";
5391
5446
  runId: string;
@@ -5396,6 +5451,7 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5396
5451
  kind: "activity";
5397
5452
  activityId: string;
5398
5453
  };
5454
+ by: string;
5399
5455
  }>, z.ZodObject<{
5400
5456
  ref: z.ZodString;
5401
5457
  bytes: z.ZodNumber;
@@ -5418,10 +5474,8 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5418
5474
  }, "strip", z.ZodTypeAny, {
5419
5475
  type: "cancelRequested";
5420
5476
  runId: string;
5421
- timestamp: number;
5422
5477
  payload: {
5423
5478
  reason: string;
5424
- by: string;
5425
5479
  target: {
5426
5480
  kind: "run";
5427
5481
  runId: string;
@@ -5432,22 +5486,22 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5432
5486
  kind: "activity";
5433
5487
  activityId: string;
5434
5488
  };
5489
+ by: string;
5435
5490
  } | {
5436
5491
  ref: string;
5437
5492
  bytes: number;
5438
5493
  schemaVersion: number;
5439
5494
  };
5440
- schemaVersion: 1;
5495
+ timestamp: number;
5441
5496
  eventId: string;
5442
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5497
+ schemaVersion: 1;
5498
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5443
5499
  payloadHash?: string | undefined;
5444
5500
  }, {
5445
5501
  type: "cancelRequested";
5446
5502
  runId: string;
5447
- timestamp: number;
5448
5503
  payload: {
5449
5504
  reason: string;
5450
- by: string;
5451
5505
  target: {
5452
5506
  kind: "run";
5453
5507
  runId: string;
@@ -5458,14 +5512,16 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5458
5512
  kind: "activity";
5459
5513
  activityId: string;
5460
5514
  };
5515
+ by: string;
5461
5516
  } | {
5462
5517
  ref: string;
5463
5518
  bytes: number;
5464
5519
  schemaVersion: number;
5465
5520
  };
5466
- schemaVersion: 1;
5521
+ timestamp: number;
5467
5522
  eventId: string;
5468
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5523
+ schemaVersion: 1;
5524
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5469
5525
  payloadHash?: string | undefined;
5470
5526
  }>, z.ZodObject<{
5471
5527
  type: z.ZodLiteral<"cancelDelivered">;
@@ -5500,7 +5556,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5500
5556
  }>]>;
5501
5557
  activityId: z.ZodString;
5502
5558
  }, "strip", z.ZodTypeAny, {
5503
- activityId: string;
5504
5559
  target: {
5505
5560
  kind: "run";
5506
5561
  runId: string;
@@ -5511,8 +5566,8 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5511
5566
  kind: "activity";
5512
5567
  activityId: string;
5513
5568
  };
5514
- }, {
5515
5569
  activityId: string;
5570
+ }, {
5516
5571
  target: {
5517
5572
  kind: "run";
5518
5573
  runId: string;
@@ -5523,6 +5578,7 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5523
5578
  kind: "activity";
5524
5579
  activityId: string;
5525
5580
  };
5581
+ activityId: string;
5526
5582
  }>, z.ZodObject<{
5527
5583
  ref: z.ZodString;
5528
5584
  bytes: z.ZodNumber;
@@ -5545,9 +5601,7 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5545
5601
  }, "strip", z.ZodTypeAny, {
5546
5602
  type: "cancelDelivered";
5547
5603
  runId: string;
5548
- timestamp: number;
5549
5604
  payload: {
5550
- activityId: string;
5551
5605
  target: {
5552
5606
  kind: "run";
5553
5607
  runId: string;
@@ -5558,21 +5612,21 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5558
5612
  kind: "activity";
5559
5613
  activityId: string;
5560
5614
  };
5615
+ activityId: string;
5561
5616
  } | {
5562
5617
  ref: string;
5563
5618
  bytes: number;
5564
5619
  schemaVersion: number;
5565
5620
  };
5566
- schemaVersion: 1;
5621
+ timestamp: number;
5567
5622
  eventId: string;
5568
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5623
+ schemaVersion: 1;
5624
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5569
5625
  payloadHash?: string | undefined;
5570
5626
  }, {
5571
5627
  type: "cancelDelivered";
5572
5628
  runId: string;
5573
- timestamp: number;
5574
5629
  payload: {
5575
- activityId: string;
5576
5630
  target: {
5577
5631
  kind: "run";
5578
5632
  runId: string;
@@ -5583,14 +5637,16 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5583
5637
  kind: "activity";
5584
5638
  activityId: string;
5585
5639
  };
5640
+ activityId: string;
5586
5641
  } | {
5587
5642
  ref: string;
5588
5643
  bytes: number;
5589
5644
  schemaVersion: number;
5590
5645
  };
5591
- schemaVersion: 1;
5646
+ timestamp: number;
5592
5647
  eventId: string;
5593
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5648
+ schemaVersion: 1;
5649
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5594
5650
  payloadHash?: string | undefined;
5595
5651
  }>, z.ZodObject<{
5596
5652
  type: z.ZodLiteral<"activityCanceled">;
@@ -5628,7 +5684,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5628
5684
  }, "strip", z.ZodTypeAny, {
5629
5685
  type: "activityCanceled";
5630
5686
  runId: string;
5631
- timestamp: number;
5632
5687
  payload: {
5633
5688
  attemptId: string;
5634
5689
  activityId: string;
@@ -5638,14 +5693,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5638
5693
  bytes: number;
5639
5694
  schemaVersion: number;
5640
5695
  };
5641
- schemaVersion: 1;
5696
+ timestamp: number;
5642
5697
  eventId: string;
5643
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5698
+ schemaVersion: 1;
5699
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5644
5700
  payloadHash?: string | undefined;
5645
5701
  }, {
5646
5702
  type: "activityCanceled";
5647
5703
  runId: string;
5648
- timestamp: number;
5649
5704
  payload: {
5650
5705
  attemptId: string;
5651
5706
  activityId: string;
@@ -5655,9 +5710,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5655
5710
  bytes: number;
5656
5711
  schemaVersion: number;
5657
5712
  };
5658
- schemaVersion: 1;
5713
+ timestamp: number;
5659
5714
  eventId: string;
5660
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5715
+ schemaVersion: 1;
5716
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5661
5717
  payloadHash?: string | undefined;
5662
5718
  }>, z.ZodObject<{
5663
5719
  type: z.ZodLiteral<"workerLost">;
@@ -5692,7 +5748,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5692
5748
  }, "strip", z.ZodTypeAny, {
5693
5749
  type: "workerLost";
5694
5750
  runId: string;
5695
- timestamp: number;
5696
5751
  payload: {
5697
5752
  workerId: string;
5698
5753
  lostActivityIds: string[];
@@ -5701,14 +5756,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5701
5756
  bytes: number;
5702
5757
  schemaVersion: number;
5703
5758
  };
5704
- schemaVersion: 1;
5759
+ timestamp: number;
5705
5760
  eventId: string;
5706
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5761
+ schemaVersion: 1;
5762
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5707
5763
  payloadHash?: string | undefined;
5708
5764
  }, {
5709
5765
  type: "workerLost";
5710
5766
  runId: string;
5711
- timestamp: number;
5712
5767
  payload: {
5713
5768
  workerId: string;
5714
5769
  lostActivityIds: string[];
@@ -5717,9 +5772,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5717
5772
  bytes: number;
5718
5773
  schemaVersion: number;
5719
5774
  };
5720
- schemaVersion: 1;
5775
+ timestamp: number;
5721
5776
  eventId: string;
5722
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5777
+ schemaVersion: 1;
5778
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5723
5779
  payloadHash?: string | undefined;
5724
5780
  }>, z.ZodObject<{
5725
5781
  type: z.ZodLiteral<"resumeStarted">;
@@ -5754,7 +5810,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5754
5810
  }, "strip", z.ZodTypeAny, {
5755
5811
  type: "resumeStarted";
5756
5812
  runId: string;
5757
- timestamp: number;
5758
5813
  payload: {
5759
5814
  daemonId: string;
5760
5815
  lastSeenEventId: string;
@@ -5763,14 +5818,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5763
5818
  bytes: number;
5764
5819
  schemaVersion: number;
5765
5820
  };
5766
- schemaVersion: 1;
5821
+ timestamp: number;
5767
5822
  eventId: string;
5768
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5823
+ schemaVersion: 1;
5824
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5769
5825
  payloadHash?: string | undefined;
5770
5826
  }, {
5771
5827
  type: "resumeStarted";
5772
5828
  runId: string;
5773
- timestamp: number;
5774
5829
  payload: {
5775
5830
  daemonId: string;
5776
5831
  lastSeenEventId: string;
@@ -5779,9 +5834,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5779
5834
  bytes: number;
5780
5835
  schemaVersion: number;
5781
5836
  };
5782
- schemaVersion: 1;
5837
+ timestamp: number;
5783
5838
  eventId: string;
5784
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5839
+ schemaVersion: 1;
5840
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5785
5841
  payloadHash?: string | undefined;
5786
5842
  }>, z.ZodObject<{
5787
5843
  type: z.ZodLiteral<"reconcileResult">;
@@ -5794,15 +5850,15 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5794
5850
  }, "strip", z.ZodTypeAny, {
5795
5851
  capability: "none" | "readOnlyLookup" | "idempotentSubmit";
5796
5852
  decision: "manual" | "replayed" | "completedByIdempotentSubmit" | "freshRetry";
5853
+ evidence: Record<string, unknown>;
5797
5854
  activityId: string;
5798
5855
  idempotencyKey: string;
5799
- evidence: Record<string, unknown>;
5800
5856
  }, {
5801
5857
  capability: "none" | "readOnlyLookup" | "idempotentSubmit";
5802
5858
  decision: "manual" | "replayed" | "completedByIdempotentSubmit" | "freshRetry";
5859
+ evidence: Record<string, unknown>;
5803
5860
  activityId: string;
5804
5861
  idempotencyKey: string;
5805
- evidence: Record<string, unknown>;
5806
5862
  }>, z.ZodObject<{
5807
5863
  ref: z.ZodString;
5808
5864
  bytes: z.ZodNumber;
@@ -5825,40 +5881,40 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5825
5881
  }, "strip", z.ZodTypeAny, {
5826
5882
  type: "reconcileResult";
5827
5883
  runId: string;
5828
- timestamp: number;
5829
5884
  payload: {
5830
5885
  capability: "none" | "readOnlyLookup" | "idempotentSubmit";
5831
5886
  decision: "manual" | "replayed" | "completedByIdempotentSubmit" | "freshRetry";
5887
+ evidence: Record<string, unknown>;
5832
5888
  activityId: string;
5833
5889
  idempotencyKey: string;
5834
- evidence: Record<string, unknown>;
5835
5890
  } | {
5836
5891
  ref: string;
5837
5892
  bytes: number;
5838
5893
  schemaVersion: number;
5839
5894
  };
5840
- schemaVersion: 1;
5895
+ timestamp: number;
5841
5896
  eventId: string;
5842
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5897
+ schemaVersion: 1;
5898
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5843
5899
  payloadHash?: string | undefined;
5844
5900
  }, {
5845
5901
  type: "reconcileResult";
5846
5902
  runId: string;
5847
- timestamp: number;
5848
5903
  payload: {
5849
5904
  capability: "none" | "readOnlyLookup" | "idempotentSubmit";
5850
5905
  decision: "manual" | "replayed" | "completedByIdempotentSubmit" | "freshRetry";
5906
+ evidence: Record<string, unknown>;
5851
5907
  activityId: string;
5852
5908
  idempotencyKey: string;
5853
- evidence: Record<string, unknown>;
5854
5909
  } | {
5855
5910
  ref: string;
5856
5911
  bytes: number;
5857
5912
  schemaVersion: number;
5858
5913
  };
5859
- schemaVersion: 1;
5914
+ timestamp: number;
5860
5915
  eventId: string;
5861
- actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5916
+ schemaVersion: 1;
5917
+ actor: "worker" | "human" | "system" | "scheduler" | "hostExecutor" | "supervisor";
5862
5918
  payloadHash?: string | undefined;
5863
5919
  }>]>;
5864
5920
  export type WorkflowEvent = z.infer<typeof EventSchema>;