mirror of
https://github.com/larksuite/cli.git
synced 2026-07-06 00:06:28 +08:00
Add im +chat-list shortcut wrapping GET /open-apis/im/v1/chats (previously not exposed via lark-cli). Add --exclude-muted to both +chat-search and +chat-list: client-side filter that calls POST /open-apis/im/v1/chat_user_setting/batch_get_mute_status after each page and drops is_muted=true chats. Introduce shortcuts/im/mute_filter.go with pure helpers and an orchestrator (MaybeApplyMuteFilter) shared by both shortcuts. Change-Id: I22221ac5835667f58cbd40b34de75825d2445d1c
27 lines
515 B
Go
27 lines
515 B
Go
// Copyright (c) 2026 Lark Technologies Pte. Ltd.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package im
|
|
|
|
import "github.com/larksuite/cli/shortcuts/common"
|
|
|
|
// Shortcuts returns all im shortcuts.
|
|
func Shortcuts() []common.Shortcut {
|
|
return []common.Shortcut{
|
|
ImChatCreate,
|
|
ImChatList,
|
|
ImChatMessageList,
|
|
ImChatSearch,
|
|
ImChatUpdate,
|
|
ImMessagesMGet,
|
|
ImMessagesReply,
|
|
ImMessagesResourcesDownload,
|
|
ImMessagesSearch,
|
|
ImMessagesSend,
|
|
ImThreadsMessagesList,
|
|
ImFlagCreate,
|
|
ImFlagCancel,
|
|
ImFlagList,
|
|
}
|
|
}
|