asteroid-odyssey 1.3.12__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.
- asteroid_odyssey/__init__.py +254 -48
- asteroid_odyssey/api/__init__.py +8 -0
- asteroid_odyssey/{agents_v1_gen/api/agent_profile_api.py → api/agent_profiles_api.py} +414 -281
- asteroid_odyssey/{agents_v2_gen/api → api}/agents_api.py +30 -30
- asteroid_odyssey/{agents_v2_gen/api → api}/execution_api.py +32 -49
- asteroid_odyssey/{agents_v2_gen/api → api}/files_api.py +5 -5
- asteroid_odyssey/{agents_v2_gen/api_client.py → api_client.py} +10 -6
- asteroid_odyssey/{agents_v2_gen/configuration.py → configuration.py} +11 -4
- asteroid_odyssey/models/__init__.py +118 -0
- asteroid_odyssey/{agents_v2_gen/models → models}/agent_list200_response.py +1 -1
- asteroid_odyssey/models/agent_profile_clear_browser_cache200_response.py +87 -0
- asteroid_odyssey/models/agent_profiles_list200_response.py +101 -0
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_agent_base.py +3 -3
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_agent_execute_agent_request.py +7 -5
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity.py +4 -4
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_action_completed_info.py +65 -37
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_action_completed_payload.py +8 -8
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_action_failed_payload.py +9 -9
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_action_started_info.py +50 -22
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_action_started_payload.py +10 -10
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_file_added_payload.py +6 -6
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_payload_union.py +14 -14
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_playwright_script_generated_payload.py +9 -9
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_status_changed_payload.py +19 -19
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_transitioned_node_payload.py +6 -6
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_workflow_updated_payload.py +1 -1
- asteroid_odyssey/models/agents_execution_agent_query_context_completed_details.py +98 -0
- asteroid_odyssey/models/agents_execution_agent_query_context_started_details.py +96 -0
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_cancelled_payload.py +1 -1
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_comment.py +10 -10
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_completed_payload.py +4 -4
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_execution_result.py +6 -6
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_ext_api_call_completed_details.py +6 -6
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_failed_payload.py +5 -5
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_file_read_completed_details.py +3 -3
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_human_label.py +7 -7
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_list_item.py +33 -37
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_llm_call_started_details.py +1 -1
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_obs_snapshot_with_selectors_completed_details.py +4 -4
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scratchpad_write_completed_details.py +7 -7
- asteroid_odyssey/models/agents_execution_script_eval_completed_details.py +101 -0
- asteroid_odyssey/models/agents_execution_script_eval_started_details.py +100 -0
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_script_hybrid_playwright_completed_details.py +6 -6
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_script_pad_run_function_completed_details.py +6 -6
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_script_playwright_completed_details.py +6 -6
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scriptpad_read_started_details.py +4 -4
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scriptpad_run_function_started_details.py +4 -4
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scriptpad_search_replace_completed_details.py +5 -5
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scriptpad_search_replace_started_details.py +4 -4
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scriptpad_write_completed_details.py +4 -4
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_terminal_payload.py +4 -4
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_util_get_datetime_completed_details.py +4 -4
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_workflow_update.py +13 -13
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_files_file.py +11 -11
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_files_temp_files_response.py +1 -1
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_graph_models_nodes_properties_playwright_script_llm_var.py +5 -5
- asteroid_odyssey/{agents_v1_gen/models/agent_profile.py → models/agents_profile_agent_profile.py} +37 -32
- asteroid_odyssey/{agents_v1_gen/models/cookie.py → models/agents_profile_cookie.py} +21 -26
- asteroid_odyssey/{agents_v1_gen/models/country_code.py → models/agents_profile_country_code.py} +5 -5
- asteroid_odyssey/{agents_v1_gen/models/create_agent_profile_request.py → models/agents_profile_create_agent_profile_request.py} +33 -28
- asteroid_odyssey/{agents_v1_gen/models/credential.py → models/agents_profile_credential.py} +13 -13
- asteroid_odyssey/models/agents_profile_operating_system.py +37 -0
- asteroid_odyssey/models/agents_profile_proxy_type.py +38 -0
- asteroid_odyssey/models/agents_profile_same_site.py +38 -0
- asteroid_odyssey/models/agents_profile_sort_field.py +38 -0
- asteroid_odyssey/models/agents_profile_update_agent_profile_request.py +129 -0
- asteroid_odyssey/{agents_v2_gen/models → models}/executions_list200_response.py +1 -1
- asteroid_odyssey/{agents_v2_gen/rest.py → rest.py} +2 -1
- asteroid_odyssey-1.6.0.dist-info/METADATA +65 -0
- asteroid_odyssey-1.6.0.dist-info/RECORD +119 -0
- asteroid_odyssey/agents_v1_gen/__init__.py +0 -53
- asteroid_odyssey/agents_v1_gen/api/__init__.py +0 -7
- asteroid_odyssey/agents_v1_gen/api/api_api.py +0 -516
- asteroid_odyssey/agents_v1_gen/api/execution_api.py +0 -1449
- asteroid_odyssey/agents_v1_gen/api_client.py +0 -797
- asteroid_odyssey/agents_v1_gen/configuration.py +0 -599
- asteroid_odyssey/agents_v1_gen/exceptions.py +0 -216
- asteroid_odyssey/agents_v1_gen/models/__init__.py +0 -34
- asteroid_odyssey/agents_v1_gen/models/browser_session_recording_response.py +0 -87
- asteroid_odyssey/agents_v1_gen/models/delete_agent_profile200_response.py +0 -87
- asteroid_odyssey/agents_v1_gen/models/error_response.py +0 -87
- asteroid_odyssey/agents_v1_gen/models/execution_response.py +0 -87
- asteroid_odyssey/agents_v1_gen/models/execution_result.py +0 -101
- asteroid_odyssey/agents_v1_gen/models/execution_result_response.py +0 -100
- asteroid_odyssey/agents_v1_gen/models/execution_status_response.py +0 -95
- asteroid_odyssey/agents_v1_gen/models/health_check200_response.py +0 -87
- asteroid_odyssey/agents_v1_gen/models/health_check500_response.py +0 -87
- asteroid_odyssey/agents_v1_gen/models/proxy_type.py +0 -38
- asteroid_odyssey/agents_v1_gen/models/status.py +0 -43
- asteroid_odyssey/agents_v1_gen/models/structured_agent_execution_request.py +0 -89
- asteroid_odyssey/agents_v1_gen/models/update_agent_profile_request.py +0 -126
- asteroid_odyssey/agents_v1_gen/rest.py +0 -257
- asteroid_odyssey/agents_v2_gen/__init__.py +0 -121
- asteroid_odyssey/agents_v2_gen/api/__init__.py +0 -7
- asteroid_odyssey/agents_v2_gen/api_response.py +0 -21
- asteroid_odyssey/agents_v2_gen/models/__init__.py +0 -102
- asteroid_odyssey/agents_v2_gen/py.typed +0 -0
- asteroid_odyssey/client.py +0 -1629
- asteroid_odyssey-1.3.12.dist-info/METADATA +0 -214
- asteroid_odyssey-1.3.12.dist-info/RECORD +0 -134
- /asteroid_odyssey/{agents_v1_gen/api_response.py → api_response.py} +0 -0
- /asteroid_odyssey/{agents_v2_gen/exceptions.py → exceptions.py} +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_agent_execute_agent_response.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_agent_sort_field.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_action_name.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_generic_payload.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_reasoning_payload.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_step_completed_payload.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_step_started_payload.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_user_message_received_payload.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_awaiting_confirmation_payload.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_cancel_reason.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_element_file_upload_completed_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_ext_get_mail_completed_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_file_list_completed_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_file_stage_completed_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_llm_call_purpose.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_nav_to_completed_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_nav_to_started_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_node_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_paused_payload.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_rules_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scratchpad_read_completed_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scratchpad_read_started_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scratchpad_write_started_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_script_hybrid_playwright_started_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_script_playwright_started_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scriptpad_read_completed_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_sort_field.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_status.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_transition_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_update_type.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_user_messages_add_text_body.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_util_get_datetime_started_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_files_temp_file.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_graph_models_nodes_properties_playwright_script_llm_var_type.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_graph_models_transitions_transition_type.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/common_bad_request_error_body.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/common_error.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/common_forbidden_error_body.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/common_internal_server_error_body.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/common_not_found_error_body.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/common_os_error.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/common_sort_direction.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/common_unauthorized_error_body.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/version.py +0 -0
- /asteroid_odyssey/{agents_v1_gen/py.typed → py.typed} +0 -0
- {asteroid_odyssey-1.3.12.dist-info → asteroid_odyssey-1.6.0.dist-info}/WHEEL +0 -0
- {asteroid_odyssey-1.3.12.dist-info → asteroid_odyssey-1.6.0.dist-info}/top_level.txt +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
Agent Service
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: v1
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -16,20 +16,23 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
16
16
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
|
-
from pydantic import Field, StrictStr
|
|
20
|
-
from typing import
|
|
19
|
+
from pydantic import Field, StrictInt, StrictStr
|
|
20
|
+
from typing import Optional
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
|
-
from asteroid_odyssey.
|
|
23
|
-
from asteroid_odyssey.
|
|
24
|
-
from asteroid_odyssey.
|
|
25
|
-
from asteroid_odyssey.
|
|
22
|
+
from asteroid_odyssey.models.agent_profile_clear_browser_cache200_response import AgentProfileClearBrowserCache200Response
|
|
23
|
+
from asteroid_odyssey.models.agent_profiles_list200_response import AgentProfilesList200Response
|
|
24
|
+
from asteroid_odyssey.models.agents_profile_agent_profile import AgentsProfileAgentProfile
|
|
25
|
+
from asteroid_odyssey.models.agents_profile_create_agent_profile_request import AgentsProfileCreateAgentProfileRequest
|
|
26
|
+
from asteroid_odyssey.models.agents_profile_sort_field import AgentsProfileSortField
|
|
27
|
+
from asteroid_odyssey.models.agents_profile_update_agent_profile_request import AgentsProfileUpdateAgentProfileRequest
|
|
28
|
+
from asteroid_odyssey.models.common_sort_direction import CommonSortDirection
|
|
26
29
|
|
|
27
|
-
from asteroid_odyssey.
|
|
28
|
-
from asteroid_odyssey.
|
|
29
|
-
from asteroid_odyssey.
|
|
30
|
+
from asteroid_odyssey.api_client import ApiClient, RequestSerialized
|
|
31
|
+
from asteroid_odyssey.api_response import ApiResponse
|
|
32
|
+
from asteroid_odyssey.rest import RESTResponseType
|
|
30
33
|
|
|
31
34
|
|
|
32
|
-
class
|
|
35
|
+
class AgentProfilesApi:
|
|
33
36
|
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
34
37
|
Ref: https://openapi-generator.tech
|
|
35
38
|
|
|
@@ -43,9 +46,9 @@ class AgentProfileApi:
|
|
|
43
46
|
|
|
44
47
|
|
|
45
48
|
@validate_call
|
|
46
|
-
def
|
|
49
|
+
def agent_profile_clear_browser_cache(
|
|
47
50
|
self,
|
|
48
|
-
|
|
51
|
+
profile_id: Annotated[StrictStr, Field(description="The ID of the agent profile")],
|
|
49
52
|
_request_timeout: Union[
|
|
50
53
|
None,
|
|
51
54
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -58,13 +61,13 @@ class AgentProfileApi:
|
|
|
58
61
|
_content_type: Optional[StrictStr] = None,
|
|
59
62
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
60
63
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
61
|
-
) ->
|
|
62
|
-
"""
|
|
64
|
+
) -> AgentProfileClearBrowserCache200Response:
|
|
65
|
+
"""Clear Browser Cache
|
|
63
66
|
|
|
64
|
-
|
|
67
|
+
Clears the browser profile/cache for the specified agent profile by deleting its browser profile
|
|
65
68
|
|
|
66
|
-
:param
|
|
67
|
-
:type
|
|
69
|
+
:param profile_id: The ID of the agent profile (required)
|
|
70
|
+
:type profile_id: str
|
|
68
71
|
:param _request_timeout: timeout setting for this request. If one
|
|
69
72
|
number provided, it will be total request
|
|
70
73
|
timeout. It can also be a pair (tuple) of
|
|
@@ -87,8 +90,8 @@ class AgentProfileApi:
|
|
|
87
90
|
:return: Returns the result object.
|
|
88
91
|
""" # noqa: E501
|
|
89
92
|
|
|
90
|
-
_param = self.
|
|
91
|
-
|
|
93
|
+
_param = self._agent_profile_clear_browser_cache_serialize(
|
|
94
|
+
profile_id=profile_id,
|
|
92
95
|
_request_auth=_request_auth,
|
|
93
96
|
_content_type=_content_type,
|
|
94
97
|
_headers=_headers,
|
|
@@ -96,11 +99,12 @@ class AgentProfileApi:
|
|
|
96
99
|
)
|
|
97
100
|
|
|
98
101
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
99
|
-
'
|
|
100
|
-
'400': "
|
|
101
|
-
'401': "
|
|
102
|
-
'403': "
|
|
103
|
-
'
|
|
102
|
+
'200': "AgentProfileClearBrowserCache200Response",
|
|
103
|
+
'400': "CommonBadRequestErrorBody",
|
|
104
|
+
'401': "CommonUnauthorizedErrorBody",
|
|
105
|
+
'403': "CommonForbiddenErrorBody",
|
|
106
|
+
'404': "CommonNotFoundErrorBody",
|
|
107
|
+
'500': "CommonInternalServerErrorBody",
|
|
104
108
|
}
|
|
105
109
|
response_data = self.api_client.call_api(
|
|
106
110
|
*_param,
|
|
@@ -114,9 +118,9 @@ class AgentProfileApi:
|
|
|
114
118
|
|
|
115
119
|
|
|
116
120
|
@validate_call
|
|
117
|
-
def
|
|
121
|
+
def agent_profile_clear_browser_cache_with_http_info(
|
|
118
122
|
self,
|
|
119
|
-
|
|
123
|
+
profile_id: Annotated[StrictStr, Field(description="The ID of the agent profile")],
|
|
120
124
|
_request_timeout: Union[
|
|
121
125
|
None,
|
|
122
126
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -129,13 +133,13 @@ class AgentProfileApi:
|
|
|
129
133
|
_content_type: Optional[StrictStr] = None,
|
|
130
134
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
131
135
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
132
|
-
) -> ApiResponse[
|
|
133
|
-
"""
|
|
136
|
+
) -> ApiResponse[AgentProfileClearBrowserCache200Response]:
|
|
137
|
+
"""Clear Browser Cache
|
|
134
138
|
|
|
135
|
-
|
|
139
|
+
Clears the browser profile/cache for the specified agent profile by deleting its browser profile
|
|
136
140
|
|
|
137
|
-
:param
|
|
138
|
-
:type
|
|
141
|
+
:param profile_id: The ID of the agent profile (required)
|
|
142
|
+
:type profile_id: str
|
|
139
143
|
:param _request_timeout: timeout setting for this request. If one
|
|
140
144
|
number provided, it will be total request
|
|
141
145
|
timeout. It can also be a pair (tuple) of
|
|
@@ -158,8 +162,8 @@ class AgentProfileApi:
|
|
|
158
162
|
:return: Returns the result object.
|
|
159
163
|
""" # noqa: E501
|
|
160
164
|
|
|
161
|
-
_param = self.
|
|
162
|
-
|
|
165
|
+
_param = self._agent_profile_clear_browser_cache_serialize(
|
|
166
|
+
profile_id=profile_id,
|
|
163
167
|
_request_auth=_request_auth,
|
|
164
168
|
_content_type=_content_type,
|
|
165
169
|
_headers=_headers,
|
|
@@ -167,11 +171,12 @@ class AgentProfileApi:
|
|
|
167
171
|
)
|
|
168
172
|
|
|
169
173
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
170
|
-
'
|
|
171
|
-
'400': "
|
|
172
|
-
'401': "
|
|
173
|
-
'403': "
|
|
174
|
-
'
|
|
174
|
+
'200': "AgentProfileClearBrowserCache200Response",
|
|
175
|
+
'400': "CommonBadRequestErrorBody",
|
|
176
|
+
'401': "CommonUnauthorizedErrorBody",
|
|
177
|
+
'403': "CommonForbiddenErrorBody",
|
|
178
|
+
'404': "CommonNotFoundErrorBody",
|
|
179
|
+
'500': "CommonInternalServerErrorBody",
|
|
175
180
|
}
|
|
176
181
|
response_data = self.api_client.call_api(
|
|
177
182
|
*_param,
|
|
@@ -185,9 +190,9 @@ class AgentProfileApi:
|
|
|
185
190
|
|
|
186
191
|
|
|
187
192
|
@validate_call
|
|
188
|
-
def
|
|
193
|
+
def agent_profile_clear_browser_cache_without_preload_content(
|
|
189
194
|
self,
|
|
190
|
-
|
|
195
|
+
profile_id: Annotated[StrictStr, Field(description="The ID of the agent profile")],
|
|
191
196
|
_request_timeout: Union[
|
|
192
197
|
None,
|
|
193
198
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -201,12 +206,12 @@ class AgentProfileApi:
|
|
|
201
206
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
202
207
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
203
208
|
) -> RESTResponseType:
|
|
204
|
-
"""
|
|
209
|
+
"""Clear Browser Cache
|
|
205
210
|
|
|
206
|
-
|
|
211
|
+
Clears the browser profile/cache for the specified agent profile by deleting its browser profile
|
|
207
212
|
|
|
208
|
-
:param
|
|
209
|
-
:type
|
|
213
|
+
:param profile_id: The ID of the agent profile (required)
|
|
214
|
+
:type profile_id: str
|
|
210
215
|
:param _request_timeout: timeout setting for this request. If one
|
|
211
216
|
number provided, it will be total request
|
|
212
217
|
timeout. It can also be a pair (tuple) of
|
|
@@ -229,8 +234,8 @@ class AgentProfileApi:
|
|
|
229
234
|
:return: Returns the result object.
|
|
230
235
|
""" # noqa: E501
|
|
231
236
|
|
|
232
|
-
_param = self.
|
|
233
|
-
|
|
237
|
+
_param = self._agent_profile_clear_browser_cache_serialize(
|
|
238
|
+
profile_id=profile_id,
|
|
234
239
|
_request_auth=_request_auth,
|
|
235
240
|
_content_type=_content_type,
|
|
236
241
|
_headers=_headers,
|
|
@@ -238,11 +243,12 @@ class AgentProfileApi:
|
|
|
238
243
|
)
|
|
239
244
|
|
|
240
245
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
241
|
-
'
|
|
242
|
-
'400': "
|
|
243
|
-
'401': "
|
|
244
|
-
'403': "
|
|
245
|
-
'
|
|
246
|
+
'200': "AgentProfileClearBrowserCache200Response",
|
|
247
|
+
'400': "CommonBadRequestErrorBody",
|
|
248
|
+
'401': "CommonUnauthorizedErrorBody",
|
|
249
|
+
'403': "CommonForbiddenErrorBody",
|
|
250
|
+
'404': "CommonNotFoundErrorBody",
|
|
251
|
+
'500': "CommonInternalServerErrorBody",
|
|
246
252
|
}
|
|
247
253
|
response_data = self.api_client.call_api(
|
|
248
254
|
*_param,
|
|
@@ -251,9 +257,9 @@ class AgentProfileApi:
|
|
|
251
257
|
return response_data.response
|
|
252
258
|
|
|
253
259
|
|
|
254
|
-
def
|
|
260
|
+
def _agent_profile_clear_browser_cache_serialize(
|
|
255
261
|
self,
|
|
256
|
-
|
|
262
|
+
profile_id,
|
|
257
263
|
_request_auth,
|
|
258
264
|
_content_type,
|
|
259
265
|
_headers,
|
|
@@ -275,12 +281,12 @@ class AgentProfileApi:
|
|
|
275
281
|
_body_params: Optional[bytes] = None
|
|
276
282
|
|
|
277
283
|
# process the path parameters
|
|
284
|
+
if profile_id is not None:
|
|
285
|
+
_path_params['profileId'] = profile_id
|
|
278
286
|
# process the query parameters
|
|
279
287
|
# process the header parameters
|
|
280
288
|
# process the form parameters
|
|
281
289
|
# process the body parameter
|
|
282
|
-
if create_agent_profile_request is not None:
|
|
283
|
-
_body_params = create_agent_profile_request
|
|
284
290
|
|
|
285
291
|
|
|
286
292
|
# set the HTTP header `Accept`
|
|
@@ -291,19 +297,6 @@ class AgentProfileApi:
|
|
|
291
297
|
]
|
|
292
298
|
)
|
|
293
299
|
|
|
294
|
-
# set the HTTP header `Content-Type`
|
|
295
|
-
if _content_type:
|
|
296
|
-
_header_params['Content-Type'] = _content_type
|
|
297
|
-
else:
|
|
298
|
-
_default_content_type = (
|
|
299
|
-
self.api_client.select_header_content_type(
|
|
300
|
-
[
|
|
301
|
-
'application/json'
|
|
302
|
-
]
|
|
303
|
-
)
|
|
304
|
-
)
|
|
305
|
-
if _default_content_type is not None:
|
|
306
|
-
_header_params['Content-Type'] = _default_content_type
|
|
307
300
|
|
|
308
301
|
# authentication setting
|
|
309
302
|
_auth_settings: List[str] = [
|
|
@@ -311,8 +304,8 @@ class AgentProfileApi:
|
|
|
311
304
|
]
|
|
312
305
|
|
|
313
306
|
return self.api_client.param_serialize(
|
|
314
|
-
method='
|
|
315
|
-
resource_path='/agent-profiles',
|
|
307
|
+
method='DELETE',
|
|
308
|
+
resource_path='/agent-profiles/{profileId}/clear-browser-cache',
|
|
316
309
|
path_params=_path_params,
|
|
317
310
|
query_params=_query_params,
|
|
318
311
|
header_params=_header_params,
|
|
@@ -329,7 +322,7 @@ class AgentProfileApi:
|
|
|
329
322
|
|
|
330
323
|
|
|
331
324
|
@validate_call
|
|
332
|
-
def
|
|
325
|
+
def agent_profile_delete(
|
|
333
326
|
self,
|
|
334
327
|
profile_id: Annotated[StrictStr, Field(description="The ID of the agent profile")],
|
|
335
328
|
_request_timeout: Union[
|
|
@@ -344,10 +337,10 @@ class AgentProfileApi:
|
|
|
344
337
|
_content_type: Optional[StrictStr] = None,
|
|
345
338
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
346
339
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
347
|
-
) ->
|
|
348
|
-
"""Delete
|
|
340
|
+
) -> None:
|
|
341
|
+
"""Delete Agent Profile
|
|
349
342
|
|
|
350
|
-
|
|
343
|
+
Delete an agent profile
|
|
351
344
|
|
|
352
345
|
:param profile_id: The ID of the agent profile (required)
|
|
353
346
|
:type profile_id: str
|
|
@@ -373,7 +366,7 @@ class AgentProfileApi:
|
|
|
373
366
|
:return: Returns the result object.
|
|
374
367
|
""" # noqa: E501
|
|
375
368
|
|
|
376
|
-
_param = self.
|
|
369
|
+
_param = self._agent_profile_delete_serialize(
|
|
377
370
|
profile_id=profile_id,
|
|
378
371
|
_request_auth=_request_auth,
|
|
379
372
|
_content_type=_content_type,
|
|
@@ -382,11 +375,12 @@ class AgentProfileApi:
|
|
|
382
375
|
)
|
|
383
376
|
|
|
384
377
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
385
|
-
'
|
|
386
|
-
'
|
|
387
|
-
'
|
|
388
|
-
'
|
|
389
|
-
'
|
|
378
|
+
'204': None,
|
|
379
|
+
'400': "CommonBadRequestErrorBody",
|
|
380
|
+
'401': "CommonUnauthorizedErrorBody",
|
|
381
|
+
'403': "CommonForbiddenErrorBody",
|
|
382
|
+
'404': "CommonNotFoundErrorBody",
|
|
383
|
+
'500': "CommonInternalServerErrorBody",
|
|
390
384
|
}
|
|
391
385
|
response_data = self.api_client.call_api(
|
|
392
386
|
*_param,
|
|
@@ -400,7 +394,7 @@ class AgentProfileApi:
|
|
|
400
394
|
|
|
401
395
|
|
|
402
396
|
@validate_call
|
|
403
|
-
def
|
|
397
|
+
def agent_profile_delete_with_http_info(
|
|
404
398
|
self,
|
|
405
399
|
profile_id: Annotated[StrictStr, Field(description="The ID of the agent profile")],
|
|
406
400
|
_request_timeout: Union[
|
|
@@ -415,10 +409,10 @@ class AgentProfileApi:
|
|
|
415
409
|
_content_type: Optional[StrictStr] = None,
|
|
416
410
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
417
411
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
418
|
-
) -> ApiResponse[
|
|
419
|
-
"""Delete
|
|
412
|
+
) -> ApiResponse[None]:
|
|
413
|
+
"""Delete Agent Profile
|
|
420
414
|
|
|
421
|
-
|
|
415
|
+
Delete an agent profile
|
|
422
416
|
|
|
423
417
|
:param profile_id: The ID of the agent profile (required)
|
|
424
418
|
:type profile_id: str
|
|
@@ -444,7 +438,7 @@ class AgentProfileApi:
|
|
|
444
438
|
:return: Returns the result object.
|
|
445
439
|
""" # noqa: E501
|
|
446
440
|
|
|
447
|
-
_param = self.
|
|
441
|
+
_param = self._agent_profile_delete_serialize(
|
|
448
442
|
profile_id=profile_id,
|
|
449
443
|
_request_auth=_request_auth,
|
|
450
444
|
_content_type=_content_type,
|
|
@@ -453,11 +447,12 @@ class AgentProfileApi:
|
|
|
453
447
|
)
|
|
454
448
|
|
|
455
449
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
456
|
-
'
|
|
457
|
-
'
|
|
458
|
-
'
|
|
459
|
-
'
|
|
460
|
-
'
|
|
450
|
+
'204': None,
|
|
451
|
+
'400': "CommonBadRequestErrorBody",
|
|
452
|
+
'401': "CommonUnauthorizedErrorBody",
|
|
453
|
+
'403': "CommonForbiddenErrorBody",
|
|
454
|
+
'404': "CommonNotFoundErrorBody",
|
|
455
|
+
'500': "CommonInternalServerErrorBody",
|
|
461
456
|
}
|
|
462
457
|
response_data = self.api_client.call_api(
|
|
463
458
|
*_param,
|
|
@@ -471,7 +466,7 @@ class AgentProfileApi:
|
|
|
471
466
|
|
|
472
467
|
|
|
473
468
|
@validate_call
|
|
474
|
-
def
|
|
469
|
+
def agent_profile_delete_without_preload_content(
|
|
475
470
|
self,
|
|
476
471
|
profile_id: Annotated[StrictStr, Field(description="The ID of the agent profile")],
|
|
477
472
|
_request_timeout: Union[
|
|
@@ -487,9 +482,9 @@ class AgentProfileApi:
|
|
|
487
482
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
488
483
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
489
484
|
) -> RESTResponseType:
|
|
490
|
-
"""Delete
|
|
485
|
+
"""Delete Agent Profile
|
|
491
486
|
|
|
492
|
-
|
|
487
|
+
Delete an agent profile
|
|
493
488
|
|
|
494
489
|
:param profile_id: The ID of the agent profile (required)
|
|
495
490
|
:type profile_id: str
|
|
@@ -515,7 +510,7 @@ class AgentProfileApi:
|
|
|
515
510
|
:return: Returns the result object.
|
|
516
511
|
""" # noqa: E501
|
|
517
512
|
|
|
518
|
-
_param = self.
|
|
513
|
+
_param = self._agent_profile_delete_serialize(
|
|
519
514
|
profile_id=profile_id,
|
|
520
515
|
_request_auth=_request_auth,
|
|
521
516
|
_content_type=_content_type,
|
|
@@ -524,11 +519,12 @@ class AgentProfileApi:
|
|
|
524
519
|
)
|
|
525
520
|
|
|
526
521
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
527
|
-
'
|
|
528
|
-
'
|
|
529
|
-
'
|
|
530
|
-
'
|
|
531
|
-
'
|
|
522
|
+
'204': None,
|
|
523
|
+
'400': "CommonBadRequestErrorBody",
|
|
524
|
+
'401': "CommonUnauthorizedErrorBody",
|
|
525
|
+
'403': "CommonForbiddenErrorBody",
|
|
526
|
+
'404': "CommonNotFoundErrorBody",
|
|
527
|
+
'500': "CommonInternalServerErrorBody",
|
|
532
528
|
}
|
|
533
529
|
response_data = self.api_client.call_api(
|
|
534
530
|
*_param,
|
|
@@ -537,7 +533,7 @@ class AgentProfileApi:
|
|
|
537
533
|
return response_data.response
|
|
538
534
|
|
|
539
535
|
|
|
540
|
-
def
|
|
536
|
+
def _agent_profile_delete_serialize(
|
|
541
537
|
self,
|
|
542
538
|
profile_id,
|
|
543
539
|
_request_auth,
|
|
@@ -562,7 +558,7 @@ class AgentProfileApi:
|
|
|
562
558
|
|
|
563
559
|
# process the path parameters
|
|
564
560
|
if profile_id is not None:
|
|
565
|
-
_path_params['
|
|
561
|
+
_path_params['profileId'] = profile_id
|
|
566
562
|
# process the query parameters
|
|
567
563
|
# process the header parameters
|
|
568
564
|
# process the form parameters
|
|
@@ -585,7 +581,7 @@ class AgentProfileApi:
|
|
|
585
581
|
|
|
586
582
|
return self.api_client.param_serialize(
|
|
587
583
|
method='DELETE',
|
|
588
|
-
resource_path='/agent-profiles/{
|
|
584
|
+
resource_path='/agent-profiles/{profileId}',
|
|
589
585
|
path_params=_path_params,
|
|
590
586
|
query_params=_query_params,
|
|
591
587
|
header_params=_header_params,
|
|
@@ -602,7 +598,7 @@ class AgentProfileApi:
|
|
|
602
598
|
|
|
603
599
|
|
|
604
600
|
@validate_call
|
|
605
|
-
def
|
|
601
|
+
def agent_profile_get(
|
|
606
602
|
self,
|
|
607
603
|
profile_id: Annotated[StrictStr, Field(description="The ID of the agent profile")],
|
|
608
604
|
_request_timeout: Union[
|
|
@@ -617,10 +613,10 @@ class AgentProfileApi:
|
|
|
617
613
|
_content_type: Optional[StrictStr] = None,
|
|
618
614
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
619
615
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
620
|
-
) ->
|
|
621
|
-
"""Get
|
|
616
|
+
) -> AgentsProfileAgentProfile:
|
|
617
|
+
"""Get Agent Profile
|
|
622
618
|
|
|
623
|
-
|
|
619
|
+
Get an agent profile by ID
|
|
624
620
|
|
|
625
621
|
:param profile_id: The ID of the agent profile (required)
|
|
626
622
|
:type profile_id: str
|
|
@@ -646,7 +642,7 @@ class AgentProfileApi:
|
|
|
646
642
|
:return: Returns the result object.
|
|
647
643
|
""" # noqa: E501
|
|
648
644
|
|
|
649
|
-
_param = self.
|
|
645
|
+
_param = self._agent_profile_get_serialize(
|
|
650
646
|
profile_id=profile_id,
|
|
651
647
|
_request_auth=_request_auth,
|
|
652
648
|
_content_type=_content_type,
|
|
@@ -655,11 +651,12 @@ class AgentProfileApi:
|
|
|
655
651
|
)
|
|
656
652
|
|
|
657
653
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
658
|
-
'200': "
|
|
659
|
-
'
|
|
660
|
-
'
|
|
661
|
-
'
|
|
662
|
-
'
|
|
654
|
+
'200': "AgentsProfileAgentProfile",
|
|
655
|
+
'400': "CommonBadRequestErrorBody",
|
|
656
|
+
'401': "CommonUnauthorizedErrorBody",
|
|
657
|
+
'403': "CommonForbiddenErrorBody",
|
|
658
|
+
'404': "CommonNotFoundErrorBody",
|
|
659
|
+
'500': "CommonInternalServerErrorBody",
|
|
663
660
|
}
|
|
664
661
|
response_data = self.api_client.call_api(
|
|
665
662
|
*_param,
|
|
@@ -673,7 +670,7 @@ class AgentProfileApi:
|
|
|
673
670
|
|
|
674
671
|
|
|
675
672
|
@validate_call
|
|
676
|
-
def
|
|
673
|
+
def agent_profile_get_with_http_info(
|
|
677
674
|
self,
|
|
678
675
|
profile_id: Annotated[StrictStr, Field(description="The ID of the agent profile")],
|
|
679
676
|
_request_timeout: Union[
|
|
@@ -688,10 +685,10 @@ class AgentProfileApi:
|
|
|
688
685
|
_content_type: Optional[StrictStr] = None,
|
|
689
686
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
690
687
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
691
|
-
) -> ApiResponse[
|
|
692
|
-
"""Get
|
|
688
|
+
) -> ApiResponse[AgentsProfileAgentProfile]:
|
|
689
|
+
"""Get Agent Profile
|
|
693
690
|
|
|
694
|
-
|
|
691
|
+
Get an agent profile by ID
|
|
695
692
|
|
|
696
693
|
:param profile_id: The ID of the agent profile (required)
|
|
697
694
|
:type profile_id: str
|
|
@@ -717,7 +714,7 @@ class AgentProfileApi:
|
|
|
717
714
|
:return: Returns the result object.
|
|
718
715
|
""" # noqa: E501
|
|
719
716
|
|
|
720
|
-
_param = self.
|
|
717
|
+
_param = self._agent_profile_get_serialize(
|
|
721
718
|
profile_id=profile_id,
|
|
722
719
|
_request_auth=_request_auth,
|
|
723
720
|
_content_type=_content_type,
|
|
@@ -726,11 +723,12 @@ class AgentProfileApi:
|
|
|
726
723
|
)
|
|
727
724
|
|
|
728
725
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
729
|
-
'200': "
|
|
730
|
-
'
|
|
731
|
-
'
|
|
732
|
-
'
|
|
733
|
-
'
|
|
726
|
+
'200': "AgentsProfileAgentProfile",
|
|
727
|
+
'400': "CommonBadRequestErrorBody",
|
|
728
|
+
'401': "CommonUnauthorizedErrorBody",
|
|
729
|
+
'403': "CommonForbiddenErrorBody",
|
|
730
|
+
'404': "CommonNotFoundErrorBody",
|
|
731
|
+
'500': "CommonInternalServerErrorBody",
|
|
734
732
|
}
|
|
735
733
|
response_data = self.api_client.call_api(
|
|
736
734
|
*_param,
|
|
@@ -744,7 +742,7 @@ class AgentProfileApi:
|
|
|
744
742
|
|
|
745
743
|
|
|
746
744
|
@validate_call
|
|
747
|
-
def
|
|
745
|
+
def agent_profile_get_without_preload_content(
|
|
748
746
|
self,
|
|
749
747
|
profile_id: Annotated[StrictStr, Field(description="The ID of the agent profile")],
|
|
750
748
|
_request_timeout: Union[
|
|
@@ -760,9 +758,9 @@ class AgentProfileApi:
|
|
|
760
758
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
761
759
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
762
760
|
) -> RESTResponseType:
|
|
763
|
-
"""Get
|
|
761
|
+
"""Get Agent Profile
|
|
764
762
|
|
|
765
|
-
|
|
763
|
+
Get an agent profile by ID
|
|
766
764
|
|
|
767
765
|
:param profile_id: The ID of the agent profile (required)
|
|
768
766
|
:type profile_id: str
|
|
@@ -788,7 +786,7 @@ class AgentProfileApi:
|
|
|
788
786
|
:return: Returns the result object.
|
|
789
787
|
""" # noqa: E501
|
|
790
788
|
|
|
791
|
-
_param = self.
|
|
789
|
+
_param = self._agent_profile_get_serialize(
|
|
792
790
|
profile_id=profile_id,
|
|
793
791
|
_request_auth=_request_auth,
|
|
794
792
|
_content_type=_content_type,
|
|
@@ -797,11 +795,12 @@ class AgentProfileApi:
|
|
|
797
795
|
)
|
|
798
796
|
|
|
799
797
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
800
|
-
'200': "
|
|
801
|
-
'
|
|
802
|
-
'
|
|
803
|
-
'
|
|
804
|
-
'
|
|
798
|
+
'200': "AgentsProfileAgentProfile",
|
|
799
|
+
'400': "CommonBadRequestErrorBody",
|
|
800
|
+
'401': "CommonUnauthorizedErrorBody",
|
|
801
|
+
'403': "CommonForbiddenErrorBody",
|
|
802
|
+
'404': "CommonNotFoundErrorBody",
|
|
803
|
+
'500': "CommonInternalServerErrorBody",
|
|
805
804
|
}
|
|
806
805
|
response_data = self.api_client.call_api(
|
|
807
806
|
*_param,
|
|
@@ -810,7 +809,7 @@ class AgentProfileApi:
|
|
|
810
809
|
return response_data.response
|
|
811
810
|
|
|
812
811
|
|
|
813
|
-
def
|
|
812
|
+
def _agent_profile_get_serialize(
|
|
814
813
|
self,
|
|
815
814
|
profile_id,
|
|
816
815
|
_request_auth,
|
|
@@ -835,7 +834,7 @@ class AgentProfileApi:
|
|
|
835
834
|
|
|
836
835
|
# process the path parameters
|
|
837
836
|
if profile_id is not None:
|
|
838
|
-
_path_params['
|
|
837
|
+
_path_params['profileId'] = profile_id
|
|
839
838
|
# process the query parameters
|
|
840
839
|
# process the header parameters
|
|
841
840
|
# process the form parameters
|
|
@@ -858,7 +857,7 @@ class AgentProfileApi:
|
|
|
858
857
|
|
|
859
858
|
return self.api_client.param_serialize(
|
|
860
859
|
method='GET',
|
|
861
|
-
resource_path='/agent-profiles/{
|
|
860
|
+
resource_path='/agent-profiles/{profileId}',
|
|
862
861
|
path_params=_path_params,
|
|
863
862
|
query_params=_query_params,
|
|
864
863
|
header_params=_header_params,
|
|
@@ -875,9 +874,10 @@ class AgentProfileApi:
|
|
|
875
874
|
|
|
876
875
|
|
|
877
876
|
@validate_call
|
|
878
|
-
def
|
|
877
|
+
def agent_profile_update(
|
|
879
878
|
self,
|
|
880
|
-
|
|
879
|
+
profile_id: Annotated[StrictStr, Field(description="The ID of the agent profile")],
|
|
880
|
+
agents_profile_update_agent_profile_request: Annotated[AgentsProfileUpdateAgentProfileRequest, Field(description="Fields to update")],
|
|
881
881
|
_request_timeout: Union[
|
|
882
882
|
None,
|
|
883
883
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -890,13 +890,15 @@ class AgentProfileApi:
|
|
|
890
890
|
_content_type: Optional[StrictStr] = None,
|
|
891
891
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
892
892
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
893
|
-
) ->
|
|
894
|
-
"""
|
|
893
|
+
) -> AgentsProfileAgentProfile:
|
|
894
|
+
"""Update Agent Profile
|
|
895
895
|
|
|
896
|
-
|
|
896
|
+
Update an existing agent profile
|
|
897
897
|
|
|
898
|
-
:param
|
|
899
|
-
:type
|
|
898
|
+
:param profile_id: The ID of the agent profile (required)
|
|
899
|
+
:type profile_id: str
|
|
900
|
+
:param agents_profile_update_agent_profile_request: Fields to update (required)
|
|
901
|
+
:type agents_profile_update_agent_profile_request: AgentsProfileUpdateAgentProfileRequest
|
|
900
902
|
:param _request_timeout: timeout setting for this request. If one
|
|
901
903
|
number provided, it will be total request
|
|
902
904
|
timeout. It can also be a pair (tuple) of
|
|
@@ -919,8 +921,9 @@ class AgentProfileApi:
|
|
|
919
921
|
:return: Returns the result object.
|
|
920
922
|
""" # noqa: E501
|
|
921
923
|
|
|
922
|
-
_param = self.
|
|
923
|
-
|
|
924
|
+
_param = self._agent_profile_update_serialize(
|
|
925
|
+
profile_id=profile_id,
|
|
926
|
+
agents_profile_update_agent_profile_request=agents_profile_update_agent_profile_request,
|
|
924
927
|
_request_auth=_request_auth,
|
|
925
928
|
_content_type=_content_type,
|
|
926
929
|
_headers=_headers,
|
|
@@ -928,10 +931,12 @@ class AgentProfileApi:
|
|
|
928
931
|
)
|
|
929
932
|
|
|
930
933
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
931
|
-
'200': "
|
|
932
|
-
'
|
|
933
|
-
'
|
|
934
|
-
'
|
|
934
|
+
'200': "AgentsProfileAgentProfile",
|
|
935
|
+
'400': "CommonBadRequestErrorBody",
|
|
936
|
+
'401': "CommonUnauthorizedErrorBody",
|
|
937
|
+
'403': "CommonForbiddenErrorBody",
|
|
938
|
+
'404': "CommonNotFoundErrorBody",
|
|
939
|
+
'500': "CommonInternalServerErrorBody",
|
|
935
940
|
}
|
|
936
941
|
response_data = self.api_client.call_api(
|
|
937
942
|
*_param,
|
|
@@ -945,9 +950,10 @@ class AgentProfileApi:
|
|
|
945
950
|
|
|
946
951
|
|
|
947
952
|
@validate_call
|
|
948
|
-
def
|
|
953
|
+
def agent_profile_update_with_http_info(
|
|
949
954
|
self,
|
|
950
|
-
|
|
955
|
+
profile_id: Annotated[StrictStr, Field(description="The ID of the agent profile")],
|
|
956
|
+
agents_profile_update_agent_profile_request: Annotated[AgentsProfileUpdateAgentProfileRequest, Field(description="Fields to update")],
|
|
951
957
|
_request_timeout: Union[
|
|
952
958
|
None,
|
|
953
959
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -960,13 +966,15 @@ class AgentProfileApi:
|
|
|
960
966
|
_content_type: Optional[StrictStr] = None,
|
|
961
967
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
962
968
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
963
|
-
) -> ApiResponse[
|
|
964
|
-
"""
|
|
969
|
+
) -> ApiResponse[AgentsProfileAgentProfile]:
|
|
970
|
+
"""Update Agent Profile
|
|
965
971
|
|
|
966
|
-
|
|
972
|
+
Update an existing agent profile
|
|
967
973
|
|
|
968
|
-
:param
|
|
969
|
-
:type
|
|
974
|
+
:param profile_id: The ID of the agent profile (required)
|
|
975
|
+
:type profile_id: str
|
|
976
|
+
:param agents_profile_update_agent_profile_request: Fields to update (required)
|
|
977
|
+
:type agents_profile_update_agent_profile_request: AgentsProfileUpdateAgentProfileRequest
|
|
970
978
|
:param _request_timeout: timeout setting for this request. If one
|
|
971
979
|
number provided, it will be total request
|
|
972
980
|
timeout. It can also be a pair (tuple) of
|
|
@@ -989,8 +997,9 @@ class AgentProfileApi:
|
|
|
989
997
|
:return: Returns the result object.
|
|
990
998
|
""" # noqa: E501
|
|
991
999
|
|
|
992
|
-
_param = self.
|
|
993
|
-
|
|
1000
|
+
_param = self._agent_profile_update_serialize(
|
|
1001
|
+
profile_id=profile_id,
|
|
1002
|
+
agents_profile_update_agent_profile_request=agents_profile_update_agent_profile_request,
|
|
994
1003
|
_request_auth=_request_auth,
|
|
995
1004
|
_content_type=_content_type,
|
|
996
1005
|
_headers=_headers,
|
|
@@ -998,10 +1007,12 @@ class AgentProfileApi:
|
|
|
998
1007
|
)
|
|
999
1008
|
|
|
1000
1009
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1001
|
-
'200': "
|
|
1002
|
-
'
|
|
1003
|
-
'
|
|
1004
|
-
'
|
|
1010
|
+
'200': "AgentsProfileAgentProfile",
|
|
1011
|
+
'400': "CommonBadRequestErrorBody",
|
|
1012
|
+
'401': "CommonUnauthorizedErrorBody",
|
|
1013
|
+
'403': "CommonForbiddenErrorBody",
|
|
1014
|
+
'404': "CommonNotFoundErrorBody",
|
|
1015
|
+
'500': "CommonInternalServerErrorBody",
|
|
1005
1016
|
}
|
|
1006
1017
|
response_data = self.api_client.call_api(
|
|
1007
1018
|
*_param,
|
|
@@ -1015,9 +1026,10 @@ class AgentProfileApi:
|
|
|
1015
1026
|
|
|
1016
1027
|
|
|
1017
1028
|
@validate_call
|
|
1018
|
-
def
|
|
1029
|
+
def agent_profile_update_without_preload_content(
|
|
1019
1030
|
self,
|
|
1020
|
-
|
|
1031
|
+
profile_id: Annotated[StrictStr, Field(description="The ID of the agent profile")],
|
|
1032
|
+
agents_profile_update_agent_profile_request: Annotated[AgentsProfileUpdateAgentProfileRequest, Field(description="Fields to update")],
|
|
1021
1033
|
_request_timeout: Union[
|
|
1022
1034
|
None,
|
|
1023
1035
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1031,12 +1043,14 @@ class AgentProfileApi:
|
|
|
1031
1043
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1032
1044
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1033
1045
|
) -> RESTResponseType:
|
|
1034
|
-
"""
|
|
1046
|
+
"""Update Agent Profile
|
|
1035
1047
|
|
|
1036
|
-
|
|
1048
|
+
Update an existing agent profile
|
|
1037
1049
|
|
|
1038
|
-
:param
|
|
1039
|
-
:type
|
|
1050
|
+
:param profile_id: The ID of the agent profile (required)
|
|
1051
|
+
:type profile_id: str
|
|
1052
|
+
:param agents_profile_update_agent_profile_request: Fields to update (required)
|
|
1053
|
+
:type agents_profile_update_agent_profile_request: AgentsProfileUpdateAgentProfileRequest
|
|
1040
1054
|
:param _request_timeout: timeout setting for this request. If one
|
|
1041
1055
|
number provided, it will be total request
|
|
1042
1056
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1059,8 +1073,9 @@ class AgentProfileApi:
|
|
|
1059
1073
|
:return: Returns the result object.
|
|
1060
1074
|
""" # noqa: E501
|
|
1061
1075
|
|
|
1062
|
-
_param = self.
|
|
1063
|
-
|
|
1076
|
+
_param = self._agent_profile_update_serialize(
|
|
1077
|
+
profile_id=profile_id,
|
|
1078
|
+
agents_profile_update_agent_profile_request=agents_profile_update_agent_profile_request,
|
|
1064
1079
|
_request_auth=_request_auth,
|
|
1065
1080
|
_content_type=_content_type,
|
|
1066
1081
|
_headers=_headers,
|
|
@@ -1068,10 +1083,12 @@ class AgentProfileApi:
|
|
|
1068
1083
|
)
|
|
1069
1084
|
|
|
1070
1085
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1071
|
-
'200': "
|
|
1072
|
-
'
|
|
1073
|
-
'
|
|
1074
|
-
'
|
|
1086
|
+
'200': "AgentsProfileAgentProfile",
|
|
1087
|
+
'400': "CommonBadRequestErrorBody",
|
|
1088
|
+
'401': "CommonUnauthorizedErrorBody",
|
|
1089
|
+
'403': "CommonForbiddenErrorBody",
|
|
1090
|
+
'404': "CommonNotFoundErrorBody",
|
|
1091
|
+
'500': "CommonInternalServerErrorBody",
|
|
1075
1092
|
}
|
|
1076
1093
|
response_data = self.api_client.call_api(
|
|
1077
1094
|
*_param,
|
|
@@ -1080,9 +1097,10 @@ class AgentProfileApi:
|
|
|
1080
1097
|
return response_data.response
|
|
1081
1098
|
|
|
1082
1099
|
|
|
1083
|
-
def
|
|
1100
|
+
def _agent_profile_update_serialize(
|
|
1084
1101
|
self,
|
|
1085
|
-
|
|
1102
|
+
profile_id,
|
|
1103
|
+
agents_profile_update_agent_profile_request,
|
|
1086
1104
|
_request_auth,
|
|
1087
1105
|
_content_type,
|
|
1088
1106
|
_headers,
|
|
@@ -1104,14 +1122,14 @@ class AgentProfileApi:
|
|
|
1104
1122
|
_body_params: Optional[bytes] = None
|
|
1105
1123
|
|
|
1106
1124
|
# process the path parameters
|
|
1125
|
+
if profile_id is not None:
|
|
1126
|
+
_path_params['profileId'] = profile_id
|
|
1107
1127
|
# process the query parameters
|
|
1108
|
-
if organization_id is not None:
|
|
1109
|
-
|
|
1110
|
-
_query_params.append(('organization_id', organization_id))
|
|
1111
|
-
|
|
1112
1128
|
# process the header parameters
|
|
1113
1129
|
# process the form parameters
|
|
1114
1130
|
# process the body parameter
|
|
1131
|
+
if agents_profile_update_agent_profile_request is not None:
|
|
1132
|
+
_body_params = agents_profile_update_agent_profile_request
|
|
1115
1133
|
|
|
1116
1134
|
|
|
1117
1135
|
# set the HTTP header `Accept`
|
|
@@ -1122,6 +1140,19 @@ class AgentProfileApi:
|
|
|
1122
1140
|
]
|
|
1123
1141
|
)
|
|
1124
1142
|
|
|
1143
|
+
# set the HTTP header `Content-Type`
|
|
1144
|
+
if _content_type:
|
|
1145
|
+
_header_params['Content-Type'] = _content_type
|
|
1146
|
+
else:
|
|
1147
|
+
_default_content_type = (
|
|
1148
|
+
self.api_client.select_header_content_type(
|
|
1149
|
+
[
|
|
1150
|
+
'application/json'
|
|
1151
|
+
]
|
|
1152
|
+
)
|
|
1153
|
+
)
|
|
1154
|
+
if _default_content_type is not None:
|
|
1155
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1125
1156
|
|
|
1126
1157
|
# authentication setting
|
|
1127
1158
|
_auth_settings: List[str] = [
|
|
@@ -1129,8 +1160,8 @@ class AgentProfileApi:
|
|
|
1129
1160
|
]
|
|
1130
1161
|
|
|
1131
1162
|
return self.api_client.param_serialize(
|
|
1132
|
-
method='
|
|
1133
|
-
resource_path='/agent-profiles',
|
|
1163
|
+
method='PATCH',
|
|
1164
|
+
resource_path='/agent-profiles/{profileId}',
|
|
1134
1165
|
path_params=_path_params,
|
|
1135
1166
|
query_params=_query_params,
|
|
1136
1167
|
header_params=_header_params,
|
|
@@ -1147,8 +1178,9 @@ class AgentProfileApi:
|
|
|
1147
1178
|
|
|
1148
1179
|
|
|
1149
1180
|
@validate_call
|
|
1150
|
-
def
|
|
1181
|
+
def agent_profiles_create(
|
|
1151
1182
|
self,
|
|
1183
|
+
agents_profile_create_agent_profile_request: Annotated[AgentsProfileCreateAgentProfileRequest, Field(description="Agent profile to create")],
|
|
1152
1184
|
_request_timeout: Union[
|
|
1153
1185
|
None,
|
|
1154
1186
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1161,10 +1193,13 @@ class AgentProfileApi:
|
|
|
1161
1193
|
_content_type: Optional[StrictStr] = None,
|
|
1162
1194
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1163
1195
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1164
|
-
) ->
|
|
1165
|
-
"""
|
|
1196
|
+
) -> AgentsProfileAgentProfile:
|
|
1197
|
+
"""Create Agent Profile
|
|
1166
1198
|
|
|
1199
|
+
Create a new agent profile
|
|
1167
1200
|
|
|
1201
|
+
:param agents_profile_create_agent_profile_request: Agent profile to create (required)
|
|
1202
|
+
:type agents_profile_create_agent_profile_request: AgentsProfileCreateAgentProfileRequest
|
|
1168
1203
|
:param _request_timeout: timeout setting for this request. If one
|
|
1169
1204
|
number provided, it will be total request
|
|
1170
1205
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1187,7 +1222,8 @@ class AgentProfileApi:
|
|
|
1187
1222
|
:return: Returns the result object.
|
|
1188
1223
|
""" # noqa: E501
|
|
1189
1224
|
|
|
1190
|
-
_param = self.
|
|
1225
|
+
_param = self._agent_profiles_create_serialize(
|
|
1226
|
+
agents_profile_create_agent_profile_request=agents_profile_create_agent_profile_request,
|
|
1191
1227
|
_request_auth=_request_auth,
|
|
1192
1228
|
_content_type=_content_type,
|
|
1193
1229
|
_headers=_headers,
|
|
@@ -1195,8 +1231,12 @@ class AgentProfileApi:
|
|
|
1195
1231
|
)
|
|
1196
1232
|
|
|
1197
1233
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1198
|
-
'
|
|
1199
|
-
'
|
|
1234
|
+
'201': "AgentsProfileAgentProfile",
|
|
1235
|
+
'400': "CommonBadRequestErrorBody",
|
|
1236
|
+
'401': "CommonUnauthorizedErrorBody",
|
|
1237
|
+
'403': "CommonForbiddenErrorBody",
|
|
1238
|
+
'404': "CommonNotFoundErrorBody",
|
|
1239
|
+
'500': "CommonInternalServerErrorBody",
|
|
1200
1240
|
}
|
|
1201
1241
|
response_data = self.api_client.call_api(
|
|
1202
1242
|
*_param,
|
|
@@ -1210,8 +1250,9 @@ class AgentProfileApi:
|
|
|
1210
1250
|
|
|
1211
1251
|
|
|
1212
1252
|
@validate_call
|
|
1213
|
-
def
|
|
1253
|
+
def agent_profiles_create_with_http_info(
|
|
1214
1254
|
self,
|
|
1255
|
+
agents_profile_create_agent_profile_request: Annotated[AgentsProfileCreateAgentProfileRequest, Field(description="Agent profile to create")],
|
|
1215
1256
|
_request_timeout: Union[
|
|
1216
1257
|
None,
|
|
1217
1258
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1224,10 +1265,13 @@ class AgentProfileApi:
|
|
|
1224
1265
|
_content_type: Optional[StrictStr] = None,
|
|
1225
1266
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1226
1267
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1227
|
-
) -> ApiResponse[
|
|
1228
|
-
"""
|
|
1268
|
+
) -> ApiResponse[AgentsProfileAgentProfile]:
|
|
1269
|
+
"""Create Agent Profile
|
|
1229
1270
|
|
|
1271
|
+
Create a new agent profile
|
|
1230
1272
|
|
|
1273
|
+
:param agents_profile_create_agent_profile_request: Agent profile to create (required)
|
|
1274
|
+
:type agents_profile_create_agent_profile_request: AgentsProfileCreateAgentProfileRequest
|
|
1231
1275
|
:param _request_timeout: timeout setting for this request. If one
|
|
1232
1276
|
number provided, it will be total request
|
|
1233
1277
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1250,7 +1294,8 @@ class AgentProfileApi:
|
|
|
1250
1294
|
:return: Returns the result object.
|
|
1251
1295
|
""" # noqa: E501
|
|
1252
1296
|
|
|
1253
|
-
_param = self.
|
|
1297
|
+
_param = self._agent_profiles_create_serialize(
|
|
1298
|
+
agents_profile_create_agent_profile_request=agents_profile_create_agent_profile_request,
|
|
1254
1299
|
_request_auth=_request_auth,
|
|
1255
1300
|
_content_type=_content_type,
|
|
1256
1301
|
_headers=_headers,
|
|
@@ -1258,8 +1303,12 @@ class AgentProfileApi:
|
|
|
1258
1303
|
)
|
|
1259
1304
|
|
|
1260
1305
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1261
|
-
'
|
|
1262
|
-
'
|
|
1306
|
+
'201': "AgentsProfileAgentProfile",
|
|
1307
|
+
'400': "CommonBadRequestErrorBody",
|
|
1308
|
+
'401': "CommonUnauthorizedErrorBody",
|
|
1309
|
+
'403': "CommonForbiddenErrorBody",
|
|
1310
|
+
'404': "CommonNotFoundErrorBody",
|
|
1311
|
+
'500': "CommonInternalServerErrorBody",
|
|
1263
1312
|
}
|
|
1264
1313
|
response_data = self.api_client.call_api(
|
|
1265
1314
|
*_param,
|
|
@@ -1273,8 +1322,9 @@ class AgentProfileApi:
|
|
|
1273
1322
|
|
|
1274
1323
|
|
|
1275
1324
|
@validate_call
|
|
1276
|
-
def
|
|
1325
|
+
def agent_profiles_create_without_preload_content(
|
|
1277
1326
|
self,
|
|
1327
|
+
agents_profile_create_agent_profile_request: Annotated[AgentsProfileCreateAgentProfileRequest, Field(description="Agent profile to create")],
|
|
1278
1328
|
_request_timeout: Union[
|
|
1279
1329
|
None,
|
|
1280
1330
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1288,9 +1338,12 @@ class AgentProfileApi:
|
|
|
1288
1338
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1289
1339
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1290
1340
|
) -> RESTResponseType:
|
|
1291
|
-
"""
|
|
1341
|
+
"""Create Agent Profile
|
|
1292
1342
|
|
|
1343
|
+
Create a new agent profile
|
|
1293
1344
|
|
|
1345
|
+
:param agents_profile_create_agent_profile_request: Agent profile to create (required)
|
|
1346
|
+
:type agents_profile_create_agent_profile_request: AgentsProfileCreateAgentProfileRequest
|
|
1294
1347
|
:param _request_timeout: timeout setting for this request. If one
|
|
1295
1348
|
number provided, it will be total request
|
|
1296
1349
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1313,7 +1366,8 @@ class AgentProfileApi:
|
|
|
1313
1366
|
:return: Returns the result object.
|
|
1314
1367
|
""" # noqa: E501
|
|
1315
1368
|
|
|
1316
|
-
_param = self.
|
|
1369
|
+
_param = self._agent_profiles_create_serialize(
|
|
1370
|
+
agents_profile_create_agent_profile_request=agents_profile_create_agent_profile_request,
|
|
1317
1371
|
_request_auth=_request_auth,
|
|
1318
1372
|
_content_type=_content_type,
|
|
1319
1373
|
_headers=_headers,
|
|
@@ -1321,8 +1375,12 @@ class AgentProfileApi:
|
|
|
1321
1375
|
)
|
|
1322
1376
|
|
|
1323
1377
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1324
|
-
'
|
|
1325
|
-
'
|
|
1378
|
+
'201': "AgentsProfileAgentProfile",
|
|
1379
|
+
'400': "CommonBadRequestErrorBody",
|
|
1380
|
+
'401': "CommonUnauthorizedErrorBody",
|
|
1381
|
+
'403': "CommonForbiddenErrorBody",
|
|
1382
|
+
'404': "CommonNotFoundErrorBody",
|
|
1383
|
+
'500': "CommonInternalServerErrorBody",
|
|
1326
1384
|
}
|
|
1327
1385
|
response_data = self.api_client.call_api(
|
|
1328
1386
|
*_param,
|
|
@@ -1331,8 +1389,9 @@ class AgentProfileApi:
|
|
|
1331
1389
|
return response_data.response
|
|
1332
1390
|
|
|
1333
1391
|
|
|
1334
|
-
def
|
|
1392
|
+
def _agent_profiles_create_serialize(
|
|
1335
1393
|
self,
|
|
1394
|
+
agents_profile_create_agent_profile_request,
|
|
1336
1395
|
_request_auth,
|
|
1337
1396
|
_content_type,
|
|
1338
1397
|
_headers,
|
|
@@ -1358,6 +1417,8 @@ class AgentProfileApi:
|
|
|
1358
1417
|
# process the header parameters
|
|
1359
1418
|
# process the form parameters
|
|
1360
1419
|
# process the body parameter
|
|
1420
|
+
if agents_profile_create_agent_profile_request is not None:
|
|
1421
|
+
_body_params = agents_profile_create_agent_profile_request
|
|
1361
1422
|
|
|
1362
1423
|
|
|
1363
1424
|
# set the HTTP header `Accept`
|
|
@@ -1368,6 +1429,19 @@ class AgentProfileApi:
|
|
|
1368
1429
|
]
|
|
1369
1430
|
)
|
|
1370
1431
|
|
|
1432
|
+
# set the HTTP header `Content-Type`
|
|
1433
|
+
if _content_type:
|
|
1434
|
+
_header_params['Content-Type'] = _content_type
|
|
1435
|
+
else:
|
|
1436
|
+
_default_content_type = (
|
|
1437
|
+
self.api_client.select_header_content_type(
|
|
1438
|
+
[
|
|
1439
|
+
'application/json'
|
|
1440
|
+
]
|
|
1441
|
+
)
|
|
1442
|
+
)
|
|
1443
|
+
if _default_content_type is not None:
|
|
1444
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1371
1445
|
|
|
1372
1446
|
# authentication setting
|
|
1373
1447
|
_auth_settings: List[str] = [
|
|
@@ -1375,8 +1449,8 @@ class AgentProfileApi:
|
|
|
1375
1449
|
]
|
|
1376
1450
|
|
|
1377
1451
|
return self.api_client.param_serialize(
|
|
1378
|
-
method='
|
|
1379
|
-
resource_path='/
|
|
1452
|
+
method='POST',
|
|
1453
|
+
resource_path='/agent-profiles',
|
|
1380
1454
|
path_params=_path_params,
|
|
1381
1455
|
query_params=_query_params,
|
|
1382
1456
|
header_params=_header_params,
|
|
@@ -1393,10 +1467,14 @@ class AgentProfileApi:
|
|
|
1393
1467
|
|
|
1394
1468
|
|
|
1395
1469
|
@validate_call
|
|
1396
|
-
def
|
|
1470
|
+
def agent_profiles_list(
|
|
1397
1471
|
self,
|
|
1398
|
-
|
|
1399
|
-
|
|
1472
|
+
organization_id: Annotated[Optional[StrictStr], Field(description="Filter by organization ID")] = None,
|
|
1473
|
+
page_size: Optional[StrictInt] = None,
|
|
1474
|
+
page: Optional[StrictInt] = None,
|
|
1475
|
+
search_name: Annotated[Optional[StrictStr], Field(description="Search profiles by name (partial match)")] = None,
|
|
1476
|
+
sort_field: Optional[AgentsProfileSortField] = None,
|
|
1477
|
+
sort_direction: Optional[CommonSortDirection] = None,
|
|
1400
1478
|
_request_timeout: Union[
|
|
1401
1479
|
None,
|
|
1402
1480
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1409,15 +1487,23 @@ class AgentProfileApi:
|
|
|
1409
1487
|
_content_type: Optional[StrictStr] = None,
|
|
1410
1488
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1411
1489
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1412
|
-
) ->
|
|
1413
|
-
"""
|
|
1490
|
+
) -> AgentProfilesList200Response:
|
|
1491
|
+
"""List Agent Profiles
|
|
1414
1492
|
|
|
1415
|
-
|
|
1493
|
+
List all agent profiles for an organization
|
|
1416
1494
|
|
|
1417
|
-
:param
|
|
1418
|
-
:type
|
|
1419
|
-
:param
|
|
1420
|
-
:type
|
|
1495
|
+
:param organization_id: Filter by organization ID
|
|
1496
|
+
:type organization_id: str
|
|
1497
|
+
:param page_size:
|
|
1498
|
+
:type page_size: int
|
|
1499
|
+
:param page:
|
|
1500
|
+
:type page: int
|
|
1501
|
+
:param search_name: Search profiles by name (partial match)
|
|
1502
|
+
:type search_name: str
|
|
1503
|
+
:param sort_field:
|
|
1504
|
+
:type sort_field: AgentsProfileSortField
|
|
1505
|
+
:param sort_direction:
|
|
1506
|
+
:type sort_direction: CommonSortDirection
|
|
1421
1507
|
:param _request_timeout: timeout setting for this request. If one
|
|
1422
1508
|
number provided, it will be total request
|
|
1423
1509
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1440,9 +1526,13 @@ class AgentProfileApi:
|
|
|
1440
1526
|
:return: Returns the result object.
|
|
1441
1527
|
""" # noqa: E501
|
|
1442
1528
|
|
|
1443
|
-
_param = self.
|
|
1444
|
-
|
|
1445
|
-
|
|
1529
|
+
_param = self._agent_profiles_list_serialize(
|
|
1530
|
+
organization_id=organization_id,
|
|
1531
|
+
page_size=page_size,
|
|
1532
|
+
page=page,
|
|
1533
|
+
search_name=search_name,
|
|
1534
|
+
sort_field=sort_field,
|
|
1535
|
+
sort_direction=sort_direction,
|
|
1446
1536
|
_request_auth=_request_auth,
|
|
1447
1537
|
_content_type=_content_type,
|
|
1448
1538
|
_headers=_headers,
|
|
@@ -1450,12 +1540,12 @@ class AgentProfileApi:
|
|
|
1450
1540
|
)
|
|
1451
1541
|
|
|
1452
1542
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1453
|
-
'200': "
|
|
1454
|
-
'400': "
|
|
1455
|
-
'401': "
|
|
1456
|
-
'403': "
|
|
1457
|
-
'404': "
|
|
1458
|
-
'500': "
|
|
1543
|
+
'200': "AgentProfilesList200Response",
|
|
1544
|
+
'400': "CommonBadRequestErrorBody",
|
|
1545
|
+
'401': "CommonUnauthorizedErrorBody",
|
|
1546
|
+
'403': "CommonForbiddenErrorBody",
|
|
1547
|
+
'404': "CommonNotFoundErrorBody",
|
|
1548
|
+
'500': "CommonInternalServerErrorBody",
|
|
1459
1549
|
}
|
|
1460
1550
|
response_data = self.api_client.call_api(
|
|
1461
1551
|
*_param,
|
|
@@ -1469,10 +1559,14 @@ class AgentProfileApi:
|
|
|
1469
1559
|
|
|
1470
1560
|
|
|
1471
1561
|
@validate_call
|
|
1472
|
-
def
|
|
1562
|
+
def agent_profiles_list_with_http_info(
|
|
1473
1563
|
self,
|
|
1474
|
-
|
|
1475
|
-
|
|
1564
|
+
organization_id: Annotated[Optional[StrictStr], Field(description="Filter by organization ID")] = None,
|
|
1565
|
+
page_size: Optional[StrictInt] = None,
|
|
1566
|
+
page: Optional[StrictInt] = None,
|
|
1567
|
+
search_name: Annotated[Optional[StrictStr], Field(description="Search profiles by name (partial match)")] = None,
|
|
1568
|
+
sort_field: Optional[AgentsProfileSortField] = None,
|
|
1569
|
+
sort_direction: Optional[CommonSortDirection] = None,
|
|
1476
1570
|
_request_timeout: Union[
|
|
1477
1571
|
None,
|
|
1478
1572
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1485,15 +1579,23 @@ class AgentProfileApi:
|
|
|
1485
1579
|
_content_type: Optional[StrictStr] = None,
|
|
1486
1580
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1487
1581
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1488
|
-
) -> ApiResponse[
|
|
1489
|
-
"""
|
|
1582
|
+
) -> ApiResponse[AgentProfilesList200Response]:
|
|
1583
|
+
"""List Agent Profiles
|
|
1490
1584
|
|
|
1491
|
-
|
|
1585
|
+
List all agent profiles for an organization
|
|
1492
1586
|
|
|
1493
|
-
:param
|
|
1494
|
-
:type
|
|
1495
|
-
:param
|
|
1496
|
-
:type
|
|
1587
|
+
:param organization_id: Filter by organization ID
|
|
1588
|
+
:type organization_id: str
|
|
1589
|
+
:param page_size:
|
|
1590
|
+
:type page_size: int
|
|
1591
|
+
:param page:
|
|
1592
|
+
:type page: int
|
|
1593
|
+
:param search_name: Search profiles by name (partial match)
|
|
1594
|
+
:type search_name: str
|
|
1595
|
+
:param sort_field:
|
|
1596
|
+
:type sort_field: AgentsProfileSortField
|
|
1597
|
+
:param sort_direction:
|
|
1598
|
+
:type sort_direction: CommonSortDirection
|
|
1497
1599
|
:param _request_timeout: timeout setting for this request. If one
|
|
1498
1600
|
number provided, it will be total request
|
|
1499
1601
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1516,9 +1618,13 @@ class AgentProfileApi:
|
|
|
1516
1618
|
:return: Returns the result object.
|
|
1517
1619
|
""" # noqa: E501
|
|
1518
1620
|
|
|
1519
|
-
_param = self.
|
|
1520
|
-
|
|
1521
|
-
|
|
1621
|
+
_param = self._agent_profiles_list_serialize(
|
|
1622
|
+
organization_id=organization_id,
|
|
1623
|
+
page_size=page_size,
|
|
1624
|
+
page=page,
|
|
1625
|
+
search_name=search_name,
|
|
1626
|
+
sort_field=sort_field,
|
|
1627
|
+
sort_direction=sort_direction,
|
|
1522
1628
|
_request_auth=_request_auth,
|
|
1523
1629
|
_content_type=_content_type,
|
|
1524
1630
|
_headers=_headers,
|
|
@@ -1526,12 +1632,12 @@ class AgentProfileApi:
|
|
|
1526
1632
|
)
|
|
1527
1633
|
|
|
1528
1634
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1529
|
-
'200': "
|
|
1530
|
-
'400': "
|
|
1531
|
-
'401': "
|
|
1532
|
-
'403': "
|
|
1533
|
-
'404': "
|
|
1534
|
-
'500': "
|
|
1635
|
+
'200': "AgentProfilesList200Response",
|
|
1636
|
+
'400': "CommonBadRequestErrorBody",
|
|
1637
|
+
'401': "CommonUnauthorizedErrorBody",
|
|
1638
|
+
'403': "CommonForbiddenErrorBody",
|
|
1639
|
+
'404': "CommonNotFoundErrorBody",
|
|
1640
|
+
'500': "CommonInternalServerErrorBody",
|
|
1535
1641
|
}
|
|
1536
1642
|
response_data = self.api_client.call_api(
|
|
1537
1643
|
*_param,
|
|
@@ -1545,10 +1651,14 @@ class AgentProfileApi:
|
|
|
1545
1651
|
|
|
1546
1652
|
|
|
1547
1653
|
@validate_call
|
|
1548
|
-
def
|
|
1654
|
+
def agent_profiles_list_without_preload_content(
|
|
1549
1655
|
self,
|
|
1550
|
-
|
|
1551
|
-
|
|
1656
|
+
organization_id: Annotated[Optional[StrictStr], Field(description="Filter by organization ID")] = None,
|
|
1657
|
+
page_size: Optional[StrictInt] = None,
|
|
1658
|
+
page: Optional[StrictInt] = None,
|
|
1659
|
+
search_name: Annotated[Optional[StrictStr], Field(description="Search profiles by name (partial match)")] = None,
|
|
1660
|
+
sort_field: Optional[AgentsProfileSortField] = None,
|
|
1661
|
+
sort_direction: Optional[CommonSortDirection] = None,
|
|
1552
1662
|
_request_timeout: Union[
|
|
1553
1663
|
None,
|
|
1554
1664
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1562,14 +1672,22 @@ class AgentProfileApi:
|
|
|
1562
1672
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1563
1673
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1564
1674
|
) -> RESTResponseType:
|
|
1565
|
-
"""
|
|
1675
|
+
"""List Agent Profiles
|
|
1566
1676
|
|
|
1567
|
-
|
|
1677
|
+
List all agent profiles for an organization
|
|
1568
1678
|
|
|
1569
|
-
:param
|
|
1570
|
-
:type
|
|
1571
|
-
:param
|
|
1572
|
-
:type
|
|
1679
|
+
:param organization_id: Filter by organization ID
|
|
1680
|
+
:type organization_id: str
|
|
1681
|
+
:param page_size:
|
|
1682
|
+
:type page_size: int
|
|
1683
|
+
:param page:
|
|
1684
|
+
:type page: int
|
|
1685
|
+
:param search_name: Search profiles by name (partial match)
|
|
1686
|
+
:type search_name: str
|
|
1687
|
+
:param sort_field:
|
|
1688
|
+
:type sort_field: AgentsProfileSortField
|
|
1689
|
+
:param sort_direction:
|
|
1690
|
+
:type sort_direction: CommonSortDirection
|
|
1573
1691
|
:param _request_timeout: timeout setting for this request. If one
|
|
1574
1692
|
number provided, it will be total request
|
|
1575
1693
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1592,9 +1710,13 @@ class AgentProfileApi:
|
|
|
1592
1710
|
:return: Returns the result object.
|
|
1593
1711
|
""" # noqa: E501
|
|
1594
1712
|
|
|
1595
|
-
_param = self.
|
|
1596
|
-
|
|
1597
|
-
|
|
1713
|
+
_param = self._agent_profiles_list_serialize(
|
|
1714
|
+
organization_id=organization_id,
|
|
1715
|
+
page_size=page_size,
|
|
1716
|
+
page=page,
|
|
1717
|
+
search_name=search_name,
|
|
1718
|
+
sort_field=sort_field,
|
|
1719
|
+
sort_direction=sort_direction,
|
|
1598
1720
|
_request_auth=_request_auth,
|
|
1599
1721
|
_content_type=_content_type,
|
|
1600
1722
|
_headers=_headers,
|
|
@@ -1602,12 +1724,12 @@ class AgentProfileApi:
|
|
|
1602
1724
|
)
|
|
1603
1725
|
|
|
1604
1726
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1605
|
-
'200': "
|
|
1606
|
-
'400': "
|
|
1607
|
-
'401': "
|
|
1608
|
-
'403': "
|
|
1609
|
-
'404': "
|
|
1610
|
-
'500': "
|
|
1727
|
+
'200': "AgentProfilesList200Response",
|
|
1728
|
+
'400': "CommonBadRequestErrorBody",
|
|
1729
|
+
'401': "CommonUnauthorizedErrorBody",
|
|
1730
|
+
'403': "CommonForbiddenErrorBody",
|
|
1731
|
+
'404': "CommonNotFoundErrorBody",
|
|
1732
|
+
'500': "CommonInternalServerErrorBody",
|
|
1611
1733
|
}
|
|
1612
1734
|
response_data = self.api_client.call_api(
|
|
1613
1735
|
*_param,
|
|
@@ -1616,10 +1738,14 @@ class AgentProfileApi:
|
|
|
1616
1738
|
return response_data.response
|
|
1617
1739
|
|
|
1618
1740
|
|
|
1619
|
-
def
|
|
1741
|
+
def _agent_profiles_list_serialize(
|
|
1620
1742
|
self,
|
|
1621
|
-
|
|
1622
|
-
|
|
1743
|
+
organization_id,
|
|
1744
|
+
page_size,
|
|
1745
|
+
page,
|
|
1746
|
+
search_name,
|
|
1747
|
+
sort_field,
|
|
1748
|
+
sort_direction,
|
|
1623
1749
|
_request_auth,
|
|
1624
1750
|
_content_type,
|
|
1625
1751
|
_headers,
|
|
@@ -1641,14 +1767,34 @@ class AgentProfileApi:
|
|
|
1641
1767
|
_body_params: Optional[bytes] = None
|
|
1642
1768
|
|
|
1643
1769
|
# process the path parameters
|
|
1644
|
-
if profile_id is not None:
|
|
1645
|
-
_path_params['profile_id'] = profile_id
|
|
1646
1770
|
# process the query parameters
|
|
1771
|
+
if organization_id is not None:
|
|
1772
|
+
|
|
1773
|
+
_query_params.append(('organizationId', organization_id))
|
|
1774
|
+
|
|
1775
|
+
if page_size is not None:
|
|
1776
|
+
|
|
1777
|
+
_query_params.append(('pageSize', page_size))
|
|
1778
|
+
|
|
1779
|
+
if page is not None:
|
|
1780
|
+
|
|
1781
|
+
_query_params.append(('page', page))
|
|
1782
|
+
|
|
1783
|
+
if search_name is not None:
|
|
1784
|
+
|
|
1785
|
+
_query_params.append(('searchName', search_name))
|
|
1786
|
+
|
|
1787
|
+
if sort_field is not None:
|
|
1788
|
+
|
|
1789
|
+
_query_params.append(('sortField', sort_field.value))
|
|
1790
|
+
|
|
1791
|
+
if sort_direction is not None:
|
|
1792
|
+
|
|
1793
|
+
_query_params.append(('sortDirection', sort_direction.value))
|
|
1794
|
+
|
|
1647
1795
|
# process the header parameters
|
|
1648
1796
|
# process the form parameters
|
|
1649
1797
|
# process the body parameter
|
|
1650
|
-
if update_agent_profile_request is not None:
|
|
1651
|
-
_body_params = update_agent_profile_request
|
|
1652
1798
|
|
|
1653
1799
|
|
|
1654
1800
|
# set the HTTP header `Accept`
|
|
@@ -1659,19 +1805,6 @@ class AgentProfileApi:
|
|
|
1659
1805
|
]
|
|
1660
1806
|
)
|
|
1661
1807
|
|
|
1662
|
-
# set the HTTP header `Content-Type`
|
|
1663
|
-
if _content_type:
|
|
1664
|
-
_header_params['Content-Type'] = _content_type
|
|
1665
|
-
else:
|
|
1666
|
-
_default_content_type = (
|
|
1667
|
-
self.api_client.select_header_content_type(
|
|
1668
|
-
[
|
|
1669
|
-
'application/json'
|
|
1670
|
-
]
|
|
1671
|
-
)
|
|
1672
|
-
)
|
|
1673
|
-
if _default_content_type is not None:
|
|
1674
|
-
_header_params['Content-Type'] = _default_content_type
|
|
1675
1808
|
|
|
1676
1809
|
# authentication setting
|
|
1677
1810
|
_auth_settings: List[str] = [
|
|
@@ -1679,8 +1812,8 @@ class AgentProfileApi:
|
|
|
1679
1812
|
]
|
|
1680
1813
|
|
|
1681
1814
|
return self.api_client.param_serialize(
|
|
1682
|
-
method='
|
|
1683
|
-
resource_path='/agent-profiles
|
|
1815
|
+
method='GET',
|
|
1816
|
+
resource_path='/agent-profiles',
|
|
1684
1817
|
path_params=_path_params,
|
|
1685
1818
|
query_params=_query_params,
|
|
1686
1819
|
header_params=_header_params,
|