hatchet-sdk 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/lib/hatchet/clients/rest/.openapi-generator/FILES +24 -0
  4. data/lib/hatchet/clients/rest/README.md +31 -1
  5. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/durable_tasks_api.rb +113 -0
  6. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/feature_flags_api.rb +107 -0
  7. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/log_api.rb +156 -52
  8. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/observability_api.rb +114 -0
  9. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/rate_limits_api.rb +78 -0
  10. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/task_api.rb +71 -0
  11. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/tenant_api.rb +3 -0
  12. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/worker_api.rb +9 -0
  13. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/workflow_api.rb +170 -0
  14. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/workflow_runs_api.rb +94 -0
  15. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api_model_base.rb +88 -0
  16. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/api_meta.rb +44 -4
  17. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/feature_flag_evaluation_result.rb +238 -0
  18. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/feature_flag_id.rb +41 -0
  19. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/otel_span.rb +525 -0
  20. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/otel_span_kind.rb +44 -0
  21. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/otel_span_list.rb +242 -0
  22. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/otel_status_code.rb +41 -0
  23. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/task_status_stat.rb +13 -4
  24. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant.rb +24 -4
  25. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_member.rb +14 -4
  26. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/trigger_run_result.rb +256 -0
  27. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_additional_metadata_operator.rb +40 -0
  28. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_branch_durable_task_request.rb +310 -0
  29. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_branch_durable_task_response.rb +310 -0
  30. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_create_webhook_request_api_key.rb +14 -4
  31. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_create_webhook_request_base.rb +14 -4
  32. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_create_webhook_request_basic_auth.rb +14 -4
  33. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_create_webhook_request_hmac.rb +14 -4
  34. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_durable_event_log_entry.rb +470 -0
  35. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_durable_event_log_kind.rb +41 -0
  36. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_durable_wait_condition.rb +286 -0
  37. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_durable_wait_condition_kind.rb +41 -0
  38. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_log_line.rb +49 -1
  39. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_logs_point_metric.rb +341 -0
  40. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_logs_point_metrics.rb +222 -0
  41. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_restore_task_response.rb +237 -0
  42. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_running_detail_count.rb +265 -0
  43. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_running_filter.rb +41 -0
  44. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_event_type.rb +3 -1
  45. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_run_metric.rb +13 -4
  46. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_summary.rb +34 -4
  47. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_timing.rb +11 -1
  48. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_trigger_workflow_run_request.rb +14 -4
  49. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_update_webhook_request.rb +14 -4
  50. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_wait_item.rb +280 -0
  51. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_webhook.rb +14 -4
  52. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/worker.rb +1 -13
  53. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/worker_status.rb +41 -0
  54. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_version_idempotency.rb +265 -0
  55. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_version_task.rb +393 -0
  56. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_version_task_desired_worker_label.rb +288 -0
  57. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_version_task_rate_limit.rb +271 -0
  58. data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest.rb +24 -0
  59. data/lib/hatchet/contracts/v1/workflows_pb.rb +3 -1
  60. data/lib/hatchet/idempotency.rb +35 -1
  61. data/lib/hatchet/version.rb +1 -1
  62. data/lib/hatchet/workflow.rb +2 -2
  63. data/sig/hatchet/idempotency.rbs +8 -0
  64. metadata +31 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b4ab895cedb8b0d897c4c9001a9aae71b2502ca0c11a8f56bcf8f177648236dd
4
- data.tar.gz: b7ddc732b63d5465fb37aba0cdd8899294a1fcf4dbdd83e99a69aeca3875cde0
3
+ metadata.gz: 1c22db69846163b6dc74e019c6203f468bff28ff9892e66462d0b9d89a091411
4
+ data.tar.gz: e547b5f3c1ec2c6e85a50dc7abad12764d072bfd1e5c128c283e8716f388138e
5
5
  SHA512:
6
- metadata.gz: db979be9acf23c7d580260972f1a35b9757e420b8a05053ab35f10c094510bafebaa4c64c69aff6e6580f681a0ca86ba03ac108ac1e3e7fae10f370ed7015dff
7
- data.tar.gz: a7e3ba74d34509e2854d2a98e12c6f5419652217266db4eab276c9065e74f0338e585e6b647649a6e82b171da8321e29c40b28146a052522339399673076dc45
6
+ metadata.gz: 6631058a61424005ca3c1afc2fe3512d61214d00b54d6e7a91ce4ca93bf214da98c79cbf64c45beeaa5609e925b7b9d448c433b02090df427d77b8395fec2f5f
7
+ data.tar.gz: 3ff1030bf8722a314c230515c8ef426a84c355bc6a7bebd9b000a16b2ec0a7d0ed7a67a5f1eef449624c4f56b156f85d6a02b86c9979db8ff2a3bce567111eb6
data/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ 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.5.0] - 2026-07-22
9
+
10
+ ### Added
11
+
12
+ - 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).
13
+
8
14
  ## [0.4.0] - 2026-06-03
9
15
 
10
16
  ### Added
@@ -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