2727 async_to_raw_response_wrapper ,
2828 async_to_streamed_response_wrapper ,
2929)
30- from ...pagination import SyncCursor , AsyncCursor
30+ from ...pagination import SyncCursorList , AsyncCursorList , SyncCursorSearch , AsyncCursorSearch
3131from ...types .chat import Chat
3232from ..._base_client import AsyncPaginator , make_request_options
3333from ...types .chat_list_response import ChatListResponse
@@ -173,14 +173,13 @@ def list(
173173 account_ids : SequenceNotStr [str ] | Omit = omit ,
174174 cursor : str | Omit = omit ,
175175 direction : Literal ["after" , "before" ] | Omit = omit ,
176- limit : int | Omit = omit ,
177176 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
178177 # The extra values given here take precedence over values defined on the client or passed to this method.
179178 extra_headers : Headers | None = None ,
180179 extra_query : Query | None = None ,
181180 extra_body : Body | None = None ,
182181 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
183- ) -> SyncCursor [ChatListResponse ]:
182+ ) -> SyncCursorList [ChatListResponse ]:
184183 """List all chats sorted by last activity (most recent first).
185184
186185 Combines all
@@ -195,8 +194,6 @@ def list(
195194 direction: Pagination direction used with 'cursor': 'before' fetches older results, 'after'
196195 fetches newer results. Defaults to 'before' when only 'cursor' is provided.
197196
198- limit: Maximum number of chats to return (1–200). Defaults to 50.
199-
200197 extra_headers: Send extra headers
201198
202199 extra_query: Add additional query parameters to the request
@@ -207,7 +204,7 @@ def list(
207204 """
208205 return self ._get_api_list (
209206 "/v1/chats" ,
210- page = SyncCursor [ChatListResponse ],
207+ page = SyncCursorList [ChatListResponse ],
211208 options = make_request_options (
212209 extra_headers = extra_headers ,
213210 extra_query = extra_query ,
@@ -218,7 +215,6 @@ def list(
218215 "account_ids" : account_ids ,
219216 "cursor" : cursor ,
220217 "direction" : direction ,
221- "limit" : limit ,
222218 },
223219 chat_list_params .ChatListParams ,
224220 ),
@@ -289,7 +285,7 @@ def search(
289285 extra_query : Query | None = None ,
290286 extra_body : Body | None = None ,
291287 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
292- ) -> SyncCursor [Chat ]:
288+ ) -> SyncCursorSearch [Chat ]:
293289 """
294290 Search chats by title/network or participants using Beeper Desktop's renderer
295291 algorithm.
@@ -338,7 +334,7 @@ def search(
338334 """
339335 return self ._get_api_list (
340336 "/v1/chats/search" ,
341- page = SyncCursor [Chat ],
337+ page = SyncCursorSearch [Chat ],
342338 options = make_request_options (
343339 extra_headers = extra_headers ,
344340 extra_query = extra_query ,
@@ -502,14 +498,13 @@ def list(
502498 account_ids : SequenceNotStr [str ] | Omit = omit ,
503499 cursor : str | Omit = omit ,
504500 direction : Literal ["after" , "before" ] | Omit = omit ,
505- limit : int | Omit = omit ,
506501 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
507502 # The extra values given here take precedence over values defined on the client or passed to this method.
508503 extra_headers : Headers | None = None ,
509504 extra_query : Query | None = None ,
510505 extra_body : Body | None = None ,
511506 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
512- ) -> AsyncPaginator [ChatListResponse , AsyncCursor [ChatListResponse ]]:
507+ ) -> AsyncPaginator [ChatListResponse , AsyncCursorList [ChatListResponse ]]:
513508 """List all chats sorted by last activity (most recent first).
514509
515510 Combines all
@@ -524,8 +519,6 @@ def list(
524519 direction: Pagination direction used with 'cursor': 'before' fetches older results, 'after'
525520 fetches newer results. Defaults to 'before' when only 'cursor' is provided.
526521
527- limit: Maximum number of chats to return (1–200). Defaults to 50.
528-
529522 extra_headers: Send extra headers
530523
531524 extra_query: Add additional query parameters to the request
@@ -536,7 +529,7 @@ def list(
536529 """
537530 return self ._get_api_list (
538531 "/v1/chats" ,
539- page = AsyncCursor [ChatListResponse ],
532+ page = AsyncCursorList [ChatListResponse ],
540533 options = make_request_options (
541534 extra_headers = extra_headers ,
542535 extra_query = extra_query ,
@@ -547,7 +540,6 @@ def list(
547540 "account_ids" : account_ids ,
548541 "cursor" : cursor ,
549542 "direction" : direction ,
550- "limit" : limit ,
551543 },
552544 chat_list_params .ChatListParams ,
553545 ),
@@ -618,7 +610,7 @@ def search(
618610 extra_query : Query | None = None ,
619611 extra_body : Body | None = None ,
620612 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
621- ) -> AsyncPaginator [Chat , AsyncCursor [Chat ]]:
613+ ) -> AsyncPaginator [Chat , AsyncCursorSearch [Chat ]]:
622614 """
623615 Search chats by title/network or participants using Beeper Desktop's renderer
624616 algorithm.
@@ -667,7 +659,7 @@ def search(
667659 """
668660 return self ._get_api_list (
669661 "/v1/chats/search" ,
670- page = AsyncCursor [Chat ],
662+ page = AsyncCursorSearch [Chat ],
671663 options = make_request_options (
672664 extra_headers = extra_headers ,
673665 extra_query = extra_query ,
0 commit comments