windmill-api 1.553.0__py3-none-any.whl → 1.555.2__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.553.0.dist-info → windmill_api-1.555.2.dist-info}/METADATA +1 -1
  51. {windmill_api-1.553.0.dist-info → windmill_api-1.555.2.dist-info}/RECORD +53 -33
  52. {windmill_api-1.553.0.dist-info → windmill_api-1.555.2.dist-info}/LICENSE +0 -0
  53. {windmill_api-1.553.0.dist-info → windmill_api-1.555.2.dist-info}/WHEEL +0 -0
@@ -0,0 +1,187 @@
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
+ hash_: str,
14
+ *,
15
+ parent_job: Union[Unset, None, str] = UNSET,
16
+ tag: Union[Unset, None, str] = UNSET,
17
+ cache_ttl: Union[Unset, None, str] = UNSET,
18
+ job_id: Union[Unset, None, str] = UNSET,
19
+ include_header: Union[Unset, None, str] = UNSET,
20
+ queue_limit: Union[Unset, None, str] = UNSET,
21
+ payload: Union[Unset, None, str] = UNSET,
22
+ skip_preprocessor: Union[Unset, None, bool] = UNSET,
23
+ poll_delay_ms: Union[Unset, None, int] = UNSET,
24
+ ) -> Dict[str, Any]:
25
+ pass
26
+
27
+ params: Dict[str, Any] = {}
28
+ params["parent_job"] = parent_job
29
+
30
+ params["tag"] = tag
31
+
32
+ params["cache_ttl"] = cache_ttl
33
+
34
+ params["job_id"] = job_id
35
+
36
+ params["include_header"] = include_header
37
+
38
+ params["queue_limit"] = queue_limit
39
+
40
+ params["payload"] = payload
41
+
42
+ params["skip_preprocessor"] = skip_preprocessor
43
+
44
+ params["poll_delay_ms"] = poll_delay_ms
45
+
46
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
47
+
48
+ return {
49
+ "method": "get",
50
+ "url": "/w/{workspace}/jobs/run_and_stream/h/{hash}".format(
51
+ workspace=workspace,
52
+ hash=hash_,
53
+ ),
54
+ "params": params,
55
+ }
56
+
57
+
58
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
59
+ if client.raise_on_unexpected_status:
60
+ raise errors.UnexpectedStatus(response.status_code, response.content)
61
+ else:
62
+ return None
63
+
64
+
65
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
66
+ return Response(
67
+ status_code=HTTPStatus(response.status_code),
68
+ content=response.content,
69
+ headers=response.headers,
70
+ parsed=_parse_response(client=client, response=response),
71
+ )
72
+
73
+
74
+ def sync_detailed(
75
+ workspace: str,
76
+ hash_: str,
77
+ *,
78
+ client: Union[AuthenticatedClient, Client],
79
+ parent_job: Union[Unset, None, str] = UNSET,
80
+ tag: Union[Unset, None, str] = UNSET,
81
+ cache_ttl: Union[Unset, None, str] = UNSET,
82
+ job_id: Union[Unset, None, str] = UNSET,
83
+ include_header: Union[Unset, None, str] = UNSET,
84
+ queue_limit: Union[Unset, None, str] = UNSET,
85
+ payload: Union[Unset, None, str] = UNSET,
86
+ skip_preprocessor: Union[Unset, None, bool] = UNSET,
87
+ poll_delay_ms: Union[Unset, None, int] = UNSET,
88
+ ) -> Response[Any]:
89
+ """run script by hash with GET and stream updates via SSE
90
+
91
+ Args:
92
+ workspace (str):
93
+ hash_ (str):
94
+ parent_job (Union[Unset, None, str]):
95
+ tag (Union[Unset, None, str]):
96
+ cache_ttl (Union[Unset, None, str]):
97
+ job_id (Union[Unset, None, str]):
98
+ include_header (Union[Unset, None, str]):
99
+ queue_limit (Union[Unset, None, str]):
100
+ payload (Union[Unset, None, str]):
101
+ skip_preprocessor (Union[Unset, None, bool]):
102
+ poll_delay_ms (Union[Unset, None, int]):
103
+
104
+ Raises:
105
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
106
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
107
+
108
+ Returns:
109
+ Response[Any]
110
+ """
111
+
112
+ kwargs = _get_kwargs(
113
+ workspace=workspace,
114
+ hash_=hash_,
115
+ parent_job=parent_job,
116
+ tag=tag,
117
+ cache_ttl=cache_ttl,
118
+ job_id=job_id,
119
+ include_header=include_header,
120
+ queue_limit=queue_limit,
121
+ payload=payload,
122
+ skip_preprocessor=skip_preprocessor,
123
+ poll_delay_ms=poll_delay_ms,
124
+ )
125
+
126
+ response = client.get_httpx_client().request(
127
+ **kwargs,
128
+ )
129
+
130
+ return _build_response(client=client, response=response)
131
+
132
+
133
+ async def asyncio_detailed(
134
+ workspace: str,
135
+ hash_: str,
136
+ *,
137
+ client: Union[AuthenticatedClient, Client],
138
+ parent_job: Union[Unset, None, str] = UNSET,
139
+ tag: Union[Unset, None, str] = UNSET,
140
+ cache_ttl: Union[Unset, None, str] = UNSET,
141
+ job_id: Union[Unset, None, str] = UNSET,
142
+ include_header: Union[Unset, None, str] = UNSET,
143
+ queue_limit: Union[Unset, None, str] = UNSET,
144
+ payload: Union[Unset, None, str] = UNSET,
145
+ skip_preprocessor: Union[Unset, None, bool] = UNSET,
146
+ poll_delay_ms: Union[Unset, None, int] = UNSET,
147
+ ) -> Response[Any]:
148
+ """run script by hash with GET and stream updates via SSE
149
+
150
+ Args:
151
+ workspace (str):
152
+ hash_ (str):
153
+ parent_job (Union[Unset, None, str]):
154
+ tag (Union[Unset, None, str]):
155
+ cache_ttl (Union[Unset, None, str]):
156
+ job_id (Union[Unset, None, str]):
157
+ include_header (Union[Unset, None, str]):
158
+ queue_limit (Union[Unset, None, str]):
159
+ payload (Union[Unset, None, str]):
160
+ skip_preprocessor (Union[Unset, None, bool]):
161
+ poll_delay_ms (Union[Unset, None, int]):
162
+
163
+ Raises:
164
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
165
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
166
+
167
+ Returns:
168
+ Response[Any]
169
+ """
170
+
171
+ kwargs = _get_kwargs(
172
+ workspace=workspace,
173
+ hash_=hash_,
174
+ parent_job=parent_job,
175
+ tag=tag,
176
+ cache_ttl=cache_ttl,
177
+ job_id=job_id,
178
+ include_header=include_header,
179
+ queue_limit=queue_limit,
180
+ payload=payload,
181
+ skip_preprocessor=skip_preprocessor,
182
+ poll_delay_ms=poll_delay_ms,
183
+ )
184
+
185
+ response = await client.get_async_httpx_client().request(**kwargs)
186
+
187
+ 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_path_json_body import RunAndStreamScriptByPathJsonBody
9
+ from ...types import UNSET, Response, Unset
10
+
11
+
12
+ def _get_kwargs(
13
+ workspace: str,
14
+ path: str,
15
+ *,
16
+ json_body: RunAndStreamScriptByPathJsonBody,
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/p/{path}".format(
52
+ workspace=workspace,
53
+ path=path,
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
+ path: str,
79
+ *,
80
+ client: Union[AuthenticatedClient, Client],
81
+ json_body: RunAndStreamScriptByPathJsonBody,
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 path and stream updates via SSE
92
+
93
+ Args:
94
+ workspace (str):
95
+ path (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 (RunAndStreamScriptByPathJsonBody): 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
+ path=path,
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
+ path: str,
138
+ *,
139
+ client: Union[AuthenticatedClient, Client],
140
+ json_body: RunAndStreamScriptByPathJsonBody,
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 path and stream updates via SSE
151
+
152
+ Args:
153
+ workspace (str):
154
+ path (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 (RunAndStreamScriptByPathJsonBody): 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
+ path=path,
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)
@@ -0,0 +1,187 @@
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
+ parent_job: Union[Unset, None, str] = UNSET,
16
+ tag: Union[Unset, None, str] = UNSET,
17
+ cache_ttl: Union[Unset, None, str] = UNSET,
18
+ job_id: Union[Unset, None, str] = UNSET,
19
+ include_header: Union[Unset, None, str] = UNSET,
20
+ queue_limit: Union[Unset, None, str] = UNSET,
21
+ payload: Union[Unset, None, str] = UNSET,
22
+ skip_preprocessor: Union[Unset, None, bool] = UNSET,
23
+ poll_delay_ms: Union[Unset, None, int] = UNSET,
24
+ ) -> Dict[str, Any]:
25
+ pass
26
+
27
+ params: Dict[str, Any] = {}
28
+ params["parent_job"] = parent_job
29
+
30
+ params["tag"] = tag
31
+
32
+ params["cache_ttl"] = cache_ttl
33
+
34
+ params["job_id"] = job_id
35
+
36
+ params["include_header"] = include_header
37
+
38
+ params["queue_limit"] = queue_limit
39
+
40
+ params["payload"] = payload
41
+
42
+ params["skip_preprocessor"] = skip_preprocessor
43
+
44
+ params["poll_delay_ms"] = poll_delay_ms
45
+
46
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
47
+
48
+ return {
49
+ "method": "get",
50
+ "url": "/w/{workspace}/jobs/run_and_stream/p/{path}".format(
51
+ workspace=workspace,
52
+ path=path,
53
+ ),
54
+ "params": params,
55
+ }
56
+
57
+
58
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
59
+ if client.raise_on_unexpected_status:
60
+ raise errors.UnexpectedStatus(response.status_code, response.content)
61
+ else:
62
+ return None
63
+
64
+
65
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
66
+ return Response(
67
+ status_code=HTTPStatus(response.status_code),
68
+ content=response.content,
69
+ headers=response.headers,
70
+ parsed=_parse_response(client=client, response=response),
71
+ )
72
+
73
+
74
+ def sync_detailed(
75
+ workspace: str,
76
+ path: str,
77
+ *,
78
+ client: Union[AuthenticatedClient, Client],
79
+ parent_job: Union[Unset, None, str] = UNSET,
80
+ tag: Union[Unset, None, str] = UNSET,
81
+ cache_ttl: Union[Unset, None, str] = UNSET,
82
+ job_id: Union[Unset, None, str] = UNSET,
83
+ include_header: Union[Unset, None, str] = UNSET,
84
+ queue_limit: Union[Unset, None, str] = UNSET,
85
+ payload: Union[Unset, None, str] = UNSET,
86
+ skip_preprocessor: Union[Unset, None, bool] = UNSET,
87
+ poll_delay_ms: Union[Unset, None, int] = UNSET,
88
+ ) -> Response[Any]:
89
+ """run script by path with GET and stream updates via SSE
90
+
91
+ Args:
92
+ workspace (str):
93
+ path (str):
94
+ parent_job (Union[Unset, None, str]):
95
+ tag (Union[Unset, None, str]):
96
+ cache_ttl (Union[Unset, None, str]):
97
+ job_id (Union[Unset, None, str]):
98
+ include_header (Union[Unset, None, str]):
99
+ queue_limit (Union[Unset, None, str]):
100
+ payload (Union[Unset, None, str]):
101
+ skip_preprocessor (Union[Unset, None, bool]):
102
+ poll_delay_ms (Union[Unset, None, int]):
103
+
104
+ Raises:
105
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
106
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
107
+
108
+ Returns:
109
+ Response[Any]
110
+ """
111
+
112
+ kwargs = _get_kwargs(
113
+ workspace=workspace,
114
+ path=path,
115
+ parent_job=parent_job,
116
+ tag=tag,
117
+ cache_ttl=cache_ttl,
118
+ job_id=job_id,
119
+ include_header=include_header,
120
+ queue_limit=queue_limit,
121
+ payload=payload,
122
+ skip_preprocessor=skip_preprocessor,
123
+ poll_delay_ms=poll_delay_ms,
124
+ )
125
+
126
+ response = client.get_httpx_client().request(
127
+ **kwargs,
128
+ )
129
+
130
+ return _build_response(client=client, response=response)
131
+
132
+
133
+ async def asyncio_detailed(
134
+ workspace: str,
135
+ path: str,
136
+ *,
137
+ client: Union[AuthenticatedClient, Client],
138
+ parent_job: Union[Unset, None, str] = UNSET,
139
+ tag: Union[Unset, None, str] = UNSET,
140
+ cache_ttl: Union[Unset, None, str] = UNSET,
141
+ job_id: Union[Unset, None, str] = UNSET,
142
+ include_header: Union[Unset, None, str] = UNSET,
143
+ queue_limit: Union[Unset, None, str] = UNSET,
144
+ payload: Union[Unset, None, str] = UNSET,
145
+ skip_preprocessor: Union[Unset, None, bool] = UNSET,
146
+ poll_delay_ms: Union[Unset, None, int] = UNSET,
147
+ ) -> Response[Any]:
148
+ """run script by path with GET and stream updates via SSE
149
+
150
+ Args:
151
+ workspace (str):
152
+ path (str):
153
+ parent_job (Union[Unset, None, str]):
154
+ tag (Union[Unset, None, str]):
155
+ cache_ttl (Union[Unset, None, str]):
156
+ job_id (Union[Unset, None, str]):
157
+ include_header (Union[Unset, None, str]):
158
+ queue_limit (Union[Unset, None, str]):
159
+ payload (Union[Unset, None, str]):
160
+ skip_preprocessor (Union[Unset, None, bool]):
161
+ poll_delay_ms (Union[Unset, None, int]):
162
+
163
+ Raises:
164
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
165
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
166
+
167
+ Returns:
168
+ Response[Any]
169
+ """
170
+
171
+ kwargs = _get_kwargs(
172
+ workspace=workspace,
173
+ path=path,
174
+ parent_job=parent_job,
175
+ tag=tag,
176
+ cache_ttl=cache_ttl,
177
+ job_id=job_id,
178
+ include_header=include_header,
179
+ queue_limit=queue_limit,
180
+ payload=payload,
181
+ skip_preprocessor=skip_preprocessor,
182
+ poll_delay_ms=poll_delay_ms,
183
+ )
184
+
185
+ response = await client.get_async_httpx_client().request(**kwargs)
186
+
187
+ return _build_response(client=client, response=response)
@@ -23,6 +23,7 @@ def _get_kwargs(
23
23
  job_id: Union[Unset, None, str] = UNSET,
24
24
  include_header: Union[Unset, None, str] = UNSET,
25
25
  invisible_to_owner: Union[Unset, None, bool] = UNSET,
26
+ memory_id: Union[Unset, None, str] = UNSET,
26
27
  ) -> Dict[str, Any]:
27
28
  pass
28
29
 
@@ -47,6 +48,8 @@ def _get_kwargs(
47
48
 
48
49
  params["invisible_to_owner"] = invisible_to_owner
49
50
 
51
+ params["memory_id"] = memory_id
52
+
50
53
  params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
51
54
 
52
55
  json_json_body = json_body.to_dict()
@@ -92,6 +95,7 @@ def sync_detailed(
92
95
  job_id: Union[Unset, None, str] = UNSET,
93
96
  include_header: Union[Unset, None, str] = UNSET,
94
97
  invisible_to_owner: Union[Unset, None, bool] = UNSET,
98
+ memory_id: Union[Unset, None, str] = UNSET,
95
99
  ) -> Response[Any]:
96
100
  """run flow by path
97
101
 
@@ -106,6 +110,7 @@ def sync_detailed(
106
110
  job_id (Union[Unset, None, str]):
107
111
  include_header (Union[Unset, None, str]):
108
112
  invisible_to_owner (Union[Unset, None, bool]):
113
+ memory_id (Union[Unset, None, str]):
109
114
  json_body (RunFlowByPathJsonBody): The arguments to pass to the script or flow
110
115
 
111
116
  Raises:
@@ -128,6 +133,7 @@ def sync_detailed(
128
133
  job_id=job_id,
129
134
  include_header=include_header,
130
135
  invisible_to_owner=invisible_to_owner,
136
+ memory_id=memory_id,
131
137
  )
132
138
 
133
139
  response = client.get_httpx_client().request(
@@ -151,6 +157,7 @@ async def asyncio_detailed(
151
157
  job_id: Union[Unset, None, str] = UNSET,
152
158
  include_header: Union[Unset, None, str] = UNSET,
153
159
  invisible_to_owner: Union[Unset, None, bool] = UNSET,
160
+ memory_id: Union[Unset, None, str] = UNSET,
154
161
  ) -> Response[Any]:
155
162
  """run flow by path
156
163
 
@@ -165,6 +172,7 @@ async def asyncio_detailed(
165
172
  job_id (Union[Unset, None, str]):
166
173
  include_header (Union[Unset, None, str]):
167
174
  invisible_to_owner (Union[Unset, None, bool]):
175
+ memory_id (Union[Unset, None, str]):
168
176
  json_body (RunFlowByPathJsonBody): The arguments to pass to the script or flow
169
177
 
170
178
  Raises:
@@ -187,6 +195,7 @@ async def asyncio_detailed(
187
195
  job_id=job_id,
188
196
  include_header=include_header,
189
197
  invisible_to_owner=invisible_to_owner,
198
+ memory_id=memory_id,
190
199
  )
191
200
 
192
201
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -18,6 +18,7 @@ def _get_kwargs(
18
18
  queue_limit: Union[Unset, None, str] = UNSET,
19
19
  job_id: Union[Unset, None, str] = UNSET,
20
20
  skip_preprocessor: Union[Unset, None, bool] = UNSET,
21
+ memory_id: Union[Unset, None, str] = UNSET,
21
22
  ) -> Dict[str, Any]:
22
23
  pass
23
24
 
@@ -30,6 +31,8 @@ def _get_kwargs(
30
31
 
31
32
  params["skip_preprocessor"] = skip_preprocessor
32
33
 
34
+ params["memory_id"] = memory_id
35
+
33
36
  params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
34
37
 
35
38
  json_json_body = json_body.to_dict()
@@ -73,6 +76,7 @@ def sync_detailed(
73
76
  queue_limit: Union[Unset, None, str] = UNSET,
74
77
  job_id: Union[Unset, None, str] = UNSET,
75
78
  skip_preprocessor: Union[Unset, None, bool] = UNSET,
79
+ memory_id: Union[Unset, None, str] = UNSET,
76
80
  ) -> Response[Any]:
77
81
  """run flow by path and wait until completion
78
82
 
@@ -83,6 +87,7 @@ def sync_detailed(
83
87
  queue_limit (Union[Unset, None, str]):
84
88
  job_id (Union[Unset, None, str]):
85
89
  skip_preprocessor (Union[Unset, None, bool]):
90
+ memory_id (Union[Unset, None, str]):
86
91
  json_body (RunWaitResultFlowByPathJsonBody): The arguments to pass to the script or flow
87
92
 
88
93
  Raises:
@@ -101,6 +106,7 @@ def sync_detailed(
101
106
  queue_limit=queue_limit,
102
107
  job_id=job_id,
103
108
  skip_preprocessor=skip_preprocessor,
109
+ memory_id=memory_id,
104
110
  )
105
111
 
106
112
  response = client.get_httpx_client().request(
@@ -120,6 +126,7 @@ async def asyncio_detailed(
120
126
  queue_limit: Union[Unset, None, str] = UNSET,
121
127
  job_id: Union[Unset, None, str] = UNSET,
122
128
  skip_preprocessor: Union[Unset, None, bool] = UNSET,
129
+ memory_id: Union[Unset, None, str] = UNSET,
123
130
  ) -> Response[Any]:
124
131
  """run flow by path and wait until completion
125
132
 
@@ -130,6 +137,7 @@ async def asyncio_detailed(
130
137
  queue_limit (Union[Unset, None, str]):
131
138
  job_id (Union[Unset, None, str]):
132
139
  skip_preprocessor (Union[Unset, None, bool]):
140
+ memory_id (Union[Unset, None, str]):
133
141
  json_body (RunWaitResultFlowByPathJsonBody): The arguments to pass to the script or flow
134
142
 
135
143
  Raises:
@@ -148,6 +156,7 @@ async def asyncio_detailed(
148
156
  queue_limit=queue_limit,
149
157
  job_id=job_id,
150
158
  skip_preprocessor=skip_preprocessor,
159
+ memory_id=memory_id,
151
160
  )
152
161
 
153
162
  response = await client.get_async_httpx_client().request(**kwargs)