Skip to content

Commit c7e0c2c

Browse files
feat(api): api update
1 parent b236e85 commit c7e0c2c

File tree

4 files changed

+21
-2
lines changed

4 files changed

+21
-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-c56ce3c876eec0737db8394bd6235bff8dc42314b6460f3365c06945749d8714.yml
3+
openapi_spec_hash: 9e633a8fe5c71fa8bd5cbc34073b7c52
44
config_hash: 8477e3ee6fd596ab6ac911d052e4de79

src/supermemory/types/connection_get_response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ class ConnectionGetResponse(BaseModel):
1818

1919
document_limit: Optional[float] = FieldInfo(alias="documentLimit", default=None)
2020

21+
email: Optional[str] = None
22+
2123
expires_at: Optional[float] = FieldInfo(alias="expiresAt", default=None)
2224

2325
metadata: Optional[Dict[str, object]] = None

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)