hatchet-sdk 0.42.1__tar.gz → 0.42.3__tar.gz

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.

Potentially problematic release.


This version of hatchet-sdk might be problematic. Click here for more details.

Files changed (235) hide show
  1. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/PKG-INFO +2 -1
  2. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/__init__.py +9 -3
  3. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/api/event_api.py +6 -8
  4. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/api/workflow_api.py +69 -0
  5. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/__init__.py +9 -3
  6. hatchet_sdk-0.42.3/hatchet_sdk/clients/rest/models/concurrency_limit_strategy.py +39 -0
  7. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/cron_workflows.py +3 -16
  8. hatchet_sdk-0.42.3/hatchet_sdk/clients/rest/models/cron_workflows_method.py +37 -0
  9. hatchet_sdk-0.42.3/hatchet_sdk/clients/rest/models/events.py +110 -0
  10. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/scheduled_workflows.py +5 -9
  11. hatchet_sdk-0.42.3/hatchet_sdk/clients/rest/models/scheduled_workflows_method.py +37 -0
  12. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/worker.py +2 -10
  13. hatchet_sdk-0.42.3/hatchet_sdk/clients/rest/models/worker_type.py +38 -0
  14. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_concurrency.py +6 -13
  15. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/contracts/dispatcher_pb2.pyi +0 -2
  16. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/contracts/events_pb2.pyi +0 -2
  17. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/contracts/workflows_pb2.pyi +0 -2
  18. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/hatchet.py +2 -5
  19. hatchet_sdk-0.42.3/hatchet_sdk/rate_limit.py +126 -0
  20. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/v2/callable.py +1 -5
  21. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/pyproject.toml +4 -1
  22. hatchet_sdk-0.42.1/hatchet_sdk/rate_limit.py +0 -13
  23. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/README.md +0 -0
  24. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/__init__.py +0 -0
  25. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/client.py +0 -0
  26. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/admin.py +0 -0
  27. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/dispatcher/action_listener.py +0 -0
  28. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/dispatcher/dispatcher.py +0 -0
  29. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/event_ts.py +0 -0
  30. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/events.py +0 -0
  31. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/api/__init__.py +0 -0
  32. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/api/api_token_api.py +0 -0
  33. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/api/default_api.py +0 -0
  34. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/api/github_api.py +0 -0
  35. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/api/healthcheck_api.py +0 -0
  36. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/api/log_api.py +0 -0
  37. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/api/metadata_api.py +0 -0
  38. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/api/rate_limits_api.py +0 -0
  39. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/api/slack_api.py +0 -0
  40. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/api/sns_api.py +0 -0
  41. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/api/step_run_api.py +0 -0
  42. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/api/tenant_api.py +0 -0
  43. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/api/user_api.py +0 -0
  44. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/api/worker_api.py +0 -0
  45. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/api/workflow_run_api.py +0 -0
  46. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/api/workflow_runs_api.py +0 -0
  47. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/api_client.py +0 -0
  48. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/api_response.py +0 -0
  49. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/configuration.py +0 -0
  50. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/exceptions.py +0 -0
  51. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/accept_invite_request.py +0 -0
  52. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/api_error.py +0 -0
  53. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/api_errors.py +0 -0
  54. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/api_meta.py +0 -0
  55. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/api_meta_auth.py +0 -0
  56. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/api_meta_integration.py +0 -0
  57. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/api_meta_posthog.py +0 -0
  58. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/api_resource_meta.py +0 -0
  59. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/api_token.py +0 -0
  60. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/bulk_create_event_request.py +0 -0
  61. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/bulk_create_event_response.py +0 -0
  62. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/cancel_event_request.py +0 -0
  63. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/cancel_step_run_request.py +0 -0
  64. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/create_api_token_request.py +0 -0
  65. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/create_api_token_response.py +0 -0
  66. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/create_cron_workflow_trigger_request.py +0 -0
  67. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/create_event_request.py +0 -0
  68. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/create_pull_request_from_step_run.py +0 -0
  69. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/create_sns_integration_request.py +0 -0
  70. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/create_tenant_alert_email_group_request.py +0 -0
  71. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/create_tenant_invite_request.py +0 -0
  72. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/create_tenant_request.py +0 -0
  73. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/cron_workflows_list.py +0 -0
  74. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/cron_workflows_order_by_field.py +0 -0
  75. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/event.py +0 -0
  76. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/event_data.py +0 -0
  77. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/event_key_list.py +0 -0
  78. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/event_list.py +0 -0
  79. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/event_order_by_direction.py +0 -0
  80. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/event_order_by_field.py +0 -0
  81. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/event_update_cancel200_response.py +0 -0
  82. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/event_workflow_run_summary.py +0 -0
  83. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/get_step_run_diff_response.py +0 -0
  84. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/github_app_installation.py +0 -0
  85. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/github_branch.py +0 -0
  86. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/github_repo.py +0 -0
  87. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/job.py +0 -0
  88. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/job_run.py +0 -0
  89. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/job_run_status.py +0 -0
  90. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/link_github_repository_request.py +0 -0
  91. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/list_api_tokens_response.py +0 -0
  92. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/list_github_app_installations_response.py +0 -0
  93. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/list_pull_requests_response.py +0 -0
  94. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/list_slack_webhooks.py +0 -0
  95. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/list_sns_integrations.py +0 -0
  96. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/log_line.py +0 -0
  97. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/log_line_level.py +0 -0
  98. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/log_line_list.py +0 -0
  99. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/log_line_order_by_direction.py +0 -0
  100. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/log_line_order_by_field.py +0 -0
  101. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/pagination_response.py +0 -0
  102. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/pull_request.py +0 -0
  103. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/pull_request_state.py +0 -0
  104. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/queue_metrics.py +0 -0
  105. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/rate_limit.py +0 -0
  106. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/rate_limit_list.py +0 -0
  107. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/rate_limit_order_by_direction.py +0 -0
  108. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/rate_limit_order_by_field.py +0 -0
  109. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/recent_step_runs.py +0 -0
  110. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/reject_invite_request.py +0 -0
  111. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/replay_event_request.py +0 -0
  112. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/replay_workflow_runs_request.py +0 -0
  113. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/replay_workflow_runs_response.py +0 -0
  114. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/rerun_step_run_request.py +0 -0
  115. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/schedule_workflow_run_request.py +0 -0
  116. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/scheduled_run_status.py +0 -0
  117. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/scheduled_workflows_list.py +0 -0
  118. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/scheduled_workflows_order_by_field.py +0 -0
  119. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/semaphore_slots.py +0 -0
  120. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/slack_webhook.py +0 -0
  121. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/sns_integration.py +0 -0
  122. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/step.py +0 -0
  123. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/step_run.py +0 -0
  124. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/step_run_archive.py +0 -0
  125. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/step_run_archive_list.py +0 -0
  126. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/step_run_diff.py +0 -0
  127. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/step_run_event.py +0 -0
  128. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/step_run_event_list.py +0 -0
  129. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/step_run_event_reason.py +0 -0
  130. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/step_run_event_severity.py +0 -0
  131. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/step_run_status.py +0 -0
  132. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/tenant.py +0 -0
  133. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/tenant_alert_email_group.py +0 -0
  134. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/tenant_alert_email_group_list.py +0 -0
  135. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/tenant_alerting_settings.py +0 -0
  136. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/tenant_invite.py +0 -0
  137. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/tenant_invite_list.py +0 -0
  138. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/tenant_list.py +0 -0
  139. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/tenant_member.py +0 -0
  140. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/tenant_member_list.py +0 -0
  141. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/tenant_member_role.py +0 -0
  142. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/tenant_queue_metrics.py +0 -0
  143. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/tenant_resource.py +0 -0
  144. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/tenant_resource_limit.py +0 -0
  145. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/tenant_resource_policy.py +0 -0
  146. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/tenant_step_run_queue_metrics.py +0 -0
  147. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/trigger_workflow_run_request.py +0 -0
  148. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/update_tenant_alert_email_group_request.py +0 -0
  149. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/update_tenant_invite_request.py +0 -0
  150. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/update_tenant_request.py +0 -0
  151. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/update_worker_request.py +0 -0
  152. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/user.py +0 -0
  153. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/user_change_password_request.py +0 -0
  154. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/user_login_request.py +0 -0
  155. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/user_register_request.py +0 -0
  156. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/user_tenant_memberships_list.py +0 -0
  157. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/user_tenant_public.py +0 -0
  158. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/webhook_worker.py +0 -0
  159. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/webhook_worker_create_request.py +0 -0
  160. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/webhook_worker_create_response.py +0 -0
  161. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/webhook_worker_created.py +0 -0
  162. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/webhook_worker_list_response.py +0 -0
  163. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/webhook_worker_request.py +0 -0
  164. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/webhook_worker_request_list_response.py +0 -0
  165. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/webhook_worker_request_method.py +0 -0
  166. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/worker_label.py +0 -0
  167. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/worker_list.py +0 -0
  168. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/worker_runtime_info.py +0 -0
  169. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/worker_runtime_sdks.py +0 -0
  170. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow.py +0 -0
  171. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_deployment_config.py +0 -0
  172. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_kind.py +0 -0
  173. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_list.py +0 -0
  174. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_metrics.py +0 -0
  175. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_run.py +0 -0
  176. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_run_cancel200_response.py +0 -0
  177. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_run_list.py +0 -0
  178. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_run_order_by_direction.py +0 -0
  179. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_run_order_by_field.py +0 -0
  180. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_run_shape.py +0 -0
  181. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_run_status.py +0 -0
  182. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_run_triggered_by.py +0 -0
  183. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_runs_cancel_request.py +0 -0
  184. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_runs_metrics.py +0 -0
  185. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_runs_metrics_counts.py +0 -0
  186. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_tag.py +0 -0
  187. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_trigger_cron_ref.py +0 -0
  188. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_trigger_event_ref.py +0 -0
  189. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_triggers.py +0 -0
  190. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_update_request.py +0 -0
  191. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_version.py +0 -0
  192. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_version_concurrency.py +0 -0
  193. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_version_definition.py +0 -0
  194. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_version_meta.py +0 -0
  195. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/models/workflow_workers_count.py +0 -0
  196. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/rest.py +0 -0
  197. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest/tenacity_utils.py +0 -0
  198. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/rest_client.py +0 -0
  199. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/run_event_listener.py +0 -0
  200. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/clients/workflow_listener.py +0 -0
  201. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/connection.py +0 -0
  202. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/context/__init__.py +0 -0
  203. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/context/context.py +0 -0
  204. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/context/worker_context.py +0 -0
  205. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/contracts/dispatcher_pb2.py +0 -0
  206. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/contracts/dispatcher_pb2_grpc.py +0 -0
  207. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/contracts/events_pb2.py +0 -0
  208. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/contracts/events_pb2_grpc.py +0 -0
  209. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/contracts/workflows_pb2.py +0 -0
  210. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/contracts/workflows_pb2_grpc.py +0 -0
  211. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/features/cron.py +0 -0
  212. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/features/scheduled.py +0 -0
  213. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/labels.py +0 -0
  214. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/loader.py +0 -0
  215. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/logger.py +0 -0
  216. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/metadata.py +0 -0
  217. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/semver.py +0 -0
  218. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/token.py +0 -0
  219. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/utils/aio_utils.py +0 -0
  220. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/utils/backoff.py +0 -0
  221. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/utils/serialization.py +0 -0
  222. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/utils/tracing.py +0 -0
  223. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/utils/types.py +0 -0
  224. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/utils/typing.py +0 -0
  225. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/v2/concurrency.py +0 -0
  226. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/v2/hatchet.py +0 -0
  227. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/worker/__init__.py +0 -0
  228. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/worker/action_listener_process.py +0 -0
  229. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/worker/runner/run_loop_manager.py +0 -0
  230. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/worker/runner/runner.py +0 -0
  231. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/worker/runner/utils/capture_logs.py +0 -0
  232. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/worker/runner/utils/error_with_traceback.py +0 -0
  233. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/worker/worker.py +0 -0
  234. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/workflow.py +0 -0
  235. {hatchet_sdk-0.42.1 → hatchet_sdk-0.42.3}/hatchet_sdk/workflow_run.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hatchet-sdk
3
- Version: 0.42.1
3
+ Version: 0.42.3
4
4
  Summary:
5
5
  Author: Alexander Belanger
6
6
  Author-email: alexander@hatchet.run
@@ -12,6 +12,7 @@ Classifier: Programming Language :: Python :: 3.12
12
12
  Requires-Dist: aiohttp (>=3.10.5,<4.0.0)
13
13
  Requires-Dist: aiohttp-retry (>=2.8.3,<3.0.0)
14
14
  Requires-Dist: aiostream (>=0.5.2,<0.6.0)
15
+ Requires-Dist: cel-python (>=0.1.5,<0.2.0)
15
16
  Requires-Dist: grpcio (>=1.64.1,<2.0.0)
16
17
  Requires-Dist: grpcio-tools (>=1.60.0,<2.0.0)
17
18
  Requires-Dist: loguru (>=0.7.2,<0.8.0)
@@ -60,10 +60,10 @@ from hatchet_sdk.clients.rest.models.api_token import APIToken
60
60
  from hatchet_sdk.clients.rest.models.bulk_create_event_request import (
61
61
  BulkCreateEventRequest,
62
62
  )
63
- from hatchet_sdk.clients.rest.models.bulk_create_event_response import (
64
- BulkCreateEventResponse,
65
- )
66
63
  from hatchet_sdk.clients.rest.models.cancel_event_request import CancelEventRequest
64
+ from hatchet_sdk.clients.rest.models.concurrency_limit_strategy import (
65
+ ConcurrencyLimitStrategy,
66
+ )
67
67
  from hatchet_sdk.clients.rest.models.create_api_token_request import (
68
68
  CreateAPITokenRequest,
69
69
  )
@@ -89,6 +89,7 @@ from hatchet_sdk.clients.rest.models.create_tenant_invite_request import (
89
89
  from hatchet_sdk.clients.rest.models.create_tenant_request import CreateTenantRequest
90
90
  from hatchet_sdk.clients.rest.models.cron_workflows import CronWorkflows
91
91
  from hatchet_sdk.clients.rest.models.cron_workflows_list import CronWorkflowsList
92
+ from hatchet_sdk.clients.rest.models.cron_workflows_method import CronWorkflowsMethod
92
93
  from hatchet_sdk.clients.rest.models.cron_workflows_order_by_field import (
93
94
  CronWorkflowsOrderByField,
94
95
  )
@@ -106,6 +107,7 @@ from hatchet_sdk.clients.rest.models.event_update_cancel200_response import (
106
107
  from hatchet_sdk.clients.rest.models.event_workflow_run_summary import (
107
108
  EventWorkflowRunSummary,
108
109
  )
110
+ from hatchet_sdk.clients.rest.models.events import Events
109
111
  from hatchet_sdk.clients.rest.models.get_step_run_diff_response import (
110
112
  GetStepRunDiffResponse,
111
113
  )
@@ -157,6 +159,9 @@ from hatchet_sdk.clients.rest.models.scheduled_workflows import ScheduledWorkflo
157
159
  from hatchet_sdk.clients.rest.models.scheduled_workflows_list import (
158
160
  ScheduledWorkflowsList,
159
161
  )
162
+ from hatchet_sdk.clients.rest.models.scheduled_workflows_method import (
163
+ ScheduledWorkflowsMethod,
164
+ )
160
165
  from hatchet_sdk.clients.rest.models.scheduled_workflows_order_by_field import (
161
166
  ScheduledWorkflowsOrderByField,
162
167
  )
@@ -240,6 +245,7 @@ from hatchet_sdk.clients.rest.models.worker_label import WorkerLabel
240
245
  from hatchet_sdk.clients.rest.models.worker_list import WorkerList
241
246
  from hatchet_sdk.clients.rest.models.worker_runtime_info import WorkerRuntimeInfo
242
247
  from hatchet_sdk.clients.rest.models.worker_runtime_sdks import WorkerRuntimeSDKs
248
+ from hatchet_sdk.clients.rest.models.worker_type import WorkerType
243
249
  from hatchet_sdk.clients.rest.models.workflow import Workflow
244
250
  from hatchet_sdk.clients.rest.models.workflow_concurrency import WorkflowConcurrency
245
251
  from hatchet_sdk.clients.rest.models.workflow_kind import WorkflowKind
@@ -22,9 +22,6 @@ from hatchet_sdk.clients.rest.api_response import ApiResponse
22
22
  from hatchet_sdk.clients.rest.models.bulk_create_event_request import (
23
23
  BulkCreateEventRequest,
24
24
  )
25
- from hatchet_sdk.clients.rest.models.bulk_create_event_response import (
26
- BulkCreateEventResponse,
27
- )
28
25
  from hatchet_sdk.clients.rest.models.cancel_event_request import CancelEventRequest
29
26
  from hatchet_sdk.clients.rest.models.create_event_request import CreateEventRequest
30
27
  from hatchet_sdk.clients.rest.models.event import Event
@@ -38,6 +35,7 @@ from hatchet_sdk.clients.rest.models.event_order_by_field import EventOrderByFie
38
35
  from hatchet_sdk.clients.rest.models.event_update_cancel200_response import (
39
36
  EventUpdateCancel200Response,
40
37
  )
38
+ from hatchet_sdk.clients.rest.models.events import Events
41
39
  from hatchet_sdk.clients.rest.models.replay_event_request import ReplayEventRequest
42
40
  from hatchet_sdk.clients.rest.models.workflow_run_status import WorkflowRunStatus
43
41
  from hatchet_sdk.clients.rest.rest import RESTResponseType
@@ -375,7 +373,7 @@ class EventApi:
375
373
  _content_type: Optional[StrictStr] = None,
376
374
  _headers: Optional[Dict[StrictStr, Any]] = None,
377
375
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
378
- ) -> BulkCreateEventResponse:
376
+ ) -> Events:
379
377
  """Bulk Create events
380
378
 
381
379
  Bulk creates new events.
@@ -416,7 +414,7 @@ class EventApi:
416
414
  )
417
415
 
418
416
  _response_types_map: Dict[str, Optional[str]] = {
419
- "200": "BulkCreateEventResponse",
417
+ "200": "Events",
420
418
  "400": "APIErrors",
421
419
  "403": "APIErrors",
422
420
  "429": "APIErrors",
@@ -453,7 +451,7 @@ class EventApi:
453
451
  _content_type: Optional[StrictStr] = None,
454
452
  _headers: Optional[Dict[StrictStr, Any]] = None,
455
453
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
456
- ) -> ApiResponse[BulkCreateEventResponse]:
454
+ ) -> ApiResponse[Events]:
457
455
  """Bulk Create events
458
456
 
459
457
  Bulk creates new events.
@@ -494,7 +492,7 @@ class EventApi:
494
492
  )
495
493
 
496
494
  _response_types_map: Dict[str, Optional[str]] = {
497
- "200": "BulkCreateEventResponse",
495
+ "200": "Events",
498
496
  "400": "APIErrors",
499
497
  "403": "APIErrors",
500
498
  "429": "APIErrors",
@@ -572,7 +570,7 @@ class EventApi:
572
570
  )
573
571
 
574
572
  _response_types_map: Dict[str, Optional[str]] = {
575
- "200": "BulkCreateEventResponse",
573
+ "200": "Events",
576
574
  "400": "APIErrors",
577
575
  "403": "APIErrors",
578
576
  "429": "APIErrors",
@@ -2540,6 +2540,15 @@ class WorkflowApi:
2540
2540
  min_length=36, strict=True, max_length=36, description="The tenant id"
2541
2541
  ),
2542
2542
  ],
2543
+ offset: Annotated[
2544
+ Optional[StrictInt], Field(description="The number to skip")
2545
+ ] = None,
2546
+ limit: Annotated[
2547
+ Optional[StrictInt], Field(description="The number to limit by")
2548
+ ] = None,
2549
+ name: Annotated[
2550
+ Optional[StrictStr], Field(description="Search by name")
2551
+ ] = None,
2543
2552
  _request_timeout: Union[
2544
2553
  None,
2545
2554
  Annotated[StrictFloat, Field(gt=0)],
@@ -2558,6 +2567,12 @@ class WorkflowApi:
2558
2567
 
2559
2568
  :param tenant: The tenant id (required)
2560
2569
  :type tenant: str
2570
+ :param offset: The number to skip
2571
+ :type offset: int
2572
+ :param limit: The number to limit by
2573
+ :type limit: int
2574
+ :param name: Search by name
2575
+ :type name: str
2561
2576
  :param _request_timeout: timeout setting for this request. If one
2562
2577
  number provided, it will be total request
2563
2578
  timeout. It can also be a pair (tuple) of
@@ -2582,6 +2597,9 @@ class WorkflowApi:
2582
2597
 
2583
2598
  _param = self._workflow_list_serialize(
2584
2599
  tenant=tenant,
2600
+ offset=offset,
2601
+ limit=limit,
2602
+ name=name,
2585
2603
  _request_auth=_request_auth,
2586
2604
  _content_type=_content_type,
2587
2605
  _headers=_headers,
@@ -2611,6 +2629,15 @@ class WorkflowApi:
2611
2629
  min_length=36, strict=True, max_length=36, description="The tenant id"
2612
2630
  ),
2613
2631
  ],
2632
+ offset: Annotated[
2633
+ Optional[StrictInt], Field(description="The number to skip")
2634
+ ] = None,
2635
+ limit: Annotated[
2636
+ Optional[StrictInt], Field(description="The number to limit by")
2637
+ ] = None,
2638
+ name: Annotated[
2639
+ Optional[StrictStr], Field(description="Search by name")
2640
+ ] = None,
2614
2641
  _request_timeout: Union[
2615
2642
  None,
2616
2643
  Annotated[StrictFloat, Field(gt=0)],
@@ -2629,6 +2656,12 @@ class WorkflowApi:
2629
2656
 
2630
2657
  :param tenant: The tenant id (required)
2631
2658
  :type tenant: str
2659
+ :param offset: The number to skip
2660
+ :type offset: int
2661
+ :param limit: The number to limit by
2662
+ :type limit: int
2663
+ :param name: Search by name
2664
+ :type name: str
2632
2665
  :param _request_timeout: timeout setting for this request. If one
2633
2666
  number provided, it will be total request
2634
2667
  timeout. It can also be a pair (tuple) of
@@ -2653,6 +2686,9 @@ class WorkflowApi:
2653
2686
 
2654
2687
  _param = self._workflow_list_serialize(
2655
2688
  tenant=tenant,
2689
+ offset=offset,
2690
+ limit=limit,
2691
+ name=name,
2656
2692
  _request_auth=_request_auth,
2657
2693
  _content_type=_content_type,
2658
2694
  _headers=_headers,
@@ -2682,6 +2718,15 @@ class WorkflowApi:
2682
2718
  min_length=36, strict=True, max_length=36, description="The tenant id"
2683
2719
  ),
2684
2720
  ],
2721
+ offset: Annotated[
2722
+ Optional[StrictInt], Field(description="The number to skip")
2723
+ ] = None,
2724
+ limit: Annotated[
2725
+ Optional[StrictInt], Field(description="The number to limit by")
2726
+ ] = None,
2727
+ name: Annotated[
2728
+ Optional[StrictStr], Field(description="Search by name")
2729
+ ] = None,
2685
2730
  _request_timeout: Union[
2686
2731
  None,
2687
2732
  Annotated[StrictFloat, Field(gt=0)],
@@ -2700,6 +2745,12 @@ class WorkflowApi:
2700
2745
 
2701
2746
  :param tenant: The tenant id (required)
2702
2747
  :type tenant: str
2748
+ :param offset: The number to skip
2749
+ :type offset: int
2750
+ :param limit: The number to limit by
2751
+ :type limit: int
2752
+ :param name: Search by name
2753
+ :type name: str
2703
2754
  :param _request_timeout: timeout setting for this request. If one
2704
2755
  number provided, it will be total request
2705
2756
  timeout. It can also be a pair (tuple) of
@@ -2724,6 +2775,9 @@ class WorkflowApi:
2724
2775
 
2725
2776
  _param = self._workflow_list_serialize(
2726
2777
  tenant=tenant,
2778
+ offset=offset,
2779
+ limit=limit,
2780
+ name=name,
2727
2781
  _request_auth=_request_auth,
2728
2782
  _content_type=_content_type,
2729
2783
  _headers=_headers,
@@ -2743,6 +2797,9 @@ class WorkflowApi:
2743
2797
  def _workflow_list_serialize(
2744
2798
  self,
2745
2799
  tenant,
2800
+ offset,
2801
+ limit,
2802
+ name,
2746
2803
  _request_auth,
2747
2804
  _content_type,
2748
2805
  _headers,
@@ -2766,6 +2823,18 @@ class WorkflowApi:
2766
2823
  if tenant is not None:
2767
2824
  _path_params["tenant"] = tenant
2768
2825
  # process the query parameters
2826
+ if offset is not None:
2827
+
2828
+ _query_params.append(("offset", offset))
2829
+
2830
+ if limit is not None:
2831
+
2832
+ _query_params.append(("limit", limit))
2833
+
2834
+ if name is not None:
2835
+
2836
+ _query_params.append(("name", name))
2837
+
2769
2838
  # process the header parameters
2770
2839
  # process the form parameters
2771
2840
  # process the body parameter
@@ -27,10 +27,10 @@ from hatchet_sdk.clients.rest.models.api_token import APIToken
27
27
  from hatchet_sdk.clients.rest.models.bulk_create_event_request import (
28
28
  BulkCreateEventRequest,
29
29
  )
30
- from hatchet_sdk.clients.rest.models.bulk_create_event_response import (
31
- BulkCreateEventResponse,
32
- )
33
30
  from hatchet_sdk.clients.rest.models.cancel_event_request import CancelEventRequest
31
+ from hatchet_sdk.clients.rest.models.concurrency_limit_strategy import (
32
+ ConcurrencyLimitStrategy,
33
+ )
34
34
  from hatchet_sdk.clients.rest.models.create_api_token_request import (
35
35
  CreateAPITokenRequest,
36
36
  )
@@ -56,6 +56,7 @@ from hatchet_sdk.clients.rest.models.create_tenant_invite_request import (
56
56
  from hatchet_sdk.clients.rest.models.create_tenant_request import CreateTenantRequest
57
57
  from hatchet_sdk.clients.rest.models.cron_workflows import CronWorkflows
58
58
  from hatchet_sdk.clients.rest.models.cron_workflows_list import CronWorkflowsList
59
+ from hatchet_sdk.clients.rest.models.cron_workflows_method import CronWorkflowsMethod
59
60
  from hatchet_sdk.clients.rest.models.cron_workflows_order_by_field import (
60
61
  CronWorkflowsOrderByField,
61
62
  )
@@ -73,6 +74,7 @@ from hatchet_sdk.clients.rest.models.event_update_cancel200_response import (
73
74
  from hatchet_sdk.clients.rest.models.event_workflow_run_summary import (
74
75
  EventWorkflowRunSummary,
75
76
  )
77
+ from hatchet_sdk.clients.rest.models.events import Events
76
78
  from hatchet_sdk.clients.rest.models.get_step_run_diff_response import (
77
79
  GetStepRunDiffResponse,
78
80
  )
@@ -124,6 +126,9 @@ from hatchet_sdk.clients.rest.models.scheduled_workflows import ScheduledWorkflo
124
126
  from hatchet_sdk.clients.rest.models.scheduled_workflows_list import (
125
127
  ScheduledWorkflowsList,
126
128
  )
129
+ from hatchet_sdk.clients.rest.models.scheduled_workflows_method import (
130
+ ScheduledWorkflowsMethod,
131
+ )
127
132
  from hatchet_sdk.clients.rest.models.scheduled_workflows_order_by_field import (
128
133
  ScheduledWorkflowsOrderByField,
129
134
  )
@@ -207,6 +212,7 @@ from hatchet_sdk.clients.rest.models.worker_label import WorkerLabel
207
212
  from hatchet_sdk.clients.rest.models.worker_list import WorkerList
208
213
  from hatchet_sdk.clients.rest.models.worker_runtime_info import WorkerRuntimeInfo
209
214
  from hatchet_sdk.clients.rest.models.worker_runtime_sdks import WorkerRuntimeSDKs
215
+ from hatchet_sdk.clients.rest.models.worker_type import WorkerType
210
216
  from hatchet_sdk.clients.rest.models.workflow import Workflow
211
217
  from hatchet_sdk.clients.rest.models.workflow_concurrency import WorkflowConcurrency
212
218
  from hatchet_sdk.clients.rest.models.workflow_kind import WorkflowKind
@@ -0,0 +1,39 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Hatchet API
5
+
6
+ The Hatchet API
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+
17
+ import json
18
+ from enum import Enum
19
+
20
+ from typing_extensions import Self
21
+
22
+
23
+ class ConcurrencyLimitStrategy(str, Enum):
24
+ """
25
+ ConcurrencyLimitStrategy
26
+ """
27
+
28
+ """
29
+ allowed enum values
30
+ """
31
+ CANCEL_IN_PROGRESS = "CANCEL_IN_PROGRESS"
32
+ DROP_NEWEST = "DROP_NEWEST"
33
+ QUEUE_NEWEST = "QUEUE_NEWEST"
34
+ GROUP_ROUND_ROBIN = "GROUP_ROUND_ROBIN"
35
+
36
+ @classmethod
37
+ def from_json(cls, json_str: str) -> Self:
38
+ """Create an instance of ConcurrencyLimitStrategy from a JSON string"""
39
+ return cls(json.loads(json_str))
@@ -19,17 +19,11 @@ import pprint
19
19
  import re # noqa: F401
20
20
  from typing import Any, ClassVar, Dict, List, Optional, Set
21
21
 
22
- from pydantic import (
23
- BaseModel,
24
- ConfigDict,
25
- Field,
26
- StrictBool,
27
- StrictStr,
28
- field_validator,
29
- )
22
+ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
30
23
  from typing_extensions import Self
31
24
 
32
25
  from hatchet_sdk.clients.rest.models.api_resource_meta import APIResourceMeta
26
+ from hatchet_sdk.clients.rest.models.cron_workflows_method import CronWorkflowsMethod
33
27
 
34
28
 
35
29
  class CronWorkflows(BaseModel):
@@ -49,7 +43,7 @@ class CronWorkflows(BaseModel):
49
43
  default=None, alias="additionalMetadata"
50
44
  )
51
45
  enabled: StrictBool
52
- method: StrictStr
46
+ method: CronWorkflowsMethod
53
47
  __properties: ClassVar[List[str]] = [
54
48
  "metadata",
55
49
  "tenantId",
@@ -64,13 +58,6 @@ class CronWorkflows(BaseModel):
64
58
  "method",
65
59
  ]
66
60
 
67
- @field_validator("method")
68
- def method_validate_enum(cls, value):
69
- """Validates the enum"""
70
- if value not in set(["DEFAULT", "API"]):
71
- raise ValueError("must be one of enum values ('DEFAULT', 'API')")
72
- return value
73
-
74
61
  model_config = ConfigDict(
75
62
  populate_by_name=True,
76
63
  validate_assignment=True,
@@ -0,0 +1,37 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Hatchet API
5
+
6
+ The Hatchet API
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+
17
+ import json
18
+ from enum import Enum
19
+
20
+ from typing_extensions import Self
21
+
22
+
23
+ class CronWorkflowsMethod(str, Enum):
24
+ """
25
+ CronWorkflowsMethod
26
+ """
27
+
28
+ """
29
+ allowed enum values
30
+ """
31
+ DEFAULT = "DEFAULT"
32
+ API = "API"
33
+
34
+ @classmethod
35
+ def from_json(cls, json_str: str) -> Self:
36
+ """Create an instance of CronWorkflowsMethod from a JSON string"""
37
+ return cls(json.loads(json_str))
@@ -0,0 +1,110 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Hatchet API
5
+
6
+ The Hatchet API
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+
17
+ import json
18
+ import pprint
19
+ import re # noqa: F401
20
+ from typing import Any, ClassVar, Dict, List, Optional, Set
21
+
22
+ from pydantic import BaseModel, ConfigDict, Field
23
+ from typing_extensions import Self
24
+
25
+ from hatchet_sdk.clients.rest.models.api_resource_meta import APIResourceMeta
26
+ from hatchet_sdk.clients.rest.models.event import Event
27
+
28
+
29
+ class Events(BaseModel):
30
+ """
31
+ Events
32
+ """ # noqa: E501
33
+
34
+ metadata: APIResourceMeta
35
+ events: List[Event] = Field(description="The events.")
36
+ __properties: ClassVar[List[str]] = ["metadata", "events"]
37
+
38
+ model_config = ConfigDict(
39
+ populate_by_name=True,
40
+ validate_assignment=True,
41
+ protected_namespaces=(),
42
+ )
43
+
44
+ def to_str(self) -> str:
45
+ """Returns the string representation of the model using alias"""
46
+ return pprint.pformat(self.model_dump(by_alias=True))
47
+
48
+ def to_json(self) -> str:
49
+ """Returns the JSON representation of the model using alias"""
50
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
51
+ return json.dumps(self.to_dict())
52
+
53
+ @classmethod
54
+ def from_json(cls, json_str: str) -> Optional[Self]:
55
+ """Create an instance of Events from a JSON string"""
56
+ return cls.from_dict(json.loads(json_str))
57
+
58
+ def to_dict(self) -> Dict[str, Any]:
59
+ """Return the dictionary representation of the model using alias.
60
+
61
+ This has the following differences from calling pydantic's
62
+ `self.model_dump(by_alias=True)`:
63
+
64
+ * `None` is only added to the output dict for nullable fields that
65
+ were set at model initialization. Other fields with value `None`
66
+ are ignored.
67
+ """
68
+ excluded_fields: Set[str] = set([])
69
+
70
+ _dict = self.model_dump(
71
+ by_alias=True,
72
+ exclude=excluded_fields,
73
+ exclude_none=True,
74
+ )
75
+ # override the default output from pydantic by calling `to_dict()` of metadata
76
+ if self.metadata:
77
+ _dict["metadata"] = self.metadata.to_dict()
78
+ # override the default output from pydantic by calling `to_dict()` of each item in events (list)
79
+ _items = []
80
+ if self.events:
81
+ for _item_events in self.events:
82
+ if _item_events:
83
+ _items.append(_item_events.to_dict())
84
+ _dict["events"] = _items
85
+ return _dict
86
+
87
+ @classmethod
88
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
89
+ """Create an instance of Events from a dict"""
90
+ if obj is None:
91
+ return None
92
+
93
+ if not isinstance(obj, dict):
94
+ return cls.model_validate(obj)
95
+
96
+ _obj = cls.model_validate(
97
+ {
98
+ "metadata": (
99
+ APIResourceMeta.from_dict(obj["metadata"])
100
+ if obj.get("metadata") is not None
101
+ else None
102
+ ),
103
+ "events": (
104
+ [Event.from_dict(_item) for _item in obj["events"]]
105
+ if obj.get("events") is not None
106
+ else None
107
+ ),
108
+ }
109
+ )
110
+ return _obj
@@ -20,10 +20,13 @@ import re # noqa: F401
20
20
  from datetime import datetime
21
21
  from typing import Any, ClassVar, Dict, List, Optional, Set
22
22
 
23
- from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
23
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr
24
24
  from typing_extensions import Annotated, Self
25
25
 
26
26
  from hatchet_sdk.clients.rest.models.api_resource_meta import APIResourceMeta
27
+ from hatchet_sdk.clients.rest.models.scheduled_workflows_method import (
28
+ ScheduledWorkflowsMethod,
29
+ )
27
30
  from hatchet_sdk.clients.rest.models.workflow_run_status import WorkflowRunStatus
28
31
 
29
32
 
@@ -54,7 +57,7 @@ class ScheduledWorkflows(BaseModel):
54
57
  workflow_run_id: Optional[
55
58
  Annotated[str, Field(min_length=36, strict=True, max_length=36)]
56
59
  ] = Field(default=None, alias="workflowRunId")
57
- method: StrictStr
60
+ method: ScheduledWorkflowsMethod
58
61
  __properties: ClassVar[List[str]] = [
59
62
  "metadata",
60
63
  "tenantId",
@@ -71,13 +74,6 @@ class ScheduledWorkflows(BaseModel):
71
74
  "method",
72
75
  ]
73
76
 
74
- @field_validator("method")
75
- def method_validate_enum(cls, value):
76
- """Validates the enum"""
77
- if value not in set(["DEFAULT", "API"]):
78
- raise ValueError("must be one of enum values ('DEFAULT', 'API')")
79
- return value
80
-
81
77
  model_config = ConfigDict(
82
78
  populate_by_name=True,
83
79
  validate_assignment=True,
@@ -0,0 +1,37 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Hatchet API
5
+
6
+ The Hatchet API
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+
17
+ import json
18
+ from enum import Enum
19
+
20
+ from typing_extensions import Self
21
+
22
+
23
+ class ScheduledWorkflowsMethod(str, Enum):
24
+ """
25
+ ScheduledWorkflowsMethod
26
+ """
27
+
28
+ """
29
+ allowed enum values
30
+ """
31
+ DEFAULT = "DEFAULT"
32
+ API = "API"
33
+
34
+ @classmethod
35
+ def from_json(cls, json_str: str) -> Self:
36
+ """Create an instance of ScheduledWorkflowsMethod from a JSON string"""
37
+ return cls(json.loads(json_str))
@@ -28,6 +28,7 @@ from hatchet_sdk.clients.rest.models.recent_step_runs import RecentStepRuns
28
28
  from hatchet_sdk.clients.rest.models.semaphore_slots import SemaphoreSlots
29
29
  from hatchet_sdk.clients.rest.models.worker_label import WorkerLabel
30
30
  from hatchet_sdk.clients.rest.models.worker_runtime_info import WorkerRuntimeInfo
31
+ from hatchet_sdk.clients.rest.models.worker_type import WorkerType
31
32
 
32
33
 
33
34
  class Worker(BaseModel):
@@ -37,7 +38,7 @@ class Worker(BaseModel):
37
38
 
38
39
  metadata: APIResourceMeta
39
40
  name: StrictStr = Field(description="The name of the worker.")
40
- type: StrictStr
41
+ type: WorkerType
41
42
  last_heartbeat_at: Optional[datetime] = Field(
42
43
  default=None,
43
44
  description="The time this worker last sent a heartbeat.",
@@ -108,15 +109,6 @@ class Worker(BaseModel):
108
109
  "runtimeInfo",
109
110
  ]
110
111
 
111
- @field_validator("type")
112
- def type_validate_enum(cls, value):
113
- """Validates the enum"""
114
- if value not in set(["SELFHOSTED", "MANAGED", "WEBHOOK"]):
115
- raise ValueError(
116
- "must be one of enum values ('SELFHOSTED', 'MANAGED', 'WEBHOOK')"
117
- )
118
- return value
119
-
120
112
  @field_validator("status")
121
113
  def status_validate_enum(cls, value):
122
114
  """Validates the enum"""