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.
- supermemory/_base_client.py +140 -11
- supermemory/_client.py +226 -52
- supermemory/_models.py +16 -1
- supermemory/_streaming.py +12 -10
- supermemory/_types.py +12 -2
- supermemory/_version.py +1 -1
- supermemory/resources/connections.py +219 -29
- supermemory/resources/documents.py +306 -2
- supermemory/resources/memories.py +270 -1
- supermemory/resources/search.py +14 -0
- supermemory/resources/settings.py +12 -0
- supermemory/types/__init__.py +15 -2
- supermemory/types/client_profile_params.py +6 -0
- supermemory/types/connection_configure_params.py +12 -0
- supermemory/types/connection_configure_response.py +17 -0
- supermemory/types/connection_get_by_id_response.py +3 -1
- supermemory/types/{connection_get_by_tags_params.py → connection_get_by_tag_params.py} +2 -2
- supermemory/types/{connection_get_by_tags_response.py → connection_get_by_tag_response.py} +5 -3
- supermemory/types/connection_list_response.py +2 -0
- supermemory/types/connection_resources_params.py +13 -0
- supermemory/types/connection_resources_response.py +13 -0
- supermemory/types/document_batch_add_params.py +84 -0
- supermemory/types/document_batch_add_response.py +19 -0
- supermemory/types/document_delete_bulk_params.py +18 -0
- supermemory/types/document_delete_bulk_response.py +37 -0
- supermemory/types/document_get_response.py +7 -0
- supermemory/types/document_list_params.py +3790 -3
- supermemory/types/document_list_processing_response.py +75 -0
- supermemory/types/document_list_response.py +5 -0
- supermemory/types/document_upload_file_params.py +8 -0
- supermemory/types/memory_forget_params.py +26 -0
- supermemory/types/memory_forget_response.py +15 -0
- supermemory/types/memory_get_response.py +7 -0
- supermemory/types/memory_list_params.py +3790 -3
- supermemory/types/memory_list_response.py +5 -0
- supermemory/types/memory_update_memory_params.py +31 -0
- supermemory/types/memory_update_memory_response.py +31 -0
- supermemory/types/memory_upload_file_params.py +8 -0
- supermemory/types/profile_response.py +2 -0
- supermemory/types/search_documents_params.py +3791 -4
- supermemory/types/search_documents_response.py +2 -0
- supermemory/types/search_execute_params.py +3791 -4
- supermemory/types/search_execute_response.py +2 -0
- supermemory/types/search_memories_params.py +3809 -8
- supermemory/types/search_memories_response.py +33 -5
- supermemory/types/setting_get_response.py +6 -0
- supermemory/types/setting_update_params.py +6 -0
- supermemory/types/setting_update_response.py +6 -0
- {supermemory-3.7.0.dist-info → supermemory-3.19.0.dist-info}/METADATA +12 -2
- supermemory-3.19.0.dist-info/RECORD +97 -0
- {supermemory-3.7.0.dist-info → supermemory-3.19.0.dist-info}/licenses/LICENSE +1 -1
- supermemory-3.7.0.dist-info/RECORD +0 -84
- {supermemory-3.7.0.dist-info → supermemory-3.19.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Dict, List, Optional
|
|
4
|
+
|
|
5
|
+
from .._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["ConnectionResourcesResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ConnectionResourcesResponse(BaseModel):
|
|
11
|
+
resources: List[Dict[str, object]]
|
|
12
|
+
|
|
13
|
+
total_count: Optional[float] = None
|
|
@@ -0,0 +1,84 @@
|
|
|
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, Iterable
|
|
6
|
+
from typing_extensions import Required, Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
from .._types import SequenceNotStr
|
|
9
|
+
from .._utils import PropertyInfo
|
|
10
|
+
|
|
11
|
+
__all__ = ["DocumentBatchAddParams", "DocumentsUnionMember0"]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class DocumentBatchAddParams(TypedDict, total=False):
|
|
15
|
+
documents: Required[Union[Iterable[DocumentsUnionMember0], SequenceNotStr[str]]]
|
|
16
|
+
|
|
17
|
+
container_tag: Annotated[str, PropertyInfo(alias="containerTag")]
|
|
18
|
+
"""Optional tag this document should be containerized by.
|
|
19
|
+
|
|
20
|
+
This can be an ID for your user, a project ID, or any other identifier you wish
|
|
21
|
+
to use to group documents.
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
container_tags: Annotated[SequenceNotStr[str], PropertyInfo(alias="containerTags")]
|
|
25
|
+
"""
|
|
26
|
+
(DEPRECATED: Use containerTag instead) Optional tags this document should be
|
|
27
|
+
containerized by. This can be an ID for your user, a project ID, or any other
|
|
28
|
+
identifier you wish to use to group documents.
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
content: None
|
|
32
|
+
|
|
33
|
+
metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]]
|
|
34
|
+
"""Optional metadata for the document.
|
|
35
|
+
|
|
36
|
+
This is used to store additional information about the document. You can use
|
|
37
|
+
this to store any additional information you need about the document. Metadata
|
|
38
|
+
can be filtered through. Keys must be strings and are case sensitive. Values can
|
|
39
|
+
be strings, numbers, or booleans. You cannot nest objects.
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class DocumentsUnionMember0(TypedDict, total=False):
|
|
44
|
+
content: Required[str]
|
|
45
|
+
"""The content to extract and process into a document.
|
|
46
|
+
|
|
47
|
+
This can be a URL to a website, a PDF, an image, or a video.
|
|
48
|
+
|
|
49
|
+
Plaintext: Any plaintext format
|
|
50
|
+
|
|
51
|
+
URL: A URL to a website, PDF, image, or video
|
|
52
|
+
|
|
53
|
+
We automatically detect the content type from the url's response format.
|
|
54
|
+
"""
|
|
55
|
+
|
|
56
|
+
container_tag: Annotated[str, PropertyInfo(alias="containerTag")]
|
|
57
|
+
"""Optional tag this document should be containerized by.
|
|
58
|
+
|
|
59
|
+
This can be an ID for your user, a project ID, or any other identifier you wish
|
|
60
|
+
to use to group documents.
|
|
61
|
+
"""
|
|
62
|
+
|
|
63
|
+
container_tags: Annotated[SequenceNotStr[str], PropertyInfo(alias="containerTags")]
|
|
64
|
+
"""
|
|
65
|
+
(DEPRECATED: Use containerTag instead) Optional tags this document should be
|
|
66
|
+
containerized by. This can be an ID for your user, a project ID, or any other
|
|
67
|
+
identifier you wish to use to group documents.
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
custom_id: Annotated[str, PropertyInfo(alias="customId")]
|
|
71
|
+
"""Optional custom ID of the document.
|
|
72
|
+
|
|
73
|
+
This could be an ID from your database that will uniquely identify this
|
|
74
|
+
document.
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]]
|
|
78
|
+
"""Optional metadata for the document.
|
|
79
|
+
|
|
80
|
+
This is used to store additional information about the document. You can use
|
|
81
|
+
this to store any additional information you need about the document. Metadata
|
|
82
|
+
can be filtered through. Keys must be strings and are case sensitive. Values can
|
|
83
|
+
be strings, numbers, or booleans. You cannot nest objects.
|
|
84
|
+
"""
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .._models import BaseModel
|
|
7
|
+
|
|
8
|
+
__all__ = ["DocumentBatchAddResponse", "DocumentBatchAddResponseItem"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DocumentBatchAddResponseItem(BaseModel):
|
|
12
|
+
id: str
|
|
13
|
+
"""Unique identifier of the document"""
|
|
14
|
+
|
|
15
|
+
status: str
|
|
16
|
+
"""Status of the document"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
DocumentBatchAddResponse: TypeAlias = List[DocumentBatchAddResponseItem]
|
|
@@ -0,0 +1,18 @@
|
|
|
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 Annotated, TypedDict
|
|
6
|
+
|
|
7
|
+
from .._types import SequenceNotStr
|
|
8
|
+
from .._utils import PropertyInfo
|
|
9
|
+
|
|
10
|
+
__all__ = ["DocumentDeleteBulkParams"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class DocumentDeleteBulkParams(TypedDict, total=False):
|
|
14
|
+
container_tags: Annotated[SequenceNotStr[str], PropertyInfo(alias="containerTags")]
|
|
15
|
+
"""Array of container tags - all documents in these containers will be deleted"""
|
|
16
|
+
|
|
17
|
+
ids: SequenceNotStr[str]
|
|
18
|
+
"""Array of document IDs to delete (max 100 at once)"""
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
|
|
5
|
+
from pydantic import Field as FieldInfo
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["DocumentDeleteBulkResponse", "Error"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class Error(BaseModel):
|
|
13
|
+
id: str
|
|
14
|
+
|
|
15
|
+
error: str
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class DocumentDeleteBulkResponse(BaseModel):
|
|
19
|
+
"""Response for bulk document deletion"""
|
|
20
|
+
|
|
21
|
+
deleted_count: float = FieldInfo(alias="deletedCount")
|
|
22
|
+
"""Number of documents successfully deleted"""
|
|
23
|
+
|
|
24
|
+
success: bool
|
|
25
|
+
"""Whether the bulk deletion was successful"""
|
|
26
|
+
|
|
27
|
+
container_tags: Optional[List[str]] = FieldInfo(alias="containerTags", default=None)
|
|
28
|
+
"""
|
|
29
|
+
Container tags that were processed (only applicable when deleting by container
|
|
30
|
+
tags)
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
errors: Optional[List[Error]] = None
|
|
34
|
+
"""
|
|
35
|
+
Array of errors for documents that couldn't be deleted (only applicable when
|
|
36
|
+
deleting by IDs)
|
|
37
|
+
"""
|
|
@@ -11,6 +11,8 @@ __all__ = ["DocumentGetResponse"]
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class DocumentGetResponse(BaseModel):
|
|
14
|
+
"""Document object"""
|
|
15
|
+
|
|
14
16
|
id: str
|
|
15
17
|
"""Unique identifier of the document."""
|
|
16
18
|
|
|
@@ -65,8 +67,12 @@ class DocumentGetResponse(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 DocumentGetResponse(BaseModel):
|
|
|
86
92
|
"notion_doc",
|
|
87
93
|
"webpage",
|
|
88
94
|
"onedrive",
|
|
95
|
+
"github_markdown",
|
|
89
96
|
]
|
|
90
97
|
"""Type of the document"""
|
|
91
98
|
|