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
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hatchet-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- gabriel ruttner
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-07-
|
|
11
|
+
date: 2026-07-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -185,6 +185,7 @@ files:
|
|
|
185
185
|
- Rakefile.rest
|
|
186
186
|
- config/openapi_generator_config.json
|
|
187
187
|
- lib/hatchet-sdk.rb
|
|
188
|
+
- lib/hatchet/batch.rb
|
|
188
189
|
- lib/hatchet/clients.rb
|
|
189
190
|
- lib/hatchet/clients/grpc/admin.rb
|
|
190
191
|
- lib/hatchet/clients/grpc/dispatcher.rb
|
|
@@ -207,12 +208,15 @@ files:
|
|
|
207
208
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/api_token_api.rb
|
|
208
209
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/cel_api.rb
|
|
209
210
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/default_api.rb
|
|
211
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/durable_tasks_api.rb
|
|
210
212
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/event_api.rb
|
|
213
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/feature_flags_api.rb
|
|
211
214
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/filter_api.rb
|
|
212
215
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/github_api.rb
|
|
213
216
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/healthcheck_api.rb
|
|
214
217
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/log_api.rb
|
|
215
218
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/metadata_api.rb
|
|
219
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/observability_api.rb
|
|
216
220
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/rate_limits_api.rb
|
|
217
221
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/slack_api.rb
|
|
218
222
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/sns_api.rb
|
|
@@ -227,6 +231,7 @@ files:
|
|
|
227
231
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/workflow_runs_api.rb
|
|
228
232
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api_client.rb
|
|
229
233
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api_error.rb
|
|
234
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api_model_base.rb
|
|
230
235
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/configuration.rb
|
|
231
236
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/accept_invite_request.rb
|
|
232
237
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/api_error.rb
|
|
@@ -265,6 +270,8 @@ files:
|
|
|
265
270
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/event_update_cancel200_response.rb
|
|
266
271
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/event_workflow_run_summary.rb
|
|
267
272
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/events.rb
|
|
273
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/feature_flag_evaluation_result.rb
|
|
274
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/feature_flag_id.rb
|
|
268
275
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/get_step_run_diff_response.rb
|
|
269
276
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/info_get_version200_response.rb
|
|
270
277
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/job.rb
|
|
@@ -279,6 +286,10 @@ files:
|
|
|
279
286
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/log_line_list.rb
|
|
280
287
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/log_line_order_by_direction.rb
|
|
281
288
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/log_line_order_by_field.rb
|
|
289
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/otel_span.rb
|
|
290
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/otel_span_kind.rb
|
|
291
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/otel_span_list.rb
|
|
292
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/otel_status_code.rb
|
|
282
293
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/pagination_response.rb
|
|
283
294
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/pull_request.rb
|
|
284
295
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/pull_request_state.rb
|
|
@@ -339,6 +350,7 @@ files:
|
|
|
339
350
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_resource_policy.rb
|
|
340
351
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_step_run_queue_metrics.rb
|
|
341
352
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_version.rb
|
|
353
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/trigger_run_result.rb
|
|
342
354
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/trigger_workflow_run_request.rb
|
|
343
355
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/update_cron_workflow_trigger_request.rb
|
|
344
356
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/update_scheduled_workflow_run_request.rb
|
|
@@ -353,6 +365,9 @@ files:
|
|
|
353
365
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/user_register_request.rb
|
|
354
366
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/user_tenant_memberships_list.rb
|
|
355
367
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/user_tenant_public.rb
|
|
368
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_additional_metadata_operator.rb
|
|
369
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_branch_durable_task_request.rb
|
|
370
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_branch_durable_task_response.rb
|
|
356
371
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_cancel_task_request.rb
|
|
357
372
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_cancelled_tasks.rb
|
|
358
373
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_cel_debug_request.rb
|
|
@@ -365,6 +380,10 @@ files:
|
|
|
365
380
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_create_webhook_request_basic_auth.rb
|
|
366
381
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_create_webhook_request_hmac.rb
|
|
367
382
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_dag_children.rb
|
|
383
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_durable_event_log_entry.rb
|
|
384
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_durable_event_log_kind.rb
|
|
385
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_durable_wait_condition.rb
|
|
386
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_durable_wait_condition_kind.rb
|
|
368
387
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_event.rb
|
|
369
388
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_event_list.rb
|
|
370
389
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_event_triggered_run.rb
|
|
@@ -375,8 +394,13 @@ files:
|
|
|
375
394
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_log_line_level.rb
|
|
376
395
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_log_line_list.rb
|
|
377
396
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_log_line_order_by_direction.rb
|
|
397
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_logs_point_metric.rb
|
|
398
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_logs_point_metrics.rb
|
|
378
399
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_replay_task_request.rb
|
|
379
400
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_replayed_tasks.rb
|
|
401
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_restore_task_response.rb
|
|
402
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_running_detail_count.rb
|
|
403
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_running_filter.rb
|
|
380
404
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_event.rb
|
|
381
405
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_event_list.rb
|
|
382
406
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_event_type.rb
|
|
@@ -393,6 +417,7 @@ files:
|
|
|
393
417
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_trigger_workflow_run_request.rb
|
|
394
418
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_update_filter_request.rb
|
|
395
419
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_update_webhook_request.rb
|
|
420
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_wait_item.rb
|
|
396
421
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_webhook.rb
|
|
397
422
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_webhook_api_key_auth.rb
|
|
398
423
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_webhook_auth_type.rb
|
|
@@ -422,6 +447,7 @@ files:
|
|
|
422
447
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/worker_runtime_info.rb
|
|
423
448
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/worker_runtime_sdks.rb
|
|
424
449
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/worker_slot_config.rb
|
|
450
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/worker_status.rb
|
|
425
451
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/worker_type.rb
|
|
426
452
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow.rb
|
|
427
453
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_concurrency.rb
|
|
@@ -446,7 +472,11 @@ files:
|
|
|
446
472
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_update_request.rb
|
|
447
473
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_version.rb
|
|
448
474
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_version_definition.rb
|
|
475
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_version_idempotency.rb
|
|
449
476
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_version_meta.rb
|
|
477
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_version_task.rb
|
|
478
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_version_task_desired_worker_label.rb
|
|
479
|
+
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_version_task_rate_limit.rb
|
|
450
480
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_workers_count.rb
|
|
451
481
|
- lib/hatchet/clients/rest/lib/hatchet-sdk-rest/version.rb
|
|
452
482
|
- lib/hatchet/clients/rest/spec/spec_helper.rb
|
|
@@ -505,6 +535,7 @@ files:
|
|
|
505
535
|
- lib/rubocop/cop/hatchet/rbs_signature_exists.rb
|
|
506
536
|
- sig/_dependencies.rbs
|
|
507
537
|
- sig/hatchet-sdk.rbs
|
|
538
|
+
- sig/hatchet/batch.rbs
|
|
508
539
|
- sig/hatchet/clients.rbs
|
|
509
540
|
- sig/hatchet/clients/grpc/admin.rbs
|
|
510
541
|
- sig/hatchet/clients/grpc/dispatcher.rbs
|