Skip to content

Commit 00ba4b4

Browse files
feat(api): api update
1 parent 346dc7a commit 00ba4b4

File tree

5 files changed

+7
-63
lines changed

5 files changed

+7
-63
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/hyperspell%2Fhyperspell-11ffd14000d0f35e5eb7a11e3d044542555e1431f5ec26c6ab8a7a7e0c05ae9b.yml
3-
openapi_spec_hash: 92e1276c4c8ac8a7b596f64af0f071a3
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-2196e04d91b40e259050135ae9f40790bebb24d8093f84e6ff8ac3a01cc1f41c.yml
3+
openapi_spec_hash: 6e1ed9d29ff7ed6e13826d8fca9f71d5
44
config_hash: 63e7969fd7c560b6105e1de79148b568

src/hyperspell/resources/query.py

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,7 @@ def search(
5454
answer: bool | NotGiven = NOT_GIVEN,
5555
filter: query_search_params.Filter | NotGiven = NOT_GIVEN,
5656
max_results: int | NotGiven = NOT_GIVEN,
57-
sources: List[
58-
Literal[
59-
"collections",
60-
"mcp",
61-
"slack",
62-
"s3",
63-
"gmail",
64-
"notion",
65-
"google_docs",
66-
"hubspot",
67-
"reddit",
68-
"google-calendar",
69-
]
70-
]
71-
| NotGiven = NOT_GIVEN,
57+
sources: List[Literal["collections", "notion", "slack", "hubspot", "google-calendar"]] | NotGiven = NOT_GIVEN,
7258
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
7359
# The extra values given here take precedence over values defined on the client or passed to this method.
7460
extra_headers: Headers | None = None,
@@ -144,21 +130,7 @@ async def search(
144130
answer: bool | NotGiven = NOT_GIVEN,
145131
filter: query_search_params.Filter | NotGiven = NOT_GIVEN,
146132
max_results: int | NotGiven = NOT_GIVEN,
147-
sources: List[
148-
Literal[
149-
"collections",
150-
"mcp",
151-
"slack",
152-
"s3",
153-
"gmail",
154-
"notion",
155-
"google_docs",
156-
"hubspot",
157-
"reddit",
158-
"google-calendar",
159-
]
160-
]
161-
| NotGiven = NOT_GIVEN,
133+
sources: List[Literal["collections", "notion", "slack", "hubspot", "google-calendar"]] | NotGiven = NOT_GIVEN,
162134
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
163135
# The extra values given here take precedence over values defined on the client or passed to this method.
164136
extra_headers: Headers | None = None,

src/hyperspell/types/document_list_response.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,7 @@ class DocumentListResponse(BaseModel):
6262

6363
sections_count: Optional[int] = None
6464

65-
source: Optional[
66-
Literal[
67-
"collections",
68-
"mcp",
69-
"slack",
70-
"s3",
71-
"gmail",
72-
"notion",
73-
"google_docs",
74-
"hubspot",
75-
"reddit",
76-
"google-calendar",
77-
]
78-
] = None
65+
source: Optional[Literal["collections", "notion", "slack", "hubspot", "google-calendar"]] = None
7966

8067
status: Optional[Literal["pending", "processing", "completed", "failed"]] = None
8168

src/hyperspell/types/query_search_params.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,7 @@ class QuerySearchParams(TypedDict, total=False):
2424
max_results: int
2525
"""Maximum number of results to return."""
2626

27-
sources: List[
28-
Literal[
29-
"collections",
30-
"mcp",
31-
"slack",
32-
"s3",
33-
"gmail",
34-
"notion",
35-
"google_docs",
36-
"hubspot",
37-
"reddit",
38-
"google-calendar",
39-
]
40-
]
27+
sources: List[Literal["collections", "notion", "slack", "hubspot", "google-calendar"]]
4128
"""Only query documents from these sources."""
4229

4330

src/hyperspell/types/query_search_response.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ def __getattr__(self, attr: str) -> object: ...
2626
class Document(BaseModel):
2727
resource_id: str
2828

29-
source: Literal[
30-
"collections", "mcp", "slack", "s3", "gmail", "notion", "google_docs", "hubspot", "reddit", "google-calendar"
31-
]
29+
source: Literal["collections", "notion", "slack", "hubspot", "google-calendar"]
3230

3331
metadata: Optional[DocumentMetadata] = None
3432

0 commit comments

Comments
 (0)