Skip to content

Commit e95b77e

Browse files
feat(api): api update
1 parent beffc5e commit e95b77e

File tree

3 files changed

+36
-21
lines changed

3 files changed

+36
-21
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-c907416d5056243275fc6d1c3842e38096406a4a895f6523c2cbfddfca072ad8.yml
3-
openapi_spec_hash: 0eef2d6ae43857f544ba7bcace19c755
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-6d14bb475452b9220ee0f563688b6d5e7070e32def30bfc2716cdd90b50de943.yml
3+
openapi_spec_hash: 6cf7bf30ba6361c7fbc7639fee70437f
44
config_hash: 8477e3ee6fd596ab6ac911d052e4de79

src/supermemory/types/memory_get_response.py

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99
from .._models import BaseModel
1010

11-
__all__ = ["MemoryGetResponse", "Doc"]
11+
__all__ = ["MemoryGetResponse"]
1212

1313

14-
class Doc(BaseModel):
14+
class MemoryGetResponse(BaseModel):
1515
id: str
1616
"""Unique identifier of the memory."""
1717

@@ -30,6 +30,12 @@ class Doc(BaseModel):
3030
created_at: datetime = FieldInfo(alias="createdAt")
3131
"""Creation timestamp"""
3232

33+
custom_id: Optional[str] = FieldInfo(alias="customId", default=None)
34+
"""Optional custom ID of the memory.
35+
36+
This could be an ID from your database that will uniquely identify this memory.
37+
"""
38+
3339
metadata: Union[str, float, bool, Dict[str, object], List[object], None] = None
3440
"""Optional metadata for the memory.
3541
@@ -39,6 +45,11 @@ class Doc(BaseModel):
3945
strings, numbers, or booleans. You cannot nest objects.
4046
"""
4147

48+
og_image: Optional[str] = FieldInfo(alias="ogImage", default=None)
49+
50+
source: Optional[str] = None
51+
"""Source of the memory"""
52+
4253
status: Literal["unknown", "queued", "extracting", "chunking", "embedding", "indexing", "done", "failed"]
4354
"""Status of the memory"""
4455

@@ -48,15 +59,21 @@ class Doc(BaseModel):
4859
title: Optional[str] = None
4960
"""Title of the memory"""
5061

62+
type: Literal["text", "pdf", "tweet", "google_doc", "image", "video", "notion_doc", "webpage"]
63+
"""Type of the memory"""
64+
5165
updated_at: datetime = FieldInfo(alias="updatedAt")
5266
"""Last update timestamp"""
5367

5468
url: Optional[str] = None
5569
"""URL of the memory"""
5670

71+
container_tags: Optional[List[str]] = FieldInfo(alias="containerTags", default=None)
72+
"""Optional tags this memory should be containerized by.
5773
58-
class MemoryGetResponse(BaseModel):
59-
doc: Doc
60-
"""Memory object"""
74+
This can be an ID for your user, a project ID, or any other identifier you wish
75+
to use to group memories.
76+
"""
6177

62-
status: str
78+
raw: None = None
79+
"""Raw content of the memory"""

src/supermemory/types/memory_list_response.py

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

18-
content: Optional[str] = None
19-
"""The content to extract and process into a memory.
20-
21-
This can be a URL to a website, a PDF, an image, or a video.
22-
23-
Plaintext: Any plaintext format
18+
created_at: datetime = FieldInfo(alias="createdAt")
19+
"""Creation timestamp"""
2420

25-
URL: A URL to a website, PDF, image, or video
21+
custom_id: Optional[str] = FieldInfo(alias="customId", default=None)
22+
"""Optional custom ID of the memory.
2623
27-
We automatically detect the content type from the url's response format.
24+
This could be an ID from your database that will uniquely identify this memory.
2825
"""
2926

30-
created_at: datetime = FieldInfo(alias="createdAt")
31-
"""Creation timestamp"""
32-
3327
metadata: Union[str, float, bool, Dict[str, object], List[object], None] = None
3428
"""Optional metadata for the memory.
3529
@@ -51,8 +45,12 @@ class Memory(BaseModel):
5145
updated_at: datetime = FieldInfo(alias="updatedAt")
5246
"""Last update timestamp"""
5347

54-
url: Optional[str] = None
55-
"""URL of the memory"""
48+
container_tags: Optional[List[str]] = FieldInfo(alias="containerTags", default=None)
49+
"""Optional tags this memory should be containerized by.
50+
51+
This can be an ID for your user, a project ID, or any other identifier you wish
52+
to use to group memories.
53+
"""
5654

5755

5856
class Pagination(BaseModel):

0 commit comments

Comments
 (0)