supermemory 3.7.0__py3-none-any.whl → 3.19.0__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 (53) hide show
  1. supermemory/_base_client.py +140 -11
  2. supermemory/_client.py +226 -52
  3. supermemory/_models.py +16 -1
  4. supermemory/_streaming.py +12 -10
  5. supermemory/_types.py +12 -2
  6. supermemory/_version.py +1 -1
  7. supermemory/resources/connections.py +219 -29
  8. supermemory/resources/documents.py +306 -2
  9. supermemory/resources/memories.py +270 -1
  10. supermemory/resources/search.py +14 -0
  11. supermemory/resources/settings.py +12 -0
  12. supermemory/types/__init__.py +15 -2
  13. supermemory/types/client_profile_params.py +6 -0
  14. supermemory/types/connection_configure_params.py +12 -0
  15. supermemory/types/connection_configure_response.py +17 -0
  16. supermemory/types/connection_get_by_id_response.py +3 -1
  17. supermemory/types/{connection_get_by_tags_params.py → connection_get_by_tag_params.py} +2 -2
  18. supermemory/types/{connection_get_by_tags_response.py → connection_get_by_tag_response.py} +5 -3
  19. supermemory/types/connection_list_response.py +2 -0
  20. supermemory/types/connection_resources_params.py +13 -0
  21. supermemory/types/connection_resources_response.py +13 -0
  22. supermemory/types/document_batch_add_params.py +84 -0
  23. supermemory/types/document_batch_add_response.py +19 -0
  24. supermemory/types/document_delete_bulk_params.py +18 -0
  25. supermemory/types/document_delete_bulk_response.py +37 -0
  26. supermemory/types/document_get_response.py +7 -0
  27. supermemory/types/document_list_params.py +3790 -3
  28. supermemory/types/document_list_processing_response.py +75 -0
  29. supermemory/types/document_list_response.py +5 -0
  30. supermemory/types/document_upload_file_params.py +8 -0
  31. supermemory/types/memory_forget_params.py +26 -0
  32. supermemory/types/memory_forget_response.py +15 -0
  33. supermemory/types/memory_get_response.py +7 -0
  34. supermemory/types/memory_list_params.py +3790 -3
  35. supermemory/types/memory_list_response.py +5 -0
  36. supermemory/types/memory_update_memory_params.py +31 -0
  37. supermemory/types/memory_update_memory_response.py +31 -0
  38. supermemory/types/memory_upload_file_params.py +8 -0
  39. supermemory/types/profile_response.py +2 -0
  40. supermemory/types/search_documents_params.py +3791 -4
  41. supermemory/types/search_documents_response.py +2 -0
  42. supermemory/types/search_execute_params.py +3791 -4
  43. supermemory/types/search_execute_response.py +2 -0
  44. supermemory/types/search_memories_params.py +3809 -8
  45. supermemory/types/search_memories_response.py +33 -5
  46. supermemory/types/setting_get_response.py +6 -0
  47. supermemory/types/setting_update_params.py +6 -0
  48. supermemory/types/setting_update_response.py +6 -0
  49. {supermemory-3.7.0.dist-info → supermemory-3.19.0.dist-info}/METADATA +12 -2
  50. supermemory-3.19.0.dist-info/RECORD +97 -0
  51. {supermemory-3.7.0.dist-info → supermemory-3.19.0.dist-info}/licenses/LICENSE +1 -1
  52. supermemory-3.7.0.dist-info/RECORD +0 -84
  53. {supermemory-3.7.0.dist-info → supermemory-3.19.0.dist-info}/WHEEL +0 -0
@@ -60,6 +60,7 @@ class Memory(BaseModel):
60
60
  "notion_doc",
61
61
  "webpage",
62
62
  "onedrive",
63
+ "github_markdown",
63
64
  ]
64
65
  """Type of the document"""
65
66
 
@@ -78,6 +79,8 @@ class Memory(BaseModel):
78
79
 
79
80
 
80
81
  class Pagination(BaseModel):
82
+ """Pagination metadata"""
83
+
81
84
  current_page: float = FieldInfo(alias="currentPage")
82
85
 
83
86
  total_items: float = FieldInfo(alias="totalItems")
@@ -88,6 +91,8 @@ class Pagination(BaseModel):
88
91
 
89
92
 
90
93
  class MemoryListResponse(BaseModel):
94
+ """List of documents"""
95
+
91
96
  memories: List[Memory]
92
97
 
93
98
  pagination: Pagination
@@ -0,0 +1,31 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Dict, Union
6
+ from typing_extensions import Required, Annotated, TypedDict
7
+
8
+ from .._types import SequenceNotStr
9
+ from .._utils import PropertyInfo
10
+
11
+ __all__ = ["MemoryUpdateMemoryParams"]
12
+
13
+
14
+ class MemoryUpdateMemoryParams(TypedDict, total=False):
15
+ container_tag: Required[Annotated[str, PropertyInfo(alias="containerTag")]]
16
+ """Container tag / space identifier. Required to scope the operation."""
17
+
18
+ new_content: Required[Annotated[str, PropertyInfo(alias="newContent")]]
19
+ """The new content that will replace the existing memory"""
20
+
21
+ id: str
22
+ """ID of the memory entry to operate on"""
23
+
24
+ content: str
25
+ """Exact content match of the memory entry to operate on.
26
+
27
+ Use this when you don't have the ID.
28
+ """
29
+
30
+ metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]]
31
+ """Optional metadata. If not provided, inherits from the previous version."""
@@ -0,0 +1,31 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+
5
+ from pydantic import Field as FieldInfo
6
+
7
+ from .._models import BaseModel
8
+
9
+ __all__ = ["MemoryUpdateMemoryResponse"]
10
+
11
+
12
+ class MemoryUpdateMemoryResponse(BaseModel):
13
+ """Response after updating a memory"""
14
+
15
+ id: str
16
+ """ID of the newly created memory version"""
17
+
18
+ created_at: str = FieldInfo(alias="createdAt")
19
+ """When this memory version was created"""
20
+
21
+ memory: str
22
+ """The content of the new memory version"""
23
+
24
+ parent_memory_id: Optional[str] = FieldInfo(alias="parentMemoryId", default=None)
25
+ """ID of the memory this version updates"""
26
+
27
+ root_memory_id: Optional[str] = FieldInfo(alias="rootMemoryId", default=None)
28
+ """ID of the first memory in this version chain"""
29
+
30
+ version: float
31
+ """Version number of this memory entry"""
@@ -42,3 +42,11 @@ class MemoryUploadFileParams(TypedDict, total=False):
42
42
  Specifies the exact MIME type to use (e.g., 'image/png', 'image/jpeg',
43
43
  'video/mp4', 'video/webm')
44
44
  """
45
+
46
+ use_advanced_processing: Annotated[str, PropertyInfo(alias="useAdvancedProcessing")]
47
+ """DEPRECATED: This field is no longer used.
48
+
49
+ Advanced PDF processing is now automatic with our hybrid Mistral OCR + Gemini
50
+ pipeline. This parameter will be accepted but ignored for backwards
51
+ compatibility.
52
+ """
@@ -18,6 +18,8 @@ class Profile(BaseModel):
18
18
 
19
19
 
20
20
  class SearchResults(BaseModel):
21
+ """Search results if a search query was provided"""
22
+
21
23
  results: List[object]
22
24
  """Search results for the provided query"""
23
25