asteroid-odyssey 1.3.13__py3-none-any.whl → 1.6.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.
Files changed (149) hide show
  1. asteroid_odyssey/__init__.py +254 -82
  2. asteroid_odyssey/api/__init__.py +8 -0
  3. asteroid_odyssey/{agents_v1_gen/api/agent_profile_api.py → api/agent_profiles_api.py} +414 -281
  4. asteroid_odyssey/{agents_v2_gen/api → api}/agents_api.py +30 -30
  5. asteroid_odyssey/{agents_v2_gen/api → api}/execution_api.py +32 -49
  6. asteroid_odyssey/{agents_v2_gen/api → api}/files_api.py +5 -5
  7. asteroid_odyssey/{agents_v2_gen/api_client.py → api_client.py} +10 -6
  8. asteroid_odyssey/{agents_v2_gen/configuration.py → configuration.py} +11 -4
  9. asteroid_odyssey/models/__init__.py +118 -0
  10. asteroid_odyssey/{agents_v2_gen/models → models}/agent_list200_response.py +1 -1
  11. asteroid_odyssey/models/agent_profile_clear_browser_cache200_response.py +87 -0
  12. asteroid_odyssey/models/agent_profiles_list200_response.py +101 -0
  13. asteroid_odyssey/{agents_v2_gen/models → models}/agents_agent_base.py +3 -3
  14. asteroid_odyssey/{agents_v2_gen/models → models}/agents_agent_execute_agent_request.py +7 -5
  15. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity.py +4 -4
  16. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_action_completed_info.py +65 -37
  17. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_action_completed_payload.py +8 -8
  18. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_action_failed_payload.py +9 -9
  19. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_action_started_info.py +50 -22
  20. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_action_started_payload.py +10 -10
  21. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_file_added_payload.py +6 -6
  22. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_payload_union.py +14 -14
  23. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_playwright_script_generated_payload.py +9 -9
  24. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_status_changed_payload.py +19 -19
  25. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_transitioned_node_payload.py +6 -6
  26. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_workflow_updated_payload.py +1 -1
  27. asteroid_odyssey/models/agents_execution_agent_query_context_completed_details.py +98 -0
  28. asteroid_odyssey/models/agents_execution_agent_query_context_started_details.py +96 -0
  29. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_cancelled_payload.py +1 -1
  30. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_comment.py +10 -10
  31. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_completed_payload.py +4 -4
  32. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_execution_result.py +6 -6
  33. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_ext_api_call_completed_details.py +6 -6
  34. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_failed_payload.py +5 -5
  35. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_file_read_completed_details.py +3 -3
  36. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_human_label.py +7 -7
  37. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_list_item.py +33 -37
  38. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_llm_call_started_details.py +1 -1
  39. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_obs_snapshot_with_selectors_completed_details.py +4 -4
  40. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scratchpad_write_completed_details.py +7 -7
  41. asteroid_odyssey/models/agents_execution_script_eval_completed_details.py +101 -0
  42. asteroid_odyssey/models/agents_execution_script_eval_started_details.py +100 -0
  43. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_script_hybrid_playwright_completed_details.py +6 -6
  44. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_script_pad_run_function_completed_details.py +6 -6
  45. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_script_playwright_completed_details.py +6 -6
  46. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scriptpad_read_started_details.py +4 -4
  47. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scriptpad_run_function_started_details.py +4 -4
  48. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scriptpad_search_replace_completed_details.py +5 -5
  49. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scriptpad_search_replace_started_details.py +4 -4
  50. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scriptpad_write_completed_details.py +4 -4
  51. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_terminal_payload.py +4 -4
  52. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_util_get_datetime_completed_details.py +4 -4
  53. asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_workflow_update.py +13 -13
  54. asteroid_odyssey/{agents_v2_gen/models → models}/agents_files_file.py +11 -11
  55. asteroid_odyssey/{agents_v2_gen/models → models}/agents_files_temp_files_response.py +1 -1
  56. asteroid_odyssey/{agents_v2_gen/models → models}/agents_graph_models_nodes_properties_playwright_script_llm_var.py +5 -5
  57. asteroid_odyssey/{agents_v1_gen/models/agent_profile.py → models/agents_profile_agent_profile.py} +37 -32
  58. asteroid_odyssey/{agents_v1_gen/models/cookie.py → models/agents_profile_cookie.py} +21 -26
  59. asteroid_odyssey/{agents_v1_gen/models/country_code.py → models/agents_profile_country_code.py} +5 -5
  60. asteroid_odyssey/{agents_v1_gen/models/create_agent_profile_request.py → models/agents_profile_create_agent_profile_request.py} +33 -28
  61. asteroid_odyssey/{agents_v1_gen/models/credential.py → models/agents_profile_credential.py} +13 -13
  62. asteroid_odyssey/models/agents_profile_operating_system.py +37 -0
  63. asteroid_odyssey/models/agents_profile_proxy_type.py +38 -0
  64. asteroid_odyssey/models/agents_profile_same_site.py +38 -0
  65. asteroid_odyssey/models/agents_profile_sort_field.py +38 -0
  66. asteroid_odyssey/models/agents_profile_update_agent_profile_request.py +129 -0
  67. asteroid_odyssey/{agents_v2_gen/models → models}/executions_list200_response.py +1 -1
  68. asteroid_odyssey/{agents_v2_gen/rest.py → rest.py} +2 -1
  69. asteroid_odyssey-1.6.0.dist-info/METADATA +65 -0
  70. asteroid_odyssey-1.6.0.dist-info/RECORD +119 -0
  71. asteroid_odyssey/agents_v1_gen/__init__.py +0 -53
  72. asteroid_odyssey/agents_v1_gen/api/__init__.py +0 -7
  73. asteroid_odyssey/agents_v1_gen/api/api_api.py +0 -516
  74. asteroid_odyssey/agents_v1_gen/api/execution_api.py +0 -1449
  75. asteroid_odyssey/agents_v1_gen/api_client.py +0 -797
  76. asteroid_odyssey/agents_v1_gen/configuration.py +0 -599
  77. asteroid_odyssey/agents_v1_gen/exceptions.py +0 -216
  78. asteroid_odyssey/agents_v1_gen/models/__init__.py +0 -34
  79. asteroid_odyssey/agents_v1_gen/models/browser_session_recording_response.py +0 -87
  80. asteroid_odyssey/agents_v1_gen/models/delete_agent_profile200_response.py +0 -87
  81. asteroid_odyssey/agents_v1_gen/models/error_response.py +0 -87
  82. asteroid_odyssey/agents_v1_gen/models/execution_response.py +0 -87
  83. asteroid_odyssey/agents_v1_gen/models/execution_result.py +0 -101
  84. asteroid_odyssey/agents_v1_gen/models/execution_result_response.py +0 -100
  85. asteroid_odyssey/agents_v1_gen/models/execution_status_response.py +0 -95
  86. asteroid_odyssey/agents_v1_gen/models/health_check200_response.py +0 -87
  87. asteroid_odyssey/agents_v1_gen/models/health_check500_response.py +0 -87
  88. asteroid_odyssey/agents_v1_gen/models/proxy_type.py +0 -38
  89. asteroid_odyssey/agents_v1_gen/models/status.py +0 -43
  90. asteroid_odyssey/agents_v1_gen/models/structured_agent_execution_request.py +0 -89
  91. asteroid_odyssey/agents_v1_gen/models/update_agent_profile_request.py +0 -126
  92. asteroid_odyssey/agents_v1_gen/rest.py +0 -257
  93. asteroid_odyssey/agents_v2_gen/__init__.py +0 -121
  94. asteroid_odyssey/agents_v2_gen/api/__init__.py +0 -7
  95. asteroid_odyssey/agents_v2_gen/api_response.py +0 -21
  96. asteroid_odyssey/agents_v2_gen/models/__init__.py +0 -102
  97. asteroid_odyssey/agents_v2_gen/py.typed +0 -0
  98. asteroid_odyssey/client.py +0 -1629
  99. asteroid_odyssey-1.3.13.dist-info/METADATA +0 -214
  100. asteroid_odyssey-1.3.13.dist-info/RECORD +0 -134
  101. /asteroid_odyssey/{agents_v1_gen/api_response.py → api_response.py} +0 -0
  102. /asteroid_odyssey/{agents_v2_gen/exceptions.py → exceptions.py} +0 -0
  103. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_agent_execute_agent_response.py +0 -0
  104. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_agent_sort_field.py +0 -0
  105. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_action_name.py +0 -0
  106. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_generic_payload.py +0 -0
  107. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_reasoning_payload.py +0 -0
  108. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_step_completed_payload.py +0 -0
  109. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_step_started_payload.py +0 -0
  110. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_user_message_received_payload.py +0 -0
  111. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_awaiting_confirmation_payload.py +0 -0
  112. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_cancel_reason.py +0 -0
  113. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_element_file_upload_completed_details.py +0 -0
  114. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_ext_get_mail_completed_details.py +0 -0
  115. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_file_list_completed_details.py +0 -0
  116. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_file_stage_completed_details.py +0 -0
  117. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_llm_call_purpose.py +0 -0
  118. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_nav_to_completed_details.py +0 -0
  119. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_nav_to_started_details.py +0 -0
  120. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_node_details.py +0 -0
  121. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_paused_payload.py +0 -0
  122. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_rules_details.py +0 -0
  123. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scratchpad_read_completed_details.py +0 -0
  124. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scratchpad_read_started_details.py +0 -0
  125. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scratchpad_write_started_details.py +0 -0
  126. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_script_hybrid_playwright_started_details.py +0 -0
  127. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_script_playwright_started_details.py +0 -0
  128. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scriptpad_read_completed_details.py +0 -0
  129. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_sort_field.py +0 -0
  130. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_status.py +0 -0
  131. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_transition_details.py +0 -0
  132. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_update_type.py +0 -0
  133. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_user_messages_add_text_body.py +0 -0
  134. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_util_get_datetime_started_details.py +0 -0
  135. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_files_temp_file.py +0 -0
  136. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_graph_models_nodes_properties_playwright_script_llm_var_type.py +0 -0
  137. /asteroid_odyssey/{agents_v2_gen/models → models}/agents_graph_models_transitions_transition_type.py +0 -0
  138. /asteroid_odyssey/{agents_v2_gen/models → models}/common_bad_request_error_body.py +0 -0
  139. /asteroid_odyssey/{agents_v2_gen/models → models}/common_error.py +0 -0
  140. /asteroid_odyssey/{agents_v2_gen/models → models}/common_forbidden_error_body.py +0 -0
  141. /asteroid_odyssey/{agents_v2_gen/models → models}/common_internal_server_error_body.py +0 -0
  142. /asteroid_odyssey/{agents_v2_gen/models → models}/common_not_found_error_body.py +0 -0
  143. /asteroid_odyssey/{agents_v2_gen/models → models}/common_os_error.py +0 -0
  144. /asteroid_odyssey/{agents_v2_gen/models → models}/common_sort_direction.py +0 -0
  145. /asteroid_odyssey/{agents_v2_gen/models → models}/common_unauthorized_error_body.py +0 -0
  146. /asteroid_odyssey/{agents_v2_gen/models → models}/version.py +0 -0
  147. /asteroid_odyssey/{agents_v1_gen/py.typed → py.typed} +0 -0
  148. {asteroid_odyssey-1.3.13.dist-info → asteroid_odyssey-1.6.0.dist-info}/WHEEL +0 -0
  149. {asteroid_odyssey-1.3.13.dist-info → asteroid_odyssey-1.6.0.dist-info}/top_level.txt +0 -0
@@ -1,1449 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Asteroid Agents API
5
-
6
- Version 1 of the Asteroid Agents API
7
-
8
- The version of the OpenAPI document: v1.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 pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
- from typing import Any, Dict, List, Optional, Tuple, Union
17
- from typing_extensions import Annotated
18
-
19
- from pydantic import Field, StrictStr
20
- from typing import Any, Dict
21
- from typing_extensions import Annotated
22
- from asteroid_odyssey.agents_v1_gen.models.browser_session_recording_response import BrowserSessionRecordingResponse
23
- from asteroid_odyssey.agents_v1_gen.models.execution_response import ExecutionResponse
24
- from asteroid_odyssey.agents_v1_gen.models.execution_result_response import ExecutionResultResponse
25
- from asteroid_odyssey.agents_v1_gen.models.execution_status_response import ExecutionStatusResponse
26
- from asteroid_odyssey.agents_v1_gen.models.structured_agent_execution_request import StructuredAgentExecutionRequest
27
-
28
- from asteroid_odyssey.agents_v1_gen.api_client import ApiClient, RequestSerialized
29
- from asteroid_odyssey.agents_v1_gen.api_response import ApiResponse
30
- from asteroid_odyssey.agents_v1_gen.rest import RESTResponseType
31
-
32
-
33
- class ExecutionApi:
34
- """NOTE: This class is auto generated by OpenAPI Generator
35
- Ref: https://openapi-generator.tech
36
-
37
- Do not edit the class manually.
38
- """
39
-
40
- def __init__(self, api_client=None) -> None:
41
- if api_client is None:
42
- api_client = ApiClient.get_default()
43
- self.api_client = api_client
44
-
45
-
46
- @validate_call
47
- def execute_agent(
48
- self,
49
- id: Annotated[StrictStr, Field(description="The ID of the agent")],
50
- request_body: Dict[str, Any],
51
- _request_timeout: Union[
52
- None,
53
- Annotated[StrictFloat, Field(gt=0)],
54
- Tuple[
55
- Annotated[StrictFloat, Field(gt=0)],
56
- Annotated[StrictFloat, Field(gt=0)]
57
- ]
58
- ] = None,
59
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
60
- _content_type: Optional[StrictStr] = None,
61
- _headers: Optional[Dict[StrictStr, Any]] = None,
62
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
63
- ) -> ExecutionResponse:
64
- """(Deprecated) Execute an agent
65
-
66
- Executes an agent with the provided parameters
67
-
68
- :param id: The ID of the agent (required)
69
- :type id: str
70
- :param request_body: (required)
71
- :type request_body: Dict[str, object]
72
- :param _request_timeout: timeout setting for this request. If one
73
- number provided, it will be total request
74
- timeout. It can also be a pair (tuple) of
75
- (connection, read) timeouts.
76
- :type _request_timeout: int, tuple(int, int), optional
77
- :param _request_auth: set to override the auth_settings for an a single
78
- request; this effectively ignores the
79
- authentication in the spec for a single request.
80
- :type _request_auth: dict, optional
81
- :param _content_type: force content-type for the request.
82
- :type _content_type: str, Optional
83
- :param _headers: set to override the headers for a single
84
- request; this effectively ignores the headers
85
- in the spec for a single request.
86
- :type _headers: dict, optional
87
- :param _host_index: set to override the host_index for a single
88
- request; this effectively ignores the host_index
89
- in the spec for a single request.
90
- :type _host_index: int, optional
91
- :return: Returns the result object.
92
- """ # noqa: E501
93
- warnings.warn("POST /agent/{id} is deprecated.", DeprecationWarning)
94
-
95
- _param = self._execute_agent_serialize(
96
- id=id,
97
- request_body=request_body,
98
- _request_auth=_request_auth,
99
- _content_type=_content_type,
100
- _headers=_headers,
101
- _host_index=_host_index
102
- )
103
-
104
- _response_types_map: Dict[str, Optional[str]] = {
105
- '202': "ExecutionResponse",
106
- '400': "ErrorResponse",
107
- '404': "ErrorResponse",
108
- '500': "ErrorResponse",
109
- }
110
- response_data = self.api_client.call_api(
111
- *_param,
112
- _request_timeout=_request_timeout
113
- )
114
- response_data.read()
115
- return self.api_client.response_deserialize(
116
- response_data=response_data,
117
- response_types_map=_response_types_map,
118
- ).data
119
-
120
-
121
- @validate_call
122
- def execute_agent_with_http_info(
123
- self,
124
- id: Annotated[StrictStr, Field(description="The ID of the agent")],
125
- request_body: Dict[str, Any],
126
- _request_timeout: Union[
127
- None,
128
- Annotated[StrictFloat, Field(gt=0)],
129
- Tuple[
130
- Annotated[StrictFloat, Field(gt=0)],
131
- Annotated[StrictFloat, Field(gt=0)]
132
- ]
133
- ] = None,
134
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
135
- _content_type: Optional[StrictStr] = None,
136
- _headers: Optional[Dict[StrictStr, Any]] = None,
137
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
138
- ) -> ApiResponse[ExecutionResponse]:
139
- """(Deprecated) Execute an agent
140
-
141
- Executes an agent with the provided parameters
142
-
143
- :param id: The ID of the agent (required)
144
- :type id: str
145
- :param request_body: (required)
146
- :type request_body: Dict[str, object]
147
- :param _request_timeout: timeout setting for this request. If one
148
- number provided, it will be total request
149
- timeout. It can also be a pair (tuple) of
150
- (connection, read) timeouts.
151
- :type _request_timeout: int, tuple(int, int), optional
152
- :param _request_auth: set to override the auth_settings for an a single
153
- request; this effectively ignores the
154
- authentication in the spec for a single request.
155
- :type _request_auth: dict, optional
156
- :param _content_type: force content-type for the request.
157
- :type _content_type: str, Optional
158
- :param _headers: set to override the headers for a single
159
- request; this effectively ignores the headers
160
- in the spec for a single request.
161
- :type _headers: dict, optional
162
- :param _host_index: set to override the host_index for a single
163
- request; this effectively ignores the host_index
164
- in the spec for a single request.
165
- :type _host_index: int, optional
166
- :return: Returns the result object.
167
- """ # noqa: E501
168
- warnings.warn("POST /agent/{id} is deprecated.", DeprecationWarning)
169
-
170
- _param = self._execute_agent_serialize(
171
- id=id,
172
- request_body=request_body,
173
- _request_auth=_request_auth,
174
- _content_type=_content_type,
175
- _headers=_headers,
176
- _host_index=_host_index
177
- )
178
-
179
- _response_types_map: Dict[str, Optional[str]] = {
180
- '202': "ExecutionResponse",
181
- '400': "ErrorResponse",
182
- '404': "ErrorResponse",
183
- '500': "ErrorResponse",
184
- }
185
- response_data = self.api_client.call_api(
186
- *_param,
187
- _request_timeout=_request_timeout
188
- )
189
- response_data.read()
190
- return self.api_client.response_deserialize(
191
- response_data=response_data,
192
- response_types_map=_response_types_map,
193
- )
194
-
195
-
196
- @validate_call
197
- def execute_agent_without_preload_content(
198
- self,
199
- id: Annotated[StrictStr, Field(description="The ID of the agent")],
200
- request_body: Dict[str, Any],
201
- _request_timeout: Union[
202
- None,
203
- Annotated[StrictFloat, Field(gt=0)],
204
- Tuple[
205
- Annotated[StrictFloat, Field(gt=0)],
206
- Annotated[StrictFloat, Field(gt=0)]
207
- ]
208
- ] = None,
209
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
210
- _content_type: Optional[StrictStr] = None,
211
- _headers: Optional[Dict[StrictStr, Any]] = None,
212
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
213
- ) -> RESTResponseType:
214
- """(Deprecated) Execute an agent
215
-
216
- Executes an agent with the provided parameters
217
-
218
- :param id: The ID of the agent (required)
219
- :type id: str
220
- :param request_body: (required)
221
- :type request_body: Dict[str, object]
222
- :param _request_timeout: timeout setting for this request. If one
223
- number provided, it will be total request
224
- timeout. It can also be a pair (tuple) of
225
- (connection, read) timeouts.
226
- :type _request_timeout: int, tuple(int, int), optional
227
- :param _request_auth: set to override the auth_settings for an a single
228
- request; this effectively ignores the
229
- authentication in the spec for a single request.
230
- :type _request_auth: dict, optional
231
- :param _content_type: force content-type for the request.
232
- :type _content_type: str, Optional
233
- :param _headers: set to override the headers for a single
234
- request; this effectively ignores the headers
235
- in the spec for a single request.
236
- :type _headers: dict, optional
237
- :param _host_index: set to override the host_index for a single
238
- request; this effectively ignores the host_index
239
- in the spec for a single request.
240
- :type _host_index: int, optional
241
- :return: Returns the result object.
242
- """ # noqa: E501
243
- warnings.warn("POST /agent/{id} is deprecated.", DeprecationWarning)
244
-
245
- _param = self._execute_agent_serialize(
246
- id=id,
247
- request_body=request_body,
248
- _request_auth=_request_auth,
249
- _content_type=_content_type,
250
- _headers=_headers,
251
- _host_index=_host_index
252
- )
253
-
254
- _response_types_map: Dict[str, Optional[str]] = {
255
- '202': "ExecutionResponse",
256
- '400': "ErrorResponse",
257
- '404': "ErrorResponse",
258
- '500': "ErrorResponse",
259
- }
260
- response_data = self.api_client.call_api(
261
- *_param,
262
- _request_timeout=_request_timeout
263
- )
264
- return response_data.response
265
-
266
-
267
- def _execute_agent_serialize(
268
- self,
269
- id,
270
- request_body,
271
- _request_auth,
272
- _content_type,
273
- _headers,
274
- _host_index,
275
- ) -> RequestSerialized:
276
-
277
- _host = None
278
-
279
- _collection_formats: Dict[str, str] = {
280
- }
281
-
282
- _path_params: Dict[str, str] = {}
283
- _query_params: List[Tuple[str, str]] = []
284
- _header_params: Dict[str, Optional[str]] = _headers or {}
285
- _form_params: List[Tuple[str, str]] = []
286
- _files: Dict[
287
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
288
- ] = {}
289
- _body_params: Optional[bytes] = None
290
-
291
- # process the path parameters
292
- if id is not None:
293
- _path_params['id'] = id
294
- # process the query parameters
295
- # process the header parameters
296
- # process the form parameters
297
- # process the body parameter
298
- if request_body is not None:
299
- _body_params = request_body
300
-
301
-
302
- # set the HTTP header `Accept`
303
- if 'Accept' not in _header_params:
304
- _header_params['Accept'] = self.api_client.select_header_accept(
305
- [
306
- 'application/json'
307
- ]
308
- )
309
-
310
- # set the HTTP header `Content-Type`
311
- if _content_type:
312
- _header_params['Content-Type'] = _content_type
313
- else:
314
- _default_content_type = (
315
- self.api_client.select_header_content_type(
316
- [
317
- 'application/json'
318
- ]
319
- )
320
- )
321
- if _default_content_type is not None:
322
- _header_params['Content-Type'] = _default_content_type
323
-
324
- # authentication setting
325
- _auth_settings: List[str] = [
326
- 'ApiKeyAuth'
327
- ]
328
-
329
- return self.api_client.param_serialize(
330
- method='POST',
331
- resource_path='/agent/{id}',
332
- path_params=_path_params,
333
- query_params=_query_params,
334
- header_params=_header_params,
335
- body=_body_params,
336
- post_params=_form_params,
337
- files=_files,
338
- auth_settings=_auth_settings,
339
- collection_formats=_collection_formats,
340
- _host=_host,
341
- _request_auth=_request_auth
342
- )
343
-
344
-
345
-
346
-
347
- @validate_call
348
- def execute_agent_structured(
349
- self,
350
- id: Annotated[StrictStr, Field(description="The ID of the agent")],
351
- structured_agent_execution_request: StructuredAgentExecutionRequest,
352
- _request_timeout: Union[
353
- None,
354
- Annotated[StrictFloat, Field(gt=0)],
355
- Tuple[
356
- Annotated[StrictFloat, Field(gt=0)],
357
- Annotated[StrictFloat, Field(gt=0)]
358
- ]
359
- ] = None,
360
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
361
- _content_type: Optional[StrictStr] = None,
362
- _headers: Optional[Dict[StrictStr, Any]] = None,
363
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
364
- ) -> ExecutionResponse:
365
- """(Deprecated) Execute an agent with structured parameters
366
-
367
- Executes an agent with structured parameters including optional agent profile configuration. This is the recommended method for new integrations.
368
-
369
- :param id: The ID of the agent (required)
370
- :type id: str
371
- :param structured_agent_execution_request: (required)
372
- :type structured_agent_execution_request: StructuredAgentExecutionRequest
373
- :param _request_timeout: timeout setting for this request. If one
374
- number provided, it will be total request
375
- timeout. It can also be a pair (tuple) of
376
- (connection, read) timeouts.
377
- :type _request_timeout: int, tuple(int, int), optional
378
- :param _request_auth: set to override the auth_settings for an a single
379
- request; this effectively ignores the
380
- authentication in the spec for a single request.
381
- :type _request_auth: dict, optional
382
- :param _content_type: force content-type for the request.
383
- :type _content_type: str, Optional
384
- :param _headers: set to override the headers for a single
385
- request; this effectively ignores the headers
386
- in the spec for a single request.
387
- :type _headers: dict, optional
388
- :param _host_index: set to override the host_index for a single
389
- request; this effectively ignores the host_index
390
- in the spec for a single request.
391
- :type _host_index: int, optional
392
- :return: Returns the result object.
393
- """ # noqa: E501
394
- warnings.warn("POST /agent/{id}/execute is deprecated.", DeprecationWarning)
395
-
396
- _param = self._execute_agent_structured_serialize(
397
- id=id,
398
- structured_agent_execution_request=structured_agent_execution_request,
399
- _request_auth=_request_auth,
400
- _content_type=_content_type,
401
- _headers=_headers,
402
- _host_index=_host_index
403
- )
404
-
405
- _response_types_map: Dict[str, Optional[str]] = {
406
- '202': "ExecutionResponse",
407
- '400': "ErrorResponse",
408
- '404': "ErrorResponse",
409
- '500': "ErrorResponse",
410
- }
411
- response_data = self.api_client.call_api(
412
- *_param,
413
- _request_timeout=_request_timeout
414
- )
415
- response_data.read()
416
- return self.api_client.response_deserialize(
417
- response_data=response_data,
418
- response_types_map=_response_types_map,
419
- ).data
420
-
421
-
422
- @validate_call
423
- def execute_agent_structured_with_http_info(
424
- self,
425
- id: Annotated[StrictStr, Field(description="The ID of the agent")],
426
- structured_agent_execution_request: StructuredAgentExecutionRequest,
427
- _request_timeout: Union[
428
- None,
429
- Annotated[StrictFloat, Field(gt=0)],
430
- Tuple[
431
- Annotated[StrictFloat, Field(gt=0)],
432
- Annotated[StrictFloat, Field(gt=0)]
433
- ]
434
- ] = None,
435
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
436
- _content_type: Optional[StrictStr] = None,
437
- _headers: Optional[Dict[StrictStr, Any]] = None,
438
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
439
- ) -> ApiResponse[ExecutionResponse]:
440
- """(Deprecated) Execute an agent with structured parameters
441
-
442
- Executes an agent with structured parameters including optional agent profile configuration. This is the recommended method for new integrations.
443
-
444
- :param id: The ID of the agent (required)
445
- :type id: str
446
- :param structured_agent_execution_request: (required)
447
- :type structured_agent_execution_request: StructuredAgentExecutionRequest
448
- :param _request_timeout: timeout setting for this request. If one
449
- number provided, it will be total request
450
- timeout. It can also be a pair (tuple) of
451
- (connection, read) timeouts.
452
- :type _request_timeout: int, tuple(int, int), optional
453
- :param _request_auth: set to override the auth_settings for an a single
454
- request; this effectively ignores the
455
- authentication in the spec for a single request.
456
- :type _request_auth: dict, optional
457
- :param _content_type: force content-type for the request.
458
- :type _content_type: str, Optional
459
- :param _headers: set to override the headers for a single
460
- request; this effectively ignores the headers
461
- in the spec for a single request.
462
- :type _headers: dict, optional
463
- :param _host_index: set to override the host_index for a single
464
- request; this effectively ignores the host_index
465
- in the spec for a single request.
466
- :type _host_index: int, optional
467
- :return: Returns the result object.
468
- """ # noqa: E501
469
- warnings.warn("POST /agent/{id}/execute is deprecated.", DeprecationWarning)
470
-
471
- _param = self._execute_agent_structured_serialize(
472
- id=id,
473
- structured_agent_execution_request=structured_agent_execution_request,
474
- _request_auth=_request_auth,
475
- _content_type=_content_type,
476
- _headers=_headers,
477
- _host_index=_host_index
478
- )
479
-
480
- _response_types_map: Dict[str, Optional[str]] = {
481
- '202': "ExecutionResponse",
482
- '400': "ErrorResponse",
483
- '404': "ErrorResponse",
484
- '500': "ErrorResponse",
485
- }
486
- response_data = self.api_client.call_api(
487
- *_param,
488
- _request_timeout=_request_timeout
489
- )
490
- response_data.read()
491
- return self.api_client.response_deserialize(
492
- response_data=response_data,
493
- response_types_map=_response_types_map,
494
- )
495
-
496
-
497
- @validate_call
498
- def execute_agent_structured_without_preload_content(
499
- self,
500
- id: Annotated[StrictStr, Field(description="The ID of the agent")],
501
- structured_agent_execution_request: StructuredAgentExecutionRequest,
502
- _request_timeout: Union[
503
- None,
504
- Annotated[StrictFloat, Field(gt=0)],
505
- Tuple[
506
- Annotated[StrictFloat, Field(gt=0)],
507
- Annotated[StrictFloat, Field(gt=0)]
508
- ]
509
- ] = None,
510
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
511
- _content_type: Optional[StrictStr] = None,
512
- _headers: Optional[Dict[StrictStr, Any]] = None,
513
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
514
- ) -> RESTResponseType:
515
- """(Deprecated) Execute an agent with structured parameters
516
-
517
- Executes an agent with structured parameters including optional agent profile configuration. This is the recommended method for new integrations.
518
-
519
- :param id: The ID of the agent (required)
520
- :type id: str
521
- :param structured_agent_execution_request: (required)
522
- :type structured_agent_execution_request: StructuredAgentExecutionRequest
523
- :param _request_timeout: timeout setting for this request. If one
524
- number provided, it will be total request
525
- timeout. It can also be a pair (tuple) of
526
- (connection, read) timeouts.
527
- :type _request_timeout: int, tuple(int, int), optional
528
- :param _request_auth: set to override the auth_settings for an a single
529
- request; this effectively ignores the
530
- authentication in the spec for a single request.
531
- :type _request_auth: dict, optional
532
- :param _content_type: force content-type for the request.
533
- :type _content_type: str, Optional
534
- :param _headers: set to override the headers for a single
535
- request; this effectively ignores the headers
536
- in the spec for a single request.
537
- :type _headers: dict, optional
538
- :param _host_index: set to override the host_index for a single
539
- request; this effectively ignores the host_index
540
- in the spec for a single request.
541
- :type _host_index: int, optional
542
- :return: Returns the result object.
543
- """ # noqa: E501
544
- warnings.warn("POST /agent/{id}/execute is deprecated.", DeprecationWarning)
545
-
546
- _param = self._execute_agent_structured_serialize(
547
- id=id,
548
- structured_agent_execution_request=structured_agent_execution_request,
549
- _request_auth=_request_auth,
550
- _content_type=_content_type,
551
- _headers=_headers,
552
- _host_index=_host_index
553
- )
554
-
555
- _response_types_map: Dict[str, Optional[str]] = {
556
- '202': "ExecutionResponse",
557
- '400': "ErrorResponse",
558
- '404': "ErrorResponse",
559
- '500': "ErrorResponse",
560
- }
561
- response_data = self.api_client.call_api(
562
- *_param,
563
- _request_timeout=_request_timeout
564
- )
565
- return response_data.response
566
-
567
-
568
- def _execute_agent_structured_serialize(
569
- self,
570
- id,
571
- structured_agent_execution_request,
572
- _request_auth,
573
- _content_type,
574
- _headers,
575
- _host_index,
576
- ) -> RequestSerialized:
577
-
578
- _host = None
579
-
580
- _collection_formats: Dict[str, str] = {
581
- }
582
-
583
- _path_params: Dict[str, str] = {}
584
- _query_params: List[Tuple[str, str]] = []
585
- _header_params: Dict[str, Optional[str]] = _headers or {}
586
- _form_params: List[Tuple[str, str]] = []
587
- _files: Dict[
588
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
589
- ] = {}
590
- _body_params: Optional[bytes] = None
591
-
592
- # process the path parameters
593
- if id is not None:
594
- _path_params['id'] = id
595
- # process the query parameters
596
- # process the header parameters
597
- # process the form parameters
598
- # process the body parameter
599
- if structured_agent_execution_request is not None:
600
- _body_params = structured_agent_execution_request
601
-
602
-
603
- # set the HTTP header `Accept`
604
- if 'Accept' not in _header_params:
605
- _header_params['Accept'] = self.api_client.select_header_accept(
606
- [
607
- 'application/json'
608
- ]
609
- )
610
-
611
- # set the HTTP header `Content-Type`
612
- if _content_type:
613
- _header_params['Content-Type'] = _content_type
614
- else:
615
- _default_content_type = (
616
- self.api_client.select_header_content_type(
617
- [
618
- 'application/json'
619
- ]
620
- )
621
- )
622
- if _default_content_type is not None:
623
- _header_params['Content-Type'] = _default_content_type
624
-
625
- # authentication setting
626
- _auth_settings: List[str] = [
627
- 'ApiKeyAuth'
628
- ]
629
-
630
- return self.api_client.param_serialize(
631
- method='POST',
632
- resource_path='/agent/{id}/execute',
633
- path_params=_path_params,
634
- query_params=_query_params,
635
- header_params=_header_params,
636
- body=_body_params,
637
- post_params=_form_params,
638
- files=_files,
639
- auth_settings=_auth_settings,
640
- collection_formats=_collection_formats,
641
- _host=_host,
642
- _request_auth=_request_auth
643
- )
644
-
645
-
646
-
647
-
648
- @validate_call
649
- def get_browser_session_recording(
650
- self,
651
- id: Annotated[StrictStr, Field(description="The ID of the execution")],
652
- _request_timeout: Union[
653
- None,
654
- Annotated[StrictFloat, Field(gt=0)],
655
- Tuple[
656
- Annotated[StrictFloat, Field(gt=0)],
657
- Annotated[StrictFloat, Field(gt=0)]
658
- ]
659
- ] = None,
660
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
661
- _content_type: Optional[StrictStr] = None,
662
- _headers: Optional[Dict[StrictStr, Any]] = None,
663
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
664
- ) -> BrowserSessionRecordingResponse:
665
- """(Deprecated) Get browser session recording
666
-
667
- Retrieves the browser session recording URL for a completed execution
668
-
669
- :param id: The ID of the execution (required)
670
- :type id: str
671
- :param _request_timeout: timeout setting for this request. If one
672
- number provided, it will be total request
673
- timeout. It can also be a pair (tuple) of
674
- (connection, read) timeouts.
675
- :type _request_timeout: int, tuple(int, int), optional
676
- :param _request_auth: set to override the auth_settings for an a single
677
- request; this effectively ignores the
678
- authentication in the spec for a single request.
679
- :type _request_auth: dict, optional
680
- :param _content_type: force content-type for the request.
681
- :type _content_type: str, Optional
682
- :param _headers: set to override the headers for a single
683
- request; this effectively ignores the headers
684
- in the spec for a single request.
685
- :type _headers: dict, optional
686
- :param _host_index: set to override the host_index for a single
687
- request; this effectively ignores the host_index
688
- in the spec for a single request.
689
- :type _host_index: int, optional
690
- :return: Returns the result object.
691
- """ # noqa: E501
692
- warnings.warn("GET /execution/{id}/browser_session/recording is deprecated.", DeprecationWarning)
693
-
694
- _param = self._get_browser_session_recording_serialize(
695
- id=id,
696
- _request_auth=_request_auth,
697
- _content_type=_content_type,
698
- _headers=_headers,
699
- _host_index=_host_index
700
- )
701
-
702
- _response_types_map: Dict[str, Optional[str]] = {
703
- '200': "BrowserSessionRecordingResponse",
704
- '404': "ErrorResponse",
705
- '500': "ErrorResponse",
706
- }
707
- response_data = self.api_client.call_api(
708
- *_param,
709
- _request_timeout=_request_timeout
710
- )
711
- response_data.read()
712
- return self.api_client.response_deserialize(
713
- response_data=response_data,
714
- response_types_map=_response_types_map,
715
- ).data
716
-
717
-
718
- @validate_call
719
- def get_browser_session_recording_with_http_info(
720
- self,
721
- id: Annotated[StrictStr, Field(description="The ID of the execution")],
722
- _request_timeout: Union[
723
- None,
724
- Annotated[StrictFloat, Field(gt=0)],
725
- Tuple[
726
- Annotated[StrictFloat, Field(gt=0)],
727
- Annotated[StrictFloat, Field(gt=0)]
728
- ]
729
- ] = None,
730
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
731
- _content_type: Optional[StrictStr] = None,
732
- _headers: Optional[Dict[StrictStr, Any]] = None,
733
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
734
- ) -> ApiResponse[BrowserSessionRecordingResponse]:
735
- """(Deprecated) Get browser session recording
736
-
737
- Retrieves the browser session recording URL for a completed execution
738
-
739
- :param id: The ID of the execution (required)
740
- :type id: str
741
- :param _request_timeout: timeout setting for this request. If one
742
- number provided, it will be total request
743
- timeout. It can also be a pair (tuple) of
744
- (connection, read) timeouts.
745
- :type _request_timeout: int, tuple(int, int), optional
746
- :param _request_auth: set to override the auth_settings for an a single
747
- request; this effectively ignores the
748
- authentication in the spec for a single request.
749
- :type _request_auth: dict, optional
750
- :param _content_type: force content-type for the request.
751
- :type _content_type: str, Optional
752
- :param _headers: set to override the headers for a single
753
- request; this effectively ignores the headers
754
- in the spec for a single request.
755
- :type _headers: dict, optional
756
- :param _host_index: set to override the host_index for a single
757
- request; this effectively ignores the host_index
758
- in the spec for a single request.
759
- :type _host_index: int, optional
760
- :return: Returns the result object.
761
- """ # noqa: E501
762
- warnings.warn("GET /execution/{id}/browser_session/recording is deprecated.", DeprecationWarning)
763
-
764
- _param = self._get_browser_session_recording_serialize(
765
- id=id,
766
- _request_auth=_request_auth,
767
- _content_type=_content_type,
768
- _headers=_headers,
769
- _host_index=_host_index
770
- )
771
-
772
- _response_types_map: Dict[str, Optional[str]] = {
773
- '200': "BrowserSessionRecordingResponse",
774
- '404': "ErrorResponse",
775
- '500': "ErrorResponse",
776
- }
777
- response_data = self.api_client.call_api(
778
- *_param,
779
- _request_timeout=_request_timeout
780
- )
781
- response_data.read()
782
- return self.api_client.response_deserialize(
783
- response_data=response_data,
784
- response_types_map=_response_types_map,
785
- )
786
-
787
-
788
- @validate_call
789
- def get_browser_session_recording_without_preload_content(
790
- self,
791
- id: Annotated[StrictStr, Field(description="The ID of the execution")],
792
- _request_timeout: Union[
793
- None,
794
- Annotated[StrictFloat, Field(gt=0)],
795
- Tuple[
796
- Annotated[StrictFloat, Field(gt=0)],
797
- Annotated[StrictFloat, Field(gt=0)]
798
- ]
799
- ] = None,
800
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
801
- _content_type: Optional[StrictStr] = None,
802
- _headers: Optional[Dict[StrictStr, Any]] = None,
803
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
804
- ) -> RESTResponseType:
805
- """(Deprecated) Get browser session recording
806
-
807
- Retrieves the browser session recording URL for a completed execution
808
-
809
- :param id: The ID of the execution (required)
810
- :type id: str
811
- :param _request_timeout: timeout setting for this request. If one
812
- number provided, it will be total request
813
- timeout. It can also be a pair (tuple) of
814
- (connection, read) timeouts.
815
- :type _request_timeout: int, tuple(int, int), optional
816
- :param _request_auth: set to override the auth_settings for an a single
817
- request; this effectively ignores the
818
- authentication in the spec for a single request.
819
- :type _request_auth: dict, optional
820
- :param _content_type: force content-type for the request.
821
- :type _content_type: str, Optional
822
- :param _headers: set to override the headers for a single
823
- request; this effectively ignores the headers
824
- in the spec for a single request.
825
- :type _headers: dict, optional
826
- :param _host_index: set to override the host_index for a single
827
- request; this effectively ignores the host_index
828
- in the spec for a single request.
829
- :type _host_index: int, optional
830
- :return: Returns the result object.
831
- """ # noqa: E501
832
- warnings.warn("GET /execution/{id}/browser_session/recording is deprecated.", DeprecationWarning)
833
-
834
- _param = self._get_browser_session_recording_serialize(
835
- id=id,
836
- _request_auth=_request_auth,
837
- _content_type=_content_type,
838
- _headers=_headers,
839
- _host_index=_host_index
840
- )
841
-
842
- _response_types_map: Dict[str, Optional[str]] = {
843
- '200': "BrowserSessionRecordingResponse",
844
- '404': "ErrorResponse",
845
- '500': "ErrorResponse",
846
- }
847
- response_data = self.api_client.call_api(
848
- *_param,
849
- _request_timeout=_request_timeout
850
- )
851
- return response_data.response
852
-
853
-
854
- def _get_browser_session_recording_serialize(
855
- self,
856
- id,
857
- _request_auth,
858
- _content_type,
859
- _headers,
860
- _host_index,
861
- ) -> RequestSerialized:
862
-
863
- _host = None
864
-
865
- _collection_formats: Dict[str, str] = {
866
- }
867
-
868
- _path_params: Dict[str, str] = {}
869
- _query_params: List[Tuple[str, str]] = []
870
- _header_params: Dict[str, Optional[str]] = _headers or {}
871
- _form_params: List[Tuple[str, str]] = []
872
- _files: Dict[
873
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
874
- ] = {}
875
- _body_params: Optional[bytes] = None
876
-
877
- # process the path parameters
878
- if id is not None:
879
- _path_params['id'] = id
880
- # process the query parameters
881
- # process the header parameters
882
- # process the form parameters
883
- # process the body parameter
884
-
885
-
886
- # set the HTTP header `Accept`
887
- if 'Accept' not in _header_params:
888
- _header_params['Accept'] = self.api_client.select_header_accept(
889
- [
890
- 'application/json'
891
- ]
892
- )
893
-
894
-
895
- # authentication setting
896
- _auth_settings: List[str] = [
897
- 'ApiKeyAuth'
898
- ]
899
-
900
- return self.api_client.param_serialize(
901
- method='GET',
902
- resource_path='/execution/{id}/browser_session/recording',
903
- path_params=_path_params,
904
- query_params=_query_params,
905
- header_params=_header_params,
906
- body=_body_params,
907
- post_params=_form_params,
908
- files=_files,
909
- auth_settings=_auth_settings,
910
- collection_formats=_collection_formats,
911
- _host=_host,
912
- _request_auth=_request_auth
913
- )
914
-
915
-
916
-
917
-
918
- @validate_call
919
- def get_execution_result(
920
- self,
921
- id: Annotated[StrictStr, Field(description="The ID of the execution")],
922
- _request_timeout: Union[
923
- None,
924
- Annotated[StrictFloat, Field(gt=0)],
925
- Tuple[
926
- Annotated[StrictFloat, Field(gt=0)],
927
- Annotated[StrictFloat, Field(gt=0)]
928
- ]
929
- ] = None,
930
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
931
- _content_type: Optional[StrictStr] = None,
932
- _headers: Optional[Dict[StrictStr, Any]] = None,
933
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
934
- ) -> ExecutionResultResponse:
935
- """(Deprecated) Get execution result
936
-
937
-
938
- :param id: The ID of the execution (required)
939
- :type id: str
940
- :param _request_timeout: timeout setting for this request. If one
941
- number provided, it will be total request
942
- timeout. It can also be a pair (tuple) of
943
- (connection, read) timeouts.
944
- :type _request_timeout: int, tuple(int, int), optional
945
- :param _request_auth: set to override the auth_settings for an a single
946
- request; this effectively ignores the
947
- authentication in the spec for a single request.
948
- :type _request_auth: dict, optional
949
- :param _content_type: force content-type for the request.
950
- :type _content_type: str, Optional
951
- :param _headers: set to override the headers for a single
952
- request; this effectively ignores the headers
953
- in the spec for a single request.
954
- :type _headers: dict, optional
955
- :param _host_index: set to override the host_index for a single
956
- request; this effectively ignores the host_index
957
- in the spec for a single request.
958
- :type _host_index: int, optional
959
- :return: Returns the result object.
960
- """ # noqa: E501
961
- warnings.warn("GET /execution/{id}/result is deprecated.", DeprecationWarning)
962
-
963
- _param = self._get_execution_result_serialize(
964
- id=id,
965
- _request_auth=_request_auth,
966
- _content_type=_content_type,
967
- _headers=_headers,
968
- _host_index=_host_index
969
- )
970
-
971
- _response_types_map: Dict[str, Optional[str]] = {
972
- '200': "ExecutionResultResponse",
973
- '404': "ErrorResponse",
974
- '500': "ErrorResponse",
975
- }
976
- response_data = self.api_client.call_api(
977
- *_param,
978
- _request_timeout=_request_timeout
979
- )
980
- response_data.read()
981
- return self.api_client.response_deserialize(
982
- response_data=response_data,
983
- response_types_map=_response_types_map,
984
- ).data
985
-
986
-
987
- @validate_call
988
- def get_execution_result_with_http_info(
989
- self,
990
- id: Annotated[StrictStr, Field(description="The ID of the execution")],
991
- _request_timeout: Union[
992
- None,
993
- Annotated[StrictFloat, Field(gt=0)],
994
- Tuple[
995
- Annotated[StrictFloat, Field(gt=0)],
996
- Annotated[StrictFloat, Field(gt=0)]
997
- ]
998
- ] = None,
999
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1000
- _content_type: Optional[StrictStr] = None,
1001
- _headers: Optional[Dict[StrictStr, Any]] = None,
1002
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1003
- ) -> ApiResponse[ExecutionResultResponse]:
1004
- """(Deprecated) Get execution result
1005
-
1006
-
1007
- :param id: The ID of the execution (required)
1008
- :type id: str
1009
- :param _request_timeout: timeout setting for this request. If one
1010
- number provided, it will be total request
1011
- timeout. It can also be a pair (tuple) of
1012
- (connection, read) timeouts.
1013
- :type _request_timeout: int, tuple(int, int), optional
1014
- :param _request_auth: set to override the auth_settings for an a single
1015
- request; this effectively ignores the
1016
- authentication in the spec for a single request.
1017
- :type _request_auth: dict, optional
1018
- :param _content_type: force content-type for the request.
1019
- :type _content_type: str, Optional
1020
- :param _headers: set to override the headers for a single
1021
- request; this effectively ignores the headers
1022
- in the spec for a single request.
1023
- :type _headers: dict, optional
1024
- :param _host_index: set to override the host_index for a single
1025
- request; this effectively ignores the host_index
1026
- in the spec for a single request.
1027
- :type _host_index: int, optional
1028
- :return: Returns the result object.
1029
- """ # noqa: E501
1030
- warnings.warn("GET /execution/{id}/result is deprecated.", DeprecationWarning)
1031
-
1032
- _param = self._get_execution_result_serialize(
1033
- id=id,
1034
- _request_auth=_request_auth,
1035
- _content_type=_content_type,
1036
- _headers=_headers,
1037
- _host_index=_host_index
1038
- )
1039
-
1040
- _response_types_map: Dict[str, Optional[str]] = {
1041
- '200': "ExecutionResultResponse",
1042
- '404': "ErrorResponse",
1043
- '500': "ErrorResponse",
1044
- }
1045
- response_data = self.api_client.call_api(
1046
- *_param,
1047
- _request_timeout=_request_timeout
1048
- )
1049
- response_data.read()
1050
- return self.api_client.response_deserialize(
1051
- response_data=response_data,
1052
- response_types_map=_response_types_map,
1053
- )
1054
-
1055
-
1056
- @validate_call
1057
- def get_execution_result_without_preload_content(
1058
- self,
1059
- id: Annotated[StrictStr, Field(description="The ID of the execution")],
1060
- _request_timeout: Union[
1061
- None,
1062
- Annotated[StrictFloat, Field(gt=0)],
1063
- Tuple[
1064
- Annotated[StrictFloat, Field(gt=0)],
1065
- Annotated[StrictFloat, Field(gt=0)]
1066
- ]
1067
- ] = None,
1068
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1069
- _content_type: Optional[StrictStr] = None,
1070
- _headers: Optional[Dict[StrictStr, Any]] = None,
1071
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1072
- ) -> RESTResponseType:
1073
- """(Deprecated) Get execution result
1074
-
1075
-
1076
- :param id: The ID of the execution (required)
1077
- :type id: str
1078
- :param _request_timeout: timeout setting for this request. If one
1079
- number provided, it will be total request
1080
- timeout. It can also be a pair (tuple) of
1081
- (connection, read) timeouts.
1082
- :type _request_timeout: int, tuple(int, int), optional
1083
- :param _request_auth: set to override the auth_settings for an a single
1084
- request; this effectively ignores the
1085
- authentication in the spec for a single request.
1086
- :type _request_auth: dict, optional
1087
- :param _content_type: force content-type for the request.
1088
- :type _content_type: str, Optional
1089
- :param _headers: set to override the headers for a single
1090
- request; this effectively ignores the headers
1091
- in the spec for a single request.
1092
- :type _headers: dict, optional
1093
- :param _host_index: set to override the host_index for a single
1094
- request; this effectively ignores the host_index
1095
- in the spec for a single request.
1096
- :type _host_index: int, optional
1097
- :return: Returns the result object.
1098
- """ # noqa: E501
1099
- warnings.warn("GET /execution/{id}/result is deprecated.", DeprecationWarning)
1100
-
1101
- _param = self._get_execution_result_serialize(
1102
- id=id,
1103
- _request_auth=_request_auth,
1104
- _content_type=_content_type,
1105
- _headers=_headers,
1106
- _host_index=_host_index
1107
- )
1108
-
1109
- _response_types_map: Dict[str, Optional[str]] = {
1110
- '200': "ExecutionResultResponse",
1111
- '404': "ErrorResponse",
1112
- '500': "ErrorResponse",
1113
- }
1114
- response_data = self.api_client.call_api(
1115
- *_param,
1116
- _request_timeout=_request_timeout
1117
- )
1118
- return response_data.response
1119
-
1120
-
1121
- def _get_execution_result_serialize(
1122
- self,
1123
- id,
1124
- _request_auth,
1125
- _content_type,
1126
- _headers,
1127
- _host_index,
1128
- ) -> RequestSerialized:
1129
-
1130
- _host = None
1131
-
1132
- _collection_formats: Dict[str, str] = {
1133
- }
1134
-
1135
- _path_params: Dict[str, str] = {}
1136
- _query_params: List[Tuple[str, str]] = []
1137
- _header_params: Dict[str, Optional[str]] = _headers or {}
1138
- _form_params: List[Tuple[str, str]] = []
1139
- _files: Dict[
1140
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1141
- ] = {}
1142
- _body_params: Optional[bytes] = None
1143
-
1144
- # process the path parameters
1145
- if id is not None:
1146
- _path_params['id'] = id
1147
- # process the query parameters
1148
- # process the header parameters
1149
- # process the form parameters
1150
- # process the body parameter
1151
-
1152
-
1153
- # set the HTTP header `Accept`
1154
- if 'Accept' not in _header_params:
1155
- _header_params['Accept'] = self.api_client.select_header_accept(
1156
- [
1157
- 'application/json'
1158
- ]
1159
- )
1160
-
1161
-
1162
- # authentication setting
1163
- _auth_settings: List[str] = [
1164
- 'ApiKeyAuth'
1165
- ]
1166
-
1167
- return self.api_client.param_serialize(
1168
- method='GET',
1169
- resource_path='/execution/{id}/result',
1170
- path_params=_path_params,
1171
- query_params=_query_params,
1172
- header_params=_header_params,
1173
- body=_body_params,
1174
- post_params=_form_params,
1175
- files=_files,
1176
- auth_settings=_auth_settings,
1177
- collection_formats=_collection_formats,
1178
- _host=_host,
1179
- _request_auth=_request_auth
1180
- )
1181
-
1182
-
1183
-
1184
-
1185
- @validate_call
1186
- def get_execution_status(
1187
- self,
1188
- id: Annotated[StrictStr, Field(description="The ID of the execution")],
1189
- _request_timeout: Union[
1190
- None,
1191
- Annotated[StrictFloat, Field(gt=0)],
1192
- Tuple[
1193
- Annotated[StrictFloat, Field(gt=0)],
1194
- Annotated[StrictFloat, Field(gt=0)]
1195
- ]
1196
- ] = None,
1197
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1198
- _content_type: Optional[StrictStr] = None,
1199
- _headers: Optional[Dict[StrictStr, Any]] = None,
1200
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1201
- ) -> ExecutionStatusResponse:
1202
- """(Deprecated) Get execution status
1203
-
1204
-
1205
- :param id: The ID of the execution (required)
1206
- :type id: str
1207
- :param _request_timeout: timeout setting for this request. If one
1208
- number provided, it will be total request
1209
- timeout. It can also be a pair (tuple) of
1210
- (connection, read) timeouts.
1211
- :type _request_timeout: int, tuple(int, int), optional
1212
- :param _request_auth: set to override the auth_settings for an a single
1213
- request; this effectively ignores the
1214
- authentication in the spec for a single request.
1215
- :type _request_auth: dict, optional
1216
- :param _content_type: force content-type for the request.
1217
- :type _content_type: str, Optional
1218
- :param _headers: set to override the headers for a single
1219
- request; this effectively ignores the headers
1220
- in the spec for a single request.
1221
- :type _headers: dict, optional
1222
- :param _host_index: set to override the host_index for a single
1223
- request; this effectively ignores the host_index
1224
- in the spec for a single request.
1225
- :type _host_index: int, optional
1226
- :return: Returns the result object.
1227
- """ # noqa: E501
1228
- warnings.warn("GET /execution/{id}/status is deprecated.", DeprecationWarning)
1229
-
1230
- _param = self._get_execution_status_serialize(
1231
- id=id,
1232
- _request_auth=_request_auth,
1233
- _content_type=_content_type,
1234
- _headers=_headers,
1235
- _host_index=_host_index
1236
- )
1237
-
1238
- _response_types_map: Dict[str, Optional[str]] = {
1239
- '200': "ExecutionStatusResponse",
1240
- '404': "ErrorResponse",
1241
- '500': "ErrorResponse",
1242
- }
1243
- response_data = self.api_client.call_api(
1244
- *_param,
1245
- _request_timeout=_request_timeout
1246
- )
1247
- response_data.read()
1248
- return self.api_client.response_deserialize(
1249
- response_data=response_data,
1250
- response_types_map=_response_types_map,
1251
- ).data
1252
-
1253
-
1254
- @validate_call
1255
- def get_execution_status_with_http_info(
1256
- self,
1257
- id: Annotated[StrictStr, Field(description="The ID of the execution")],
1258
- _request_timeout: Union[
1259
- None,
1260
- Annotated[StrictFloat, Field(gt=0)],
1261
- Tuple[
1262
- Annotated[StrictFloat, Field(gt=0)],
1263
- Annotated[StrictFloat, Field(gt=0)]
1264
- ]
1265
- ] = None,
1266
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1267
- _content_type: Optional[StrictStr] = None,
1268
- _headers: Optional[Dict[StrictStr, Any]] = None,
1269
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1270
- ) -> ApiResponse[ExecutionStatusResponse]:
1271
- """(Deprecated) Get execution status
1272
-
1273
-
1274
- :param id: The ID of the execution (required)
1275
- :type id: str
1276
- :param _request_timeout: timeout setting for this request. If one
1277
- number provided, it will be total request
1278
- timeout. It can also be a pair (tuple) of
1279
- (connection, read) timeouts.
1280
- :type _request_timeout: int, tuple(int, int), optional
1281
- :param _request_auth: set to override the auth_settings for an a single
1282
- request; this effectively ignores the
1283
- authentication in the spec for a single request.
1284
- :type _request_auth: dict, optional
1285
- :param _content_type: force content-type for the request.
1286
- :type _content_type: str, Optional
1287
- :param _headers: set to override the headers for a single
1288
- request; this effectively ignores the headers
1289
- in the spec for a single request.
1290
- :type _headers: dict, optional
1291
- :param _host_index: set to override the host_index for a single
1292
- request; this effectively ignores the host_index
1293
- in the spec for a single request.
1294
- :type _host_index: int, optional
1295
- :return: Returns the result object.
1296
- """ # noqa: E501
1297
- warnings.warn("GET /execution/{id}/status is deprecated.", DeprecationWarning)
1298
-
1299
- _param = self._get_execution_status_serialize(
1300
- id=id,
1301
- _request_auth=_request_auth,
1302
- _content_type=_content_type,
1303
- _headers=_headers,
1304
- _host_index=_host_index
1305
- )
1306
-
1307
- _response_types_map: Dict[str, Optional[str]] = {
1308
- '200': "ExecutionStatusResponse",
1309
- '404': "ErrorResponse",
1310
- '500': "ErrorResponse",
1311
- }
1312
- response_data = self.api_client.call_api(
1313
- *_param,
1314
- _request_timeout=_request_timeout
1315
- )
1316
- response_data.read()
1317
- return self.api_client.response_deserialize(
1318
- response_data=response_data,
1319
- response_types_map=_response_types_map,
1320
- )
1321
-
1322
-
1323
- @validate_call
1324
- def get_execution_status_without_preload_content(
1325
- self,
1326
- id: Annotated[StrictStr, Field(description="The ID of the execution")],
1327
- _request_timeout: Union[
1328
- None,
1329
- Annotated[StrictFloat, Field(gt=0)],
1330
- Tuple[
1331
- Annotated[StrictFloat, Field(gt=0)],
1332
- Annotated[StrictFloat, Field(gt=0)]
1333
- ]
1334
- ] = None,
1335
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1336
- _content_type: Optional[StrictStr] = None,
1337
- _headers: Optional[Dict[StrictStr, Any]] = None,
1338
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1339
- ) -> RESTResponseType:
1340
- """(Deprecated) Get execution status
1341
-
1342
-
1343
- :param id: The ID of the execution (required)
1344
- :type id: str
1345
- :param _request_timeout: timeout setting for this request. If one
1346
- number provided, it will be total request
1347
- timeout. It can also be a pair (tuple) of
1348
- (connection, read) timeouts.
1349
- :type _request_timeout: int, tuple(int, int), optional
1350
- :param _request_auth: set to override the auth_settings for an a single
1351
- request; this effectively ignores the
1352
- authentication in the spec for a single request.
1353
- :type _request_auth: dict, optional
1354
- :param _content_type: force content-type for the request.
1355
- :type _content_type: str, Optional
1356
- :param _headers: set to override the headers for a single
1357
- request; this effectively ignores the headers
1358
- in the spec for a single request.
1359
- :type _headers: dict, optional
1360
- :param _host_index: set to override the host_index for a single
1361
- request; this effectively ignores the host_index
1362
- in the spec for a single request.
1363
- :type _host_index: int, optional
1364
- :return: Returns the result object.
1365
- """ # noqa: E501
1366
- warnings.warn("GET /execution/{id}/status is deprecated.", DeprecationWarning)
1367
-
1368
- _param = self._get_execution_status_serialize(
1369
- id=id,
1370
- _request_auth=_request_auth,
1371
- _content_type=_content_type,
1372
- _headers=_headers,
1373
- _host_index=_host_index
1374
- )
1375
-
1376
- _response_types_map: Dict[str, Optional[str]] = {
1377
- '200': "ExecutionStatusResponse",
1378
- '404': "ErrorResponse",
1379
- '500': "ErrorResponse",
1380
- }
1381
- response_data = self.api_client.call_api(
1382
- *_param,
1383
- _request_timeout=_request_timeout
1384
- )
1385
- return response_data.response
1386
-
1387
-
1388
- def _get_execution_status_serialize(
1389
- self,
1390
- id,
1391
- _request_auth,
1392
- _content_type,
1393
- _headers,
1394
- _host_index,
1395
- ) -> RequestSerialized:
1396
-
1397
- _host = None
1398
-
1399
- _collection_formats: Dict[str, str] = {
1400
- }
1401
-
1402
- _path_params: Dict[str, str] = {}
1403
- _query_params: List[Tuple[str, str]] = []
1404
- _header_params: Dict[str, Optional[str]] = _headers or {}
1405
- _form_params: List[Tuple[str, str]] = []
1406
- _files: Dict[
1407
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1408
- ] = {}
1409
- _body_params: Optional[bytes] = None
1410
-
1411
- # process the path parameters
1412
- if id is not None:
1413
- _path_params['id'] = id
1414
- # process the query parameters
1415
- # process the header parameters
1416
- # process the form parameters
1417
- # process the body parameter
1418
-
1419
-
1420
- # set the HTTP header `Accept`
1421
- if 'Accept' not in _header_params:
1422
- _header_params['Accept'] = self.api_client.select_header_accept(
1423
- [
1424
- 'application/json'
1425
- ]
1426
- )
1427
-
1428
-
1429
- # authentication setting
1430
- _auth_settings: List[str] = [
1431
- 'ApiKeyAuth'
1432
- ]
1433
-
1434
- return self.api_client.param_serialize(
1435
- method='GET',
1436
- resource_path='/execution/{id}/status',
1437
- path_params=_path_params,
1438
- query_params=_query_params,
1439
- header_params=_header_params,
1440
- body=_body_params,
1441
- post_params=_form_params,
1442
- files=_files,
1443
- auth_settings=_auth_settings,
1444
- collection_formats=_collection_formats,
1445
- _host=_host,
1446
- _request_auth=_request_auth
1447
- )
1448
-
1449
-