Skip to content

Commit 8225250

Browse files
feat(api): api update
1 parent 094162f commit 8225250

21 files changed

+19128
-158
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 26
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-3856961a8959b60dbf0b6912d69c23390fbbca1c5e31028dd0decc85234dd285.yml
3-
openapi_spec_hash: 988a7d6d7cef81ceb4acda3ef9f8c21e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-c42d5f3942d6e32b6d1ed95d40bf6cca87aa8c715343444b97e0c68d44646878.yml
3+
openapi_spec_hash: 952074229d1f810fe95aeee711db8ca4
44
config_hash: 87b9e108ccf7a61dbda94437747a84be

api.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# Shared Types
2-
3-
```python
4-
from supermemory.types import And, Or
5-
```
6-
71
# Supermemory
82

93
Types:
@@ -50,7 +44,6 @@ Types:
5044

5145
```python
5246
from supermemory.types import (
53-
Query,
5447
DocumentUpdateResponse,
5548
DocumentListResponse,
5649
DocumentAddResponse,

src/supermemory/resources/documents.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import httpx
99

1010
from ..types import (
11-
Query,
1211
document_add_params,
1312
document_list_params,
1413
document_update_params,
@@ -27,7 +26,6 @@
2726
async_to_streamed_response_wrapper,
2827
)
2928
from .._base_client import make_request_options
30-
from ..types.query_param import QueryParam
3129
from ..types.document_add_response import DocumentAddResponse
3230
from ..types.document_get_response import DocumentGetResponse
3331
from ..types.document_list_response import DocumentListResponse
@@ -138,7 +136,7 @@ def list(
138136
self,
139137
*,
140138
container_tags: SequenceNotStr[str] | Omit = omit,
141-
filters: QueryParam | Omit = omit,
139+
filters: document_list_params.Filters | Omit = omit,
142140
include_content: bool | Omit = omit,
143141
limit: Union[str, float] | Omit = omit,
144142
order: Literal["asc", "desc"] | Omit = omit,
@@ -614,7 +612,7 @@ async def list(
614612
self,
615613
*,
616614
container_tags: SequenceNotStr[str] | Omit = omit,
617-
filters: QueryParam | Omit = omit,
615+
filters: document_list_params.Filters | Omit = omit,
618616
include_content: bool | Omit = omit,
619617
limit: Union[str, float] | Omit = omit,
620618
order: Literal["asc", "desc"] | Omit = omit,

src/supermemory/resources/memories.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import httpx
99

1010
from ..types import (
11-
Query,
1211
memory_add_params,
1312
memory_list_params,
1413
memory_forget_params,
@@ -27,7 +26,6 @@
2726
async_to_streamed_response_wrapper,
2827
)
2928
from .._base_client import make_request_options
30-
from ..types.query_param import QueryParam
3129
from ..types.memory_add_response import MemoryAddResponse
3230
from ..types.memory_get_response import MemoryGetResponse
3331
from ..types.memory_list_response import MemoryListResponse
@@ -137,7 +135,7 @@ def list(
137135
self,
138136
*,
139137
container_tags: SequenceNotStr[str] | Omit = omit,
140-
filters: QueryParam | Omit = omit,
138+
filters: memory_list_params.Filters | Omit = omit,
141139
include_content: bool | Omit = omit,
142140
limit: Union[str, float] | Omit = omit,
143141
order: Literal["asc", "desc"] | Omit = omit,
@@ -602,7 +600,7 @@ async def list(
602600
self,
603601
*,
604602
container_tags: SequenceNotStr[str] | Omit = omit,
605-
filters: QueryParam | Omit = omit,
603+
filters: memory_list_params.Filters | Omit = omit,
606604
include_content: bool | Omit = omit,
607605
limit: Union[str, float] | Omit = omit,
608606
order: Literal["asc", "desc"] | Omit = omit,

src/supermemory/resources/search.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import httpx
66

7-
from ..types import Query, search_execute_params, search_memories_params, search_documents_params
7+
from ..types import search_execute_params, search_memories_params, search_documents_params
88
from .._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given
99
from .._utils import maybe_transform, async_maybe_transform
1010
from .._compat import cached_property
@@ -16,7 +16,6 @@
1616
async_to_streamed_response_wrapper,
1717
)
1818
from .._base_client import make_request_options
19-
from ..types.query_param import QueryParam
2019
from ..types.search_execute_response import SearchExecuteResponse
2120
from ..types.search_memories_response import SearchMemoriesResponse
2221
from ..types.search_documents_response import SearchDocumentsResponse
@@ -53,7 +52,7 @@ def documents(
5352
container_tags: SequenceNotStr[str] | Omit = omit,
5453
doc_id: str | Omit = omit,
5554
document_threshold: float | Omit = omit,
56-
filters: QueryParam | Omit = omit,
55+
filters: search_documents_params.Filters | Omit = omit,
5756
include_full_docs: bool | Omit = omit,
5857
include_summary: bool | Omit = omit,
5958
limit: int | Omit = omit,
@@ -151,7 +150,7 @@ def execute(
151150
container_tags: SequenceNotStr[str] | Omit = omit,
152151
doc_id: str | Omit = omit,
153152
document_threshold: float | Omit = omit,
154-
filters: QueryParam | Omit = omit,
153+
filters: search_execute_params.Filters | Omit = omit,
155154
include_full_docs: bool | Omit = omit,
156155
include_summary: bool | Omit = omit,
157156
limit: int | Omit = omit,
@@ -245,7 +244,7 @@ def memories(
245244
*,
246245
q: str,
247246
container_tag: str | Omit = omit,
248-
filters: QueryParam | Omit = omit,
247+
filters: search_memories_params.Filters | Omit = omit,
249248
include: search_memories_params.Include | Omit = omit,
250249
limit: int | Omit = omit,
251250
rerank: bool | Omit = omit,
@@ -340,7 +339,7 @@ async def documents(
340339
container_tags: SequenceNotStr[str] | Omit = omit,
341340
doc_id: str | Omit = omit,
342341
document_threshold: float | Omit = omit,
343-
filters: QueryParam | Omit = omit,
342+
filters: search_documents_params.Filters | Omit = omit,
344343
include_full_docs: bool | Omit = omit,
345344
include_summary: bool | Omit = omit,
346345
limit: int | Omit = omit,
@@ -438,7 +437,7 @@ async def execute(
438437
container_tags: SequenceNotStr[str] | Omit = omit,
439438
doc_id: str | Omit = omit,
440439
document_threshold: float | Omit = omit,
441-
filters: QueryParam | Omit = omit,
440+
filters: search_execute_params.Filters | Omit = omit,
442441
include_full_docs: bool | Omit = omit,
443442
include_summary: bool | Omit = omit,
444443
limit: int | Omit = omit,
@@ -532,7 +531,7 @@ async def memories(
532531
*,
533532
q: str,
534533
container_tag: str | Omit = omit,
535-
filters: QueryParam | Omit = omit,
534+
filters: search_memories_params.Filters | Omit = omit,
536535
include: search_memories_params.Include | Omit = omit,
537536
limit: int | Omit = omit,
538537
rerank: bool | Omit = omit,

src/supermemory/types/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
from __future__ import annotations
44

5-
from .shared import Or as Or, And as And
6-
from .query_param import QueryParam as QueryParam
75
from .add_response import AddResponse as AddResponse
86
from .profile_response import ProfileResponse as ProfileResponse
97
from .client_add_params import ClientAddParams as ClientAddParams

0 commit comments

Comments
 (0)