Skip to content

Commit 173a337

Browse files
feat(api): api update
1 parent 7d2fded commit 173a337

File tree

4 files changed

+2
-20
lines changed

4 files changed

+2
-20
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: 12
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-51498a77be155823007306ade088caca08102547dec1860625b8c111bf5a19b3.yml
3-
openapi_spec_hash: 2a18759ac9605976ae0555be3735d711
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-be07470b9ac183653e025d87493d1fa66e1099c281d78c11b4822c56b81f3ce3.yml
3+
openapi_spec_hash: ab48eeb62ea3b68bec83da9b3e246680
44
config_hash: 8477e3ee6fd596ab6ac911d052e4de79

src/supermemory/resources/search.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def execute(
4646
*,
4747
q: str,
4848
doc_id: str | NotGiven = NOT_GIVEN,
49-
user_id: str | NotGiven = NOT_GIVEN,
5049
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5150
# The extra values given here take precedence over values defined on the client or passed to this method.
5251
extra_headers: Headers | None = None,
@@ -63,9 +62,6 @@ def execute(
6362
doc_id: Optional document ID to search within. You can use this to find chunks in a very
6463
large document.
6564
66-
user_id: End user ID this search is associated with. NOTE: This also acts as a filter for
67-
the search.
68-
6965
extra_headers: Send extra headers
7066
7167
extra_query: Add additional query parameters to the request
@@ -85,7 +81,6 @@ def execute(
8581
{
8682
"q": q,
8783
"doc_id": doc_id,
88-
"user_id": user_id,
8984
},
9085
search_execute_params.SearchExecuteParams,
9186
),
@@ -119,7 +114,6 @@ async def execute(
119114
*,
120115
q: str,
121116
doc_id: str | NotGiven = NOT_GIVEN,
122-
user_id: str | NotGiven = NOT_GIVEN,
123117
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
124118
# The extra values given here take precedence over values defined on the client or passed to this method.
125119
extra_headers: Headers | None = None,
@@ -136,9 +130,6 @@ async def execute(
136130
doc_id: Optional document ID to search within. You can use this to find chunks in a very
137131
large document.
138132
139-
user_id: End user ID this search is associated with. NOTE: This also acts as a filter for
140-
the search.
141-
142133
extra_headers: Send extra headers
143134
144135
extra_query: Add additional query parameters to the request
@@ -158,7 +149,6 @@ async def execute(
158149
{
159150
"q": q,
160151
"doc_id": doc_id,
161-
"user_id": user_id,
162152
},
163153
search_execute_params.SearchExecuteParams,
164154
),

src/supermemory/types/search_execute_params.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,3 @@ class SearchExecuteParams(TypedDict, total=False):
1818
1919
You can use this to find chunks in a very large document.
2020
"""
21-
22-
user_id: Annotated[str, PropertyInfo(alias="userId")]
23-
"""End user ID this search is associated with.
24-
25-
NOTE: This also acts as a filter for the search.
26-
"""

tests/api_resources/test_search.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def test_method_execute_with_all_params(self, client: Supermemory) -> None:
3131
search = client.search.execute(
3232
q="machine learning concepts",
3333
doc_id="doc_xyz789",
34-
user_id="user_123",
3534
)
3635
assert_matches_type(SearchExecuteResponse, search, path=["response"])
3736

@@ -79,7 +78,6 @@ async def test_method_execute_with_all_params(self, async_client: AsyncSupermemo
7978
search = await async_client.search.execute(
8079
q="machine learning concepts",
8180
doc_id="doc_xyz789",
82-
user_id="user_123",
8381
)
8482
assert_matches_type(SearchExecuteResponse, search, path=["response"])
8583

0 commit comments

Comments
 (0)