|
2 | 2 |
|
3 | 3 | from __future__ import annotations
|
4 | 4 |
|
5 |
| -from typing import Dict, List, Optional |
| 5 | +from typing import Dict, Optional |
6 | 6 |
|
7 | 7 | import httpx
|
8 | 8 |
|
9 |
| -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven |
| 9 | +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr |
10 | 10 | from ..._utils import maybe_transform, async_maybe_transform
|
11 | 11 | from ..._compat import cached_property
|
12 | 12 | from ..._resource import SyncAPIResource, AsyncAPIResource
|
@@ -62,7 +62,7 @@ def with_streaming_response(self) -> BatchResourceWithStreamingResponse:
|
62 | 62 | def archive(
|
63 | 63 | self,
|
64 | 64 | *,
|
65 |
| - message_ids: List[str], |
| 65 | + message_ids: SequenceNotStr[str], |
66 | 66 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
67 | 67 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
68 | 68 | extra_headers: Headers | None = None,
|
@@ -98,7 +98,7 @@ def archive(
|
98 | 98 | def get_content(
|
99 | 99 | self,
|
100 | 100 | *,
|
101 |
| - message_ids: List[str], |
| 101 | + message_ids: SequenceNotStr[str], |
102 | 102 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
103 | 103 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
104 | 104 | extra_headers: Headers | None = None,
|
@@ -135,7 +135,7 @@ def get_content(
|
135 | 135 | def mark_as_interacted(
|
136 | 136 | self,
|
137 | 137 | *,
|
138 |
| - message_ids: List[str], |
| 138 | + message_ids: SequenceNotStr[str], |
139 | 139 | metadata: Optional[Dict[str, object]] | NotGiven = NOT_GIVEN,
|
140 | 140 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
141 | 141 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
@@ -183,7 +183,7 @@ def mark_as_interacted(
|
183 | 183 | def mark_as_read(
|
184 | 184 | self,
|
185 | 185 | *,
|
186 |
| - message_ids: List[str], |
| 186 | + message_ids: SequenceNotStr[str], |
187 | 187 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
188 | 188 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
189 | 189 | extra_headers: Headers | None = None,
|
@@ -219,7 +219,7 @@ def mark_as_read(
|
219 | 219 | def mark_as_seen(
|
220 | 220 | self,
|
221 | 221 | *,
|
222 |
| - message_ids: List[str], |
| 222 | + message_ids: SequenceNotStr[str], |
223 | 223 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
224 | 224 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
225 | 225 | extra_headers: Headers | None = None,
|
@@ -256,7 +256,7 @@ def mark_as_seen(
|
256 | 256 | def mark_as_unread(
|
257 | 257 | self,
|
258 | 258 | *,
|
259 |
| - message_ids: List[str], |
| 259 | + message_ids: SequenceNotStr[str], |
260 | 260 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
261 | 261 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
262 | 262 | extra_headers: Headers | None = None,
|
@@ -293,7 +293,7 @@ def mark_as_unread(
|
293 | 293 | def mark_as_unseen(
|
294 | 294 | self,
|
295 | 295 | *,
|
296 |
| - message_ids: List[str], |
| 296 | + message_ids: SequenceNotStr[str], |
297 | 297 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
298 | 298 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
299 | 299 | extra_headers: Headers | None = None,
|
@@ -330,7 +330,7 @@ def mark_as_unseen(
|
330 | 330 | def unarchive(
|
331 | 331 | self,
|
332 | 332 | *,
|
333 |
| - message_ids: List[str], |
| 333 | + message_ids: SequenceNotStr[str], |
334 | 334 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
335 | 335 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
336 | 336 | extra_headers: Headers | None = None,
|
@@ -388,7 +388,7 @@ def with_streaming_response(self) -> AsyncBatchResourceWithStreamingResponse:
|
388 | 388 | async def archive(
|
389 | 389 | self,
|
390 | 390 | *,
|
391 |
| - message_ids: List[str], |
| 391 | + message_ids: SequenceNotStr[str], |
392 | 392 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
393 | 393 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
394 | 394 | extra_headers: Headers | None = None,
|
@@ -424,7 +424,7 @@ async def archive(
|
424 | 424 | async def get_content(
|
425 | 425 | self,
|
426 | 426 | *,
|
427 |
| - message_ids: List[str], |
| 427 | + message_ids: SequenceNotStr[str], |
428 | 428 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
429 | 429 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
430 | 430 | extra_headers: Headers | None = None,
|
@@ -463,7 +463,7 @@ async def get_content(
|
463 | 463 | async def mark_as_interacted(
|
464 | 464 | self,
|
465 | 465 | *,
|
466 |
| - message_ids: List[str], |
| 466 | + message_ids: SequenceNotStr[str], |
467 | 467 | metadata: Optional[Dict[str, object]] | NotGiven = NOT_GIVEN,
|
468 | 468 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
469 | 469 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
@@ -511,7 +511,7 @@ async def mark_as_interacted(
|
511 | 511 | async def mark_as_read(
|
512 | 512 | self,
|
513 | 513 | *,
|
514 |
| - message_ids: List[str], |
| 514 | + message_ids: SequenceNotStr[str], |
515 | 515 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
516 | 516 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
517 | 517 | extra_headers: Headers | None = None,
|
@@ -549,7 +549,7 @@ async def mark_as_read(
|
549 | 549 | async def mark_as_seen(
|
550 | 550 | self,
|
551 | 551 | *,
|
552 |
| - message_ids: List[str], |
| 552 | + message_ids: SequenceNotStr[str], |
553 | 553 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
554 | 554 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
555 | 555 | extra_headers: Headers | None = None,
|
@@ -588,7 +588,7 @@ async def mark_as_seen(
|
588 | 588 | async def mark_as_unread(
|
589 | 589 | self,
|
590 | 590 | *,
|
591 |
| - message_ids: List[str], |
| 591 | + message_ids: SequenceNotStr[str], |
592 | 592 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
593 | 593 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
594 | 594 | extra_headers: Headers | None = None,
|
@@ -627,7 +627,7 @@ async def mark_as_unread(
|
627 | 627 | async def mark_as_unseen(
|
628 | 628 | self,
|
629 | 629 | *,
|
630 |
| - message_ids: List[str], |
| 630 | + message_ids: SequenceNotStr[str], |
631 | 631 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
632 | 632 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
633 | 633 | extra_headers: Headers | None = None,
|
@@ -666,7 +666,7 @@ async def mark_as_unseen(
|
666 | 666 | async def unarchive(
|
667 | 667 | self,
|
668 | 668 | *,
|
669 |
| - message_ids: List[str], |
| 669 | + message_ids: SequenceNotStr[str], |
670 | 670 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
671 | 671 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
672 | 672 | extra_headers: Headers | None = None,
|
|
0 commit comments