@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.
- package/docs/doc_types.d.ts +12 -0
- package/docs/doc_types.js +62 -0
- package/docs/generate.js +87 -0
- package/docs/paths.d.ts +2 -0
- package/docs/paths.js +16 -0
- package/docs/shared.d.ts +3 -0
- package/docs/shared.js +6 -0
- package/package.json +5 -4
- package/{clients → src/clients}/admin/admin-client.d.ts +17 -9
- package/{clients → src/clients}/admin/admin-client.js +26 -10
- package/{clients → src/clients}/dispatcher/action-listener.d.ts +4 -4
- package/{clients → src/clients}/dispatcher/action-listener.js +3 -3
- package/{clients → src/clients}/dispatcher/dispatcher-client.d.ts +10 -10
- package/{clients → src/clients}/dispatcher/dispatcher-client.js +5 -5
- package/{clients → src/clients}/dispatcher/heartbeat/heartbeat-controller.d.ts +2 -2
- package/{clients → src/clients}/dispatcher/heartbeat/heartbeat-controller.js +14 -2
- package/{clients → src/clients}/dispatcher/heartbeat/heartbeat-worker.js +7 -6
- package/{clients → src/clients}/event/event-client.d.ts +8 -9
- package/{clients → src/clients}/event/event-client.js +6 -6
- package/{clients → src/clients}/hatchet-client/client-config.d.ts +17 -7
- package/{clients → src/clients}/hatchet-client/client-config.js +3 -0
- package/{clients → src/clients}/hatchet-client/hatchet-logger.d.ts +1 -1
- package/{clients → src/clients}/hatchet-client/hatchet-logger.js +2 -1
- package/src/clients/hatchet-client/index.d.ts +3 -0
- package/{clients → src/clients}/hatchet-client/index.js +2 -2
- package/{clients → src/clients}/listeners/durable-listener/durable-listener-client.d.ts +11 -5
- package/{clients → src/clients}/listeners/durable-listener/durable-listener-client.js +9 -1
- package/{clients → src/clients}/listeners/durable-listener/pooled-durable-listener-client.d.ts +11 -4
- package/{clients → src/clients}/listeners/durable-listener/pooled-durable-listener-client.js +68 -16
- package/{clients → src/clients}/listeners/run-listener/child-listener-client.d.ts +3 -3
- package/{clients → src/clients}/listeners/run-listener/child-listener-client.js +4 -3
- package/{clients → src/clients}/listeners/run-listener/pooled-child-listener-client.d.ts +11 -3
- package/{clients → src/clients}/listeners/run-listener/pooled-child-listener-client.js +65 -9
- package/src/clients/rest/api.js +21 -0
- package/{clients → src/clients}/rest/generated/Api.d.ts +2 -2
- package/{clients → src/clients}/rest/generated/data-contracts.d.ts +6 -0
- package/{index.d.ts → src/index.d.ts} +3 -4
- package/{index.js → src/index.js} +3 -4
- package/{examples → src/legacy/examples}/affinity-workers.js +2 -2
- package/{examples → src/legacy/examples}/bulk-fanout-trigger.js +1 -1
- package/{examples → src/legacy/examples}/bulk-fanout-worker.js +1 -1
- package/{examples → src/legacy/examples}/bulk-trigger.js +1 -1
- package/{examples → src/legacy/examples}/concurrency/cancel-in-progress/concurrency-event.js +1 -1
- package/{examples → src/legacy/examples}/concurrency/cancel-in-progress/concurrency-worker.js +1 -1
- package/{examples → src/legacy/examples}/concurrency/group-round-robin/concurrency-event.js +1 -1
- package/{examples → src/legacy/examples}/concurrency/group-round-robin/concurrency-worker-expression.js +2 -2
- package/{examples → src/legacy/examples}/concurrency/group-round-robin/concurrency-worker-key-fn.js +2 -2
- package/{examples → src/legacy/examples}/crons/cron-worker.d.ts +1 -1
- package/{examples → src/legacy/examples}/crons/cron-worker.js +1 -1
- package/{examples → src/legacy/examples}/crons/programatic-crons.js +1 -1
- package/{examples → src/legacy/examples}/dag-worker.js +1 -1
- package/{examples → src/legacy/examples}/example-event-with-results.js +2 -2
- package/{examples → src/legacy/examples}/example-event.js +1 -1
- package/{examples → src/legacy/examples}/fanout-worker.js +1 -1
- package/{examples → src/legacy/examples}/logger.js +1 -1
- package/{examples → src/legacy/examples}/manual-trigger.js +1 -1
- package/{examples → src/legacy/examples}/multi-workflow.js +1 -1
- package/{examples → src/legacy/examples}/namespaced-worker.js +1 -1
- package/{examples → src/legacy/examples}/on-failure.js +1 -1
- package/{examples → src/legacy/examples}/rate-limit/events.js +1 -1
- package/{examples → src/legacy/examples}/rate-limit/worker.js +2 -2
- package/{examples → src/legacy/examples}/retries-with-backoff.js +1 -1
- package/{examples → src/legacy/examples}/retries-worker.js +1 -1
- package/{examples → src/legacy/examples}/scheduled-runs/programatic-schedules.js +1 -1
- package/{examples → src/legacy/examples}/simple-worker.d.ts +1 -1
- package/{examples → src/legacy/examples}/simple-worker.js +1 -1
- package/{examples → src/legacy/examples}/sticky-trigger.js +1 -1
- package/{examples → src/legacy/examples}/sticky-worker-with-check.js +2 -2
- package/{examples → src/legacy/examples}/sticky-worker.js +2 -2
- package/{examples → src/legacy/examples}/stream-by-additional-meta.js +2 -2
- package/{clients/hatchet-client/hatchet-client.d.ts → src/legacy/legacy-client.d.ts} +8 -13
- package/src/legacy/legacy-client.js +67 -0
- package/src/legacy/legacy-transformer.d.ts +38 -0
- package/src/legacy/legacy-transformer.js +181 -0
- package/{step.d.ts → src/legacy/step.d.ts} +30 -31
- package/{step.js → src/legacy/step.js} +17 -16
- package/{workflow.d.ts → src/legacy/workflow.d.ts} +47 -50
- package/{workflow.js → src/legacy/workflow.js} +3 -6
- package/{protoc → src/protoc}/v1/workflows.d.ts +8 -0
- package/{protoc → src/protoc}/v1/workflows.js +109 -2
- package/{protoc → src/protoc}/workflows/workflows.d.ts +9 -0
- package/{protoc → src/protoc}/workflows/workflows.js +109 -2
- package/src/sdk.d.ts +2 -0
- package/{sdk.js → src/sdk.js} +1 -1
- package/src/step.d.ts +1 -0
- package/{clients/worker/index.js → src/step.js} +4 -1
- package/src/util/abort-error.d.ts +38 -0
- package/src/util/abort-error.js +58 -0
- package/{util → src/util}/config-loader/config-loader.d.ts +1 -1
- package/{util → src/util}/config-loader/config-loader.js +1 -1
- package/{util → src/util}/grpc-helpers.d.ts +1 -1
- package/src/util/hatchet-promise/hatchet-promise.d.ts +13 -0
- package/{util → src/util}/hatchet-promise/hatchet-promise.js +3 -2
- package/src/util/logger/index.d.ts +2 -0
- package/{util → src/util}/logger/index.js +1 -0
- package/{util → src/util}/logger/logger.d.ts +1 -1
- package/src/util/logger/task-run-log.d.ts +3 -0
- package/src/util/logger/task-run-log.js +20 -0
- package/{util → src/util}/sleep.d.ts +5 -2
- package/src/util/sleep.js +37 -0
- package/{util → src/util}/workflow-run-ref.d.ts +9 -3
- package/{util → src/util}/workflow-run-ref.js +5 -3
- package/{v1 → src/v1}/client/admin.d.ts +24 -8
- package/{v1 → src/v1}/client/admin.js +50 -18
- package/{v1 → src/v1}/client/client.d.ts +59 -23
- package/{v1 → src/v1}/client/client.interface.d.ts +9 -2
- package/{v1 → src/v1}/client/client.js +73 -35
- package/{v1 → src/v1}/client/features/cel.d.ts +1 -1
- package/{v1 → src/v1}/client/features/cel.js +1 -1
- package/{v1 → src/v1}/client/features/crons.d.ts +8 -6
- package/{v1 → src/v1}/client/features/crons.js +6 -5
- package/{v1 → src/v1}/client/features/filters.d.ts +30 -0
- package/{v1 → src/v1}/client/features/filters.js +30 -0
- package/{v1 → src/v1}/client/features/metrics.d.ts +10 -6
- package/{v1 → src/v1}/client/features/metrics.js +10 -6
- package/src/v1/client/features/ratelimits.d.ts +30 -0
- package/{v1 → src/v1}/client/features/ratelimits.js +13 -3
- package/{v1 → src/v1}/client/features/runs.d.ts +43 -8
- package/{v1 → src/v1}/client/features/runs.js +38 -3
- package/{v1 → src/v1}/client/features/schedules.d.ts +7 -4
- package/{v1 → src/v1}/client/features/schedules.js +7 -5
- package/{v1 → src/v1}/client/features/tenant.d.ts +4 -1
- package/src/v1/client/features/webhooks.d.ts +54 -0
- package/{v1 → src/v1}/client/features/webhooks.js +31 -5
- package/src/v1/client/features/workers.d.ts +38 -0
- package/{v1 → src/v1}/client/features/workers.js +25 -1
- package/src/v1/client/features/workflows.d.ts +42 -0
- package/{v1 → src/v1}/client/features/workflows.js +27 -10
- package/{v1 → src/v1}/client/worker/context.d.ts +78 -18
- package/{v1 → src/v1}/client/worker/context.js +120 -27
- package/{v1 → src/v1}/client/worker/deprecated/deprecation.d.ts +1 -1
- package/{v1 → src/v1}/client/worker/deprecated/legacy-registration.d.ts +2 -2
- package/{v1 → src/v1}/client/worker/deprecated/legacy-registration.js +2 -2
- package/{v1 → src/v1}/client/worker/deprecated/legacy-v1-worker.d.ts +5 -5
- package/{v1 → src/v1}/client/worker/deprecated/legacy-v1-worker.js +2 -2
- package/{v1 → src/v1}/client/worker/deprecated/legacy-worker.js +9 -7
- package/{v1 → src/v1}/client/worker/health-server.d.ts +1 -1
- package/{v1 → src/v1}/client/worker/slot-utils.d.ts +3 -3
- package/{v1 → src/v1}/client/worker/worker-internal.d.ts +13 -22
- package/{v1 → src/v1}/client/worker/worker-internal.js +232 -216
- package/{v1 → src/v1}/client/worker/worker.d.ts +19 -19
- package/{v1 → src/v1}/client/worker/worker.js +45 -30
- package/{v1 → src/v1}/conditions/transformer.d.ts +1 -1
- package/{v1 → src/v1}/declaration.d.ts +120 -15
- package/{v1 → src/v1}/declaration.js +118 -10
- package/src/v1/examples/__e2e__/harness.d.ts +19 -0
- package/src/v1/examples/__e2e__/harness.js +70 -0
- package/{v1 → src/v1}/examples/affinity/affinity-workers.js +4 -4
- package/src/v1/examples/bulk_fanout/workflow.d.ts +9 -0
- package/src/v1/examples/bulk_fanout/workflow.js +34 -0
- package/src/v1/examples/bulk_operations/workflow.d.ts +3 -0
- package/src/v1/examples/bulk_operations/workflow.js +44 -0
- package/src/v1/examples/cancellation/cancellation-workflow.d.ts +2 -0
- package/src/v1/examples/cancellation/cancellation-workflow.js +69 -0
- package/src/v1/examples/cancellation/run.js +53 -0
- package/src/v1/examples/cancellation/worker.js +29 -0
- package/{v1 → src/v1}/examples/cancellations/run.js +1 -1
- package/{v1 → src/v1}/examples/cancellations/workflow.js +1 -1
- package/{v1 → src/v1}/examples/concurrency-rr/workflow.js +1 -1
- package/src/v1/examples/concurrency-types.d.ts +5 -0
- package/src/v1/examples/concurrency_cancel_in_progress/workflow.d.ts +9 -0
- package/src/v1/examples/concurrency_cancel_in_progress/workflow.js +45 -0
- package/src/v1/examples/concurrency_cancel_newest/workflow.d.ts +9 -0
- package/src/v1/examples/concurrency_cancel_newest/workflow.js +45 -0
- package/src/v1/examples/concurrency_limit_rr/load.js +54 -0
- package/src/v1/examples/concurrency_limit_rr/run.js +39 -0
- package/src/v1/examples/concurrency_limit_rr/worker.js +24 -0
- package/src/v1/examples/concurrency_limit_rr/workflow.d.ts +12 -0
- package/src/v1/examples/concurrency_limit_rr/workflow.js +62 -0
- package/src/v1/examples/concurrency_multiple_keys/workflow.d.ts +12 -0
- package/src/v1/examples/concurrency_multiple_keys/workflow.js +42 -0
- package/src/v1/examples/concurrency_workflow_level/workflow.d.ts +13 -0
- package/src/v1/examples/concurrency_workflow_level/workflow.js +49 -0
- package/{v1/examples/dag_match_condition → src/v1/examples/conditions}/complex-workflow.js +2 -2
- package/{v1/examples/dag_match_condition → src/v1/examples/conditions}/workflow.js +2 -2
- package/{v1 → src/v1}/examples/dag/interface-workflow.d.ts +2 -2
- package/src/v1/examples/dag_match_condition/complex-workflow.d.ts +1 -0
- package/src/v1/examples/dag_match_condition/complex-workflow.js +107 -0
- package/src/v1/examples/dag_match_condition/run.js +25 -0
- package/src/v1/examples/dag_match_condition/worker.js +24 -0
- package/src/v1/examples/dag_match_condition/workflow.d.ts +11 -0
- package/src/v1/examples/dag_match_condition/workflow.js +41 -0
- package/{v1 → src/v1}/examples/deep/workflow.js +1 -1
- package/src/v1/examples/durable/workflow.d.ts +7 -0
- package/src/v1/examples/durable/workflow.js +116 -0
- package/{v1 → src/v1}/examples/durable-event/workflow.js +1 -1
- package/src/v1/examples/durable-sleep/event.js +28 -0
- package/{v1 → src/v1}/examples/durable-sleep/workflow.js +1 -1
- package/src/v1/examples/durable_event/event.js +28 -0
- package/src/v1/examples/durable_event/run.js +30 -0
- package/src/v1/examples/durable_event/worker.js +24 -0
- package/src/v1/examples/durable_event/workflow.d.ts +6 -0
- package/src/v1/examples/durable_event/workflow.js +46 -0
- package/src/v1/examples/durable_sleep/event.js +28 -0
- package/src/v1/examples/durable_sleep/run.js +30 -0
- package/src/v1/examples/durable_sleep/worker.js +24 -0
- package/src/v1/examples/durable_sleep/workflow.d.ts +1 -0
- package/src/v1/examples/durable_sleep/workflow.js +31 -0
- package/src/v1/examples/e2e-worker.js +82 -0
- package/src/v1/examples/events/filter.js +32 -0
- package/{v1 → src/v1}/examples/hatchet-client.d.ts +1 -1
- package/{v1 → src/v1}/examples/hatchet-client.js +1 -1
- package/{v1 → src/v1}/examples/high-memory/workflow-with-child.js +1 -1
- package/{v1 → src/v1}/examples/landing_page/durable-excution.js +1 -1
- package/{v1 → src/v1}/examples/landing_page/flow-control.js +1 -1
- package/src/v1/examples/legacy/workflow.d.ts +2 -0
- package/{examples → src/v1/examples/logger}/byo-logger.js +1 -1
- package/src/v1/examples/logger/workflow.d.ts +2 -0
- package/src/v1/examples/logger/workflow.js +38 -0
- package/src/v1/examples/logging/byo-logger.js +73 -0
- package/src/v1/examples/logging/logger.js +46 -0
- package/{v1 → src/v1}/examples/middleware/client.d.ts +1 -1
- package/{v1 → src/v1}/examples/middleware/client.js +1 -1
- package/{v1 → src/v1}/examples/middleware/recipes.js +1 -1
- package/{v1 → src/v1}/examples/migration-guides/hatchet-client.d.ts +1 -1
- package/{v1 → src/v1}/examples/migration-guides/hatchet-client.js +1 -1
- package/{v1 → src/v1}/examples/multiple_wf_concurrency/workflow.d.ts +1 -1
- package/{v1 → src/v1}/examples/multiple_wf_concurrency/workflow.js +3 -3
- package/{v1 → src/v1}/examples/non_retryable/workflow.js +1 -1
- package/src/v1/examples/on_event/event.js +53 -0
- package/src/v1/examples/on_event/worker.js +24 -0
- package/src/v1/examples/on_event/workflow.d.ts +19 -0
- package/src/v1/examples/on_event/workflow.js +60 -0
- package/{v1 → src/v1}/examples/on_failure/workflow.d.ts +1 -0
- package/{v1 → src/v1}/examples/on_failure/workflow.js +12 -7
- package/{v1 → src/v1}/examples/priority/run.js +1 -1
- package/src/v1/examples/priority/workflow.d.ts +8 -0
- package/{v1 → src/v1}/examples/priority/workflow.js +2 -2
- package/{v1 → src/v1}/examples/quickstart/hatchet-client.d.ts +1 -1
- package/{v1 → src/v1}/examples/quickstart/hatchet-client.js +1 -1
- package/src/v1/examples/quickstart/run.d.ts +1 -0
- package/src/v1/examples/quickstart/worker.d.ts +1 -0
- package/src/v1/examples/rate_limit/workflow.d.ts +1 -0
- package/{v1 → src/v1}/examples/rate_limit/workflow.js +1 -1
- package/src/v1/examples/retries/run.d.ts +1 -0
- package/src/v1/examples/retries/worker.d.ts +1 -0
- package/{v1 → src/v1}/examples/retries/workflow.js +2 -2
- package/src/v1/examples/return_exceptions/workflow.d.ts +6 -0
- package/src/v1/examples/return_exceptions/workflow.js +22 -0
- package/src/v1/examples/run_details/workflow.d.ts +4 -0
- package/src/v1/examples/run_details/workflow.js +65 -0
- package/src/v1/examples/runtime_affinity/workflow.d.ts +3 -0
- package/src/v1/examples/runtime_affinity/workflow.js +19 -0
- package/src/v1/examples/simple/bulk.d.ts +1 -0
- package/src/v1/examples/simple/client-run.d.ts +1 -0
- package/src/v1/examples/simple/cron.d.ts +1 -0
- package/src/v1/examples/simple/delay.d.ts +1 -0
- package/src/v1/examples/simple/e2e-workflows.d.ts +14 -0
- package/src/v1/examples/simple/e2e-workflows.js +27 -0
- package/src/v1/examples/simple/enqueue.d.ts +1 -0
- package/{v1 → src/v1}/examples/simple/enqueue.js +2 -2
- package/src/v1/examples/simple/replay-cancel.d.ts +1 -0
- package/{v1 → src/v1}/examples/simple/replay-cancel.js +1 -1
- package/src/v1/examples/simple/schedule.d.ts +1 -0
- package/src/v1/examples/simple/typed-run-methods.d.ts +1 -0
- package/src/v1/examples/simple/worker.d.ts +1 -0
- package/src/v1/examples/sticky/run.d.ts +1 -0
- package/src/v1/examples/sticky/worker.d.ts +1 -0
- package/src/v1/examples/sticky/workflow.d.ts +5 -0
- package/{v1 → src/v1}/examples/sticky/workflow.js +2 -2
- package/src/v1/examples/streaming/run.d.ts +1 -0
- package/src/v1/examples/streaming/worker.d.ts +1 -0
- package/src/v1/examples/timeout/run.d.ts +1 -0
- package/src/v1/examples/timeout/run.js +30 -0
- package/src/v1/examples/timeout/worker.d.ts +1 -0
- package/src/v1/examples/timeout/worker.js +25 -0
- package/src/v1/examples/timeout/workflow.d.ts +10 -0
- package/src/v1/examples/timeout/workflow.js +56 -0
- package/src/v1/examples/timeouts/run.d.ts +1 -0
- package/src/v1/examples/timeouts/worker.d.ts +1 -0
- package/{v1 → src/v1}/examples/timeouts/workflow.js +1 -1
- package/src/v1/examples/webhooks/workflow.d.ts +5 -0
- package/src/v1/examples/webhooks/workflow.js +23 -0
- package/{v1 → src/v1}/examples/with_timeouts/workflow.js +1 -1
- package/{v1 → src/v1}/index.d.ts +1 -0
- package/{v1 → src/v1}/index.js +1 -0
- package/{v1 → src/v1}/parent-run-context-vars.d.ts +6 -0
- package/{v1 → src/v1}/parent-run-context-vars.js +3 -0
- package/{v1 → src/v1}/task.d.ts +22 -7
- package/src/v1/task.js +14 -0
- package/{v1 → src/v1}/types.d.ts +1 -1
- package/src/v1/types.js +2 -0
- package/src/version.d.ts +1 -0
- package/{version.js → src/version.js} +1 -1
- package/src/workflow.d.ts +3 -0
- package/src/workflow.js +25 -0
- package/clients/hatchet-client/hatchet-client.js +0 -108
- package/clients/hatchet-client/index.d.ts +0 -3
- package/clients/rest/api.js +0 -13
- package/clients/worker/handler.d.ts +0 -50
- package/clients/worker/handler.js +0 -214
- package/clients/worker/index.d.ts +0 -1
- package/clients/worker/worker.d.ts +0 -59
- package/clients/worker/worker.js +0 -568
- package/examples/webhooks.js +0 -45
- package/sdk.d.ts +0 -2
- package/util/hatchet-promise/hatchet-promise.d.ts +0 -6
- package/util/logger/index.d.ts +0 -1
- package/util/sleep.js +0 -14
- package/v1/client/features/ratelimits.d.ts +0 -20
- package/v1/client/features/webhooks.d.ts +0 -28
- package/v1/client/features/workers.d.ts +0 -14
- package/v1/client/features/workflows.d.ts +0 -24
- package/v1/examples/legacy/workflow.d.ts +0 -2
- package/v1/examples/priority/workflow.d.ts +0 -8
- package/v1/examples/sticky/workflow.d.ts +0 -5
- package/v1/task.js +0 -11
- package/version.d.ts +0 -1
- /package/{clients/dispatcher/heartbeat/heartbeat-worker.d.ts → docs/generate.d.ts} +0 -0
- /package/{clients → src/clients}/admin/index.d.ts +0 -0
- /package/{clients → src/clients}/admin/index.js +0 -0
- /package/{examples/affinity-workers.d.ts → src/clients/dispatcher/heartbeat/heartbeat-worker.d.ts} +0 -0
- /package/{clients → src/clients}/rest/api.d.ts +0 -0
- /package/{clients → src/clients}/rest/generated/Api.js +0 -0
- /package/{clients → src/clients}/rest/generated/data-contracts.js +0 -0
- /package/{clients → src/clients}/rest/generated/http-client.d.ts +0 -0
- /package/{clients → src/clients}/rest/generated/http-client.js +0 -0
- /package/{clients → src/clients}/rest/index.d.ts +0 -0
- /package/{clients → src/clients}/rest/index.js +0 -0
- /package/{v1/examples/affinity → src/legacy/examples}/affinity-workers.d.ts +0 -0
- /package/{examples → src/legacy/examples}/bulk-fanout-trigger.d.ts +0 -0
- /package/{examples → src/legacy/examples}/bulk-fanout-worker.d.ts +0 -0
- /package/{examples → src/legacy/examples}/bulk-trigger.d.ts +0 -0
- /package/{examples → src/legacy/examples}/byo-logger.d.ts +0 -0
- /package/{v1/examples/logging → src/legacy/examples}/byo-logger.js +0 -0
- /package/{examples → src/legacy/examples}/concurrency/cancel-in-progress/concurrency-event.d.ts +0 -0
- /package/{examples → src/legacy/examples}/concurrency/cancel-in-progress/concurrency-worker.d.ts +0 -0
- /package/{examples → src/legacy/examples}/concurrency/group-round-robin/concurrency-event.d.ts +0 -0
- /package/{examples → src/legacy/examples}/concurrency/group-round-robin/concurrency-worker-expression.d.ts +0 -0
- /package/{examples → src/legacy/examples}/concurrency/group-round-robin/concurrency-worker-key-fn.d.ts +0 -0
- /package/{examples → src/legacy/examples}/crons/programatic-crons.d.ts +0 -0
- /package/{examples → src/legacy/examples}/dag-worker.d.ts +0 -0
- /package/{examples → src/legacy/examples}/example-event-with-results.d.ts +0 -0
- /package/{examples → src/legacy/examples}/example-event.d.ts +0 -0
- /package/{examples → src/legacy/examples}/fanout-worker.d.ts +0 -0
- /package/{examples → src/legacy/examples}/logger.d.ts +0 -0
- /package/{examples → src/legacy/examples}/manual-trigger.d.ts +0 -0
- /package/{examples → src/legacy/examples}/multi-workflow.d.ts +0 -0
- /package/{examples → src/legacy/examples}/namespaced-worker.d.ts +0 -0
- /package/{examples → src/legacy/examples}/on-failure.d.ts +0 -0
- /package/{examples → src/legacy/examples}/rate-limit/events.d.ts +0 -0
- /package/{examples → src/legacy/examples}/rate-limit/worker.d.ts +0 -0
- /package/{examples → src/legacy/examples}/retries-with-backoff.d.ts +0 -0
- /package/{examples → src/legacy/examples}/retries-worker.d.ts +0 -0
- /package/{examples → src/legacy/examples}/scheduled-runs/programatic-schedules.d.ts +0 -0
- /package/{examples → src/legacy/examples}/sticky-trigger.d.ts +0 -0
- /package/{examples → src/legacy/examples}/sticky-worker-with-check.d.ts +0 -0
- /package/{examples → src/legacy/examples}/sticky-worker.d.ts +0 -0
- /package/{examples → src/legacy/examples}/stream-by-additional-meta.d.ts +0 -0
- /package/{protoc → src/protoc}/dispatcher/dispatcher.d.ts +0 -0
- /package/{protoc → src/protoc}/dispatcher/dispatcher.js +0 -0
- /package/{protoc → src/protoc}/dispatcher/index.d.ts +0 -0
- /package/{protoc → src/protoc}/dispatcher/index.js +0 -0
- /package/{protoc → src/protoc}/events/events.d.ts +0 -0
- /package/{protoc → src/protoc}/events/events.js +0 -0
- /package/{protoc → src/protoc}/events/index.d.ts +0 -0
- /package/{protoc → src/protoc}/events/index.js +0 -0
- /package/{protoc → src/protoc}/google/protobuf/timestamp.d.ts +0 -0
- /package/{protoc → src/protoc}/google/protobuf/timestamp.js +0 -0
- /package/{protoc → src/protoc}/google/protobuf/wrappers.d.ts +0 -0
- /package/{protoc → src/protoc}/google/protobuf/wrappers.js +0 -0
- /package/{protoc → src/protoc}/v1/dispatcher.d.ts +0 -0
- /package/{protoc → src/protoc}/v1/dispatcher.js +0 -0
- /package/{protoc → src/protoc}/v1/shared/condition.d.ts +0 -0
- /package/{protoc → src/protoc}/v1/shared/condition.js +0 -0
- /package/{protoc → src/protoc}/workflows/index.d.ts +0 -0
- /package/{protoc → src/protoc}/workflows/index.js +0 -0
- /package/{protoc → src/protoc}/workflows/v1-admin.d.ts +0 -0
- /package/{protoc → src/protoc}/workflows/v1-admin.js +0 -0
- /package/{util → src/util}/apply-namespace.d.ts +0 -0
- /package/{util → src/util}/apply-namespace.js +0 -0
- /package/{util → src/util}/batch.d.ts +0 -0
- /package/{util → src/util}/batch.js +0 -0
- /package/{util → src/util}/config-loader/index.d.ts +0 -0
- /package/{util → src/util}/config-loader/index.js +0 -0
- /package/{util → src/util}/config-loader/token.d.ts +0 -0
- /package/{util → src/util}/config-loader/token.js +0 -0
- /package/{util → src/util}/errors/hatchet-error.d.ts +0 -0
- /package/{util → src/util}/errors/hatchet-error.js +0 -0
- /package/{util → src/util}/grpc-helpers.js +0 -0
- /package/{util → src/util}/logger/logger.js +0 -0
- /package/{util → src/util}/parse.d.ts +0 -0
- /package/{util → src/util}/parse.js +0 -0
- /package/{util → src/util}/retrier.d.ts +0 -0
- /package/{util → src/util}/retrier.js +0 -0
- /package/{util → src/util}/thread-helper.d.ts +0 -0
- /package/{util → src/util}/thread-helper.js +0 -0
- /package/{util → src/util}/uuid.d.ts +0 -0
- /package/{util → src/util}/uuid.js +0 -0
- /package/{v1 → src/v1}/client/client.interface.js +0 -0
- /package/{v1 → src/v1}/client/duration.d.ts +0 -0
- /package/{v1 → src/v1}/client/duration.js +0 -0
- /package/{v1 → src/v1}/client/features/index.d.ts +0 -0
- /package/{v1 → src/v1}/client/features/index.js +0 -0
- /package/{v1 → src/v1}/client/features/tenant.js +0 -0
- /package/{v1 → src/v1}/client/worker/deprecated/deprecation.js +0 -0
- /package/{v1 → src/v1}/client/worker/deprecated/index.d.ts +0 -0
- /package/{v1 → src/v1}/client/worker/deprecated/index.js +0 -0
- /package/{v1 → src/v1}/client/worker/deprecated/legacy-worker.d.ts +0 -0
- /package/{v1 → src/v1}/client/worker/health-server.js +0 -0
- /package/{v1 → src/v1}/client/worker/slot-utils.js +0 -0
- /package/{v1 → src/v1}/conditions/base.d.ts +0 -0
- /package/{v1 → src/v1}/conditions/base.js +0 -0
- /package/{v1 → src/v1}/conditions/index.d.ts +0 -0
- /package/{v1 → src/v1}/conditions/index.js +0 -0
- /package/{v1 → src/v1}/conditions/parent-condition.d.ts +0 -0
- /package/{v1 → src/v1}/conditions/parent-condition.js +0 -0
- /package/{v1 → src/v1}/conditions/sleep-condition.d.ts +0 -0
- /package/{v1 → src/v1}/conditions/sleep-condition.js +0 -0
- /package/{v1 → src/v1}/conditions/transformer.js +0 -0
- /package/{v1 → src/v1}/conditions/user-event-condition.d.ts +0 -0
- /package/{v1 → src/v1}/conditions/user-event-condition.js +0 -0
- /package/{examples/webhooks.d.ts → src/v1/examples/affinity/affinity-workers.d.ts} +0 -0
- /package/{v1/examples/cancellations → src/v1/examples/cancellation}/run.d.ts +0 -0
- /package/{v1/examples/cancellations → src/v1/examples/cancellation}/worker.d.ts +0 -0
- /package/{v1/examples/child_workflows → src/v1/examples/cancellations}/run.d.ts +0 -0
- /package/{v1/examples/child_workflows → src/v1/examples/cancellations}/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/cancellations/worker.js +0 -0
- /package/{v1 → src/v1}/examples/cancellations/workflow.d.ts +0 -0
- /package/{v1/examples/concurrency-rr → src/v1/examples/child_workflows}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/child_workflows/run.js +0 -0
- /package/{v1/examples/concurrency-rr → src/v1/examples/child_workflows}/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/child_workflows/worker.js +0 -0
- /package/{v1 → src/v1}/examples/child_workflows/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/child_workflows/workflow.js +0 -0
- /package/{v1 → src/v1}/examples/concurrency-rr/load.d.ts +0 -0
- /package/{v1 → src/v1}/examples/concurrency-rr/load.js +0 -0
- /package/{v1/examples/dag → src/v1/examples/concurrency-rr}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/concurrency-rr/run.js +0 -0
- /package/{v1/examples/dag → src/v1/examples/concurrency-rr}/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/concurrency-rr/worker.js +0 -0
- /package/{v1 → src/v1}/examples/concurrency-rr/workflow.d.ts +0 -0
- /package/{v1/types.js → src/v1/examples/concurrency-types.js} +0 -0
- /package/{v1/examples/dag_match_condition/event.d.ts → src/v1/examples/concurrency_limit_rr/load.d.ts} +0 -0
- /package/{v1/examples/dag_match_condition → src/v1/examples/concurrency_limit_rr}/run.d.ts +0 -0
- /package/{v1/examples/dag_match_condition → src/v1/examples/concurrency_limit_rr}/worker.d.ts +0 -0
- /package/{v1/examples/dag_match_condition → src/v1/examples/conditions}/complex-workflow.d.ts +0 -0
- /package/{v1/examples/durable-event → src/v1/examples/conditions}/event.d.ts +0 -0
- /package/{v1/examples/dag_match_condition → src/v1/examples/conditions}/event.js +0 -0
- /package/{v1/examples/deep → src/v1/examples/conditions}/run.d.ts +0 -0
- /package/{v1/examples/dag_match_condition → src/v1/examples/conditions}/run.js +0 -0
- /package/{v1/examples/deep → src/v1/examples/conditions}/worker.d.ts +0 -0
- /package/{v1/examples/dag_match_condition → src/v1/examples/conditions}/worker.js +0 -0
- /package/{v1/examples/dag_match_condition → src/v1/examples/conditions}/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/dag/interface-workflow.js +0 -0
- /package/{v1/examples/durable-event → src/v1/examples/dag}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/dag/run.js +0 -0
- /package/{v1/examples/durable-event → src/v1/examples/dag}/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/dag/worker.js +0 -0
- /package/{v1 → src/v1}/examples/dag/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/dag/workflow.js +0 -0
- /package/{v1/examples/durable-sleep → src/v1/examples/dag_match_condition}/event.d.ts +0 -0
- /package/{v1/examples/durable-sleep → src/v1/examples/dag_match_condition}/event.js +0 -0
- /package/{v1/examples/durable-sleep → src/v1/examples/dag_match_condition}/run.d.ts +0 -0
- /package/{v1/examples/durable-sleep → src/v1/examples/dag_match_condition}/worker.d.ts +0 -0
- /package/{v1/examples/high-memory → src/v1/examples/deep}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/deep/run.js +0 -0
- /package/{v1/examples/inferred-typing → src/v1/examples/deep}/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/deep/worker.js +0 -0
- /package/{v1 → src/v1}/examples/deep/workflow.d.ts +0 -0
- /package/{v1/examples/on_event → src/v1/examples/durable-event}/event.d.ts +0 -0
- /package/{v1 → src/v1}/examples/durable-event/event.js +0 -0
- /package/{v1/examples/inferred-typing → src/v1/examples/durable-event}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/durable-event/run.js +0 -0
- /package/{v1/examples/legacy → src/v1/examples/durable-event}/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/durable-event/worker.js +0 -0
- /package/{v1 → src/v1}/examples/durable-event/workflow.d.ts +0 -0
- /package/{v1/examples/high-memory/child-worker.d.ts → src/v1/examples/durable-sleep/event.d.ts} +0 -0
- /package/{v1/examples/legacy → src/v1/examples/durable-sleep}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/durable-sleep/run.js +0 -0
- /package/{v1/examples/middleware → src/v1/examples/durable-sleep}/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/durable-sleep/worker.js +0 -0
- /package/{v1 → src/v1}/examples/durable-sleep/workflow.d.ts +0 -0
- /package/{v1/examples/high-memory/parent-worker.d.ts → src/v1/examples/durable_event/event.d.ts} +0 -0
- /package/{v1/examples/middleware → src/v1/examples/durable_event}/run.d.ts +0 -0
- /package/{v1/examples/multiple_wf_concurrency → src/v1/examples/durable_event}/worker.d.ts +0 -0
- /package/{v1/examples/landing_page/scheduling.d.ts → src/v1/examples/durable_sleep/event.d.ts} +0 -0
- /package/{v1/examples/multiple_wf_concurrency → src/v1/examples/durable_sleep}/run.d.ts +0 -0
- /package/{v1/examples/non_retryable → src/v1/examples/durable_sleep}/worker.d.ts +0 -0
- /package/{v1/examples/logging/byo-logger.d.ts → src/v1/examples/e2e-worker.d.ts} +0 -0
- /package/{v1/examples/logging/logger.d.ts → src/v1/examples/events/event.d.ts} +0 -0
- /package/{v1/examples/on_event → src/v1/examples/events}/event.js +0 -0
- /package/{v1/examples/on_event → src/v1/examples/events}/filter.d.ts +0 -0
- /package/{v1/examples/on_cron → src/v1/examples/events}/worker.d.ts +0 -0
- /package/{v1/examples/on_event → src/v1/examples/events}/worker.js +0 -0
- /package/{v1/examples/on_event → src/v1/examples/events}/workflow.d.ts +0 -0
- /package/{v1/examples/on_event → src/v1/examples/events}/workflow.js +0 -0
- /package/{v1/examples/middleware/recipes.d.ts → src/v1/examples/high-memory/child-worker.d.ts} +0 -0
- /package/{v1 → src/v1}/examples/high-memory/child-worker.js +0 -0
- /package/{v1/examples/non_retryable/run.d.ts → src/v1/examples/high-memory/parent-worker.d.ts} +0 -0
- /package/{v1 → src/v1}/examples/high-memory/parent-worker.js +0 -0
- /package/{v1/examples/on_failure → src/v1/examples/high-memory}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/high-memory/run.js +0 -0
- /package/{v1 → src/v1}/examples/high-memory/workflow-with-child.d.ts +0 -0
- /package/{v1/examples/on_success → src/v1/examples/inferred-typing}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/inferred-typing/run.js +0 -0
- /package/{v1/examples/on_event → src/v1/examples/inferred-typing}/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/inferred-typing/worker.js +0 -0
- /package/{v1 → src/v1}/examples/inferred-typing/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/inferred-typing/workflow.js +0 -0
- /package/{v1 → src/v1}/examples/landing_page/durable-excution.d.ts +0 -0
- /package/{v1 → src/v1}/examples/landing_page/event-signaling.d.ts +0 -0
- /package/{v1 → src/v1}/examples/landing_page/event-signaling.js +0 -0
- /package/{v1 → src/v1}/examples/landing_page/flow-control.d.ts +0 -0
- /package/{v1 → src/v1}/examples/landing_page/queues.d.ts +0 -0
- /package/{v1 → src/v1}/examples/landing_page/queues.js +0 -0
- /package/{v1/examples/on_failure/worker.d.ts → src/v1/examples/landing_page/scheduling.d.ts} +0 -0
- /package/{v1 → src/v1}/examples/landing_page/scheduling.js +0 -0
- /package/{v1 → src/v1}/examples/landing_page/task-routing.d.ts +0 -0
- /package/{v1 → src/v1}/examples/landing_page/task-routing.js +0 -0
- /package/{v1/examples/priority → src/v1/examples/legacy}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/legacy/run.js +0 -0
- /package/{v1/examples/on_success → src/v1/examples/legacy}/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/legacy/worker.js +0 -0
- /package/{v1 → src/v1}/examples/legacy/workflow.js +0 -0
- /package/{v1/examples/priority/worker.d.ts → src/v1/examples/logger/byo-logger.d.ts} +0 -0
- /package/{v1/examples/quickstart/run.d.ts → src/v1/examples/logger/logger.d.ts} +0 -0
- /package/{v1/examples/logging → src/v1/examples/logger}/logger.js +0 -0
- /package/{v1/examples/quickstart/worker.d.ts → src/v1/examples/logging/byo-logger.d.ts} +0 -0
- /package/{v1/examples/rate_limit/workflow.d.ts → src/v1/examples/logging/logger.d.ts} +0 -0
- /package/{v1/examples/retries/run.d.ts → src/v1/examples/middleware/recipes.d.ts} +0 -0
- /package/{v1/examples/sticky → src/v1/examples/middleware}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/middleware/run.js +0 -0
- /package/{v1/examples/retries → src/v1/examples/middleware}/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/middleware/worker.js +0 -0
- /package/{v1 → src/v1}/examples/middleware/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/middleware/workflow.js +0 -0
- /package/{v1 → src/v1}/examples/migration-guides/mergent.d.ts +0 -0
- /package/{v1 → src/v1}/examples/migration-guides/mergent.js +0 -0
- /package/{v1/examples/streaming → src/v1/examples/multiple_wf_concurrency}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/multiple_wf_concurrency/run.js +0 -0
- /package/{v1/examples/simple → src/v1/examples/multiple_wf_concurrency}/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/multiple_wf_concurrency/worker.js +0 -0
- /package/{v1/examples/timeouts → src/v1/examples/non_retryable}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/non_retryable/run.js +0 -0
- /package/{v1/examples/sticky → src/v1/examples/non_retryable}/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/non_retryable/worker.js +0 -0
- /package/{v1 → src/v1}/examples/non_retryable/workflow.d.ts +0 -0
- /package/{v1/examples/streaming → src/v1/examples/on_cron}/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/on_cron/worker.js +0 -0
- /package/{v1 → src/v1}/examples/on_cron/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/on_cron/workflow.js +0 -0
- /package/{v1/examples/simple/bulk.d.ts → src/v1/examples/on_event/event.d.ts} +0 -0
- /package/{v1/examples/simple/client-run.d.ts → src/v1/examples/on_event/filter.d.ts} +0 -0
- /package/{v1 → src/v1}/examples/on_event/filter.js +0 -0
- /package/{v1/examples/timeouts → src/v1/examples/on_event}/worker.d.ts +0 -0
- /package/{v1/examples/simple/cron.d.ts → src/v1/examples/on_failure/run.d.ts} +0 -0
- /package/{v1 → src/v1}/examples/on_failure/run.js +0 -0
- /package/{v1/examples/simple/delay.d.ts → src/v1/examples/on_failure/worker.d.ts} +0 -0
- /package/{v1 → src/v1}/examples/on_failure/worker.js +0 -0
- /package/{v1/examples/simple/enqueue.d.ts → src/v1/examples/on_success/run.d.ts} +0 -0
- /package/{v1 → src/v1}/examples/on_success/run.js +0 -0
- /package/{v1/examples/simple/replay-cancel.d.ts → src/v1/examples/on_success/worker.d.ts} +0 -0
- /package/{v1 → src/v1}/examples/on_success/worker.js +0 -0
- /package/{v1 → src/v1}/examples/on_success/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/on_success/workflow.js +0 -0
- /package/{v1/examples/simple/schedule.d.ts → src/v1/examples/priority/run.d.ts} +0 -0
- /package/{v1/examples/simple/typed-run-methods.d.ts → src/v1/examples/priority/worker.d.ts} +0 -0
- /package/{v1 → src/v1}/examples/priority/worker.js +0 -0
- /package/{v1 → src/v1}/examples/quickstart/run.js +0 -0
- /package/{v1 → src/v1}/examples/quickstart/worker.js +0 -0
- /package/{v1 → src/v1}/examples/quickstart/workflows/first-task.d.ts +0 -0
- /package/{v1 → src/v1}/examples/quickstart/workflows/first-task.js +0 -0
- /package/{v1 → src/v1}/examples/retries/run.js +0 -0
- /package/{v1 → src/v1}/examples/retries/worker.js +0 -0
- /package/{v1 → src/v1}/examples/retries/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/simple/bulk.js +0 -0
- /package/{v1 → src/v1}/examples/simple/client-run.js +0 -0
- /package/{v1 → src/v1}/examples/simple/cron.js +0 -0
- /package/{v1 → src/v1}/examples/simple/delay.js +0 -0
- /package/{v1 → src/v1}/examples/simple/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/simple/run.js +0 -0
- /package/{v1 → src/v1}/examples/simple/schedule.js +0 -0
- /package/{v1 → src/v1}/examples/simple/stub-workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/simple/stub-workflow.js +0 -0
- /package/{v1 → src/v1}/examples/simple/typed-run-methods.js +0 -0
- /package/{v1 → src/v1}/examples/simple/worker.js +0 -0
- /package/{v1 → src/v1}/examples/simple/workflow-with-child.d.ts +0 -0
- /package/{v1 → src/v1}/examples/simple/workflow-with-child.js +0 -0
- /package/{v1 → src/v1}/examples/simple/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/simple/workflow.js +0 -0
- /package/{v1 → src/v1}/examples/simple/zod.d.ts +0 -0
- /package/{v1 → src/v1}/examples/simple/zod.js +0 -0
- /package/{v1 → src/v1}/examples/sticky/run.js +0 -0
- /package/{v1 → src/v1}/examples/sticky/worker.js +0 -0
- /package/{v1 → src/v1}/examples/streaming/nextjs-proxy.d.ts +0 -0
- /package/{v1 → src/v1}/examples/streaming/nextjs-proxy.js +0 -0
- /package/{v1 → src/v1}/examples/streaming/run.js +0 -0
- /package/{v1 → src/v1}/examples/streaming/worker.js +0 -0
- /package/{v1 → src/v1}/examples/streaming/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/streaming/workflow.js +0 -0
- /package/{v1 → src/v1}/examples/timeouts/run.js +0 -0
- /package/{v1 → src/v1}/examples/timeouts/worker.js +0 -0
- /package/{v1 → src/v1}/examples/timeouts/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/with_timeouts/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/slot-types.d.ts +0 -0
- /package/{v1 → src/v1}/slot-types.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
-
import { CreateStep } from '
|
|
3
|
-
import { ConcurrencyLimitStrategy as PbConcurrencyLimitStrategy, StickyStrategy as PbStickyStrategy } from '
|
|
2
|
+
import { CreateStep } from '../step';
|
|
3
|
+
import { ConcurrencyLimitStrategy as PbConcurrencyLimitStrategy, StickyStrategy as PbStickyStrategy } from '../protoc/workflows';
|
|
4
4
|
declare const StepsSchema: z.ZodArray<z.ZodObject<{
|
|
5
5
|
name: z.ZodString;
|
|
6
6
|
parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -12,37 +12,37 @@ declare const StepsSchema: z.ZodArray<z.ZodObject<{
|
|
|
12
12
|
dynamicKey: z.ZodOptional<z.ZodString>;
|
|
13
13
|
units: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
14
14
|
limit: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
15
|
-
duration: z.ZodOptional<z.ZodNativeEnum<typeof import("
|
|
15
|
+
duration: z.ZodOptional<z.ZodNativeEnum<typeof import("../protoc/workflows").RateLimitDuration>>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
17
|
units: string | number;
|
|
18
18
|
key?: string | undefined;
|
|
19
|
+
duration?: import("../protoc/workflows").RateLimitDuration | undefined;
|
|
19
20
|
staticKey?: string | undefined;
|
|
20
21
|
dynamicKey?: string | undefined;
|
|
21
22
|
limit?: string | number | undefined;
|
|
22
|
-
duration?: import("./protoc/workflows").RateLimitDuration | undefined;
|
|
23
23
|
}, {
|
|
24
24
|
units: string | number;
|
|
25
25
|
key?: string | undefined;
|
|
26
|
+
duration?: import("../protoc/workflows").RateLimitDuration | undefined;
|
|
26
27
|
staticKey?: string | undefined;
|
|
27
28
|
dynamicKey?: string | undefined;
|
|
28
29
|
limit?: string | number | undefined;
|
|
29
|
-
duration?: import("./protoc/workflows").RateLimitDuration | undefined;
|
|
30
30
|
}>, "many">>;
|
|
31
31
|
worker_labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
32
32
|
value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
33
33
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
34
34
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
35
|
-
comparator: z.ZodOptional<z.ZodNativeEnum<typeof import("
|
|
35
|
+
comparator: z.ZodOptional<z.ZodNativeEnum<typeof import("../protoc/workflows").WorkerLabelComparator>>;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
37
|
value: string | number;
|
|
38
38
|
required?: boolean | undefined;
|
|
39
|
+
comparator?: import("../protoc/workflows").WorkerLabelComparator | undefined;
|
|
39
40
|
weight?: number | undefined;
|
|
40
|
-
comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
|
|
41
41
|
}, {
|
|
42
42
|
value: string | number;
|
|
43
43
|
required?: boolean | undefined;
|
|
44
|
+
comparator?: import("../protoc/workflows").WorkerLabelComparator | undefined;
|
|
44
45
|
weight?: number | undefined;
|
|
45
|
-
comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
|
|
46
46
|
}>]>>>>>;
|
|
47
47
|
backoff: z.ZodOptional<z.ZodObject<{
|
|
48
48
|
factor: z.ZodOptional<z.ZodNumber>;
|
|
@@ -62,16 +62,16 @@ declare const StepsSchema: z.ZodArray<z.ZodObject<{
|
|
|
62
62
|
rate_limits?: {
|
|
63
63
|
units: string | number;
|
|
64
64
|
key?: string | undefined;
|
|
65
|
+
duration?: import("../protoc/workflows").RateLimitDuration | undefined;
|
|
65
66
|
staticKey?: string | undefined;
|
|
66
67
|
dynamicKey?: string | undefined;
|
|
67
68
|
limit?: string | number | undefined;
|
|
68
|
-
duration?: import("./protoc/workflows").RateLimitDuration | undefined;
|
|
69
69
|
}[] | undefined;
|
|
70
70
|
worker_labels?: Record<string, string | number | {
|
|
71
71
|
value: string | number;
|
|
72
72
|
required?: boolean | undefined;
|
|
73
|
+
comparator?: import("../protoc/workflows").WorkerLabelComparator | undefined;
|
|
73
74
|
weight?: number | undefined;
|
|
74
|
-
comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
|
|
75
75
|
} | undefined> | undefined;
|
|
76
76
|
backoff?: {
|
|
77
77
|
factor?: number | undefined;
|
|
@@ -85,16 +85,16 @@ declare const StepsSchema: z.ZodArray<z.ZodObject<{
|
|
|
85
85
|
rate_limits?: {
|
|
86
86
|
units: string | number;
|
|
87
87
|
key?: string | undefined;
|
|
88
|
+
duration?: import("../protoc/workflows").RateLimitDuration | undefined;
|
|
88
89
|
staticKey?: string | undefined;
|
|
89
90
|
dynamicKey?: string | undefined;
|
|
90
91
|
limit?: string | number | undefined;
|
|
91
|
-
duration?: import("./protoc/workflows").RateLimitDuration | undefined;
|
|
92
92
|
}[] | undefined;
|
|
93
93
|
worker_labels?: Record<string, string | number | {
|
|
94
94
|
value: string | number;
|
|
95
95
|
required?: boolean | undefined;
|
|
96
|
+
comparator?: import("../protoc/workflows").WorkerLabelComparator | undefined;
|
|
96
97
|
weight?: number | undefined;
|
|
97
|
-
comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
|
|
98
98
|
} | undefined> | undefined;
|
|
99
99
|
backoff?: {
|
|
100
100
|
factor?: number | undefined;
|
|
@@ -110,14 +110,14 @@ export declare const WorkflowConcurrency: z.ZodObject<{
|
|
|
110
110
|
expression: z.ZodOptional<z.ZodString>;
|
|
111
111
|
}, "strip", z.ZodTypeAny, {
|
|
112
112
|
name: string;
|
|
113
|
+
expression?: string | undefined;
|
|
113
114
|
maxRuns?: number | undefined;
|
|
114
115
|
limitStrategy?: PbConcurrencyLimitStrategy | undefined;
|
|
115
|
-
expression?: string | undefined;
|
|
116
116
|
}, {
|
|
117
117
|
name: string;
|
|
118
|
+
expression?: string | undefined;
|
|
118
119
|
maxRuns?: number | undefined;
|
|
119
120
|
limitStrategy?: PbConcurrencyLimitStrategy | undefined;
|
|
120
|
-
expression?: string | undefined;
|
|
121
121
|
}>;
|
|
122
122
|
export declare const HatchetTimeoutSchema: z.ZodString;
|
|
123
123
|
export declare const StickyStrategy: typeof PbStickyStrategy;
|
|
@@ -125,10 +125,7 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
125
125
|
id: z.ZodString;
|
|
126
126
|
description: z.ZodString;
|
|
127
127
|
version: z.ZodOptional<z.ZodString>;
|
|
128
|
-
|
|
129
|
-
* sticky will attempt to run all steps for workflow on the same worker
|
|
130
|
-
*/
|
|
131
|
-
sticky: z.ZodOptional<z.ZodNativeEnum<typeof PbStickyStrategy>>;
|
|
128
|
+
sticky: z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<typeof PbStickyStrategy>, z.ZodEnum<["soft", "hard"]>]>>;
|
|
132
129
|
scheduleTimeout: z.ZodOptional<z.ZodString>;
|
|
133
130
|
/**
|
|
134
131
|
* @deprecated Workflow timeout is deprecated. Use step timeouts instead.
|
|
@@ -164,37 +161,37 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
164
161
|
dynamicKey: z.ZodOptional<z.ZodString>;
|
|
165
162
|
units: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
166
163
|
limit: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
167
|
-
duration: z.ZodOptional<z.ZodNativeEnum<typeof import("
|
|
164
|
+
duration: z.ZodOptional<z.ZodNativeEnum<typeof import("../protoc/workflows").RateLimitDuration>>;
|
|
168
165
|
}, "strip", z.ZodTypeAny, {
|
|
169
166
|
units: string | number;
|
|
170
167
|
key?: string | undefined;
|
|
168
|
+
duration?: import("../protoc/workflows").RateLimitDuration | undefined;
|
|
171
169
|
staticKey?: string | undefined;
|
|
172
170
|
dynamicKey?: string | undefined;
|
|
173
171
|
limit?: string | number | undefined;
|
|
174
|
-
duration?: import("./protoc/workflows").RateLimitDuration | undefined;
|
|
175
172
|
}, {
|
|
176
173
|
units: string | number;
|
|
177
174
|
key?: string | undefined;
|
|
175
|
+
duration?: import("../protoc/workflows").RateLimitDuration | undefined;
|
|
178
176
|
staticKey?: string | undefined;
|
|
179
177
|
dynamicKey?: string | undefined;
|
|
180
178
|
limit?: string | number | undefined;
|
|
181
|
-
duration?: import("./protoc/workflows").RateLimitDuration | undefined;
|
|
182
179
|
}>, "many">>;
|
|
183
180
|
worker_labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
184
181
|
value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
185
182
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
186
183
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
187
|
-
comparator: z.ZodOptional<z.ZodNativeEnum<typeof import("
|
|
184
|
+
comparator: z.ZodOptional<z.ZodNativeEnum<typeof import("../protoc/workflows").WorkerLabelComparator>>;
|
|
188
185
|
}, "strip", z.ZodTypeAny, {
|
|
189
186
|
value: string | number;
|
|
190
187
|
required?: boolean | undefined;
|
|
188
|
+
comparator?: import("../protoc/workflows").WorkerLabelComparator | undefined;
|
|
191
189
|
weight?: number | undefined;
|
|
192
|
-
comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
|
|
193
190
|
}, {
|
|
194
191
|
value: string | number;
|
|
195
192
|
required?: boolean | undefined;
|
|
193
|
+
comparator?: import("../protoc/workflows").WorkerLabelComparator | undefined;
|
|
196
194
|
weight?: number | undefined;
|
|
197
|
-
comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
|
|
198
195
|
}>]>>>>>;
|
|
199
196
|
backoff: z.ZodOptional<z.ZodObject<{
|
|
200
197
|
factor: z.ZodOptional<z.ZodNumber>;
|
|
@@ -214,16 +211,16 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
214
211
|
rate_limits?: {
|
|
215
212
|
units: string | number;
|
|
216
213
|
key?: string | undefined;
|
|
214
|
+
duration?: import("../protoc/workflows").RateLimitDuration | undefined;
|
|
217
215
|
staticKey?: string | undefined;
|
|
218
216
|
dynamicKey?: string | undefined;
|
|
219
217
|
limit?: string | number | undefined;
|
|
220
|
-
duration?: import("./protoc/workflows").RateLimitDuration | undefined;
|
|
221
218
|
}[] | undefined;
|
|
222
219
|
worker_labels?: Record<string, string | number | {
|
|
223
220
|
value: string | number;
|
|
224
221
|
required?: boolean | undefined;
|
|
222
|
+
comparator?: import("../protoc/workflows").WorkerLabelComparator | undefined;
|
|
225
223
|
weight?: number | undefined;
|
|
226
|
-
comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
|
|
227
224
|
} | undefined> | undefined;
|
|
228
225
|
backoff?: {
|
|
229
226
|
factor?: number | undefined;
|
|
@@ -237,16 +234,16 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
237
234
|
rate_limits?: {
|
|
238
235
|
units: string | number;
|
|
239
236
|
key?: string | undefined;
|
|
237
|
+
duration?: import("../protoc/workflows").RateLimitDuration | undefined;
|
|
240
238
|
staticKey?: string | undefined;
|
|
241
239
|
dynamicKey?: string | undefined;
|
|
242
240
|
limit?: string | number | undefined;
|
|
243
|
-
duration?: import("./protoc/workflows").RateLimitDuration | undefined;
|
|
244
241
|
}[] | undefined;
|
|
245
242
|
worker_labels?: Record<string, string | number | {
|
|
246
243
|
value: string | number;
|
|
247
244
|
required?: boolean | undefined;
|
|
245
|
+
comparator?: import("../protoc/workflows").WorkerLabelComparator | undefined;
|
|
248
246
|
weight?: number | undefined;
|
|
249
|
-
comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
|
|
250
247
|
} | undefined> | undefined;
|
|
251
248
|
backoff?: {
|
|
252
249
|
factor?: number | undefined;
|
|
@@ -264,37 +261,37 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
264
261
|
dynamicKey: z.ZodOptional<z.ZodString>;
|
|
265
262
|
units: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
266
263
|
limit: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
267
|
-
duration: z.ZodOptional<z.ZodNativeEnum<typeof import("
|
|
264
|
+
duration: z.ZodOptional<z.ZodNativeEnum<typeof import("../protoc/workflows").RateLimitDuration>>;
|
|
268
265
|
}, "strip", z.ZodTypeAny, {
|
|
269
266
|
units: string | number;
|
|
270
267
|
key?: string | undefined;
|
|
268
|
+
duration?: import("../protoc/workflows").RateLimitDuration | undefined;
|
|
271
269
|
staticKey?: string | undefined;
|
|
272
270
|
dynamicKey?: string | undefined;
|
|
273
271
|
limit?: string | number | undefined;
|
|
274
|
-
duration?: import("./protoc/workflows").RateLimitDuration | undefined;
|
|
275
272
|
}, {
|
|
276
273
|
units: string | number;
|
|
277
274
|
key?: string | undefined;
|
|
275
|
+
duration?: import("../protoc/workflows").RateLimitDuration | undefined;
|
|
278
276
|
staticKey?: string | undefined;
|
|
279
277
|
dynamicKey?: string | undefined;
|
|
280
278
|
limit?: string | number | undefined;
|
|
281
|
-
duration?: import("./protoc/workflows").RateLimitDuration | undefined;
|
|
282
279
|
}>, "many">>;
|
|
283
280
|
worker_labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
284
281
|
value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
285
282
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
286
283
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
287
|
-
comparator: z.ZodOptional<z.ZodNativeEnum<typeof import("
|
|
284
|
+
comparator: z.ZodOptional<z.ZodNativeEnum<typeof import("../protoc/workflows").WorkerLabelComparator>>;
|
|
288
285
|
}, "strip", z.ZodTypeAny, {
|
|
289
286
|
value: string | number;
|
|
290
287
|
required?: boolean | undefined;
|
|
288
|
+
comparator?: import("../protoc/workflows").WorkerLabelComparator | undefined;
|
|
291
289
|
weight?: number | undefined;
|
|
292
|
-
comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
|
|
293
290
|
}, {
|
|
294
291
|
value: string | number;
|
|
295
292
|
required?: boolean | undefined;
|
|
293
|
+
comparator?: import("../protoc/workflows").WorkerLabelComparator | undefined;
|
|
296
294
|
weight?: number | undefined;
|
|
297
|
-
comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
|
|
298
295
|
}>]>>>>>;
|
|
299
296
|
backoff: z.ZodOptional<z.ZodObject<{
|
|
300
297
|
factor: z.ZodOptional<z.ZodNumber>;
|
|
@@ -314,16 +311,16 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
314
311
|
rate_limits?: {
|
|
315
312
|
units: string | number;
|
|
316
313
|
key?: string | undefined;
|
|
314
|
+
duration?: import("../protoc/workflows").RateLimitDuration | undefined;
|
|
317
315
|
staticKey?: string | undefined;
|
|
318
316
|
dynamicKey?: string | undefined;
|
|
319
317
|
limit?: string | number | undefined;
|
|
320
|
-
duration?: import("./protoc/workflows").RateLimitDuration | undefined;
|
|
321
318
|
}[] | undefined;
|
|
322
319
|
worker_labels?: Record<string, string | number | {
|
|
323
320
|
value: string | number;
|
|
324
321
|
required?: boolean | undefined;
|
|
322
|
+
comparator?: import("../protoc/workflows").WorkerLabelComparator | undefined;
|
|
325
323
|
weight?: number | undefined;
|
|
326
|
-
comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
|
|
327
324
|
} | undefined> | undefined;
|
|
328
325
|
backoff?: {
|
|
329
326
|
factor?: number | undefined;
|
|
@@ -337,16 +334,16 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
337
334
|
rate_limits?: {
|
|
338
335
|
units: string | number;
|
|
339
336
|
key?: string | undefined;
|
|
337
|
+
duration?: import("../protoc/workflows").RateLimitDuration | undefined;
|
|
340
338
|
staticKey?: string | undefined;
|
|
341
339
|
dynamicKey?: string | undefined;
|
|
342
340
|
limit?: string | number | undefined;
|
|
343
|
-
duration?: import("./protoc/workflows").RateLimitDuration | undefined;
|
|
344
341
|
}[] | undefined;
|
|
345
342
|
worker_labels?: Record<string, string | number | {
|
|
346
343
|
value: string | number;
|
|
347
344
|
required?: boolean | undefined;
|
|
345
|
+
comparator?: import("../protoc/workflows").WorkerLabelComparator | undefined;
|
|
348
346
|
weight?: number | undefined;
|
|
349
|
-
comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
|
|
350
347
|
} | undefined> | undefined;
|
|
351
348
|
backoff?: {
|
|
352
349
|
factor?: number | undefined;
|
|
@@ -354,8 +351,8 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
354
351
|
} | undefined;
|
|
355
352
|
}>>;
|
|
356
353
|
}, "strip", z.ZodTypeAny, {
|
|
357
|
-
id: string;
|
|
358
354
|
description: string;
|
|
355
|
+
id: string;
|
|
359
356
|
steps: {
|
|
360
357
|
name: string;
|
|
361
358
|
timeout?: string | undefined;
|
|
@@ -364,16 +361,16 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
364
361
|
rate_limits?: {
|
|
365
362
|
units: string | number;
|
|
366
363
|
key?: string | undefined;
|
|
364
|
+
duration?: import("../protoc/workflows").RateLimitDuration | undefined;
|
|
367
365
|
staticKey?: string | undefined;
|
|
368
366
|
dynamicKey?: string | undefined;
|
|
369
367
|
limit?: string | number | undefined;
|
|
370
|
-
duration?: import("./protoc/workflows").RateLimitDuration | undefined;
|
|
371
368
|
}[] | undefined;
|
|
372
369
|
worker_labels?: Record<string, string | number | {
|
|
373
370
|
value: string | number;
|
|
374
371
|
required?: boolean | undefined;
|
|
372
|
+
comparator?: import("../protoc/workflows").WorkerLabelComparator | undefined;
|
|
375
373
|
weight?: number | undefined;
|
|
376
|
-
comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
|
|
377
374
|
} | undefined> | undefined;
|
|
378
375
|
backoff?: {
|
|
379
376
|
factor?: number | undefined;
|
|
@@ -382,7 +379,7 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
382
379
|
}[];
|
|
383
380
|
version?: string | undefined;
|
|
384
381
|
timeout?: string | undefined;
|
|
385
|
-
sticky?: PbStickyStrategy | undefined;
|
|
382
|
+
sticky?: PbStickyStrategy | "soft" | "hard" | undefined;
|
|
386
383
|
scheduleTimeout?: string | undefined;
|
|
387
384
|
on?: {
|
|
388
385
|
cron: string;
|
|
@@ -399,16 +396,16 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
399
396
|
rate_limits?: {
|
|
400
397
|
units: string | number;
|
|
401
398
|
key?: string | undefined;
|
|
399
|
+
duration?: import("../protoc/workflows").RateLimitDuration | undefined;
|
|
402
400
|
staticKey?: string | undefined;
|
|
403
401
|
dynamicKey?: string | undefined;
|
|
404
402
|
limit?: string | number | undefined;
|
|
405
|
-
duration?: import("./protoc/workflows").RateLimitDuration | undefined;
|
|
406
403
|
}[] | undefined;
|
|
407
404
|
worker_labels?: Record<string, string | number | {
|
|
408
405
|
value: string | number;
|
|
409
406
|
required?: boolean | undefined;
|
|
407
|
+
comparator?: import("../protoc/workflows").WorkerLabelComparator | undefined;
|
|
410
408
|
weight?: number | undefined;
|
|
411
|
-
comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
|
|
412
409
|
} | undefined> | undefined;
|
|
413
410
|
backoff?: {
|
|
414
411
|
factor?: number | undefined;
|
|
@@ -416,8 +413,8 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
416
413
|
} | undefined;
|
|
417
414
|
} | undefined;
|
|
418
415
|
}, {
|
|
419
|
-
id: string;
|
|
420
416
|
description: string;
|
|
417
|
+
id: string;
|
|
421
418
|
steps: {
|
|
422
419
|
name: string;
|
|
423
420
|
timeout?: string | undefined;
|
|
@@ -426,16 +423,16 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
426
423
|
rate_limits?: {
|
|
427
424
|
units: string | number;
|
|
428
425
|
key?: string | undefined;
|
|
426
|
+
duration?: import("../protoc/workflows").RateLimitDuration | undefined;
|
|
429
427
|
staticKey?: string | undefined;
|
|
430
428
|
dynamicKey?: string | undefined;
|
|
431
429
|
limit?: string | number | undefined;
|
|
432
|
-
duration?: import("./protoc/workflows").RateLimitDuration | undefined;
|
|
433
430
|
}[] | undefined;
|
|
434
431
|
worker_labels?: Record<string, string | number | {
|
|
435
432
|
value: string | number;
|
|
436
433
|
required?: boolean | undefined;
|
|
434
|
+
comparator?: import("../protoc/workflows").WorkerLabelComparator | undefined;
|
|
437
435
|
weight?: number | undefined;
|
|
438
|
-
comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
|
|
439
436
|
} | undefined> | undefined;
|
|
440
437
|
backoff?: {
|
|
441
438
|
factor?: number | undefined;
|
|
@@ -444,7 +441,7 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
444
441
|
}[];
|
|
445
442
|
version?: string | undefined;
|
|
446
443
|
timeout?: string | undefined;
|
|
447
|
-
sticky?: PbStickyStrategy | undefined;
|
|
444
|
+
sticky?: PbStickyStrategy | "soft" | "hard" | undefined;
|
|
448
445
|
scheduleTimeout?: string | undefined;
|
|
449
446
|
on?: {
|
|
450
447
|
cron: string;
|
|
@@ -461,16 +458,16 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
461
458
|
rate_limits?: {
|
|
462
459
|
units: string | number;
|
|
463
460
|
key?: string | undefined;
|
|
461
|
+
duration?: import("../protoc/workflows").RateLimitDuration | undefined;
|
|
464
462
|
staticKey?: string | undefined;
|
|
465
463
|
dynamicKey?: string | undefined;
|
|
466
464
|
limit?: string | number | undefined;
|
|
467
|
-
duration?: import("./protoc/workflows").RateLimitDuration | undefined;
|
|
468
465
|
}[] | undefined;
|
|
469
466
|
worker_labels?: Record<string, string | number | {
|
|
470
467
|
value: string | number;
|
|
471
468
|
required?: boolean | undefined;
|
|
469
|
+
comparator?: import("../protoc/workflows").WorkerLabelComparator | undefined;
|
|
472
470
|
weight?: number | undefined;
|
|
473
|
-
comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
|
|
474
471
|
} | undefined> | undefined;
|
|
475
472
|
backoff?: {
|
|
476
473
|
factor?: number | undefined;
|
|
@@ -35,8 +35,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.CreateWorkflowSchema = exports.StickyStrategy = exports.HatchetTimeoutSchema = exports.WorkflowConcurrency = exports.ConcurrencyLimitStrategy = void 0;
|
|
37
37
|
const z = __importStar(require("zod"));
|
|
38
|
-
const step_1 = require("
|
|
39
|
-
const workflows_1 = require("
|
|
38
|
+
const step_1 = require("../step");
|
|
39
|
+
const workflows_1 = require("../protoc/workflows");
|
|
40
40
|
const CronConfigSchema = z.object({
|
|
41
41
|
cron: z.string(),
|
|
42
42
|
event: z.undefined(),
|
|
@@ -60,10 +60,7 @@ exports.CreateWorkflowSchema = z.object({
|
|
|
60
60
|
id: z.string(),
|
|
61
61
|
description: z.string(),
|
|
62
62
|
version: z.string().optional(),
|
|
63
|
-
|
|
64
|
-
* sticky will attempt to run all steps for workflow on the same worker
|
|
65
|
-
*/
|
|
66
|
-
sticky: z.nativeEnum(exports.StickyStrategy).optional(),
|
|
63
|
+
sticky: z.union([z.nativeEnum(workflows_1.StickyStrategy), z.enum(['soft', 'hard'])]).optional(),
|
|
67
64
|
scheduleTimeout: z.string().optional(),
|
|
68
65
|
/**
|
|
69
66
|
* @deprecated Workflow timeout is deprecated. Use step timeouts instead.
|
|
@@ -82,6 +82,13 @@ export interface TriggerWorkflowRunRequest {
|
|
|
82
82
|
input: Uint8Array;
|
|
83
83
|
additionalMetadata: Uint8Array;
|
|
84
84
|
priority?: number | undefined;
|
|
85
|
+
desiredWorkerLabels: {
|
|
86
|
+
[key: string]: DesiredWorkerLabels;
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
export interface TriggerWorkflowRunRequest_DesiredWorkerLabelsEntry {
|
|
90
|
+
key: string;
|
|
91
|
+
value: DesiredWorkerLabels | undefined;
|
|
85
92
|
}
|
|
86
93
|
export interface TriggerWorkflowRunResponse {
|
|
87
94
|
externalId: string;
|
|
@@ -259,6 +266,7 @@ export declare const TasksFilter: MessageFns<TasksFilter>;
|
|
|
259
266
|
export declare const CancelTasksResponse: MessageFns<CancelTasksResponse>;
|
|
260
267
|
export declare const ReplayTasksResponse: MessageFns<ReplayTasksResponse>;
|
|
261
268
|
export declare const TriggerWorkflowRunRequest: MessageFns<TriggerWorkflowRunRequest>;
|
|
269
|
+
export declare const TriggerWorkflowRunRequest_DesiredWorkerLabelsEntry: MessageFns<TriggerWorkflowRunRequest_DesiredWorkerLabelsEntry>;
|
|
262
270
|
export declare const TriggerWorkflowRunResponse: MessageFns<TriggerWorkflowRunResponse>;
|
|
263
271
|
export declare const CreateWorkflowVersionRequest: MessageFns<CreateWorkflowVersionRequest>;
|
|
264
272
|
export declare const DefaultFilter: MessageFns<DefaultFilter>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v3.19.1
|
|
6
6
|
// source: v1/workflows.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.AdminServiceDefinition = exports.GetRunDetailsResponse_TaskRunsEntry = exports.GetRunDetailsResponse = exports.TaskRunDetail = exports.GetRunDetailsRequest = exports.CreateWorkflowVersionResponse = exports.CreateTaskRateLimit = exports.CreateTaskOpts_SlotRequestsEntry = exports.CreateTaskOpts_WorkerLabelsEntry = exports.CreateTaskOpts = exports.DesiredWorkerLabels = exports.Concurrency = exports.DefaultFilter = exports.CreateWorkflowVersionRequest = exports.TriggerWorkflowRunResponse = exports.TriggerWorkflowRunRequest = exports.ReplayTasksResponse = exports.CancelTasksResponse = exports.TasksFilter = exports.ReplayTasksRequest = exports.CancelTasksRequest = exports.WorkerLabelComparator = exports.ConcurrencyLimitStrategy = exports.RunStatus = exports.RateLimitDuration = exports.StickyStrategy = exports.protobufPackage = void 0;
|
|
8
|
+
exports.AdminServiceDefinition = exports.GetRunDetailsResponse_TaskRunsEntry = exports.GetRunDetailsResponse = exports.TaskRunDetail = exports.GetRunDetailsRequest = exports.CreateWorkflowVersionResponse = exports.CreateTaskRateLimit = exports.CreateTaskOpts_SlotRequestsEntry = exports.CreateTaskOpts_WorkerLabelsEntry = exports.CreateTaskOpts = exports.DesiredWorkerLabels = exports.Concurrency = exports.DefaultFilter = exports.CreateWorkflowVersionRequest = exports.TriggerWorkflowRunResponse = exports.TriggerWorkflowRunRequest_DesiredWorkerLabelsEntry = exports.TriggerWorkflowRunRequest = exports.ReplayTasksResponse = exports.CancelTasksResponse = exports.TasksFilter = exports.ReplayTasksRequest = exports.CancelTasksRequest = exports.WorkerLabelComparator = exports.ConcurrencyLimitStrategy = exports.RunStatus = exports.RateLimitDuration = exports.StickyStrategy = exports.protobufPackage = void 0;
|
|
9
9
|
exports.stickyStrategyFromJSON = stickyStrategyFromJSON;
|
|
10
10
|
exports.stickyStrategyToJSON = stickyStrategyToJSON;
|
|
11
11
|
exports.rateLimitDurationFromJSON = rateLimitDurationFromJSON;
|
|
@@ -665,6 +665,7 @@ function createBaseTriggerWorkflowRunRequest() {
|
|
|
665
665
|
input: new Uint8Array(0),
|
|
666
666
|
additionalMetadata: new Uint8Array(0),
|
|
667
667
|
priority: undefined,
|
|
668
|
+
desiredWorkerLabels: {},
|
|
668
669
|
};
|
|
669
670
|
}
|
|
670
671
|
exports.TriggerWorkflowRunRequest = {
|
|
@@ -681,6 +682,9 @@ exports.TriggerWorkflowRunRequest = {
|
|
|
681
682
|
if (message.priority !== undefined) {
|
|
682
683
|
writer.uint32(32).int32(message.priority);
|
|
683
684
|
}
|
|
685
|
+
Object.entries(message.desiredWorkerLabels).forEach(([key, value]) => {
|
|
686
|
+
exports.TriggerWorkflowRunRequest_DesiredWorkerLabelsEntry.encode({ key: key, value }, writer.uint32(42).fork()).join();
|
|
687
|
+
});
|
|
684
688
|
return writer;
|
|
685
689
|
},
|
|
686
690
|
decode(input, length) {
|
|
@@ -718,6 +722,16 @@ exports.TriggerWorkflowRunRequest = {
|
|
|
718
722
|
message.priority = reader.int32();
|
|
719
723
|
continue;
|
|
720
724
|
}
|
|
725
|
+
case 5: {
|
|
726
|
+
if (tag !== 42) {
|
|
727
|
+
break;
|
|
728
|
+
}
|
|
729
|
+
const entry5 = exports.TriggerWorkflowRunRequest_DesiredWorkerLabelsEntry.decode(reader, reader.uint32());
|
|
730
|
+
if (entry5.value !== undefined) {
|
|
731
|
+
message.desiredWorkerLabels[entry5.key] = entry5.value;
|
|
732
|
+
}
|
|
733
|
+
continue;
|
|
734
|
+
}
|
|
721
735
|
}
|
|
722
736
|
if ((tag & 7) === 4 || tag === 0) {
|
|
723
737
|
break;
|
|
@@ -734,6 +748,12 @@ exports.TriggerWorkflowRunRequest = {
|
|
|
734
748
|
? bytesFromBase64(object.additionalMetadata)
|
|
735
749
|
: new Uint8Array(0),
|
|
736
750
|
priority: isSet(object.priority) ? globalThis.Number(object.priority) : undefined,
|
|
751
|
+
desiredWorkerLabels: isObject(object.desiredWorkerLabels)
|
|
752
|
+
? Object.entries(object.desiredWorkerLabels).reduce((acc, [key, value]) => {
|
|
753
|
+
acc[key] = exports.DesiredWorkerLabels.fromJSON(value);
|
|
754
|
+
return acc;
|
|
755
|
+
}, {})
|
|
756
|
+
: {},
|
|
737
757
|
};
|
|
738
758
|
},
|
|
739
759
|
toJSON(message) {
|
|
@@ -750,18 +770,105 @@ exports.TriggerWorkflowRunRequest = {
|
|
|
750
770
|
if (message.priority !== undefined) {
|
|
751
771
|
obj.priority = Math.round(message.priority);
|
|
752
772
|
}
|
|
773
|
+
if (message.desiredWorkerLabels) {
|
|
774
|
+
const entries = Object.entries(message.desiredWorkerLabels);
|
|
775
|
+
if (entries.length > 0) {
|
|
776
|
+
obj.desiredWorkerLabels = {};
|
|
777
|
+
entries.forEach(([k, v]) => {
|
|
778
|
+
obj.desiredWorkerLabels[k] = exports.DesiredWorkerLabels.toJSON(v);
|
|
779
|
+
});
|
|
780
|
+
}
|
|
781
|
+
}
|
|
753
782
|
return obj;
|
|
754
783
|
},
|
|
755
784
|
create(base) {
|
|
756
785
|
return exports.TriggerWorkflowRunRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
757
786
|
},
|
|
758
787
|
fromPartial(object) {
|
|
759
|
-
var _a, _b, _c, _d;
|
|
788
|
+
var _a, _b, _c, _d, _e;
|
|
760
789
|
const message = createBaseTriggerWorkflowRunRequest();
|
|
761
790
|
message.workflowName = (_a = object.workflowName) !== null && _a !== void 0 ? _a : '';
|
|
762
791
|
message.input = (_b = object.input) !== null && _b !== void 0 ? _b : new Uint8Array(0);
|
|
763
792
|
message.additionalMetadata = (_c = object.additionalMetadata) !== null && _c !== void 0 ? _c : new Uint8Array(0);
|
|
764
793
|
message.priority = (_d = object.priority) !== null && _d !== void 0 ? _d : undefined;
|
|
794
|
+
message.desiredWorkerLabels = Object.entries((_e = object.desiredWorkerLabels) !== null && _e !== void 0 ? _e : {}).reduce((acc, [key, value]) => {
|
|
795
|
+
if (value !== undefined) {
|
|
796
|
+
acc[key] = exports.DesiredWorkerLabels.fromPartial(value);
|
|
797
|
+
}
|
|
798
|
+
return acc;
|
|
799
|
+
}, {});
|
|
800
|
+
return message;
|
|
801
|
+
},
|
|
802
|
+
};
|
|
803
|
+
function createBaseTriggerWorkflowRunRequest_DesiredWorkerLabelsEntry() {
|
|
804
|
+
return { key: '', value: undefined };
|
|
805
|
+
}
|
|
806
|
+
exports.TriggerWorkflowRunRequest_DesiredWorkerLabelsEntry = {
|
|
807
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
808
|
+
if (message.key !== '') {
|
|
809
|
+
writer.uint32(10).string(message.key);
|
|
810
|
+
}
|
|
811
|
+
if (message.value !== undefined) {
|
|
812
|
+
exports.DesiredWorkerLabels.encode(message.value, writer.uint32(18).fork()).join();
|
|
813
|
+
}
|
|
814
|
+
return writer;
|
|
815
|
+
},
|
|
816
|
+
decode(input, length) {
|
|
817
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
818
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
819
|
+
const message = createBaseTriggerWorkflowRunRequest_DesiredWorkerLabelsEntry();
|
|
820
|
+
while (reader.pos < end) {
|
|
821
|
+
const tag = reader.uint32();
|
|
822
|
+
switch (tag >>> 3) {
|
|
823
|
+
case 1: {
|
|
824
|
+
if (tag !== 10) {
|
|
825
|
+
break;
|
|
826
|
+
}
|
|
827
|
+
message.key = reader.string();
|
|
828
|
+
continue;
|
|
829
|
+
}
|
|
830
|
+
case 2: {
|
|
831
|
+
if (tag !== 18) {
|
|
832
|
+
break;
|
|
833
|
+
}
|
|
834
|
+
message.value = exports.DesiredWorkerLabels.decode(reader, reader.uint32());
|
|
835
|
+
continue;
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
839
|
+
break;
|
|
840
|
+
}
|
|
841
|
+
reader.skip(tag & 7);
|
|
842
|
+
}
|
|
843
|
+
return message;
|
|
844
|
+
},
|
|
845
|
+
fromJSON(object) {
|
|
846
|
+
return {
|
|
847
|
+
key: isSet(object.key) ? globalThis.String(object.key) : '',
|
|
848
|
+
value: isSet(object.value) ? exports.DesiredWorkerLabels.fromJSON(object.value) : undefined,
|
|
849
|
+
};
|
|
850
|
+
},
|
|
851
|
+
toJSON(message) {
|
|
852
|
+
const obj = {};
|
|
853
|
+
if (message.key !== '') {
|
|
854
|
+
obj.key = message.key;
|
|
855
|
+
}
|
|
856
|
+
if (message.value !== undefined) {
|
|
857
|
+
obj.value = exports.DesiredWorkerLabels.toJSON(message.value);
|
|
858
|
+
}
|
|
859
|
+
return obj;
|
|
860
|
+
},
|
|
861
|
+
create(base) {
|
|
862
|
+
return exports.TriggerWorkflowRunRequest_DesiredWorkerLabelsEntry.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
863
|
+
},
|
|
864
|
+
fromPartial(object) {
|
|
865
|
+
var _a;
|
|
866
|
+
const message = createBaseTriggerWorkflowRunRequest_DesiredWorkerLabelsEntry();
|
|
867
|
+
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : '';
|
|
868
|
+
message.value =
|
|
869
|
+
object.value !== undefined && object.value !== null
|
|
870
|
+
? exports.DesiredWorkerLabels.fromPartial(object.value)
|
|
871
|
+
: undefined;
|
|
765
872
|
return message;
|
|
766
873
|
},
|
|
767
874
|
};
|
|
@@ -258,6 +258,14 @@ export interface TriggerWorkflowRequest {
|
|
|
258
258
|
desiredWorkerId?: string | undefined;
|
|
259
259
|
/** (optional) override for the priority of the workflow tasks, will set all tasks to this priority */
|
|
260
260
|
priority?: number | undefined;
|
|
261
|
+
/** (optional) override for the desired worker labels for the workflow tasks, used for routing to specific workers (or worker pools) */
|
|
262
|
+
desiredWorkerLabels: {
|
|
263
|
+
[key: string]: DesiredWorkerLabels;
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
export interface TriggerWorkflowRequest_DesiredWorkerLabelsEntry {
|
|
267
|
+
key: string;
|
|
268
|
+
value: DesiredWorkerLabels | undefined;
|
|
261
269
|
}
|
|
262
270
|
export interface TriggerWorkflowResponse {
|
|
263
271
|
workflowRunId: string;
|
|
@@ -289,6 +297,7 @@ export declare const WorkflowTriggerCronRef: MessageFns<WorkflowTriggerCronRef>;
|
|
|
289
297
|
export declare const BulkTriggerWorkflowRequest: MessageFns<BulkTriggerWorkflowRequest>;
|
|
290
298
|
export declare const BulkTriggerWorkflowResponse: MessageFns<BulkTriggerWorkflowResponse>;
|
|
291
299
|
export declare const TriggerWorkflowRequest: MessageFns<TriggerWorkflowRequest>;
|
|
300
|
+
export declare const TriggerWorkflowRequest_DesiredWorkerLabelsEntry: MessageFns<TriggerWorkflowRequest_DesiredWorkerLabelsEntry>;
|
|
292
301
|
export declare const TriggerWorkflowResponse: MessageFns<TriggerWorkflowResponse>;
|
|
293
302
|
export declare const PutRateLimitRequest: MessageFns<PutRateLimitRequest>;
|
|
294
303
|
export declare const PutRateLimitResponse: MessageFns<PutRateLimitResponse>;
|