Skip to content

Commit 378085f

Browse files
feat(api): api update
1 parent 7b7711f commit 378085f

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
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: 10
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-ed398f5eafd7dffae0725ec2f42f2a2b0db528292cee661e9f1cdb1063e6eb7b.yml
3-
openapi_spec_hash: c09b2e00932fc1762acabbe9e5c41390
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-df7eac3ee0eb7ee11c9586521c56b1ed4069a7a67b5744cfc7ea87785713badf.yml
3+
openapi_spec_hash: 196cfa21c4c95a04d96ca6ed449b5ca9
44
config_hash: 8477e3ee6fd596ab6ac911d052e4de79

src/supermemory/types/memory_get_response.py

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

18+
connection_id: Optional[str] = FieldInfo(alias="connectionId", default=None)
19+
"""Optional ID of connection the memory was created from.
20+
21+
This is useful for identifying the source of the memory.
22+
"""
23+
1824
content: Optional[str] = None
1925
"""The content to extract and process into a memory.
2026

src/supermemory/types/memory_list_response.py

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

18+
connection_id: Optional[str] = FieldInfo(alias="connectionId", default=None)
19+
"""Optional ID of connection the memory was created from.
20+
21+
This is useful for identifying the source of the memory.
22+
"""
23+
1824
created_at: datetime = FieldInfo(alias="createdAt")
1925
"""Creation timestamp"""
2026

@@ -42,6 +48,11 @@ class Memory(BaseModel):
4248
title: Optional[str] = None
4349
"""Title of the memory"""
4450

51+
type: Literal[
52+
"text", "pdf", "tweet", "google_doc", "google_slide", "google_sheet", "image", "video", "notion_doc", "webpage"
53+
]
54+
"""Type of the memory"""
55+
4556
updated_at: datetime = FieldInfo(alias="updatedAt")
4657
"""Last update timestamp"""
4758

0 commit comments

Comments
 (0)