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.

Files changed (135) hide show
  1. smallestai/__init__.py +35 -45
  2. smallestai/atoms/__init__.py +249 -123
  3. smallestai/atoms/api/__init__.py +0 -1
  4. smallestai/atoms/api/agent_templates_api.py +26 -26
  5. smallestai/atoms/api/agents_api.py +1316 -190
  6. smallestai/atoms/api/calls_api.py +29 -29
  7. smallestai/atoms/api/campaigns_api.py +165 -165
  8. smallestai/atoms/api/knowledge_base_api.py +290 -290
  9. smallestai/atoms/api/logs_api.py +13 -13
  10. smallestai/atoms/api/organization_api.py +13 -13
  11. smallestai/atoms/api/user_api.py +13 -13
  12. smallestai/atoms/atoms_client.py +77 -49
  13. smallestai/atoms/models/__init__.py +103 -43
  14. smallestai/atoms/models/agent_agent_id_webhook_subscriptions_delete200_response.py +89 -0
  15. smallestai/atoms/models/{get_agent_templates200_response.py → agent_agent_id_webhook_subscriptions_get200_response.py} +7 -7
  16. smallestai/atoms/models/agent_agent_id_webhook_subscriptions_get404_response.py +89 -0
  17. smallestai/atoms/models/agent_agent_id_webhook_subscriptions_post201_response.py +89 -0
  18. smallestai/atoms/models/agent_agent_id_webhook_subscriptions_post400_response.py +89 -0
  19. smallestai/atoms/models/agent_agent_id_webhook_subscriptions_post_request.py +97 -0
  20. smallestai/atoms/models/agent_dto.py +8 -6
  21. smallestai/atoms/models/agent_dto_language.py +17 -3
  22. smallestai/atoms/models/agent_dto_language_switching.py +95 -0
  23. smallestai/atoms/models/agent_dto_synthesizer.py +1 -1
  24. smallestai/atoms/models/{create_agent_from_template200_response.py → agent_from_template_post200_response.py} +4 -4
  25. smallestai/atoms/models/{get_agents200_response.py → agent_get200_response.py} +7 -7
  26. smallestai/atoms/models/{get_agents200_response_data.py → agent_get200_response_data.py} +9 -13
  27. smallestai/atoms/models/{delete_agent200_response.py → agent_id_delete200_response.py} +4 -4
  28. smallestai/atoms/models/{get_agent_by_id200_response.py → agent_id_get200_response.py} +4 -4
  29. smallestai/atoms/models/{update_agent200_response.py → agent_id_patch200_response.py} +4 -4
  30. smallestai/atoms/models/{update_agent_request.py → agent_id_patch_request.py} +17 -15
  31. smallestai/atoms/models/{update_agent_request_language.py → agent_id_patch_request_language.py} +14 -10
  32. smallestai/atoms/models/agent_id_patch_request_language_switching.py +96 -0
  33. smallestai/atoms/models/{update_agent_request_synthesizer.py → agent_id_patch_request_synthesizer.py} +6 -6
  34. smallestai/atoms/models/{update_agent_request_synthesizer_voice_config.py → agent_id_patch_request_synthesizer_voice_config.py} +27 -27
  35. smallestai/atoms/models/{update_agent_request_synthesizer_voice_config_one_of.py → agent_id_patch_request_synthesizer_voice_config_one_of.py} +4 -4
  36. smallestai/atoms/models/{update_agent_request_synthesizer_voice_config_one_of1.py → agent_id_patch_request_synthesizer_voice_config_one_of1.py} +4 -4
  37. smallestai/atoms/models/{get_campaign_by_id200_response.py → agent_id_workflow_get200_response.py} +7 -7
  38. smallestai/atoms/models/agent_id_workflow_get200_response_data.py +105 -0
  39. smallestai/atoms/models/agent_id_workflow_get200_response_data_edges_inner.py +127 -0
  40. smallestai/atoms/models/agent_id_workflow_get200_response_data_edges_inner_data.py +91 -0
  41. smallestai/atoms/models/agent_id_workflow_get200_response_data_edges_inner_marker_end.py +91 -0
  42. smallestai/atoms/models/agent_id_workflow_get200_response_data_nodes_inner.py +114 -0
  43. smallestai/atoms/models/agent_id_workflow_get200_response_data_nodes_inner_data.py +115 -0
  44. smallestai/atoms/models/agent_id_workflow_get200_response_data_nodes_inner_data_variables.py +97 -0
  45. smallestai/atoms/models/agent_id_workflow_get200_response_data_nodes_inner_data_variables_data_inner.py +91 -0
  46. smallestai/atoms/models/agent_id_workflow_get200_response_data_nodes_inner_position.py +89 -0
  47. smallestai/atoms/models/agent_id_workflow_get404_response.py +89 -0
  48. smallestai/atoms/models/agent_template_get200_response.py +97 -0
  49. smallestai/atoms/models/{get_agent_templates200_response_data_inner.py → agent_template_get200_response_data_inner.py} +6 -6
  50. smallestai/atoms/models/{get_campaigns200_response.py → audience_get200_response.py} +7 -7
  51. smallestai/atoms/models/{create_campaign201_response_data.py → audience_get200_response_data_inner.py} +16 -18
  52. smallestai/atoms/models/audience_id_delete200_response.py +89 -0
  53. smallestai/atoms/models/audience_id_delete400_response.py +89 -0
  54. smallestai/atoms/models/{get_current_user200_response.py → audience_id_get200_response.py} +7 -7
  55. smallestai/atoms/models/audience_id_get400_response.py +89 -0
  56. smallestai/atoms/models/audience_id_get403_response.py +89 -0
  57. smallestai/atoms/models/audience_id_get404_response.py +89 -0
  58. smallestai/atoms/models/audience_id_members_delete200_response.py +93 -0
  59. smallestai/atoms/models/audience_id_members_delete200_response_data.py +87 -0
  60. smallestai/atoms/models/audience_id_members_delete_request.py +87 -0
  61. smallestai/atoms/models/audience_id_members_get200_response.py +93 -0
  62. smallestai/atoms/models/audience_id_members_get200_response_data.py +101 -0
  63. smallestai/atoms/models/{get_campaigns200_response_data_inner_audience.py → audience_id_members_get200_response_data_members_inner.py} +8 -8
  64. smallestai/atoms/models/audience_id_members_get400_response.py +89 -0
  65. smallestai/atoms/models/audience_id_members_get500_response.py +89 -0
  66. smallestai/atoms/models/audience_id_members_post200_response.py +97 -0
  67. smallestai/atoms/models/audience_id_members_post200_response_data_inner.py +93 -0
  68. smallestai/atoms/models/audience_id_members_post200_response_data_inner_data.py +89 -0
  69. smallestai/atoms/models/audience_id_members_post400_response.py +89 -0
  70. smallestai/atoms/models/audience_id_members_post403_response.py +89 -0
  71. smallestai/atoms/models/audience_id_members_post_request.py +87 -0
  72. smallestai/atoms/models/audience_id_members_search_get200_response.py +93 -0
  73. smallestai/atoms/models/audience_id_members_search_get200_response_data.py +101 -0
  74. smallestai/atoms/models/audience_id_members_search_get200_response_data_search_info.py +103 -0
  75. smallestai/atoms/models/audience_id_members_search_get400_response.py +89 -0
  76. smallestai/atoms/models/audience_id_members_search_get500_response.py +89 -0
  77. smallestai/atoms/models/{create_campaign201_response.py → audience_post200_response.py} +7 -7
  78. smallestai/atoms/models/audience_post200_response_data.py +104 -0
  79. smallestai/atoms/models/audience_post400_response.py +89 -0
  80. smallestai/atoms/models/campaign_get200_response.py +93 -0
  81. smallestai/atoms/models/campaign_get200_response_data.py +87 -0
  82. smallestai/atoms/models/{get_campaigns_request.py → campaign_get_request.py} +4 -4
  83. smallestai/atoms/models/campaign_id_get200_response.py +93 -0
  84. smallestai/atoms/models/{get_campaign_by_id200_response_data.py → campaign_id_get200_response_data.py} +4 -4
  85. smallestai/atoms/models/campaign_post201_response.py +89 -0
  86. smallestai/atoms/models/{create_campaign_request.py → campaign_post_request.py} +4 -4
  87. smallestai/atoms/models/{start_outbound_call200_response.py → conversation_id_get200_response.py} +7 -7
  88. smallestai/atoms/models/{get_conversation_logs200_response_data.py → conversation_id_get200_response_data.py} +4 -4
  89. smallestai/atoms/models/conversation_outbound_post200_response.py +93 -0
  90. smallestai/atoms/models/{start_outbound_call200_response_data.py → conversation_outbound_post200_response_data.py} +4 -4
  91. smallestai/atoms/models/{start_outbound_call_request.py → conversation_outbound_post_request.py} +4 -4
  92. smallestai/atoms/models/create_agent_request.py +10 -6
  93. smallestai/atoms/models/create_agent_request_language.py +11 -7
  94. smallestai/atoms/models/create_agent_request_language_synthesizer_voice_config.py +24 -24
  95. smallestai/atoms/models/{knowledge_base_dto.py → knowledge_base.py} +15 -8
  96. smallestai/atoms/models/{knowledge_base_item_dto.py → knowledge_base_item.py} +19 -17
  97. smallestai/atoms/models/{get_knowledge_bases200_response.py → knowledgebase_get200_response.py} +7 -7
  98. smallestai/atoms/models/{get_knowledge_base_by_id200_response.py → knowledgebase_id_get200_response.py} +7 -7
  99. smallestai/atoms/models/{get_knowledge_base_items200_response.py → knowledgebase_id_items_get200_response.py} +7 -7
  100. smallestai/atoms/models/{upload_text_to_knowledge_base_request.py → knowledgebase_id_items_upload_text_post_request.py} +4 -4
  101. smallestai/atoms/models/{create_knowledge_base201_response.py → knowledgebase_post201_response.py} +4 -4
  102. smallestai/atoms/models/{create_knowledge_base_request.py → knowledgebase_post_request.py} +4 -4
  103. smallestai/atoms/models/{get_organization200_response.py → organization_get200_response.py} +7 -7
  104. smallestai/atoms/models/{get_organization200_response_data.py → organization_get200_response_data.py} +10 -10
  105. smallestai/atoms/models/{get_organization200_response_data_members_inner.py → organization_get200_response_data_members_inner.py} +4 -4
  106. smallestai/atoms/models/{get_organization200_response_data_subscription.py → organization_get200_response_data_subscription.py} +4 -4
  107. smallestai/atoms/models/product_phone_numbers_get200_response.py +97 -0
  108. smallestai/atoms/models/product_phone_numbers_get200_response_data_inner.py +100 -0
  109. smallestai/atoms/models/product_phone_numbers_get200_response_data_inner_attributes.py +89 -0
  110. smallestai/atoms/models/user_get200_response.py +93 -0
  111. smallestai/atoms/models/{get_current_user200_response_data.py → user_get200_response_data.py} +4 -4
  112. smallestai/atoms/models/webhook.py +124 -0
  113. smallestai/atoms/models/{get_campaigns200_response_data_inner_agent.py → webhook_agent.py} +8 -6
  114. smallestai/atoms/models/webhook_event.py +98 -0
  115. smallestai/atoms/models/webhook_get200_response.py +93 -0
  116. smallestai/atoms/models/webhook_get200_response_data.py +140 -0
  117. smallestai/atoms/models/webhook_id_delete404_response.py +89 -0
  118. smallestai/atoms/models/webhook_post201_response.py +89 -0
  119. smallestai/atoms/models/webhook_post_request.py +99 -0
  120. smallestai/atoms/models/webhook_post_request_events_inner.py +99 -0
  121. smallestai/atoms/models/webhook_subscription.py +108 -0
  122. smallestai/atoms/models/webhook_subscription_populated.py +112 -0
  123. smallestai/waves/__init__.py +2 -2
  124. smallestai/waves/async_waves_client.py +42 -69
  125. smallestai/waves/stream_tts.py +189 -254
  126. smallestai/waves/utils.py +3 -49
  127. smallestai/waves/waves_client.py +41 -69
  128. {smallestai-3.1.0.dist-info → smallestai-4.0.1.dist-info}/METADATA +3 -2
  129. smallestai-4.0.1.dist-info/RECORD +147 -0
  130. {smallestai-3.1.0.dist-info → smallestai-4.0.1.dist-info}/WHEEL +1 -1
  131. smallestai/atoms/models/get_campaigns200_response_data_inner.py +0 -118
  132. smallestai/atoms/models/get_conversation_logs200_response.py +0 -93
  133. smallestai-3.1.0.dist-info/RECORD +0 -87
  134. {smallestai-3.1.0.dist-info → smallestai-4.0.1.dist-info}/licenses/LICENSE +0 -0
  135. {smallestai-3.1.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.start_outbound_call200_response import StartOutboundCall200Response
20
- from smallestai.atoms.models.start_outbound_call_request import StartOutboundCallRequest
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 start_outbound_call(
41
+ def conversation_outbound_post(
42
42
  self,
43
- start_outbound_call_request: StartOutboundCallRequest,
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
- ) -> StartOutboundCall200Response:
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 start_outbound_call_request: (required)
62
- :type start_outbound_call_request: StartOutboundCallRequest
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._start_outbound_call_serialize(
86
- start_outbound_call_request=start_outbound_call_request,
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': "StartOutboundCall200Response",
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 start_outbound_call_with_http_info(
111
+ def conversation_outbound_post_with_http_info(
112
112
  self,
113
- start_outbound_call_request: StartOutboundCallRequest,
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[StartOutboundCall200Response]:
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 start_outbound_call_request: (required)
132
- :type start_outbound_call_request: StartOutboundCallRequest
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._start_outbound_call_serialize(
156
- start_outbound_call_request=start_outbound_call_request,
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': "StartOutboundCall200Response",
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 start_outbound_call_without_preload_content(
181
+ def conversation_outbound_post_without_preload_content(
182
182
  self,
183
- start_outbound_call_request: StartOutboundCallRequest,
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 start_outbound_call_request: (required)
202
- :type start_outbound_call_request: StartOutboundCallRequest
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._start_outbound_call_serialize(
226
- start_outbound_call_request=start_outbound_call_request,
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': "StartOutboundCall200Response",
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 _start_outbound_call_serialize(
246
+ def _conversation_outbound_post_serialize(
247
247
  self,
248
- start_outbound_call_request,
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 start_outbound_call_request is not None:
275
- _body_params = start_outbound_call_request
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`