smallestai 4.0.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 +34 -44
- 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-4.0.0.dist-info → smallestai-4.0.1.dist-info}/METADATA +2 -2
- smallestai-4.0.1.dist-info/RECORD +147 -0
- smallestai/atoms/models/get_campaigns200_response_data_inner.py +0 -118
- smallestai/atoms/models/get_conversation_logs200_response.py +0 -93
- smallestai-4.0.0.dist-info/RECORD +0 -87
- {smallestai-4.0.0.dist-info → smallestai-4.0.1.dist-info}/WHEEL +0 -0
- {smallestai-4.0.0.dist-info → smallestai-4.0.1.dist-info}/licenses/LICENSE +0 -0
- {smallestai-4.0.0.dist-info → smallestai-4.0.1.dist-info}/top_level.txt +0 -0
|
@@ -16,8 +16,8 @@ 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.
|
|
20
|
-
from smallestai.atoms.models.
|
|
19
|
+
from smallestai.atoms.models.conversation_outbound_post200_response import ConversationOutboundPost200Response
|
|
20
|
+
from smallestai.atoms.models.conversation_outbound_post_request import ConversationOutboundPostRequest
|
|
21
21
|
|
|
22
22
|
from smallestai.atoms.api_client import ApiClient, RequestSerialized
|
|
23
23
|
from smallestai.atoms.api_response import ApiResponse
|
|
@@ -38,9 +38,9 @@ class CallsApi:
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
@validate_call
|
|
41
|
-
def
|
|
41
|
+
def conversation_outbound_post(
|
|
42
42
|
self,
|
|
43
|
-
|
|
43
|
+
conversation_outbound_post_request: ConversationOutboundPostRequest,
|
|
44
44
|
_request_timeout: Union[
|
|
45
45
|
None,
|
|
46
46
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -53,13 +53,13 @@ class CallsApi:
|
|
|
53
53
|
_content_type: Optional[StrictStr] = None,
|
|
54
54
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
55
55
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
56
|
-
) ->
|
|
56
|
+
) -> ConversationOutboundPost200Response:
|
|
57
57
|
"""Start an outbound call
|
|
58
58
|
|
|
59
59
|
Initiates an outbound conversation with a specified agent and phone number.
|
|
60
60
|
|
|
61
|
-
:param
|
|
62
|
-
:type
|
|
61
|
+
:param conversation_outbound_post_request: (required)
|
|
62
|
+
:type conversation_outbound_post_request: ConversationOutboundPostRequest
|
|
63
63
|
:param _request_timeout: timeout setting for this request. If one
|
|
64
64
|
number provided, it will be total request
|
|
65
65
|
timeout. It can also be a pair (tuple) of
|
|
@@ -82,8 +82,8 @@ class CallsApi:
|
|
|
82
82
|
:return: Returns the result object.
|
|
83
83
|
""" # noqa: E501
|
|
84
84
|
|
|
85
|
-
_param = self.
|
|
86
|
-
|
|
85
|
+
_param = self._conversation_outbound_post_serialize(
|
|
86
|
+
conversation_outbound_post_request=conversation_outbound_post_request,
|
|
87
87
|
_request_auth=_request_auth,
|
|
88
88
|
_content_type=_content_type,
|
|
89
89
|
_headers=_headers,
|
|
@@ -91,7 +91,7 @@ class CallsApi:
|
|
|
91
91
|
)
|
|
92
92
|
|
|
93
93
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
94
|
-
'200': "
|
|
94
|
+
'200': "ConversationOutboundPost200Response",
|
|
95
95
|
'400': "BadRequestErrorResponse",
|
|
96
96
|
'401': "UnauthorizedErrorReponse",
|
|
97
97
|
'500': "InternalServerErrorResponse",
|
|
@@ -108,9 +108,9 @@ class CallsApi:
|
|
|
108
108
|
|
|
109
109
|
|
|
110
110
|
@validate_call
|
|
111
|
-
def
|
|
111
|
+
def conversation_outbound_post_with_http_info(
|
|
112
112
|
self,
|
|
113
|
-
|
|
113
|
+
conversation_outbound_post_request: ConversationOutboundPostRequest,
|
|
114
114
|
_request_timeout: Union[
|
|
115
115
|
None,
|
|
116
116
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -123,13 +123,13 @@ class CallsApi:
|
|
|
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[ConversationOutboundPost200Response]:
|
|
127
127
|
"""Start an outbound call
|
|
128
128
|
|
|
129
129
|
Initiates an outbound conversation with a specified agent and phone number.
|
|
130
130
|
|
|
131
|
-
:param
|
|
132
|
-
:type
|
|
131
|
+
:param conversation_outbound_post_request: (required)
|
|
132
|
+
:type conversation_outbound_post_request: ConversationOutboundPostRequest
|
|
133
133
|
:param _request_timeout: timeout setting for this request. If one
|
|
134
134
|
number provided, it will be total request
|
|
135
135
|
timeout. It can also be a pair (tuple) of
|
|
@@ -152,8 +152,8 @@ class CallsApi:
|
|
|
152
152
|
:return: Returns the result object.
|
|
153
153
|
""" # noqa: E501
|
|
154
154
|
|
|
155
|
-
_param = self.
|
|
156
|
-
|
|
155
|
+
_param = self._conversation_outbound_post_serialize(
|
|
156
|
+
conversation_outbound_post_request=conversation_outbound_post_request,
|
|
157
157
|
_request_auth=_request_auth,
|
|
158
158
|
_content_type=_content_type,
|
|
159
159
|
_headers=_headers,
|
|
@@ -161,7 +161,7 @@ class CallsApi:
|
|
|
161
161
|
)
|
|
162
162
|
|
|
163
163
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
164
|
-
'200': "
|
|
164
|
+
'200': "ConversationOutboundPost200Response",
|
|
165
165
|
'400': "BadRequestErrorResponse",
|
|
166
166
|
'401': "UnauthorizedErrorReponse",
|
|
167
167
|
'500': "InternalServerErrorResponse",
|
|
@@ -178,9 +178,9 @@ class CallsApi:
|
|
|
178
178
|
|
|
179
179
|
|
|
180
180
|
@validate_call
|
|
181
|
-
def
|
|
181
|
+
def conversation_outbound_post_without_preload_content(
|
|
182
182
|
self,
|
|
183
|
-
|
|
183
|
+
conversation_outbound_post_request: ConversationOutboundPostRequest,
|
|
184
184
|
_request_timeout: Union[
|
|
185
185
|
None,
|
|
186
186
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -198,8 +198,8 @@ class CallsApi:
|
|
|
198
198
|
|
|
199
199
|
Initiates an outbound conversation with a specified agent and phone number.
|
|
200
200
|
|
|
201
|
-
:param
|
|
202
|
-
:type
|
|
201
|
+
:param conversation_outbound_post_request: (required)
|
|
202
|
+
:type conversation_outbound_post_request: ConversationOutboundPostRequest
|
|
203
203
|
:param _request_timeout: timeout setting for this request. If one
|
|
204
204
|
number provided, it will be total request
|
|
205
205
|
timeout. It can also be a pair (tuple) of
|
|
@@ -222,8 +222,8 @@ class CallsApi:
|
|
|
222
222
|
:return: Returns the result object.
|
|
223
223
|
""" # noqa: E501
|
|
224
224
|
|
|
225
|
-
_param = self.
|
|
226
|
-
|
|
225
|
+
_param = self._conversation_outbound_post_serialize(
|
|
226
|
+
conversation_outbound_post_request=conversation_outbound_post_request,
|
|
227
227
|
_request_auth=_request_auth,
|
|
228
228
|
_content_type=_content_type,
|
|
229
229
|
_headers=_headers,
|
|
@@ -231,7 +231,7 @@ class CallsApi:
|
|
|
231
231
|
)
|
|
232
232
|
|
|
233
233
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
234
|
-
'200': "
|
|
234
|
+
'200': "ConversationOutboundPost200Response",
|
|
235
235
|
'400': "BadRequestErrorResponse",
|
|
236
236
|
'401': "UnauthorizedErrorReponse",
|
|
237
237
|
'500': "InternalServerErrorResponse",
|
|
@@ -243,9 +243,9 @@ class CallsApi:
|
|
|
243
243
|
return response_data.response
|
|
244
244
|
|
|
245
245
|
|
|
246
|
-
def
|
|
246
|
+
def _conversation_outbound_post_serialize(
|
|
247
247
|
self,
|
|
248
|
-
|
|
248
|
+
conversation_outbound_post_request,
|
|
249
249
|
_request_auth,
|
|
250
250
|
_content_type,
|
|
251
251
|
_headers,
|
|
@@ -271,8 +271,8 @@ class CallsApi:
|
|
|
271
271
|
# process the header parameters
|
|
272
272
|
# process the form parameters
|
|
273
273
|
# process the body parameter
|
|
274
|
-
if
|
|
275
|
-
_body_params =
|
|
274
|
+
if conversation_outbound_post_request is not None:
|
|
275
|
+
_body_params = conversation_outbound_post_request
|
|
276
276
|
|
|
277
277
|
|
|
278
278
|
# set the HTTP header `Accept`
|