hatchet-sdk 1.18.1__py3-none-any.whl → 1.20.0__py3-none-any.whl

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 (234) hide show
  1. hatchet_sdk/clients/dispatcher/action_listener.py +0 -1
  2. hatchet_sdk/clients/dispatcher/dispatcher.py +0 -30
  3. hatchet_sdk/hatchet.py +0 -20
  4. hatchet_sdk/opentelemetry/instrumentor.py +1 -27
  5. hatchet_sdk/runnables/action.py +2 -5
  6. hatchet_sdk/runnables/task.py +0 -1
  7. hatchet_sdk/utils/opentelemetry.py +0 -1
  8. hatchet_sdk/worker/action_listener_process.py +0 -29
  9. hatchet_sdk/worker/runner/runner.py +1 -105
  10. {hatchet_sdk-1.18.1.dist-info → hatchet_sdk-1.20.0.dist-info}/METADATA +2 -3
  11. {hatchet_sdk-1.18.1.dist-info → hatchet_sdk-1.20.0.dist-info}/RECORD +13 -234
  12. hatchet_sdk/v0/__init__.py +0 -251
  13. hatchet_sdk/v0/client.py +0 -119
  14. hatchet_sdk/v0/clients/admin.py +0 -541
  15. hatchet_sdk/v0/clients/dispatcher/action_listener.py +0 -422
  16. hatchet_sdk/v0/clients/dispatcher/dispatcher.py +0 -204
  17. hatchet_sdk/v0/clients/event_ts.py +0 -28
  18. hatchet_sdk/v0/clients/events.py +0 -182
  19. hatchet_sdk/v0/clients/rest/__init__.py +0 -307
  20. hatchet_sdk/v0/clients/rest/api/__init__.py +0 -19
  21. hatchet_sdk/v0/clients/rest/api/api_token_api.py +0 -858
  22. hatchet_sdk/v0/clients/rest/api/default_api.py +0 -2259
  23. hatchet_sdk/v0/clients/rest/api/event_api.py +0 -2548
  24. hatchet_sdk/v0/clients/rest/api/github_api.py +0 -331
  25. hatchet_sdk/v0/clients/rest/api/healthcheck_api.py +0 -483
  26. hatchet_sdk/v0/clients/rest/api/log_api.py +0 -449
  27. hatchet_sdk/v0/clients/rest/api/metadata_api.py +0 -728
  28. hatchet_sdk/v0/clients/rest/api/rate_limits_api.py +0 -423
  29. hatchet_sdk/v0/clients/rest/api/slack_api.py +0 -577
  30. hatchet_sdk/v0/clients/rest/api/sns_api.py +0 -872
  31. hatchet_sdk/v0/clients/rest/api/step_run_api.py +0 -2202
  32. hatchet_sdk/v0/clients/rest/api/tenant_api.py +0 -4430
  33. hatchet_sdk/v0/clients/rest/api/user_api.py +0 -2888
  34. hatchet_sdk/v0/clients/rest/api/worker_api.py +0 -858
  35. hatchet_sdk/v0/clients/rest/api/workflow_api.py +0 -6312
  36. hatchet_sdk/v0/clients/rest/api/workflow_run_api.py +0 -1932
  37. hatchet_sdk/v0/clients/rest/api/workflow_runs_api.py +0 -610
  38. hatchet_sdk/v0/clients/rest/api_client.py +0 -759
  39. hatchet_sdk/v0/clients/rest/api_response.py +0 -22
  40. hatchet_sdk/v0/clients/rest/configuration.py +0 -611
  41. hatchet_sdk/v0/clients/rest/exceptions.py +0 -200
  42. hatchet_sdk/v0/clients/rest/models/__init__.py +0 -274
  43. hatchet_sdk/v0/clients/rest/models/accept_invite_request.py +0 -83
  44. hatchet_sdk/v0/clients/rest/models/api_error.py +0 -102
  45. hatchet_sdk/v0/clients/rest/models/api_errors.py +0 -100
  46. hatchet_sdk/v0/clients/rest/models/api_meta.py +0 -144
  47. hatchet_sdk/v0/clients/rest/models/api_meta_auth.py +0 -85
  48. hatchet_sdk/v0/clients/rest/models/api_meta_integration.py +0 -88
  49. hatchet_sdk/v0/clients/rest/models/api_meta_posthog.py +0 -90
  50. hatchet_sdk/v0/clients/rest/models/api_resource_meta.py +0 -98
  51. hatchet_sdk/v0/clients/rest/models/api_token.py +0 -105
  52. hatchet_sdk/v0/clients/rest/models/bulk_create_event_request.py +0 -100
  53. hatchet_sdk/v0/clients/rest/models/bulk_create_event_response.py +0 -110
  54. hatchet_sdk/v0/clients/rest/models/cancel_event_request.py +0 -85
  55. hatchet_sdk/v0/clients/rest/models/cancel_step_run_request.py +0 -83
  56. hatchet_sdk/v0/clients/rest/models/concurrency_limit_strategy.py +0 -39
  57. hatchet_sdk/v0/clients/rest/models/create_api_token_request.py +0 -92
  58. hatchet_sdk/v0/clients/rest/models/create_api_token_response.py +0 -83
  59. hatchet_sdk/v0/clients/rest/models/create_cron_workflow_trigger_request.py +0 -98
  60. hatchet_sdk/v0/clients/rest/models/create_event_request.py +0 -95
  61. hatchet_sdk/v0/clients/rest/models/create_pull_request_from_step_run.py +0 -83
  62. hatchet_sdk/v0/clients/rest/models/create_sns_integration_request.py +0 -85
  63. hatchet_sdk/v0/clients/rest/models/create_tenant_alert_email_group_request.py +0 -83
  64. hatchet_sdk/v0/clients/rest/models/create_tenant_invite_request.py +0 -86
  65. hatchet_sdk/v0/clients/rest/models/create_tenant_request.py +0 -84
  66. hatchet_sdk/v0/clients/rest/models/cron_workflows.py +0 -131
  67. hatchet_sdk/v0/clients/rest/models/cron_workflows_list.py +0 -110
  68. hatchet_sdk/v0/clients/rest/models/cron_workflows_method.py +0 -37
  69. hatchet_sdk/v0/clients/rest/models/cron_workflows_order_by_field.py +0 -37
  70. hatchet_sdk/v0/clients/rest/models/event.py +0 -143
  71. hatchet_sdk/v0/clients/rest/models/event_data.py +0 -83
  72. hatchet_sdk/v0/clients/rest/models/event_key_list.py +0 -98
  73. hatchet_sdk/v0/clients/rest/models/event_list.py +0 -110
  74. hatchet_sdk/v0/clients/rest/models/event_order_by_direction.py +0 -37
  75. hatchet_sdk/v0/clients/rest/models/event_order_by_field.py +0 -36
  76. hatchet_sdk/v0/clients/rest/models/event_update_cancel200_response.py +0 -85
  77. hatchet_sdk/v0/clients/rest/models/event_workflow_run_summary.py +0 -116
  78. hatchet_sdk/v0/clients/rest/models/events.py +0 -110
  79. hatchet_sdk/v0/clients/rest/models/get_step_run_diff_response.py +0 -100
  80. hatchet_sdk/v0/clients/rest/models/github_app_installation.py +0 -107
  81. hatchet_sdk/v0/clients/rest/models/github_branch.py +0 -86
  82. hatchet_sdk/v0/clients/rest/models/github_repo.py +0 -86
  83. hatchet_sdk/v0/clients/rest/models/info_get_version200_response.py +0 -83
  84. hatchet_sdk/v0/clients/rest/models/job.py +0 -132
  85. hatchet_sdk/v0/clients/rest/models/job_run.py +0 -176
  86. hatchet_sdk/v0/clients/rest/models/job_run_status.py +0 -41
  87. hatchet_sdk/v0/clients/rest/models/link_github_repository_request.py +0 -106
  88. hatchet_sdk/v0/clients/rest/models/list_api_tokens_response.py +0 -110
  89. hatchet_sdk/v0/clients/rest/models/list_github_app_installations_response.py +0 -112
  90. hatchet_sdk/v0/clients/rest/models/list_pull_requests_response.py +0 -100
  91. hatchet_sdk/v0/clients/rest/models/list_slack_webhooks.py +0 -110
  92. hatchet_sdk/v0/clients/rest/models/list_sns_integrations.py +0 -110
  93. hatchet_sdk/v0/clients/rest/models/log_line.py +0 -94
  94. hatchet_sdk/v0/clients/rest/models/log_line_level.py +0 -39
  95. hatchet_sdk/v0/clients/rest/models/log_line_list.py +0 -110
  96. hatchet_sdk/v0/clients/rest/models/log_line_order_by_direction.py +0 -37
  97. hatchet_sdk/v0/clients/rest/models/log_line_order_by_field.py +0 -36
  98. hatchet_sdk/v0/clients/rest/models/pagination_response.py +0 -95
  99. hatchet_sdk/v0/clients/rest/models/pull_request.py +0 -112
  100. hatchet_sdk/v0/clients/rest/models/pull_request_state.py +0 -37
  101. hatchet_sdk/v0/clients/rest/models/queue_metrics.py +0 -97
  102. hatchet_sdk/v0/clients/rest/models/rate_limit.py +0 -117
  103. hatchet_sdk/v0/clients/rest/models/rate_limit_list.py +0 -110
  104. hatchet_sdk/v0/clients/rest/models/rate_limit_order_by_direction.py +0 -37
  105. hatchet_sdk/v0/clients/rest/models/rate_limit_order_by_field.py +0 -38
  106. hatchet_sdk/v0/clients/rest/models/recent_step_runs.py +0 -118
  107. hatchet_sdk/v0/clients/rest/models/reject_invite_request.py +0 -83
  108. hatchet_sdk/v0/clients/rest/models/replay_event_request.py +0 -85
  109. hatchet_sdk/v0/clients/rest/models/replay_workflow_runs_request.py +0 -85
  110. hatchet_sdk/v0/clients/rest/models/replay_workflow_runs_response.py +0 -100
  111. hatchet_sdk/v0/clients/rest/models/rerun_step_run_request.py +0 -83
  112. hatchet_sdk/v0/clients/rest/models/schedule_workflow_run_request.py +0 -92
  113. hatchet_sdk/v0/clients/rest/models/scheduled_run_status.py +0 -42
  114. hatchet_sdk/v0/clients/rest/models/scheduled_workflows.py +0 -149
  115. hatchet_sdk/v0/clients/rest/models/scheduled_workflows_list.py +0 -110
  116. hatchet_sdk/v0/clients/rest/models/scheduled_workflows_method.py +0 -37
  117. hatchet_sdk/v0/clients/rest/models/scheduled_workflows_order_by_field.py +0 -37
  118. hatchet_sdk/v0/clients/rest/models/semaphore_slots.py +0 -113
  119. hatchet_sdk/v0/clients/rest/models/slack_webhook.py +0 -127
  120. hatchet_sdk/v0/clients/rest/models/sns_integration.py +0 -114
  121. hatchet_sdk/v0/clients/rest/models/step.py +0 -123
  122. hatchet_sdk/v0/clients/rest/models/step_run.py +0 -202
  123. hatchet_sdk/v0/clients/rest/models/step_run_archive.py +0 -142
  124. hatchet_sdk/v0/clients/rest/models/step_run_archive_list.py +0 -110
  125. hatchet_sdk/v0/clients/rest/models/step_run_diff.py +0 -91
  126. hatchet_sdk/v0/clients/rest/models/step_run_event.py +0 -122
  127. hatchet_sdk/v0/clients/rest/models/step_run_event_list.py +0 -110
  128. hatchet_sdk/v0/clients/rest/models/step_run_event_reason.py +0 -52
  129. hatchet_sdk/v0/clients/rest/models/step_run_event_severity.py +0 -38
  130. hatchet_sdk/v0/clients/rest/models/step_run_status.py +0 -44
  131. hatchet_sdk/v0/clients/rest/models/tenant.py +0 -118
  132. hatchet_sdk/v0/clients/rest/models/tenant_alert_email_group.py +0 -98
  133. hatchet_sdk/v0/clients/rest/models/tenant_alert_email_group_list.py +0 -112
  134. hatchet_sdk/v0/clients/rest/models/tenant_alerting_settings.py +0 -143
  135. hatchet_sdk/v0/clients/rest/models/tenant_invite.py +0 -120
  136. hatchet_sdk/v0/clients/rest/models/tenant_invite_list.py +0 -110
  137. hatchet_sdk/v0/clients/rest/models/tenant_list.py +0 -110
  138. hatchet_sdk/v0/clients/rest/models/tenant_member.py +0 -123
  139. hatchet_sdk/v0/clients/rest/models/tenant_member_list.py +0 -110
  140. hatchet_sdk/v0/clients/rest/models/tenant_member_role.py +0 -38
  141. hatchet_sdk/v0/clients/rest/models/tenant_queue_metrics.py +0 -116
  142. hatchet_sdk/v0/clients/rest/models/tenant_resource.py +0 -40
  143. hatchet_sdk/v0/clients/rest/models/tenant_resource_limit.py +0 -135
  144. hatchet_sdk/v0/clients/rest/models/tenant_resource_policy.py +0 -102
  145. hatchet_sdk/v0/clients/rest/models/tenant_step_run_queue_metrics.py +0 -83
  146. hatchet_sdk/v0/clients/rest/models/trigger_workflow_run_request.py +0 -91
  147. hatchet_sdk/v0/clients/rest/models/update_tenant_alert_email_group_request.py +0 -83
  148. hatchet_sdk/v0/clients/rest/models/update_tenant_invite_request.py +0 -85
  149. hatchet_sdk/v0/clients/rest/models/update_tenant_request.py +0 -137
  150. hatchet_sdk/v0/clients/rest/models/update_worker_request.py +0 -87
  151. hatchet_sdk/v0/clients/rest/models/user.py +0 -126
  152. hatchet_sdk/v0/clients/rest/models/user_change_password_request.py +0 -88
  153. hatchet_sdk/v0/clients/rest/models/user_login_request.py +0 -86
  154. hatchet_sdk/v0/clients/rest/models/user_register_request.py +0 -91
  155. hatchet_sdk/v0/clients/rest/models/user_tenant_memberships_list.py +0 -110
  156. hatchet_sdk/v0/clients/rest/models/user_tenant_public.py +0 -86
  157. hatchet_sdk/v0/clients/rest/models/webhook_worker.py +0 -100
  158. hatchet_sdk/v0/clients/rest/models/webhook_worker_create_request.py +0 -94
  159. hatchet_sdk/v0/clients/rest/models/webhook_worker_create_response.py +0 -98
  160. hatchet_sdk/v0/clients/rest/models/webhook_worker_created.py +0 -102
  161. hatchet_sdk/v0/clients/rest/models/webhook_worker_list_response.py +0 -110
  162. hatchet_sdk/v0/clients/rest/models/webhook_worker_request.py +0 -102
  163. hatchet_sdk/v0/clients/rest/models/webhook_worker_request_list_response.py +0 -104
  164. hatchet_sdk/v0/clients/rest/models/webhook_worker_request_method.py +0 -38
  165. hatchet_sdk/v0/clients/rest/models/worker.py +0 -239
  166. hatchet_sdk/v0/clients/rest/models/worker_label.py +0 -102
  167. hatchet_sdk/v0/clients/rest/models/worker_list.py +0 -110
  168. hatchet_sdk/v0/clients/rest/models/worker_runtime_info.py +0 -103
  169. hatchet_sdk/v0/clients/rest/models/worker_runtime_sdks.py +0 -38
  170. hatchet_sdk/v0/clients/rest/models/worker_type.py +0 -38
  171. hatchet_sdk/v0/clients/rest/models/workflow.py +0 -165
  172. hatchet_sdk/v0/clients/rest/models/workflow_concurrency.py +0 -107
  173. hatchet_sdk/v0/clients/rest/models/workflow_deployment_config.py +0 -136
  174. hatchet_sdk/v0/clients/rest/models/workflow_kind.py +0 -38
  175. hatchet_sdk/v0/clients/rest/models/workflow_list.py +0 -120
  176. hatchet_sdk/v0/clients/rest/models/workflow_metrics.py +0 -97
  177. hatchet_sdk/v0/clients/rest/models/workflow_run.py +0 -188
  178. hatchet_sdk/v0/clients/rest/models/workflow_run_cancel200_response.py +0 -85
  179. hatchet_sdk/v0/clients/rest/models/workflow_run_list.py +0 -110
  180. hatchet_sdk/v0/clients/rest/models/workflow_run_order_by_direction.py +0 -37
  181. hatchet_sdk/v0/clients/rest/models/workflow_run_order_by_field.py +0 -39
  182. hatchet_sdk/v0/clients/rest/models/workflow_run_shape.py +0 -186
  183. hatchet_sdk/v0/clients/rest/models/workflow_run_status.py +0 -42
  184. hatchet_sdk/v0/clients/rest/models/workflow_run_triggered_by.py +0 -112
  185. hatchet_sdk/v0/clients/rest/models/workflow_runs_cancel_request.py +0 -85
  186. hatchet_sdk/v0/clients/rest/models/workflow_runs_metrics.py +0 -94
  187. hatchet_sdk/v0/clients/rest/models/workflow_runs_metrics_counts.py +0 -104
  188. hatchet_sdk/v0/clients/rest/models/workflow_tag.py +0 -84
  189. hatchet_sdk/v0/clients/rest/models/workflow_trigger_cron_ref.py +0 -86
  190. hatchet_sdk/v0/clients/rest/models/workflow_trigger_event_ref.py +0 -86
  191. hatchet_sdk/v0/clients/rest/models/workflow_triggers.py +0 -141
  192. hatchet_sdk/v0/clients/rest/models/workflow_update_request.py +0 -85
  193. hatchet_sdk/v0/clients/rest/models/workflow_version.py +0 -170
  194. hatchet_sdk/v0/clients/rest/models/workflow_version_concurrency.py +0 -114
  195. hatchet_sdk/v0/clients/rest/models/workflow_version_definition.py +0 -85
  196. hatchet_sdk/v0/clients/rest/models/workflow_version_meta.py +0 -123
  197. hatchet_sdk/v0/clients/rest/models/workflow_workers_count.py +0 -95
  198. hatchet_sdk/v0/clients/rest/rest.py +0 -187
  199. hatchet_sdk/v0/clients/rest/tenacity_utils.py +0 -39
  200. hatchet_sdk/v0/clients/rest_client.py +0 -622
  201. hatchet_sdk/v0/clients/run_event_listener.py +0 -260
  202. hatchet_sdk/v0/clients/workflow_listener.py +0 -277
  203. hatchet_sdk/v0/connection.py +0 -63
  204. hatchet_sdk/v0/context/__init__.py +0 -1
  205. hatchet_sdk/v0/context/context.py +0 -446
  206. hatchet_sdk/v0/context/worker_context.py +0 -28
  207. hatchet_sdk/v0/features/cron.py +0 -286
  208. hatchet_sdk/v0/features/scheduled.py +0 -248
  209. hatchet_sdk/v0/hatchet.py +0 -310
  210. hatchet_sdk/v0/labels.py +0 -10
  211. hatchet_sdk/v0/loader.py +0 -244
  212. hatchet_sdk/v0/metadata.py +0 -2
  213. hatchet_sdk/v0/opentelemetry/instrumentor.py +0 -393
  214. hatchet_sdk/v0/rate_limit.py +0 -126
  215. hatchet_sdk/v0/semver.py +0 -30
  216. hatchet_sdk/v0/token.py +0 -27
  217. hatchet_sdk/v0/utils/aio_utils.py +0 -137
  218. hatchet_sdk/v0/utils/backoff.py +0 -9
  219. hatchet_sdk/v0/utils/types.py +0 -8
  220. hatchet_sdk/v0/utils/typing.py +0 -12
  221. hatchet_sdk/v0/v2/callable.py +0 -202
  222. hatchet_sdk/v0/v2/concurrency.py +0 -47
  223. hatchet_sdk/v0/v2/hatchet.py +0 -224
  224. hatchet_sdk/v0/worker/__init__.py +0 -1
  225. hatchet_sdk/v0/worker/action_listener_process.py +0 -294
  226. hatchet_sdk/v0/worker/runner/run_loop_manager.py +0 -112
  227. hatchet_sdk/v0/worker/runner/runner.py +0 -460
  228. hatchet_sdk/v0/worker/runner/utils/capture_logs.py +0 -81
  229. hatchet_sdk/v0/worker/runner/utils/error_with_traceback.py +0 -6
  230. hatchet_sdk/v0/worker/worker.py +0 -391
  231. hatchet_sdk/v0/workflow.py +0 -261
  232. hatchet_sdk/v0/workflow_run.py +0 -59
  233. {hatchet_sdk-1.18.1.dist-info → hatchet_sdk-1.20.0.dist-info}/WHEEL +0 -0
  234. {hatchet_sdk-1.18.1.dist-info → hatchet_sdk-1.20.0.dist-info}/entry_points.txt +0 -0
@@ -1,610 +0,0 @@
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
- import warnings
15
- from typing import Any, Dict, List, Optional, Tuple, Union
16
-
17
- from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call
18
- from typing_extensions import Annotated
19
-
20
- from hatchet_sdk.v0.clients.rest.api_client import ApiClient, RequestSerialized
21
- from hatchet_sdk.v0.clients.rest.api_response import ApiResponse
22
- from hatchet_sdk.v0.clients.rest.models.replay_workflow_runs_request import (
23
- ReplayWorkflowRunsRequest,
24
- )
25
- from hatchet_sdk.v0.clients.rest.models.replay_workflow_runs_response import (
26
- ReplayWorkflowRunsResponse,
27
- )
28
- from hatchet_sdk.v0.clients.rest.rest import RESTResponseType
29
-
30
-
31
- class WorkflowRunsApi:
32
- """NOTE: This class is auto generated by OpenAPI Generator
33
- Ref: https://openapi-generator.tech
34
-
35
- Do not edit the class manually.
36
- """
37
-
38
- def __init__(self, api_client=None) -> None:
39
- if api_client is None:
40
- api_client = ApiClient.get_default()
41
- self.api_client = api_client
42
-
43
- @validate_call
44
- async def workflow_run_get_input(
45
- self,
46
- workflow_run: Annotated[
47
- str,
48
- Field(
49
- min_length=36,
50
- strict=True,
51
- max_length=36,
52
- description="The workflow run id",
53
- ),
54
- ],
55
- _request_timeout: Union[
56
- None,
57
- Annotated[StrictFloat, Field(gt=0)],
58
- Tuple[
59
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
60
- ],
61
- ] = None,
62
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
63
- _content_type: Optional[StrictStr] = None,
64
- _headers: Optional[Dict[StrictStr, Any]] = None,
65
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
66
- ) -> Dict[str, object]:
67
- """Get workflow run input
68
-
69
- Get the input for a workflow run.
70
-
71
- :param workflow_run: The workflow run id (required)
72
- :type workflow_run: str
73
- :param _request_timeout: timeout setting for this request. If one
74
- number provided, it will be total request
75
- timeout. It can also be a pair (tuple) of
76
- (connection, read) timeouts.
77
- :type _request_timeout: int, tuple(int, int), optional
78
- :param _request_auth: set to override the auth_settings for an a single
79
- request; this effectively ignores the
80
- authentication in the spec for a single request.
81
- :type _request_auth: dict, optional
82
- :param _content_type: force content-type for the request.
83
- :type _content_type: str, Optional
84
- :param _headers: set to override the headers for a single
85
- request; this effectively ignores the headers
86
- in the spec for a single request.
87
- :type _headers: dict, optional
88
- :param _host_index: set to override the host_index for a single
89
- request; this effectively ignores the host_index
90
- in the spec for a single request.
91
- :type _host_index: int, optional
92
- :return: Returns the result object.
93
- """ # noqa: E501
94
-
95
- _param = self._workflow_run_get_input_serialize(
96
- workflow_run=workflow_run,
97
- _request_auth=_request_auth,
98
- _content_type=_content_type,
99
- _headers=_headers,
100
- _host_index=_host_index,
101
- )
102
-
103
- _response_types_map: Dict[str, Optional[str]] = {
104
- "200": "Dict[str, object]",
105
- "400": "APIErrors",
106
- "403": "APIErrors",
107
- "404": "APIErrors",
108
- }
109
- response_data = await self.api_client.call_api(
110
- *_param, _request_timeout=_request_timeout
111
- )
112
- await response_data.read()
113
- return self.api_client.response_deserialize(
114
- response_data=response_data,
115
- response_types_map=_response_types_map,
116
- ).data
117
-
118
- @validate_call
119
- async def workflow_run_get_input_with_http_info(
120
- self,
121
- workflow_run: Annotated[
122
- str,
123
- Field(
124
- min_length=36,
125
- strict=True,
126
- max_length=36,
127
- description="The workflow run id",
128
- ),
129
- ],
130
- _request_timeout: Union[
131
- None,
132
- Annotated[StrictFloat, Field(gt=0)],
133
- Tuple[
134
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
135
- ],
136
- ] = None,
137
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
138
- _content_type: Optional[StrictStr] = None,
139
- _headers: Optional[Dict[StrictStr, Any]] = None,
140
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
141
- ) -> ApiResponse[Dict[str, object]]:
142
- """Get workflow run input
143
-
144
- Get the input for a workflow run.
145
-
146
- :param workflow_run: The workflow run id (required)
147
- :type workflow_run: str
148
- :param _request_timeout: timeout setting for this request. If one
149
- number provided, it will be total request
150
- timeout. It can also be a pair (tuple) of
151
- (connection, read) timeouts.
152
- :type _request_timeout: int, tuple(int, int), optional
153
- :param _request_auth: set to override the auth_settings for an a single
154
- request; this effectively ignores the
155
- authentication in the spec for a single request.
156
- :type _request_auth: dict, optional
157
- :param _content_type: force content-type for the request.
158
- :type _content_type: str, Optional
159
- :param _headers: set to override the headers for a single
160
- request; this effectively ignores the headers
161
- in the spec for a single request.
162
- :type _headers: dict, optional
163
- :param _host_index: set to override the host_index for a single
164
- request; this effectively ignores the host_index
165
- in the spec for a single request.
166
- :type _host_index: int, optional
167
- :return: Returns the result object.
168
- """ # noqa: E501
169
-
170
- _param = self._workflow_run_get_input_serialize(
171
- workflow_run=workflow_run,
172
- _request_auth=_request_auth,
173
- _content_type=_content_type,
174
- _headers=_headers,
175
- _host_index=_host_index,
176
- )
177
-
178
- _response_types_map: Dict[str, Optional[str]] = {
179
- "200": "Dict[str, object]",
180
- "400": "APIErrors",
181
- "403": "APIErrors",
182
- "404": "APIErrors",
183
- }
184
- response_data = await self.api_client.call_api(
185
- *_param, _request_timeout=_request_timeout
186
- )
187
- await response_data.read()
188
- return self.api_client.response_deserialize(
189
- response_data=response_data,
190
- response_types_map=_response_types_map,
191
- )
192
-
193
- @validate_call
194
- async def workflow_run_get_input_without_preload_content(
195
- self,
196
- workflow_run: Annotated[
197
- str,
198
- Field(
199
- min_length=36,
200
- strict=True,
201
- max_length=36,
202
- description="The workflow run id",
203
- ),
204
- ],
205
- _request_timeout: Union[
206
- None,
207
- Annotated[StrictFloat, Field(gt=0)],
208
- Tuple[
209
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
210
- ],
211
- ] = None,
212
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
213
- _content_type: Optional[StrictStr] = None,
214
- _headers: Optional[Dict[StrictStr, Any]] = None,
215
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
216
- ) -> RESTResponseType:
217
- """Get workflow run input
218
-
219
- Get the input for a workflow run.
220
-
221
- :param workflow_run: The workflow run id (required)
222
- :type workflow_run: str
223
- :param _request_timeout: timeout setting for this request. If one
224
- number provided, it will be total request
225
- timeout. It can also be a pair (tuple) of
226
- (connection, read) timeouts.
227
- :type _request_timeout: int, tuple(int, int), optional
228
- :param _request_auth: set to override the auth_settings for an a single
229
- request; this effectively ignores the
230
- authentication in the spec for a single request.
231
- :type _request_auth: dict, optional
232
- :param _content_type: force content-type for the request.
233
- :type _content_type: str, Optional
234
- :param _headers: set to override the headers for a single
235
- request; this effectively ignores the headers
236
- in the spec for a single request.
237
- :type _headers: dict, optional
238
- :param _host_index: set to override the host_index for a single
239
- request; this effectively ignores the host_index
240
- in the spec for a single request.
241
- :type _host_index: int, optional
242
- :return: Returns the result object.
243
- """ # noqa: E501
244
-
245
- _param = self._workflow_run_get_input_serialize(
246
- workflow_run=workflow_run,
247
- _request_auth=_request_auth,
248
- _content_type=_content_type,
249
- _headers=_headers,
250
- _host_index=_host_index,
251
- )
252
-
253
- _response_types_map: Dict[str, Optional[str]] = {
254
- "200": "Dict[str, object]",
255
- "400": "APIErrors",
256
- "403": "APIErrors",
257
- "404": "APIErrors",
258
- }
259
- response_data = await self.api_client.call_api(
260
- *_param, _request_timeout=_request_timeout
261
- )
262
- return response_data.response
263
-
264
- def _workflow_run_get_input_serialize(
265
- self,
266
- workflow_run,
267
- _request_auth,
268
- _content_type,
269
- _headers,
270
- _host_index,
271
- ) -> RequestSerialized:
272
-
273
- _host = None
274
-
275
- _collection_formats: Dict[str, str] = {}
276
-
277
- _path_params: Dict[str, str] = {}
278
- _query_params: List[Tuple[str, str]] = []
279
- _header_params: Dict[str, Optional[str]] = _headers or {}
280
- _form_params: List[Tuple[str, str]] = []
281
- _files: Dict[str, Union[str, bytes]] = {}
282
- _body_params: Optional[bytes] = None
283
-
284
- # process the path parameters
285
- if workflow_run is not None:
286
- _path_params["workflow-run"] = workflow_run
287
- # process the query parameters
288
- # process the header parameters
289
- # process the form parameters
290
- # process the body parameter
291
-
292
- # set the HTTP header `Accept`
293
- _header_params["Accept"] = self.api_client.select_header_accept(
294
- ["application/json"]
295
- )
296
-
297
- # authentication setting
298
- _auth_settings: List[str] = ["cookieAuth", "bearerAuth"]
299
-
300
- return self.api_client.param_serialize(
301
- method="GET",
302
- resource_path="/api/v1/workflow-runs/{workflow-run}/input",
303
- path_params=_path_params,
304
- query_params=_query_params,
305
- header_params=_header_params,
306
- body=_body_params,
307
- post_params=_form_params,
308
- files=_files,
309
- auth_settings=_auth_settings,
310
- collection_formats=_collection_formats,
311
- _host=_host,
312
- _request_auth=_request_auth,
313
- )
314
-
315
- @validate_call
316
- async def workflow_run_update_replay(
317
- self,
318
- tenant: Annotated[
319
- str,
320
- Field(
321
- min_length=36, strict=True, max_length=36, description="The tenant id"
322
- ),
323
- ],
324
- replay_workflow_runs_request: Annotated[
325
- ReplayWorkflowRunsRequest,
326
- Field(description="The workflow run ids to replay"),
327
- ],
328
- _request_timeout: Union[
329
- None,
330
- Annotated[StrictFloat, Field(gt=0)],
331
- Tuple[
332
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
333
- ],
334
- ] = None,
335
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
336
- _content_type: Optional[StrictStr] = None,
337
- _headers: Optional[Dict[StrictStr, Any]] = None,
338
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
339
- ) -> ReplayWorkflowRunsResponse:
340
- """Replay workflow runs
341
-
342
- Replays a list of workflow runs.
343
-
344
- :param tenant: The tenant id (required)
345
- :type tenant: str
346
- :param replay_workflow_runs_request: The workflow run ids to replay (required)
347
- :type replay_workflow_runs_request: ReplayWorkflowRunsRequest
348
- :param _request_timeout: timeout setting for this request. If one
349
- number provided, it will be total request
350
- timeout. It can also be a pair (tuple) of
351
- (connection, read) timeouts.
352
- :type _request_timeout: int, tuple(int, int), optional
353
- :param _request_auth: set to override the auth_settings for an a single
354
- request; this effectively ignores the
355
- authentication in the spec for a single request.
356
- :type _request_auth: dict, optional
357
- :param _content_type: force content-type for the request.
358
- :type _content_type: str, Optional
359
- :param _headers: set to override the headers for a single
360
- request; this effectively ignores the headers
361
- in the spec for a single request.
362
- :type _headers: dict, optional
363
- :param _host_index: set to override the host_index for a single
364
- request; this effectively ignores the host_index
365
- in the spec for a single request.
366
- :type _host_index: int, optional
367
- :return: Returns the result object.
368
- """ # noqa: E501
369
-
370
- _param = self._workflow_run_update_replay_serialize(
371
- tenant=tenant,
372
- replay_workflow_runs_request=replay_workflow_runs_request,
373
- _request_auth=_request_auth,
374
- _content_type=_content_type,
375
- _headers=_headers,
376
- _host_index=_host_index,
377
- )
378
-
379
- _response_types_map: Dict[str, Optional[str]] = {
380
- "200": "ReplayWorkflowRunsResponse",
381
- "400": "APIErrors",
382
- "403": "APIErrors",
383
- "429": "APIErrors",
384
- }
385
- response_data = await self.api_client.call_api(
386
- *_param, _request_timeout=_request_timeout
387
- )
388
- await response_data.read()
389
- return self.api_client.response_deserialize(
390
- response_data=response_data,
391
- response_types_map=_response_types_map,
392
- ).data
393
-
394
- @validate_call
395
- async def workflow_run_update_replay_with_http_info(
396
- self,
397
- tenant: Annotated[
398
- str,
399
- Field(
400
- min_length=36, strict=True, max_length=36, description="The tenant id"
401
- ),
402
- ],
403
- replay_workflow_runs_request: Annotated[
404
- ReplayWorkflowRunsRequest,
405
- Field(description="The workflow run ids to replay"),
406
- ],
407
- _request_timeout: Union[
408
- None,
409
- Annotated[StrictFloat, Field(gt=0)],
410
- Tuple[
411
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
412
- ],
413
- ] = None,
414
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
415
- _content_type: Optional[StrictStr] = None,
416
- _headers: Optional[Dict[StrictStr, Any]] = None,
417
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
418
- ) -> ApiResponse[ReplayWorkflowRunsResponse]:
419
- """Replay workflow runs
420
-
421
- Replays a list of workflow runs.
422
-
423
- :param tenant: The tenant id (required)
424
- :type tenant: str
425
- :param replay_workflow_runs_request: The workflow run ids to replay (required)
426
- :type replay_workflow_runs_request: ReplayWorkflowRunsRequest
427
- :param _request_timeout: timeout setting for this request. If one
428
- number provided, it will be total request
429
- timeout. It can also be a pair (tuple) of
430
- (connection, read) timeouts.
431
- :type _request_timeout: int, tuple(int, int), optional
432
- :param _request_auth: set to override the auth_settings for an a single
433
- request; this effectively ignores the
434
- authentication in the spec for a single request.
435
- :type _request_auth: dict, optional
436
- :param _content_type: force content-type for the request.
437
- :type _content_type: str, Optional
438
- :param _headers: set to override the headers for a single
439
- request; this effectively ignores the headers
440
- in the spec for a single request.
441
- :type _headers: dict, optional
442
- :param _host_index: set to override the host_index for a single
443
- request; this effectively ignores the host_index
444
- in the spec for a single request.
445
- :type _host_index: int, optional
446
- :return: Returns the result object.
447
- """ # noqa: E501
448
-
449
- _param = self._workflow_run_update_replay_serialize(
450
- tenant=tenant,
451
- replay_workflow_runs_request=replay_workflow_runs_request,
452
- _request_auth=_request_auth,
453
- _content_type=_content_type,
454
- _headers=_headers,
455
- _host_index=_host_index,
456
- )
457
-
458
- _response_types_map: Dict[str, Optional[str]] = {
459
- "200": "ReplayWorkflowRunsResponse",
460
- "400": "APIErrors",
461
- "403": "APIErrors",
462
- "429": "APIErrors",
463
- }
464
- response_data = await self.api_client.call_api(
465
- *_param, _request_timeout=_request_timeout
466
- )
467
- await response_data.read()
468
- return self.api_client.response_deserialize(
469
- response_data=response_data,
470
- response_types_map=_response_types_map,
471
- )
472
-
473
- @validate_call
474
- async def workflow_run_update_replay_without_preload_content(
475
- self,
476
- tenant: Annotated[
477
- str,
478
- Field(
479
- min_length=36, strict=True, max_length=36, description="The tenant id"
480
- ),
481
- ],
482
- replay_workflow_runs_request: Annotated[
483
- ReplayWorkflowRunsRequest,
484
- Field(description="The workflow run ids to replay"),
485
- ],
486
- _request_timeout: Union[
487
- None,
488
- Annotated[StrictFloat, Field(gt=0)],
489
- Tuple[
490
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
491
- ],
492
- ] = None,
493
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
494
- _content_type: Optional[StrictStr] = None,
495
- _headers: Optional[Dict[StrictStr, Any]] = None,
496
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
497
- ) -> RESTResponseType:
498
- """Replay workflow runs
499
-
500
- Replays a list of workflow runs.
501
-
502
- :param tenant: The tenant id (required)
503
- :type tenant: str
504
- :param replay_workflow_runs_request: The workflow run ids to replay (required)
505
- :type replay_workflow_runs_request: ReplayWorkflowRunsRequest
506
- :param _request_timeout: timeout setting for this request. If one
507
- number provided, it will be total request
508
- timeout. It can also be a pair (tuple) of
509
- (connection, read) timeouts.
510
- :type _request_timeout: int, tuple(int, int), optional
511
- :param _request_auth: set to override the auth_settings for an a single
512
- request; this effectively ignores the
513
- authentication in the spec for a single request.
514
- :type _request_auth: dict, optional
515
- :param _content_type: force content-type for the request.
516
- :type _content_type: str, Optional
517
- :param _headers: set to override the headers for a single
518
- request; this effectively ignores the headers
519
- in the spec for a single request.
520
- :type _headers: dict, optional
521
- :param _host_index: set to override the host_index for a single
522
- request; this effectively ignores the host_index
523
- in the spec for a single request.
524
- :type _host_index: int, optional
525
- :return: Returns the result object.
526
- """ # noqa: E501
527
-
528
- _param = self._workflow_run_update_replay_serialize(
529
- tenant=tenant,
530
- replay_workflow_runs_request=replay_workflow_runs_request,
531
- _request_auth=_request_auth,
532
- _content_type=_content_type,
533
- _headers=_headers,
534
- _host_index=_host_index,
535
- )
536
-
537
- _response_types_map: Dict[str, Optional[str]] = {
538
- "200": "ReplayWorkflowRunsResponse",
539
- "400": "APIErrors",
540
- "403": "APIErrors",
541
- "429": "APIErrors",
542
- }
543
- response_data = await self.api_client.call_api(
544
- *_param, _request_timeout=_request_timeout
545
- )
546
- return response_data.response
547
-
548
- def _workflow_run_update_replay_serialize(
549
- self,
550
- tenant,
551
- replay_workflow_runs_request,
552
- _request_auth,
553
- _content_type,
554
- _headers,
555
- _host_index,
556
- ) -> RequestSerialized:
557
-
558
- _host = None
559
-
560
- _collection_formats: Dict[str, str] = {}
561
-
562
- _path_params: Dict[str, str] = {}
563
- _query_params: List[Tuple[str, str]] = []
564
- _header_params: Dict[str, Optional[str]] = _headers or {}
565
- _form_params: List[Tuple[str, str]] = []
566
- _files: Dict[str, Union[str, bytes]] = {}
567
- _body_params: Optional[bytes] = None
568
-
569
- # process the path parameters
570
- if tenant is not None:
571
- _path_params["tenant"] = tenant
572
- # process the query parameters
573
- # process the header parameters
574
- # process the form parameters
575
- # process the body parameter
576
- if replay_workflow_runs_request is not None:
577
- _body_params = replay_workflow_runs_request
578
-
579
- # set the HTTP header `Accept`
580
- _header_params["Accept"] = self.api_client.select_header_accept(
581
- ["application/json"]
582
- )
583
-
584
- # set the HTTP header `Content-Type`
585
- if _content_type:
586
- _header_params["Content-Type"] = _content_type
587
- else:
588
- _default_content_type = self.api_client.select_header_content_type(
589
- ["application/json"]
590
- )
591
- if _default_content_type is not None:
592
- _header_params["Content-Type"] = _default_content_type
593
-
594
- # authentication setting
595
- _auth_settings: List[str] = ["cookieAuth", "bearerAuth"]
596
-
597
- return self.api_client.param_serialize(
598
- method="POST",
599
- resource_path="/api/v1/tenants/{tenant}/workflow-runs/replay",
600
- path_params=_path_params,
601
- query_params=_query_params,
602
- header_params=_header_params,
603
- body=_body_params,
604
- post_params=_form_params,
605
- files=_files,
606
- auth_settings=_auth_settings,
607
- collection_formats=_collection_formats,
608
- _host=_host,
609
- _request_auth=_request_auth,
610
- )