@hatchet-dev/typescript-sdk 1.13.1 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (597) hide show
  1. package/docs/doc_types.d.ts +12 -0
  2. package/docs/doc_types.js +62 -0
  3. package/docs/generate.js +87 -0
  4. package/docs/paths.d.ts +2 -0
  5. package/docs/paths.js +16 -0
  6. package/docs/shared.d.ts +3 -0
  7. package/docs/shared.js +6 -0
  8. package/package.json +5 -4
  9. package/{clients → src/clients}/admin/admin-client.d.ts +17 -9
  10. package/{clients → src/clients}/admin/admin-client.js +26 -10
  11. package/{clients → src/clients}/dispatcher/action-listener.d.ts +4 -4
  12. package/{clients → src/clients}/dispatcher/action-listener.js +3 -3
  13. package/{clients → src/clients}/dispatcher/dispatcher-client.d.ts +10 -10
  14. package/{clients → src/clients}/dispatcher/dispatcher-client.js +5 -5
  15. package/{clients → src/clients}/dispatcher/heartbeat/heartbeat-controller.d.ts +2 -2
  16. package/{clients → src/clients}/dispatcher/heartbeat/heartbeat-controller.js +14 -2
  17. package/{clients → src/clients}/dispatcher/heartbeat/heartbeat-worker.js +7 -6
  18. package/{clients → src/clients}/event/event-client.d.ts +8 -9
  19. package/{clients → src/clients}/event/event-client.js +6 -6
  20. package/{clients → src/clients}/hatchet-client/client-config.d.ts +17 -7
  21. package/{clients → src/clients}/hatchet-client/client-config.js +3 -0
  22. package/{clients → src/clients}/hatchet-client/hatchet-logger.d.ts +1 -1
  23. package/{clients → src/clients}/hatchet-client/hatchet-logger.js +2 -1
  24. package/src/clients/hatchet-client/index.d.ts +3 -0
  25. package/{clients → src/clients}/hatchet-client/index.js +2 -2
  26. package/{clients → src/clients}/listeners/durable-listener/durable-listener-client.d.ts +11 -5
  27. package/{clients → src/clients}/listeners/durable-listener/durable-listener-client.js +9 -1
  28. package/{clients → src/clients}/listeners/durable-listener/pooled-durable-listener-client.d.ts +11 -4
  29. package/{clients → src/clients}/listeners/durable-listener/pooled-durable-listener-client.js +68 -16
  30. package/{clients → src/clients}/listeners/run-listener/child-listener-client.d.ts +3 -3
  31. package/{clients → src/clients}/listeners/run-listener/child-listener-client.js +4 -3
  32. package/{clients → src/clients}/listeners/run-listener/pooled-child-listener-client.d.ts +11 -3
  33. package/{clients → src/clients}/listeners/run-listener/pooled-child-listener-client.js +65 -9
  34. package/src/clients/rest/api.js +21 -0
  35. package/{clients → src/clients}/rest/generated/Api.d.ts +2 -2
  36. package/{clients → src/clients}/rest/generated/data-contracts.d.ts +6 -0
  37. package/{index.d.ts → src/index.d.ts} +3 -4
  38. package/{index.js → src/index.js} +3 -4
  39. package/{examples → src/legacy/examples}/affinity-workers.js +2 -2
  40. package/{examples → src/legacy/examples}/bulk-fanout-trigger.js +1 -1
  41. package/{examples → src/legacy/examples}/bulk-fanout-worker.js +1 -1
  42. package/{examples → src/legacy/examples}/bulk-trigger.js +1 -1
  43. package/{examples → src/legacy/examples}/concurrency/cancel-in-progress/concurrency-event.js +1 -1
  44. package/{examples → src/legacy/examples}/concurrency/cancel-in-progress/concurrency-worker.js +1 -1
  45. package/{examples → src/legacy/examples}/concurrency/group-round-robin/concurrency-event.js +1 -1
  46. package/{examples → src/legacy/examples}/concurrency/group-round-robin/concurrency-worker-expression.js +2 -2
  47. package/{examples → src/legacy/examples}/concurrency/group-round-robin/concurrency-worker-key-fn.js +2 -2
  48. package/{examples → src/legacy/examples}/crons/cron-worker.d.ts +1 -1
  49. package/{examples → src/legacy/examples}/crons/cron-worker.js +1 -1
  50. package/{examples → src/legacy/examples}/crons/programatic-crons.js +1 -1
  51. package/{examples → src/legacy/examples}/dag-worker.js +1 -1
  52. package/{examples → src/legacy/examples}/example-event-with-results.js +2 -2
  53. package/{examples → src/legacy/examples}/example-event.js +1 -1
  54. package/{examples → src/legacy/examples}/fanout-worker.js +1 -1
  55. package/{examples → src/legacy/examples}/logger.js +1 -1
  56. package/{examples → src/legacy/examples}/manual-trigger.js +1 -1
  57. package/{examples → src/legacy/examples}/multi-workflow.js +1 -1
  58. package/{examples → src/legacy/examples}/namespaced-worker.js +1 -1
  59. package/{examples → src/legacy/examples}/on-failure.js +1 -1
  60. package/{examples → src/legacy/examples}/rate-limit/events.js +1 -1
  61. package/{examples → src/legacy/examples}/rate-limit/worker.js +2 -2
  62. package/{examples → src/legacy/examples}/retries-with-backoff.js +1 -1
  63. package/{examples → src/legacy/examples}/retries-worker.js +1 -1
  64. package/{examples → src/legacy/examples}/scheduled-runs/programatic-schedules.js +1 -1
  65. package/{examples → src/legacy/examples}/simple-worker.d.ts +1 -1
  66. package/{examples → src/legacy/examples}/simple-worker.js +1 -1
  67. package/{examples → src/legacy/examples}/sticky-trigger.js +1 -1
  68. package/{examples → src/legacy/examples}/sticky-worker-with-check.js +2 -2
  69. package/{examples → src/legacy/examples}/sticky-worker.js +2 -2
  70. package/{examples → src/legacy/examples}/stream-by-additional-meta.js +2 -2
  71. package/{clients/hatchet-client/hatchet-client.d.ts → src/legacy/legacy-client.d.ts} +8 -13
  72. package/src/legacy/legacy-client.js +67 -0
  73. package/src/legacy/legacy-transformer.d.ts +38 -0
  74. package/src/legacy/legacy-transformer.js +181 -0
  75. package/{step.d.ts → src/legacy/step.d.ts} +30 -31
  76. package/{step.js → src/legacy/step.js} +17 -16
  77. package/{workflow.d.ts → src/legacy/workflow.d.ts} +47 -50
  78. package/{workflow.js → src/legacy/workflow.js} +3 -6
  79. package/{protoc → src/protoc}/v1/workflows.d.ts +8 -0
  80. package/{protoc → src/protoc}/v1/workflows.js +109 -2
  81. package/{protoc → src/protoc}/workflows/workflows.d.ts +9 -0
  82. package/{protoc → src/protoc}/workflows/workflows.js +109 -2
  83. package/src/sdk.d.ts +2 -0
  84. package/{sdk.js → src/sdk.js} +1 -1
  85. package/src/step.d.ts +1 -0
  86. package/{clients/worker/index.js → src/step.js} +4 -1
  87. package/src/util/abort-error.d.ts +38 -0
  88. package/src/util/abort-error.js +58 -0
  89. package/{util → src/util}/config-loader/config-loader.d.ts +1 -1
  90. package/{util → src/util}/config-loader/config-loader.js +1 -1
  91. package/{util → src/util}/grpc-helpers.d.ts +1 -1
  92. package/src/util/hatchet-promise/hatchet-promise.d.ts +13 -0
  93. package/{util → src/util}/hatchet-promise/hatchet-promise.js +3 -2
  94. package/src/util/logger/index.d.ts +2 -0
  95. package/{util → src/util}/logger/index.js +1 -0
  96. package/{util → src/util}/logger/logger.d.ts +1 -1
  97. package/src/util/logger/task-run-log.d.ts +3 -0
  98. package/src/util/logger/task-run-log.js +20 -0
  99. package/{util → src/util}/sleep.d.ts +5 -2
  100. package/src/util/sleep.js +37 -0
  101. package/{util → src/util}/workflow-run-ref.d.ts +9 -3
  102. package/{util → src/util}/workflow-run-ref.js +5 -3
  103. package/{v1 → src/v1}/client/admin.d.ts +24 -8
  104. package/{v1 → src/v1}/client/admin.js +50 -18
  105. package/{v1 → src/v1}/client/client.d.ts +59 -23
  106. package/{v1 → src/v1}/client/client.interface.d.ts +9 -2
  107. package/{v1 → src/v1}/client/client.js +73 -35
  108. package/{v1 → src/v1}/client/features/cel.d.ts +1 -1
  109. package/{v1 → src/v1}/client/features/cel.js +1 -1
  110. package/{v1 → src/v1}/client/features/crons.d.ts +8 -6
  111. package/{v1 → src/v1}/client/features/crons.js +6 -5
  112. package/{v1 → src/v1}/client/features/filters.d.ts +30 -0
  113. package/{v1 → src/v1}/client/features/filters.js +30 -0
  114. package/{v1 → src/v1}/client/features/metrics.d.ts +10 -6
  115. package/{v1 → src/v1}/client/features/metrics.js +10 -6
  116. package/src/v1/client/features/ratelimits.d.ts +30 -0
  117. package/{v1 → src/v1}/client/features/ratelimits.js +13 -3
  118. package/{v1 → src/v1}/client/features/runs.d.ts +43 -8
  119. package/{v1 → src/v1}/client/features/runs.js +38 -3
  120. package/{v1 → src/v1}/client/features/schedules.d.ts +7 -4
  121. package/{v1 → src/v1}/client/features/schedules.js +7 -5
  122. package/{v1 → src/v1}/client/features/tenant.d.ts +4 -1
  123. package/src/v1/client/features/webhooks.d.ts +54 -0
  124. package/{v1 → src/v1}/client/features/webhooks.js +31 -5
  125. package/src/v1/client/features/workers.d.ts +38 -0
  126. package/{v1 → src/v1}/client/features/workers.js +25 -1
  127. package/src/v1/client/features/workflows.d.ts +42 -0
  128. package/{v1 → src/v1}/client/features/workflows.js +27 -10
  129. package/{v1 → src/v1}/client/worker/context.d.ts +78 -18
  130. package/{v1 → src/v1}/client/worker/context.js +120 -27
  131. package/{v1 → src/v1}/client/worker/deprecated/deprecation.d.ts +1 -1
  132. package/{v1 → src/v1}/client/worker/deprecated/legacy-registration.d.ts +2 -2
  133. package/{v1 → src/v1}/client/worker/deprecated/legacy-registration.js +2 -2
  134. package/{v1 → src/v1}/client/worker/deprecated/legacy-v1-worker.d.ts +5 -5
  135. package/{v1 → src/v1}/client/worker/deprecated/legacy-v1-worker.js +2 -2
  136. package/{v1 → src/v1}/client/worker/deprecated/legacy-worker.js +9 -7
  137. package/{v1 → src/v1}/client/worker/health-server.d.ts +1 -1
  138. package/{v1 → src/v1}/client/worker/slot-utils.d.ts +3 -3
  139. package/{v1 → src/v1}/client/worker/worker-internal.d.ts +13 -22
  140. package/{v1 → src/v1}/client/worker/worker-internal.js +232 -216
  141. package/{v1 → src/v1}/client/worker/worker.d.ts +19 -19
  142. package/{v1 → src/v1}/client/worker/worker.js +45 -30
  143. package/{v1 → src/v1}/conditions/transformer.d.ts +1 -1
  144. package/{v1 → src/v1}/declaration.d.ts +120 -15
  145. package/{v1 → src/v1}/declaration.js +118 -10
  146. package/src/v1/examples/__e2e__/harness.d.ts +19 -0
  147. package/src/v1/examples/__e2e__/harness.js +70 -0
  148. package/{v1 → src/v1}/examples/affinity/affinity-workers.js +4 -4
  149. package/src/v1/examples/bulk_fanout/workflow.d.ts +9 -0
  150. package/src/v1/examples/bulk_fanout/workflow.js +34 -0
  151. package/src/v1/examples/bulk_operations/workflow.d.ts +3 -0
  152. package/src/v1/examples/bulk_operations/workflow.js +44 -0
  153. package/src/v1/examples/cancellation/cancellation-workflow.d.ts +2 -0
  154. package/src/v1/examples/cancellation/cancellation-workflow.js +69 -0
  155. package/src/v1/examples/cancellation/run.js +53 -0
  156. package/src/v1/examples/cancellation/worker.js +29 -0
  157. package/{v1 → src/v1}/examples/cancellations/run.js +1 -1
  158. package/{v1 → src/v1}/examples/cancellations/workflow.js +1 -1
  159. package/{v1 → src/v1}/examples/concurrency-rr/workflow.js +1 -1
  160. package/src/v1/examples/concurrency-types.d.ts +5 -0
  161. package/src/v1/examples/concurrency_cancel_in_progress/workflow.d.ts +9 -0
  162. package/src/v1/examples/concurrency_cancel_in_progress/workflow.js +45 -0
  163. package/src/v1/examples/concurrency_cancel_newest/workflow.d.ts +9 -0
  164. package/src/v1/examples/concurrency_cancel_newest/workflow.js +45 -0
  165. package/src/v1/examples/concurrency_limit_rr/load.js +54 -0
  166. package/src/v1/examples/concurrency_limit_rr/run.js +39 -0
  167. package/src/v1/examples/concurrency_limit_rr/worker.js +24 -0
  168. package/src/v1/examples/concurrency_limit_rr/workflow.d.ts +12 -0
  169. package/src/v1/examples/concurrency_limit_rr/workflow.js +62 -0
  170. package/src/v1/examples/concurrency_multiple_keys/workflow.d.ts +12 -0
  171. package/src/v1/examples/concurrency_multiple_keys/workflow.js +42 -0
  172. package/src/v1/examples/concurrency_workflow_level/workflow.d.ts +13 -0
  173. package/src/v1/examples/concurrency_workflow_level/workflow.js +49 -0
  174. package/{v1/examples/dag_match_condition → src/v1/examples/conditions}/complex-workflow.js +2 -2
  175. package/{v1/examples/dag_match_condition → src/v1/examples/conditions}/workflow.js +2 -2
  176. package/{v1 → src/v1}/examples/dag/interface-workflow.d.ts +2 -2
  177. package/src/v1/examples/dag_match_condition/complex-workflow.d.ts +1 -0
  178. package/src/v1/examples/dag_match_condition/complex-workflow.js +107 -0
  179. package/src/v1/examples/dag_match_condition/run.js +25 -0
  180. package/src/v1/examples/dag_match_condition/worker.js +24 -0
  181. package/src/v1/examples/dag_match_condition/workflow.d.ts +11 -0
  182. package/src/v1/examples/dag_match_condition/workflow.js +41 -0
  183. package/{v1 → src/v1}/examples/deep/workflow.js +1 -1
  184. package/src/v1/examples/durable/workflow.d.ts +7 -0
  185. package/src/v1/examples/durable/workflow.js +116 -0
  186. package/{v1 → src/v1}/examples/durable-event/workflow.js +1 -1
  187. package/src/v1/examples/durable-sleep/event.js +28 -0
  188. package/{v1 → src/v1}/examples/durable-sleep/workflow.js +1 -1
  189. package/src/v1/examples/durable_event/event.js +28 -0
  190. package/src/v1/examples/durable_event/run.js +30 -0
  191. package/src/v1/examples/durable_event/worker.js +24 -0
  192. package/src/v1/examples/durable_event/workflow.d.ts +6 -0
  193. package/src/v1/examples/durable_event/workflow.js +46 -0
  194. package/src/v1/examples/durable_sleep/event.js +28 -0
  195. package/src/v1/examples/durable_sleep/run.js +30 -0
  196. package/src/v1/examples/durable_sleep/worker.js +24 -0
  197. package/src/v1/examples/durable_sleep/workflow.d.ts +1 -0
  198. package/src/v1/examples/durable_sleep/workflow.js +31 -0
  199. package/src/v1/examples/e2e-worker.js +82 -0
  200. package/src/v1/examples/events/filter.js +32 -0
  201. package/{v1 → src/v1}/examples/hatchet-client.d.ts +1 -1
  202. package/{v1 → src/v1}/examples/hatchet-client.js +1 -1
  203. package/{v1 → src/v1}/examples/high-memory/workflow-with-child.js +1 -1
  204. package/{v1 → src/v1}/examples/landing_page/durable-excution.js +1 -1
  205. package/{v1 → src/v1}/examples/landing_page/flow-control.js +1 -1
  206. package/src/v1/examples/legacy/workflow.d.ts +2 -0
  207. package/{examples → src/v1/examples/logger}/byo-logger.js +1 -1
  208. package/src/v1/examples/logger/workflow.d.ts +2 -0
  209. package/src/v1/examples/logger/workflow.js +38 -0
  210. package/src/v1/examples/logging/byo-logger.js +73 -0
  211. package/src/v1/examples/logging/logger.js +46 -0
  212. package/{v1 → src/v1}/examples/middleware/client.d.ts +1 -1
  213. package/{v1 → src/v1}/examples/middleware/client.js +1 -1
  214. package/{v1 → src/v1}/examples/middleware/recipes.js +1 -1
  215. package/{v1 → src/v1}/examples/migration-guides/hatchet-client.d.ts +1 -1
  216. package/{v1 → src/v1}/examples/migration-guides/hatchet-client.js +1 -1
  217. package/{v1 → src/v1}/examples/multiple_wf_concurrency/workflow.d.ts +1 -1
  218. package/{v1 → src/v1}/examples/multiple_wf_concurrency/workflow.js +3 -3
  219. package/{v1 → src/v1}/examples/non_retryable/workflow.js +1 -1
  220. package/src/v1/examples/on_event/event.js +53 -0
  221. package/src/v1/examples/on_event/worker.js +24 -0
  222. package/src/v1/examples/on_event/workflow.d.ts +19 -0
  223. package/src/v1/examples/on_event/workflow.js +60 -0
  224. package/{v1 → src/v1}/examples/on_failure/workflow.d.ts +1 -0
  225. package/{v1 → src/v1}/examples/on_failure/workflow.js +12 -7
  226. package/{v1 → src/v1}/examples/priority/run.js +1 -1
  227. package/src/v1/examples/priority/workflow.d.ts +8 -0
  228. package/{v1 → src/v1}/examples/priority/workflow.js +2 -2
  229. package/{v1 → src/v1}/examples/quickstart/hatchet-client.d.ts +1 -1
  230. package/{v1 → src/v1}/examples/quickstart/hatchet-client.js +1 -1
  231. package/src/v1/examples/quickstart/run.d.ts +1 -0
  232. package/src/v1/examples/quickstart/worker.d.ts +1 -0
  233. package/src/v1/examples/rate_limit/workflow.d.ts +1 -0
  234. package/{v1 → src/v1}/examples/rate_limit/workflow.js +1 -1
  235. package/src/v1/examples/retries/run.d.ts +1 -0
  236. package/src/v1/examples/retries/worker.d.ts +1 -0
  237. package/{v1 → src/v1}/examples/retries/workflow.js +2 -2
  238. package/src/v1/examples/return_exceptions/workflow.d.ts +6 -0
  239. package/src/v1/examples/return_exceptions/workflow.js +22 -0
  240. package/src/v1/examples/run_details/workflow.d.ts +4 -0
  241. package/src/v1/examples/run_details/workflow.js +65 -0
  242. package/src/v1/examples/runtime_affinity/workflow.d.ts +3 -0
  243. package/src/v1/examples/runtime_affinity/workflow.js +19 -0
  244. package/src/v1/examples/simple/bulk.d.ts +1 -0
  245. package/src/v1/examples/simple/client-run.d.ts +1 -0
  246. package/src/v1/examples/simple/cron.d.ts +1 -0
  247. package/src/v1/examples/simple/delay.d.ts +1 -0
  248. package/src/v1/examples/simple/e2e-workflows.d.ts +14 -0
  249. package/src/v1/examples/simple/e2e-workflows.js +27 -0
  250. package/src/v1/examples/simple/enqueue.d.ts +1 -0
  251. package/{v1 → src/v1}/examples/simple/enqueue.js +2 -2
  252. package/src/v1/examples/simple/replay-cancel.d.ts +1 -0
  253. package/{v1 → src/v1}/examples/simple/replay-cancel.js +1 -1
  254. package/src/v1/examples/simple/schedule.d.ts +1 -0
  255. package/src/v1/examples/simple/typed-run-methods.d.ts +1 -0
  256. package/src/v1/examples/simple/worker.d.ts +1 -0
  257. package/src/v1/examples/sticky/run.d.ts +1 -0
  258. package/src/v1/examples/sticky/worker.d.ts +1 -0
  259. package/src/v1/examples/sticky/workflow.d.ts +5 -0
  260. package/{v1 → src/v1}/examples/sticky/workflow.js +2 -2
  261. package/src/v1/examples/streaming/run.d.ts +1 -0
  262. package/src/v1/examples/streaming/worker.d.ts +1 -0
  263. package/src/v1/examples/timeout/run.d.ts +1 -0
  264. package/src/v1/examples/timeout/run.js +30 -0
  265. package/src/v1/examples/timeout/worker.d.ts +1 -0
  266. package/src/v1/examples/timeout/worker.js +25 -0
  267. package/src/v1/examples/timeout/workflow.d.ts +10 -0
  268. package/src/v1/examples/timeout/workflow.js +56 -0
  269. package/src/v1/examples/timeouts/run.d.ts +1 -0
  270. package/src/v1/examples/timeouts/worker.d.ts +1 -0
  271. package/{v1 → src/v1}/examples/timeouts/workflow.js +1 -1
  272. package/src/v1/examples/webhooks/workflow.d.ts +5 -0
  273. package/src/v1/examples/webhooks/workflow.js +23 -0
  274. package/{v1 → src/v1}/examples/with_timeouts/workflow.js +1 -1
  275. package/{v1 → src/v1}/index.d.ts +1 -0
  276. package/{v1 → src/v1}/index.js +1 -0
  277. package/{v1 → src/v1}/parent-run-context-vars.d.ts +6 -0
  278. package/{v1 → src/v1}/parent-run-context-vars.js +3 -0
  279. package/{v1 → src/v1}/task.d.ts +22 -7
  280. package/src/v1/task.js +14 -0
  281. package/{v1 → src/v1}/types.d.ts +1 -1
  282. package/src/v1/types.js +2 -0
  283. package/src/version.d.ts +1 -0
  284. package/{version.js → src/version.js} +1 -1
  285. package/src/workflow.d.ts +3 -0
  286. package/src/workflow.js +25 -0
  287. package/clients/hatchet-client/hatchet-client.js +0 -108
  288. package/clients/hatchet-client/index.d.ts +0 -3
  289. package/clients/rest/api.js +0 -13
  290. package/clients/worker/handler.d.ts +0 -50
  291. package/clients/worker/handler.js +0 -214
  292. package/clients/worker/index.d.ts +0 -1
  293. package/clients/worker/worker.d.ts +0 -59
  294. package/clients/worker/worker.js +0 -568
  295. package/examples/webhooks.js +0 -45
  296. package/sdk.d.ts +0 -2
  297. package/util/hatchet-promise/hatchet-promise.d.ts +0 -6
  298. package/util/logger/index.d.ts +0 -1
  299. package/util/sleep.js +0 -14
  300. package/v1/client/features/ratelimits.d.ts +0 -20
  301. package/v1/client/features/webhooks.d.ts +0 -28
  302. package/v1/client/features/workers.d.ts +0 -14
  303. package/v1/client/features/workflows.d.ts +0 -24
  304. package/v1/examples/legacy/workflow.d.ts +0 -2
  305. package/v1/examples/priority/workflow.d.ts +0 -8
  306. package/v1/examples/sticky/workflow.d.ts +0 -5
  307. package/v1/task.js +0 -11
  308. package/version.d.ts +0 -1
  309. /package/{clients/dispatcher/heartbeat/heartbeat-worker.d.ts → docs/generate.d.ts} +0 -0
  310. /package/{clients → src/clients}/admin/index.d.ts +0 -0
  311. /package/{clients → src/clients}/admin/index.js +0 -0
  312. /package/{examples/affinity-workers.d.ts → src/clients/dispatcher/heartbeat/heartbeat-worker.d.ts} +0 -0
  313. /package/{clients → src/clients}/rest/api.d.ts +0 -0
  314. /package/{clients → src/clients}/rest/generated/Api.js +0 -0
  315. /package/{clients → src/clients}/rest/generated/data-contracts.js +0 -0
  316. /package/{clients → src/clients}/rest/generated/http-client.d.ts +0 -0
  317. /package/{clients → src/clients}/rest/generated/http-client.js +0 -0
  318. /package/{clients → src/clients}/rest/index.d.ts +0 -0
  319. /package/{clients → src/clients}/rest/index.js +0 -0
  320. /package/{v1/examples/affinity → src/legacy/examples}/affinity-workers.d.ts +0 -0
  321. /package/{examples → src/legacy/examples}/bulk-fanout-trigger.d.ts +0 -0
  322. /package/{examples → src/legacy/examples}/bulk-fanout-worker.d.ts +0 -0
  323. /package/{examples → src/legacy/examples}/bulk-trigger.d.ts +0 -0
  324. /package/{examples → src/legacy/examples}/byo-logger.d.ts +0 -0
  325. /package/{v1/examples/logging → src/legacy/examples}/byo-logger.js +0 -0
  326. /package/{examples → src/legacy/examples}/concurrency/cancel-in-progress/concurrency-event.d.ts +0 -0
  327. /package/{examples → src/legacy/examples}/concurrency/cancel-in-progress/concurrency-worker.d.ts +0 -0
  328. /package/{examples → src/legacy/examples}/concurrency/group-round-robin/concurrency-event.d.ts +0 -0
  329. /package/{examples → src/legacy/examples}/concurrency/group-round-robin/concurrency-worker-expression.d.ts +0 -0
  330. /package/{examples → src/legacy/examples}/concurrency/group-round-robin/concurrency-worker-key-fn.d.ts +0 -0
  331. /package/{examples → src/legacy/examples}/crons/programatic-crons.d.ts +0 -0
  332. /package/{examples → src/legacy/examples}/dag-worker.d.ts +0 -0
  333. /package/{examples → src/legacy/examples}/example-event-with-results.d.ts +0 -0
  334. /package/{examples → src/legacy/examples}/example-event.d.ts +0 -0
  335. /package/{examples → src/legacy/examples}/fanout-worker.d.ts +0 -0
  336. /package/{examples → src/legacy/examples}/logger.d.ts +0 -0
  337. /package/{examples → src/legacy/examples}/manual-trigger.d.ts +0 -0
  338. /package/{examples → src/legacy/examples}/multi-workflow.d.ts +0 -0
  339. /package/{examples → src/legacy/examples}/namespaced-worker.d.ts +0 -0
  340. /package/{examples → src/legacy/examples}/on-failure.d.ts +0 -0
  341. /package/{examples → src/legacy/examples}/rate-limit/events.d.ts +0 -0
  342. /package/{examples → src/legacy/examples}/rate-limit/worker.d.ts +0 -0
  343. /package/{examples → src/legacy/examples}/retries-with-backoff.d.ts +0 -0
  344. /package/{examples → src/legacy/examples}/retries-worker.d.ts +0 -0
  345. /package/{examples → src/legacy/examples}/scheduled-runs/programatic-schedules.d.ts +0 -0
  346. /package/{examples → src/legacy/examples}/sticky-trigger.d.ts +0 -0
  347. /package/{examples → src/legacy/examples}/sticky-worker-with-check.d.ts +0 -0
  348. /package/{examples → src/legacy/examples}/sticky-worker.d.ts +0 -0
  349. /package/{examples → src/legacy/examples}/stream-by-additional-meta.d.ts +0 -0
  350. /package/{protoc → src/protoc}/dispatcher/dispatcher.d.ts +0 -0
  351. /package/{protoc → src/protoc}/dispatcher/dispatcher.js +0 -0
  352. /package/{protoc → src/protoc}/dispatcher/index.d.ts +0 -0
  353. /package/{protoc → src/protoc}/dispatcher/index.js +0 -0
  354. /package/{protoc → src/protoc}/events/events.d.ts +0 -0
  355. /package/{protoc → src/protoc}/events/events.js +0 -0
  356. /package/{protoc → src/protoc}/events/index.d.ts +0 -0
  357. /package/{protoc → src/protoc}/events/index.js +0 -0
  358. /package/{protoc → src/protoc}/google/protobuf/timestamp.d.ts +0 -0
  359. /package/{protoc → src/protoc}/google/protobuf/timestamp.js +0 -0
  360. /package/{protoc → src/protoc}/google/protobuf/wrappers.d.ts +0 -0
  361. /package/{protoc → src/protoc}/google/protobuf/wrappers.js +0 -0
  362. /package/{protoc → src/protoc}/v1/dispatcher.d.ts +0 -0
  363. /package/{protoc → src/protoc}/v1/dispatcher.js +0 -0
  364. /package/{protoc → src/protoc}/v1/shared/condition.d.ts +0 -0
  365. /package/{protoc → src/protoc}/v1/shared/condition.js +0 -0
  366. /package/{protoc → src/protoc}/workflows/index.d.ts +0 -0
  367. /package/{protoc → src/protoc}/workflows/index.js +0 -0
  368. /package/{protoc → src/protoc}/workflows/v1-admin.d.ts +0 -0
  369. /package/{protoc → src/protoc}/workflows/v1-admin.js +0 -0
  370. /package/{util → src/util}/apply-namespace.d.ts +0 -0
  371. /package/{util → src/util}/apply-namespace.js +0 -0
  372. /package/{util → src/util}/batch.d.ts +0 -0
  373. /package/{util → src/util}/batch.js +0 -0
  374. /package/{util → src/util}/config-loader/index.d.ts +0 -0
  375. /package/{util → src/util}/config-loader/index.js +0 -0
  376. /package/{util → src/util}/config-loader/token.d.ts +0 -0
  377. /package/{util → src/util}/config-loader/token.js +0 -0
  378. /package/{util → src/util}/errors/hatchet-error.d.ts +0 -0
  379. /package/{util → src/util}/errors/hatchet-error.js +0 -0
  380. /package/{util → src/util}/grpc-helpers.js +0 -0
  381. /package/{util → src/util}/logger/logger.js +0 -0
  382. /package/{util → src/util}/parse.d.ts +0 -0
  383. /package/{util → src/util}/parse.js +0 -0
  384. /package/{util → src/util}/retrier.d.ts +0 -0
  385. /package/{util → src/util}/retrier.js +0 -0
  386. /package/{util → src/util}/thread-helper.d.ts +0 -0
  387. /package/{util → src/util}/thread-helper.js +0 -0
  388. /package/{util → src/util}/uuid.d.ts +0 -0
  389. /package/{util → src/util}/uuid.js +0 -0
  390. /package/{v1 → src/v1}/client/client.interface.js +0 -0
  391. /package/{v1 → src/v1}/client/duration.d.ts +0 -0
  392. /package/{v1 → src/v1}/client/duration.js +0 -0
  393. /package/{v1 → src/v1}/client/features/index.d.ts +0 -0
  394. /package/{v1 → src/v1}/client/features/index.js +0 -0
  395. /package/{v1 → src/v1}/client/features/tenant.js +0 -0
  396. /package/{v1 → src/v1}/client/worker/deprecated/deprecation.js +0 -0
  397. /package/{v1 → src/v1}/client/worker/deprecated/index.d.ts +0 -0
  398. /package/{v1 → src/v1}/client/worker/deprecated/index.js +0 -0
  399. /package/{v1 → src/v1}/client/worker/deprecated/legacy-worker.d.ts +0 -0
  400. /package/{v1 → src/v1}/client/worker/health-server.js +0 -0
  401. /package/{v1 → src/v1}/client/worker/slot-utils.js +0 -0
  402. /package/{v1 → src/v1}/conditions/base.d.ts +0 -0
  403. /package/{v1 → src/v1}/conditions/base.js +0 -0
  404. /package/{v1 → src/v1}/conditions/index.d.ts +0 -0
  405. /package/{v1 → src/v1}/conditions/index.js +0 -0
  406. /package/{v1 → src/v1}/conditions/parent-condition.d.ts +0 -0
  407. /package/{v1 → src/v1}/conditions/parent-condition.js +0 -0
  408. /package/{v1 → src/v1}/conditions/sleep-condition.d.ts +0 -0
  409. /package/{v1 → src/v1}/conditions/sleep-condition.js +0 -0
  410. /package/{v1 → src/v1}/conditions/transformer.js +0 -0
  411. /package/{v1 → src/v1}/conditions/user-event-condition.d.ts +0 -0
  412. /package/{v1 → src/v1}/conditions/user-event-condition.js +0 -0
  413. /package/{examples/webhooks.d.ts → src/v1/examples/affinity/affinity-workers.d.ts} +0 -0
  414. /package/{v1/examples/cancellations → src/v1/examples/cancellation}/run.d.ts +0 -0
  415. /package/{v1/examples/cancellations → src/v1/examples/cancellation}/worker.d.ts +0 -0
  416. /package/{v1/examples/child_workflows → src/v1/examples/cancellations}/run.d.ts +0 -0
  417. /package/{v1/examples/child_workflows → src/v1/examples/cancellations}/worker.d.ts +0 -0
  418. /package/{v1 → src/v1}/examples/cancellations/worker.js +0 -0
  419. /package/{v1 → src/v1}/examples/cancellations/workflow.d.ts +0 -0
  420. /package/{v1/examples/concurrency-rr → src/v1/examples/child_workflows}/run.d.ts +0 -0
  421. /package/{v1 → src/v1}/examples/child_workflows/run.js +0 -0
  422. /package/{v1/examples/concurrency-rr → src/v1/examples/child_workflows}/worker.d.ts +0 -0
  423. /package/{v1 → src/v1}/examples/child_workflows/worker.js +0 -0
  424. /package/{v1 → src/v1}/examples/child_workflows/workflow.d.ts +0 -0
  425. /package/{v1 → src/v1}/examples/child_workflows/workflow.js +0 -0
  426. /package/{v1 → src/v1}/examples/concurrency-rr/load.d.ts +0 -0
  427. /package/{v1 → src/v1}/examples/concurrency-rr/load.js +0 -0
  428. /package/{v1/examples/dag → src/v1/examples/concurrency-rr}/run.d.ts +0 -0
  429. /package/{v1 → src/v1}/examples/concurrency-rr/run.js +0 -0
  430. /package/{v1/examples/dag → src/v1/examples/concurrency-rr}/worker.d.ts +0 -0
  431. /package/{v1 → src/v1}/examples/concurrency-rr/worker.js +0 -0
  432. /package/{v1 → src/v1}/examples/concurrency-rr/workflow.d.ts +0 -0
  433. /package/{v1/types.js → src/v1/examples/concurrency-types.js} +0 -0
  434. /package/{v1/examples/dag_match_condition/event.d.ts → src/v1/examples/concurrency_limit_rr/load.d.ts} +0 -0
  435. /package/{v1/examples/dag_match_condition → src/v1/examples/concurrency_limit_rr}/run.d.ts +0 -0
  436. /package/{v1/examples/dag_match_condition → src/v1/examples/concurrency_limit_rr}/worker.d.ts +0 -0
  437. /package/{v1/examples/dag_match_condition → src/v1/examples/conditions}/complex-workflow.d.ts +0 -0
  438. /package/{v1/examples/durable-event → src/v1/examples/conditions}/event.d.ts +0 -0
  439. /package/{v1/examples/dag_match_condition → src/v1/examples/conditions}/event.js +0 -0
  440. /package/{v1/examples/deep → src/v1/examples/conditions}/run.d.ts +0 -0
  441. /package/{v1/examples/dag_match_condition → src/v1/examples/conditions}/run.js +0 -0
  442. /package/{v1/examples/deep → src/v1/examples/conditions}/worker.d.ts +0 -0
  443. /package/{v1/examples/dag_match_condition → src/v1/examples/conditions}/worker.js +0 -0
  444. /package/{v1/examples/dag_match_condition → src/v1/examples/conditions}/workflow.d.ts +0 -0
  445. /package/{v1 → src/v1}/examples/dag/interface-workflow.js +0 -0
  446. /package/{v1/examples/durable-event → src/v1/examples/dag}/run.d.ts +0 -0
  447. /package/{v1 → src/v1}/examples/dag/run.js +0 -0
  448. /package/{v1/examples/durable-event → src/v1/examples/dag}/worker.d.ts +0 -0
  449. /package/{v1 → src/v1}/examples/dag/worker.js +0 -0
  450. /package/{v1 → src/v1}/examples/dag/workflow.d.ts +0 -0
  451. /package/{v1 → src/v1}/examples/dag/workflow.js +0 -0
  452. /package/{v1/examples/durable-sleep → src/v1/examples/dag_match_condition}/event.d.ts +0 -0
  453. /package/{v1/examples/durable-sleep → src/v1/examples/dag_match_condition}/event.js +0 -0
  454. /package/{v1/examples/durable-sleep → src/v1/examples/dag_match_condition}/run.d.ts +0 -0
  455. /package/{v1/examples/durable-sleep → src/v1/examples/dag_match_condition}/worker.d.ts +0 -0
  456. /package/{v1/examples/high-memory → src/v1/examples/deep}/run.d.ts +0 -0
  457. /package/{v1 → src/v1}/examples/deep/run.js +0 -0
  458. /package/{v1/examples/inferred-typing → src/v1/examples/deep}/worker.d.ts +0 -0
  459. /package/{v1 → src/v1}/examples/deep/worker.js +0 -0
  460. /package/{v1 → src/v1}/examples/deep/workflow.d.ts +0 -0
  461. /package/{v1/examples/on_event → src/v1/examples/durable-event}/event.d.ts +0 -0
  462. /package/{v1 → src/v1}/examples/durable-event/event.js +0 -0
  463. /package/{v1/examples/inferred-typing → src/v1/examples/durable-event}/run.d.ts +0 -0
  464. /package/{v1 → src/v1}/examples/durable-event/run.js +0 -0
  465. /package/{v1/examples/legacy → src/v1/examples/durable-event}/worker.d.ts +0 -0
  466. /package/{v1 → src/v1}/examples/durable-event/worker.js +0 -0
  467. /package/{v1 → src/v1}/examples/durable-event/workflow.d.ts +0 -0
  468. /package/{v1/examples/high-memory/child-worker.d.ts → src/v1/examples/durable-sleep/event.d.ts} +0 -0
  469. /package/{v1/examples/legacy → src/v1/examples/durable-sleep}/run.d.ts +0 -0
  470. /package/{v1 → src/v1}/examples/durable-sleep/run.js +0 -0
  471. /package/{v1/examples/middleware → src/v1/examples/durable-sleep}/worker.d.ts +0 -0
  472. /package/{v1 → src/v1}/examples/durable-sleep/worker.js +0 -0
  473. /package/{v1 → src/v1}/examples/durable-sleep/workflow.d.ts +0 -0
  474. /package/{v1/examples/high-memory/parent-worker.d.ts → src/v1/examples/durable_event/event.d.ts} +0 -0
  475. /package/{v1/examples/middleware → src/v1/examples/durable_event}/run.d.ts +0 -0
  476. /package/{v1/examples/multiple_wf_concurrency → src/v1/examples/durable_event}/worker.d.ts +0 -0
  477. /package/{v1/examples/landing_page/scheduling.d.ts → src/v1/examples/durable_sleep/event.d.ts} +0 -0
  478. /package/{v1/examples/multiple_wf_concurrency → src/v1/examples/durable_sleep}/run.d.ts +0 -0
  479. /package/{v1/examples/non_retryable → src/v1/examples/durable_sleep}/worker.d.ts +0 -0
  480. /package/{v1/examples/logging/byo-logger.d.ts → src/v1/examples/e2e-worker.d.ts} +0 -0
  481. /package/{v1/examples/logging/logger.d.ts → src/v1/examples/events/event.d.ts} +0 -0
  482. /package/{v1/examples/on_event → src/v1/examples/events}/event.js +0 -0
  483. /package/{v1/examples/on_event → src/v1/examples/events}/filter.d.ts +0 -0
  484. /package/{v1/examples/on_cron → src/v1/examples/events}/worker.d.ts +0 -0
  485. /package/{v1/examples/on_event → src/v1/examples/events}/worker.js +0 -0
  486. /package/{v1/examples/on_event → src/v1/examples/events}/workflow.d.ts +0 -0
  487. /package/{v1/examples/on_event → src/v1/examples/events}/workflow.js +0 -0
  488. /package/{v1/examples/middleware/recipes.d.ts → src/v1/examples/high-memory/child-worker.d.ts} +0 -0
  489. /package/{v1 → src/v1}/examples/high-memory/child-worker.js +0 -0
  490. /package/{v1/examples/non_retryable/run.d.ts → src/v1/examples/high-memory/parent-worker.d.ts} +0 -0
  491. /package/{v1 → src/v1}/examples/high-memory/parent-worker.js +0 -0
  492. /package/{v1/examples/on_failure → src/v1/examples/high-memory}/run.d.ts +0 -0
  493. /package/{v1 → src/v1}/examples/high-memory/run.js +0 -0
  494. /package/{v1 → src/v1}/examples/high-memory/workflow-with-child.d.ts +0 -0
  495. /package/{v1/examples/on_success → src/v1/examples/inferred-typing}/run.d.ts +0 -0
  496. /package/{v1 → src/v1}/examples/inferred-typing/run.js +0 -0
  497. /package/{v1/examples/on_event → src/v1/examples/inferred-typing}/worker.d.ts +0 -0
  498. /package/{v1 → src/v1}/examples/inferred-typing/worker.js +0 -0
  499. /package/{v1 → src/v1}/examples/inferred-typing/workflow.d.ts +0 -0
  500. /package/{v1 → src/v1}/examples/inferred-typing/workflow.js +0 -0
  501. /package/{v1 → src/v1}/examples/landing_page/durable-excution.d.ts +0 -0
  502. /package/{v1 → src/v1}/examples/landing_page/event-signaling.d.ts +0 -0
  503. /package/{v1 → src/v1}/examples/landing_page/event-signaling.js +0 -0
  504. /package/{v1 → src/v1}/examples/landing_page/flow-control.d.ts +0 -0
  505. /package/{v1 → src/v1}/examples/landing_page/queues.d.ts +0 -0
  506. /package/{v1 → src/v1}/examples/landing_page/queues.js +0 -0
  507. /package/{v1/examples/on_failure/worker.d.ts → src/v1/examples/landing_page/scheduling.d.ts} +0 -0
  508. /package/{v1 → src/v1}/examples/landing_page/scheduling.js +0 -0
  509. /package/{v1 → src/v1}/examples/landing_page/task-routing.d.ts +0 -0
  510. /package/{v1 → src/v1}/examples/landing_page/task-routing.js +0 -0
  511. /package/{v1/examples/priority → src/v1/examples/legacy}/run.d.ts +0 -0
  512. /package/{v1 → src/v1}/examples/legacy/run.js +0 -0
  513. /package/{v1/examples/on_success → src/v1/examples/legacy}/worker.d.ts +0 -0
  514. /package/{v1 → src/v1}/examples/legacy/worker.js +0 -0
  515. /package/{v1 → src/v1}/examples/legacy/workflow.js +0 -0
  516. /package/{v1/examples/priority/worker.d.ts → src/v1/examples/logger/byo-logger.d.ts} +0 -0
  517. /package/{v1/examples/quickstart/run.d.ts → src/v1/examples/logger/logger.d.ts} +0 -0
  518. /package/{v1/examples/logging → src/v1/examples/logger}/logger.js +0 -0
  519. /package/{v1/examples/quickstart/worker.d.ts → src/v1/examples/logging/byo-logger.d.ts} +0 -0
  520. /package/{v1/examples/rate_limit/workflow.d.ts → src/v1/examples/logging/logger.d.ts} +0 -0
  521. /package/{v1/examples/retries/run.d.ts → src/v1/examples/middleware/recipes.d.ts} +0 -0
  522. /package/{v1/examples/sticky → src/v1/examples/middleware}/run.d.ts +0 -0
  523. /package/{v1 → src/v1}/examples/middleware/run.js +0 -0
  524. /package/{v1/examples/retries → src/v1/examples/middleware}/worker.d.ts +0 -0
  525. /package/{v1 → src/v1}/examples/middleware/worker.js +0 -0
  526. /package/{v1 → src/v1}/examples/middleware/workflow.d.ts +0 -0
  527. /package/{v1 → src/v1}/examples/middleware/workflow.js +0 -0
  528. /package/{v1 → src/v1}/examples/migration-guides/mergent.d.ts +0 -0
  529. /package/{v1 → src/v1}/examples/migration-guides/mergent.js +0 -0
  530. /package/{v1/examples/streaming → src/v1/examples/multiple_wf_concurrency}/run.d.ts +0 -0
  531. /package/{v1 → src/v1}/examples/multiple_wf_concurrency/run.js +0 -0
  532. /package/{v1/examples/simple → src/v1/examples/multiple_wf_concurrency}/worker.d.ts +0 -0
  533. /package/{v1 → src/v1}/examples/multiple_wf_concurrency/worker.js +0 -0
  534. /package/{v1/examples/timeouts → src/v1/examples/non_retryable}/run.d.ts +0 -0
  535. /package/{v1 → src/v1}/examples/non_retryable/run.js +0 -0
  536. /package/{v1/examples/sticky → src/v1/examples/non_retryable}/worker.d.ts +0 -0
  537. /package/{v1 → src/v1}/examples/non_retryable/worker.js +0 -0
  538. /package/{v1 → src/v1}/examples/non_retryable/workflow.d.ts +0 -0
  539. /package/{v1/examples/streaming → src/v1/examples/on_cron}/worker.d.ts +0 -0
  540. /package/{v1 → src/v1}/examples/on_cron/worker.js +0 -0
  541. /package/{v1 → src/v1}/examples/on_cron/workflow.d.ts +0 -0
  542. /package/{v1 → src/v1}/examples/on_cron/workflow.js +0 -0
  543. /package/{v1/examples/simple/bulk.d.ts → src/v1/examples/on_event/event.d.ts} +0 -0
  544. /package/{v1/examples/simple/client-run.d.ts → src/v1/examples/on_event/filter.d.ts} +0 -0
  545. /package/{v1 → src/v1}/examples/on_event/filter.js +0 -0
  546. /package/{v1/examples/timeouts → src/v1/examples/on_event}/worker.d.ts +0 -0
  547. /package/{v1/examples/simple/cron.d.ts → src/v1/examples/on_failure/run.d.ts} +0 -0
  548. /package/{v1 → src/v1}/examples/on_failure/run.js +0 -0
  549. /package/{v1/examples/simple/delay.d.ts → src/v1/examples/on_failure/worker.d.ts} +0 -0
  550. /package/{v1 → src/v1}/examples/on_failure/worker.js +0 -0
  551. /package/{v1/examples/simple/enqueue.d.ts → src/v1/examples/on_success/run.d.ts} +0 -0
  552. /package/{v1 → src/v1}/examples/on_success/run.js +0 -0
  553. /package/{v1/examples/simple/replay-cancel.d.ts → src/v1/examples/on_success/worker.d.ts} +0 -0
  554. /package/{v1 → src/v1}/examples/on_success/worker.js +0 -0
  555. /package/{v1 → src/v1}/examples/on_success/workflow.d.ts +0 -0
  556. /package/{v1 → src/v1}/examples/on_success/workflow.js +0 -0
  557. /package/{v1/examples/simple/schedule.d.ts → src/v1/examples/priority/run.d.ts} +0 -0
  558. /package/{v1/examples/simple/typed-run-methods.d.ts → src/v1/examples/priority/worker.d.ts} +0 -0
  559. /package/{v1 → src/v1}/examples/priority/worker.js +0 -0
  560. /package/{v1 → src/v1}/examples/quickstart/run.js +0 -0
  561. /package/{v1 → src/v1}/examples/quickstart/worker.js +0 -0
  562. /package/{v1 → src/v1}/examples/quickstart/workflows/first-task.d.ts +0 -0
  563. /package/{v1 → src/v1}/examples/quickstart/workflows/first-task.js +0 -0
  564. /package/{v1 → src/v1}/examples/retries/run.js +0 -0
  565. /package/{v1 → src/v1}/examples/retries/worker.js +0 -0
  566. /package/{v1 → src/v1}/examples/retries/workflow.d.ts +0 -0
  567. /package/{v1 → src/v1}/examples/simple/bulk.js +0 -0
  568. /package/{v1 → src/v1}/examples/simple/client-run.js +0 -0
  569. /package/{v1 → src/v1}/examples/simple/cron.js +0 -0
  570. /package/{v1 → src/v1}/examples/simple/delay.js +0 -0
  571. /package/{v1 → src/v1}/examples/simple/run.d.ts +0 -0
  572. /package/{v1 → src/v1}/examples/simple/run.js +0 -0
  573. /package/{v1 → src/v1}/examples/simple/schedule.js +0 -0
  574. /package/{v1 → src/v1}/examples/simple/stub-workflow.d.ts +0 -0
  575. /package/{v1 → src/v1}/examples/simple/stub-workflow.js +0 -0
  576. /package/{v1 → src/v1}/examples/simple/typed-run-methods.js +0 -0
  577. /package/{v1 → src/v1}/examples/simple/worker.js +0 -0
  578. /package/{v1 → src/v1}/examples/simple/workflow-with-child.d.ts +0 -0
  579. /package/{v1 → src/v1}/examples/simple/workflow-with-child.js +0 -0
  580. /package/{v1 → src/v1}/examples/simple/workflow.d.ts +0 -0
  581. /package/{v1 → src/v1}/examples/simple/workflow.js +0 -0
  582. /package/{v1 → src/v1}/examples/simple/zod.d.ts +0 -0
  583. /package/{v1 → src/v1}/examples/simple/zod.js +0 -0
  584. /package/{v1 → src/v1}/examples/sticky/run.js +0 -0
  585. /package/{v1 → src/v1}/examples/sticky/worker.js +0 -0
  586. /package/{v1 → src/v1}/examples/streaming/nextjs-proxy.d.ts +0 -0
  587. /package/{v1 → src/v1}/examples/streaming/nextjs-proxy.js +0 -0
  588. /package/{v1 → src/v1}/examples/streaming/run.js +0 -0
  589. /package/{v1 → src/v1}/examples/streaming/worker.js +0 -0
  590. /package/{v1 → src/v1}/examples/streaming/workflow.d.ts +0 -0
  591. /package/{v1 → src/v1}/examples/streaming/workflow.js +0 -0
  592. /package/{v1 → src/v1}/examples/timeouts/run.js +0 -0
  593. /package/{v1 → src/v1}/examples/timeouts/worker.js +0 -0
  594. /package/{v1 → src/v1}/examples/timeouts/workflow.d.ts +0 -0
  595. /package/{v1 → src/v1}/examples/with_timeouts/workflow.d.ts +0 -0
  596. /package/{v1 → src/v1}/slot-types.d.ts +0 -0
  597. /package/{v1 → src/v1}/slot-types.js +0 -0
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  };
22
22
  Object.defineProperty(exports, "__esModule", { value: true });
23
23
  exports.WebhooksClient = void 0;
24
- const data_contracts_1 = require("../../../clients/rest/generated/data-contracts");
24
+ const data_contracts_1 = require("../../../../clients/rest/generated/data-contracts");
25
25
  function getAuthType(auth) {
26
26
  if ('username' in auth && 'password' in auth)
27
27
  return data_contracts_1.V1WebhookAuthType.BASIC;
@@ -43,16 +43,21 @@ function toCreateWebhookRequest(options) {
43
43
  /**
44
44
  * Client for managing incoming webhooks in Hatchet.
45
45
  *
46
- * Webhooks allow external systems to trigger Hatchet workflows by sending HTTP
47
- * requests to dedicated endpoints. This enables real-time integration with
48
- * third-party services like GitHub, Stripe, Slack, or any system that can send
49
- * webhook events.
46
+ * Webhooks allow external systems to trigger Hatchet workflows by sending
47
+ * HTTP requests to dedicated endpoints. This enables real-time integration
48
+ * with third-party services like GitHub, Stripe, Slack, or any system that
49
+ * can send webhook events.
50
50
  */
51
51
  class WebhooksClient {
52
52
  constructor(client) {
53
53
  this.api = client.api;
54
54
  this.tenantId = client.tenantId;
55
55
  }
56
+ /**
57
+ * Lists all webhooks for the current tenant.
58
+ * @param options - The options for the list operation.
59
+ * @returns A promise that resolves to the list of webhooks.
60
+ */
56
61
  list(options) {
57
62
  return __awaiter(this, void 0, void 0, function* () {
58
63
  const response = yield this.api.v1WebhookList(this.tenantId, {
@@ -64,12 +69,22 @@ class WebhooksClient {
64
69
  return response.data;
65
70
  });
66
71
  }
72
+ /**
73
+ * Gets a webhook by its name.
74
+ * @param webhookName - The name of the webhook to get.
75
+ * @returns A promise that resolves to the webhook.
76
+ */
67
77
  get(webhookName) {
68
78
  return __awaiter(this, void 0, void 0, function* () {
69
79
  const response = yield this.api.v1WebhookGet(this.tenantId, webhookName);
70
80
  return response.data;
71
81
  });
72
82
  }
83
+ /**
84
+ * Creates a new webhook.
85
+ * @param request - The request options for the create operation.
86
+ * @returns A promise that resolves to the created webhook.
87
+ */
73
88
  create(request) {
74
89
  return __awaiter(this, void 0, void 0, function* () {
75
90
  const payload = toCreateWebhookRequest(request);
@@ -77,6 +92,12 @@ class WebhooksClient {
77
92
  return response.data;
78
93
  });
79
94
  }
95
+ /**
96
+ * Updates a webhook by its name.
97
+ * @param webhookName - The name of the webhook to update.
98
+ * @param options - The options for the update operation.
99
+ * @returns A promise that resolves to the updated webhook.
100
+ */
80
101
  update(webhookName_1) {
81
102
  return __awaiter(this, arguments, void 0, function* (webhookName, options = {}) {
82
103
  const response = yield this.api.v1WebhookUpdate(this.tenantId, webhookName, {
@@ -87,6 +108,11 @@ class WebhooksClient {
87
108
  return response.data;
88
109
  });
89
110
  }
111
+ /**
112
+ * Deletes a webhook by its name.
113
+ * @param webhookName - The name of the webhook to delete.
114
+ * @returns A promise that resolves to the deleted webhook.
115
+ */
90
116
  delete(webhookName) {
91
117
  return __awaiter(this, void 0, void 0, function* () {
92
118
  const response = yield this.api.v1WebhookDelete(this.tenantId, webhookName);
@@ -0,0 +1,38 @@
1
+ import { HatchetClient } from '../client';
2
+ /**
3
+ * The workers client is a client for managing workers programmatically within Hatchet.
4
+ */
5
+ export declare class WorkersClient {
6
+ api: HatchetClient['api'];
7
+ tenantId: string;
8
+ constructor(client: HatchetClient);
9
+ /**
10
+ * Get a worker by its ID.
11
+ * @param workerId - The ID of the worker to get.
12
+ * @returns A promise that resolves to the worker.
13
+ */
14
+ get(workerId: string): Promise<import("../../../clients/rest/generated/data-contracts").Worker>;
15
+ /**
16
+ * List all workers in the tenant.
17
+ * @returns A promise that resolves to the list of workers.
18
+ */
19
+ list(): Promise<import("../../../clients/rest/generated/data-contracts").WorkerList>;
20
+ /**
21
+ * Check if a worker is paused.
22
+ * @param workerId - The ID of the worker to check.
23
+ * @returns A promise that resolves to true if the worker is paused, false otherwise.
24
+ */
25
+ isPaused(workerId: string): Promise<boolean>;
26
+ /**
27
+ * Pause a worker.
28
+ * @param workerId - The ID of the worker to pause.
29
+ * @returns A promise that resolves to the paused worker.
30
+ */
31
+ pause(workerId: string): Promise<import("../../../clients/rest/generated/data-contracts").Worker>;
32
+ /**
33
+ * Unpause a worker.
34
+ * @param workerId - The ID of the worker to unpause.
35
+ * @returns A promise that resolves to the unpaused worker.
36
+ */
37
+ unpause(workerId: string): Promise<import("../../../clients/rest/generated/data-contracts").Worker>;
38
+ }
@@ -11,31 +11,50 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.WorkersClient = void 0;
13
13
  /**
14
- * WorkersClient is used to list and manage workers
14
+ * The workers client is a client for managing workers programmatically within Hatchet.
15
15
  */
16
16
  class WorkersClient {
17
17
  constructor(client) {
18
18
  this.api = client.api;
19
19
  this.tenantId = client.tenantId;
20
20
  }
21
+ /**
22
+ * Get a worker by its ID.
23
+ * @param workerId - The ID of the worker to get.
24
+ * @returns A promise that resolves to the worker.
25
+ */
21
26
  get(workerId) {
22
27
  return __awaiter(this, void 0, void 0, function* () {
23
28
  const { data } = yield this.api.workerGet(workerId);
24
29
  return data;
25
30
  });
26
31
  }
32
+ /**
33
+ * List all workers in the tenant.
34
+ * @returns A promise that resolves to the list of workers.
35
+ */
27
36
  list() {
28
37
  return __awaiter(this, void 0, void 0, function* () {
29
38
  const { data } = yield this.api.workerList(this.tenantId);
30
39
  return data;
31
40
  });
32
41
  }
42
+ /**
43
+ * Check if a worker is paused.
44
+ * @param workerId - The ID of the worker to check.
45
+ * @returns A promise that resolves to true if the worker is paused, false otherwise.
46
+ */
33
47
  isPaused(workerId) {
34
48
  return __awaiter(this, void 0, void 0, function* () {
35
49
  const wf = yield this.get(workerId);
36
50
  return wf.status === 'PAUSED';
37
51
  });
38
52
  }
53
+ /**
54
+ * Pause a worker.
55
+ * @param workerId - The ID of the worker to pause.
56
+ * @returns A promise that resolves to the paused worker.
57
+ */
39
58
  pause(workerId) {
40
59
  return __awaiter(this, void 0, void 0, function* () {
41
60
  const { data } = yield this.api.workerUpdate(workerId, {
@@ -44,6 +63,11 @@ class WorkersClient {
44
63
  return data;
45
64
  });
46
65
  }
66
+ /**
67
+ * Unpause a worker.
68
+ * @param workerId - The ID of the worker to unpause.
69
+ * @returns A promise that resolves to the unpaused worker.
70
+ */
47
71
  unpause(workerId) {
48
72
  return __awaiter(this, void 0, void 0, function* () {
49
73
  const { data } = yield this.api.workerUpdate(workerId, {
@@ -0,0 +1,42 @@
1
+ import { BaseWorkflowDeclaration, WorkflowDefinition } from '../../../../v1';
2
+ import type { LegacyWorkflow } from '../../../../legacy/legacy-transformer';
3
+ import { HatchetClient } from '../client';
4
+ export declare const workflowNameString: (workflow: string | WorkflowDefinition | BaseWorkflowDeclaration<any, any> | LegacyWorkflow) => string;
5
+ /**
6
+ * The workflows client is a client for managing workflows programmatically within Hatchet.
7
+ *
8
+ * NOTE: that workflows are the declaration, not the individual runs. If you're looking for runs, use the RunsClient instead.
9
+ *
10
+ */
11
+ export declare class WorkflowsClient {
12
+ api: HatchetClient['api'];
13
+ tenantId: string;
14
+ private workflowCache;
15
+ private cacheTTL;
16
+ constructor(client: HatchetClient, cacheTTL?: number);
17
+ /**
18
+ * Gets the workflow ID from a workflow name, ID, or object.
19
+ * If the input is not a valid UUID, it will look up the workflow by name.
20
+ * @param workflow - The workflow name, ID, or object.
21
+ * @returns The workflow ID as a string.
22
+ */
23
+ getWorkflowIdFromName(workflow: string | WorkflowDefinition | BaseWorkflowDeclaration<any, any> | LegacyWorkflow): Promise<string>;
24
+ /**
25
+ * Get a workflow by its name, ID, or object.
26
+ * @param workflow - The workflow name, ID, or object.
27
+ * @returns A promise that resolves to the workflow.
28
+ */
29
+ get(workflow: string | BaseWorkflowDeclaration<any, any> | LegacyWorkflow): Promise<import("../../../clients/rest/generated/data-contracts").Workflow>;
30
+ /**
31
+ * List all workflows in the tenant.
32
+ * @param opts - The options for the list operation.
33
+ * @returns A promise that resolves to the list of workflows.
34
+ */
35
+ list(opts?: Parameters<typeof this.api.workflowList>[1]): Promise<import("../../../clients/rest/generated/data-contracts").WorkflowList>;
36
+ /**
37
+ * Delete a workflow by its name, ID, or object.
38
+ * @param workflow - The workflow name, ID, or object.
39
+ * @returns A promise that resolves to the deleted workflow.
40
+ */
41
+ delete(workflow: string | BaseWorkflowDeclaration<any, any> | LegacyWorkflow): Promise<void>;
42
+ }
@@ -10,19 +10,27 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.WorkflowsClient = exports.workflowNameString = void 0;
13
- const uuid_1 = require("../../../util/uuid");
13
+ const legacy_transformer_1 = require("../../../../legacy/legacy-transformer");
14
+ const uuid_1 = require("../../../../util/uuid");
14
15
  const workflowNameString = (workflow) => {
15
16
  if (typeof workflow === 'string') {
16
17
  return workflow;
17
18
  }
18
- if (typeof workflow === 'object' && 'id' in workflow) {
19
+ if (typeof workflow === 'object' && 'name' in workflow) {
20
+ return workflow.name;
21
+ }
22
+ if ((0, legacy_transformer_1.isLegacyWorkflow)(workflow)) {
23
+ (0, legacy_transformer_1.warnLegacyWorkflow)();
19
24
  return workflow.id;
20
25
  }
21
- return workflow.name;
26
+ throw new Error('Invalid workflow: must be a string, Workflow object, or WorkflowDefinition object');
22
27
  };
23
28
  exports.workflowNameString = workflowNameString;
24
29
  /**
25
- * WorkflowsClient is used to list and manage workflows
30
+ * The workflows client is a client for managing workflows programmatically within Hatchet.
31
+ *
32
+ * NOTE: that workflows are the declaration, not the individual runs. If you're looking for runs, use the RunsClient instead.
33
+ *
26
34
  */
27
35
  class WorkflowsClient {
28
36
  constructor(client, cacheTTL) {
@@ -52,12 +60,6 @@ class WorkflowsClient {
52
60
  if (typeof workflow === 'object' && 'name' in workflow) {
53
61
  return workflow.name;
54
62
  }
55
- if (typeof workflow === 'object' && 'id' in workflow) {
56
- if (!workflow.id) {
57
- throw new Error('Workflow ID is required');
58
- }
59
- return workflow.id;
60
- }
61
63
  throw new Error('Invalid workflow: must be a string, Workflow object, or WorkflowDefinition object');
62
64
  })();
63
65
  if (!(0, uuid_1.isValidUUID)(str)) {
@@ -70,6 +72,11 @@ class WorkflowsClient {
70
72
  return str;
71
73
  });
72
74
  }
75
+ /**
76
+ * Get a workflow by its name, ID, or object.
77
+ * @param workflow - The workflow name, ID, or object.
78
+ * @returns A promise that resolves to the workflow.
79
+ */
73
80
  get(workflow) {
74
81
  return __awaiter(this, void 0, void 0, function* () {
75
82
  // Get workflow name string
@@ -104,12 +111,22 @@ class WorkflowsClient {
104
111
  }
105
112
  });
106
113
  }
114
+ /**
115
+ * List all workflows in the tenant.
116
+ * @param opts - The options for the list operation.
117
+ * @returns A promise that resolves to the list of workflows.
118
+ */
107
119
  list(opts) {
108
120
  return __awaiter(this, void 0, void 0, function* () {
109
121
  const { data } = yield this.api.workflowList(this.tenantId, opts);
110
122
  return data;
111
123
  });
112
124
  }
125
+ /**
126
+ * Delete a workflow by its name, ID, or object.
127
+ * @param workflow - The workflow name, ID, or object.
128
+ * @returns A promise that resolves to the deleted workflow.
129
+ */
113
130
  delete(workflow) {
114
131
  return __awaiter(this, void 0, void 0, function* () {
115
132
  const name = (0, exports.workflowNameString)(workflow);
@@ -1,15 +1,24 @@
1
- import { Priority, RunOpts, TaskWorkflowDeclaration, BaseWorkflowDeclaration as WorkflowV1 } from '../../declaration';
1
+ /**
2
+ * The Hatchet Context class provides helper methods and useful data to tasks at runtime. It is passed as the second argument to all tasks and durable tasks.
3
+ *
4
+ * There are two types of context classes you'll encounter:
5
+ *
6
+ * - Context - The standard context for regular tasks with methods for logging, task output retrieval, cancellation, and more.
7
+ * - DurableContext - An extended context for durable tasks that includes additional methods for durable execution.
8
+ * @module Context
9
+ */
10
+ import { Priority, RunOpts, TaskWorkflowDeclaration, BaseWorkflowDeclaration as WorkflowV1 } from '../../../../v1/declaration';
2
11
  import { JsonObject } from '@bufbuild/protobuf';
3
- import { Action } from '../../../clients/dispatcher/action-listener';
4
- import { Logger, LogLevel } from '../../../util/logger';
5
- import WorkflowRunRef from '../../../util/workflow-run-ref';
6
- import { Conditions } from '../../conditions';
7
- import { CreateWorkflowDurableTaskOpts, CreateWorkflowTaskOpts } from '../../task';
8
- import { OutputType } from '../../types';
9
- import { Workflow } from '../../../workflow';
10
- import { HatchetClient } from '../..';
11
- import { ContextWorker, NextStep } from '../../../step';
12
- import { V1Worker } from './worker-internal';
12
+ import { Action } from '../../../../clients/dispatcher/action-listener';
13
+ import { Logger, LogLevel } from '../../../../util/logger';
14
+ import WorkflowRunRef from '../../../../util/workflow-run-ref';
15
+ import { Conditions } from '../../../../v1/conditions';
16
+ import { CreateWorkflowDurableTaskOpts, CreateWorkflowTaskOpts } from '../../../../v1/task';
17
+ import { OutputType } from '../../../../v1/types';
18
+ import { HatchetClient } from '../../../../v1';
19
+ import { WorkerLabels } from '../../../../clients/dispatcher/dispatcher-client';
20
+ import { NextStep } from '../../../../legacy/step';
21
+ import { InternalWorker } from './worker-internal';
13
22
  import { Duration } from '../duration';
14
23
  type TriggerData = Record<string, Record<string, any>>;
15
24
  type ChildRunOpts = RunOpts & {
@@ -28,6 +37,35 @@ interface ContextData<T, K> {
28
37
  user_data: K;
29
38
  step_run_errors: Record<string, string>;
30
39
  }
40
+ /**
41
+ * ContextWorker is a wrapper around the V1Worker class that provides a more user-friendly interface for the worker from the context of a run.
42
+ */
43
+ export declare class ContextWorker {
44
+ private worker;
45
+ constructor(worker: InternalWorker);
46
+ /**
47
+ * Gets the ID of the worker.
48
+ * @returns The ID of the worker.
49
+ */
50
+ id(): string | undefined;
51
+ /**
52
+ * Checks if the worker has a registered workflow.
53
+ * @param workflowName - The name of the workflow to check.
54
+ * @returns True if the workflow is registered, otherwise false.
55
+ */
56
+ hasWorkflow(workflowName: string): boolean;
57
+ /**
58
+ * Gets the current state of the worker labels.
59
+ * @returns The labels of the worker.
60
+ */
61
+ labels(): WorkerLabels;
62
+ /**
63
+ * Upserts the a set of labels on the worker.
64
+ * @param labels - The labels to upsert.
65
+ * @returns A promise that resolves when the labels have been upserted.
66
+ */
67
+ upsertLabels(labels: WorkerLabels): Promise<WorkerLabels>;
68
+ }
31
69
  export declare class Context<T, K = {}> {
32
70
  data: ContextData<T, K>;
33
71
  input: T;
@@ -39,9 +77,19 @@ export declare class Context<T, K = {}> {
39
77
  _logger: Logger;
40
78
  spawnIndex: number;
41
79
  streamIndex: number;
42
- constructor(action: Action, v1: HatchetClient, worker: V1Worker);
80
+ constructor(action: Action, v1: HatchetClient, worker: InternalWorker);
43
81
  get abortController(): AbortController;
44
82
  get cancelled(): boolean;
83
+ protected throwIfCancelled(): void;
84
+ /**
85
+ * Helper for broad `catch` blocks so cancellation isn't accidentally swallowed.
86
+ *
87
+ * Example:
88
+ * ```ts
89
+ * try { ... } catch (e) { ctx.rethrowIfCancelled(e); ... }
90
+ * ```
91
+ */
92
+ rethrowIfCancelled(err: unknown): void;
45
93
  cancel(): Promise<void>;
46
94
  /**
47
95
  * Retrieves the output of a parent task.
@@ -55,6 +103,7 @@ export declare class Context<T, K = {}> {
55
103
  * @returns A record mapping task names to error messages.
56
104
  * @throws A warning if no errors are found (this method should be used in on-failure tasks).
57
105
  * @deprecated use ctx.errors() instead
106
+ * @hidden
58
107
  */
59
108
  stepRunErrors(): Record<string, string>;
60
109
  /**
@@ -117,6 +166,7 @@ export declare class Context<T, K = {}> {
117
166
  * Gets the ID of the current task run.
118
167
  * @returns The task run ID.
119
168
  * @deprecated use taskRunExternalId() instead
169
+ * @hidden
120
170
  */
121
171
  taskRunId(): string;
122
172
  /**
@@ -129,6 +179,7 @@ export declare class Context<T, K = {}> {
129
179
  * @param message - The message to log.
130
180
  * @param level - The log level (optional).
131
181
  * @deprecated use ctx.logger.infoger.info, ctx.logger.infoger.debug, ctx.logger.infoger.warn, ctx.logger.infoger.error, ctx.logger.infoger.trace instead
182
+ * @hidden
132
183
  */
133
184
  log(message: string, level?: LogLevel, extra?: LogExtra): Promise<void> | Promise<void[]>;
134
185
  get logger(): {
@@ -165,7 +216,7 @@ export declare class Context<T, K = {}> {
165
216
  * @returns A list of workflow run references to the enqueued runs.
166
217
  */
167
218
  bulkRunNoWaitChildren<Q extends JsonObject = any, P extends JsonObject = any>(children: Array<{
168
- workflow: string | Workflow | WorkflowV1<Q, P>;
219
+ workflow: string | WorkflowV1<Q, P>;
169
220
  input: Q;
170
221
  options?: ChildRunOpts;
171
222
  }>): Promise<WorkflowRunRef<P>[]>;
@@ -175,7 +226,7 @@ export declare class Context<T, K = {}> {
175
226
  * @returns A list of results from the children workflows.
176
227
  */
177
228
  bulkRunChildren<Q extends JsonObject = any, P extends JsonObject = any>(children: Array<{
178
- workflow: string | Workflow | WorkflowV1<Q, P>;
229
+ workflow: string | WorkflowV1<Q, P>;
179
230
  input: Q;
180
231
  options?: ChildRunOpts;
181
232
  }>): Promise<P[]>;
@@ -187,7 +238,7 @@ export declare class Context<T, K = {}> {
187
238
  * @param options - An options object containing key, sticky, priority, and additionalMetadata.
188
239
  * @returns The result of the workflow.
189
240
  */
190
- runChild<Q extends JsonObject, P extends JsonObject>(workflow: string | Workflow | WorkflowV1<Q, P> | TaskWorkflowDeclaration<Q, P>, input: Q, options?: ChildRunOpts): Promise<P>;
241
+ runChild<Q extends JsonObject, P extends JsonObject>(workflow: string | WorkflowV1<Q, P> | TaskWorkflowDeclaration<Q, P>, input: Q, options?: ChildRunOpts): Promise<P>;
191
242
  /**
192
243
  * Enqueues a new workflow without waiting for its result.
193
244
  *
@@ -196,7 +247,7 @@ export declare class Context<T, K = {}> {
196
247
  * @param options - An options object containing key, sticky, priority, and additionalMetadata.
197
248
  * @returns A reference to the spawned workflow run.
198
249
  */
199
- runNoWaitChild<Q extends JsonObject, P extends JsonObject>(workflow: string | Workflow | WorkflowV1<Q, P>, input: Q, options?: ChildRunOpts): Promise<WorkflowRunRef<P>>;
250
+ runNoWaitChild<Q extends JsonObject, P extends JsonObject>(workflow: string | WorkflowV1<Q, P>, input: Q, options?: ChildRunOpts): Promise<WorkflowRunRef<P>>;
200
251
  /**
201
252
  * Retrieves additional metadata associated with the current workflow run.
202
253
  * @returns A record of metadata key-value pairs.
@@ -224,18 +275,21 @@ export declare class Context<T, K = {}> {
224
275
  * @returns The output of the task.
225
276
  * @throws An error if the task output is not found.
226
277
  * @deprecated use ctx.parentOutput instead
278
+ * @hidden
227
279
  */
228
280
  stepOutput<L = NextStep>(step: string): L;
229
281
  /**
230
282
  * Gets the input data for the current workflow.
231
283
  * @returns The input data for the workflow.
232
284
  * @deprecated use task input parameter instead
285
+ * @hidden
233
286
  */
234
287
  workflowInput(): T;
235
288
  /**
236
289
  * Gets the name of the current task.
237
290
  * @returns The name of the task.
238
291
  * @deprecated use ctx.taskName instead
292
+ * @hidden
239
293
  */
240
294
  stepName(): string;
241
295
  /**
@@ -244,9 +298,10 @@ export declare class Context<T, K = {}> {
244
298
  * @param workflows - An array of objects containing the workflow name, input data, and options for each workflow.
245
299
  * @returns A list of references to the spawned workflow runs.
246
300
  * @deprecated Use bulkRunNoWaitChildren or bulkRunChildren instead.
301
+ * @hidden
247
302
  */
248
303
  spawnWorkflows<Q extends JsonObject = any, P extends JsonObject = any>(workflows: Array<{
249
- workflow: string | Workflow | WorkflowV1<Q, P>;
304
+ workflow: string | WorkflowV1<Q, P>;
250
305
  input: Q;
251
306
  options?: ChildRunOpts;
252
307
  }>): Promise<WorkflowRunRef<P>[]>;
@@ -258,10 +313,15 @@ export declare class Context<T, K = {}> {
258
313
  * @param options - Additional options for spawning the workflow.
259
314
  * @returns A reference to the spawned workflow run.
260
315
  * @deprecated Use runChild or runNoWaitChild instead.
316
+ * @hidden
261
317
  */
262
- spawnWorkflow<Q extends JsonObject, P extends JsonObject>(workflow: string | Workflow | WorkflowV1<Q, P> | TaskWorkflowDeclaration<Q, P>, input: Q, options?: ChildRunOpts): Promise<WorkflowRunRef<P>>;
318
+ spawnWorkflow<Q extends JsonObject, P extends JsonObject>(workflow: string | WorkflowV1<Q, P> | TaskWorkflowDeclaration<Q, P>, input: Q, options?: ChildRunOpts): Promise<WorkflowRunRef<P>>;
263
319
  _incrementStreamIndex(): number;
264
320
  }
321
+ /**
322
+ * DurableContext provides helper methods and useful data to durable tasks at runtime.
323
+ * It extends the Context class and includes additional methods for durable execution like sleepFor and waitFor.
324
+ */
265
325
  export declare class DurableContext<T, K = {}> extends Context<T, K> {
266
326
  waitKey: number;
267
327
  /**