|
2 | 2 |
|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | | -from typing import Dict, List, Union, Optional |
| 5 | +from typing import Dict, Union, Optional |
6 | 6 | from typing_extensions import Literal |
7 | 7 |
|
8 | 8 | import httpx |
|
15 | 15 | connection_list_documents_params, |
16 | 16 | connection_delete_by_provider_params, |
17 | 17 | ) |
18 | | -from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven |
| 18 | +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr |
19 | 19 | from .._utils import maybe_transform, async_maybe_transform |
20 | 20 | from .._compat import cached_property |
21 | 21 | from .._resource import SyncAPIResource, AsyncAPIResource |
@@ -61,7 +61,7 @@ def create( |
61 | 61 | self, |
62 | 62 | provider: Literal["notion", "google-drive", "onedrive"], |
63 | 63 | *, |
64 | | - container_tags: List[str] | NotGiven = NOT_GIVEN, |
| 64 | + container_tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
65 | 65 | document_limit: int | NotGiven = NOT_GIVEN, |
66 | 66 | metadata: Optional[Dict[str, Union[str, float, bool]]] | NotGiven = NOT_GIVEN, |
67 | 67 | redirect_url: str | NotGiven = NOT_GIVEN, |
@@ -106,7 +106,7 @@ def create( |
106 | 106 | def list( |
107 | 107 | self, |
108 | 108 | *, |
109 | | - container_tags: List[str] | NotGiven = NOT_GIVEN, |
| 109 | + container_tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
110 | 110 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
111 | 111 | # The extra values given here take precedence over values defined on the client or passed to this method. |
112 | 112 | extra_headers: Headers | None = None, |
@@ -174,7 +174,7 @@ def delete_by_provider( |
174 | 174 | self, |
175 | 175 | provider: Literal["notion", "google-drive", "onedrive"], |
176 | 176 | *, |
177 | | - container_tags: List[str], |
| 177 | + container_tags: SequenceNotStr[str], |
178 | 178 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
179 | 179 | # The extra values given here take precedence over values defined on the client or passed to this method. |
180 | 180 | extra_headers: Headers | None = None, |
@@ -247,7 +247,7 @@ def get_by_tags( |
247 | 247 | self, |
248 | 248 | provider: Literal["notion", "google-drive", "onedrive"], |
249 | 249 | *, |
250 | | - container_tags: List[str], |
| 250 | + container_tags: SequenceNotStr[str], |
251 | 251 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
252 | 252 | # The extra values given here take precedence over values defined on the client or passed to this method. |
253 | 253 | extra_headers: Headers | None = None, |
@@ -286,7 +286,7 @@ def import_( |
286 | 286 | self, |
287 | 287 | provider: Literal["notion", "google-drive", "onedrive"], |
288 | 288 | *, |
289 | | - container_tags: List[str] | NotGiven = NOT_GIVEN, |
| 289 | + container_tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
290 | 290 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
291 | 291 | # The extra values given here take precedence over values defined on the client or passed to this method. |
292 | 292 | extra_headers: Headers | None = None, |
@@ -324,7 +324,7 @@ def list_documents( |
324 | 324 | self, |
325 | 325 | provider: Literal["notion", "google-drive", "onedrive"], |
326 | 326 | *, |
327 | | - container_tags: List[str] | NotGiven = NOT_GIVEN, |
| 327 | + container_tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
328 | 328 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
329 | 329 | # The extra values given here take precedence over values defined on the client or passed to this method. |
330 | 330 | extra_headers: Headers | None = None, |
@@ -384,7 +384,7 @@ async def create( |
384 | 384 | self, |
385 | 385 | provider: Literal["notion", "google-drive", "onedrive"], |
386 | 386 | *, |
387 | | - container_tags: List[str] | NotGiven = NOT_GIVEN, |
| 387 | + container_tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
388 | 388 | document_limit: int | NotGiven = NOT_GIVEN, |
389 | 389 | metadata: Optional[Dict[str, Union[str, float, bool]]] | NotGiven = NOT_GIVEN, |
390 | 390 | redirect_url: str | NotGiven = NOT_GIVEN, |
@@ -429,7 +429,7 @@ async def create( |
429 | 429 | async def list( |
430 | 430 | self, |
431 | 431 | *, |
432 | | - container_tags: List[str] | NotGiven = NOT_GIVEN, |
| 432 | + container_tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
433 | 433 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
434 | 434 | # The extra values given here take precedence over values defined on the client or passed to this method. |
435 | 435 | extra_headers: Headers | None = None, |
@@ -499,7 +499,7 @@ async def delete_by_provider( |
499 | 499 | self, |
500 | 500 | provider: Literal["notion", "google-drive", "onedrive"], |
501 | 501 | *, |
502 | | - container_tags: List[str], |
| 502 | + container_tags: SequenceNotStr[str], |
503 | 503 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
504 | 504 | # The extra values given here take precedence over values defined on the client or passed to this method. |
505 | 505 | extra_headers: Headers | None = None, |
@@ -572,7 +572,7 @@ async def get_by_tags( |
572 | 572 | self, |
573 | 573 | provider: Literal["notion", "google-drive", "onedrive"], |
574 | 574 | *, |
575 | | - container_tags: List[str], |
| 575 | + container_tags: SequenceNotStr[str], |
576 | 576 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
577 | 577 | # The extra values given here take precedence over values defined on the client or passed to this method. |
578 | 578 | extra_headers: Headers | None = None, |
@@ -611,7 +611,7 @@ async def import_( |
611 | 611 | self, |
612 | 612 | provider: Literal["notion", "google-drive", "onedrive"], |
613 | 613 | *, |
614 | | - container_tags: List[str] | NotGiven = NOT_GIVEN, |
| 614 | + container_tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
615 | 615 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
616 | 616 | # The extra values given here take precedence over values defined on the client or passed to this method. |
617 | 617 | extra_headers: Headers | None = None, |
@@ -651,7 +651,7 @@ async def list_documents( |
651 | 651 | self, |
652 | 652 | provider: Literal["notion", "google-drive", "onedrive"], |
653 | 653 | *, |
654 | | - container_tags: List[str] | NotGiven = NOT_GIVEN, |
| 654 | + container_tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
655 | 655 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
656 | 656 | # The extra values given here take precedence over values defined on the client or passed to this method. |
657 | 657 | extra_headers: Headers | None = None, |
|
0 commit comments