hatchet-sdk 0.4.0 → 0.6.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/lib/hatchet/batch.rb +58 -0
- data/lib/hatchet/clients/grpc/dispatcher.rb +42 -0
- data/lib/hatchet/clients/rest/.openapi-generator/FILES +24 -0
- data/lib/hatchet/clients/rest/README.md +31 -1
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/durable_tasks_api.rb +113 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/feature_flags_api.rb +107 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/log_api.rb +156 -52
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/observability_api.rb +114 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/rate_limits_api.rb +78 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/task_api.rb +71 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/tenant_api.rb +3 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/worker_api.rb +12 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/workflow_api.rb +170 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/workflow_runs_api.rb +94 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api_model_base.rb +88 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/api_meta.rb +44 -4
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/feature_flag_evaluation_result.rb +238 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/feature_flag_id.rb +41 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/otel_span.rb +525 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/otel_span_kind.rb +44 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/otel_span_list.rb +242 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/otel_status_code.rb +41 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/task_status_stat.rb +13 -4
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant.rb +24 -4
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_member.rb +14 -4
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/trigger_run_result.rb +256 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_additional_metadata_operator.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_branch_durable_task_request.rb +310 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_branch_durable_task_response.rb +310 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_create_webhook_request_api_key.rb +14 -4
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_create_webhook_request_base.rb +14 -4
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_create_webhook_request_basic_auth.rb +14 -4
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_create_webhook_request_hmac.rb +14 -4
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_durable_event_log_entry.rb +470 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_durable_event_log_kind.rb +41 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_durable_wait_condition.rb +286 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_durable_wait_condition_kind.rb +41 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_log_line.rb +49 -1
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_logs_point_metric.rb +341 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_logs_point_metrics.rb +222 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_restore_task_response.rb +237 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_running_detail_count.rb +265 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_running_filter.rb +41 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_event_type.rb +5 -1
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_run_metric.rb +13 -4
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_summary.rb +34 -4
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_timing.rb +11 -1
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_trigger_workflow_run_request.rb +14 -4
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_update_webhook_request.rb +14 -4
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_wait_item.rb +280 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_webhook.rb +14 -4
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/worker.rb +1 -13
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/worker_status.rb +41 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_version_idempotency.rb +265 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_version_task.rb +393 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_version_task_desired_worker_label.rb +288 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_version_task_rate_limit.rb +271 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest.rb +24 -0
- data/lib/hatchet/context.rb +37 -1
- data/lib/hatchet/contracts/dispatcher/dispatcher_pb.rb +4 -1
- data/lib/hatchet/contracts/dispatcher/dispatcher_services_pb.rb +3 -0
- data/lib/hatchet/contracts/v1/workflows_pb.rb +4 -1
- data/lib/hatchet/idempotency.rb +35 -1
- data/lib/hatchet/task.rb +13 -0
- data/lib/hatchet/version.rb +1 -1
- data/lib/hatchet/worker/runner.rb +113 -0
- data/lib/hatchet/workflow.rb +21 -2
- data/lib/hatchet-sdk.rb +25 -0
- data/sig/hatchet/batch.rbs +12 -0
- data/sig/hatchet/idempotency.rbs +8 -0
- data/sig/hatchet/task.rbs +2 -0
- metadata +33 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ff2dd555f1014c00180a93c1aafae9460a8351f8c1886e95352509bca192d9d8
|
|
4
|
+
data.tar.gz: e29f29b01b65e6832d102677256a9611adcaad4a3292af670af8a21620b9f7ed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e74daa0f99b13ab549bda5fed63a128ba790bb9f21f31b3b795724c62c9d392588d15bcdf13e6e93ba87a3161ad85c75794d1e2a2cca83f3341dcf598f79041e
|
|
7
|
+
data.tar.gz: cfb10290a951b5539e34b013a547648c3907a66e13186f81b76d9ec3c96f47b8d0520a5e3cad2b3c3a2bb8c09b4636e86a902a68851a2f05a7704840ec09774c
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,19 @@ All notable changes to Hatchet's Ruby SDK will be documented in this changelog.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.6.0] - 2026-07-23
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Adds beta `batch_task` methods to both tasks and workflows, allowing for dynamic batching based on either time or batch size.
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [0.5.0] - 2026-07-22
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- Adds support for terminal status-based idempotency keys, which are released when the task holding the key reaches a terminal state (either completed, cancelled, or having failed and exhausted all retries).
|
|
20
|
+
|
|
8
21
|
## [0.4.0] - 2026-06-03
|
|
9
22
|
|
|
10
23
|
### Added
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Hatchet
|
|
4
|
+
# Configures a task as a batch task: concurrent runs are buffered and dispatched together
|
|
5
|
+
# as a single execution once max_size is reached, max_interval_ms elapses, or (if
|
|
6
|
+
# group_key is set) once group_max_runs concurrent batches per group are exceeded.
|
|
7
|
+
#
|
|
8
|
+
# When batch is set on a task, the task's block receives a single Hash argument mapping
|
|
9
|
+
# each buffered run's task-run external id to that run's input, instead of a single input
|
|
10
|
+
# value. Unless broadcast_output is true, the block must return a Hash with the exact same
|
|
11
|
+
# key set, mapping each id to that run's output.
|
|
12
|
+
#
|
|
13
|
+
# @example
|
|
14
|
+
# Hatchet::BatchTaskConfig.new(max_size: 3, max_interval_ms: 200, group_key: "input.group")
|
|
15
|
+
class BatchTaskConfig
|
|
16
|
+
# @return [Integer] Maximum number of items buffered before the batch is flushed
|
|
17
|
+
attr_reader :max_size
|
|
18
|
+
|
|
19
|
+
# @return [Integer, nil] Maximum time to wait before flushing a partially-filled batch, in milliseconds
|
|
20
|
+
attr_reader :max_interval_ms
|
|
21
|
+
|
|
22
|
+
# @return [String, nil] CEL expression evaluated against each item's input to partition items into independent batches
|
|
23
|
+
attr_reader :group_key
|
|
24
|
+
|
|
25
|
+
# @return [Integer, nil] Maximum number of concurrent batches per group
|
|
26
|
+
attr_reader :group_max_runs
|
|
27
|
+
|
|
28
|
+
# @return [Boolean] When true, the block returns a single value broadcast to every member of the batch
|
|
29
|
+
attr_reader :broadcast_output
|
|
30
|
+
|
|
31
|
+
# @param max_size [Integer] Maximum items per batch. Must be positive.
|
|
32
|
+
# @param max_interval_ms [Integer, nil] Time before batch flushes, in milliseconds. Must be positive when provided.
|
|
33
|
+
# @param group_key [String, nil] CEL expression to partition batches, e.g. "input.group"
|
|
34
|
+
# @param group_max_runs [Integer, nil] Concurrent batches per group. Must be positive when provided.
|
|
35
|
+
# @param broadcast_output [Boolean] Whether the block's return value is broadcast to every batch member
|
|
36
|
+
def initialize(max_size:, max_interval_ms: nil, group_key: nil, group_max_runs: nil, broadcast_output: false)
|
|
37
|
+
raise ArgumentError, "max_size must be positive" unless max_size.positive?
|
|
38
|
+
raise ArgumentError, "max_interval_ms must be positive when provided" if !max_interval_ms.nil? && !max_interval_ms.positive?
|
|
39
|
+
raise ArgumentError, "group_max_runs must be positive when provided" if !group_max_runs.nil? && !group_max_runs.positive?
|
|
40
|
+
|
|
41
|
+
@max_size = max_size
|
|
42
|
+
@max_interval_ms = max_interval_ms
|
|
43
|
+
@group_key = group_key
|
|
44
|
+
@group_max_runs = group_max_runs
|
|
45
|
+
@broadcast_output = broadcast_output
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# @return [V1::TaskBatchConfig]
|
|
49
|
+
def to_proto
|
|
50
|
+
args = { batch_max_size: @max_size, broadcast_output: @broadcast_output }
|
|
51
|
+
args[:batch_max_interval_ms] = @max_interval_ms if @max_interval_ms
|
|
52
|
+
args[:batch_group_key] = @group_key if @group_key
|
|
53
|
+
args[:batch_group_max_runs] = @group_max_runs if @group_max_runs
|
|
54
|
+
|
|
55
|
+
::V1::TaskBatchConfig.new(**args)
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -167,6 +167,48 @@ module Hatchet
|
|
|
167
167
|
@stub.send_step_action_event(request, metadata: @config.auth_metadata)
|
|
168
168
|
end
|
|
169
169
|
|
|
170
|
+
# Send a batch action event (completion/failure/started) covering one or more
|
|
171
|
+
# members of a batch task's execution back to the dispatcher.
|
|
172
|
+
#
|
|
173
|
+
# @param action [AssignedAction] The assigned START_BATCH action
|
|
174
|
+
# @param event_type [Symbol] Protobuf enum value (e.g., :STEP_EVENT_TYPE_COMPLETED)
|
|
175
|
+
# @param items [Array<Hash>] Per-member items, each with :task_run_external_id, and
|
|
176
|
+
# optionally :event_payload, :retry_count, :should_not_retry
|
|
177
|
+
# @return [ActionEventResponse]
|
|
178
|
+
def send_batch_action_event(action:, event_type:, items:)
|
|
179
|
+
ensure_connected!
|
|
180
|
+
|
|
181
|
+
now = Time.now
|
|
182
|
+
timestamp = Google::Protobuf::Timestamp.new(
|
|
183
|
+
seconds: now.to_i,
|
|
184
|
+
nanos: now.nsec,
|
|
185
|
+
)
|
|
186
|
+
|
|
187
|
+
item_protos = items.map do |item|
|
|
188
|
+
item_args = {
|
|
189
|
+
task_run_external_id: item[:task_run_external_id],
|
|
190
|
+
event_payload: item[:event_payload] || "{}",
|
|
191
|
+
}
|
|
192
|
+
item_args[:retry_count] = item[:retry_count] unless item[:retry_count].nil?
|
|
193
|
+
item_args[:should_not_retry] = item[:should_not_retry] unless item[:should_not_retry].nil?
|
|
194
|
+
|
|
195
|
+
::BatchActionEventItem.new(**item_args)
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
event_args = {
|
|
199
|
+
worker_id: @worker_id || "",
|
|
200
|
+
job_id: action.job_id,
|
|
201
|
+
action_id: action.action_id,
|
|
202
|
+
event_timestamp: timestamp,
|
|
203
|
+
event_type: event_type,
|
|
204
|
+
items: item_protos,
|
|
205
|
+
}
|
|
206
|
+
event_args[:batch_id] = action.batchId if action.respond_to?(:batchId) && action.batchId && !action.batchId.empty?
|
|
207
|
+
|
|
208
|
+
request = ::BatchActionEvent.new(**event_args)
|
|
209
|
+
@stub.send_batch_action_event(request, metadata: @config.auth_metadata)
|
|
210
|
+
end
|
|
211
|
+
|
|
170
212
|
# Refresh the timeout for a running task.
|
|
171
213
|
#
|
|
172
214
|
# @param step_run_id [String] The task run external ID
|
|
@@ -12,12 +12,15 @@ lib/hatchet-sdk-rest.rb
|
|
|
12
12
|
lib/hatchet-sdk-rest/api/api_token_api.rb
|
|
13
13
|
lib/hatchet-sdk-rest/api/cel_api.rb
|
|
14
14
|
lib/hatchet-sdk-rest/api/default_api.rb
|
|
15
|
+
lib/hatchet-sdk-rest/api/durable_tasks_api.rb
|
|
15
16
|
lib/hatchet-sdk-rest/api/event_api.rb
|
|
17
|
+
lib/hatchet-sdk-rest/api/feature_flags_api.rb
|
|
16
18
|
lib/hatchet-sdk-rest/api/filter_api.rb
|
|
17
19
|
lib/hatchet-sdk-rest/api/github_api.rb
|
|
18
20
|
lib/hatchet-sdk-rest/api/healthcheck_api.rb
|
|
19
21
|
lib/hatchet-sdk-rest/api/log_api.rb
|
|
20
22
|
lib/hatchet-sdk-rest/api/metadata_api.rb
|
|
23
|
+
lib/hatchet-sdk-rest/api/observability_api.rb
|
|
21
24
|
lib/hatchet-sdk-rest/api/rate_limits_api.rb
|
|
22
25
|
lib/hatchet-sdk-rest/api/slack_api.rb
|
|
23
26
|
lib/hatchet-sdk-rest/api/sns_api.rb
|
|
@@ -70,6 +73,8 @@ lib/hatchet-sdk-rest/models/event_order_by_field.rb
|
|
|
70
73
|
lib/hatchet-sdk-rest/models/event_update_cancel200_response.rb
|
|
71
74
|
lib/hatchet-sdk-rest/models/event_workflow_run_summary.rb
|
|
72
75
|
lib/hatchet-sdk-rest/models/events.rb
|
|
76
|
+
lib/hatchet-sdk-rest/models/feature_flag_evaluation_result.rb
|
|
77
|
+
lib/hatchet-sdk-rest/models/feature_flag_id.rb
|
|
73
78
|
lib/hatchet-sdk-rest/models/get_step_run_diff_response.rb
|
|
74
79
|
lib/hatchet-sdk-rest/models/info_get_version200_response.rb
|
|
75
80
|
lib/hatchet-sdk-rest/models/job.rb
|
|
@@ -84,6 +89,10 @@ lib/hatchet-sdk-rest/models/log_line_level.rb
|
|
|
84
89
|
lib/hatchet-sdk-rest/models/log_line_list.rb
|
|
85
90
|
lib/hatchet-sdk-rest/models/log_line_order_by_direction.rb
|
|
86
91
|
lib/hatchet-sdk-rest/models/log_line_order_by_field.rb
|
|
92
|
+
lib/hatchet-sdk-rest/models/otel_span.rb
|
|
93
|
+
lib/hatchet-sdk-rest/models/otel_span_kind.rb
|
|
94
|
+
lib/hatchet-sdk-rest/models/otel_span_list.rb
|
|
95
|
+
lib/hatchet-sdk-rest/models/otel_status_code.rb
|
|
87
96
|
lib/hatchet-sdk-rest/models/pagination_response.rb
|
|
88
97
|
lib/hatchet-sdk-rest/models/pull_request.rb
|
|
89
98
|
lib/hatchet-sdk-rest/models/pull_request_state.rb
|
|
@@ -144,6 +153,7 @@ lib/hatchet-sdk-rest/models/tenant_resource_limit.rb
|
|
|
144
153
|
lib/hatchet-sdk-rest/models/tenant_resource_policy.rb
|
|
145
154
|
lib/hatchet-sdk-rest/models/tenant_step_run_queue_metrics.rb
|
|
146
155
|
lib/hatchet-sdk-rest/models/tenant_version.rb
|
|
156
|
+
lib/hatchet-sdk-rest/models/trigger_run_result.rb
|
|
147
157
|
lib/hatchet-sdk-rest/models/trigger_workflow_run_request.rb
|
|
148
158
|
lib/hatchet-sdk-rest/models/update_cron_workflow_trigger_request.rb
|
|
149
159
|
lib/hatchet-sdk-rest/models/update_scheduled_workflow_run_request.rb
|
|
@@ -158,6 +168,9 @@ lib/hatchet-sdk-rest/models/user_login_request.rb
|
|
|
158
168
|
lib/hatchet-sdk-rest/models/user_register_request.rb
|
|
159
169
|
lib/hatchet-sdk-rest/models/user_tenant_memberships_list.rb
|
|
160
170
|
lib/hatchet-sdk-rest/models/user_tenant_public.rb
|
|
171
|
+
lib/hatchet-sdk-rest/models/v1_additional_metadata_operator.rb
|
|
172
|
+
lib/hatchet-sdk-rest/models/v1_branch_durable_task_request.rb
|
|
173
|
+
lib/hatchet-sdk-rest/models/v1_branch_durable_task_response.rb
|
|
161
174
|
lib/hatchet-sdk-rest/models/v1_cancel_task_request.rb
|
|
162
175
|
lib/hatchet-sdk-rest/models/v1_cancelled_tasks.rb
|
|
163
176
|
lib/hatchet-sdk-rest/models/v1_cel_debug_request.rb
|
|
@@ -170,6 +183,10 @@ lib/hatchet-sdk-rest/models/v1_create_webhook_request_base.rb
|
|
|
170
183
|
lib/hatchet-sdk-rest/models/v1_create_webhook_request_basic_auth.rb
|
|
171
184
|
lib/hatchet-sdk-rest/models/v1_create_webhook_request_hmac.rb
|
|
172
185
|
lib/hatchet-sdk-rest/models/v1_dag_children.rb
|
|
186
|
+
lib/hatchet-sdk-rest/models/v1_durable_event_log_entry.rb
|
|
187
|
+
lib/hatchet-sdk-rest/models/v1_durable_event_log_kind.rb
|
|
188
|
+
lib/hatchet-sdk-rest/models/v1_durable_wait_condition.rb
|
|
189
|
+
lib/hatchet-sdk-rest/models/v1_durable_wait_condition_kind.rb
|
|
173
190
|
lib/hatchet-sdk-rest/models/v1_event.rb
|
|
174
191
|
lib/hatchet-sdk-rest/models/v1_event_list.rb
|
|
175
192
|
lib/hatchet-sdk-rest/models/v1_event_triggered_run.rb
|
|
@@ -180,8 +197,13 @@ lib/hatchet-sdk-rest/models/v1_log_line.rb
|
|
|
180
197
|
lib/hatchet-sdk-rest/models/v1_log_line_level.rb
|
|
181
198
|
lib/hatchet-sdk-rest/models/v1_log_line_list.rb
|
|
182
199
|
lib/hatchet-sdk-rest/models/v1_log_line_order_by_direction.rb
|
|
200
|
+
lib/hatchet-sdk-rest/models/v1_logs_point_metric.rb
|
|
201
|
+
lib/hatchet-sdk-rest/models/v1_logs_point_metrics.rb
|
|
183
202
|
lib/hatchet-sdk-rest/models/v1_replay_task_request.rb
|
|
184
203
|
lib/hatchet-sdk-rest/models/v1_replayed_tasks.rb
|
|
204
|
+
lib/hatchet-sdk-rest/models/v1_restore_task_response.rb
|
|
205
|
+
lib/hatchet-sdk-rest/models/v1_running_detail_count.rb
|
|
206
|
+
lib/hatchet-sdk-rest/models/v1_running_filter.rb
|
|
185
207
|
lib/hatchet-sdk-rest/models/v1_task_event.rb
|
|
186
208
|
lib/hatchet-sdk-rest/models/v1_task_event_list.rb
|
|
187
209
|
lib/hatchet-sdk-rest/models/v1_task_event_type.rb
|
|
@@ -198,6 +220,7 @@ lib/hatchet-sdk-rest/models/v1_task_timing_list.rb
|
|
|
198
220
|
lib/hatchet-sdk-rest/models/v1_trigger_workflow_run_request.rb
|
|
199
221
|
lib/hatchet-sdk-rest/models/v1_update_filter_request.rb
|
|
200
222
|
lib/hatchet-sdk-rest/models/v1_update_webhook_request.rb
|
|
223
|
+
lib/hatchet-sdk-rest/models/v1_wait_item.rb
|
|
201
224
|
lib/hatchet-sdk-rest/models/v1_webhook.rb
|
|
202
225
|
lib/hatchet-sdk-rest/models/v1_webhook_api_key_auth.rb
|
|
203
226
|
lib/hatchet-sdk-rest/models/v1_webhook_auth_type.rb
|
|
@@ -227,6 +250,7 @@ lib/hatchet-sdk-rest/models/worker_list.rb
|
|
|
227
250
|
lib/hatchet-sdk-rest/models/worker_runtime_info.rb
|
|
228
251
|
lib/hatchet-sdk-rest/models/worker_runtime_sdks.rb
|
|
229
252
|
lib/hatchet-sdk-rest/models/worker_slot_config.rb
|
|
253
|
+
lib/hatchet-sdk-rest/models/worker_status.rb
|
|
230
254
|
lib/hatchet-sdk-rest/models/worker_type.rb
|
|
231
255
|
lib/hatchet-sdk-rest/models/workflow.rb
|
|
232
256
|
lib/hatchet-sdk-rest/models/workflow_concurrency.rb
|
|
@@ -108,6 +108,7 @@ Class | Method | HTTP request | Description
|
|
|
108
108
|
*HatchetSdkRest::DefaultApi* | [**webhook_delete**](docs/DefaultApi.md#webhook_delete) | **DELETE** /api/v1/webhook-workers/{webhook} | Delete a webhook
|
|
109
109
|
*HatchetSdkRest::DefaultApi* | [**webhook_list**](docs/DefaultApi.md#webhook_list) | **GET** /api/v1/tenants/{tenant}/webhook-workers | List webhooks
|
|
110
110
|
*HatchetSdkRest::DefaultApi* | [**webhook_requests_list**](docs/DefaultApi.md#webhook_requests_list) | **GET** /api/v1/webhook-workers/{webhook}/requests | List webhook requests
|
|
111
|
+
*HatchetSdkRest::DurableTasksApi* | [**v1_durable_task_event_log_list**](docs/DurableTasksApi.md#v1_durable_task_event_log_list) | **GET** /api/v1/stable/tenants/{tenant}/durable-tasks/{durable-task} | List durable event log
|
|
111
112
|
*HatchetSdkRest::EventApi* | [**event_create**](docs/EventApi.md#event_create) | **POST** /api/v1/tenants/{tenant}/events | Create event
|
|
112
113
|
*HatchetSdkRest::EventApi* | [**event_create_bulk**](docs/EventApi.md#event_create_bulk) | **POST** /api/v1/tenants/{tenant}/events/bulk | Bulk Create events
|
|
113
114
|
*HatchetSdkRest::EventApi* | [**event_data_get**](docs/EventApi.md#event_data_get) | **GET** /api/v1/events/{event}/data | Get event data
|
|
@@ -120,6 +121,7 @@ Class | Method | HTTP request | Description
|
|
|
120
121
|
*HatchetSdkRest::EventApi* | [**v1_event_get**](docs/EventApi.md#v1_event_get) | **GET** /api/v1/stable/tenants/{tenant}/events/{v1-event} | Get events
|
|
121
122
|
*HatchetSdkRest::EventApi* | [**v1_event_key_list**](docs/EventApi.md#v1_event_key_list) | **GET** /api/v1/stable/tenants/{tenant}/events/keys | List event keys
|
|
122
123
|
*HatchetSdkRest::EventApi* | [**v1_event_list**](docs/EventApi.md#v1_event_list) | **GET** /api/v1/stable/tenants/{tenant}/events | List events
|
|
124
|
+
*HatchetSdkRest::FeatureFlagsApi* | [**tenant_feature_flag_evaluate**](docs/FeatureFlagsApi.md#tenant_feature_flag_evaluate) | **GET** /api/v1/tenants/{tenant}/feature-flags | Evaluate a feature flag for a tenant
|
|
123
125
|
*HatchetSdkRest::FilterApi* | [**v1_filter_create**](docs/FilterApi.md#v1_filter_create) | **POST** /api/v1/stable/tenants/{tenant}/filters | Create a filter
|
|
124
126
|
*HatchetSdkRest::FilterApi* | [**v1_filter_delete**](docs/FilterApi.md#v1_filter_delete) | **DELETE** /api/v1/stable/tenants/{tenant}/filters/{v1-filter} |
|
|
125
127
|
*HatchetSdkRest::FilterApi* | [**v1_filter_get**](docs/FilterApi.md#v1_filter_get) | **GET** /api/v1/stable/tenants/{tenant}/filters/{v1-filter} | Get a filter
|
|
@@ -128,11 +130,14 @@ Class | Method | HTTP request | Description
|
|
|
128
130
|
*HatchetSdkRest::GithubApi* | [**sns_update**](docs/GithubApi.md#sns_update) | **POST** /api/v1/sns/{tenant}/{event} | Github app tenant webhook
|
|
129
131
|
*HatchetSdkRest::HealthcheckApi* | [**liveness_get**](docs/HealthcheckApi.md#liveness_get) | **GET** /api/live | Get liveness
|
|
130
132
|
*HatchetSdkRest::HealthcheckApi* | [**readiness_get**](docs/HealthcheckApi.md#readiness_get) | **GET** /api/ready | Get readiness
|
|
131
|
-
*HatchetSdkRest::LogApi* | [**log_line_list**](docs/LogApi.md#log_line_list) | **GET** /api/v1/step-runs/{step-run}/logs | List log lines
|
|
132
133
|
*HatchetSdkRest::LogApi* | [**v1_log_line_list**](docs/LogApi.md#v1_log_line_list) | **GET** /api/v1/stable/tasks/{task}/logs | List log lines
|
|
134
|
+
*HatchetSdkRest::LogApi* | [**v1_tenant_log_line_get_point_metrics**](docs/LogApi.md#v1_tenant_log_line_get_point_metrics) | **GET** /api/v1/stable/tenants/{tenant}/log-point-metrics | Get log point metrics
|
|
135
|
+
*HatchetSdkRest::LogApi* | [**v1_tenant_log_line_list**](docs/LogApi.md#v1_tenant_log_line_list) | **GET** /api/v1/stable/tenants/{tenant}/logs | List log lines
|
|
133
136
|
*HatchetSdkRest::MetadataApi* | [**cloud_metadata_get**](docs/MetadataApi.md#cloud_metadata_get) | **GET** /api/v1/cloud/metadata | Get cloud metadata
|
|
134
137
|
*HatchetSdkRest::MetadataApi* | [**metadata_get**](docs/MetadataApi.md#metadata_get) | **GET** /api/v1/meta | Get metadata
|
|
135
138
|
*HatchetSdkRest::MetadataApi* | [**metadata_list_integrations**](docs/MetadataApi.md#metadata_list_integrations) | **GET** /api/v1/meta/integrations | List integrations
|
|
139
|
+
*HatchetSdkRest::ObservabilityApi* | [**v1_observability_get_trace**](docs/ObservabilityApi.md#v1_observability_get_trace) | **GET** /api/v1/stable/tenants/{tenant}/traces | Get OTel trace
|
|
140
|
+
*HatchetSdkRest::RateLimitsApi* | [**rate_limit_delete**](docs/RateLimitsApi.md#rate_limit_delete) | **DELETE** /api/v1/tenants/{tenant}/rate-limits | Delete rate limit
|
|
136
141
|
*HatchetSdkRest::RateLimitsApi* | [**rate_limit_list**](docs/RateLimitsApi.md#rate_limit_list) | **GET** /api/v1/tenants/{tenant}/rate-limits | List rate limits
|
|
137
142
|
*HatchetSdkRest::SNSApi* | [**sns_create**](docs/SNSApi.md#sns_create) | **POST** /api/v1/tenants/{tenant}/sns | Create SNS integration
|
|
138
143
|
*HatchetSdkRest::SNSApi* | [**sns_delete**](docs/SNSApi.md#sns_delete) | **DELETE** /api/v1/sns/{sns} | Delete SNS integration
|
|
@@ -153,6 +158,7 @@ Class | Method | HTTP request | Description
|
|
|
153
158
|
*HatchetSdkRest::TaskApi* | [**v1_task_get_point_metrics**](docs/TaskApi.md#v1_task_get_point_metrics) | **GET** /api/v1/stable/tenants/{tenant}/task-point-metrics | Get task point metrics
|
|
154
159
|
*HatchetSdkRest::TaskApi* | [**v1_task_list_status_metrics**](docs/TaskApi.md#v1_task_list_status_metrics) | **GET** /api/v1/stable/tenants/{tenant}/task-metrics | Get task metrics
|
|
155
160
|
*HatchetSdkRest::TaskApi* | [**v1_task_replay**](docs/TaskApi.md#v1_task_replay) | **POST** /api/v1/stable/tenants/{tenant}/tasks/replay | Replay tasks
|
|
161
|
+
*HatchetSdkRest::TaskApi* | [**v1_task_restore**](docs/TaskApi.md#v1_task_restore) | **POST** /api/v1/stable/tasks/{task}/restore | Restore a task
|
|
156
162
|
*HatchetSdkRest::TenantApi* | [**alert_email_group_create**](docs/TenantApi.md#alert_email_group_create) | **POST** /api/v1/tenants/{tenant}/alerting-email-groups | Create tenant alert email group
|
|
157
163
|
*HatchetSdkRest::TenantApi* | [**alert_email_group_delete**](docs/TenantApi.md#alert_email_group_delete) | **DELETE** /api/v1/alerting-email-groups/{alert-email-group} | Delete tenant alert email group
|
|
158
164
|
*HatchetSdkRest::TenantApi* | [**alert_email_group_list**](docs/TenantApi.md#alert_email_group_list) | **GET** /api/v1/tenants/{tenant}/alerting-email-groups | List tenant alert email groups
|
|
@@ -198,6 +204,7 @@ Class | Method | HTTP request | Description
|
|
|
198
204
|
*HatchetSdkRest::WorkflowApi* | [**tenant_get_queue_metrics**](docs/WorkflowApi.md#tenant_get_queue_metrics) | **GET** /api/v1/tenants/{tenant}/queue-metrics | Get workflow metrics
|
|
199
205
|
*HatchetSdkRest::WorkflowApi* | [**workflow_cron_delete**](docs/WorkflowApi.md#workflow_cron_delete) | **DELETE** /api/v1/tenants/{tenant}/workflows/crons/{cron-workflow} | Delete cron job workflow run
|
|
200
206
|
*HatchetSdkRest::WorkflowApi* | [**workflow_cron_get**](docs/WorkflowApi.md#workflow_cron_get) | **GET** /api/v1/tenants/{tenant}/workflows/crons/{cron-workflow} | Get cron job workflow run
|
|
207
|
+
*HatchetSdkRest::WorkflowApi* | [**workflow_cron_trigger**](docs/WorkflowApi.md#workflow_cron_trigger) | **POST** /api/v1/tenants/{tenant}/workflows/crons/{cron-workflow} | Trigger cron job workflow run immediately
|
|
201
208
|
*HatchetSdkRest::WorkflowApi* | [**workflow_cron_update**](docs/WorkflowApi.md#workflow_cron_update) | **PATCH** /api/v1/tenants/{tenant}/workflows/crons/{cron-workflow} | Update cron job workflow run
|
|
202
209
|
*HatchetSdkRest::WorkflowApi* | [**workflow_delete**](docs/WorkflowApi.md#workflow_delete) | **DELETE** /api/v1/workflows/{workflow} | Delete workflow
|
|
203
210
|
*HatchetSdkRest::WorkflowApi* | [**workflow_get**](docs/WorkflowApi.md#workflow_get) | **GET** /api/v1/workflows/{workflow} | Get workflow
|
|
@@ -213,6 +220,7 @@ Class | Method | HTTP request | Description
|
|
|
213
220
|
*HatchetSdkRest::WorkflowApi* | [**workflow_scheduled_delete**](docs/WorkflowApi.md#workflow_scheduled_delete) | **DELETE** /api/v1/tenants/{tenant}/workflows/scheduled/{scheduled-workflow-run} | Delete scheduled workflow run
|
|
214
221
|
*HatchetSdkRest::WorkflowApi* | [**workflow_scheduled_get**](docs/WorkflowApi.md#workflow_scheduled_get) | **GET** /api/v1/tenants/{tenant}/workflows/scheduled/{scheduled-workflow-run} | Get scheduled workflow run
|
|
215
222
|
*HatchetSdkRest::WorkflowApi* | [**workflow_scheduled_list**](docs/WorkflowApi.md#workflow_scheduled_list) | **GET** /api/v1/tenants/{tenant}/workflows/scheduled | Get scheduled workflow runs
|
|
223
|
+
*HatchetSdkRest::WorkflowApi* | [**workflow_scheduled_trigger**](docs/WorkflowApi.md#workflow_scheduled_trigger) | **POST** /api/v1/tenants/{tenant}/workflows/scheduled/{scheduled-workflow-run} | Trigger scheduled workflow run
|
|
216
224
|
*HatchetSdkRest::WorkflowApi* | [**workflow_scheduled_update**](docs/WorkflowApi.md#workflow_scheduled_update) | **PATCH** /api/v1/tenants/{tenant}/workflows/scheduled/{scheduled-workflow-run} | Update scheduled workflow run
|
|
217
225
|
*HatchetSdkRest::WorkflowApi* | [**workflow_update**](docs/WorkflowApi.md#workflow_update) | **PATCH** /api/v1/workflows/{workflow} | Update workflow
|
|
218
226
|
*HatchetSdkRest::WorkflowApi* | [**workflow_version_get**](docs/WorkflowApi.md#workflow_version_get) | **GET** /api/v1/workflows/{workflow}/versions | Get workflow version
|
|
@@ -222,6 +230,7 @@ Class | Method | HTTP request | Description
|
|
|
222
230
|
*HatchetSdkRest::WorkflowRunApi* | [**workflow_run_create**](docs/WorkflowRunApi.md#workflow_run_create) | **POST** /api/v1/workflows/{workflow}/trigger | Trigger workflow run
|
|
223
231
|
*HatchetSdkRest::WorkflowRunApi* | [**workflow_run_get_input**](docs/WorkflowRunApi.md#workflow_run_get_input) | **GET** /api/v1/tenants/{tenant}/workflow-runs/{workflow-run}/input | Get workflow run input
|
|
224
232
|
*HatchetSdkRest::WorkflowRunApi* | [**workflow_run_update_replay**](docs/WorkflowRunApi.md#workflow_run_update_replay) | **POST** /api/v1/tenants/{tenant}/workflow-runs/replay | Replay workflow runs
|
|
233
|
+
*HatchetSdkRest::WorkflowRunsApi* | [**v1_durable_task_branch**](docs/WorkflowRunsApi.md#v1_durable_task_branch) | **POST** /api/v1/stable/tenants/{tenant}/durable-tasks/branch | Branch durable task
|
|
225
234
|
*HatchetSdkRest::WorkflowRunsApi* | [**v1_workflow_run_create**](docs/WorkflowRunsApi.md#v1_workflow_run_create) | **POST** /api/v1/stable/tenants/{tenant}/workflow-runs/trigger | Create workflow run
|
|
226
235
|
*HatchetSdkRest::WorkflowRunsApi* | [**v1_workflow_run_display_names_list**](docs/WorkflowRunsApi.md#v1_workflow_run_display_names_list) | **GET** /api/v1/stable/tenants/{tenant}/workflow-runs/display-names | List workflow runs
|
|
227
236
|
*HatchetSdkRest::WorkflowRunsApi* | [**v1_workflow_run_external_ids_list**](docs/WorkflowRunsApi.md#v1_workflow_run_external_ids_list) | **GET** /api/v1/stable/tenants/{tenant}/workflow-runs/external-ids | List workflow run external ids
|
|
@@ -271,6 +280,8 @@ Class | Method | HTTP request | Description
|
|
|
271
280
|
- [HatchetSdkRest::EventUpdateCancel200Response](docs/EventUpdateCancel200Response.md)
|
|
272
281
|
- [HatchetSdkRest::EventWorkflowRunSummary](docs/EventWorkflowRunSummary.md)
|
|
273
282
|
- [HatchetSdkRest::Events](docs/Events.md)
|
|
283
|
+
- [HatchetSdkRest::FeatureFlagEvaluationResult](docs/FeatureFlagEvaluationResult.md)
|
|
284
|
+
- [HatchetSdkRest::FeatureFlagId](docs/FeatureFlagId.md)
|
|
274
285
|
- [HatchetSdkRest::GetStepRunDiffResponse](docs/GetStepRunDiffResponse.md)
|
|
275
286
|
- [HatchetSdkRest::InfoGetVersion200Response](docs/InfoGetVersion200Response.md)
|
|
276
287
|
- [HatchetSdkRest::Job](docs/Job.md)
|
|
@@ -285,6 +296,10 @@ Class | Method | HTTP request | Description
|
|
|
285
296
|
- [HatchetSdkRest::LogLineList](docs/LogLineList.md)
|
|
286
297
|
- [HatchetSdkRest::LogLineOrderByDirection](docs/LogLineOrderByDirection.md)
|
|
287
298
|
- [HatchetSdkRest::LogLineOrderByField](docs/LogLineOrderByField.md)
|
|
299
|
+
- [HatchetSdkRest::OtelSpan](docs/OtelSpan.md)
|
|
300
|
+
- [HatchetSdkRest::OtelSpanKind](docs/OtelSpanKind.md)
|
|
301
|
+
- [HatchetSdkRest::OtelSpanList](docs/OtelSpanList.md)
|
|
302
|
+
- [HatchetSdkRest::OtelStatusCode](docs/OtelStatusCode.md)
|
|
288
303
|
- [HatchetSdkRest::PaginationResponse](docs/PaginationResponse.md)
|
|
289
304
|
- [HatchetSdkRest::PullRequest](docs/PullRequest.md)
|
|
290
305
|
- [HatchetSdkRest::PullRequestState](docs/PullRequestState.md)
|
|
@@ -345,6 +360,7 @@ Class | Method | HTTP request | Description
|
|
|
345
360
|
- [HatchetSdkRest::TenantResourcePolicy](docs/TenantResourcePolicy.md)
|
|
346
361
|
- [HatchetSdkRest::TenantStepRunQueueMetrics](docs/TenantStepRunQueueMetrics.md)
|
|
347
362
|
- [HatchetSdkRest::TenantVersion](docs/TenantVersion.md)
|
|
363
|
+
- [HatchetSdkRest::TriggerRunResult](docs/TriggerRunResult.md)
|
|
348
364
|
- [HatchetSdkRest::TriggerWorkflowRunRequest](docs/TriggerWorkflowRunRequest.md)
|
|
349
365
|
- [HatchetSdkRest::UpdateCronWorkflowTriggerRequest](docs/UpdateCronWorkflowTriggerRequest.md)
|
|
350
366
|
- [HatchetSdkRest::UpdateScheduledWorkflowRunRequest](docs/UpdateScheduledWorkflowRunRequest.md)
|
|
@@ -359,6 +375,9 @@ Class | Method | HTTP request | Description
|
|
|
359
375
|
- [HatchetSdkRest::UserRegisterRequest](docs/UserRegisterRequest.md)
|
|
360
376
|
- [HatchetSdkRest::UserTenantMembershipsList](docs/UserTenantMembershipsList.md)
|
|
361
377
|
- [HatchetSdkRest::UserTenantPublic](docs/UserTenantPublic.md)
|
|
378
|
+
- [HatchetSdkRest::V1AdditionalMetadataOperator](docs/V1AdditionalMetadataOperator.md)
|
|
379
|
+
- [HatchetSdkRest::V1BranchDurableTaskRequest](docs/V1BranchDurableTaskRequest.md)
|
|
380
|
+
- [HatchetSdkRest::V1BranchDurableTaskResponse](docs/V1BranchDurableTaskResponse.md)
|
|
362
381
|
- [HatchetSdkRest::V1CELDebugRequest](docs/V1CELDebugRequest.md)
|
|
363
382
|
- [HatchetSdkRest::V1CELDebugResponse](docs/V1CELDebugResponse.md)
|
|
364
383
|
- [HatchetSdkRest::V1CELDebugResponseStatus](docs/V1CELDebugResponseStatus.md)
|
|
@@ -371,6 +390,10 @@ Class | Method | HTTP request | Description
|
|
|
371
390
|
- [HatchetSdkRest::V1CreateWebhookRequestBasicAuth](docs/V1CreateWebhookRequestBasicAuth.md)
|
|
372
391
|
- [HatchetSdkRest::V1CreateWebhookRequestHMAC](docs/V1CreateWebhookRequestHMAC.md)
|
|
373
392
|
- [HatchetSdkRest::V1DagChildren](docs/V1DagChildren.md)
|
|
393
|
+
- [HatchetSdkRest::V1DurableEventLogEntry](docs/V1DurableEventLogEntry.md)
|
|
394
|
+
- [HatchetSdkRest::V1DurableEventLogKind](docs/V1DurableEventLogKind.md)
|
|
395
|
+
- [HatchetSdkRest::V1DurableWaitCondition](docs/V1DurableWaitCondition.md)
|
|
396
|
+
- [HatchetSdkRest::V1DurableWaitConditionKind](docs/V1DurableWaitConditionKind.md)
|
|
374
397
|
- [HatchetSdkRest::V1Event](docs/V1Event.md)
|
|
375
398
|
- [HatchetSdkRest::V1EventList](docs/V1EventList.md)
|
|
376
399
|
- [HatchetSdkRest::V1EventTriggeredRun](docs/V1EventTriggeredRun.md)
|
|
@@ -381,8 +404,13 @@ Class | Method | HTTP request | Description
|
|
|
381
404
|
- [HatchetSdkRest::V1LogLineLevel](docs/V1LogLineLevel.md)
|
|
382
405
|
- [HatchetSdkRest::V1LogLineList](docs/V1LogLineList.md)
|
|
383
406
|
- [HatchetSdkRest::V1LogLineOrderByDirection](docs/V1LogLineOrderByDirection.md)
|
|
407
|
+
- [HatchetSdkRest::V1LogsPointMetric](docs/V1LogsPointMetric.md)
|
|
408
|
+
- [HatchetSdkRest::V1LogsPointMetrics](docs/V1LogsPointMetrics.md)
|
|
384
409
|
- [HatchetSdkRest::V1ReplayTaskRequest](docs/V1ReplayTaskRequest.md)
|
|
385
410
|
- [HatchetSdkRest::V1ReplayedTasks](docs/V1ReplayedTasks.md)
|
|
411
|
+
- [HatchetSdkRest::V1RestoreTaskResponse](docs/V1RestoreTaskResponse.md)
|
|
412
|
+
- [HatchetSdkRest::V1RunningDetailCount](docs/V1RunningDetailCount.md)
|
|
413
|
+
- [HatchetSdkRest::V1RunningFilter](docs/V1RunningFilter.md)
|
|
386
414
|
- [HatchetSdkRest::V1TaskEvent](docs/V1TaskEvent.md)
|
|
387
415
|
- [HatchetSdkRest::V1TaskEventList](docs/V1TaskEventList.md)
|
|
388
416
|
- [HatchetSdkRest::V1TaskEventType](docs/V1TaskEventType.md)
|
|
@@ -399,6 +427,7 @@ Class | Method | HTTP request | Description
|
|
|
399
427
|
- [HatchetSdkRest::V1TriggerWorkflowRunRequest](docs/V1TriggerWorkflowRunRequest.md)
|
|
400
428
|
- [HatchetSdkRest::V1UpdateFilterRequest](docs/V1UpdateFilterRequest.md)
|
|
401
429
|
- [HatchetSdkRest::V1UpdateWebhookRequest](docs/V1UpdateWebhookRequest.md)
|
|
430
|
+
- [HatchetSdkRest::V1WaitItem](docs/V1WaitItem.md)
|
|
402
431
|
- [HatchetSdkRest::V1Webhook](docs/V1Webhook.md)
|
|
403
432
|
- [HatchetSdkRest::V1WebhookAPIKeyAuth](docs/V1WebhookAPIKeyAuth.md)
|
|
404
433
|
- [HatchetSdkRest::V1WebhookAuthType](docs/V1WebhookAuthType.md)
|
|
@@ -428,6 +457,7 @@ Class | Method | HTTP request | Description
|
|
|
428
457
|
- [HatchetSdkRest::WorkerRuntimeInfo](docs/WorkerRuntimeInfo.md)
|
|
429
458
|
- [HatchetSdkRest::WorkerRuntimeSDKs](docs/WorkerRuntimeSDKs.md)
|
|
430
459
|
- [HatchetSdkRest::WorkerSlotConfig](docs/WorkerSlotConfig.md)
|
|
460
|
+
- [HatchetSdkRest::WorkerStatus](docs/WorkerStatus.md)
|
|
431
461
|
- [HatchetSdkRest::WorkerType](docs/WorkerType.md)
|
|
432
462
|
- [HatchetSdkRest::Workflow](docs/Workflow.md)
|
|
433
463
|
- [HatchetSdkRest::WorkflowConcurrency](docs/WorkflowConcurrency.md)
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Hatchet API
|
|
3
|
+
|
|
4
|
+
#The Hatchet API
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.14.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module HatchetSdkRest
|
|
16
|
+
class DurableTasksApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# List durable event log
|
|
23
|
+
# Lists all event log entries for a durable task.
|
|
24
|
+
# @param tenant [String] The tenant id
|
|
25
|
+
# @param durable_task [String] The durable task external id
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @option opts [Integer] :offset The number of event log entries to skip
|
|
28
|
+
# @option opts [Integer] :limit The number of event log entries to limit by
|
|
29
|
+
# @return [Array<V1DurableEventLogEntry>]
|
|
30
|
+
def v1_durable_task_event_log_list(tenant, durable_task, opts = {})
|
|
31
|
+
data, _status_code, _headers = v1_durable_task_event_log_list_with_http_info(tenant, durable_task, opts)
|
|
32
|
+
data
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# List durable event log
|
|
36
|
+
# Lists all event log entries for a durable task.
|
|
37
|
+
# @param tenant [String] The tenant id
|
|
38
|
+
# @param durable_task [String] The durable task external id
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [Integer] :offset The number of event log entries to skip
|
|
41
|
+
# @option opts [Integer] :limit The number of event log entries to limit by
|
|
42
|
+
# @return [Array<(Array<V1DurableEventLogEntry>, Integer, Hash)>] Array<V1DurableEventLogEntry> data, response status code and response headers
|
|
43
|
+
def v1_durable_task_event_log_list_with_http_info(tenant, durable_task, opts = {})
|
|
44
|
+
if @api_client.config.debugging
|
|
45
|
+
@api_client.config.logger.debug 'Calling API: DurableTasksApi.v1_durable_task_event_log_list ...'
|
|
46
|
+
end
|
|
47
|
+
# verify the required parameter 'tenant' is set
|
|
48
|
+
if @api_client.config.client_side_validation && tenant.nil?
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'tenant' when calling DurableTasksApi.v1_durable_task_event_log_list"
|
|
50
|
+
end
|
|
51
|
+
if @api_client.config.client_side_validation && tenant.to_s.length > 36
|
|
52
|
+
fail ArgumentError, 'invalid value for "tenant" when calling DurableTasksApi.v1_durable_task_event_log_list, the character length must be smaller than or equal to 36.'
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
if @api_client.config.client_side_validation && tenant.to_s.length < 36
|
|
56
|
+
fail ArgumentError, 'invalid value for "tenant" when calling DurableTasksApi.v1_durable_task_event_log_list, the character length must be greater than or equal to 36.'
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# verify the required parameter 'durable_task' is set
|
|
60
|
+
if @api_client.config.client_side_validation && durable_task.nil?
|
|
61
|
+
fail ArgumentError, "Missing the required parameter 'durable_task' when calling DurableTasksApi.v1_durable_task_event_log_list"
|
|
62
|
+
end
|
|
63
|
+
if @api_client.config.client_side_validation && durable_task.to_s.length > 36
|
|
64
|
+
fail ArgumentError, 'invalid value for "durable_task" when calling DurableTasksApi.v1_durable_task_event_log_list, the character length must be smaller than or equal to 36.'
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
if @api_client.config.client_side_validation && durable_task.to_s.length < 36
|
|
68
|
+
fail ArgumentError, 'invalid value for "durable_task" when calling DurableTasksApi.v1_durable_task_event_log_list, the character length must be greater than or equal to 36.'
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# resource path
|
|
72
|
+
local_var_path = '/api/v1/stable/tenants/{tenant}/durable-tasks/{durable-task}'.sub('{' + 'tenant' + '}', CGI.escape(tenant.to_s)).sub('{' + 'durable-task' + '}', CGI.escape(durable_task.to_s))
|
|
73
|
+
|
|
74
|
+
# query parameters
|
|
75
|
+
query_params = opts[:query_params] || {}
|
|
76
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
77
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
78
|
+
|
|
79
|
+
# header parameters
|
|
80
|
+
header_params = opts[:header_params] || {}
|
|
81
|
+
# HTTP header 'Accept' (if needed)
|
|
82
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
83
|
+
|
|
84
|
+
# form parameters
|
|
85
|
+
form_params = opts[:form_params] || {}
|
|
86
|
+
|
|
87
|
+
# http body (model)
|
|
88
|
+
post_body = opts[:debug_body]
|
|
89
|
+
|
|
90
|
+
# return_type
|
|
91
|
+
return_type = opts[:debug_return_type] || 'Array<V1DurableEventLogEntry>'
|
|
92
|
+
|
|
93
|
+
# auth_names
|
|
94
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
95
|
+
|
|
96
|
+
new_options = opts.merge(
|
|
97
|
+
:operation => :"DurableTasksApi.v1_durable_task_event_log_list",
|
|
98
|
+
:header_params => header_params,
|
|
99
|
+
:query_params => query_params,
|
|
100
|
+
:form_params => form_params,
|
|
101
|
+
:body => post_body,
|
|
102
|
+
:auth_names => auth_names,
|
|
103
|
+
:return_type => return_type
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
107
|
+
if @api_client.config.debugging
|
|
108
|
+
@api_client.config.logger.debug "API called: DurableTasksApi#v1_durable_task_event_log_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
109
|
+
end
|
|
110
|
+
return data, status_code, headers
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
end
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Hatchet API
|
|
3
|
+
|
|
4
|
+
#The Hatchet API
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.14.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module HatchetSdkRest
|
|
16
|
+
class FeatureFlagsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Evaluate a feature flag for a tenant
|
|
23
|
+
# Evaluate a feature flag for a tenant
|
|
24
|
+
# @param tenant [String] The tenant ID
|
|
25
|
+
# @param feature_flag_id [FeatureFlagId] The feature flag id to evaluate
|
|
26
|
+
# @param is_enabled_if_no_posthog [Boolean] A flag indicating what the behavior of the feature flag should be if PostHog is disabled or unavailable
|
|
27
|
+
# @param [Hash] opts the optional parameters
|
|
28
|
+
# @return [FeatureFlagEvaluationResult]
|
|
29
|
+
def tenant_feature_flag_evaluate(tenant, feature_flag_id, is_enabled_if_no_posthog, opts = {})
|
|
30
|
+
data, _status_code, _headers = tenant_feature_flag_evaluate_with_http_info(tenant, feature_flag_id, is_enabled_if_no_posthog, opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Evaluate a feature flag for a tenant
|
|
35
|
+
# Evaluate a feature flag for a tenant
|
|
36
|
+
# @param tenant [String] The tenant ID
|
|
37
|
+
# @param feature_flag_id [FeatureFlagId] The feature flag id to evaluate
|
|
38
|
+
# @param is_enabled_if_no_posthog [Boolean] A flag indicating what the behavior of the feature flag should be if PostHog is disabled or unavailable
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [Array<(FeatureFlagEvaluationResult, Integer, Hash)>] FeatureFlagEvaluationResult data, response status code and response headers
|
|
41
|
+
def tenant_feature_flag_evaluate_with_http_info(tenant, feature_flag_id, is_enabled_if_no_posthog, opts = {})
|
|
42
|
+
if @api_client.config.debugging
|
|
43
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.tenant_feature_flag_evaluate ...'
|
|
44
|
+
end
|
|
45
|
+
# verify the required parameter 'tenant' is set
|
|
46
|
+
if @api_client.config.client_side_validation && tenant.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'tenant' when calling FeatureFlagsApi.tenant_feature_flag_evaluate"
|
|
48
|
+
end
|
|
49
|
+
if @api_client.config.client_side_validation && tenant.to_s.length > 36
|
|
50
|
+
fail ArgumentError, 'invalid value for "tenant" when calling FeatureFlagsApi.tenant_feature_flag_evaluate, the character length must be smaller than or equal to 36.'
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
if @api_client.config.client_side_validation && tenant.to_s.length < 36
|
|
54
|
+
fail ArgumentError, 'invalid value for "tenant" when calling FeatureFlagsApi.tenant_feature_flag_evaluate, the character length must be greater than or equal to 36.'
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# verify the required parameter 'feature_flag_id' is set
|
|
58
|
+
if @api_client.config.client_side_validation && feature_flag_id.nil?
|
|
59
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_id' when calling FeatureFlagsApi.tenant_feature_flag_evaluate"
|
|
60
|
+
end
|
|
61
|
+
# verify the required parameter 'is_enabled_if_no_posthog' is set
|
|
62
|
+
if @api_client.config.client_side_validation && is_enabled_if_no_posthog.nil?
|
|
63
|
+
fail ArgumentError, "Missing the required parameter 'is_enabled_if_no_posthog' when calling FeatureFlagsApi.tenant_feature_flag_evaluate"
|
|
64
|
+
end
|
|
65
|
+
# resource path
|
|
66
|
+
local_var_path = '/api/v1/tenants/{tenant}/feature-flags'.sub('{' + 'tenant' + '}', CGI.escape(tenant.to_s))
|
|
67
|
+
|
|
68
|
+
# query parameters
|
|
69
|
+
query_params = opts[:query_params] || {}
|
|
70
|
+
query_params[:'featureFlagId'] = feature_flag_id
|
|
71
|
+
query_params[:'isEnabledIfNoPosthog'] = is_enabled_if_no_posthog
|
|
72
|
+
|
|
73
|
+
# header parameters
|
|
74
|
+
header_params = opts[:header_params] || {}
|
|
75
|
+
# HTTP header 'Accept' (if needed)
|
|
76
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
77
|
+
|
|
78
|
+
# form parameters
|
|
79
|
+
form_params = opts[:form_params] || {}
|
|
80
|
+
|
|
81
|
+
# http body (model)
|
|
82
|
+
post_body = opts[:debug_body]
|
|
83
|
+
|
|
84
|
+
# return_type
|
|
85
|
+
return_type = opts[:debug_return_type] || 'FeatureFlagEvaluationResult'
|
|
86
|
+
|
|
87
|
+
# auth_names
|
|
88
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
89
|
+
|
|
90
|
+
new_options = opts.merge(
|
|
91
|
+
:operation => :"FeatureFlagsApi.tenant_feature_flag_evaluate",
|
|
92
|
+
:header_params => header_params,
|
|
93
|
+
:query_params => query_params,
|
|
94
|
+
:form_params => form_params,
|
|
95
|
+
:body => post_body,
|
|
96
|
+
:auth_names => auth_names,
|
|
97
|
+
:return_type => return_type
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
101
|
+
if @api_client.config.debugging
|
|
102
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#tenant_feature_flag_evaluate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
103
|
+
end
|
|
104
|
+
return data, status_code, headers
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|