supermemory 0.1.0a1__py3-none-any.whl → 3.0.0a2__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. supermemory/__init__.py +7 -1
  2. supermemory/_base_client.py +44 -2
  3. supermemory/_client.py +21 -29
  4. supermemory/_models.py +2 -0
  5. supermemory/_types.py +2 -0
  6. supermemory/_utils/_proxy.py +4 -1
  7. supermemory/_utils/_resources_proxy.py +24 -0
  8. supermemory/_version.py +1 -1
  9. supermemory/resources/__init__.py +26 -40
  10. supermemory/resources/{connection.py → connections.py} +86 -80
  11. supermemory/resources/{memory.py → memories.py} +224 -176
  12. supermemory/resources/settings.py +102 -19
  13. supermemory/types/__init__.py +6 -7
  14. supermemory/types/connection_create_params.py +7 -2
  15. supermemory/types/connection_create_response.py +7 -1
  16. supermemory/types/connection_get_response.py +25 -0
  17. supermemory/types/memory_add_params.py +46 -0
  18. supermemory/types/{memory_create_response.py → memory_add_response.py} +2 -2
  19. supermemory/types/memory_get_response.py +79 -9
  20. supermemory/types/memory_update_params.py +46 -0
  21. supermemory/types/{memory_delete_response.py → memory_update_response.py} +5 -3
  22. supermemory/types/setting_get_response.py +45 -0
  23. supermemory/types/setting_update_params.py +28 -12
  24. supermemory/types/setting_update_response.py +31 -13
  25. {supermemory-0.1.0a1.dist-info → supermemory-3.0.0a2.dist-info}/METADATA +52 -15
  26. supermemory-3.0.0a2.dist-info/RECORD +46 -0
  27. supermemory/resources/search.py +0 -254
  28. supermemory/types/memory_create_params.py +0 -23
  29. supermemory/types/memory_list_params.py +0 -24
  30. supermemory/types/memory_list_response.py +0 -59
  31. supermemory/types/search_execute_params.py +0 -56
  32. supermemory/types/search_execute_response.py +0 -52
  33. supermemory-0.1.0a1.dist-info/RECORD +0 -47
  34. {supermemory-0.1.0a1.dist-info → supermemory-3.0.0a2.dist-info}/WHEEL +0 -0
  35. {supermemory-0.1.0a1.dist-info → supermemory-3.0.0a2.dist-info}/licenses/LICENSE +0 -0
@@ -1,56 +0,0 @@
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, List, Union, Iterable
6
- from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict
7
-
8
- from .._utils import PropertyInfo
9
-
10
- __all__ = ["SearchExecuteParams", "Filters", "FiltersUnionMember0"]
11
-
12
-
13
- class SearchExecuteParams(TypedDict, total=False):
14
- q: Required[str]
15
- """Search query string"""
16
-
17
- categories_filter: Annotated[
18
- List[Literal["technology", "science", "business", "health"]], PropertyInfo(alias="categoriesFilter")
19
- ]
20
- """Optional category filters"""
21
-
22
- chunk_threshold: Annotated[float, PropertyInfo(alias="chunkThreshold")]
23
- """Maximum number of chunks to return"""
24
-
25
- doc_id: Annotated[str, PropertyInfo(alias="docId")]
26
- """Optional document ID to search within"""
27
-
28
- document_threshold: Annotated[float, PropertyInfo(alias="documentThreshold")]
29
- """Maximum number of documents to return"""
30
-
31
- filters: Filters
32
- """Optional filters to apply to the search"""
33
-
34
- include_summary: Annotated[bool, PropertyInfo(alias="includeSummary")]
35
- """If true, include document summary in the response.
36
-
37
- This is helpful if you want a chatbot to know the context of the document.
38
- """
39
-
40
- limit: int
41
- """Maximum number of results to return"""
42
-
43
- only_matching_chunks: Annotated[bool, PropertyInfo(alias="onlyMatchingChunks")]
44
- """If true, only return matching chunks without context"""
45
-
46
- user_id: Annotated[str, PropertyInfo(alias="userId")]
47
- """End user ID this search is associated with"""
48
-
49
-
50
- class FiltersUnionMember0(TypedDict, total=False):
51
- and_: Annotated[Iterable[object], PropertyInfo(alias="AND")]
52
-
53
- or_: Annotated[Iterable[object], PropertyInfo(alias="OR")]
54
-
55
-
56
- Filters: TypeAlias = Union[FiltersUnionMember0, Dict[str, object]]
@@ -1,52 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import Dict, List, Optional
4
- from datetime import datetime
5
-
6
- from pydantic import Field as FieldInfo
7
-
8
- from .._models import BaseModel
9
-
10
- __all__ = ["SearchExecuteResponse", "Result", "ResultChunk"]
11
-
12
-
13
- class ResultChunk(BaseModel):
14
- content: str
15
- """Content of the matching chunk"""
16
-
17
- is_relevant: bool = FieldInfo(alias="isRelevant")
18
- """Whether this chunk is relevant to the query"""
19
-
20
- score: float
21
- """Similarity score for this chunk"""
22
-
23
-
24
- class Result(BaseModel):
25
- chunks: List[ResultChunk]
26
- """Matching content chunks from the document"""
27
-
28
- created_at: datetime = FieldInfo(alias="createdAt")
29
- """Document creation date"""
30
-
31
- document_id: str = FieldInfo(alias="documentId")
32
- """ID of the matching document"""
33
-
34
- metadata: Optional[Dict[str, object]] = None
35
- """Document metadata"""
36
-
37
- score: float
38
- """Relevance score of the match"""
39
-
40
- title: str
41
- """Document title"""
42
-
43
- updated_at: datetime = FieldInfo(alias="updatedAt")
44
- """Document last update date"""
45
-
46
-
47
- class SearchExecuteResponse(BaseModel):
48
- results: List[Result]
49
-
50
- timing: float
51
-
52
- total: float
@@ -1,47 +0,0 @@
1
- supermemory/__init__.py,sha256=zmdpovY5xGPUklfTkFT_KJkaLs5W9DZ3fVG2EDMWIXA,2503
2
- supermemory/_base_client.py,sha256=9HYnqL_kzsVgh2Ju7mJ3ODnE6lr-ITvlAsN1orWPyrE,64849
3
- supermemory/_client.py,sha256=CZKei9ZiIUQm_D9cfvdRL3TBmywARU8U8lN97UpfZaI,16777
4
- supermemory/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
5
- supermemory/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
6
- supermemory/_exceptions.py,sha256=5nnX7W8L_eA6LkX3SBl7csJy5d9QEcDqRVuwDq8wVh8,3230
7
- supermemory/_files.py,sha256=mf4dOgL4b0ryyZlbqLhggD3GVgDf6XxdGFAgce01ugE,3549
8
- supermemory/_models.py,sha256=mB2r2VWQq49jG-F0RIXDrBxPp3v-Eg12wMOtVTNxtv4,29057
9
- supermemory/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
10
- supermemory/_resource.py,sha256=_wuaB1exMy-l-qqdJJdTv15hH5qBSN2Rj9CFwjXTZJU,1130
11
- supermemory/_response.py,sha256=Yh869-U8INkojKZHFsNw69z5Y2BrK2isgRJ8mifEURM,28848
12
- supermemory/_streaming.py,sha256=MGbosxSTqq0_JG52hvH2Z-Mr_Y95ws5UdFw77_iYukc,10120
13
- supermemory/_types.py,sha256=l9FVOIsfa8FG9tbvxFBA1mj_yLc5ibf1niQ8xecMYdY,6148
14
- supermemory/_version.py,sha256=yL5hpU0Q4na57UkkEOGFiZI4tWBdExc1T2LnhLSkaQA,171
15
- supermemory/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
- supermemory/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
17
- supermemory/_utils/_logs.py,sha256=iceljYaEUb4Q4q1SgbSzwSrlJA64ISbaccczzZ8Z9Vg,789
18
- supermemory/_utils/_proxy.py,sha256=z3zsateHtb0EARTWKk8QZNHfPkqJbqwd1lM993LBwGE,1902
19
- supermemory/_utils/_reflection.py,sha256=ZmGkIgT_PuwedyNBrrKGbxoWtkpytJNU1uU4QHnmEMU,1364
20
- supermemory/_utils/_streams.py,sha256=SMC90diFFecpEg_zgDRVbdR3hSEIgVVij4taD-noMLM,289
21
- supermemory/_utils/_sync.py,sha256=TpGLrrhRNWTJtODNE6Fup3_k7zrWm1j2RlirzBwre-0,2862
22
- supermemory/_utils/_transform.py,sha256=n7kskEWz6o__aoNvhFoGVyDoalNe6mJwp-g7BWkdj88,15617
23
- supermemory/_utils/_typing.py,sha256=D0DbbNu8GnYQTSICnTSHDGsYXj8TcAKyhejb0XcnjtY,4602
24
- supermemory/_utils/_utils.py,sha256=ts4CiiuNpFiGB6YMdkQRh2SZvYvsl7mAF-JWHCcLDf4,12312
25
- supermemory/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
26
- supermemory/resources/__init__.py,sha256=dx0g3SAuMRAeRsNdMWR4Wtna-6UKmhSbh-iOFEAcJI4,1980
27
- supermemory/resources/connection.py,sha256=uzsEXN02BVJgbzN289qCmPYqDW-4BanY6eb8CYWOTXU,10017
28
- supermemory/resources/memory.py,sha256=DU5i4Ftgh2o2anu6exptosd58d5g2PZGvvFzg3MxJqc,17362
29
- supermemory/resources/search.py,sha256=Qe0GMFVTsDMg7CCtffK4NL-7I_AYccuL25u0nzbfMUI,9536
30
- supermemory/resources/settings.py,sha256=VKqzCi7e4z6hJuNfwr0zW1kFzhWKGkCZdlDwQKfiyg4,7392
31
- supermemory/types/__init__.py,sha256=CMR0HNDklN-fOm6r0-WQQfRTrwc1yqdpDCLHdm-xkvo,1080
32
- supermemory/types/connection_create_params.py,sha256=NVHZ152C3ioga5on597HRYAM7HBsK0T4AGua2V5R0qE,404
33
- supermemory/types/connection_create_response.py,sha256=jSshnS9cEjZSzucWNIgEe3Xna_NSb71oHCUSDpihJYU,348
34
- supermemory/types/memory_create_params.py,sha256=sgK_rNTI1NyHN9Kkb7-OTe0XoAeGSDJCnyDEsLh69dg,614
35
- supermemory/types/memory_create_response.py,sha256=zPcyrKM1aYK62tjGLWGn9g-K_svhgHBobKQoS99dNxc,225
36
- supermemory/types/memory_delete_response.py,sha256=1kb_ExXPaaZLyuv4-fQuumBamTPklFrpvMv0ZHhZf2U,214
37
- supermemory/types/memory_get_response.py,sha256=qb_D77eNJJ1v07I0Dpu-vh3YKAndcEWeNg3oQvlCI60,565
38
- supermemory/types/memory_list_params.py,sha256=kjyYz3NcnjgKzE-g442lQ1kyIsAtMMXQG-baLHvJ4KU,546
39
- supermemory/types/memory_list_response.py,sha256=W9NyBc1hWew9fgyslHKuIy2SCQxi7cXRKa4qd3f0V8Q,1544
40
- supermemory/types/search_execute_params.py,sha256=WOw_Ijj1IxCmEU3O0zQzbmj1ud-DVgVop7UoKBALvew,1870
41
- supermemory/types/search_execute_response.py,sha256=Z0T76z1xKA7bdKZ96kyXTOkiMRk7TzUHYKEdR6VNcHw,1216
42
- supermemory/types/setting_update_params.py,sha256=P7P0mZsGRtM-zEhAQNaYxssJZsToK1YGPHUvqWgrqWo,861
43
- supermemory/types/setting_update_response.py,sha256=R3PR04k_DoYkcM54UqHjI_vP7G6AvThoSd4lcyZjDoE,935
44
- supermemory-0.1.0a1.dist-info/METADATA,sha256=t4wQ5u7EdrjoyzV8vJysE_SneJKiJrRTkkXPM3GhP0Q,13174
45
- supermemory-0.1.0a1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
46
- supermemory-0.1.0a1.dist-info/licenses/LICENSE,sha256=M2NcpYEBpakciOULpWzo-xO2Lincf74gGwfaU00Sct0,11341
47
- supermemory-0.1.0a1.dist-info/RECORD,,