usecortex-ai 0.1.0__py3-none-any.whl → 0.1.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.
Files changed (35) hide show
  1. cortex_ai/__init__.py +6 -4
  2. cortex_ai/client.py +4 -4
  3. cortex_ai/embeddings/client.py +8 -8
  4. cortex_ai/fetch/client.py +2 -2
  5. cortex_ai/search/client.py +15 -16
  6. cortex_ai/search/raw_client.py +17 -18
  7. cortex_ai/sources/client.py +4 -4
  8. cortex_ai/tenant/client.py +2 -2
  9. cortex_ai/types/__init__.py +6 -4
  10. cortex_ai/types/app_sources_upload_data.py +1 -1
  11. cortex_ai/types/batch_upload_data.py +1 -1
  12. cortex_ai/types/{search_data.py → body_scrape_webpage_upload_scrape_webpage_post.py} +2 -5
  13. cortex_ai/types/{full_text_search_data.py → body_update_scrape_job_upload_update_webpage_patch.py} +2 -5
  14. cortex_ai/types/embeddings_create_collection_data.py +1 -1
  15. cortex_ai/types/embeddings_delete_data.py +1 -1
  16. cortex_ai/types/embeddings_get_data.py +1 -1
  17. cortex_ai/types/embeddings_search_data.py +1 -1
  18. cortex_ai/types/error_response.py +1 -1
  19. cortex_ai/types/extended_context.py +1 -1
  20. cortex_ai/types/fetch_content_data.py +1 -1
  21. cortex_ai/types/list_sources_response.py +1 -1
  22. cortex_ai/types/processing_status.py +1 -1
  23. cortex_ai/types/relations.py +27 -0
  24. cortex_ai/types/single_upload_data.py +1 -1
  25. cortex_ai/types/tenant_create_data.py +1 -1
  26. cortex_ai/types/tenant_stats.py +1 -1
  27. cortex_ai/upload/client.py +138 -120
  28. cortex_ai/upload/raw_client.py +154 -80
  29. cortex_ai/user/client.py +2 -2
  30. cortex_ai/user_memory/client.py +10 -10
  31. {usecortex_ai-0.1.0.dist-info → usecortex_ai-0.1.1.dist-info}/METADATA +1 -1
  32. {usecortex_ai-0.1.0.dist-info → usecortex_ai-0.1.1.dist-info}/RECORD +35 -34
  33. {usecortex_ai-0.1.0.dist-info → usecortex_ai-0.1.1.dist-info}/WHEEL +0 -0
  34. {usecortex_ai-0.1.0.dist-info → usecortex_ai-0.1.1.dist-info}/licenses/LICENSE +0 -0
  35. {usecortex_ai-0.1.0.dist-info → usecortex_ai-0.1.1.dist-info}/top_level.txt +0 -0
@@ -8,7 +8,7 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
8
8
 
9
9
  class ProcessingStatus(UniversalBaseModel):
10
10
  success: typing.Optional[bool] = None
11
- message: str
11
+ message: typing.Optional[str] = None
12
12
  file_id: str
13
13
  indexing_status: str
14
14
 
@@ -0,0 +1,27 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ import pydantic
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
7
+
8
+
9
+ class Relations(UniversalBaseModel):
10
+ cortex_source_ids: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
11
+ """
12
+ List of cortex source IDs for relations
13
+ """
14
+
15
+ auto_discovery: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None)
16
+ """
17
+ Additional metadata for relations
18
+ """
19
+
20
+ if IS_PYDANTIC_V2:
21
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
22
+ else:
23
+
24
+ class Config:
25
+ frozen = True
26
+ smart_union = True
27
+ extra = pydantic.Extra.allow
@@ -8,7 +8,7 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
8
8
 
9
9
  class SingleUploadData(UniversalBaseModel):
10
10
  success: typing.Optional[bool] = None
11
- message: str
11
+ message: typing.Optional[str] = None
12
12
  file_id: str
13
13
 
14
14
  if IS_PYDANTIC_V2:
@@ -8,7 +8,7 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
8
8
 
9
9
  class TenantCreateData(UniversalBaseModel):
10
10
  success: typing.Optional[bool] = None
11
- message: str
11
+ message: typing.Optional[str] = None
12
12
  status: str
13
13
  tenant_id: str
14
14
 
@@ -8,7 +8,7 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
8
8
 
9
9
  class TenantStats(UniversalBaseModel):
10
10
  success: typing.Optional[bool] = None
11
- message: str
11
+ message: typing.Optional[str] = None
12
12
  object_count: int
13
13
  vector_dimension: typing.Optional[int] = None
14
14
  tenant_name: str