smallestai 3.1.0__py3-none-any.whl → 4.0.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.
Potentially problematic release.
This version of smallestai might be problematic. Click here for more details.
- smallestai/__init__.py +35 -45
- smallestai/atoms/__init__.py +249 -123
- smallestai/atoms/api/__init__.py +0 -1
- smallestai/atoms/api/agent_templates_api.py +26 -26
- smallestai/atoms/api/agents_api.py +1316 -190
- smallestai/atoms/api/calls_api.py +29 -29
- smallestai/atoms/api/campaigns_api.py +165 -165
- smallestai/atoms/api/knowledge_base_api.py +290 -290
- smallestai/atoms/api/logs_api.py +13 -13
- smallestai/atoms/api/organization_api.py +13 -13
- smallestai/atoms/api/user_api.py +13 -13
- smallestai/atoms/atoms_client.py +77 -49
- smallestai/atoms/models/__init__.py +103 -43
- smallestai/atoms/models/agent_agent_id_webhook_subscriptions_delete200_response.py +89 -0
- smallestai/atoms/models/{get_agent_templates200_response.py → agent_agent_id_webhook_subscriptions_get200_response.py} +7 -7
- smallestai/atoms/models/agent_agent_id_webhook_subscriptions_get404_response.py +89 -0
- smallestai/atoms/models/agent_agent_id_webhook_subscriptions_post201_response.py +89 -0
- smallestai/atoms/models/agent_agent_id_webhook_subscriptions_post400_response.py +89 -0
- smallestai/atoms/models/agent_agent_id_webhook_subscriptions_post_request.py +97 -0
- smallestai/atoms/models/agent_dto.py +8 -6
- smallestai/atoms/models/agent_dto_language.py +17 -3
- smallestai/atoms/models/agent_dto_language_switching.py +95 -0
- smallestai/atoms/models/agent_dto_synthesizer.py +1 -1
- smallestai/atoms/models/{create_agent_from_template200_response.py → agent_from_template_post200_response.py} +4 -4
- smallestai/atoms/models/{get_agents200_response.py → agent_get200_response.py} +7 -7
- smallestai/atoms/models/{get_agents200_response_data.py → agent_get200_response_data.py} +9 -13
- smallestai/atoms/models/{delete_agent200_response.py → agent_id_delete200_response.py} +4 -4
- smallestai/atoms/models/{get_agent_by_id200_response.py → agent_id_get200_response.py} +4 -4
- smallestai/atoms/models/{update_agent200_response.py → agent_id_patch200_response.py} +4 -4
- smallestai/atoms/models/{update_agent_request.py → agent_id_patch_request.py} +17 -15
- smallestai/atoms/models/{update_agent_request_language.py → agent_id_patch_request_language.py} +14 -10
- smallestai/atoms/models/agent_id_patch_request_language_switching.py +96 -0
- smallestai/atoms/models/{update_agent_request_synthesizer.py → agent_id_patch_request_synthesizer.py} +6 -6
- smallestai/atoms/models/{update_agent_request_synthesizer_voice_config.py → agent_id_patch_request_synthesizer_voice_config.py} +27 -27
- smallestai/atoms/models/{update_agent_request_synthesizer_voice_config_one_of.py → agent_id_patch_request_synthesizer_voice_config_one_of.py} +4 -4
- smallestai/atoms/models/{update_agent_request_synthesizer_voice_config_one_of1.py → agent_id_patch_request_synthesizer_voice_config_one_of1.py} +4 -4
- smallestai/atoms/models/{get_campaign_by_id200_response.py → agent_id_workflow_get200_response.py} +7 -7
- smallestai/atoms/models/agent_id_workflow_get200_response_data.py +105 -0
- smallestai/atoms/models/agent_id_workflow_get200_response_data_edges_inner.py +127 -0
- smallestai/atoms/models/agent_id_workflow_get200_response_data_edges_inner_data.py +91 -0
- smallestai/atoms/models/agent_id_workflow_get200_response_data_edges_inner_marker_end.py +91 -0
- smallestai/atoms/models/agent_id_workflow_get200_response_data_nodes_inner.py +114 -0
- smallestai/atoms/models/agent_id_workflow_get200_response_data_nodes_inner_data.py +115 -0
- smallestai/atoms/models/agent_id_workflow_get200_response_data_nodes_inner_data_variables.py +97 -0
- smallestai/atoms/models/agent_id_workflow_get200_response_data_nodes_inner_data_variables_data_inner.py +91 -0
- smallestai/atoms/models/agent_id_workflow_get200_response_data_nodes_inner_position.py +89 -0
- smallestai/atoms/models/agent_id_workflow_get404_response.py +89 -0
- smallestai/atoms/models/agent_template_get200_response.py +97 -0
- smallestai/atoms/models/{get_agent_templates200_response_data_inner.py → agent_template_get200_response_data_inner.py} +6 -6
- smallestai/atoms/models/{get_campaigns200_response.py → audience_get200_response.py} +7 -7
- smallestai/atoms/models/{create_campaign201_response_data.py → audience_get200_response_data_inner.py} +16 -18
- smallestai/atoms/models/audience_id_delete200_response.py +89 -0
- smallestai/atoms/models/audience_id_delete400_response.py +89 -0
- smallestai/atoms/models/{get_current_user200_response.py → audience_id_get200_response.py} +7 -7
- smallestai/atoms/models/audience_id_get400_response.py +89 -0
- smallestai/atoms/models/audience_id_get403_response.py +89 -0
- smallestai/atoms/models/audience_id_get404_response.py +89 -0
- smallestai/atoms/models/audience_id_members_delete200_response.py +93 -0
- smallestai/atoms/models/audience_id_members_delete200_response_data.py +87 -0
- smallestai/atoms/models/audience_id_members_delete_request.py +87 -0
- smallestai/atoms/models/audience_id_members_get200_response.py +93 -0
- smallestai/atoms/models/audience_id_members_get200_response_data.py +101 -0
- smallestai/atoms/models/{get_campaigns200_response_data_inner_audience.py → audience_id_members_get200_response_data_members_inner.py} +8 -8
- smallestai/atoms/models/audience_id_members_get400_response.py +89 -0
- smallestai/atoms/models/audience_id_members_get500_response.py +89 -0
- smallestai/atoms/models/audience_id_members_post200_response.py +97 -0
- smallestai/atoms/models/audience_id_members_post200_response_data_inner.py +93 -0
- smallestai/atoms/models/audience_id_members_post200_response_data_inner_data.py +89 -0
- smallestai/atoms/models/audience_id_members_post400_response.py +89 -0
- smallestai/atoms/models/audience_id_members_post403_response.py +89 -0
- smallestai/atoms/models/audience_id_members_post_request.py +87 -0
- smallestai/atoms/models/audience_id_members_search_get200_response.py +93 -0
- smallestai/atoms/models/audience_id_members_search_get200_response_data.py +101 -0
- smallestai/atoms/models/audience_id_members_search_get200_response_data_search_info.py +103 -0
- smallestai/atoms/models/audience_id_members_search_get400_response.py +89 -0
- smallestai/atoms/models/audience_id_members_search_get500_response.py +89 -0
- smallestai/atoms/models/{create_campaign201_response.py → audience_post200_response.py} +7 -7
- smallestai/atoms/models/audience_post200_response_data.py +104 -0
- smallestai/atoms/models/audience_post400_response.py +89 -0
- smallestai/atoms/models/campaign_get200_response.py +93 -0
- smallestai/atoms/models/campaign_get200_response_data.py +87 -0
- smallestai/atoms/models/{get_campaigns_request.py → campaign_get_request.py} +4 -4
- smallestai/atoms/models/campaign_id_get200_response.py +93 -0
- smallestai/atoms/models/{get_campaign_by_id200_response_data.py → campaign_id_get200_response_data.py} +4 -4
- smallestai/atoms/models/campaign_post201_response.py +89 -0
- smallestai/atoms/models/{create_campaign_request.py → campaign_post_request.py} +4 -4
- smallestai/atoms/models/{start_outbound_call200_response.py → conversation_id_get200_response.py} +7 -7
- smallestai/atoms/models/{get_conversation_logs200_response_data.py → conversation_id_get200_response_data.py} +4 -4
- smallestai/atoms/models/conversation_outbound_post200_response.py +93 -0
- smallestai/atoms/models/{start_outbound_call200_response_data.py → conversation_outbound_post200_response_data.py} +4 -4
- smallestai/atoms/models/{start_outbound_call_request.py → conversation_outbound_post_request.py} +4 -4
- smallestai/atoms/models/create_agent_request.py +10 -6
- smallestai/atoms/models/create_agent_request_language.py +11 -7
- smallestai/atoms/models/create_agent_request_language_synthesizer_voice_config.py +24 -24
- smallestai/atoms/models/{knowledge_base_dto.py → knowledge_base.py} +15 -8
- smallestai/atoms/models/{knowledge_base_item_dto.py → knowledge_base_item.py} +19 -17
- smallestai/atoms/models/{get_knowledge_bases200_response.py → knowledgebase_get200_response.py} +7 -7
- smallestai/atoms/models/{get_knowledge_base_by_id200_response.py → knowledgebase_id_get200_response.py} +7 -7
- smallestai/atoms/models/{get_knowledge_base_items200_response.py → knowledgebase_id_items_get200_response.py} +7 -7
- smallestai/atoms/models/{upload_text_to_knowledge_base_request.py → knowledgebase_id_items_upload_text_post_request.py} +4 -4
- smallestai/atoms/models/{create_knowledge_base201_response.py → knowledgebase_post201_response.py} +4 -4
- smallestai/atoms/models/{create_knowledge_base_request.py → knowledgebase_post_request.py} +4 -4
- smallestai/atoms/models/{get_organization200_response.py → organization_get200_response.py} +7 -7
- smallestai/atoms/models/{get_organization200_response_data.py → organization_get200_response_data.py} +10 -10
- smallestai/atoms/models/{get_organization200_response_data_members_inner.py → organization_get200_response_data_members_inner.py} +4 -4
- smallestai/atoms/models/{get_organization200_response_data_subscription.py → organization_get200_response_data_subscription.py} +4 -4
- smallestai/atoms/models/product_phone_numbers_get200_response.py +97 -0
- smallestai/atoms/models/product_phone_numbers_get200_response_data_inner.py +100 -0
- smallestai/atoms/models/product_phone_numbers_get200_response_data_inner_attributes.py +89 -0
- smallestai/atoms/models/user_get200_response.py +93 -0
- smallestai/atoms/models/{get_current_user200_response_data.py → user_get200_response_data.py} +4 -4
- smallestai/atoms/models/webhook.py +124 -0
- smallestai/atoms/models/{get_campaigns200_response_data_inner_agent.py → webhook_agent.py} +8 -6
- smallestai/atoms/models/webhook_event.py +98 -0
- smallestai/atoms/models/webhook_get200_response.py +93 -0
- smallestai/atoms/models/webhook_get200_response_data.py +140 -0
- smallestai/atoms/models/webhook_id_delete404_response.py +89 -0
- smallestai/atoms/models/webhook_post201_response.py +89 -0
- smallestai/atoms/models/webhook_post_request.py +99 -0
- smallestai/atoms/models/webhook_post_request_events_inner.py +99 -0
- smallestai/atoms/models/webhook_subscription.py +108 -0
- smallestai/atoms/models/webhook_subscription_populated.py +112 -0
- smallestai/waves/__init__.py +2 -2
- smallestai/waves/async_waves_client.py +42 -69
- smallestai/waves/stream_tts.py +189 -254
- smallestai/waves/utils.py +3 -49
- smallestai/waves/waves_client.py +41 -69
- {smallestai-3.1.0.dist-info → smallestai-4.0.1.dist-info}/METADATA +3 -2
- smallestai-4.0.1.dist-info/RECORD +147 -0
- {smallestai-3.1.0.dist-info → smallestai-4.0.1.dist-info}/WHEEL +1 -1
- smallestai/atoms/models/get_campaigns200_response_data_inner.py +0 -118
- smallestai/atoms/models/get_conversation_logs200_response.py +0 -93
- smallestai-3.1.0.dist-info/RECORD +0 -87
- {smallestai-3.1.0.dist-info → smallestai-4.0.1.dist-info}/licenses/LICENSE +0 -0
- {smallestai-3.1.0.dist-info → smallestai-4.0.1.dist-info}/top_level.txt +0 -0
smallestai/atoms/api/logs_api.py
CHANGED
|
@@ -18,7 +18,7 @@ from typing_extensions import Annotated
|
|
|
18
18
|
|
|
19
19
|
from pydantic import Field, StrictStr
|
|
20
20
|
from typing_extensions import Annotated
|
|
21
|
-
from smallestai.atoms.models.
|
|
21
|
+
from smallestai.atoms.models.conversation_id_get200_response import ConversationIdGet200Response
|
|
22
22
|
|
|
23
23
|
from smallestai.atoms.api_client import ApiClient, RequestSerialized
|
|
24
24
|
from smallestai.atoms.api_response import ApiResponse
|
|
@@ -39,7 +39,7 @@ class LogsApi:
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
@validate_call
|
|
42
|
-
def
|
|
42
|
+
def conversation_id_get(
|
|
43
43
|
self,
|
|
44
44
|
id: Annotated[StrictStr, Field(description="The callId of the conversation. You can get the callId from the conversation logs.")],
|
|
45
45
|
_request_timeout: Union[
|
|
@@ -54,7 +54,7 @@ class LogsApi:
|
|
|
54
54
|
_content_type: Optional[StrictStr] = None,
|
|
55
55
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
56
56
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
57
|
-
) ->
|
|
57
|
+
) -> ConversationIdGet200Response:
|
|
58
58
|
"""Get conversation logs
|
|
59
59
|
|
|
60
60
|
|
|
@@ -82,7 +82,7 @@ class LogsApi:
|
|
|
82
82
|
:return: Returns the result object.
|
|
83
83
|
""" # noqa: E501
|
|
84
84
|
|
|
85
|
-
_param = self.
|
|
85
|
+
_param = self._conversation_id_get_serialize(
|
|
86
86
|
id=id,
|
|
87
87
|
_request_auth=_request_auth,
|
|
88
88
|
_content_type=_content_type,
|
|
@@ -91,7 +91,7 @@ class LogsApi:
|
|
|
91
91
|
)
|
|
92
92
|
|
|
93
93
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
94
|
-
'200': "
|
|
94
|
+
'200': "ConversationIdGet200Response",
|
|
95
95
|
'400': "BadRequestErrorResponse",
|
|
96
96
|
'401': "UnauthorizedErrorReponse",
|
|
97
97
|
'500': "InternalServerErrorResponse",
|
|
@@ -108,7 +108,7 @@ class LogsApi:
|
|
|
108
108
|
|
|
109
109
|
|
|
110
110
|
@validate_call
|
|
111
|
-
def
|
|
111
|
+
def conversation_id_get_with_http_info(
|
|
112
112
|
self,
|
|
113
113
|
id: Annotated[StrictStr, Field(description="The callId of the conversation. You can get the callId from the conversation logs.")],
|
|
114
114
|
_request_timeout: Union[
|
|
@@ -123,7 +123,7 @@ class LogsApi:
|
|
|
123
123
|
_content_type: Optional[StrictStr] = None,
|
|
124
124
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
125
125
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
126
|
-
) -> ApiResponse[
|
|
126
|
+
) -> ApiResponse[ConversationIdGet200Response]:
|
|
127
127
|
"""Get conversation logs
|
|
128
128
|
|
|
129
129
|
|
|
@@ -151,7 +151,7 @@ class LogsApi:
|
|
|
151
151
|
:return: Returns the result object.
|
|
152
152
|
""" # noqa: E501
|
|
153
153
|
|
|
154
|
-
_param = self.
|
|
154
|
+
_param = self._conversation_id_get_serialize(
|
|
155
155
|
id=id,
|
|
156
156
|
_request_auth=_request_auth,
|
|
157
157
|
_content_type=_content_type,
|
|
@@ -160,7 +160,7 @@ class LogsApi:
|
|
|
160
160
|
)
|
|
161
161
|
|
|
162
162
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
163
|
-
'200': "
|
|
163
|
+
'200': "ConversationIdGet200Response",
|
|
164
164
|
'400': "BadRequestErrorResponse",
|
|
165
165
|
'401': "UnauthorizedErrorReponse",
|
|
166
166
|
'500': "InternalServerErrorResponse",
|
|
@@ -177,7 +177,7 @@ class LogsApi:
|
|
|
177
177
|
|
|
178
178
|
|
|
179
179
|
@validate_call
|
|
180
|
-
def
|
|
180
|
+
def conversation_id_get_without_preload_content(
|
|
181
181
|
self,
|
|
182
182
|
id: Annotated[StrictStr, Field(description="The callId of the conversation. You can get the callId from the conversation logs.")],
|
|
183
183
|
_request_timeout: Union[
|
|
@@ -220,7 +220,7 @@ class LogsApi:
|
|
|
220
220
|
:return: Returns the result object.
|
|
221
221
|
""" # noqa: E501
|
|
222
222
|
|
|
223
|
-
_param = self.
|
|
223
|
+
_param = self._conversation_id_get_serialize(
|
|
224
224
|
id=id,
|
|
225
225
|
_request_auth=_request_auth,
|
|
226
226
|
_content_type=_content_type,
|
|
@@ -229,7 +229,7 @@ class LogsApi:
|
|
|
229
229
|
)
|
|
230
230
|
|
|
231
231
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
232
|
-
'200': "
|
|
232
|
+
'200': "ConversationIdGet200Response",
|
|
233
233
|
'400': "BadRequestErrorResponse",
|
|
234
234
|
'401': "UnauthorizedErrorReponse",
|
|
235
235
|
'500': "InternalServerErrorResponse",
|
|
@@ -241,7 +241,7 @@ class LogsApi:
|
|
|
241
241
|
return response_data.response
|
|
242
242
|
|
|
243
243
|
|
|
244
|
-
def
|
|
244
|
+
def _conversation_id_get_serialize(
|
|
245
245
|
self,
|
|
246
246
|
id,
|
|
247
247
|
_request_auth,
|
|
@@ -16,7 +16,7 @@ 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 smallestai.atoms.models.
|
|
19
|
+
from smallestai.atoms.models.organization_get200_response import OrganizationGet200Response
|
|
20
20
|
|
|
21
21
|
from smallestai.atoms.api_client import ApiClient, RequestSerialized
|
|
22
22
|
from smallestai.atoms.api_response import ApiResponse
|
|
@@ -37,7 +37,7 @@ class OrganizationApi:
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
@validate_call
|
|
40
|
-
def
|
|
40
|
+
def organization_get(
|
|
41
41
|
self,
|
|
42
42
|
_request_timeout: Union[
|
|
43
43
|
None,
|
|
@@ -51,7 +51,7 @@ class OrganizationApi:
|
|
|
51
51
|
_content_type: Optional[StrictStr] = None,
|
|
52
52
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
53
53
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
54
|
-
) ->
|
|
54
|
+
) -> OrganizationGet200Response:
|
|
55
55
|
"""Get organization details
|
|
56
56
|
|
|
57
57
|
|
|
@@ -77,7 +77,7 @@ class OrganizationApi:
|
|
|
77
77
|
:return: Returns the result object.
|
|
78
78
|
""" # noqa: E501
|
|
79
79
|
|
|
80
|
-
_param = self.
|
|
80
|
+
_param = self._organization_get_serialize(
|
|
81
81
|
_request_auth=_request_auth,
|
|
82
82
|
_content_type=_content_type,
|
|
83
83
|
_headers=_headers,
|
|
@@ -85,7 +85,7 @@ class OrganizationApi:
|
|
|
85
85
|
)
|
|
86
86
|
|
|
87
87
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
88
|
-
'200': "
|
|
88
|
+
'200': "OrganizationGet200Response",
|
|
89
89
|
'401': "UnauthorizedErrorReponse",
|
|
90
90
|
'500': "InternalServerErrorResponse",
|
|
91
91
|
}
|
|
@@ -101,7 +101,7 @@ class OrganizationApi:
|
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
@validate_call
|
|
104
|
-
def
|
|
104
|
+
def organization_get_with_http_info(
|
|
105
105
|
self,
|
|
106
106
|
_request_timeout: Union[
|
|
107
107
|
None,
|
|
@@ -115,7 +115,7 @@ class OrganizationApi:
|
|
|
115
115
|
_content_type: Optional[StrictStr] = None,
|
|
116
116
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
117
117
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
118
|
-
) -> ApiResponse[
|
|
118
|
+
) -> ApiResponse[OrganizationGet200Response]:
|
|
119
119
|
"""Get organization details
|
|
120
120
|
|
|
121
121
|
|
|
@@ -141,7 +141,7 @@ class OrganizationApi:
|
|
|
141
141
|
:return: Returns the result object.
|
|
142
142
|
""" # noqa: E501
|
|
143
143
|
|
|
144
|
-
_param = self.
|
|
144
|
+
_param = self._organization_get_serialize(
|
|
145
145
|
_request_auth=_request_auth,
|
|
146
146
|
_content_type=_content_type,
|
|
147
147
|
_headers=_headers,
|
|
@@ -149,7 +149,7 @@ class OrganizationApi:
|
|
|
149
149
|
)
|
|
150
150
|
|
|
151
151
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
152
|
-
'200': "
|
|
152
|
+
'200': "OrganizationGet200Response",
|
|
153
153
|
'401': "UnauthorizedErrorReponse",
|
|
154
154
|
'500': "InternalServerErrorResponse",
|
|
155
155
|
}
|
|
@@ -165,7 +165,7 @@ class OrganizationApi:
|
|
|
165
165
|
|
|
166
166
|
|
|
167
167
|
@validate_call
|
|
168
|
-
def
|
|
168
|
+
def organization_get_without_preload_content(
|
|
169
169
|
self,
|
|
170
170
|
_request_timeout: Union[
|
|
171
171
|
None,
|
|
@@ -205,7 +205,7 @@ class OrganizationApi:
|
|
|
205
205
|
:return: Returns the result object.
|
|
206
206
|
""" # noqa: E501
|
|
207
207
|
|
|
208
|
-
_param = self.
|
|
208
|
+
_param = self._organization_get_serialize(
|
|
209
209
|
_request_auth=_request_auth,
|
|
210
210
|
_content_type=_content_type,
|
|
211
211
|
_headers=_headers,
|
|
@@ -213,7 +213,7 @@ class OrganizationApi:
|
|
|
213
213
|
)
|
|
214
214
|
|
|
215
215
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
216
|
-
'200': "
|
|
216
|
+
'200': "OrganizationGet200Response",
|
|
217
217
|
'401': "UnauthorizedErrorReponse",
|
|
218
218
|
'500': "InternalServerErrorResponse",
|
|
219
219
|
}
|
|
@@ -224,7 +224,7 @@ class OrganizationApi:
|
|
|
224
224
|
return response_data.response
|
|
225
225
|
|
|
226
226
|
|
|
227
|
-
def
|
|
227
|
+
def _organization_get_serialize(
|
|
228
228
|
self,
|
|
229
229
|
_request_auth,
|
|
230
230
|
_content_type,
|
smallestai/atoms/api/user_api.py
CHANGED
|
@@ -16,7 +16,7 @@ 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 smallestai.atoms.models.
|
|
19
|
+
from smallestai.atoms.models.user_get200_response import UserGet200Response
|
|
20
20
|
|
|
21
21
|
from smallestai.atoms.api_client import ApiClient, RequestSerialized
|
|
22
22
|
from smallestai.atoms.api_response import ApiResponse
|
|
@@ -37,7 +37,7 @@ class UserApi:
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
@validate_call
|
|
40
|
-
def
|
|
40
|
+
def user_get(
|
|
41
41
|
self,
|
|
42
42
|
_request_timeout: Union[
|
|
43
43
|
None,
|
|
@@ -51,7 +51,7 @@ class UserApi:
|
|
|
51
51
|
_content_type: Optional[StrictStr] = None,
|
|
52
52
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
53
53
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
54
|
-
) ->
|
|
54
|
+
) -> UserGet200Response:
|
|
55
55
|
"""Get user details
|
|
56
56
|
|
|
57
57
|
|
|
@@ -77,7 +77,7 @@ class UserApi:
|
|
|
77
77
|
:return: Returns the result object.
|
|
78
78
|
""" # noqa: E501
|
|
79
79
|
|
|
80
|
-
_param = self.
|
|
80
|
+
_param = self._user_get_serialize(
|
|
81
81
|
_request_auth=_request_auth,
|
|
82
82
|
_content_type=_content_type,
|
|
83
83
|
_headers=_headers,
|
|
@@ -85,7 +85,7 @@ class UserApi:
|
|
|
85
85
|
)
|
|
86
86
|
|
|
87
87
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
88
|
-
'200': "
|
|
88
|
+
'200': "UserGet200Response",
|
|
89
89
|
'401': "UnauthorizedErrorReponse",
|
|
90
90
|
'500': "InternalServerErrorResponse",
|
|
91
91
|
}
|
|
@@ -101,7 +101,7 @@ class UserApi:
|
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
@validate_call
|
|
104
|
-
def
|
|
104
|
+
def user_get_with_http_info(
|
|
105
105
|
self,
|
|
106
106
|
_request_timeout: Union[
|
|
107
107
|
None,
|
|
@@ -115,7 +115,7 @@ class UserApi:
|
|
|
115
115
|
_content_type: Optional[StrictStr] = None,
|
|
116
116
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
117
117
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
118
|
-
) -> ApiResponse[
|
|
118
|
+
) -> ApiResponse[UserGet200Response]:
|
|
119
119
|
"""Get user details
|
|
120
120
|
|
|
121
121
|
|
|
@@ -141,7 +141,7 @@ class UserApi:
|
|
|
141
141
|
:return: Returns the result object.
|
|
142
142
|
""" # noqa: E501
|
|
143
143
|
|
|
144
|
-
_param = self.
|
|
144
|
+
_param = self._user_get_serialize(
|
|
145
145
|
_request_auth=_request_auth,
|
|
146
146
|
_content_type=_content_type,
|
|
147
147
|
_headers=_headers,
|
|
@@ -149,7 +149,7 @@ class UserApi:
|
|
|
149
149
|
)
|
|
150
150
|
|
|
151
151
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
152
|
-
'200': "
|
|
152
|
+
'200': "UserGet200Response",
|
|
153
153
|
'401': "UnauthorizedErrorReponse",
|
|
154
154
|
'500': "InternalServerErrorResponse",
|
|
155
155
|
}
|
|
@@ -165,7 +165,7 @@ class UserApi:
|
|
|
165
165
|
|
|
166
166
|
|
|
167
167
|
@validate_call
|
|
168
|
-
def
|
|
168
|
+
def user_get_without_preload_content(
|
|
169
169
|
self,
|
|
170
170
|
_request_timeout: Union[
|
|
171
171
|
None,
|
|
@@ -205,7 +205,7 @@ class UserApi:
|
|
|
205
205
|
:return: Returns the result object.
|
|
206
206
|
""" # noqa: E501
|
|
207
207
|
|
|
208
|
-
_param = self.
|
|
208
|
+
_param = self._user_get_serialize(
|
|
209
209
|
_request_auth=_request_auth,
|
|
210
210
|
_content_type=_content_type,
|
|
211
211
|
_headers=_headers,
|
|
@@ -213,7 +213,7 @@ class UserApi:
|
|
|
213
213
|
)
|
|
214
214
|
|
|
215
215
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
216
|
-
'200': "
|
|
216
|
+
'200': "UserGet200Response",
|
|
217
217
|
'401': "UnauthorizedErrorReponse",
|
|
218
218
|
'500': "InternalServerErrorResponse",
|
|
219
219
|
}
|
|
@@ -224,7 +224,7 @@ class UserApi:
|
|
|
224
224
|
return response_data.response
|
|
225
225
|
|
|
226
226
|
|
|
227
|
-
def
|
|
227
|
+
def _user_get_serialize(
|
|
228
228
|
self,
|
|
229
229
|
_request_auth,
|
|
230
230
|
_content_type,
|