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
@@ -17,9 +17,10 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator
21
21
  from typing import Any, ClassVar, Dict, List, Optional, Union
22
22
  from typing_extensions import Annotated
23
+ from smallestai.atoms.models.agent_id_patch_request_language_switching import AgentIdPatchRequestLanguageSwitching
23
24
  from smallestai.atoms.models.create_agent_request_language_synthesizer import CreateAgentRequestLanguageSynthesizer
24
25
  from typing import Optional, Set
25
26
  from typing_extensions import Self
@@ -28,8 +29,8 @@ class CreateAgentRequestLanguage(BaseModel):
28
29
  """
29
30
  Language configuration for the agent. You can enable or disable language switching for the agent. This will be used to determine the language of the agent.
30
31
  """ # noqa: E501
31
- enabled: Optional[StrictStr] = Field(default=None, description="The language of the agent. You can choose from the list of supported languages.")
32
- switching: Optional[StrictBool] = Field(default=False, description="Whether to enable language switching for the agent. If enabled, the agent will be able to switch between languages based on the user's language.")
32
+ enabled: Optional[StrictStr] = Field(default='en', description="The language of the agent. You can choose from the list of supported languages.")
33
+ switching: Optional[AgentIdPatchRequestLanguageSwitching] = None
33
34
  synthesizer: Optional[CreateAgentRequestLanguageSynthesizer] = None
34
35
  speed: Optional[Union[StrictFloat, StrictInt]] = 1.2
35
36
  consistency: Optional[Union[Annotated[float, Field(le=1, strict=True, ge=0)], Annotated[int, Field(le=1, strict=True, ge=0)]]] = 0.5
@@ -43,8 +44,8 @@ class CreateAgentRequestLanguage(BaseModel):
43
44
  if value is None:
44
45
  return value
45
46
 
46
- if value not in set(['en', 'hi']):
47
- raise ValueError("must be one of enum values ('en', 'hi')")
47
+ if value not in set(['en', 'hi', 'ta', 'kn']):
48
+ raise ValueError("must be one of enum values ('en', 'hi', 'ta', 'kn')")
48
49
  return value
49
50
 
50
51
  @field_validator('enhancement')
@@ -96,6 +97,9 @@ class CreateAgentRequestLanguage(BaseModel):
96
97
  exclude=excluded_fields,
97
98
  exclude_none=True,
98
99
  )
100
+ # override the default output from pydantic by calling `to_dict()` of switching
101
+ if self.switching:
102
+ _dict['switching'] = self.switching.to_dict()
99
103
  # override the default output from pydantic by calling `to_dict()` of synthesizer
100
104
  if self.synthesizer:
101
105
  _dict['synthesizer'] = self.synthesizer.to_dict()
@@ -111,8 +115,8 @@ class CreateAgentRequestLanguage(BaseModel):
111
115
  return cls.model_validate(obj)
112
116
 
113
117
  _obj = cls.model_validate({
114
- "enabled": obj.get("enabled"),
115
- "switching": obj.get("switching") if obj.get("switching") is not None else False,
118
+ "enabled": obj.get("enabled") if obj.get("enabled") is not None else 'en',
119
+ "switching": AgentIdPatchRequestLanguageSwitching.from_dict(obj["switching"]) if obj.get("switching") is not None else None,
116
120
  "synthesizer": CreateAgentRequestLanguageSynthesizer.from_dict(obj["synthesizer"]) if obj.get("synthesizer") is not None else None,
117
121
  "speed": obj.get("speed") if obj.get("speed") is not None else 1.2,
118
122
  "consistency": obj.get("consistency") if obj.get("consistency") is not None else 0.5,
@@ -17,24 +17,24 @@ import json
17
17
  import pprint
18
18
  from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
19
19
  from typing import Any, List, Optional
20
- from smallestai.atoms.models.update_agent_request_synthesizer_voice_config_one_of import UpdateAgentRequestSynthesizerVoiceConfigOneOf
21
- from smallestai.atoms.models.update_agent_request_synthesizer_voice_config_one_of1 import UpdateAgentRequestSynthesizerVoiceConfigOneOf1
20
+ from smallestai.atoms.models.agent_id_patch_request_synthesizer_voice_config_one_of import AgentIdPatchRequestSynthesizerVoiceConfigOneOf
21
+ from smallestai.atoms.models.agent_id_patch_request_synthesizer_voice_config_one_of1 import AgentIdPatchRequestSynthesizerVoiceConfigOneOf1
22
22
  from pydantic import StrictStr, Field
23
23
  from typing import Union, List, Set, Optional, Dict
24
24
  from typing_extensions import Literal, Self
25
25
 
26
- CREATEAGENTREQUESTLANGUAGESYNTHESIZERVOICECONFIG_ONE_OF_SCHEMAS = ["UpdateAgentRequestSynthesizerVoiceConfigOneOf", "UpdateAgentRequestSynthesizerVoiceConfigOneOf1"]
26
+ CREATEAGENTREQUESTLANGUAGESYNTHESIZERVOICECONFIG_ONE_OF_SCHEMAS = ["AgentIdPatchRequestSynthesizerVoiceConfigOneOf", "AgentIdPatchRequestSynthesizerVoiceConfigOneOf1"]
27
27
 
28
28
  class CreateAgentRequestLanguageSynthesizerVoiceConfig(BaseModel):
29
29
  """
30
30
  CreateAgentRequestLanguageSynthesizerVoiceConfig
31
31
  """
32
- # data type: UpdateAgentRequestSynthesizerVoiceConfigOneOf
33
- oneof_schema_1_validator: Optional[UpdateAgentRequestSynthesizerVoiceConfigOneOf] = None
34
- # data type: UpdateAgentRequestSynthesizerVoiceConfigOneOf1
35
- oneof_schema_2_validator: Optional[UpdateAgentRequestSynthesizerVoiceConfigOneOf1] = None
36
- actual_instance: Optional[Union[UpdateAgentRequestSynthesizerVoiceConfigOneOf, UpdateAgentRequestSynthesizerVoiceConfigOneOf1]] = None
37
- one_of_schemas: Set[str] = { "UpdateAgentRequestSynthesizerVoiceConfigOneOf", "UpdateAgentRequestSynthesizerVoiceConfigOneOf1" }
32
+ # data type: AgentIdPatchRequestSynthesizerVoiceConfigOneOf
33
+ oneof_schema_1_validator: Optional[AgentIdPatchRequestSynthesizerVoiceConfigOneOf] = None
34
+ # data type: AgentIdPatchRequestSynthesizerVoiceConfigOneOf1
35
+ oneof_schema_2_validator: Optional[AgentIdPatchRequestSynthesizerVoiceConfigOneOf1] = None
36
+ actual_instance: Optional[Union[AgentIdPatchRequestSynthesizerVoiceConfigOneOf, AgentIdPatchRequestSynthesizerVoiceConfigOneOf1]] = None
37
+ one_of_schemas: Set[str] = { "AgentIdPatchRequestSynthesizerVoiceConfigOneOf", "AgentIdPatchRequestSynthesizerVoiceConfigOneOf1" }
38
38
 
39
39
  model_config = ConfigDict(
40
40
  validate_assignment=True,
@@ -57,22 +57,22 @@ class CreateAgentRequestLanguageSynthesizerVoiceConfig(BaseModel):
57
57
  instance = CreateAgentRequestLanguageSynthesizerVoiceConfig.model_construct()
58
58
  error_messages = []
59
59
  match = 0
60
- # validate data type: UpdateAgentRequestSynthesizerVoiceConfigOneOf
61
- if not isinstance(v, UpdateAgentRequestSynthesizerVoiceConfigOneOf):
62
- error_messages.append(f"Error! Input type `{type(v)}` is not `UpdateAgentRequestSynthesizerVoiceConfigOneOf`")
60
+ # validate data type: AgentIdPatchRequestSynthesizerVoiceConfigOneOf
61
+ if not isinstance(v, AgentIdPatchRequestSynthesizerVoiceConfigOneOf):
62
+ error_messages.append(f"Error! Input type `{type(v)}` is not `AgentIdPatchRequestSynthesizerVoiceConfigOneOf`")
63
63
  else:
64
64
  match += 1
65
- # validate data type: UpdateAgentRequestSynthesizerVoiceConfigOneOf1
66
- if not isinstance(v, UpdateAgentRequestSynthesizerVoiceConfigOneOf1):
67
- error_messages.append(f"Error! Input type `{type(v)}` is not `UpdateAgentRequestSynthesizerVoiceConfigOneOf1`")
65
+ # validate data type: AgentIdPatchRequestSynthesizerVoiceConfigOneOf1
66
+ if not isinstance(v, AgentIdPatchRequestSynthesizerVoiceConfigOneOf1):
67
+ error_messages.append(f"Error! Input type `{type(v)}` is not `AgentIdPatchRequestSynthesizerVoiceConfigOneOf1`")
68
68
  else:
69
69
  match += 1
70
70
  if match > 1:
71
71
  # more than 1 match
72
- raise ValueError("Multiple matches found when setting `actual_instance` in CreateAgentRequestLanguageSynthesizerVoiceConfig with oneOf schemas: UpdateAgentRequestSynthesizerVoiceConfigOneOf, UpdateAgentRequestSynthesizerVoiceConfigOneOf1. Details: " + ", ".join(error_messages))
72
+ raise ValueError("Multiple matches found when setting `actual_instance` in CreateAgentRequestLanguageSynthesizerVoiceConfig with oneOf schemas: AgentIdPatchRequestSynthesizerVoiceConfigOneOf, AgentIdPatchRequestSynthesizerVoiceConfigOneOf1. Details: " + ", ".join(error_messages))
73
73
  elif match == 0:
74
74
  # no match
75
- raise ValueError("No match found when setting `actual_instance` in CreateAgentRequestLanguageSynthesizerVoiceConfig with oneOf schemas: UpdateAgentRequestSynthesizerVoiceConfigOneOf, UpdateAgentRequestSynthesizerVoiceConfigOneOf1. Details: " + ", ".join(error_messages))
75
+ raise ValueError("No match found when setting `actual_instance` in CreateAgentRequestLanguageSynthesizerVoiceConfig with oneOf schemas: AgentIdPatchRequestSynthesizerVoiceConfigOneOf, AgentIdPatchRequestSynthesizerVoiceConfigOneOf1. Details: " + ", ".join(error_messages))
76
76
  else:
77
77
  return v
78
78
 
@@ -87,25 +87,25 @@ class CreateAgentRequestLanguageSynthesizerVoiceConfig(BaseModel):
87
87
  error_messages = []
88
88
  match = 0
89
89
 
90
- # deserialize data into UpdateAgentRequestSynthesizerVoiceConfigOneOf
90
+ # deserialize data into AgentIdPatchRequestSynthesizerVoiceConfigOneOf
91
91
  try:
92
- instance.actual_instance = UpdateAgentRequestSynthesizerVoiceConfigOneOf.from_json(json_str)
92
+ instance.actual_instance = AgentIdPatchRequestSynthesizerVoiceConfigOneOf.from_json(json_str)
93
93
  match += 1
94
94
  except (ValidationError, ValueError) as e:
95
95
  error_messages.append(str(e))
96
- # deserialize data into UpdateAgentRequestSynthesizerVoiceConfigOneOf1
96
+ # deserialize data into AgentIdPatchRequestSynthesizerVoiceConfigOneOf1
97
97
  try:
98
- instance.actual_instance = UpdateAgentRequestSynthesizerVoiceConfigOneOf1.from_json(json_str)
98
+ instance.actual_instance = AgentIdPatchRequestSynthesizerVoiceConfigOneOf1.from_json(json_str)
99
99
  match += 1
100
100
  except (ValidationError, ValueError) as e:
101
101
  error_messages.append(str(e))
102
102
 
103
103
  if match > 1:
104
104
  # more than 1 match
105
- raise ValueError("Multiple matches found when deserializing the JSON string into CreateAgentRequestLanguageSynthesizerVoiceConfig with oneOf schemas: UpdateAgentRequestSynthesizerVoiceConfigOneOf, UpdateAgentRequestSynthesizerVoiceConfigOneOf1. Details: " + ", ".join(error_messages))
105
+ raise ValueError("Multiple matches found when deserializing the JSON string into CreateAgentRequestLanguageSynthesizerVoiceConfig with oneOf schemas: AgentIdPatchRequestSynthesizerVoiceConfigOneOf, AgentIdPatchRequestSynthesizerVoiceConfigOneOf1. Details: " + ", ".join(error_messages))
106
106
  elif match == 0:
107
107
  # no match
108
- raise ValueError("No match found when deserializing the JSON string into CreateAgentRequestLanguageSynthesizerVoiceConfig with oneOf schemas: UpdateAgentRequestSynthesizerVoiceConfigOneOf, UpdateAgentRequestSynthesizerVoiceConfigOneOf1. Details: " + ", ".join(error_messages))
108
+ raise ValueError("No match found when deserializing the JSON string into CreateAgentRequestLanguageSynthesizerVoiceConfig with oneOf schemas: AgentIdPatchRequestSynthesizerVoiceConfigOneOf, AgentIdPatchRequestSynthesizerVoiceConfigOneOf1. Details: " + ", ".join(error_messages))
109
109
  else:
110
110
  return instance
111
111
 
@@ -119,7 +119,7 @@ class CreateAgentRequestLanguageSynthesizerVoiceConfig(BaseModel):
119
119
  else:
120
120
  return json.dumps(self.actual_instance)
121
121
 
122
- def to_dict(self) -> Optional[Union[Dict[str, Any], UpdateAgentRequestSynthesizerVoiceConfigOneOf, UpdateAgentRequestSynthesizerVoiceConfigOneOf1]]:
122
+ def to_dict(self) -> Optional[Union[Dict[str, Any], AgentIdPatchRequestSynthesizerVoiceConfigOneOf, AgentIdPatchRequestSynthesizerVoiceConfigOneOf1]]:
123
123
  """Returns the dict representation of the actual instance"""
124
124
  if self.actual_instance is None:
125
125
  return None
@@ -17,20 +17,24 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
+ from datetime import datetime
20
21
  from pydantic import BaseModel, ConfigDict, Field, StrictStr
21
22
  from typing import Any, ClassVar, Dict, List, Optional
22
23
  from typing import Optional, Set
23
24
  from typing_extensions import Self
24
25
 
25
- class KnowledgeBaseDTO(BaseModel):
26
+ class KnowledgeBase(BaseModel):
26
27
  """
27
- KnowledgeBaseDTO
28
+ KnowledgeBase
28
29
  """ # noqa: E501
29
30
  id: StrictStr = Field(description="The unique identifier for the knowledge base", alias="_id")
30
31
  name: StrictStr = Field(description="The name of the knowledge base")
31
- description: Optional[StrictStr] = Field(default=None, description="Description of the knowledge base")
32
- organization: StrictStr = Field(description="The organization ID this knowledge base belongs to")
33
- __properties: ClassVar[List[str]] = ["_id", "name", "description", "organization"]
32
+ description: Optional[StrictStr] = Field(default=None, description="The description of the knowledge base")
33
+ organization: StrictStr = Field(description="The organization ID")
34
+ created_by: StrictStr = Field(description="The user ID who created the knowledge base", alias="createdBy")
35
+ created_at: Optional[datetime] = Field(default=None, description="The date and time when the knowledge base was created", alias="createdAt")
36
+ updated_at: Optional[datetime] = Field(default=None, description="The date and time when the knowledge base was last updated", alias="updatedAt")
37
+ __properties: ClassVar[List[str]] = ["_id", "name", "description", "organization", "createdBy", "createdAt", "updatedAt"]
34
38
 
35
39
  model_config = ConfigDict(
36
40
  populate_by_name=True,
@@ -50,7 +54,7 @@ class KnowledgeBaseDTO(BaseModel):
50
54
 
51
55
  @classmethod
52
56
  def from_json(cls, json_str: str) -> Optional[Self]:
53
- """Create an instance of KnowledgeBaseDTO from a JSON string"""
57
+ """Create an instance of KnowledgeBase from a JSON string"""
54
58
  return cls.from_dict(json.loads(json_str))
55
59
 
56
60
  def to_dict(self) -> Dict[str, Any]:
@@ -75,7 +79,7 @@ class KnowledgeBaseDTO(BaseModel):
75
79
 
76
80
  @classmethod
77
81
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
78
- """Create an instance of KnowledgeBaseDTO from a dict"""
82
+ """Create an instance of KnowledgeBase from a dict"""
79
83
  if obj is None:
80
84
  return None
81
85
 
@@ -86,7 +90,10 @@ class KnowledgeBaseDTO(BaseModel):
86
90
  "_id": obj.get("_id"),
87
91
  "name": obj.get("name"),
88
92
  "description": obj.get("description"),
89
- "organization": obj.get("organization")
93
+ "organization": obj.get("organization"),
94
+ "createdBy": obj.get("createdBy"),
95
+ "createdAt": obj.get("createdAt"),
96
+ "updatedAt": obj.get("updatedAt")
90
97
  })
91
98
  return _obj
92
99
 
@@ -23,23 +23,24 @@ from typing import Any, ClassVar, Dict, List, Optional, Union
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
- class KnowledgeBaseItemDTO(BaseModel):
26
+ class KnowledgeBaseItem(BaseModel):
27
27
  """
28
- KnowledgeBaseItemDTO
28
+ KnowledgeBaseItem
29
29
  """ # noqa: E501
30
- id: StrictStr = Field(alias="_id")
31
- item_type: StrictStr = Field(alias="itemType")
32
- metadata: Optional[Dict[str, Any]] = None
33
- knowledge_base_id: StrictStr = Field(alias="knowledgeBaseId")
34
- processing_status: StrictStr = Field(alias="processingStatus")
35
- content_type: Optional[StrictStr] = Field(default=None, alias="contentType")
36
- size: Optional[Union[StrictFloat, StrictInt]] = None
37
- key: Optional[StrictStr] = None
38
- title: Optional[StrictStr] = None
39
- content: Optional[StrictStr] = None
40
- created_at: datetime = Field(alias="createdAt")
41
- updated_at: Optional[datetime] = Field(default=None, alias="updatedAt")
42
- __properties: ClassVar[List[str]] = ["_id", "itemType", "metadata", "knowledgeBaseId", "processingStatus", "contentType", "size", "key", "title", "content", "createdAt", "updatedAt"]
30
+ id: StrictStr = Field(description="The unique identifier for the knowledge base item", alias="_id")
31
+ item_type: StrictStr = Field(description="The type of the knowledge base item", alias="itemType")
32
+ metadata: Optional[Dict[str, Any]] = Field(default=None, description="Additional metadata for the item")
33
+ knowledge_base_id: StrictStr = Field(description="The ID of the knowledge base this item belongs to", alias="knowledgeBaseId")
34
+ processing_status: StrictStr = Field(description="The processing status of the item", alias="processingStatus")
35
+ file_name: Optional[StrictStr] = Field(default=None, description="The name of the file (for file type items)", alias="fileName")
36
+ content_type: Optional[StrictStr] = Field(default=None, description="The MIME type of the content", alias="contentType")
37
+ size: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The size of the file in bytes")
38
+ key: Optional[StrictStr] = Field(default=None, description="The storage key for the file")
39
+ title: Optional[StrictStr] = Field(default=None, description="The title of the item")
40
+ content: Optional[StrictStr] = Field(default=None, description="The content of the item (for text type items)")
41
+ created_at: datetime = Field(description="The date and time when the item was created", alias="createdAt")
42
+ updated_at: datetime = Field(description="The date and time when the item was last updated", alias="updatedAt")
43
+ __properties: ClassVar[List[str]] = ["_id", "itemType", "metadata", "knowledgeBaseId", "processingStatus", "fileName", "contentType", "size", "key", "title", "content", "createdAt", "updatedAt"]
43
44
 
44
45
  @field_validator('item_type')
45
46
  def item_type_validate_enum(cls, value):
@@ -73,7 +74,7 @@ class KnowledgeBaseItemDTO(BaseModel):
73
74
 
74
75
  @classmethod
75
76
  def from_json(cls, json_str: str) -> Optional[Self]:
76
- """Create an instance of KnowledgeBaseItemDTO from a JSON string"""
77
+ """Create an instance of KnowledgeBaseItem from a JSON string"""
77
78
  return cls.from_dict(json.loads(json_str))
78
79
 
79
80
  def to_dict(self) -> Dict[str, Any]:
@@ -98,7 +99,7 @@ class KnowledgeBaseItemDTO(BaseModel):
98
99
 
99
100
  @classmethod
100
101
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
101
- """Create an instance of KnowledgeBaseItemDTO from a dict"""
102
+ """Create an instance of KnowledgeBaseItem from a dict"""
102
103
  if obj is None:
103
104
  return None
104
105
 
@@ -111,6 +112,7 @@ class KnowledgeBaseItemDTO(BaseModel):
111
112
  "metadata": obj.get("metadata"),
112
113
  "knowledgeBaseId": obj.get("knowledgeBaseId"),
113
114
  "processingStatus": obj.get("processingStatus"),
115
+ "fileName": obj.get("fileName"),
114
116
  "contentType": obj.get("contentType"),
115
117
  "size": obj.get("size"),
116
118
  "key": obj.get("key"),
@@ -19,16 +19,16 @@ import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, StrictBool
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
- from smallestai.atoms.models.knowledge_base_dto import KnowledgeBaseDTO
22
+ from smallestai.atoms.models.knowledge_base import KnowledgeBase
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
- class GetKnowledgeBases200Response(BaseModel):
26
+ class KnowledgebaseGet200Response(BaseModel):
27
27
  """
28
- GetKnowledgeBases200Response
28
+ KnowledgebaseGet200Response
29
29
  """ # noqa: E501
30
30
  status: Optional[StrictBool] = None
31
- data: Optional[List[KnowledgeBaseDTO]] = None
31
+ data: Optional[List[KnowledgeBase]] = None
32
32
  __properties: ClassVar[List[str]] = ["status", "data"]
33
33
 
34
34
  model_config = ConfigDict(
@@ -49,7 +49,7 @@ class GetKnowledgeBases200Response(BaseModel):
49
49
 
50
50
  @classmethod
51
51
  def from_json(cls, json_str: str) -> Optional[Self]:
52
- """Create an instance of GetKnowledgeBases200Response from a JSON string"""
52
+ """Create an instance of KnowledgebaseGet200Response from a JSON string"""
53
53
  return cls.from_dict(json.loads(json_str))
54
54
 
55
55
  def to_dict(self) -> Dict[str, Any]:
@@ -81,7 +81,7 @@ class GetKnowledgeBases200Response(BaseModel):
81
81
 
82
82
  @classmethod
83
83
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
84
- """Create an instance of GetKnowledgeBases200Response from a dict"""
84
+ """Create an instance of KnowledgebaseGet200Response from a dict"""
85
85
  if obj is None:
86
86
  return None
87
87
 
@@ -90,7 +90,7 @@ class GetKnowledgeBases200Response(BaseModel):
90
90
 
91
91
  _obj = cls.model_validate({
92
92
  "status": obj.get("status"),
93
- "data": [KnowledgeBaseDTO.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None
93
+ "data": [KnowledgeBase.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None
94
94
  })
95
95
  return _obj
96
96
 
@@ -19,16 +19,16 @@ import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, StrictBool
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
- from smallestai.atoms.models.knowledge_base_dto import KnowledgeBaseDTO
22
+ from smallestai.atoms.models.knowledge_base import KnowledgeBase
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
- class GetKnowledgeBaseById200Response(BaseModel):
26
+ class KnowledgebaseIdGet200Response(BaseModel):
27
27
  """
28
- GetKnowledgeBaseById200Response
28
+ KnowledgebaseIdGet200Response
29
29
  """ # noqa: E501
30
30
  status: Optional[StrictBool] = None
31
- data: Optional[KnowledgeBaseDTO] = None
31
+ data: Optional[KnowledgeBase] = None
32
32
  __properties: ClassVar[List[str]] = ["status", "data"]
33
33
 
34
34
  model_config = ConfigDict(
@@ -49,7 +49,7 @@ class GetKnowledgeBaseById200Response(BaseModel):
49
49
 
50
50
  @classmethod
51
51
  def from_json(cls, json_str: str) -> Optional[Self]:
52
- """Create an instance of GetKnowledgeBaseById200Response from a JSON string"""
52
+ """Create an instance of KnowledgebaseIdGet200Response from a JSON string"""
53
53
  return cls.from_dict(json.loads(json_str))
54
54
 
55
55
  def to_dict(self) -> Dict[str, Any]:
@@ -77,7 +77,7 @@ class GetKnowledgeBaseById200Response(BaseModel):
77
77
 
78
78
  @classmethod
79
79
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
80
- """Create an instance of GetKnowledgeBaseById200Response from a dict"""
80
+ """Create an instance of KnowledgebaseIdGet200Response from a dict"""
81
81
  if obj is None:
82
82
  return None
83
83
 
@@ -86,7 +86,7 @@ class GetKnowledgeBaseById200Response(BaseModel):
86
86
 
87
87
  _obj = cls.model_validate({
88
88
  "status": obj.get("status"),
89
- "data": KnowledgeBaseDTO.from_dict(obj["data"]) if obj.get("data") is not None else None
89
+ "data": KnowledgeBase.from_dict(obj["data"]) if obj.get("data") is not None else None
90
90
  })
91
91
  return _obj
92
92
 
@@ -19,16 +19,16 @@ import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, StrictBool
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
- from smallestai.atoms.models.knowledge_base_item_dto import KnowledgeBaseItemDTO
22
+ from smallestai.atoms.models.knowledge_base_item import KnowledgeBaseItem
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
- class GetKnowledgeBaseItems200Response(BaseModel):
26
+ class KnowledgebaseIdItemsGet200Response(BaseModel):
27
27
  """
28
- GetKnowledgeBaseItems200Response
28
+ KnowledgebaseIdItemsGet200Response
29
29
  """ # noqa: E501
30
30
  status: Optional[StrictBool] = None
31
- data: Optional[List[KnowledgeBaseItemDTO]] = None
31
+ data: Optional[List[KnowledgeBaseItem]] = None
32
32
  __properties: ClassVar[List[str]] = ["status", "data"]
33
33
 
34
34
  model_config = ConfigDict(
@@ -49,7 +49,7 @@ class GetKnowledgeBaseItems200Response(BaseModel):
49
49
 
50
50
  @classmethod
51
51
  def from_json(cls, json_str: str) -> Optional[Self]:
52
- """Create an instance of GetKnowledgeBaseItems200Response from a JSON string"""
52
+ """Create an instance of KnowledgebaseIdItemsGet200Response from a JSON string"""
53
53
  return cls.from_dict(json.loads(json_str))
54
54
 
55
55
  def to_dict(self) -> Dict[str, Any]:
@@ -81,7 +81,7 @@ class GetKnowledgeBaseItems200Response(BaseModel):
81
81
 
82
82
  @classmethod
83
83
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
84
- """Create an instance of GetKnowledgeBaseItems200Response from a dict"""
84
+ """Create an instance of KnowledgebaseIdItemsGet200Response from a dict"""
85
85
  if obj is None:
86
86
  return None
87
87
 
@@ -90,7 +90,7 @@ class GetKnowledgeBaseItems200Response(BaseModel):
90
90
 
91
91
  _obj = cls.model_validate({
92
92
  "status": obj.get("status"),
93
- "data": [KnowledgeBaseItemDTO.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None
93
+ "data": [KnowledgeBaseItem.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None
94
94
  })
95
95
  return _obj
96
96
 
@@ -22,9 +22,9 @@ from typing import Any, ClassVar, Dict, List
22
22
  from typing import Optional, Set
23
23
  from typing_extensions import Self
24
24
 
25
- class UploadTextToKnowledgeBaseRequest(BaseModel):
25
+ class KnowledgebaseIdItemsUploadTextPostRequest(BaseModel):
26
26
  """
27
- UploadTextToKnowledgeBaseRequest
27
+ KnowledgebaseIdItemsUploadTextPostRequest
28
28
  """ # noqa: E501
29
29
  title: StrictStr
30
30
  content: StrictStr
@@ -48,7 +48,7 @@ class UploadTextToKnowledgeBaseRequest(BaseModel):
48
48
 
49
49
  @classmethod
50
50
  def from_json(cls, json_str: str) -> Optional[Self]:
51
- """Create an instance of UploadTextToKnowledgeBaseRequest from a JSON string"""
51
+ """Create an instance of KnowledgebaseIdItemsUploadTextPostRequest from a JSON string"""
52
52
  return cls.from_dict(json.loads(json_str))
53
53
 
54
54
  def to_dict(self) -> Dict[str, Any]:
@@ -73,7 +73,7 @@ class UploadTextToKnowledgeBaseRequest(BaseModel):
73
73
 
74
74
  @classmethod
75
75
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
76
- """Create an instance of UploadTextToKnowledgeBaseRequest from a dict"""
76
+ """Create an instance of KnowledgebaseIdItemsUploadTextPostRequest from a dict"""
77
77
  if obj is None:
78
78
  return None
79
79
 
@@ -22,9 +22,9 @@ from typing import Any, ClassVar, Dict, List, Optional
22
22
  from typing import Optional, Set
23
23
  from typing_extensions import Self
24
24
 
25
- class CreateKnowledgeBase201Response(BaseModel):
25
+ class KnowledgebasePost201Response(BaseModel):
26
26
  """
27
- CreateKnowledgeBase201Response
27
+ KnowledgebasePost201Response
28
28
  """ # noqa: E501
29
29
  status: Optional[StrictBool] = None
30
30
  data: Optional[StrictStr] = None
@@ -48,7 +48,7 @@ class CreateKnowledgeBase201Response(BaseModel):
48
48
 
49
49
  @classmethod
50
50
  def from_json(cls, json_str: str) -> Optional[Self]:
51
- """Create an instance of CreateKnowledgeBase201Response from a JSON string"""
51
+ """Create an instance of KnowledgebasePost201Response from a JSON string"""
52
52
  return cls.from_dict(json.loads(json_str))
53
53
 
54
54
  def to_dict(self) -> Dict[str, Any]:
@@ -73,7 +73,7 @@ class CreateKnowledgeBase201Response(BaseModel):
73
73
 
74
74
  @classmethod
75
75
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
76
- """Create an instance of CreateKnowledgeBase201Response from a dict"""
76
+ """Create an instance of KnowledgebasePost201Response from a dict"""
77
77
  if obj is None:
78
78
  return None
79
79
 
@@ -22,9 +22,9 @@ from typing import Any, ClassVar, Dict, List, Optional
22
22
  from typing import Optional, Set
23
23
  from typing_extensions import Self
24
24
 
25
- class CreateKnowledgeBaseRequest(BaseModel):
25
+ class KnowledgebasePostRequest(BaseModel):
26
26
  """
27
- CreateKnowledgeBaseRequest
27
+ KnowledgebasePostRequest
28
28
  """ # noqa: E501
29
29
  name: StrictStr
30
30
  description: Optional[StrictStr] = None
@@ -48,7 +48,7 @@ class CreateKnowledgeBaseRequest(BaseModel):
48
48
 
49
49
  @classmethod
50
50
  def from_json(cls, json_str: str) -> Optional[Self]:
51
- """Create an instance of CreateKnowledgeBaseRequest from a JSON string"""
51
+ """Create an instance of KnowledgebasePostRequest from a JSON string"""
52
52
  return cls.from_dict(json.loads(json_str))
53
53
 
54
54
  def to_dict(self) -> Dict[str, Any]:
@@ -73,7 +73,7 @@ class CreateKnowledgeBaseRequest(BaseModel):
73
73
 
74
74
  @classmethod
75
75
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
76
- """Create an instance of CreateKnowledgeBaseRequest from a dict"""
76
+ """Create an instance of KnowledgebasePostRequest from a dict"""
77
77
  if obj is None:
78
78
  return None
79
79
 
@@ -19,16 +19,16 @@ import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, StrictBool
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
- from smallestai.atoms.models.get_organization200_response_data import GetOrganization200ResponseData
22
+ from smallestai.atoms.models.organization_get200_response_data import OrganizationGet200ResponseData
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
- class GetOrganization200Response(BaseModel):
26
+ class OrganizationGet200Response(BaseModel):
27
27
  """
28
- GetOrganization200Response
28
+ OrganizationGet200Response
29
29
  """ # noqa: E501
30
30
  status: Optional[StrictBool] = None
31
- data: Optional[GetOrganization200ResponseData] = None
31
+ data: Optional[OrganizationGet200ResponseData] = None
32
32
  __properties: ClassVar[List[str]] = ["status", "data"]
33
33
 
34
34
  model_config = ConfigDict(
@@ -49,7 +49,7 @@ class GetOrganization200Response(BaseModel):
49
49
 
50
50
  @classmethod
51
51
  def from_json(cls, json_str: str) -> Optional[Self]:
52
- """Create an instance of GetOrganization200Response from a JSON string"""
52
+ """Create an instance of OrganizationGet200Response from a JSON string"""
53
53
  return cls.from_dict(json.loads(json_str))
54
54
 
55
55
  def to_dict(self) -> Dict[str, Any]:
@@ -77,7 +77,7 @@ class GetOrganization200Response(BaseModel):
77
77
 
78
78
  @classmethod
79
79
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
80
- """Create an instance of GetOrganization200Response from a dict"""
80
+ """Create an instance of OrganizationGet200Response from a dict"""
81
81
  if obj is None:
82
82
  return None
83
83
 
@@ -86,7 +86,7 @@ class GetOrganization200Response(BaseModel):
86
86
 
87
87
  _obj = cls.model_validate({
88
88
  "status": obj.get("status"),
89
- "data": GetOrganization200ResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None
89
+ "data": OrganizationGet200ResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None
90
90
  })
91
91
  return _obj
92
92
 
@@ -19,19 +19,19 @@ import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, Field, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
- from smallestai.atoms.models.get_organization200_response_data_members_inner import GetOrganization200ResponseDataMembersInner
23
- from smallestai.atoms.models.get_organization200_response_data_subscription import GetOrganization200ResponseDataSubscription
22
+ from smallestai.atoms.models.organization_get200_response_data_members_inner import OrganizationGet200ResponseDataMembersInner
23
+ from smallestai.atoms.models.organization_get200_response_data_subscription import OrganizationGet200ResponseDataSubscription
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
- class GetOrganization200ResponseData(BaseModel):
27
+ class OrganizationGet200ResponseData(BaseModel):
28
28
  """
29
- GetOrganization200ResponseData
29
+ OrganizationGet200ResponseData
30
30
  """ # noqa: E501
31
31
  id: Optional[StrictStr] = Field(default=None, alias="_id")
32
32
  name: Optional[StrictStr] = None
33
- members: Optional[List[GetOrganization200ResponseDataMembersInner]] = None
34
- subscription: Optional[GetOrganization200ResponseDataSubscription] = None
33
+ members: Optional[List[OrganizationGet200ResponseDataMembersInner]] = None
34
+ subscription: Optional[OrganizationGet200ResponseDataSubscription] = None
35
35
  __properties: ClassVar[List[str]] = ["_id", "name", "members", "subscription"]
36
36
 
37
37
  model_config = ConfigDict(
@@ -52,7 +52,7 @@ class GetOrganization200ResponseData(BaseModel):
52
52
 
53
53
  @classmethod
54
54
  def from_json(cls, json_str: str) -> Optional[Self]:
55
- """Create an instance of GetOrganization200ResponseData from a JSON string"""
55
+ """Create an instance of OrganizationGet200ResponseData from a JSON string"""
56
56
  return cls.from_dict(json.loads(json_str))
57
57
 
58
58
  def to_dict(self) -> Dict[str, Any]:
@@ -87,7 +87,7 @@ class GetOrganization200ResponseData(BaseModel):
87
87
 
88
88
  @classmethod
89
89
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
90
- """Create an instance of GetOrganization200ResponseData from a dict"""
90
+ """Create an instance of OrganizationGet200ResponseData from a dict"""
91
91
  if obj is None:
92
92
  return None
93
93
 
@@ -97,8 +97,8 @@ class GetOrganization200ResponseData(BaseModel):
97
97
  _obj = cls.model_validate({
98
98
  "_id": obj.get("_id"),
99
99
  "name": obj.get("name"),
100
- "members": [GetOrganization200ResponseDataMembersInner.from_dict(_item) for _item in obj["members"]] if obj.get("members") is not None else None,
101
- "subscription": GetOrganization200ResponseDataSubscription.from_dict(obj["subscription"]) if obj.get("subscription") is not None else None
100
+ "members": [OrganizationGet200ResponseDataMembersInner.from_dict(_item) for _item in obj["members"]] if obj.get("members") is not None else None,
101
+ "subscription": OrganizationGet200ResponseDataSubscription.from_dict(obj["subscription"]) if obj.get("subscription") is not None else None
102
102
  })
103
103
  return _obj
104
104