@hatchet-dev/typescript-sdk 1.14.0 → 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 (587) 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 +4 -3
  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 +9 -9
  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 +1 -1
  17. package/{clients → src/clients}/dispatcher/heartbeat/heartbeat-worker.js +3 -3
  18. package/{clients → src/clients}/event/event-client.d.ts +7 -7
  19. package/{clients → src/clients}/event/event-client.js +4 -4
  20. package/{clients → src/clients}/hatchet-client/client-config.d.ts +2 -2
  21. package/{clients → src/clients}/hatchet-client/hatchet-logger.d.ts +1 -1
  22. package/{clients → src/clients}/hatchet-client/hatchet-logger.js +1 -1
  23. package/src/clients/hatchet-client/index.d.ts +3 -0
  24. package/{clients → src/clients}/hatchet-client/index.js +1 -1
  25. package/{clients → src/clients}/listeners/durable-listener/durable-listener-client.d.ts +6 -6
  26. package/{clients → src/clients}/listeners/durable-listener/durable-listener-client.js +1 -1
  27. package/{clients → src/clients}/listeners/durable-listener/pooled-durable-listener-client.d.ts +2 -2
  28. package/{clients → src/clients}/listeners/durable-listener/pooled-durable-listener-client.js +2 -2
  29. package/{clients → src/clients}/listeners/run-listener/child-listener-client.d.ts +3 -3
  30. package/{clients → src/clients}/listeners/run-listener/child-listener-client.js +3 -3
  31. package/{clients → src/clients}/listeners/run-listener/pooled-child-listener-client.d.ts +1 -1
  32. package/{clients → src/clients}/listeners/run-listener/pooled-child-listener-client.js +3 -3
  33. package/{index.d.ts → src/index.d.ts} +1 -1
  34. package/{index.js → src/index.js} +1 -1
  35. package/{legacy → src/legacy}/examples/affinity-workers.js +1 -1
  36. package/{legacy → src/legacy}/legacy-client.d.ts +9 -9
  37. package/{legacy → src/legacy}/legacy-client.js +10 -10
  38. package/{legacy → src/legacy}/legacy-transformer.d.ts +2 -2
  39. package/{legacy → src/legacy}/legacy-transformer.js +1 -1
  40. package/{legacy → src/legacy}/step.js +1 -1
  41. package/{protoc → src/protoc}/v1/workflows.d.ts +8 -0
  42. package/{protoc → src/protoc}/v1/workflows.js +109 -2
  43. package/{protoc → src/protoc}/workflows/workflows.d.ts +9 -0
  44. package/{protoc → src/protoc}/workflows/workflows.js +109 -2
  45. package/src/sdk.d.ts +2 -0
  46. package/{sdk.js → src/sdk.js} +1 -1
  47. package/{util → src/util}/config-loader/config-loader.d.ts +1 -1
  48. package/{util → src/util}/config-loader/config-loader.js +1 -1
  49. package/{util → src/util}/grpc-helpers.d.ts +1 -1
  50. package/{util → src/util}/logger/logger.d.ts +1 -1
  51. package/{util → src/util}/workflow-run-ref.d.ts +2 -2
  52. package/{v1 → src/v1}/client/admin.d.ts +18 -9
  53. package/{v1 → src/v1}/client/admin.js +29 -13
  54. package/{v1 → src/v1}/client/client.d.ts +27 -9
  55. package/{v1 → src/v1}/client/client.interface.d.ts +3 -3
  56. package/{v1 → src/v1}/client/client.js +28 -10
  57. package/{v1 → src/v1}/client/features/cel.d.ts +1 -1
  58. package/{v1 → src/v1}/client/features/cel.js +1 -1
  59. package/{v1 → src/v1}/client/features/crons.d.ts +6 -4
  60. package/{v1 → src/v1}/client/features/crons.js +4 -3
  61. package/{v1 → src/v1}/client/features/filters.d.ts +30 -0
  62. package/{v1 → src/v1}/client/features/filters.js +30 -0
  63. package/{v1 → src/v1}/client/features/metrics.d.ts +10 -6
  64. package/{v1 → src/v1}/client/features/metrics.js +10 -6
  65. package/src/v1/client/features/ratelimits.d.ts +30 -0
  66. package/{v1 → src/v1}/client/features/ratelimits.js +13 -3
  67. package/{v1 → src/v1}/client/features/runs.d.ts +43 -8
  68. package/{v1 → src/v1}/client/features/runs.js +38 -3
  69. package/{v1 → src/v1}/client/features/schedules.d.ts +7 -4
  70. package/{v1 → src/v1}/client/features/schedules.js +5 -3
  71. package/{v1 → src/v1}/client/features/tenant.d.ts +4 -1
  72. package/src/v1/client/features/webhooks.d.ts +54 -0
  73. package/{v1 → src/v1}/client/features/webhooks.js +31 -5
  74. package/src/v1/client/features/workers.d.ts +38 -0
  75. package/{v1 → src/v1}/client/features/workers.js +25 -1
  76. package/{v1 → src/v1}/client/features/workflows.d.ts +21 -3
  77. package/{v1 → src/v1}/client/features/workflows.js +21 -3
  78. package/{v1 → src/v1}/client/worker/context.d.ts +31 -10
  79. package/{v1 → src/v1}/client/worker/context.js +29 -8
  80. package/{v1 → src/v1}/client/worker/deprecated/deprecation.d.ts +1 -1
  81. package/{v1 → src/v1}/client/worker/deprecated/legacy-registration.d.ts +2 -2
  82. package/{v1 → src/v1}/client/worker/deprecated/legacy-registration.js +2 -2
  83. package/{v1 → src/v1}/client/worker/deprecated/legacy-v1-worker.d.ts +2 -2
  84. package/{v1 → src/v1}/client/worker/health-server.d.ts +1 -1
  85. package/{v1 → src/v1}/client/worker/worker-internal.d.ts +8 -8
  86. package/{v1 → src/v1}/client/worker/worker-internal.js +10 -10
  87. package/{v1 → src/v1}/client/worker/worker.d.ts +1 -1
  88. package/{v1 → src/v1}/client/worker/worker.js +1 -1
  89. package/{v1 → src/v1}/conditions/transformer.d.ts +1 -1
  90. package/{v1 → src/v1}/declaration.d.ts +92 -8
  91. package/{v1 → src/v1}/declaration.js +63 -5
  92. package/{v1 → src/v1}/examples/__e2e__/harness.d.ts +2 -2
  93. package/{v1 → src/v1}/examples/__e2e__/harness.js +2 -2
  94. package/{v1 → src/v1}/examples/affinity/affinity-workers.js +1 -1
  95. package/{v1 → src/v1}/examples/cancellation/cancellation-workflow.js +1 -1
  96. package/{v1 → src/v1}/examples/cancellation/run.js +1 -1
  97. package/{v1 → src/v1}/examples/cancellations/run.js +1 -1
  98. package/{v1 → src/v1}/examples/cancellations/workflow.js +1 -1
  99. package/{v1 → src/v1}/examples/concurrency-rr/workflow.js +1 -1
  100. package/{v1 → src/v1}/examples/concurrency_cancel_in_progress/workflow.d.ts +1 -1
  101. package/{v1 → src/v1}/examples/concurrency_cancel_in_progress/workflow.js +2 -2
  102. package/{v1 → src/v1}/examples/concurrency_cancel_newest/workflow.d.ts +1 -1
  103. package/{v1 → src/v1}/examples/concurrency_cancel_newest/workflow.js +2 -2
  104. package/src/v1/examples/concurrency_limit_rr/workflow.d.ts +12 -0
  105. package/{v1 → src/v1}/examples/concurrency_limit_rr/workflow.js +1 -1
  106. package/{v1 → src/v1}/examples/concurrency_multiple_keys/workflow.d.ts +1 -1
  107. package/{v1 → src/v1}/examples/concurrency_multiple_keys/workflow.js +1 -1
  108. package/{v1 → src/v1}/examples/concurrency_workflow_level/workflow.d.ts +1 -1
  109. package/{v1 → src/v1}/examples/concurrency_workflow_level/workflow.js +1 -1
  110. package/{v1 → src/v1}/examples/conditions/complex-workflow.js +2 -2
  111. package/{v1 → src/v1}/examples/conditions/workflow.js +2 -2
  112. package/{v1 → src/v1}/examples/dag/interface-workflow.d.ts +2 -2
  113. package/{v1 → src/v1}/examples/dag_match_condition/complex-workflow.js +2 -2
  114. package/{v1 → src/v1}/examples/dag_match_condition/workflow.js +2 -2
  115. package/{v1 → src/v1}/examples/deep/workflow.js +1 -1
  116. package/{v1 → src/v1}/examples/durable/workflow.js +1 -1
  117. package/{v1/examples/durable_event → src/v1/examples/durable-event}/workflow.js +1 -1
  118. package/{v1 → src/v1}/examples/durable-sleep/workflow.js +1 -1
  119. package/{v1/examples/durable-event → src/v1/examples/durable_event}/workflow.js +1 -1
  120. package/{v1 → src/v1}/examples/durable_sleep/workflow.js +1 -1
  121. package/{v1 → src/v1}/examples/hatchet-client.d.ts +1 -1
  122. package/{v1 → src/v1}/examples/hatchet-client.js +1 -1
  123. package/{v1 → src/v1}/examples/landing_page/durable-excution.js +1 -1
  124. package/{v1 → src/v1}/examples/landing_page/flow-control.js +1 -1
  125. package/src/v1/examples/legacy/workflow.d.ts +2 -0
  126. package/{v1/examples/logging → src/v1/examples/logger}/byo-logger.js +1 -1
  127. package/src/v1/examples/logger/workflow.d.ts +2 -0
  128. package/{legacy/examples → src/v1/examples/logging}/byo-logger.js +1 -1
  129. package/{v1 → src/v1}/examples/middleware/client.d.ts +1 -1
  130. package/{v1 → src/v1}/examples/middleware/client.js +1 -1
  131. package/{v1 → src/v1}/examples/middleware/recipes.js +1 -1
  132. package/{v1 → src/v1}/examples/migration-guides/hatchet-client.d.ts +1 -1
  133. package/{v1 → src/v1}/examples/migration-guides/hatchet-client.js +1 -1
  134. package/{v1 → src/v1}/examples/multiple_wf_concurrency/workflow.d.ts +1 -1
  135. package/{v1 → src/v1}/examples/multiple_wf_concurrency/workflow.js +1 -1
  136. package/{v1 → src/v1}/examples/non_retryable/workflow.js +1 -1
  137. package/{v1 → src/v1}/examples/priority/run.js +1 -1
  138. package/src/v1/examples/priority/workflow.d.ts +8 -0
  139. package/{v1 → src/v1}/examples/priority/workflow.js +1 -1
  140. package/{v1 → src/v1}/examples/quickstart/hatchet-client.d.ts +1 -1
  141. package/{v1 → src/v1}/examples/quickstart/hatchet-client.js +1 -1
  142. package/{v1 → src/v1}/examples/rate_limit/workflow.js +1 -1
  143. package/{v1 → src/v1}/examples/run_details/workflow.js +1 -1
  144. package/src/v1/examples/runtime_affinity/workflow.d.ts +3 -0
  145. package/src/v1/examples/runtime_affinity/workflow.js +19 -0
  146. package/src/v1/examples/simple/e2e-workflows.d.ts +14 -0
  147. package/{v1 → src/v1}/examples/simple/replay-cancel.js +1 -1
  148. package/src/v1/examples/sticky/workflow.d.ts +5 -0
  149. package/{v1 → src/v1}/examples/sticky/workflow.js +1 -1
  150. package/{v1 → src/v1}/examples/timeout/workflow.js +1 -1
  151. package/src/v1/examples/timeouts/worker.d.ts +1 -0
  152. package/{v1 → src/v1}/examples/timeouts/workflow.js +1 -1
  153. package/{v1 → src/v1}/examples/with_timeouts/workflow.js +1 -1
  154. package/{v1 → src/v1}/task.d.ts +1 -1
  155. package/{v1 → src/v1}/task.js +1 -1
  156. package/{v1 → src/v1}/types.d.ts +1 -1
  157. package/src/version.d.ts +1 -0
  158. package/{version.js → src/version.js} +1 -1
  159. package/{workflow.d.ts → src/workflow.d.ts} +1 -1
  160. package/{workflow.js → src/workflow.js} +1 -1
  161. package/clients/hatchet-client/index.d.ts +0 -3
  162. package/sdk.d.ts +0 -2
  163. package/v1/client/features/ratelimits.d.ts +0 -20
  164. package/v1/client/features/webhooks.d.ts +0 -28
  165. package/v1/client/features/workers.d.ts +0 -14
  166. package/v1/examples/concurrency_limit_rr/workflow.d.ts +0 -12
  167. package/v1/examples/legacy/workflow.d.ts +0 -2
  168. package/v1/examples/logger/workflow.d.ts +0 -2
  169. package/v1/examples/priority/workflow.d.ts +0 -8
  170. package/v1/examples/simple/e2e-workflows.d.ts +0 -14
  171. package/v1/examples/sticky/workflow.d.ts +0 -5
  172. package/version.d.ts +0 -1
  173. package/{clients/dispatcher/heartbeat/heartbeat-worker.d.ts → docs/generate.d.ts} +0 -0
  174. package/{clients → src/clients}/admin/index.d.ts +0 -0
  175. package/{clients → src/clients}/admin/index.js +0 -0
  176. package/{legacy/examples/affinity-workers.d.ts → src/clients/dispatcher/heartbeat/heartbeat-worker.d.ts} +0 -0
  177. package/{clients → src/clients}/hatchet-client/client-config.js +0 -0
  178. package/{clients → src/clients}/rest/api.d.ts +0 -0
  179. package/{clients → src/clients}/rest/api.js +0 -0
  180. package/{clients → src/clients}/rest/generated/Api.d.ts +0 -0
  181. package/{clients → src/clients}/rest/generated/Api.js +0 -0
  182. package/{clients → src/clients}/rest/generated/data-contracts.d.ts +0 -0
  183. package/{clients → src/clients}/rest/generated/data-contracts.js +0 -0
  184. package/{clients → src/clients}/rest/generated/http-client.d.ts +0 -0
  185. package/{clients → src/clients}/rest/generated/http-client.js +0 -0
  186. package/{clients → src/clients}/rest/index.d.ts +0 -0
  187. package/{clients → src/clients}/rest/index.js +0 -0
  188. package/{v1/examples/affinity → src/legacy/examples}/affinity-workers.d.ts +0 -0
  189. package/{legacy → src/legacy}/examples/bulk-fanout-trigger.d.ts +0 -0
  190. package/{legacy → src/legacy}/examples/bulk-fanout-trigger.js +0 -0
  191. package/{legacy → src/legacy}/examples/bulk-fanout-worker.d.ts +0 -0
  192. package/{legacy → src/legacy}/examples/bulk-fanout-worker.js +0 -0
  193. package/{legacy → src/legacy}/examples/bulk-trigger.d.ts +0 -0
  194. package/{legacy → src/legacy}/examples/bulk-trigger.js +0 -0
  195. package/{legacy → src/legacy}/examples/byo-logger.d.ts +0 -0
  196. package/{v1/examples/logger → src/legacy/examples}/byo-logger.js +0 -0
  197. package/{legacy → src/legacy}/examples/concurrency/cancel-in-progress/concurrency-event.d.ts +0 -0
  198. package/{legacy → src/legacy}/examples/concurrency/cancel-in-progress/concurrency-event.js +0 -0
  199. package/{legacy → src/legacy}/examples/concurrency/cancel-in-progress/concurrency-worker.d.ts +0 -0
  200. package/{legacy → src/legacy}/examples/concurrency/cancel-in-progress/concurrency-worker.js +0 -0
  201. package/{legacy → src/legacy}/examples/concurrency/group-round-robin/concurrency-event.d.ts +0 -0
  202. package/{legacy → src/legacy}/examples/concurrency/group-round-robin/concurrency-event.js +0 -0
  203. package/{legacy → src/legacy}/examples/concurrency/group-round-robin/concurrency-worker-expression.d.ts +0 -0
  204. package/{legacy → src/legacy}/examples/concurrency/group-round-robin/concurrency-worker-expression.js +0 -0
  205. package/{legacy → src/legacy}/examples/concurrency/group-round-robin/concurrency-worker-key-fn.d.ts +0 -0
  206. package/{legacy → src/legacy}/examples/concurrency/group-round-robin/concurrency-worker-key-fn.js +0 -0
  207. package/{legacy → src/legacy}/examples/crons/cron-worker.d.ts +0 -0
  208. package/{legacy → src/legacy}/examples/crons/cron-worker.js +0 -0
  209. package/{legacy → src/legacy}/examples/crons/programatic-crons.d.ts +0 -0
  210. package/{legacy → src/legacy}/examples/crons/programatic-crons.js +0 -0
  211. package/{legacy → src/legacy}/examples/dag-worker.d.ts +0 -0
  212. package/{legacy → src/legacy}/examples/dag-worker.js +0 -0
  213. package/{legacy → src/legacy}/examples/example-event-with-results.d.ts +0 -0
  214. package/{legacy → src/legacy}/examples/example-event-with-results.js +0 -0
  215. package/{legacy → src/legacy}/examples/example-event.d.ts +0 -0
  216. package/{legacy → src/legacy}/examples/example-event.js +0 -0
  217. package/{legacy → src/legacy}/examples/fanout-worker.d.ts +0 -0
  218. package/{legacy → src/legacy}/examples/fanout-worker.js +0 -0
  219. package/{legacy → src/legacy}/examples/logger.d.ts +0 -0
  220. package/{legacy → src/legacy}/examples/logger.js +0 -0
  221. package/{legacy → src/legacy}/examples/manual-trigger.d.ts +0 -0
  222. package/{legacy → src/legacy}/examples/manual-trigger.js +0 -0
  223. package/{legacy → src/legacy}/examples/multi-workflow.d.ts +0 -0
  224. package/{legacy → src/legacy}/examples/multi-workflow.js +0 -0
  225. package/{legacy → src/legacy}/examples/namespaced-worker.d.ts +0 -0
  226. package/{legacy → src/legacy}/examples/namespaced-worker.js +0 -0
  227. package/{legacy → src/legacy}/examples/on-failure.d.ts +0 -0
  228. package/{legacy → src/legacy}/examples/on-failure.js +0 -0
  229. package/{legacy → src/legacy}/examples/rate-limit/events.d.ts +0 -0
  230. package/{legacy → src/legacy}/examples/rate-limit/events.js +0 -0
  231. package/{legacy → src/legacy}/examples/rate-limit/worker.d.ts +0 -0
  232. package/{legacy → src/legacy}/examples/rate-limit/worker.js +0 -0
  233. package/{legacy → src/legacy}/examples/retries-with-backoff.d.ts +0 -0
  234. package/{legacy → src/legacy}/examples/retries-with-backoff.js +0 -0
  235. package/{legacy → src/legacy}/examples/retries-worker.d.ts +0 -0
  236. package/{legacy → src/legacy}/examples/retries-worker.js +0 -0
  237. package/{legacy → src/legacy}/examples/scheduled-runs/programatic-schedules.d.ts +0 -0
  238. package/{legacy → src/legacy}/examples/scheduled-runs/programatic-schedules.js +0 -0
  239. package/{legacy → src/legacy}/examples/simple-worker.d.ts +0 -0
  240. package/{legacy → src/legacy}/examples/simple-worker.js +0 -0
  241. package/{legacy → src/legacy}/examples/sticky-trigger.d.ts +0 -0
  242. package/{legacy → src/legacy}/examples/sticky-trigger.js +0 -0
  243. package/{legacy → src/legacy}/examples/sticky-worker-with-check.d.ts +0 -0
  244. package/{legacy → src/legacy}/examples/sticky-worker-with-check.js +0 -0
  245. package/{legacy → src/legacy}/examples/sticky-worker.d.ts +0 -0
  246. package/{legacy → src/legacy}/examples/sticky-worker.js +0 -0
  247. package/{legacy → src/legacy}/examples/stream-by-additional-meta.d.ts +0 -0
  248. package/{legacy → src/legacy}/examples/stream-by-additional-meta.js +0 -0
  249. package/{legacy → src/legacy}/step.d.ts +12 -12
  250. package/{legacy → src/legacy}/workflow.d.ts +36 -36
  251. /package/{legacy → src/legacy}/workflow.js +0 -0
  252. /package/{protoc → src/protoc}/dispatcher/dispatcher.d.ts +0 -0
  253. /package/{protoc → src/protoc}/dispatcher/dispatcher.js +0 -0
  254. /package/{protoc → src/protoc}/dispatcher/index.d.ts +0 -0
  255. /package/{protoc → src/protoc}/dispatcher/index.js +0 -0
  256. /package/{protoc → src/protoc}/events/events.d.ts +0 -0
  257. /package/{protoc → src/protoc}/events/events.js +0 -0
  258. /package/{protoc → src/protoc}/events/index.d.ts +0 -0
  259. /package/{protoc → src/protoc}/events/index.js +0 -0
  260. /package/{protoc → src/protoc}/google/protobuf/timestamp.d.ts +0 -0
  261. /package/{protoc → src/protoc}/google/protobuf/timestamp.js +0 -0
  262. /package/{protoc → src/protoc}/google/protobuf/wrappers.d.ts +0 -0
  263. /package/{protoc → src/protoc}/google/protobuf/wrappers.js +0 -0
  264. /package/{protoc → src/protoc}/v1/dispatcher.d.ts +0 -0
  265. /package/{protoc → src/protoc}/v1/dispatcher.js +0 -0
  266. /package/{protoc → src/protoc}/v1/shared/condition.d.ts +0 -0
  267. /package/{protoc → src/protoc}/v1/shared/condition.js +0 -0
  268. /package/{protoc → src/protoc}/workflows/index.d.ts +0 -0
  269. /package/{protoc → src/protoc}/workflows/index.js +0 -0
  270. /package/{protoc → src/protoc}/workflows/v1-admin.d.ts +0 -0
  271. /package/{protoc → src/protoc}/workflows/v1-admin.js +0 -0
  272. /package/{step.d.ts → src/step.d.ts} +0 -0
  273. /package/{step.js → src/step.js} +0 -0
  274. /package/{util → src/util}/abort-error.d.ts +0 -0
  275. /package/{util → src/util}/abort-error.js +0 -0
  276. /package/{util → src/util}/apply-namespace.d.ts +0 -0
  277. /package/{util → src/util}/apply-namespace.js +0 -0
  278. /package/{util → src/util}/batch.d.ts +0 -0
  279. /package/{util → src/util}/batch.js +0 -0
  280. /package/{util → src/util}/config-loader/index.d.ts +0 -0
  281. /package/{util → src/util}/config-loader/index.js +0 -0
  282. /package/{util → src/util}/config-loader/token.d.ts +0 -0
  283. /package/{util → src/util}/config-loader/token.js +0 -0
  284. /package/{util → src/util}/errors/hatchet-error.d.ts +0 -0
  285. /package/{util → src/util}/errors/hatchet-error.js +0 -0
  286. /package/{util → src/util}/grpc-helpers.js +0 -0
  287. /package/{util → src/util}/hatchet-promise/hatchet-promise.d.ts +0 -0
  288. /package/{util → src/util}/hatchet-promise/hatchet-promise.js +0 -0
  289. /package/{util → src/util}/logger/index.d.ts +0 -0
  290. /package/{util → src/util}/logger/index.js +0 -0
  291. /package/{util → src/util}/logger/logger.js +0 -0
  292. /package/{util → src/util}/logger/task-run-log.d.ts +0 -0
  293. /package/{util → src/util}/logger/task-run-log.js +0 -0
  294. /package/{util → src/util}/parse.d.ts +0 -0
  295. /package/{util → src/util}/parse.js +0 -0
  296. /package/{util → src/util}/retrier.d.ts +0 -0
  297. /package/{util → src/util}/retrier.js +0 -0
  298. /package/{util → src/util}/sleep.d.ts +0 -0
  299. /package/{util → src/util}/sleep.js +0 -0
  300. /package/{util → src/util}/thread-helper.d.ts +0 -0
  301. /package/{util → src/util}/thread-helper.js +0 -0
  302. /package/{util → src/util}/uuid.d.ts +0 -0
  303. /package/{util → src/util}/uuid.js +0 -0
  304. /package/{util → src/util}/workflow-run-ref.js +0 -0
  305. /package/{v1 → src/v1}/client/client.interface.js +0 -0
  306. /package/{v1 → src/v1}/client/duration.d.ts +0 -0
  307. /package/{v1 → src/v1}/client/duration.js +0 -0
  308. /package/{v1 → src/v1}/client/features/index.d.ts +0 -0
  309. /package/{v1 → src/v1}/client/features/index.js +0 -0
  310. /package/{v1 → src/v1}/client/features/tenant.js +0 -0
  311. /package/{v1 → src/v1}/client/worker/deprecated/deprecation.js +0 -0
  312. /package/{v1 → src/v1}/client/worker/deprecated/index.d.ts +0 -0
  313. /package/{v1 → src/v1}/client/worker/deprecated/index.js +0 -0
  314. /package/{v1 → src/v1}/client/worker/deprecated/legacy-v1-worker.js +0 -0
  315. /package/{v1 → src/v1}/client/worker/deprecated/legacy-worker.d.ts +0 -0
  316. /package/{v1 → src/v1}/client/worker/deprecated/legacy-worker.js +0 -0
  317. /package/{v1 → src/v1}/client/worker/health-server.js +0 -0
  318. /package/{v1 → src/v1}/client/worker/slot-utils.d.ts +0 -0
  319. /package/{v1 → src/v1}/client/worker/slot-utils.js +0 -0
  320. /package/{v1 → src/v1}/conditions/base.d.ts +0 -0
  321. /package/{v1 → src/v1}/conditions/base.js +0 -0
  322. /package/{v1 → src/v1}/conditions/index.d.ts +0 -0
  323. /package/{v1 → src/v1}/conditions/index.js +0 -0
  324. /package/{v1 → src/v1}/conditions/parent-condition.d.ts +0 -0
  325. /package/{v1 → src/v1}/conditions/parent-condition.js +0 -0
  326. /package/{v1 → src/v1}/conditions/sleep-condition.d.ts +0 -0
  327. /package/{v1 → src/v1}/conditions/sleep-condition.js +0 -0
  328. /package/{v1 → src/v1}/conditions/transformer.js +0 -0
  329. /package/{v1 → src/v1}/conditions/user-event-condition.d.ts +0 -0
  330. /package/{v1 → src/v1}/conditions/user-event-condition.js +0 -0
  331. /package/{v1/examples/cancellation/run.d.ts → src/v1/examples/affinity/affinity-workers.d.ts} +0 -0
  332. /package/{v1 → src/v1}/examples/bulk_fanout/workflow.d.ts +0 -0
  333. /package/{v1 → src/v1}/examples/bulk_fanout/workflow.js +0 -0
  334. /package/{v1 → src/v1}/examples/bulk_operations/workflow.d.ts +0 -0
  335. /package/{v1 → src/v1}/examples/bulk_operations/workflow.js +0 -0
  336. /package/{v1 → src/v1}/examples/cancellation/cancellation-workflow.d.ts +0 -0
  337. /package/{v1/examples/cancellations → src/v1/examples/cancellation}/run.d.ts +0 -0
  338. /package/{v1 → src/v1}/examples/cancellation/worker.d.ts +0 -0
  339. /package/{v1 → src/v1}/examples/cancellation/worker.js +0 -0
  340. /package/{v1/examples/child_workflows → src/v1/examples/cancellations}/run.d.ts +0 -0
  341. /package/{v1 → src/v1}/examples/cancellations/worker.d.ts +0 -0
  342. /package/{v1 → src/v1}/examples/cancellations/worker.js +0 -0
  343. /package/{v1 → src/v1}/examples/cancellations/workflow.d.ts +0 -0
  344. /package/{v1/examples/concurrency-rr → src/v1/examples/child_workflows}/run.d.ts +0 -0
  345. /package/{v1 → src/v1}/examples/child_workflows/run.js +0 -0
  346. /package/{v1 → src/v1}/examples/child_workflows/worker.d.ts +0 -0
  347. /package/{v1 → src/v1}/examples/child_workflows/worker.js +0 -0
  348. /package/{v1 → src/v1}/examples/child_workflows/workflow.d.ts +0 -0
  349. /package/{v1 → src/v1}/examples/child_workflows/workflow.js +0 -0
  350. /package/{v1 → src/v1}/examples/concurrency-rr/load.d.ts +0 -0
  351. /package/{v1 → src/v1}/examples/concurrency-rr/load.js +0 -0
  352. /package/{v1/examples/concurrency_limit_rr → src/v1/examples/concurrency-rr}/run.d.ts +0 -0
  353. /package/{v1 → src/v1}/examples/concurrency-rr/run.js +0 -0
  354. /package/{v1 → src/v1}/examples/concurrency-rr/worker.d.ts +0 -0
  355. /package/{v1 → src/v1}/examples/concurrency-rr/worker.js +0 -0
  356. /package/{v1 → src/v1}/examples/concurrency-rr/workflow.d.ts +0 -0
  357. /package/{v1 → src/v1}/examples/concurrency-types.d.ts +0 -0
  358. /package/{v1 → src/v1}/examples/concurrency-types.js +0 -0
  359. /package/{v1 → src/v1}/examples/concurrency_limit_rr/load.d.ts +0 -0
  360. /package/{v1 → src/v1}/examples/concurrency_limit_rr/load.js +0 -0
  361. /package/{v1/examples/conditions → src/v1/examples/concurrency_limit_rr}/run.d.ts +0 -0
  362. /package/{v1 → src/v1}/examples/concurrency_limit_rr/run.js +0 -0
  363. /package/{v1 → src/v1}/examples/concurrency_limit_rr/worker.d.ts +0 -0
  364. /package/{v1 → src/v1}/examples/concurrency_limit_rr/worker.js +0 -0
  365. /package/{v1 → src/v1}/examples/conditions/complex-workflow.d.ts +0 -0
  366. /package/{v1 → src/v1}/examples/conditions/event.d.ts +0 -0
  367. /package/{v1 → src/v1}/examples/conditions/event.js +0 -0
  368. /package/{v1/examples/dag → src/v1/examples/conditions}/run.d.ts +0 -0
  369. /package/{v1 → src/v1}/examples/conditions/run.js +0 -0
  370. /package/{v1 → src/v1}/examples/conditions/worker.d.ts +0 -0
  371. /package/{v1 → src/v1}/examples/conditions/worker.js +0 -0
  372. /package/{v1 → src/v1}/examples/conditions/workflow.d.ts +0 -0
  373. /package/{v1 → src/v1}/examples/dag/interface-workflow.js +0 -0
  374. /package/{v1/examples/dag_match_condition → src/v1/examples/dag}/run.d.ts +0 -0
  375. /package/{v1 → src/v1}/examples/dag/run.js +0 -0
  376. /package/{v1 → src/v1}/examples/dag/worker.d.ts +0 -0
  377. /package/{v1 → src/v1}/examples/dag/worker.js +0 -0
  378. /package/{v1 → src/v1}/examples/dag/workflow.d.ts +0 -0
  379. /package/{v1 → src/v1}/examples/dag/workflow.js +0 -0
  380. /package/{v1 → src/v1}/examples/dag_match_condition/complex-workflow.d.ts +0 -0
  381. /package/{v1 → src/v1}/examples/dag_match_condition/event.d.ts +0 -0
  382. /package/{v1 → src/v1}/examples/dag_match_condition/event.js +0 -0
  383. /package/{v1/examples/deep → src/v1/examples/dag_match_condition}/run.d.ts +0 -0
  384. /package/{v1 → src/v1}/examples/dag_match_condition/run.js +0 -0
  385. /package/{v1 → src/v1}/examples/dag_match_condition/worker.d.ts +0 -0
  386. /package/{v1 → src/v1}/examples/dag_match_condition/worker.js +0 -0
  387. /package/{v1 → src/v1}/examples/dag_match_condition/workflow.d.ts +0 -0
  388. /package/{v1/examples/durable-event → src/v1/examples/deep}/run.d.ts +0 -0
  389. /package/{v1 → src/v1}/examples/deep/run.js +0 -0
  390. /package/{v1 → src/v1}/examples/deep/worker.d.ts +0 -0
  391. /package/{v1 → src/v1}/examples/deep/worker.js +0 -0
  392. /package/{v1 → src/v1}/examples/deep/workflow.d.ts +0 -0
  393. /package/{v1 → src/v1}/examples/durable/workflow.d.ts +0 -0
  394. /package/{v1 → src/v1}/examples/durable-event/event.d.ts +0 -0
  395. /package/{v1 → src/v1}/examples/durable-event/event.js +0 -0
  396. /package/{v1/examples/durable-sleep → src/v1/examples/durable-event}/run.d.ts +0 -0
  397. /package/{v1 → src/v1}/examples/durable-event/run.js +0 -0
  398. /package/{v1 → src/v1}/examples/durable-event/worker.d.ts +0 -0
  399. /package/{v1 → src/v1}/examples/durable-event/worker.js +0 -0
  400. /package/{v1 → src/v1}/examples/durable-event/workflow.d.ts +0 -0
  401. /package/{v1 → src/v1}/examples/durable-sleep/event.d.ts +0 -0
  402. /package/{v1 → src/v1}/examples/durable-sleep/event.js +0 -0
  403. /package/{v1/examples/durable_event → src/v1/examples/durable-sleep}/run.d.ts +0 -0
  404. /package/{v1 → src/v1}/examples/durable-sleep/run.js +0 -0
  405. /package/{v1 → src/v1}/examples/durable-sleep/worker.d.ts +0 -0
  406. /package/{v1 → src/v1}/examples/durable-sleep/worker.js +0 -0
  407. /package/{v1 → src/v1}/examples/durable-sleep/workflow.d.ts +0 -0
  408. /package/{v1 → src/v1}/examples/durable_event/event.d.ts +0 -0
  409. /package/{v1 → src/v1}/examples/durable_event/event.js +0 -0
  410. /package/{v1/examples/durable_sleep → src/v1/examples/durable_event}/run.d.ts +0 -0
  411. /package/{v1 → src/v1}/examples/durable_event/run.js +0 -0
  412. /package/{v1 → src/v1}/examples/durable_event/worker.d.ts +0 -0
  413. /package/{v1 → src/v1}/examples/durable_event/worker.js +0 -0
  414. /package/{v1 → src/v1}/examples/durable_event/workflow.d.ts +0 -0
  415. /package/{v1 → src/v1}/examples/durable_sleep/event.d.ts +0 -0
  416. /package/{v1 → src/v1}/examples/durable_sleep/event.js +0 -0
  417. /package/{v1/examples/high-memory → src/v1/examples/durable_sleep}/run.d.ts +0 -0
  418. /package/{v1 → src/v1}/examples/durable_sleep/run.js +0 -0
  419. /package/{v1 → src/v1}/examples/durable_sleep/worker.d.ts +0 -0
  420. /package/{v1 → src/v1}/examples/durable_sleep/worker.js +0 -0
  421. /package/{v1 → src/v1}/examples/durable_sleep/workflow.d.ts +0 -0
  422. /package/{v1 → src/v1}/examples/e2e-worker.d.ts +0 -0
  423. /package/{v1 → src/v1}/examples/e2e-worker.js +0 -0
  424. /package/{v1 → src/v1}/examples/events/event.d.ts +0 -0
  425. /package/{v1 → src/v1}/examples/events/event.js +0 -0
  426. /package/{v1 → src/v1}/examples/events/filter.d.ts +0 -0
  427. /package/{v1 → src/v1}/examples/events/filter.js +0 -0
  428. /package/{v1 → src/v1}/examples/events/worker.d.ts +0 -0
  429. /package/{v1 → src/v1}/examples/events/worker.js +0 -0
  430. /package/{v1 → src/v1}/examples/events/workflow.d.ts +0 -0
  431. /package/{v1 → src/v1}/examples/events/workflow.js +0 -0
  432. /package/{v1 → src/v1}/examples/high-memory/child-worker.d.ts +0 -0
  433. /package/{v1 → src/v1}/examples/high-memory/child-worker.js +0 -0
  434. /package/{v1 → src/v1}/examples/high-memory/parent-worker.d.ts +0 -0
  435. /package/{v1 → src/v1}/examples/high-memory/parent-worker.js +0 -0
  436. /package/{v1/examples/inferred-typing → src/v1/examples/high-memory}/run.d.ts +0 -0
  437. /package/{v1 → src/v1}/examples/high-memory/run.js +0 -0
  438. /package/{v1 → src/v1}/examples/high-memory/workflow-with-child.d.ts +0 -0
  439. /package/{v1 → src/v1}/examples/high-memory/workflow-with-child.js +0 -0
  440. /package/{v1/examples/legacy → src/v1/examples/inferred-typing}/run.d.ts +0 -0
  441. /package/{v1 → src/v1}/examples/inferred-typing/run.js +0 -0
  442. /package/{v1 → src/v1}/examples/inferred-typing/worker.d.ts +0 -0
  443. /package/{v1 → src/v1}/examples/inferred-typing/worker.js +0 -0
  444. /package/{v1 → src/v1}/examples/inferred-typing/workflow.d.ts +0 -0
  445. /package/{v1 → src/v1}/examples/inferred-typing/workflow.js +0 -0
  446. /package/{v1 → src/v1}/examples/landing_page/durable-excution.d.ts +0 -0
  447. /package/{v1 → src/v1}/examples/landing_page/event-signaling.d.ts +0 -0
  448. /package/{v1 → src/v1}/examples/landing_page/event-signaling.js +0 -0
  449. /package/{v1 → src/v1}/examples/landing_page/flow-control.d.ts +0 -0
  450. /package/{v1 → src/v1}/examples/landing_page/queues.d.ts +0 -0
  451. /package/{v1 → src/v1}/examples/landing_page/queues.js +0 -0
  452. /package/{v1 → src/v1}/examples/landing_page/scheduling.d.ts +0 -0
  453. /package/{v1 → src/v1}/examples/landing_page/scheduling.js +0 -0
  454. /package/{v1 → src/v1}/examples/landing_page/task-routing.d.ts +0 -0
  455. /package/{v1 → src/v1}/examples/landing_page/task-routing.js +0 -0
  456. /package/{v1/examples/middleware → src/v1/examples/legacy}/run.d.ts +0 -0
  457. /package/{v1 → src/v1}/examples/legacy/run.js +0 -0
  458. /package/{v1 → src/v1}/examples/legacy/worker.d.ts +0 -0
  459. /package/{v1 → src/v1}/examples/legacy/worker.js +0 -0
  460. /package/{v1 → src/v1}/examples/legacy/workflow.js +0 -0
  461. /package/{v1 → src/v1}/examples/logger/byo-logger.d.ts +0 -0
  462. /package/{v1 → src/v1}/examples/logger/logger.d.ts +0 -0
  463. /package/{v1 → src/v1}/examples/logger/logger.js +0 -0
  464. /package/{v1 → src/v1}/examples/logger/workflow.js +0 -0
  465. /package/{v1 → src/v1}/examples/logging/byo-logger.d.ts +0 -0
  466. /package/{v1 → src/v1}/examples/logging/logger.d.ts +0 -0
  467. /package/{v1 → src/v1}/examples/logging/logger.js +0 -0
  468. /package/{v1 → src/v1}/examples/middleware/recipes.d.ts +0 -0
  469. /package/{v1/examples/multiple_wf_concurrency → src/v1/examples/middleware}/run.d.ts +0 -0
  470. /package/{v1 → src/v1}/examples/middleware/run.js +0 -0
  471. /package/{v1 → src/v1}/examples/middleware/worker.d.ts +0 -0
  472. /package/{v1 → src/v1}/examples/middleware/worker.js +0 -0
  473. /package/{v1 → src/v1}/examples/middleware/workflow.d.ts +0 -0
  474. /package/{v1 → src/v1}/examples/middleware/workflow.js +0 -0
  475. /package/{v1 → src/v1}/examples/migration-guides/mergent.d.ts +0 -0
  476. /package/{v1 → src/v1}/examples/migration-guides/mergent.js +0 -0
  477. /package/{v1/examples/non_retryable → src/v1/examples/multiple_wf_concurrency}/run.d.ts +0 -0
  478. /package/{v1 → src/v1}/examples/multiple_wf_concurrency/run.js +0 -0
  479. /package/{v1 → src/v1}/examples/multiple_wf_concurrency/worker.d.ts +0 -0
  480. /package/{v1 → src/v1}/examples/multiple_wf_concurrency/worker.js +0 -0
  481. /package/{v1/examples/on_failure → src/v1/examples/non_retryable}/run.d.ts +0 -0
  482. /package/{v1 → src/v1}/examples/non_retryable/run.js +0 -0
  483. /package/{v1 → src/v1}/examples/non_retryable/worker.d.ts +0 -0
  484. /package/{v1 → src/v1}/examples/non_retryable/worker.js +0 -0
  485. /package/{v1 → src/v1}/examples/non_retryable/workflow.d.ts +0 -0
  486. /package/{v1 → src/v1}/examples/on_cron/worker.d.ts +0 -0
  487. /package/{v1 → src/v1}/examples/on_cron/worker.js +0 -0
  488. /package/{v1 → src/v1}/examples/on_cron/workflow.d.ts +0 -0
  489. /package/{v1 → src/v1}/examples/on_cron/workflow.js +0 -0
  490. /package/{v1 → src/v1}/examples/on_event/event.d.ts +0 -0
  491. /package/{v1 → src/v1}/examples/on_event/event.js +0 -0
  492. /package/{v1 → src/v1}/examples/on_event/filter.d.ts +0 -0
  493. /package/{v1 → src/v1}/examples/on_event/filter.js +0 -0
  494. /package/{v1 → src/v1}/examples/on_event/worker.d.ts +0 -0
  495. /package/{v1 → src/v1}/examples/on_event/worker.js +0 -0
  496. /package/{v1 → src/v1}/examples/on_event/workflow.d.ts +0 -0
  497. /package/{v1 → src/v1}/examples/on_event/workflow.js +0 -0
  498. /package/{v1/examples/on_success → src/v1/examples/on_failure}/run.d.ts +0 -0
  499. /package/{v1 → src/v1}/examples/on_failure/run.js +0 -0
  500. /package/{v1 → src/v1}/examples/on_failure/worker.d.ts +0 -0
  501. /package/{v1 → src/v1}/examples/on_failure/worker.js +0 -0
  502. /package/{v1 → src/v1}/examples/on_failure/workflow.d.ts +0 -0
  503. /package/{v1 → src/v1}/examples/on_failure/workflow.js +0 -0
  504. /package/{v1/examples/priority → src/v1/examples/on_success}/run.d.ts +0 -0
  505. /package/{v1 → src/v1}/examples/on_success/run.js +0 -0
  506. /package/{v1 → src/v1}/examples/on_success/worker.d.ts +0 -0
  507. /package/{v1 → src/v1}/examples/on_success/worker.js +0 -0
  508. /package/{v1 → src/v1}/examples/on_success/workflow.d.ts +0 -0
  509. /package/{v1 → src/v1}/examples/on_success/workflow.js +0 -0
  510. /package/{v1/examples/quickstart → src/v1/examples/priority}/run.d.ts +0 -0
  511. /package/{v1 → src/v1}/examples/priority/worker.d.ts +0 -0
  512. /package/{v1 → src/v1}/examples/priority/worker.js +0 -0
  513. /package/{v1/examples/retries → src/v1/examples/quickstart}/run.d.ts +0 -0
  514. /package/{v1 → src/v1}/examples/quickstart/run.js +0 -0
  515. /package/{v1 → src/v1}/examples/quickstart/worker.d.ts +0 -0
  516. /package/{v1 → src/v1}/examples/quickstart/worker.js +0 -0
  517. /package/{v1 → src/v1}/examples/quickstart/workflows/first-task.d.ts +0 -0
  518. /package/{v1 → src/v1}/examples/quickstart/workflows/first-task.js +0 -0
  519. /package/{v1 → src/v1}/examples/rate_limit/workflow.d.ts +0 -0
  520. /package/{v1/examples/sticky → src/v1/examples/retries}/run.d.ts +0 -0
  521. /package/{v1 → src/v1}/examples/retries/run.js +0 -0
  522. /package/{v1 → src/v1}/examples/retries/worker.d.ts +0 -0
  523. /package/{v1 → src/v1}/examples/retries/worker.js +0 -0
  524. /package/{v1 → src/v1}/examples/retries/workflow.d.ts +0 -0
  525. /package/{v1 → src/v1}/examples/retries/workflow.js +0 -0
  526. /package/{v1 → src/v1}/examples/return_exceptions/workflow.d.ts +0 -0
  527. /package/{v1 → src/v1}/examples/return_exceptions/workflow.js +0 -0
  528. /package/{v1 → src/v1}/examples/run_details/workflow.d.ts +0 -0
  529. /package/{v1 → src/v1}/examples/simple/bulk.d.ts +0 -0
  530. /package/{v1 → src/v1}/examples/simple/bulk.js +0 -0
  531. /package/{v1 → src/v1}/examples/simple/client-run.d.ts +0 -0
  532. /package/{v1 → src/v1}/examples/simple/client-run.js +0 -0
  533. /package/{v1 → src/v1}/examples/simple/cron.d.ts +0 -0
  534. /package/{v1 → src/v1}/examples/simple/cron.js +0 -0
  535. /package/{v1 → src/v1}/examples/simple/delay.d.ts +0 -0
  536. /package/{v1 → src/v1}/examples/simple/delay.js +0 -0
  537. /package/{v1 → src/v1}/examples/simple/e2e-workflows.js +0 -0
  538. /package/{v1 → src/v1}/examples/simple/enqueue.d.ts +0 -0
  539. /package/{v1 → src/v1}/examples/simple/enqueue.js +0 -0
  540. /package/{v1 → src/v1}/examples/simple/replay-cancel.d.ts +0 -0
  541. /package/{v1 → src/v1}/examples/simple/run.d.ts +0 -0
  542. /package/{v1 → src/v1}/examples/simple/run.js +0 -0
  543. /package/{v1 → src/v1}/examples/simple/schedule.d.ts +0 -0
  544. /package/{v1 → src/v1}/examples/simple/schedule.js +0 -0
  545. /package/{v1 → src/v1}/examples/simple/stub-workflow.d.ts +0 -0
  546. /package/{v1 → src/v1}/examples/simple/stub-workflow.js +0 -0
  547. /package/{v1 → src/v1}/examples/simple/typed-run-methods.d.ts +0 -0
  548. /package/{v1 → src/v1}/examples/simple/typed-run-methods.js +0 -0
  549. /package/{v1 → src/v1}/examples/simple/worker.d.ts +0 -0
  550. /package/{v1 → src/v1}/examples/simple/worker.js +0 -0
  551. /package/{v1 → src/v1}/examples/simple/workflow-with-child.d.ts +0 -0
  552. /package/{v1 → src/v1}/examples/simple/workflow-with-child.js +0 -0
  553. /package/{v1 → src/v1}/examples/simple/workflow.d.ts +0 -0
  554. /package/{v1 → src/v1}/examples/simple/workflow.js +0 -0
  555. /package/{v1 → src/v1}/examples/simple/zod.d.ts +0 -0
  556. /package/{v1 → src/v1}/examples/simple/zod.js +0 -0
  557. /package/{v1/examples/streaming → src/v1/examples/sticky}/run.d.ts +0 -0
  558. /package/{v1 → src/v1}/examples/sticky/run.js +0 -0
  559. /package/{v1 → src/v1}/examples/sticky/worker.d.ts +0 -0
  560. /package/{v1 → src/v1}/examples/sticky/worker.js +0 -0
  561. /package/{v1 → src/v1}/examples/streaming/nextjs-proxy.d.ts +0 -0
  562. /package/{v1 → src/v1}/examples/streaming/nextjs-proxy.js +0 -0
  563. /package/{v1/examples/timeout → src/v1/examples/streaming}/run.d.ts +0 -0
  564. /package/{v1 → src/v1}/examples/streaming/run.js +0 -0
  565. /package/{v1 → src/v1}/examples/streaming/worker.d.ts +0 -0
  566. /package/{v1 → src/v1}/examples/streaming/worker.js +0 -0
  567. /package/{v1 → src/v1}/examples/streaming/workflow.d.ts +0 -0
  568. /package/{v1 → src/v1}/examples/streaming/workflow.js +0 -0
  569. /package/{v1/examples/timeouts → src/v1/examples/timeout}/run.d.ts +0 -0
  570. /package/{v1 → src/v1}/examples/timeout/run.js +0 -0
  571. /package/{v1 → src/v1}/examples/timeout/worker.d.ts +0 -0
  572. /package/{v1 → src/v1}/examples/timeout/worker.js +0 -0
  573. /package/{v1 → src/v1}/examples/timeout/workflow.d.ts +0 -0
  574. /package/{v1/examples/timeouts/worker.d.ts → src/v1/examples/timeouts/run.d.ts} +0 -0
  575. /package/{v1 → src/v1}/examples/timeouts/run.js +0 -0
  576. /package/{v1 → src/v1}/examples/timeouts/worker.js +0 -0
  577. /package/{v1 → src/v1}/examples/timeouts/workflow.d.ts +0 -0
  578. /package/{v1 → src/v1}/examples/webhooks/workflow.d.ts +0 -0
  579. /package/{v1 → src/v1}/examples/webhooks/workflow.js +0 -0
  580. /package/{v1 → src/v1}/examples/with_timeouts/workflow.d.ts +0 -0
  581. /package/{v1 → src/v1}/index.d.ts +0 -0
  582. /package/{v1 → src/v1}/index.js +0 -0
  583. /package/{v1 → src/v1}/parent-run-context-vars.d.ts +0 -0
  584. /package/{v1 → src/v1}/parent-run-context-vars.js +0 -0
  585. /package/{v1 → src/v1}/slot-types.d.ts +0 -0
  586. /package/{v1 → src/v1}/slot-types.js +0 -0
  587. /package/{v1 → src/v1}/types.js +0 -0
@@ -1,11 +1,17 @@
1
- import { ClientConfig } from '../../clients/hatchet-client/client-config';
2
- import WorkflowRunRef from '../../util/workflow-run-ref';
3
- import { Priority, RateLimitDuration, RunsClient } from './..';
4
- import { RunListenerClient } from '../../clients/listeners/run-listener/child-listener-client';
5
- import { Api } from '../../clients/rest/generated/Api';
6
- import { WorkflowServiceClient } from '../../protoc/workflows';
7
- import { AdminServiceClient, CreateWorkflowVersionRequest } from '../../protoc/v1/workflows';
8
- import { Logger } from '../../util/logger';
1
+ import { ClientConfig } from '../../../clients/hatchet-client/client-config';
2
+ import WorkflowRunRef from '../../../util/workflow-run-ref';
3
+ import { Priority, RateLimitDuration, RunsClient } from '../../../v1';
4
+ import { RunListenerClient } from '../../../clients/listeners/run-listener/child-listener-client';
5
+ import { Api } from '../../../clients/rest/generated/Api';
6
+ import { WorkerLabelComparator, WorkflowServiceClient } from '../../../protoc/workflows';
7
+ import { AdminServiceClient, CreateWorkflowVersionRequest } from '../../../protoc/v1/workflows';
8
+ import { Logger } from '../../../util/logger';
9
+ type DesiredWorkerLabelOpt = {
10
+ value: string | number;
11
+ required?: boolean;
12
+ weight?: number;
13
+ comparator?: WorkerLabelComparator;
14
+ };
9
15
  export type WorkflowRun<T = object> = {
10
16
  workflowName: string;
11
17
  input: T;
@@ -39,7 +45,7 @@ export declare class AdminClient {
39
45
  * Creates a new workflow or updates an existing workflow via the v1 admin service.
40
46
  * @param workflow a workflow definition to create
41
47
  */
42
- putWorkflow(workflow: CreateWorkflowVersionRequest): Promise<import("../../protoc/v1/workflows").CreateWorkflowVersionResponse>;
48
+ putWorkflow(workflow: CreateWorkflowVersionRequest): Promise<import("../../../protoc/v1/workflows").CreateWorkflowVersionResponse>;
43
49
  /**
44
50
  * Run a new instance of a workflow with the given input. This will create a new workflow run and return the ID of the
45
51
  * new run.
@@ -66,6 +72,7 @@ export declare class AdminClient {
66
72
  additionalMetadata?: Record<string, string> | undefined;
67
73
  desiredWorkerId?: string | undefined;
68
74
  priority?: Priority;
75
+ desiredWorkerLabels?: Record<string, DesiredWorkerLabelOpt>;
69
76
  _standaloneTaskName?: string | undefined;
70
77
  }): Promise<WorkflowRunRef<P>>;
71
78
  /**
@@ -95,8 +102,10 @@ export declare class AdminClient {
95
102
  additionalMetadata?: Record<string, string> | undefined;
96
103
  desiredWorkerId?: string | undefined;
97
104
  priority?: Priority;
105
+ desiredWorkerLabels?: Record<string, DesiredWorkerLabelOpt>;
98
106
  _standaloneTaskName?: string | undefined;
99
107
  };
100
108
  }>, batchSize?: number): Promise<WorkflowRunRef<P>[]>;
101
109
  putRateLimit(key: string, limit: number, duration?: RateLimitDuration): Promise<void>;
102
110
  }
111
+ export {};
@@ -24,15 +24,27 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.AdminClient = void 0;
27
- const hatchet_error_1 = __importDefault(require("../../util/errors/hatchet-error"));
28
- const workflow_run_ref_1 = __importDefault(require("../../util/workflow-run-ref"));
29
- const grpc_helpers_1 = require("../../util/grpc-helpers");
30
- const child_listener_client_1 = require("../../clients/listeners/run-listener/child-listener-client");
31
- const workflows_1 = require("../../protoc/workflows");
32
- const workflows_2 = require("../../protoc/v1/workflows");
33
- const retrier_1 = require("../../util/retrier");
34
- const batch_1 = require("../../util/batch");
35
- const apply_namespace_1 = require("../../util/apply-namespace");
27
+ const hatchet_error_1 = __importDefault(require("../../../util/errors/hatchet-error"));
28
+ const workflow_run_ref_1 = __importDefault(require("../../../util/workflow-run-ref"));
29
+ const grpc_helpers_1 = require("../../../util/grpc-helpers");
30
+ const child_listener_client_1 = require("../../../clients/listeners/run-listener/child-listener-client");
31
+ const workflows_1 = require("../../../protoc/workflows");
32
+ const workflows_2 = require("../../../protoc/v1/workflows");
33
+ const retrier_1 = require("../../../util/retrier");
34
+ const batch_1 = require("../../../util/batch");
35
+ const apply_namespace_1 = require("../../../util/apply-namespace");
36
+ function convertDesiredWorkerLabels(labels) {
37
+ return Object.fromEntries(Object.entries(labels).map(([key, label]) => [
38
+ key,
39
+ {
40
+ strValue: typeof label.value === 'string' ? label.value : undefined,
41
+ intValue: typeof label.value === 'number' ? label.value : undefined,
42
+ required: label.required,
43
+ weight: label.weight,
44
+ comparator: label.comparator,
45
+ },
46
+ ]));
47
+ }
36
48
  class AdminClient {
37
49
  constructor(config, api, runs) {
38
50
  this.config = config;
@@ -71,10 +83,12 @@ class AdminClient {
71
83
  const computedName = (0, apply_namespace_1.applyNamespace)(workflowName, this.config.namespace).toLowerCase();
72
84
  const inputStr = JSON.stringify(input);
73
85
  const opts = options !== null && options !== void 0 ? options : {};
74
- const { additionalMetadata, parentStepRunId, parentTaskRunExternalId } = opts, rest = __rest(opts, ["additionalMetadata", "parentStepRunId", "parentTaskRunExternalId"]);
86
+ const { additionalMetadata, parentStepRunId, parentTaskRunExternalId, desiredWorkerLabels } = opts, rest = __rest(opts, ["additionalMetadata", "parentStepRunId", "parentTaskRunExternalId", "desiredWorkerLabels"]);
75
87
  const request = Object.assign(Object.assign({ name: computedName, input: inputStr }, rest), {
76
88
  // API expects `parentTaskRunExternalId`; accept old names as aliases.
77
- parentTaskRunExternalId: parentTaskRunExternalId !== null && parentTaskRunExternalId !== void 0 ? parentTaskRunExternalId : parentStepRunId, additionalMetadata: additionalMetadata ? JSON.stringify(additionalMetadata) : undefined, priority: opts.priority });
89
+ parentTaskRunExternalId: parentTaskRunExternalId !== null && parentTaskRunExternalId !== void 0 ? parentTaskRunExternalId : parentStepRunId, additionalMetadata: additionalMetadata ? JSON.stringify(additionalMetadata) : undefined, priority: opts.priority, desiredWorkerLabels: desiredWorkerLabels
90
+ ? convertDesiredWorkerLabels(desiredWorkerLabels)
91
+ : {} });
78
92
  const resp = yield (0, retrier_1.retrier)(() => __awaiter(this, void 0, void 0, function* () { return this.workflowsGrpc.triggerWorkflow(request); }), this.logger);
79
93
  const id = resp.workflowRunId;
80
94
  const ref = new workflow_run_ref_1.default(id, this.listenerClient, this.runs, options === null || options === void 0 ? void 0 : options.parentId,
@@ -101,10 +115,12 @@ class AdminClient {
101
115
  const computedName = (0, apply_namespace_1.applyNamespace)(workflowName, this.config.namespace).toLowerCase();
102
116
  const inputStr = JSON.stringify(input);
103
117
  const opts = options !== null && options !== void 0 ? options : {};
104
- const { additionalMetadata, parentStepRunId, parentTaskRunExternalId } = opts, rest = __rest(opts, ["additionalMetadata", "parentStepRunId", "parentTaskRunExternalId"]);
118
+ const { additionalMetadata, parentStepRunId, parentTaskRunExternalId, desiredWorkerLabels } = opts, rest = __rest(opts, ["additionalMetadata", "parentStepRunId", "parentTaskRunExternalId", "desiredWorkerLabels"]);
105
119
  return Object.assign(Object.assign({ name: computedName, input: inputStr }, rest), {
106
120
  // API expects `parentTaskRunExternalId`; accept old names as aliases.
107
- parentTaskRunExternalId: parentTaskRunExternalId !== null && parentTaskRunExternalId !== void 0 ? parentTaskRunExternalId : parentStepRunId, additionalMetadata: additionalMetadata ? JSON.stringify(additionalMetadata) : undefined });
121
+ parentTaskRunExternalId: parentTaskRunExternalId !== null && parentTaskRunExternalId !== void 0 ? parentTaskRunExternalId : parentStepRunId, additionalMetadata: additionalMetadata ? JSON.stringify(additionalMetadata) : undefined, desiredWorkerLabels: desiredWorkerLabels
122
+ ? convertDesiredWorkerLabels(desiredWorkerLabels)
123
+ : {} });
108
124
  });
109
125
  const limit = 4 * 1024 * 1024; // FIXME configurable GRPC limit
110
126
  const batches = (0, batch_1.batch)(workflowRequests, batchSize, limit);
@@ -1,12 +1,18 @@
1
- import { ClientConfig, HatchetClientOptions, LegacyHatchetClient, TaskMiddleware, InferMiddlewareBefore, InferMiddlewareAfter } from '../../clients/hatchet-client';
1
+ /**
2
+ * This is the TypeScript SDK reference, documenting methods available for interacting with Hatchet resources.
3
+ * Check out the [user guide](https://docs.hatchet.run/home/) for an introduction to getting your first tasks running.
4
+ *
5
+ * @module Hatchet TypeScript SDK Reference
6
+ */
7
+ import { ClientConfig, HatchetClientOptions, LegacyHatchetClient, TaskMiddleware, InferMiddlewareBefore, InferMiddlewareAfter } from '../../../clients/hatchet-client';
2
8
  import { AxiosRequestConfig } from 'axios';
3
- import WorkflowRunRef from '../../util/workflow-run-ref';
4
- import { Api } from '../../clients/rest';
5
- import { EventClient } from '../../clients/event/event-client';
6
- import { DispatcherClient } from '../../clients/dispatcher/dispatcher-client';
7
- import { Logger } from '../../util/logger';
8
- import { RunListenerClient } from '../../clients/listeners/run-listener/child-listener-client';
9
- import { DurableListenerClient } from '../../clients/listeners/durable-listener/durable-listener-client';
9
+ import WorkflowRunRef from '../../../util/workflow-run-ref';
10
+ import { Api } from '../../../clients/rest';
11
+ import { EventClient } from '../../../clients/event/event-client';
12
+ import { DispatcherClient } from '../../../clients/dispatcher/dispatcher-client';
13
+ import { Logger } from '../../../util/logger';
14
+ import { RunListenerClient } from '../../../clients/listeners/run-listener/child-listener-client';
15
+ import { DurableListenerClient } from '../../../clients/listeners/durable-listener/durable-listener-client';
10
16
  import { CreateTaskWorkflowOpts, CreateWorkflowOpts, RunOpts, BaseWorkflowDeclaration, WorkflowDeclaration, TaskWorkflowDeclaration, CreateDurableTaskWorkflowOpts } from '../declaration';
11
17
  import type { LegacyWorkflow } from '../../legacy/legacy-transformer';
12
18
  import { IHatchetClient } from './client.interface';
@@ -44,6 +50,7 @@ export declare class HatchetClient<GlobalInput extends Record<string, any> = {},
44
50
  private _credentials;
45
51
  /**
46
52
  * @deprecated v0 client will be removed in a future release, please upgrade to v1
53
+ * @hidden
47
54
  */
48
55
  get v0(): LegacyHatchetClient;
49
56
  /** The tenant ID for the Hatchet client */
@@ -56,6 +63,7 @@ export declare class HatchetClient<GlobalInput extends Record<string, any> = {},
56
63
  * @param config - Optional configuration for the client
57
64
  * @param options - Optional client options
58
65
  * @param axiosConfig - Optional Axios configuration for HTTP requests
66
+ * @internal
59
67
  */
60
68
  constructor(config?: Partial<ClientConfig>, options?: HatchetClientOptions, axiosConfig?: AxiosRequestConfig);
61
69
  /**
@@ -66,6 +74,7 @@ export declare class HatchetClient<GlobalInput extends Record<string, any> = {},
66
74
  * @param options - Optional client options.
67
75
  * @param axiosConfig - Optional Axios configuration for HTTP requests.
68
76
  * @returns A new Hatchet client instance. Chain `.withMiddleware()` to attach typed middleware.
77
+ * @internal
69
78
  */
70
79
  static init<T extends Record<string, any> = {}, U extends Record<string, any> = {}>(config?: Omit<Partial<ClientConfig>, 'middleware'>, options?: HatchetClientOptions, axiosConfig?: AxiosRequestConfig): HatchetClient<T, U>;
71
80
  /**
@@ -74,6 +83,7 @@ export declare class HatchetClient<GlobalInput extends Record<string, any> = {},
74
83
  *
75
84
  * Use this after `init<T, U>()` to get full middleware return-type inference
76
85
  * that TypeScript can't provide when global types are explicitly set on `init`.
86
+ * @internal
77
87
  */
78
88
  withMiddleware<const M extends TaskMiddleware<Resolved<GlobalInput, MiddlewareBefore>, Resolved<GlobalOutput, MiddlewareAfter>>>(middleware: M): HatchetClient<GlobalInput, GlobalOutput, MiddlewareBefore & InferMiddlewareBefore<M>, MiddlewareAfter & InferMiddlewareAfter<M>>;
79
89
  private _config;
@@ -134,12 +144,12 @@ export declare class HatchetClient<GlobalInput extends Record<string, any> = {},
134
144
  */
135
145
  runNoWait<I extends InputType = UnknownInputType, O extends OutputType = void>(workflow: BaseWorkflowDeclaration<I, O> | LegacyWorkflow | string, input: I, options: RunOpts): Promise<WorkflowRunRef<O>>;
136
146
  /**
137
- * @alias run
138
147
  * Triggers a workflow run and waits for the result.
139
148
  * @template I - The input type for the workflow
140
149
  * @template O - The return type of the workflow
141
150
  * @param workflow - The workflow to run, either as a Workflow instance or workflow name
142
151
  * @param input - The input data for the workflow
152
+ * @alias run
143
153
  * @param options - Configuration options for the workflow run
144
154
  * @returns A promise that resolves with the workflow result
145
155
  */
@@ -158,6 +168,7 @@ export declare class HatchetClient<GlobalInput extends Record<string, any> = {},
158
168
  /**
159
169
  * Get the CEL client for debugging CEL expressions
160
170
  * @returns A CEL client instance
171
+ * @internal
161
172
  */
162
173
  get cel(): CELClient;
163
174
  private _crons;
@@ -170,6 +181,7 @@ export declare class HatchetClient<GlobalInput extends Record<string, any> = {},
170
181
  * Get the cron client for creating and managing cron workflow runs
171
182
  * @returns A cron client instance
172
183
  * @deprecated use client.crons instead
184
+ * @hidden
173
185
  */
174
186
  get cron(): CronClient;
175
187
  private _scheduled;
@@ -182,6 +194,7 @@ export declare class HatchetClient<GlobalInput extends Record<string, any> = {},
182
194
  * Get the schedule client for creating and managing scheduled workflow runs
183
195
  * @returns A schedule client instance
184
196
  * @deprecated use client.scheduled instead
197
+ * @hidden
185
198
  */
186
199
  get schedule(): ScheduleClient;
187
200
  /**
@@ -192,6 +205,7 @@ export declare class HatchetClient<GlobalInput extends Record<string, any> = {},
192
205
  /**
193
206
  * Get the dispatcher client for sending action events and managing worker registration
194
207
  * @returns A dispatcher client instance
208
+ * @internal
195
209
  */
196
210
  get dispatcher(): DispatcherClient;
197
211
  private _event;
@@ -204,15 +218,18 @@ export declare class HatchetClient<GlobalInput extends Record<string, any> = {},
204
218
  /**
205
219
  * Get the durable listener client for managing durable event subscriptions
206
220
  * @returns A durable listener client instance
221
+ * @internal
207
222
  */
208
223
  get durableListener(): DurableListenerClient;
209
224
  /**
210
225
  * Get the run listener client for streaming workflow run results
211
226
  * @returns A run listener client instance
227
+ * @internal
212
228
  */
213
229
  get listener(): RunListenerClient;
214
230
  /**
215
231
  * @deprecated use client.events instead
232
+ * @hidden
216
233
  */
217
234
  get event(): EventClient;
218
235
  private _metrics;
@@ -278,6 +295,7 @@ export declare class HatchetClient<GlobalInput extends Record<string, any> = {},
278
295
  /**
279
296
  * Get the admin client for creating and managing workflows
280
297
  * @returns A admin client instance
298
+ * @internal
281
299
  */
282
300
  get admin(): AdminClient;
283
301
  /**
@@ -1,6 +1,6 @@
1
- import { EventClient } from '../../clients/event/event-client';
2
- import { DispatcherClient } from '../../clients/dispatcher/dispatcher-client';
3
- import { Logger } from '../../util/logger';
1
+ import { EventClient } from '../../../clients/event/event-client';
2
+ import { DispatcherClient } from '../../../clients/dispatcher/dispatcher-client';
3
+ import { Logger } from '../../../util/logger';
4
4
  import { LegacyHatchetClient } from '../../legacy/legacy-client';
5
5
  import { MetricsClient } from './features/metrics';
6
6
  import { RunsClient } from './features/runs';
@@ -13,18 +13,24 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.HatchetClient = void 0;
16
+ /**
17
+ * This is the TypeScript SDK reference, documenting methods available for interacting with Hatchet resources.
18
+ * Check out the [user guide](https://docs.hatchet.run/home/) for an introduction to getting your first tasks running.
19
+ *
20
+ * @module Hatchet TypeScript SDK Reference
21
+ */
16
22
  /* eslint-disable no-dupe-class-members */
17
23
  /* eslint-disable no-underscore-dangle */
18
- const hatchet_client_1 = require("../../clients/hatchet-client");
19
- const rest_1 = __importDefault(require("../../clients/rest"));
20
- const config_loader_1 = require("../../util/config-loader");
21
- const hatchet_logger_1 = require("../../clients/hatchet-client/hatchet-logger");
24
+ const hatchet_client_1 = require("../../../clients/hatchet-client");
25
+ const rest_1 = __importDefault(require("../../../clients/rest"));
26
+ const config_loader_1 = require("../../../util/config-loader");
27
+ const hatchet_logger_1 = require("../../../clients/hatchet-client/hatchet-logger");
22
28
  const zod_1 = require("zod");
23
- const event_client_1 = require("../../clients/event/event-client");
24
- const dispatcher_client_1 = require("../../clients/dispatcher/dispatcher-client");
25
- const child_listener_client_1 = require("../../clients/listeners/run-listener/child-listener-client");
26
- const durable_listener_client_1 = require("../../clients/listeners/durable-listener/durable-listener-client");
27
- const grpc_helpers_1 = require("../../util/grpc-helpers");
29
+ const event_client_1 = require("../../../clients/event/event-client");
30
+ const dispatcher_client_1 = require("../../../clients/dispatcher/dispatcher-client");
31
+ const child_listener_client_1 = require("../../../clients/listeners/run-listener/child-listener-client");
32
+ const durable_listener_client_1 = require("../../../clients/listeners/durable-listener/durable-listener-client");
33
+ const grpc_helpers_1 = require("../../../util/grpc-helpers");
28
34
  const nice_grpc_1 = require("nice-grpc");
29
35
  const declaration_1 = require("../declaration");
30
36
  const legacy_transformer_1 = require("../../legacy/legacy-transformer");
@@ -52,6 +58,7 @@ const webhooks_1 = require("./features/webhooks");
52
58
  class HatchetClient {
53
59
  /**
54
60
  * @deprecated v0 client will be removed in a future release, please upgrade to v1
61
+ * @hidden
55
62
  */
56
63
  get v0() {
57
64
  if (!this._v0) {
@@ -67,6 +74,7 @@ class HatchetClient {
67
74
  * @param config - Optional configuration for the client
68
75
  * @param options - Optional client options
69
76
  * @param axiosConfig - Optional Axios configuration for HTTP requests
77
+ * @internal
70
78
  */
71
79
  constructor(config, options, axiosConfig) {
72
80
  var _a;
@@ -124,6 +132,7 @@ class HatchetClient {
124
132
  * @param options - Optional client options.
125
133
  * @param axiosConfig - Optional Axios configuration for HTTP requests.
126
134
  * @returns A new Hatchet client instance. Chain `.withMiddleware()` to attach typed middleware.
135
+ * @internal
127
136
  */
128
137
  static init(config, options, axiosConfig) {
129
138
  return new HatchetClient(config, options, axiosConfig);
@@ -134,6 +143,7 @@ class HatchetClient {
134
143
  *
135
144
  * Use this after `init<T, U>()` to get full middleware return-type inference
136
145
  * that TypeScript can't provide when global types are explicitly set on `init`.
146
+ * @internal
137
147
  */
138
148
  withMiddleware(middleware) {
139
149
  const existing = this._config.middleware || {};
@@ -192,12 +202,12 @@ class HatchetClient {
192
202
  });
193
203
  }
194
204
  /**
195
- * @alias run
196
205
  * Triggers a workflow run and waits for the result.
197
206
  * @template I - The input type for the workflow
198
207
  * @template O - The return type of the workflow
199
208
  * @param workflow - The workflow to run, either as a Workflow instance or workflow name
200
209
  * @param input - The input data for the workflow
210
+ * @alias run
201
211
  * @param options - Configuration options for the workflow run
202
212
  * @returns A promise that resolves with the workflow result
203
213
  */
@@ -224,6 +234,7 @@ class HatchetClient {
224
234
  /**
225
235
  * Get the CEL client for debugging CEL expressions
226
236
  * @returns A CEL client instance
237
+ * @internal
227
238
  */
228
239
  get cel() {
229
240
  if (!this._cel) {
@@ -245,6 +256,7 @@ class HatchetClient {
245
256
  * Get the cron client for creating and managing cron workflow runs
246
257
  * @returns A cron client instance
247
258
  * @deprecated use client.crons instead
259
+ * @hidden
248
260
  */
249
261
  get cron() {
250
262
  return this.crons;
@@ -263,6 +275,7 @@ class HatchetClient {
263
275
  * Get the schedule client for creating and managing scheduled workflow runs
264
276
  * @returns A schedule client instance
265
277
  * @deprecated use client.scheduled instead
278
+ * @hidden
266
279
  */
267
280
  get schedule() {
268
281
  return this.scheduled;
@@ -276,6 +289,7 @@ class HatchetClient {
276
289
  /**
277
290
  * Get the dispatcher client for sending action events and managing worker registration
278
291
  * @returns A dispatcher client instance
292
+ * @internal
279
293
  */
280
294
  get dispatcher() {
281
295
  if (!this._dispatcher) {
@@ -296,6 +310,7 @@ class HatchetClient {
296
310
  /**
297
311
  * Get the durable listener client for managing durable event subscriptions
298
312
  * @returns A durable listener client instance
313
+ * @internal
299
314
  */
300
315
  get durableListener() {
301
316
  if (!this._durableListener) {
@@ -306,12 +321,14 @@ class HatchetClient {
306
321
  /**
307
322
  * Get the run listener client for streaming workflow run results
308
323
  * @returns A run listener client instance
324
+ * @internal
309
325
  */
310
326
  get listener() {
311
327
  return this._listener;
312
328
  }
313
329
  /**
314
330
  * @deprecated use client.events instead
331
+ * @hidden
315
332
  */
316
333
  get event() {
317
334
  return this.events;
@@ -414,6 +431,7 @@ class HatchetClient {
414
431
  /**
415
432
  * Get the admin client for creating and managing workflows
416
433
  * @returns A admin client instance
434
+ * @internal
417
435
  */
418
436
  get admin() {
419
437
  if (!this._admin) {
@@ -1,4 +1,4 @@
1
- import { V1CELDebugResponseStatus } from '../../../clients/rest/generated/data-contracts';
1
+ import { V1CELDebugResponseStatus } from '../../../../clients/rest/generated/data-contracts';
2
2
  import { HatchetClient } from '../client';
3
3
  export type DebugCELInput = {
4
4
  expression: string;
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CELClient = void 0;
13
13
  const axios_1 = require("axios");
14
- const data_contracts_1 = require("../../../clients/rest/generated/data-contracts");
14
+ const data_contracts_1 = require("../../../../clients/rest/generated/data-contracts");
15
15
  /**
16
16
  * Client for debugging CEL expressions.
17
17
  */
@@ -1,11 +1,12 @@
1
- import { CronWorkflows, CronWorkflowsList } from '../../../clients/rest/generated/data-contracts';
1
+ import { CronWorkflows, CronWorkflowsList } from '../../../../clients/rest/generated/data-contracts';
2
2
  import { z } from 'zod';
3
- import { BaseWorkflowDeclaration } from '../..';
4
- import type { LegacyWorkflow } from '../../../legacy/legacy-transformer';
3
+ import { BaseWorkflowDeclaration } from '../../../../v1';
4
+ import type { LegacyWorkflow } from '../../../../legacy/legacy-transformer';
5
5
  import { HatchetClient } from '../client';
6
6
  import { WorkflowsClient } from './workflows';
7
7
  /**
8
8
  * Schema for creating a Cron Trigger.
9
+ * @internal
9
10
  */
10
11
  export declare const CreateCronTriggerSchema: z.ZodObject<{
11
12
  name: z.ZodString;
@@ -28,10 +29,11 @@ export declare const CreateCronTriggerSchema: z.ZodObject<{
28
29
  }>;
29
30
  /**
30
31
  * Type representing the input for creating a Cron.
32
+ * @internal
31
33
  */
32
34
  export type CreateCronInput = z.infer<typeof CreateCronTriggerSchema>;
33
35
  /**
34
- * Client for managing Cron Triggers.
36
+ * The cron client is a client for managing cron workflows within Hatchet.
35
37
  */
36
38
  export declare class CronClient {
37
39
  api: HatchetClient['api'];
@@ -23,11 +23,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
23
23
  exports.CronClient = exports.CreateCronTriggerSchema = void 0;
24
24
  const zod_1 = require("zod");
25
25
  const axios_1 = require("axios");
26
- const uuid_1 = require("../../../util/uuid");
27
- const apply_namespace_1 = require("../../../util/apply-namespace");
26
+ const uuid_1 = require("../../../../util/uuid");
27
+ const apply_namespace_1 = require("../../../../util/apply-namespace");
28
28
  const workflows_1 = require("./workflows");
29
29
  /**
30
30
  * Schema for creating a Cron Trigger.
31
+ * @internal
31
32
  */
32
33
  exports.CreateCronTriggerSchema = zod_1.z.object({
33
34
  name: zod_1.z.string(),
@@ -37,7 +38,7 @@ exports.CreateCronTriggerSchema = zod_1.z.object({
37
38
  priority: zod_1.z.number().optional(),
38
39
  });
39
40
  /**
40
- * Client for managing Cron Triggers.
41
+ * The cron client is a client for managing cron workflows within Hatchet.
41
42
  */
42
43
  class CronClient {
43
44
  constructor(client) {
@@ -10,14 +10,44 @@ export declare class FiltersClient {
10
10
  tenantId: string;
11
11
  api: HatchetClient['api'];
12
12
  constructor(client: HatchetClient);
13
+ /**
14
+ * Lists all filters.
15
+ * @param opts - The options for the list operation.
16
+ * @param opts.limit - The number of filters to return.
17
+ * @param opts.offset - The number of filters to skip before returning the result set.
18
+ * @param opts.workflowIds - A list of workflow IDs to filter by.
19
+ * @param opts.scopes - A list of scopes to filter by.
20
+ * @returns A promise that resolves to the list of filters.
21
+ */
13
22
  list(opts?: {
14
23
  limit?: number;
15
24
  offset?: number;
16
25
  workflowIds?: string[];
17
26
  scopes?: string[];
18
27
  }): Promise<import("../../../clients/rest/generated/data-contracts").V1FilterList>;
28
+ /**
29
+ * Gets a filter by its ID.
30
+ * @param filterId - The ID of the filter to get.
31
+ * @returns A promise that resolves to the filter.
32
+ */
19
33
  get(filterId: Parameters<typeof this.api.v1FilterGet>[1]): Promise<import("../../../clients/rest/generated/data-contracts").V1Filter>;
34
+ /**
35
+ * Creates a new filter.
36
+ * @param opts - The options for the create operation.
37
+ * @returns A promise that resolves to the created filter.
38
+ */
20
39
  create(opts: Parameters<typeof this.api.v1FilterCreate>[1]): Promise<import("../../../clients/rest/generated/data-contracts").V1Filter>;
40
+ /**
41
+ * Deletes a filter by its ID.
42
+ * @param filterId - The ID of the filter to delete.
43
+ * @returns A promise that resolves to the deleted filter.
44
+ */
21
45
  delete(filterId: Parameters<typeof this.api.v1FilterDelete>[1]): Promise<import("../../../clients/rest/generated/data-contracts").V1Filter>;
46
+ /**
47
+ * Updates a filter by its ID.
48
+ * @param filterId - The ID of the filter to update.
49
+ * @param updates - The updates to apply to the filter.
50
+ * @returns A promise that resolves to the updated filter.
51
+ */
22
52
  update(filterId: Parameters<typeof this.api.v1FilterDelete>[1], updates: Parameters<typeof this.api.v1FilterUpdate>[2]): Promise<import("../../../clients/rest/generated/data-contracts").V1Filter>;
23
53
  }
@@ -18,6 +18,15 @@ class FiltersClient {
18
18
  this.tenantId = client.tenantId;
19
19
  this.api = client.api;
20
20
  }
21
+ /**
22
+ * Lists all filters.
23
+ * @param opts - The options for the list operation.
24
+ * @param opts.limit - The number of filters to return.
25
+ * @param opts.offset - The number of filters to skip before returning the result set.
26
+ * @param opts.workflowIds - A list of workflow IDs to filter by.
27
+ * @param opts.scopes - A list of scopes to filter by.
28
+ * @returns A promise that resolves to the list of filters.
29
+ */
21
30
  list(opts) {
22
31
  return __awaiter(this, void 0, void 0, function* () {
23
32
  const { data } = yield this.api.v1FilterList(this.tenantId, {
@@ -29,24 +38,45 @@ class FiltersClient {
29
38
  return data;
30
39
  });
31
40
  }
41
+ /**
42
+ * Gets a filter by its ID.
43
+ * @param filterId - The ID of the filter to get.
44
+ * @returns A promise that resolves to the filter.
45
+ */
32
46
  get(filterId) {
33
47
  return __awaiter(this, void 0, void 0, function* () {
34
48
  const { data } = yield this.api.v1FilterGet(this.tenantId, filterId);
35
49
  return data;
36
50
  });
37
51
  }
52
+ /**
53
+ * Creates a new filter.
54
+ * @param opts - The options for the create operation.
55
+ * @returns A promise that resolves to the created filter.
56
+ */
38
57
  create(opts) {
39
58
  return __awaiter(this, void 0, void 0, function* () {
40
59
  const { data } = yield this.api.v1FilterCreate(this.tenantId, opts);
41
60
  return data;
42
61
  });
43
62
  }
63
+ /**
64
+ * Deletes a filter by its ID.
65
+ * @param filterId - The ID of the filter to delete.
66
+ * @returns A promise that resolves to the deleted filter.
67
+ */
44
68
  delete(filterId) {
45
69
  return __awaiter(this, void 0, void 0, function* () {
46
70
  const { data } = yield this.api.v1FilterDelete(this.tenantId, filterId);
47
71
  return data;
48
72
  });
49
73
  }
74
+ /**
75
+ * Updates a filter by its ID.
76
+ * @param filterId - The ID of the filter to update.
77
+ * @param updates - The updates to apply to the filter.
78
+ * @returns A promise that resolves to the updated filter.
79
+ */
50
80
  update(filterId, updates) {
51
81
  return __awaiter(this, void 0, void 0, function* () {
52
82
  const { data } = yield this.api.v1FilterUpdate(this.tenantId, filterId, updates);
@@ -7,19 +7,23 @@ export type TaskStatusMetrics = {
7
7
  running: number;
8
8
  };
9
9
  /**
10
- * MetricsClient is used to get metrics for workflows
10
+ * The metrics client is a client for reading metrics out of Hatchet’s metrics API.
11
11
  */
12
12
  export declare class MetricsClient {
13
13
  tenantId: string;
14
14
  api: HatchetClient['api'];
15
15
  constructor(client: HatchetClient);
16
16
  /**
17
- * Get task/run status metrics for a tenant.
18
- *
19
- * This backs the dashboard "runs list" status count badges.
20
- *
21
- * Endpoint: GET /api/v1/stable/tenants/{tenant}/task-metrics
17
+ * Returns aggregate task run counts grouped by status (queued, running, completed, failed, cancelled)
18
+ * @param query - Filters for the metrics query (e.g. `since`, `until`, `workflow_ids`).
19
+ * @param requestParams - Optional request-level overrides (headers, signal, etc.).
20
+ * @returns Counts per status for the matched task runs.
22
21
  */
23
22
  getTaskStatusMetrics(query: Parameters<typeof this.api.v1TaskListStatusMetrics>[1], requestParams?: Parameters<typeof this.api.v1TaskListStatusMetrics>[2]): Promise<TaskStatusMetrics>;
23
+ /**
24
+ * Returns the queue metrics for the current tenant.
25
+ * @param opts - The options for the request.
26
+ * @returns The queue metrics for the current tenant.
27
+ */
24
28
  getQueueMetrics(opts?: Parameters<typeof this.api.tenantGetStepRunQueueMetrics>[1]): Promise<import("../../../clients/rest/generated/data-contracts").TenantStepRunQueueMetrics>;
25
29
  }
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.MetricsClient = void 0;
13
13
  /**
14
- * MetricsClient is used to get metrics for workflows
14
+ * The metrics client is a client for reading metrics out of Hatchet’s metrics API.
15
15
  */
16
16
  class MetricsClient {
17
17
  constructor(client) {
@@ -19,11 +19,10 @@ class MetricsClient {
19
19
  this.api = client.api;
20
20
  }
21
21
  /**
22
- * Get task/run status metrics for a tenant.
23
- *
24
- * This backs the dashboard "runs list" status count badges.
25
- *
26
- * Endpoint: GET /api/v1/stable/tenants/{tenant}/task-metrics
22
+ * Returns aggregate task run counts grouped by status (queued, running, completed, failed, cancelled)
23
+ * @param query - Filters for the metrics query (e.g. `since`, `until`, `workflow_ids`).
24
+ * @param requestParams - Optional request-level overrides (headers, signal, etc.).
25
+ * @returns Counts per status for the matched task runs.
27
26
  */
28
27
  getTaskStatusMetrics(query, requestParams) {
29
28
  return __awaiter(this, void 0, void 0, function* () {
@@ -34,6 +33,11 @@ class MetricsClient {
34
33
  }, {});
35
34
  });
36
35
  }
36
+ /**
37
+ * Returns the queue metrics for the current tenant.
38
+ * @param opts - The options for the request.
39
+ * @returns The queue metrics for the current tenant.
40
+ */
37
41
  getQueueMetrics(opts) {
38
42
  return __awaiter(this, void 0, void 0, function* () {
39
43
  const { data } = yield this.api.tenantGetStepRunQueueMetrics(this.tenantId, opts);