windmill-api 1.554.1__py3-none-any.whl → 1.555.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 windmill-api might be problematic. Click here for more details.

Files changed (53) hide show
  1. windmill_api/api/app/get_public_secret_of_latest_version_of_app.py +101 -0
  2. windmill_api/api/flow_conversation/__init__.py +0 -0
  3. windmill_api/api/flow_conversation/delete_flow_conversation.py +101 -0
  4. windmill_api/api/flow_conversation/list_conversation_messages.py +206 -0
  5. windmill_api/api/flow_conversation/list_flow_conversations.py +207 -0
  6. windmill_api/api/job/run_and_stream_flow_by_path.py +171 -0
  7. windmill_api/api/job/run_and_stream_flow_by_path_get.py +169 -0
  8. windmill_api/api/job/run_and_stream_script_by_hash.py +189 -0
  9. windmill_api/api/job/run_and_stream_script_by_hash_get.py +187 -0
  10. windmill_api/api/job/run_and_stream_script_by_path.py +189 -0
  11. windmill_api/api/job/run_and_stream_script_by_path_get.py +187 -0
  12. windmill_api/api/job/run_flow_by_path.py +9 -0
  13. windmill_api/api/job/run_wait_result_flow_by_path.py +9 -0
  14. windmill_api/models/completed_job_raw_flow.py +8 -0
  15. windmill_api/models/delete_completed_job_response_200_raw_flow.py +8 -0
  16. windmill_api/models/extended_jobs_jobs_item_type_0_raw_flow.py +8 -0
  17. windmill_api/models/extended_jobs_jobs_item_type_1_raw_flow.py +8 -0
  18. windmill_api/models/flow_conversation.py +107 -0
  19. windmill_api/models/flow_conversation_message.py +101 -0
  20. windmill_api/models/flow_conversation_message_message_type.py +10 -0
  21. windmill_api/models/flow_preview_value.py +8 -0
  22. windmill_api/models/get_completed_job_response_200_raw_flow.py +8 -0
  23. windmill_api/models/get_flow_by_path_response_200_value.py +8 -0
  24. windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value.py +8 -0
  25. windmill_api/models/get_flow_version_response_200_value.py +8 -0
  26. windmill_api/models/get_hub_flow_by_id_response_200_flow_value.py +8 -0
  27. windmill_api/models/get_job_response_200_type_0_raw_flow.py +8 -0
  28. windmill_api/models/get_job_response_200_type_1_raw_flow.py +8 -0
  29. windmill_api/models/get_suspended_job_flow_response_200_job_type_0_raw_flow.py +8 -0
  30. windmill_api/models/get_suspended_job_flow_response_200_job_type_1_raw_flow.py +8 -0
  31. windmill_api/models/list_completed_jobs_response_200_item_raw_flow.py +8 -0
  32. windmill_api/models/list_conversation_messages_response_200_item.py +103 -0
  33. windmill_api/models/list_conversation_messages_response_200_item_message_type.py +10 -0
  34. windmill_api/models/list_extended_jobs_response_200_jobs_item_type_0_raw_flow.py +8 -0
  35. windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1_raw_flow.py +8 -0
  36. windmill_api/models/list_flow_conversations_response_200_item.py +107 -0
  37. windmill_api/models/list_jobs_response_200_item_type_0_raw_flow.py +8 -0
  38. windmill_api/models/list_jobs_response_200_item_type_1_raw_flow.py +8 -0
  39. windmill_api/models/list_queue_response_200_item_raw_flow.py +8 -0
  40. windmill_api/models/list_user_workspaces_response_200_workspaces_item.py +7 -0
  41. windmill_api/models/open_flow_value.py +8 -0
  42. windmill_api/models/open_flow_w_path_value.py +8 -0
  43. windmill_api/models/queued_job_raw_flow.py +8 -0
  44. windmill_api/models/run_and_stream_flow_by_path_json_body.py +44 -0
  45. windmill_api/models/run_and_stream_script_by_hash_json_body.py +44 -0
  46. windmill_api/models/run_and_stream_script_by_path_json_body.py +44 -0
  47. windmill_api/models/run_flow_preview_and_wait_result_json_body_value.py +8 -0
  48. windmill_api/models/run_flow_preview_json_body_value.py +8 -0
  49. windmill_api/models/user_workspace_list_workspaces_item.py +7 -0
  50. {windmill_api-1.554.1.dist-info → windmill_api-1.555.0.dist-info}/METADATA +1 -1
  51. {windmill_api-1.554.1.dist-info → windmill_api-1.555.0.dist-info}/RECORD +53 -33
  52. {windmill_api-1.554.1.dist-info → windmill_api-1.555.0.dist-info}/LICENSE +0 -0
  53. {windmill_api-1.554.1.dist-info → windmill_api-1.555.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,171 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Dict, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.run_and_stream_flow_by_path_json_body import RunAndStreamFlowByPathJsonBody
9
+ from ...types import UNSET, Response, Unset
10
+
11
+
12
+ def _get_kwargs(
13
+ workspace: str,
14
+ path: str,
15
+ *,
16
+ json_body: RunAndStreamFlowByPathJsonBody,
17
+ include_header: Union[Unset, None, str] = UNSET,
18
+ queue_limit: Union[Unset, None, str] = UNSET,
19
+ job_id: Union[Unset, None, str] = UNSET,
20
+ skip_preprocessor: Union[Unset, None, bool] = UNSET,
21
+ memory_id: Union[Unset, None, str] = UNSET,
22
+ poll_delay_ms: Union[Unset, None, int] = UNSET,
23
+ ) -> Dict[str, Any]:
24
+ pass
25
+
26
+ params: Dict[str, Any] = {}
27
+ params["include_header"] = include_header
28
+
29
+ params["queue_limit"] = queue_limit
30
+
31
+ params["job_id"] = job_id
32
+
33
+ params["skip_preprocessor"] = skip_preprocessor
34
+
35
+ params["memory_id"] = memory_id
36
+
37
+ params["poll_delay_ms"] = poll_delay_ms
38
+
39
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
40
+
41
+ json_json_body = json_body.to_dict()
42
+
43
+ return {
44
+ "method": "post",
45
+ "url": "/w/{workspace}/jobs/run_and_stream/f/{path}".format(
46
+ workspace=workspace,
47
+ path=path,
48
+ ),
49
+ "json": json_json_body,
50
+ "params": params,
51
+ }
52
+
53
+
54
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
55
+ if client.raise_on_unexpected_status:
56
+ raise errors.UnexpectedStatus(response.status_code, response.content)
57
+ else:
58
+ return None
59
+
60
+
61
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
62
+ return Response(
63
+ status_code=HTTPStatus(response.status_code),
64
+ content=response.content,
65
+ headers=response.headers,
66
+ parsed=_parse_response(client=client, response=response),
67
+ )
68
+
69
+
70
+ def sync_detailed(
71
+ workspace: str,
72
+ path: str,
73
+ *,
74
+ client: Union[AuthenticatedClient, Client],
75
+ json_body: RunAndStreamFlowByPathJsonBody,
76
+ include_header: Union[Unset, None, str] = UNSET,
77
+ queue_limit: Union[Unset, None, str] = UNSET,
78
+ job_id: Union[Unset, None, str] = UNSET,
79
+ skip_preprocessor: Union[Unset, None, bool] = UNSET,
80
+ memory_id: Union[Unset, None, str] = UNSET,
81
+ poll_delay_ms: Union[Unset, None, int] = UNSET,
82
+ ) -> Response[Any]:
83
+ """run flow by path and stream updates via SSE
84
+
85
+ Args:
86
+ workspace (str):
87
+ path (str):
88
+ include_header (Union[Unset, None, str]):
89
+ queue_limit (Union[Unset, None, str]):
90
+ job_id (Union[Unset, None, str]):
91
+ skip_preprocessor (Union[Unset, None, bool]):
92
+ memory_id (Union[Unset, None, str]):
93
+ poll_delay_ms (Union[Unset, None, int]):
94
+ json_body (RunAndStreamFlowByPathJsonBody): The arguments to pass to the script or flow
95
+
96
+ Raises:
97
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
98
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
99
+
100
+ Returns:
101
+ Response[Any]
102
+ """
103
+
104
+ kwargs = _get_kwargs(
105
+ workspace=workspace,
106
+ path=path,
107
+ json_body=json_body,
108
+ include_header=include_header,
109
+ queue_limit=queue_limit,
110
+ job_id=job_id,
111
+ skip_preprocessor=skip_preprocessor,
112
+ memory_id=memory_id,
113
+ poll_delay_ms=poll_delay_ms,
114
+ )
115
+
116
+ response = client.get_httpx_client().request(
117
+ **kwargs,
118
+ )
119
+
120
+ return _build_response(client=client, response=response)
121
+
122
+
123
+ async def asyncio_detailed(
124
+ workspace: str,
125
+ path: str,
126
+ *,
127
+ client: Union[AuthenticatedClient, Client],
128
+ json_body: RunAndStreamFlowByPathJsonBody,
129
+ include_header: Union[Unset, None, str] = UNSET,
130
+ queue_limit: Union[Unset, None, str] = UNSET,
131
+ job_id: Union[Unset, None, str] = UNSET,
132
+ skip_preprocessor: Union[Unset, None, bool] = UNSET,
133
+ memory_id: Union[Unset, None, str] = UNSET,
134
+ poll_delay_ms: Union[Unset, None, int] = UNSET,
135
+ ) -> Response[Any]:
136
+ """run flow by path and stream updates via SSE
137
+
138
+ Args:
139
+ workspace (str):
140
+ path (str):
141
+ include_header (Union[Unset, None, str]):
142
+ queue_limit (Union[Unset, None, str]):
143
+ job_id (Union[Unset, None, str]):
144
+ skip_preprocessor (Union[Unset, None, bool]):
145
+ memory_id (Union[Unset, None, str]):
146
+ poll_delay_ms (Union[Unset, None, int]):
147
+ json_body (RunAndStreamFlowByPathJsonBody): The arguments to pass to the script or flow
148
+
149
+ Raises:
150
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
151
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
152
+
153
+ Returns:
154
+ Response[Any]
155
+ """
156
+
157
+ kwargs = _get_kwargs(
158
+ workspace=workspace,
159
+ path=path,
160
+ json_body=json_body,
161
+ include_header=include_header,
162
+ queue_limit=queue_limit,
163
+ job_id=job_id,
164
+ skip_preprocessor=skip_preprocessor,
165
+ memory_id=memory_id,
166
+ poll_delay_ms=poll_delay_ms,
167
+ )
168
+
169
+ response = await client.get_async_httpx_client().request(**kwargs)
170
+
171
+ return _build_response(client=client, response=response)
@@ -0,0 +1,169 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Dict, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...types import UNSET, Response, Unset
9
+
10
+
11
+ def _get_kwargs(
12
+ workspace: str,
13
+ path: str,
14
+ *,
15
+ include_header: Union[Unset, None, str] = UNSET,
16
+ queue_limit: Union[Unset, None, str] = UNSET,
17
+ payload: Union[Unset, None, str] = UNSET,
18
+ job_id: Union[Unset, None, str] = UNSET,
19
+ skip_preprocessor: Union[Unset, None, bool] = UNSET,
20
+ memory_id: Union[Unset, None, str] = UNSET,
21
+ poll_delay_ms: Union[Unset, None, int] = UNSET,
22
+ ) -> Dict[str, Any]:
23
+ pass
24
+
25
+ params: Dict[str, Any] = {}
26
+ params["include_header"] = include_header
27
+
28
+ params["queue_limit"] = queue_limit
29
+
30
+ params["payload"] = payload
31
+
32
+ params["job_id"] = job_id
33
+
34
+ params["skip_preprocessor"] = skip_preprocessor
35
+
36
+ params["memory_id"] = memory_id
37
+
38
+ params["poll_delay_ms"] = poll_delay_ms
39
+
40
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
41
+
42
+ return {
43
+ "method": "get",
44
+ "url": "/w/{workspace}/jobs/run_and_stream/f/{path}".format(
45
+ workspace=workspace,
46
+ path=path,
47
+ ),
48
+ "params": params,
49
+ }
50
+
51
+
52
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
53
+ if client.raise_on_unexpected_status:
54
+ raise errors.UnexpectedStatus(response.status_code, response.content)
55
+ else:
56
+ return None
57
+
58
+
59
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
60
+ return Response(
61
+ status_code=HTTPStatus(response.status_code),
62
+ content=response.content,
63
+ headers=response.headers,
64
+ parsed=_parse_response(client=client, response=response),
65
+ )
66
+
67
+
68
+ def sync_detailed(
69
+ workspace: str,
70
+ path: str,
71
+ *,
72
+ client: Union[AuthenticatedClient, Client],
73
+ include_header: Union[Unset, None, str] = UNSET,
74
+ queue_limit: Union[Unset, None, str] = UNSET,
75
+ payload: Union[Unset, None, str] = UNSET,
76
+ job_id: Union[Unset, None, str] = UNSET,
77
+ skip_preprocessor: Union[Unset, None, bool] = UNSET,
78
+ memory_id: Union[Unset, None, str] = UNSET,
79
+ poll_delay_ms: Union[Unset, None, int] = UNSET,
80
+ ) -> Response[Any]:
81
+ """run flow by path with GET and stream updates via SSE
82
+
83
+ Args:
84
+ workspace (str):
85
+ path (str):
86
+ include_header (Union[Unset, None, str]):
87
+ queue_limit (Union[Unset, None, str]):
88
+ payload (Union[Unset, None, str]):
89
+ job_id (Union[Unset, None, str]):
90
+ skip_preprocessor (Union[Unset, None, bool]):
91
+ memory_id (Union[Unset, None, str]):
92
+ poll_delay_ms (Union[Unset, None, int]):
93
+
94
+ Raises:
95
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
96
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
97
+
98
+ Returns:
99
+ Response[Any]
100
+ """
101
+
102
+ kwargs = _get_kwargs(
103
+ workspace=workspace,
104
+ path=path,
105
+ include_header=include_header,
106
+ queue_limit=queue_limit,
107
+ payload=payload,
108
+ job_id=job_id,
109
+ skip_preprocessor=skip_preprocessor,
110
+ memory_id=memory_id,
111
+ poll_delay_ms=poll_delay_ms,
112
+ )
113
+
114
+ response = client.get_httpx_client().request(
115
+ **kwargs,
116
+ )
117
+
118
+ return _build_response(client=client, response=response)
119
+
120
+
121
+ async def asyncio_detailed(
122
+ workspace: str,
123
+ path: str,
124
+ *,
125
+ client: Union[AuthenticatedClient, Client],
126
+ include_header: Union[Unset, None, str] = UNSET,
127
+ queue_limit: Union[Unset, None, str] = UNSET,
128
+ payload: Union[Unset, None, str] = UNSET,
129
+ job_id: Union[Unset, None, str] = UNSET,
130
+ skip_preprocessor: Union[Unset, None, bool] = UNSET,
131
+ memory_id: Union[Unset, None, str] = UNSET,
132
+ poll_delay_ms: Union[Unset, None, int] = UNSET,
133
+ ) -> Response[Any]:
134
+ """run flow by path with GET and stream updates via SSE
135
+
136
+ Args:
137
+ workspace (str):
138
+ path (str):
139
+ include_header (Union[Unset, None, str]):
140
+ queue_limit (Union[Unset, None, str]):
141
+ payload (Union[Unset, None, str]):
142
+ job_id (Union[Unset, None, str]):
143
+ skip_preprocessor (Union[Unset, None, bool]):
144
+ memory_id (Union[Unset, None, str]):
145
+ poll_delay_ms (Union[Unset, None, int]):
146
+
147
+ Raises:
148
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
149
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
150
+
151
+ Returns:
152
+ Response[Any]
153
+ """
154
+
155
+ kwargs = _get_kwargs(
156
+ workspace=workspace,
157
+ path=path,
158
+ include_header=include_header,
159
+ queue_limit=queue_limit,
160
+ payload=payload,
161
+ job_id=job_id,
162
+ skip_preprocessor=skip_preprocessor,
163
+ memory_id=memory_id,
164
+ poll_delay_ms=poll_delay_ms,
165
+ )
166
+
167
+ response = await client.get_async_httpx_client().request(**kwargs)
168
+
169
+ return _build_response(client=client, response=response)
@@ -0,0 +1,189 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Dict, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.run_and_stream_script_by_hash_json_body import RunAndStreamScriptByHashJsonBody
9
+ from ...types import UNSET, Response, Unset
10
+
11
+
12
+ def _get_kwargs(
13
+ workspace: str,
14
+ hash_: str,
15
+ *,
16
+ json_body: RunAndStreamScriptByHashJsonBody,
17
+ parent_job: Union[Unset, None, str] = UNSET,
18
+ tag: Union[Unset, None, str] = UNSET,
19
+ cache_ttl: Union[Unset, None, str] = UNSET,
20
+ job_id: Union[Unset, None, str] = UNSET,
21
+ include_header: Union[Unset, None, str] = UNSET,
22
+ queue_limit: Union[Unset, None, str] = UNSET,
23
+ skip_preprocessor: Union[Unset, None, bool] = UNSET,
24
+ poll_delay_ms: Union[Unset, None, int] = UNSET,
25
+ ) -> Dict[str, Any]:
26
+ pass
27
+
28
+ params: Dict[str, Any] = {}
29
+ params["parent_job"] = parent_job
30
+
31
+ params["tag"] = tag
32
+
33
+ params["cache_ttl"] = cache_ttl
34
+
35
+ params["job_id"] = job_id
36
+
37
+ params["include_header"] = include_header
38
+
39
+ params["queue_limit"] = queue_limit
40
+
41
+ params["skip_preprocessor"] = skip_preprocessor
42
+
43
+ params["poll_delay_ms"] = poll_delay_ms
44
+
45
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
46
+
47
+ json_json_body = json_body.to_dict()
48
+
49
+ return {
50
+ "method": "post",
51
+ "url": "/w/{workspace}/jobs/run_and_stream/h/{hash}".format(
52
+ workspace=workspace,
53
+ hash=hash_,
54
+ ),
55
+ "json": json_json_body,
56
+ "params": params,
57
+ }
58
+
59
+
60
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
61
+ if client.raise_on_unexpected_status:
62
+ raise errors.UnexpectedStatus(response.status_code, response.content)
63
+ else:
64
+ return None
65
+
66
+
67
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
68
+ return Response(
69
+ status_code=HTTPStatus(response.status_code),
70
+ content=response.content,
71
+ headers=response.headers,
72
+ parsed=_parse_response(client=client, response=response),
73
+ )
74
+
75
+
76
+ def sync_detailed(
77
+ workspace: str,
78
+ hash_: str,
79
+ *,
80
+ client: Union[AuthenticatedClient, Client],
81
+ json_body: RunAndStreamScriptByHashJsonBody,
82
+ parent_job: Union[Unset, None, str] = UNSET,
83
+ tag: Union[Unset, None, str] = UNSET,
84
+ cache_ttl: Union[Unset, None, str] = UNSET,
85
+ job_id: Union[Unset, None, str] = UNSET,
86
+ include_header: Union[Unset, None, str] = UNSET,
87
+ queue_limit: Union[Unset, None, str] = UNSET,
88
+ skip_preprocessor: Union[Unset, None, bool] = UNSET,
89
+ poll_delay_ms: Union[Unset, None, int] = UNSET,
90
+ ) -> Response[Any]:
91
+ """run script by hash and stream updates via SSE
92
+
93
+ Args:
94
+ workspace (str):
95
+ hash_ (str):
96
+ parent_job (Union[Unset, None, str]):
97
+ tag (Union[Unset, None, str]):
98
+ cache_ttl (Union[Unset, None, str]):
99
+ job_id (Union[Unset, None, str]):
100
+ include_header (Union[Unset, None, str]):
101
+ queue_limit (Union[Unset, None, str]):
102
+ skip_preprocessor (Union[Unset, None, bool]):
103
+ poll_delay_ms (Union[Unset, None, int]):
104
+ json_body (RunAndStreamScriptByHashJsonBody): The arguments to pass to the script or flow
105
+
106
+ Raises:
107
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
108
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
109
+
110
+ Returns:
111
+ Response[Any]
112
+ """
113
+
114
+ kwargs = _get_kwargs(
115
+ workspace=workspace,
116
+ hash_=hash_,
117
+ json_body=json_body,
118
+ parent_job=parent_job,
119
+ tag=tag,
120
+ cache_ttl=cache_ttl,
121
+ job_id=job_id,
122
+ include_header=include_header,
123
+ queue_limit=queue_limit,
124
+ skip_preprocessor=skip_preprocessor,
125
+ poll_delay_ms=poll_delay_ms,
126
+ )
127
+
128
+ response = client.get_httpx_client().request(
129
+ **kwargs,
130
+ )
131
+
132
+ return _build_response(client=client, response=response)
133
+
134
+
135
+ async def asyncio_detailed(
136
+ workspace: str,
137
+ hash_: str,
138
+ *,
139
+ client: Union[AuthenticatedClient, Client],
140
+ json_body: RunAndStreamScriptByHashJsonBody,
141
+ parent_job: Union[Unset, None, str] = UNSET,
142
+ tag: Union[Unset, None, str] = UNSET,
143
+ cache_ttl: Union[Unset, None, str] = UNSET,
144
+ job_id: Union[Unset, None, str] = UNSET,
145
+ include_header: Union[Unset, None, str] = UNSET,
146
+ queue_limit: Union[Unset, None, str] = UNSET,
147
+ skip_preprocessor: Union[Unset, None, bool] = UNSET,
148
+ poll_delay_ms: Union[Unset, None, int] = UNSET,
149
+ ) -> Response[Any]:
150
+ """run script by hash and stream updates via SSE
151
+
152
+ Args:
153
+ workspace (str):
154
+ hash_ (str):
155
+ parent_job (Union[Unset, None, str]):
156
+ tag (Union[Unset, None, str]):
157
+ cache_ttl (Union[Unset, None, str]):
158
+ job_id (Union[Unset, None, str]):
159
+ include_header (Union[Unset, None, str]):
160
+ queue_limit (Union[Unset, None, str]):
161
+ skip_preprocessor (Union[Unset, None, bool]):
162
+ poll_delay_ms (Union[Unset, None, int]):
163
+ json_body (RunAndStreamScriptByHashJsonBody): The arguments to pass to the script or flow
164
+
165
+ Raises:
166
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
167
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
168
+
169
+ Returns:
170
+ Response[Any]
171
+ """
172
+
173
+ kwargs = _get_kwargs(
174
+ workspace=workspace,
175
+ hash_=hash_,
176
+ json_body=json_body,
177
+ parent_job=parent_job,
178
+ tag=tag,
179
+ cache_ttl=cache_ttl,
180
+ job_id=job_id,
181
+ include_header=include_header,
182
+ queue_limit=queue_limit,
183
+ skip_preprocessor=skip_preprocessor,
184
+ poll_delay_ms=poll_delay_ms,
185
+ )
186
+
187
+ response = await client.get_async_httpx_client().request(**kwargs)
188
+
189
+ return _build_response(client=client, response=response)