|
2 | 2 |
|
3 | 3 | import { APIResource } from '../core/resource'; |
4 | 4 | import * as Shared from './shared'; |
5 | | -import { ChatsBeeperCursor } from './shared'; |
| 5 | +import { ChatsCursor } from './shared'; |
6 | 6 | import { APIPromise } from '../core/api-promise'; |
7 | | -import { BeeperCursor, type BeeperCursorParams, PagePromise } from '../core/pagination'; |
| 7 | +import { Cursor, type CursorParams, PagePromise } from '../core/pagination'; |
8 | 8 | import { RequestOptions } from '../internal/request-options'; |
9 | 9 |
|
10 | 10 | /** |
@@ -56,8 +56,8 @@ export class Chats extends APIResource { |
56 | 56 | search( |
57 | 57 | query: ChatSearchParams | null | undefined = {}, |
58 | 58 | options?: RequestOptions, |
59 | | - ): PagePromise<ChatsBeeperCursor, Shared.Chat> { |
60 | | - return this._client.getAPIList('/v0/search-chats', BeeperCursor<Shared.Chat>, { query, ...options }); |
| 59 | + ): PagePromise<ChatsCursor, Shared.Chat> { |
| 60 | + return this._client.getAPIList('/v0/search-chats', Cursor<Shared.Chat>, { query, ...options }); |
61 | 61 | } |
62 | 62 | } |
63 | 63 |
|
@@ -180,7 +180,7 @@ export interface ChatGetParams { |
180 | 180 | maxParticipantCount?: number | null; |
181 | 181 | } |
182 | 182 |
|
183 | | -export interface ChatSearchParams extends BeeperCursorParams { |
| 183 | +export interface ChatSearchParams extends CursorParams { |
184 | 184 | /** |
185 | 185 | * Provide an array of account IDs to filter chats from specific messaging accounts |
186 | 186 | * only |
@@ -245,4 +245,4 @@ export declare namespace Chats { |
245 | 245 | }; |
246 | 246 | } |
247 | 247 |
|
248 | | -export { type ChatsBeeperCursor }; |
| 248 | +export { type ChatsCursor }; |
0 commit comments