Skip to content

Commit cd52c38

Browse files
feat(api): update via SDK Studio
1 parent 8618e3d commit cd52c38

File tree

6 files changed

+17
-21
lines changed

6 files changed

+17
-21
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 13
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/zeroentropy%2Fzeroentropy-f0123960b91403fc24d7f6af6c899a0273d6efa068eff58ea0730106a1268d92.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/zeroentropy%2Fzeroentropy-2140640e14f6eb3b707a37ceeaa563de1e326fef9fa4a6b27e66ca0d64dff8ac.yml

src/zeroentropy/types/query_top_documents_params.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
from typing import Optional
66
from typing_extensions import Required, TypedDict
77

8+
from .str_json_param import StrJsonParam
9+
810
__all__ = ["QueryTopDocumentsParams"]
911

1012

@@ -26,7 +28,7 @@ class QueryTopDocumentsParams(TypedDict, total=False):
2628
be 1 character).
2729
"""
2830

29-
filter: Optional["StrJsonParam"]
31+
filter: Optional[StrJsonParam]
3032
"""The query filter to apply.
3133
3234
Please read [Metadata Filtering](/metadata-filtering) for more information. If
@@ -38,6 +40,3 @@ class QueryTopDocumentsParams(TypedDict, total=False):
3840
3941
If not provided, then the default will be `False`.
4042
"""
41-
42-
43-
from .str_json_param import StrJsonParam

src/zeroentropy/types/query_top_pages_params.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
from typing import Optional
66
from typing_extensions import Required, TypedDict
77

8+
from .str_json_param import StrJsonParam
9+
810
__all__ = ["QueryTopPagesParams"]
911

1012

@@ -26,7 +28,7 @@ class QueryTopPagesParams(TypedDict, total=False):
2628
be 1 character).
2729
"""
2830

29-
filter: Optional["StrJsonParam"]
31+
filter: Optional[StrJsonParam]
3032
"""The query filter to apply.
3133
3234
Please read [Metadata Filtering](/metadata-filtering) for more information. If
@@ -35,6 +37,3 @@ class QueryTopPagesParams(TypedDict, total=False):
3537

3638
include_content: bool
3739
"""If set to true, then the content of all pages will be returned."""
38-
39-
40-
from .str_json_param import StrJsonParam

src/zeroentropy/types/query_top_snippets_params.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
from typing import Optional
66
from typing_extensions import Required, TypedDict
77

8+
from .str_json_param import StrJsonParam
9+
810
__all__ = ["QueryTopSnippetsParams"]
911

1012

@@ -26,7 +28,7 @@ class QueryTopSnippetsParams(TypedDict, total=False):
2628
be 1 character).
2729
"""
2830

29-
filter: Optional["StrJsonParam"]
31+
filter: Optional[StrJsonParam]
3032
"""The query filter to apply.
3133
3234
Please read [Metadata Filtering](/metadata-filtering) for more information. If
@@ -41,6 +43,3 @@ class QueryTopSnippetsParams(TypedDict, total=False):
4143
200 characters. If set to `false`, the responses will average 2000 characters.
4244
The default is `false`.
4345
"""
44-
45-
46-
from .str_json_param import StrJsonParam

src/zeroentropy/types/str_json_param.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
from __future__ import annotations
44

5-
from typing import Dict, List, Union, Iterable
65
from typing_extensions import TypeAlias
76

87
__all__ = ["StrJsonParam"]
98

10-
StrJsonParam: TypeAlias = Union[str, List[str], Iterable["StrJsonParam"], Dict[str, "StrJsonParam"]]
9+
StrJsonParam: TypeAlias = object

tests/api_resources/test_queries.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_method_top_documents_with_all_params(self, client: Zeroentropy) -> None
3636
collection_name="collection_name",
3737
k=0,
3838
query="query",
39-
filter="string",
39+
filter={},
4040
include_metadata=True,
4141
)
4242
assert_matches_type(QueryTopDocumentsResponse, query, path=["response"])
@@ -84,7 +84,7 @@ def test_method_top_pages_with_all_params(self, client: Zeroentropy) -> None:
8484
collection_name="collection_name",
8585
k=0,
8686
query="query",
87-
filter="string",
87+
filter={},
8888
include_content=True,
8989
)
9090
assert_matches_type(QueryTopPagesResponse, query, path=["response"])
@@ -132,7 +132,7 @@ def test_method_top_snippets_with_all_params(self, client: Zeroentropy) -> None:
132132
collection_name="collection_name",
133133
k=0,
134134
query="query",
135-
filter="string",
135+
filter={},
136136
precise_responses=True,
137137
)
138138
assert_matches_type(QueryTopSnippetsResponse, query, path=["response"])
@@ -184,7 +184,7 @@ async def test_method_top_documents_with_all_params(self, async_client: AsyncZer
184184
collection_name="collection_name",
185185
k=0,
186186
query="query",
187-
filter="string",
187+
filter={},
188188
include_metadata=True,
189189
)
190190
assert_matches_type(QueryTopDocumentsResponse, query, path=["response"])
@@ -232,7 +232,7 @@ async def test_method_top_pages_with_all_params(self, async_client: AsyncZeroent
232232
collection_name="collection_name",
233233
k=0,
234234
query="query",
235-
filter="string",
235+
filter={},
236236
include_content=True,
237237
)
238238
assert_matches_type(QueryTopPagesResponse, query, path=["response"])
@@ -280,7 +280,7 @@ async def test_method_top_snippets_with_all_params(self, async_client: AsyncZero
280280
collection_name="collection_name",
281281
k=0,
282282
query="query",
283-
filter="string",
283+
filter={},
284284
precise_responses=True,
285285
)
286286
assert_matches_type(QueryTopSnippetsResponse, query, path=["response"])

0 commit comments

Comments
 (0)