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.

Files changed (130) hide show
  1. smallestai/__init__.py +34 -44
  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-4.0.0.dist-info → smallestai-4.0.1.dist-info}/METADATA +2 -2
  124. smallestai-4.0.1.dist-info/RECORD +147 -0
  125. smallestai/atoms/models/get_campaigns200_response_data_inner.py +0 -118
  126. smallestai/atoms/models/get_conversation_logs200_response.py +0 -93
  127. smallestai-4.0.0.dist-info/RECORD +0 -87
  128. {smallestai-4.0.0.dist-info → smallestai-4.0.1.dist-info}/WHEEL +0 -0
  129. {smallestai-4.0.0.dist-info → smallestai-4.0.1.dist-info}/licenses/LICENSE +0 -0
  130. {smallestai-4.0.0.dist-info → smallestai-4.0.1.dist-info}/top_level.txt +0 -0
@@ -16,9 +16,9 @@ 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.create_agent_from_template200_response import CreateAgentFromTemplate200Response
19
+ from smallestai.atoms.models.agent_from_template_post200_response import AgentFromTemplatePost200Response
20
+ from smallestai.atoms.models.agent_template_get200_response import AgentTemplateGet200Response
20
21
  from smallestai.atoms.models.create_agent_from_template_request import CreateAgentFromTemplateRequest
21
- from smallestai.atoms.models.get_agent_templates200_response import GetAgentTemplates200Response
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 AgentTemplatesApi:
39
39
 
40
40
 
41
41
  @validate_call
42
- def create_agent_from_template(
42
+ def agent_from_template_post(
43
43
  self,
44
44
  create_agent_from_template_request: CreateAgentFromTemplateRequest,
45
45
  _request_timeout: Union[
@@ -54,7 +54,7 @@ class AgentTemplatesApi:
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
- ) -> CreateAgentFromTemplate200Response:
57
+ ) -> AgentFromTemplatePost200Response:
58
58
  """Create agent from template
59
59
 
60
60
  We have created templates for some common use cases. You can use these templates to create an agent. For getting list of templates, you can use the /agent/template endpoint. It will give you the list of templates with their description and id. You can pass the id of the template in the request body to create an agent from the template.
@@ -83,7 +83,7 @@ class AgentTemplatesApi:
83
83
  :return: Returns the result object.
84
84
  """ # noqa: E501
85
85
 
86
- _param = self._create_agent_from_template_serialize(
86
+ _param = self._agent_from_template_post_serialize(
87
87
  create_agent_from_template_request=create_agent_from_template_request,
88
88
  _request_auth=_request_auth,
89
89
  _content_type=_content_type,
@@ -92,7 +92,7 @@ class AgentTemplatesApi:
92
92
  )
93
93
 
94
94
  _response_types_map: Dict[str, Optional[str]] = {
95
- '200': "CreateAgentFromTemplate200Response",
95
+ '200': "AgentFromTemplatePost200Response",
96
96
  '400': "BadRequestErrorResponse",
97
97
  '401': "UnauthorizedErrorReponse",
98
98
  '500': "InternalServerErrorResponse",
@@ -109,7 +109,7 @@ class AgentTemplatesApi:
109
109
 
110
110
 
111
111
  @validate_call
112
- def create_agent_from_template_with_http_info(
112
+ def agent_from_template_post_with_http_info(
113
113
  self,
114
114
  create_agent_from_template_request: CreateAgentFromTemplateRequest,
115
115
  _request_timeout: Union[
@@ -124,7 +124,7 @@ class AgentTemplatesApi:
124
124
  _content_type: Optional[StrictStr] = None,
125
125
  _headers: Optional[Dict[StrictStr, Any]] = None,
126
126
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
127
- ) -> ApiResponse[CreateAgentFromTemplate200Response]:
127
+ ) -> ApiResponse[AgentFromTemplatePost200Response]:
128
128
  """Create agent from template
129
129
 
130
130
  We have created templates for some common use cases. You can use these templates to create an agent. For getting list of templates, you can use the /agent/template endpoint. It will give you the list of templates with their description and id. You can pass the id of the template in the request body to create an agent from the template.
@@ -153,7 +153,7 @@ class AgentTemplatesApi:
153
153
  :return: Returns the result object.
154
154
  """ # noqa: E501
155
155
 
156
- _param = self._create_agent_from_template_serialize(
156
+ _param = self._agent_from_template_post_serialize(
157
157
  create_agent_from_template_request=create_agent_from_template_request,
158
158
  _request_auth=_request_auth,
159
159
  _content_type=_content_type,
@@ -162,7 +162,7 @@ class AgentTemplatesApi:
162
162
  )
163
163
 
164
164
  _response_types_map: Dict[str, Optional[str]] = {
165
- '200': "CreateAgentFromTemplate200Response",
165
+ '200': "AgentFromTemplatePost200Response",
166
166
  '400': "BadRequestErrorResponse",
167
167
  '401': "UnauthorizedErrorReponse",
168
168
  '500': "InternalServerErrorResponse",
@@ -179,7 +179,7 @@ class AgentTemplatesApi:
179
179
 
180
180
 
181
181
  @validate_call
182
- def create_agent_from_template_without_preload_content(
182
+ def agent_from_template_post_without_preload_content(
183
183
  self,
184
184
  create_agent_from_template_request: CreateAgentFromTemplateRequest,
185
185
  _request_timeout: Union[
@@ -223,7 +223,7 @@ class AgentTemplatesApi:
223
223
  :return: Returns the result object.
224
224
  """ # noqa: E501
225
225
 
226
- _param = self._create_agent_from_template_serialize(
226
+ _param = self._agent_from_template_post_serialize(
227
227
  create_agent_from_template_request=create_agent_from_template_request,
228
228
  _request_auth=_request_auth,
229
229
  _content_type=_content_type,
@@ -232,7 +232,7 @@ class AgentTemplatesApi:
232
232
  )
233
233
 
234
234
  _response_types_map: Dict[str, Optional[str]] = {
235
- '200': "CreateAgentFromTemplate200Response",
235
+ '200': "AgentFromTemplatePost200Response",
236
236
  '400': "BadRequestErrorResponse",
237
237
  '401': "UnauthorizedErrorReponse",
238
238
  '500': "InternalServerErrorResponse",
@@ -244,7 +244,7 @@ class AgentTemplatesApi:
244
244
  return response_data.response
245
245
 
246
246
 
247
- def _create_agent_from_template_serialize(
247
+ def _agent_from_template_post_serialize(
248
248
  self,
249
249
  create_agent_from_template_request,
250
250
  _request_auth,
@@ -322,7 +322,7 @@ class AgentTemplatesApi:
322
322
 
323
323
 
324
324
  @validate_call
325
- def get_agent_templates(
325
+ def agent_template_get(
326
326
  self,
327
327
  _request_timeout: Union[
328
328
  None,
@@ -336,7 +336,7 @@ class AgentTemplatesApi:
336
336
  _content_type: Optional[StrictStr] = None,
337
337
  _headers: Optional[Dict[StrictStr, Any]] = None,
338
338
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
339
- ) -> GetAgentTemplates200Response:
339
+ ) -> AgentTemplateGet200Response:
340
340
  """Get agent templates
341
341
 
342
342
 
@@ -362,7 +362,7 @@ class AgentTemplatesApi:
362
362
  :return: Returns the result object.
363
363
  """ # noqa: E501
364
364
 
365
- _param = self._get_agent_templates_serialize(
365
+ _param = self._agent_template_get_serialize(
366
366
  _request_auth=_request_auth,
367
367
  _content_type=_content_type,
368
368
  _headers=_headers,
@@ -370,7 +370,7 @@ class AgentTemplatesApi:
370
370
  )
371
371
 
372
372
  _response_types_map: Dict[str, Optional[str]] = {
373
- '200': "GetAgentTemplates200Response",
373
+ '200': "AgentTemplateGet200Response",
374
374
  '401': "UnauthorizedErrorReponse",
375
375
  '400': "BadRequestErrorResponse",
376
376
  '500': "InternalServerErrorResponse",
@@ -387,7 +387,7 @@ class AgentTemplatesApi:
387
387
 
388
388
 
389
389
  @validate_call
390
- def get_agent_templates_with_http_info(
390
+ def agent_template_get_with_http_info(
391
391
  self,
392
392
  _request_timeout: Union[
393
393
  None,
@@ -401,7 +401,7 @@ class AgentTemplatesApi:
401
401
  _content_type: Optional[StrictStr] = None,
402
402
  _headers: Optional[Dict[StrictStr, Any]] = None,
403
403
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
404
- ) -> ApiResponse[GetAgentTemplates200Response]:
404
+ ) -> ApiResponse[AgentTemplateGet200Response]:
405
405
  """Get agent templates
406
406
 
407
407
 
@@ -427,7 +427,7 @@ class AgentTemplatesApi:
427
427
  :return: Returns the result object.
428
428
  """ # noqa: E501
429
429
 
430
- _param = self._get_agent_templates_serialize(
430
+ _param = self._agent_template_get_serialize(
431
431
  _request_auth=_request_auth,
432
432
  _content_type=_content_type,
433
433
  _headers=_headers,
@@ -435,7 +435,7 @@ class AgentTemplatesApi:
435
435
  )
436
436
 
437
437
  _response_types_map: Dict[str, Optional[str]] = {
438
- '200': "GetAgentTemplates200Response",
438
+ '200': "AgentTemplateGet200Response",
439
439
  '401': "UnauthorizedErrorReponse",
440
440
  '400': "BadRequestErrorResponse",
441
441
  '500': "InternalServerErrorResponse",
@@ -452,7 +452,7 @@ class AgentTemplatesApi:
452
452
 
453
453
 
454
454
  @validate_call
455
- def get_agent_templates_without_preload_content(
455
+ def agent_template_get_without_preload_content(
456
456
  self,
457
457
  _request_timeout: Union[
458
458
  None,
@@ -492,7 +492,7 @@ class AgentTemplatesApi:
492
492
  :return: Returns the result object.
493
493
  """ # noqa: E501
494
494
 
495
- _param = self._get_agent_templates_serialize(
495
+ _param = self._agent_template_get_serialize(
496
496
  _request_auth=_request_auth,
497
497
  _content_type=_content_type,
498
498
  _headers=_headers,
@@ -500,7 +500,7 @@ class AgentTemplatesApi:
500
500
  )
501
501
 
502
502
  _response_types_map: Dict[str, Optional[str]] = {
503
- '200': "GetAgentTemplates200Response",
503
+ '200': "AgentTemplateGet200Response",
504
504
  '401': "UnauthorizedErrorReponse",
505
505
  '400': "BadRequestErrorResponse",
506
506
  '500': "InternalServerErrorResponse",
@@ -512,7 +512,7 @@ class AgentTemplatesApi:
512
512
  return response_data.response
513
513
 
514
514
 
515
- def _get_agent_templates_serialize(
515
+ def _agent_template_get_serialize(
516
516
  self,
517
517
  _request_auth,
518
518
  _content_type,