Skip to content

Commit 40646ea

Browse files
feat(api): api update
1 parent d104487 commit 40646ea

7 files changed

Lines changed: 16 additions & 8 deletions

File tree

.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/hyperspell%2Fhyperspell-e94268bb224f0aa46f151c81dba49c8def81c73b48da8a6f31b4f8a60aa5055c.yml
3-
openapi_spec_hash: 2e2f8148f72a724fbafd05c51b7a62c9
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-b1f2b7cb843e6f4e6123e838ce29cbbaea0a48b1a72057632de1d0d21727c5d8.yml
3+
openapi_spec_hash: 21a354f587a2fe19797860c7b6da81a9
44
config_hash: 9e504d1d5b3c05b3d92cff348f2053df

src/hyperspell/resources/memories.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ def list(
163163
]
164164
]
165165
| Omit = omit,
166-
status: Optional[Literal["pending", "processing", "completed", "failed"]] | Omit = omit,
166+
status: Optional[Literal["pending", "processing", "completed", "failed", "pending_review", "skipped"]]
167+
| Omit = omit,
167168
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
168169
# The extra values given here take precedence over values defined on the client or passed to this method.
169170
extra_headers: Headers | None = None,
@@ -719,7 +720,8 @@ def list(
719720
]
720721
]
721722
| Omit = omit,
722-
status: Optional[Literal["pending", "processing", "completed", "failed"]] | Omit = omit,
723+
status: Optional[Literal["pending", "processing", "completed", "failed", "pending_review", "skipped"]]
724+
| Omit = omit,
723725
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
724726
# The extra values given here take precedence over values defined on the client or passed to this method.
725727
extra_headers: Headers | None = None,

src/hyperspell/types/integrations/web_crawler_index_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ class WebCrawlerIndexResponse(BaseModel):
2626
"microsoft_teams",
2727
]
2828

29-
status: Literal["pending", "processing", "completed", "failed"]
29+
status: Literal["pending", "processing", "completed", "failed", "pending_review", "skipped"]

src/hyperspell/types/memory_list_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ class MemoryListParams(TypedDict, total=False):
4141
]
4242
"""Filter documents by source."""
4343

44-
status: Optional[Literal["pending", "processing", "completed", "failed"]]
44+
status: Optional[Literal["pending", "processing", "completed", "failed", "pending_review", "skipped"]]
4545
"""Filter documents by status."""

src/hyperspell/types/memory_status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ class MemoryStatus(BaseModel):
2626
"microsoft_teams",
2727
]
2828

29-
status: Literal["pending", "processing", "completed", "failed"]
29+
status: Literal["pending", "processing", "completed", "failed", "pending_review", "skipped"]

src/hyperspell/types/shared/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Metadata(BaseModel):
2121

2222
last_modified: Optional[datetime] = None
2323

24-
status: Optional[Literal["pending", "processing", "completed", "failed"]] = None
24+
status: Optional[Literal["pending", "processing", "completed", "failed", "pending_review", "skipped"]] = None
2525

2626
url: Optional[str] = None
2727

src/hyperspell/types/shared/resource.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,14 @@ class Resource(BaseModel):
2828
"microsoft_teams",
2929
]
3030

31+
folder_id: Optional[str] = None
32+
"""Provider folder ID this resource belongs to"""
33+
3134
metadata: Optional[Metadata] = None
3235

36+
parent_folder_id: Optional[str] = None
37+
"""Parent folder ID for policy inheritance"""
38+
3339
score: Optional[float] = None
3440
"""The relevance of the resource to the query"""
3541

0 commit comments

Comments
 (0)