asteroid-odyssey 1.3.13__py3-none-any.whl → 1.6.1__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.1.dist-info/METADATA +64 -0
  70. asteroid_odyssey-1.6.1.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.1.dist-info}/WHEEL +0 -0
  149. {asteroid_odyssey-1.3.13.dist-info → asteroid_odyssey-1.6.1.dist-info}/top_level.txt +0 -0
@@ -1,516 +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 asteroid_odyssey.agents_v1_gen.models.health_check200_response import HealthCheck200Response
20
-
21
- from asteroid_odyssey.agents_v1_gen.api_client import ApiClient, RequestSerialized
22
- from asteroid_odyssey.agents_v1_gen.api_response import ApiResponse
23
- from asteroid_odyssey.agents_v1_gen.rest import RESTResponseType
24
-
25
-
26
- class APIApi:
27
- """NOTE: This class is auto generated by OpenAPI Generator
28
- Ref: https://openapi-generator.tech
29
-
30
- Do not edit the class manually.
31
- """
32
-
33
- def __init__(self, api_client=None) -> None:
34
- if api_client is None:
35
- api_client = ApiClient.get_default()
36
- self.api_client = api_client
37
-
38
-
39
- @validate_call
40
- def get_open_api(
41
- self,
42
- _request_timeout: Union[
43
- None,
44
- Annotated[StrictFloat, Field(gt=0)],
45
- Tuple[
46
- Annotated[StrictFloat, Field(gt=0)],
47
- Annotated[StrictFloat, Field(gt=0)]
48
- ]
49
- ] = None,
50
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
51
- _content_type: Optional[StrictStr] = None,
52
- _headers: Optional[Dict[StrictStr, Any]] = None,
53
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
54
- ) -> None:
55
- """Get the OpenAPI schema
56
-
57
-
58
- :param _request_timeout: timeout setting for this request. If one
59
- number provided, it will be total request
60
- timeout. It can also be a pair (tuple) of
61
- (connection, read) timeouts.
62
- :type _request_timeout: int, tuple(int, int), optional
63
- :param _request_auth: set to override the auth_settings for an a single
64
- request; this effectively ignores the
65
- authentication in the spec for a single request.
66
- :type _request_auth: dict, optional
67
- :param _content_type: force content-type for the request.
68
- :type _content_type: str, Optional
69
- :param _headers: set to override the headers for a single
70
- request; this effectively ignores the headers
71
- in the spec for a single request.
72
- :type _headers: dict, optional
73
- :param _host_index: set to override the host_index for a single
74
- request; this effectively ignores the host_index
75
- in the spec for a single request.
76
- :type _host_index: int, optional
77
- :return: Returns the result object.
78
- """ # noqa: E501
79
-
80
- _param = self._get_open_api_serialize(
81
- _request_auth=_request_auth,
82
- _content_type=_content_type,
83
- _headers=_headers,
84
- _host_index=_host_index
85
- )
86
-
87
- _response_types_map: Dict[str, Optional[str]] = {
88
- '200': None,
89
- }
90
- response_data = self.api_client.call_api(
91
- *_param,
92
- _request_timeout=_request_timeout
93
- )
94
- response_data.read()
95
- return self.api_client.response_deserialize(
96
- response_data=response_data,
97
- response_types_map=_response_types_map,
98
- ).data
99
-
100
-
101
- @validate_call
102
- def get_open_api_with_http_info(
103
- self,
104
- _request_timeout: Union[
105
- None,
106
- Annotated[StrictFloat, Field(gt=0)],
107
- Tuple[
108
- Annotated[StrictFloat, Field(gt=0)],
109
- Annotated[StrictFloat, Field(gt=0)]
110
- ]
111
- ] = None,
112
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
113
- _content_type: Optional[StrictStr] = None,
114
- _headers: Optional[Dict[StrictStr, Any]] = None,
115
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
116
- ) -> ApiResponse[None]:
117
- """Get the OpenAPI schema
118
-
119
-
120
- :param _request_timeout: timeout setting for this request. If one
121
- number provided, it will be total request
122
- timeout. It can also be a pair (tuple) of
123
- (connection, read) timeouts.
124
- :type _request_timeout: int, tuple(int, int), optional
125
- :param _request_auth: set to override the auth_settings for an a single
126
- request; this effectively ignores the
127
- authentication in the spec for a single request.
128
- :type _request_auth: dict, optional
129
- :param _content_type: force content-type for the request.
130
- :type _content_type: str, Optional
131
- :param _headers: set to override the headers for a single
132
- request; this effectively ignores the headers
133
- in the spec for a single request.
134
- :type _headers: dict, optional
135
- :param _host_index: set to override the host_index for a single
136
- request; this effectively ignores the host_index
137
- in the spec for a single request.
138
- :type _host_index: int, optional
139
- :return: Returns the result object.
140
- """ # noqa: E501
141
-
142
- _param = self._get_open_api_serialize(
143
- _request_auth=_request_auth,
144
- _content_type=_content_type,
145
- _headers=_headers,
146
- _host_index=_host_index
147
- )
148
-
149
- _response_types_map: Dict[str, Optional[str]] = {
150
- '200': None,
151
- }
152
- response_data = self.api_client.call_api(
153
- *_param,
154
- _request_timeout=_request_timeout
155
- )
156
- response_data.read()
157
- return self.api_client.response_deserialize(
158
- response_data=response_data,
159
- response_types_map=_response_types_map,
160
- )
161
-
162
-
163
- @validate_call
164
- def get_open_api_without_preload_content(
165
- self,
166
- _request_timeout: Union[
167
- None,
168
- Annotated[StrictFloat, Field(gt=0)],
169
- Tuple[
170
- Annotated[StrictFloat, Field(gt=0)],
171
- Annotated[StrictFloat, Field(gt=0)]
172
- ]
173
- ] = None,
174
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
175
- _content_type: Optional[StrictStr] = None,
176
- _headers: Optional[Dict[StrictStr, Any]] = None,
177
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
178
- ) -> RESTResponseType:
179
- """Get the OpenAPI schema
180
-
181
-
182
- :param _request_timeout: timeout setting for this request. If one
183
- number provided, it will be total request
184
- timeout. It can also be a pair (tuple) of
185
- (connection, read) timeouts.
186
- :type _request_timeout: int, tuple(int, int), optional
187
- :param _request_auth: set to override the auth_settings for an a single
188
- request; this effectively ignores the
189
- authentication in the spec for a single request.
190
- :type _request_auth: dict, optional
191
- :param _content_type: force content-type for the request.
192
- :type _content_type: str, Optional
193
- :param _headers: set to override the headers for a single
194
- request; this effectively ignores the headers
195
- in the spec for a single request.
196
- :type _headers: dict, optional
197
- :param _host_index: set to override the host_index for a single
198
- request; this effectively ignores the host_index
199
- in the spec for a single request.
200
- :type _host_index: int, optional
201
- :return: Returns the result object.
202
- """ # noqa: E501
203
-
204
- _param = self._get_open_api_serialize(
205
- _request_auth=_request_auth,
206
- _content_type=_content_type,
207
- _headers=_headers,
208
- _host_index=_host_index
209
- )
210
-
211
- _response_types_map: Dict[str, Optional[str]] = {
212
- '200': None,
213
- }
214
- response_data = self.api_client.call_api(
215
- *_param,
216
- _request_timeout=_request_timeout
217
- )
218
- return response_data.response
219
-
220
-
221
- def _get_open_api_serialize(
222
- self,
223
- _request_auth,
224
- _content_type,
225
- _headers,
226
- _host_index,
227
- ) -> RequestSerialized:
228
-
229
- _host = None
230
-
231
- _collection_formats: Dict[str, str] = {
232
- }
233
-
234
- _path_params: Dict[str, str] = {}
235
- _query_params: List[Tuple[str, str]] = []
236
- _header_params: Dict[str, Optional[str]] = _headers or {}
237
- _form_params: List[Tuple[str, str]] = []
238
- _files: Dict[
239
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
240
- ] = {}
241
- _body_params: Optional[bytes] = None
242
-
243
- # process the path parameters
244
- # process the query parameters
245
- # process the header parameters
246
- # process the form parameters
247
- # process the body parameter
248
-
249
-
250
-
251
-
252
- # authentication setting
253
- _auth_settings: List[str] = [
254
- ]
255
-
256
- return self.api_client.param_serialize(
257
- method='GET',
258
- resource_path='/openapi.yaml',
259
- path_params=_path_params,
260
- query_params=_query_params,
261
- header_params=_header_params,
262
- body=_body_params,
263
- post_params=_form_params,
264
- files=_files,
265
- auth_settings=_auth_settings,
266
- collection_formats=_collection_formats,
267
- _host=_host,
268
- _request_auth=_request_auth
269
- )
270
-
271
-
272
-
273
-
274
- @validate_call
275
- def health_check(
276
- self,
277
- _request_timeout: Union[
278
- None,
279
- Annotated[StrictFloat, Field(gt=0)],
280
- Tuple[
281
- Annotated[StrictFloat, Field(gt=0)],
282
- Annotated[StrictFloat, Field(gt=0)]
283
- ]
284
- ] = None,
285
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
286
- _content_type: Optional[StrictStr] = None,
287
- _headers: Optional[Dict[StrictStr, Any]] = None,
288
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
289
- ) -> HealthCheck200Response:
290
- """Check the health of the API
291
-
292
-
293
- :param _request_timeout: timeout setting for this request. If one
294
- number provided, it will be total request
295
- timeout. It can also be a pair (tuple) of
296
- (connection, read) timeouts.
297
- :type _request_timeout: int, tuple(int, int), optional
298
- :param _request_auth: set to override the auth_settings for an a single
299
- request; this effectively ignores the
300
- authentication in the spec for a single request.
301
- :type _request_auth: dict, optional
302
- :param _content_type: force content-type for the request.
303
- :type _content_type: str, Optional
304
- :param _headers: set to override the headers for a single
305
- request; this effectively ignores the headers
306
- in the spec for a single request.
307
- :type _headers: dict, optional
308
- :param _host_index: set to override the host_index for a single
309
- request; this effectively ignores the host_index
310
- in the spec for a single request.
311
- :type _host_index: int, optional
312
- :return: Returns the result object.
313
- """ # noqa: E501
314
-
315
- _param = self._health_check_serialize(
316
- _request_auth=_request_auth,
317
- _content_type=_content_type,
318
- _headers=_headers,
319
- _host_index=_host_index
320
- )
321
-
322
- _response_types_map: Dict[str, Optional[str]] = {
323
- '200': "HealthCheck200Response",
324
- '500': "HealthCheck500Response",
325
- }
326
- response_data = self.api_client.call_api(
327
- *_param,
328
- _request_timeout=_request_timeout
329
- )
330
- response_data.read()
331
- return self.api_client.response_deserialize(
332
- response_data=response_data,
333
- response_types_map=_response_types_map,
334
- ).data
335
-
336
-
337
- @validate_call
338
- def health_check_with_http_info(
339
- self,
340
- _request_timeout: Union[
341
- None,
342
- Annotated[StrictFloat, Field(gt=0)],
343
- Tuple[
344
- Annotated[StrictFloat, Field(gt=0)],
345
- Annotated[StrictFloat, Field(gt=0)]
346
- ]
347
- ] = None,
348
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
349
- _content_type: Optional[StrictStr] = None,
350
- _headers: Optional[Dict[StrictStr, Any]] = None,
351
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
352
- ) -> ApiResponse[HealthCheck200Response]:
353
- """Check the health of the API
354
-
355
-
356
- :param _request_timeout: timeout setting for this request. If one
357
- number provided, it will be total request
358
- timeout. It can also be a pair (tuple) of
359
- (connection, read) timeouts.
360
- :type _request_timeout: int, tuple(int, int), optional
361
- :param _request_auth: set to override the auth_settings for an a single
362
- request; this effectively ignores the
363
- authentication in the spec for a single request.
364
- :type _request_auth: dict, optional
365
- :param _content_type: force content-type for the request.
366
- :type _content_type: str, Optional
367
- :param _headers: set to override the headers for a single
368
- request; this effectively ignores the headers
369
- in the spec for a single request.
370
- :type _headers: dict, optional
371
- :param _host_index: set to override the host_index for a single
372
- request; this effectively ignores the host_index
373
- in the spec for a single request.
374
- :type _host_index: int, optional
375
- :return: Returns the result object.
376
- """ # noqa: E501
377
-
378
- _param = self._health_check_serialize(
379
- _request_auth=_request_auth,
380
- _content_type=_content_type,
381
- _headers=_headers,
382
- _host_index=_host_index
383
- )
384
-
385
- _response_types_map: Dict[str, Optional[str]] = {
386
- '200': "HealthCheck200Response",
387
- '500': "HealthCheck500Response",
388
- }
389
- response_data = self.api_client.call_api(
390
- *_param,
391
- _request_timeout=_request_timeout
392
- )
393
- response_data.read()
394
- return self.api_client.response_deserialize(
395
- response_data=response_data,
396
- response_types_map=_response_types_map,
397
- )
398
-
399
-
400
- @validate_call
401
- def health_check_without_preload_content(
402
- self,
403
- _request_timeout: Union[
404
- None,
405
- Annotated[StrictFloat, Field(gt=0)],
406
- Tuple[
407
- Annotated[StrictFloat, Field(gt=0)],
408
- Annotated[StrictFloat, Field(gt=0)]
409
- ]
410
- ] = None,
411
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
412
- _content_type: Optional[StrictStr] = None,
413
- _headers: Optional[Dict[StrictStr, Any]] = None,
414
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
415
- ) -> RESTResponseType:
416
- """Check the health of the API
417
-
418
-
419
- :param _request_timeout: timeout setting for this request. If one
420
- number provided, it will be total request
421
- timeout. It can also be a pair (tuple) of
422
- (connection, read) timeouts.
423
- :type _request_timeout: int, tuple(int, int), optional
424
- :param _request_auth: set to override the auth_settings for an a single
425
- request; this effectively ignores the
426
- authentication in the spec for a single request.
427
- :type _request_auth: dict, optional
428
- :param _content_type: force content-type for the request.
429
- :type _content_type: str, Optional
430
- :param _headers: set to override the headers for a single
431
- request; this effectively ignores the headers
432
- in the spec for a single request.
433
- :type _headers: dict, optional
434
- :param _host_index: set to override the host_index for a single
435
- request; this effectively ignores the host_index
436
- in the spec for a single request.
437
- :type _host_index: int, optional
438
- :return: Returns the result object.
439
- """ # noqa: E501
440
-
441
- _param = self._health_check_serialize(
442
- _request_auth=_request_auth,
443
- _content_type=_content_type,
444
- _headers=_headers,
445
- _host_index=_host_index
446
- )
447
-
448
- _response_types_map: Dict[str, Optional[str]] = {
449
- '200': "HealthCheck200Response",
450
- '500': "HealthCheck500Response",
451
- }
452
- response_data = self.api_client.call_api(
453
- *_param,
454
- _request_timeout=_request_timeout
455
- )
456
- return response_data.response
457
-
458
-
459
- def _health_check_serialize(
460
- self,
461
- _request_auth,
462
- _content_type,
463
- _headers,
464
- _host_index,
465
- ) -> RequestSerialized:
466
-
467
- _host = None
468
-
469
- _collection_formats: Dict[str, str] = {
470
- }
471
-
472
- _path_params: Dict[str, str] = {}
473
- _query_params: List[Tuple[str, str]] = []
474
- _header_params: Dict[str, Optional[str]] = _headers or {}
475
- _form_params: List[Tuple[str, str]] = []
476
- _files: Dict[
477
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
478
- ] = {}
479
- _body_params: Optional[bytes] = None
480
-
481
- # process the path parameters
482
- # process the query parameters
483
- # process the header parameters
484
- # process the form parameters
485
- # process the body parameter
486
-
487
-
488
- # set the HTTP header `Accept`
489
- if 'Accept' not in _header_params:
490
- _header_params['Accept'] = self.api_client.select_header_accept(
491
- [
492
- 'application/json'
493
- ]
494
- )
495
-
496
-
497
- # authentication setting
498
- _auth_settings: List[str] = [
499
- ]
500
-
501
- return self.api_client.param_serialize(
502
- method='GET',
503
- resource_path='/health',
504
- path_params=_path_params,
505
- query_params=_query_params,
506
- header_params=_header_params,
507
- body=_body_params,
508
- post_params=_form_params,
509
- files=_files,
510
- auth_settings=_auth_settings,
511
- collection_formats=_collection_formats,
512
- _host=_host,
513
- _request_auth=_request_auth
514
- )
515
-
516
-