mezon-js 2.16.21 → 2.16.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -325,8 +325,15 @@ export declare class Client {
325
325
  deleteNotiReactMessage(session: ApiSession, channel_id: string): Promise<boolean>;
326
326
  /** query message in elasticsearch */
327
327
  searchMessage(session: ApiSession, request: ApiSearchMessageRequest): Promise<ApiSearchMessageResponse>;
328
- /** Search users and channels for Ctrl+K. */
329
- searchCtrlK(session: ApiSession, request: ApiSearchCtrlKRequest): Promise<ApiSearchCtrlKResponse>;
328
+ /**
329
+ * Search users and channels for Ctrl+K.
330
+ *
331
+ * `options.signal` abandons the call: search-as-you-type supersedes a request
332
+ * on every keystroke, and an abandoned one must not resolve over newer results.
333
+ */
334
+ searchCtrlK(session: ApiSession, request: ApiSearchCtrlKRequest, options?: {
335
+ signal?: AbortSignal;
336
+ }): Promise<ApiSearchCtrlKResponse>;
330
337
  /** Search clan/channel members for @ mention picker. */
331
338
  searchMentionUsers(session: ApiSession, request: ApiSearchMentionUsersRequest): Promise<ApiSearchMentionUsersResponse>;
332
339
  /** Generate a CDN signature for a channel. */