Skip to content

Commit 62aa3ad

Browse files
feat(api): update via SDK Studio (#5)
1 parent 2230305 commit 62aa3ad

File tree

7 files changed

+14
-44
lines changed

7 files changed

+14
-44
lines changed

api.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,3 @@ from zeroentropy.types import ParserParseDocumentResponse
7979
Methods:
8080

8181
- <code title="post /parsers/parse-document">client.parsers.<a href="./src/zeroentropy/resources/parsers.py">parse_document</a>(\*\*<a href="src/zeroentropy/types/parser_parse_document_params.py">params</a>) -> <a href="./src/zeroentropy/types/parser_parse_document_response.py">ParserParseDocumentResponse</a></code>
82-
83-
# Models
84-
85-
Types:
86-
87-
```python
88-
from zeroentropy.types import StrJson
89-
```

src/zeroentropy/resources/queries.py

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,11 @@
22

33
from __future__ import annotations
44

5-
from typing import Optional
5+
from typing import Dict, Optional
66

77
import httpx
88

9-
from ..types import (
10-
query_top_pages_params,
11-
query_top_snippets_params,
12-
query_top_documents_params,
13-
)
9+
from ..types import query_top_pages_params, query_top_snippets_params, query_top_documents_params
1410
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
1511
from .._utils import (
1612
maybe_transform,
@@ -25,7 +21,6 @@
2521
async_to_streamed_response_wrapper,
2622
)
2723
from .._base_client import make_request_options
28-
from ..types.str_json_param import StrJsonParam
2924
from ..types.query_top_pages_response import QueryTopPagesResponse
3025
from ..types.query_top_snippets_response import QueryTopSnippetsResponse
3126
from ..types.query_top_documents_response import QueryTopDocumentsResponse
@@ -59,7 +54,7 @@ def top_documents(
5954
collection_name: str,
6055
k: int,
6156
query: str,
62-
filter: Optional[StrJsonParam] | NotGiven = NOT_GIVEN,
57+
filter: Optional[Dict[str, object]] | NotGiven = NOT_GIVEN,
6358
include_metadata: bool | NotGiven = NOT_GIVEN,
6459
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6560
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -119,7 +114,7 @@ def top_pages(
119114
collection_name: str,
120115
k: int,
121116
query: str,
122-
filter: Optional[StrJsonParam] | NotGiven = NOT_GIVEN,
117+
filter: Optional[Dict[str, object]] | NotGiven = NOT_GIVEN,
123118
include_content: bool | NotGiven = NOT_GIVEN,
124119
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
125120
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -178,7 +173,7 @@ def top_snippets(
178173
collection_name: str,
179174
k: int,
180175
query: str,
181-
filter: Optional[StrJsonParam] | NotGiven = NOT_GIVEN,
176+
filter: Optional[Dict[str, object]] | NotGiven = NOT_GIVEN,
182177
precise_responses: bool | NotGiven = NOT_GIVEN,
183178
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
184179
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -265,7 +260,7 @@ async def top_documents(
265260
collection_name: str,
266261
k: int,
267262
query: str,
268-
filter: Optional[StrJsonParam] | NotGiven = NOT_GIVEN,
263+
filter: Optional[Dict[str, object]] | NotGiven = NOT_GIVEN,
269264
include_metadata: bool | NotGiven = NOT_GIVEN,
270265
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
271266
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -325,7 +320,7 @@ async def top_pages(
325320
collection_name: str,
326321
k: int,
327322
query: str,
328-
filter: Optional[StrJsonParam] | NotGiven = NOT_GIVEN,
323+
filter: Optional[Dict[str, object]] | NotGiven = NOT_GIVEN,
329324
include_content: bool | NotGiven = NOT_GIVEN,
330325
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
331326
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -384,7 +379,7 @@ async def top_snippets(
384379
collection_name: str,
385380
k: int,
386381
query: str,
387-
filter: Optional[StrJsonParam] | NotGiven = NOT_GIVEN,
382+
filter: Optional[Dict[str, object]] | NotGiven = NOT_GIVEN,
388383
precise_responses: bool | NotGiven = NOT_GIVEN,
389384
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
390385
# The extra values given here take precedence over values defined on the client or passed to this method.

src/zeroentropy/types/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from __future__ import annotations
44

5-
from .str_json_param import StrJsonParam as StrJsonParam
65
from .document_add_params import DocumentAddParams as DocumentAddParams
76
from .collection_add_params import CollectionAddParams as CollectionAddParams
87
from .document_add_response import DocumentAddResponse as DocumentAddResponse

src/zeroentropy/types/query_top_documents_params.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
from __future__ import annotations
44

5-
from typing import Optional
5+
from typing import Dict, Optional
66
from typing_extensions import Required, TypedDict
77

8-
from .str_json_param import StrJsonParam
9-
108
__all__ = ["QueryTopDocumentsParams"]
119

1210

@@ -28,7 +26,7 @@ class QueryTopDocumentsParams(TypedDict, total=False):
2826
be 1 character).
2927
"""
3028

31-
filter: Optional[StrJsonParam]
29+
filter: Optional[Dict[str, object]]
3230
"""The query filter to apply.
3331
3432
Please read [Metadata Filtering](/metadata-filtering) for more information. If

src/zeroentropy/types/query_top_pages_params.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
from __future__ import annotations
44

5-
from typing import Optional
5+
from typing import Dict, Optional
66
from typing_extensions import Required, TypedDict
77

8-
from .str_json_param import StrJsonParam
9-
108
__all__ = ["QueryTopPagesParams"]
119

1210

@@ -28,7 +26,7 @@ class QueryTopPagesParams(TypedDict, total=False):
2826
be 1 character).
2927
"""
3028

31-
filter: Optional[StrJsonParam]
29+
filter: Optional[Dict[str, object]]
3230
"""The query filter to apply.
3331
3432
Please read [Metadata Filtering](/metadata-filtering) for more information. If

src/zeroentropy/types/query_top_snippets_params.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
from __future__ import annotations
44

5-
from typing import Optional
5+
from typing import Dict, Optional
66
from typing_extensions import Required, TypedDict
77

8-
from .str_json_param import StrJsonParam
9-
108
__all__ = ["QueryTopSnippetsParams"]
119

1210

@@ -28,7 +26,7 @@ class QueryTopSnippetsParams(TypedDict, total=False):
2826
be 1 character).
2927
"""
3028

31-
filter: Optional[StrJsonParam]
29+
filter: Optional[Dict[str, object]]
3230
"""The query filter to apply.
3331
3432
Please read [Metadata Filtering](/metadata-filtering) for more information. If

src/zeroentropy/types/str_json_param.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)