Skip to content

Commit 02180e2

Browse files
feat(api): api update
1 parent 755cef6 commit 02180e2

File tree

5 files changed

+25
-5
lines changed

5 files changed

+25
-5
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: 11
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-2dc17adc2b9fedfbcbee5a88d469b66980169c89af5e1475d2a2ee5aeebc503c.yml
3-
openapi_spec_hash: fc7e963d497cf01d350d46cb1ff98732
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-34f3b1235237761dc6eb4292823363cd8f53be760c3883c127da4a23dd1475fa.yml
3+
openapi_spec_hash: 932c86561ab153d35f3313317ccff0cb
44
config_hash: 8477e3ee6fd596ab6ac911d052e4de79

src/supermemory/resources/memories.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ def update(
118118
def list(
119119
self,
120120
*,
121+
container_tags: List[str] | NotGiven = NOT_GIVEN,
121122
filters: str | NotGiven = NOT_GIVEN,
122123
limit: str | NotGiven = NOT_GIVEN,
123124
order: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
@@ -134,6 +135,9 @@ def list(
134135
Retrieves a paginated list of memories with their metadata and workflow status
135136
136137
Args:
138+
container_tags: Optional tags this memory should be containerized by. This can be an ID for your
139+
user, a project ID, or any other identifier you wish to use to group memories.
140+
137141
filters: Optional filters to apply to the search
138142
139143
limit: Number of items per page
@@ -161,6 +165,7 @@ def list(
161165
timeout=timeout,
162166
query=maybe_transform(
163167
{
168+
"container_tags": container_tags,
164169
"filters": filters,
165170
"limit": limit,
166171
"order": order,
@@ -434,6 +439,7 @@ async def update(
434439
async def list(
435440
self,
436441
*,
442+
container_tags: List[str] | NotGiven = NOT_GIVEN,
437443
filters: str | NotGiven = NOT_GIVEN,
438444
limit: str | NotGiven = NOT_GIVEN,
439445
order: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
@@ -450,6 +456,9 @@ async def list(
450456
Retrieves a paginated list of memories with their metadata and workflow status
451457
452458
Args:
459+
container_tags: Optional tags this memory should be containerized by. This can be an ID for your
460+
user, a project ID, or any other identifier you wish to use to group memories.
461+
453462
filters: Optional filters to apply to the search
454463
455464
limit: Number of items per page
@@ -477,6 +486,7 @@ async def list(
477486
timeout=timeout,
478487
query=await async_maybe_transform(
479488
{
489+
"container_tags": container_tags,
480490
"filters": filters,
481491
"limit": limit,
482492
"order": order,

src/supermemory/types/memory_get_response.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ class MemoryGetResponse(BaseModel):
1515
id: str
1616
"""Unique identifier of the memory."""
1717

18-
connection_id: Optional[str] = FieldInfo(alias="connectionId", default=None)
19-
2018
content: Optional[str] = None
2119
"""The content to extract and process into a memory.
2220

src/supermemory/types/memory_list_params.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,22 @@
22

33
from __future__ import annotations
44

5-
from typing_extensions import Literal, TypedDict
5+
from typing import List
6+
from typing_extensions import Literal, Annotated, TypedDict
7+
8+
from .._utils import PropertyInfo
69

710
__all__ = ["MemoryListParams"]
811

912

1013
class MemoryListParams(TypedDict, total=False):
14+
container_tags: Annotated[List[str], PropertyInfo(alias="containerTags")]
15+
"""Optional tags this memory should be containerized by.
16+
17+
This can be an ID for your user, a project ID, or any other identifier you wish
18+
to use to group memories.
19+
"""
20+
1121
filters: str
1222
"""Optional filters to apply to the search"""
1323

tests/api_resources/test_memories.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def test_method_list(self, client: Supermemory) -> None:
9898
@parametrize
9999
def test_method_list_with_all_params(self, client: Supermemory) -> None:
100100
memory = client.memories.list(
101+
container_tags=["user_123", "project_123"],
101102
filters='{"AND":[{"key":"group","value":"jira_users","negate":false},{"filterType":"numeric","key":"timestamp","value":"1742745777","negate":false,"numericOperator":">"}]}',
102103
limit="10",
103104
order="desc",
@@ -377,6 +378,7 @@ async def test_method_list(self, async_client: AsyncSupermemory) -> None:
377378
@parametrize
378379
async def test_method_list_with_all_params(self, async_client: AsyncSupermemory) -> None:
379380
memory = await async_client.memories.list(
381+
container_tags=["user_123", "project_123"],
380382
filters='{"AND":[{"key":"group","value":"jira_users","negate":false},{"filterType":"numeric","key":"timestamp","value":"1742745777","negate":false,"numericOperator":">"}]}',
381383
limit="10",
382384
order="desc",

0 commit comments

Comments
 (0)