Skip to content

Commit 41f3b9e

Browse files
feat(api): api update
1 parent 8a4d9ca commit 41f3b9e

File tree

3 files changed

+9
-9
lines changed

3 files changed

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

src/resources/search.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ export interface SearchExecuteParams {
112112
*/
113113
chunkThreshold?: number;
114114

115+
/**
116+
* Optional tags this search should be containerized by. This can be an ID for your
117+
* user, a project ID, or any other identifier you wish to use to filter memories.
118+
*/
119+
containerTags?: Array<string>;
120+
115121
/**
116122
* Optional document ID to search within. You can use this to find chunks in a very
117123
* large document.
@@ -159,12 +165,6 @@ export interface SearchExecuteParams {
159165
* the latency by about 400ms
160166
*/
161167
rewriteQuery?: boolean;
162-
163-
/**
164-
* End user ID this search is associated with. NOTE: This also acts as a filter for
165-
* the search.
166-
*/
167-
userId?: string;
168168
}
169169

170170
export namespace SearchExecuteParams {

tests/api-resources/search.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ describe('resource search', () => {
2626
q: 'machine learning concepts',
2727
categoriesFilter: ['technology', 'science'],
2828
chunkThreshold: 0.5,
29+
containerTags: ['user_123', 'project_123'],
2930
docId: 'doc_xyz789',
3031
documentThreshold: 0.5,
3132
filters: {
@@ -46,7 +47,6 @@ describe('resource search', () => {
4647
onlyMatchingChunks: false,
4748
rerank: false,
4849
rewriteQuery: false,
49-
userId: 'user_123',
5050
});
5151
});
5252
});

0 commit comments

Comments
 (0)