Skip to content

Commit b0f57a1

Browse files
feat(api): api update
1 parent f66b465 commit b0f57a1

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
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: 26
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-b40318167017a9b927f3b415832f84c6b04e63a758b14325294ef48eb3f03440.yml
3-
openapi_spec_hash: f886839ae51ba11dac4601aeb3881155
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-8a2f638d23709e5ca31c359b3b82ac806c4f2dbb238ca28ee2afed599b3f7be3.yml
3+
openapi_spec_hash: 87a76bf487509cec077df5d5679a03de
44
config_hash: f3eb5ca71172780678106f6d46f15dda
Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,32 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List
4-
from typing_extensions import TypeAlias
3+
from typing import List, Optional
54

65
from .._models import BaseModel
76

8-
__all__ = ["DocumentBatchAddResponse", "DocumentBatchAddResponseItem"]
7+
__all__ = ["DocumentBatchAddResponse", "Result"]
98

109

11-
class DocumentBatchAddResponseItem(BaseModel):
10+
class Result(BaseModel):
1211
id: str
13-
"""Unique identifier of the document"""
12+
"""Unique identifier of the document (empty string for failed items)"""
1413

1514
status: str
16-
"""Status of the document"""
15+
"""Status of the document (e.g. 'done', 'queued', 'error')"""
1716

17+
details: Optional[str] = None
18+
"""Additional error details when status is 'error'"""
1819

19-
DocumentBatchAddResponse: TypeAlias = List[DocumentBatchAddResponseItem]
20+
error: Optional[str] = None
21+
"""Error message when status is 'error'"""
22+
23+
24+
class DocumentBatchAddResponse(BaseModel):
25+
failed: float
26+
"""Count of documents that failed to add"""
27+
28+
results: List[Result]
29+
"""Array of results for each document in the batch"""
30+
31+
success: float
32+
"""Count of documents successfully added"""

0 commit comments

Comments
 (0)