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
@@ -0,0 +1,75 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Dict, List, Union, Optional
4
+ from typing_extensions import Literal
5
+
6
+ from pydantic import Field as FieldInfo
7
+
8
+ from .._models import BaseModel
9
+
10
+ __all__ = ["DocumentListProcessingResponse", "Document"]
11
+
12
+
13
+ class Document(BaseModel):
14
+ id: str
15
+ """Unique identifier of the document."""
16
+
17
+ created_at: str = FieldInfo(alias="createdAt")
18
+ """Creation timestamp"""
19
+
20
+ custom_id: Optional[str] = FieldInfo(alias="customId", default=None)
21
+ """Optional custom ID of the document.
22
+
23
+ This could be an ID from your database that will uniquely identify this
24
+ document.
25
+ """
26
+
27
+ metadata: Union[str, float, bool, Dict[str, object], List[object], None] = None
28
+ """Optional metadata for the document.
29
+
30
+ This is used to store additional information about the document. You can use
31
+ this to store any additional information you need about the document. Metadata
32
+ can be filtered through. Keys must be strings and are case sensitive. Values can
33
+ be strings, numbers, or booleans. You cannot nest objects.
34
+ """
35
+
36
+ status: Literal["unknown", "queued", "extracting", "chunking", "embedding", "indexing", "done", "failed"]
37
+ """Status of the document"""
38
+
39
+ title: Optional[str] = None
40
+ """Title of the document"""
41
+
42
+ type: Literal[
43
+ "text",
44
+ "pdf",
45
+ "tweet",
46
+ "google_doc",
47
+ "google_slide",
48
+ "google_sheet",
49
+ "image",
50
+ "video",
51
+ "notion_doc",
52
+ "webpage",
53
+ "onedrive",
54
+ "github_markdown",
55
+ ]
56
+ """Type of the document"""
57
+
58
+ updated_at: str = FieldInfo(alias="updatedAt")
59
+ """Last update timestamp"""
60
+
61
+ container_tags: Optional[List[str]] = FieldInfo(alias="containerTags", default=None)
62
+ """Optional tags this document should be containerized by.
63
+
64
+ This can be an ID for your user, a project ID, or any other identifier you wish
65
+ to use to group documents.
66
+ """
67
+
68
+
69
+ class DocumentListProcessingResponse(BaseModel):
70
+ """List of documents currently being processed"""
71
+
72
+ documents: List[Document]
73
+
74
+ total_count: float = FieldInfo(alias="totalCount")
75
+ """Total number of processing documents"""
@@ -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 DocumentListResponse(BaseModel):
94
+ """List of documents"""
95
+
91
96
  memories: List[Memory]
92
97
 
93
98
  pagination: Pagination
@@ -42,3 +42,11 @@ class DocumentUploadFileParams(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
+ """
@@ -0,0 +1,26 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import Required, Annotated, TypedDict
6
+
7
+ from .._utils import PropertyInfo
8
+
9
+ __all__ = ["MemoryForgetParams"]
10
+
11
+
12
+ class MemoryForgetParams(TypedDict, total=False):
13
+ container_tag: Required[Annotated[str, PropertyInfo(alias="containerTag")]]
14
+ """Container tag / space identifier. Required to scope the operation."""
15
+
16
+ id: str
17
+ """ID of the memory entry to operate on"""
18
+
19
+ content: str
20
+ """Exact content match of the memory entry to operate on.
21
+
22
+ Use this when you don't have the ID.
23
+ """
24
+
25
+ reason: str
26
+ """Optional reason for forgetting this memory"""
@@ -0,0 +1,15 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from .._models import BaseModel
4
+
5
+ __all__ = ["MemoryForgetResponse"]
6
+
7
+
8
+ class MemoryForgetResponse(BaseModel):
9
+ """Response after forgetting a memory"""
10
+
11
+ id: str
12
+ """ID of the memory that was forgotten"""
13
+
14
+ forgotten: bool
15
+ """Indicates the memory was successfully forgotten"""
@@ -11,6 +11,8 @@ __all__ = ["MemoryGetResponse"]
11
11
 
12
12
 
13
13
  class MemoryGetResponse(BaseModel):
14
+ """Document object"""
15
+
14
16
  id: str
15
17
  """Unique identifier of the document."""
16
18
 
@@ -65,8 +67,12 @@ class MemoryGetResponse(BaseModel):
65
67
  summary: Optional[str] = None
66
68
  """Summary of the document content"""
67
69
 
70
+ summary_embedding_hv: Optional[List[float]] = FieldInfo(alias="summaryEmbeddingHv", default=None)
71
+
68
72
  summary_embedding_model: Optional[str] = FieldInfo(alias="summaryEmbeddingModel", default=None)
69
73
 
74
+ summary_embedding_model_hv: Optional[str] = FieldInfo(alias="summaryEmbeddingModelHv", default=None)
75
+
70
76
  summary_embedding_model_new: Optional[str] = FieldInfo(alias="summaryEmbeddingModelNew", default=None)
71
77
 
72
78
  summary_embedding_new: Optional[List[float]] = FieldInfo(alias="summaryEmbeddingNew", default=None)
@@ -86,6 +92,7 @@ class MemoryGetResponse(BaseModel):
86
92
  "notion_doc",
87
93
  "webpage",
88
94
  "onedrive",
95
+ "github_markdown",
89
96
  ]
90
97
  """Type of the document"""
91
98