Skip to content

Commit aaf3546

Browse files
feat(api): api update
1 parent c0150ac commit aaf3546

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-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: 11
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-17ab2bb871e55eda916736277838e3b8bbd6cec59a3681783bdc454b9c4ab958.yml
3-
openapi_spec_hash: 4df685b7bc763e16de83eb28da61cdf3
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-e6735b03c258b382c527550bb78042bdc3aad32a5cf564785dcb9f3fb13a2862.yml
3+
openapi_spec_hash: 8168fb51314d986893554e1cc935ca7d
44
config_hash: c8c1f2b0d63387d621f0cf066ae3379f

src/supermemory/types/memory_list_response.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import Dict, List, Union, Optional
4+
from datetime import datetime
5+
from typing_extensions import Literal
46

57
from pydantic import Field as FieldInfo
68

@@ -11,6 +13,7 @@
1113

1214
class Memory(BaseModel):
1315
id: str
16+
"""Unique identifier of the memory."""
1417

1518
content: Optional[str] = None
1619
"""The content to extract and process into a memory.
@@ -24,6 +27,9 @@ class Memory(BaseModel):
2427
We automatically detect the content type from the url's response format.
2528
"""
2629

30+
created_at: datetime = FieldInfo(alias="createdAt")
31+
"""Creation timestamp"""
32+
2733
custom_id: Optional[str] = FieldInfo(alias="customId", default=None)
2834
"""Optional custom ID of the memory.
2935
@@ -43,18 +49,34 @@ class Memory(BaseModel):
4349

4450
source: Optional[str] = None
4551

52+
status: Literal["unknown", "queued", "extracting", "chunking", "embedding", "indexing", "done", "failed"]
53+
"""Status of the memory"""
54+
4655
summary: Optional[str] = None
56+
"""Summary of the memory content"""
4757

4858
title: Optional[str] = None
4959
"""Title of the memory"""
5060

61+
type: Literal["text", "pdf", "tweet", "google_doc", "image", "video", "notion_doc", "webpage"]
62+
"""Type of the memory"""
63+
64+
updated_at: datetime = FieldInfo(alias="updatedAt")
65+
"""Last update timestamp"""
66+
67+
url: Optional[str] = None
68+
"""URL of the memory"""
69+
5170
container_tags: Optional[List[str]] = FieldInfo(alias="containerTags", default=None)
5271
"""Optional tags this memory should be containerized by.
5372
5473
This can be an ID for your user, a project ID, or any other identifier you wish
5574
to use to group memories.
5675
"""
5776

77+
raw: None = None
78+
"""Raw content of the memory"""
79+
5880

5981
class Pagination(BaseModel):
6082
current_page: float = FieldInfo(alias="currentPage")

0 commit comments

Comments
 (0)