@chykalophia/clickup-mcp-server 3.2.0

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.
Files changed (211) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +467 -0
  3. package/bin/clickup-mcp-server-ai.js +9 -0
  4. package/bin/clickup-mcp-server-basic.js +9 -0
  5. package/bin/clickup-mcp-server-efficiency.js +9 -0
  6. package/bin/clickup-mcp-server-enhanced.js +9 -0
  7. package/build/app.d.ts +1 -0
  8. package/build/app.js +2 -0
  9. package/build/app.js.map +1 -0
  10. package/build/clickup-client/attachments-enhanced.d.ts +128 -0
  11. package/build/clickup-client/attachments-enhanced.js +212 -0
  12. package/build/clickup-client/attachments-enhanced.js.map +1 -0
  13. package/build/clickup-client/auth.d.ts +254 -0
  14. package/build/clickup-client/auth.js +105 -0
  15. package/build/clickup-client/auth.js.map +1 -0
  16. package/build/clickup-client/chat-enhanced.d.ts +141 -0
  17. package/build/clickup-client/chat-enhanced.js +196 -0
  18. package/build/clickup-client/chat-enhanced.js.map +1 -0
  19. package/build/clickup-client/checklists.d.ts +87 -0
  20. package/build/clickup-client/checklists.js +63 -0
  21. package/build/clickup-client/checklists.js.map +1 -0
  22. package/build/clickup-client/comments-enhanced.d.ts +176 -0
  23. package/build/clickup-client/comments-enhanced.js +230 -0
  24. package/build/clickup-client/comments-enhanced.js.map +1 -0
  25. package/build/clickup-client/comments.d.ts +173 -0
  26. package/build/clickup-client/comments.js +312 -0
  27. package/build/clickup-client/comments.js.map +1 -0
  28. package/build/clickup-client/custom-fields-enhanced.d.ts +286 -0
  29. package/build/clickup-client/custom-fields-enhanced.js +416 -0
  30. package/build/clickup-client/custom-fields-enhanced.js.map +1 -0
  31. package/build/clickup-client/dependencies-enhanced.d.ts +144 -0
  32. package/build/clickup-client/dependencies-enhanced.js +142 -0
  33. package/build/clickup-client/dependencies-enhanced.js.map +1 -0
  34. package/build/clickup-client/docs-enhanced.d.ts +176 -0
  35. package/build/clickup-client/docs-enhanced.js +374 -0
  36. package/build/clickup-client/docs-enhanced.js.map +1 -0
  37. package/build/clickup-client/docs.d.ts +84 -0
  38. package/build/clickup-client/docs.js +156 -0
  39. package/build/clickup-client/docs.js.map +1 -0
  40. package/build/clickup-client/folders.d.ts +62 -0
  41. package/build/clickup-client/folders.js +53 -0
  42. package/build/clickup-client/folders.js.map +1 -0
  43. package/build/clickup-client/goals-enhanced.d.ts +163 -0
  44. package/build/clickup-client/goals-enhanced.js +309 -0
  45. package/build/clickup-client/goals-enhanced.js.map +1 -0
  46. package/build/clickup-client/index.d.ts +16 -0
  47. package/build/clickup-client/index.js +61 -0
  48. package/build/clickup-client/index.js.map +1 -0
  49. package/build/clickup-client/lists.d.ts +105 -0
  50. package/build/clickup-client/lists.js +108 -0
  51. package/build/clickup-client/lists.js.map +1 -0
  52. package/build/clickup-client/secure-client.d.ts +88 -0
  53. package/build/clickup-client/secure-client.js +275 -0
  54. package/build/clickup-client/secure-client.js.map +1 -0
  55. package/build/clickup-client/spaces.d.ts +58 -0
  56. package/build/clickup-client/spaces.js +28 -0
  57. package/build/clickup-client/spaces.js.map +1 -0
  58. package/build/clickup-client/tasks.d.ts +161 -0
  59. package/build/clickup-client/tasks.js +99 -0
  60. package/build/clickup-client/tasks.js.map +1 -0
  61. package/build/clickup-client/time-tracking-enhanced.d.ts +153 -0
  62. package/build/clickup-client/time-tracking-enhanced.js +292 -0
  63. package/build/clickup-client/time-tracking-enhanced.js.map +1 -0
  64. package/build/clickup-client/views-enhanced.d.ts +149 -0
  65. package/build/clickup-client/views-enhanced.js +210 -0
  66. package/build/clickup-client/views-enhanced.js.map +1 -0
  67. package/build/clickup-client/webhooks-enhanced.d.ts +119 -0
  68. package/build/clickup-client/webhooks-enhanced.js +169 -0
  69. package/build/clickup-client/webhooks-enhanced.js.map +1 -0
  70. package/build/controllers/lists.controller.d.ts +1 -0
  71. package/build/controllers/lists.controller.js +2 -0
  72. package/build/controllers/lists.controller.js.map +1 -0
  73. package/build/index-efficiency-simple.d.ts +2 -0
  74. package/build/index-efficiency-simple.js +379 -0
  75. package/build/index-efficiency-simple.js.map +1 -0
  76. package/build/index-enhanced-efficiency.d.ts +2 -0
  77. package/build/index-enhanced-efficiency.js +275 -0
  78. package/build/index-enhanced-efficiency.js.map +1 -0
  79. package/build/index-enhanced.d.ts +2 -0
  80. package/build/index-enhanced.js +74 -0
  81. package/build/index-enhanced.js.map +1 -0
  82. package/build/index.d.ts +2 -0
  83. package/build/index.js +77 -0
  84. package/build/index.js.map +1 -0
  85. package/build/resources/checklist-resources.d.ts +2 -0
  86. package/build/resources/checklist-resources.js +102 -0
  87. package/build/resources/checklist-resources.js.map +1 -0
  88. package/build/resources/comment-resources.d.ts +2 -0
  89. package/build/resources/comment-resources.js +152 -0
  90. package/build/resources/comment-resources.js.map +1 -0
  91. package/build/resources/doc-resources.d.ts +2 -0
  92. package/build/resources/doc-resources.js +77 -0
  93. package/build/resources/doc-resources.js.map +1 -0
  94. package/build/resources/folder-resources.d.ts +2 -0
  95. package/build/resources/folder-resources.js +160 -0
  96. package/build/resources/folder-resources.js.map +1 -0
  97. package/build/resources/list-resources.d.ts +2 -0
  98. package/build/resources/list-resources.js +104 -0
  99. package/build/resources/list-resources.js.map +1 -0
  100. package/build/resources/space-resources.d.ts +2 -0
  101. package/build/resources/space-resources.js +104 -0
  102. package/build/resources/space-resources.js.map +1 -0
  103. package/build/resources/task-resources.d.ts +2 -0
  104. package/build/resources/task-resources.js +57 -0
  105. package/build/resources/task-resources.js.map +1 -0
  106. package/build/routes/lists.routes.d.ts +1 -0
  107. package/build/routes/lists.routes.js +2 -0
  108. package/build/routes/lists.routes.js.map +1 -0
  109. package/build/schemas/attachments-schemas.d.ts +201 -0
  110. package/build/schemas/attachments-schemas.js +250 -0
  111. package/build/schemas/attachments-schemas.js.map +1 -0
  112. package/build/schemas/chat-schemas.d.ts +478 -0
  113. package/build/schemas/chat-schemas.js +173 -0
  114. package/build/schemas/chat-schemas.js.map +1 -0
  115. package/build/schemas/custom-field-schemas.d.ts +1617 -0
  116. package/build/schemas/custom-field-schemas.js +384 -0
  117. package/build/schemas/custom-field-schemas.js.map +1 -0
  118. package/build/schemas/dependencies-schemas.d.ts +274 -0
  119. package/build/schemas/dependencies-schemas.js +176 -0
  120. package/build/schemas/dependencies-schemas.js.map +1 -0
  121. package/build/schemas/document-schemas.d.ts +433 -0
  122. package/build/schemas/document-schemas.js +168 -0
  123. package/build/schemas/document-schemas.js.map +1 -0
  124. package/build/schemas/goals-schemas.d.ts +961 -0
  125. package/build/schemas/goals-schemas.js +293 -0
  126. package/build/schemas/goals-schemas.js.map +1 -0
  127. package/build/schemas/time-tracking-schemas.d.ts +741 -0
  128. package/build/schemas/time-tracking-schemas.js +234 -0
  129. package/build/schemas/time-tracking-schemas.js.map +1 -0
  130. package/build/schemas/views-schemas.d.ts +1168 -0
  131. package/build/schemas/views-schemas.js +221 -0
  132. package/build/schemas/views-schemas.js.map +1 -0
  133. package/build/schemas/webhook-schemas.d.ts +1127 -0
  134. package/build/schemas/webhook-schemas.js +137 -0
  135. package/build/schemas/webhook-schemas.js.map +1 -0
  136. package/build/services/lists.service.d.ts +1 -0
  137. package/build/services/lists.service.js +2 -0
  138. package/build/services/lists.service.js.map +1 -0
  139. package/build/tools/attachments-tools-setup.d.ts +2 -0
  140. package/build/tools/attachments-tools-setup.js +387 -0
  141. package/build/tools/attachments-tools-setup.js.map +1 -0
  142. package/build/tools/chat-tools-enhanced.d.ts +5 -0
  143. package/build/tools/chat-tools-enhanced.js +396 -0
  144. package/build/tools/chat-tools-enhanced.js.map +1 -0
  145. package/build/tools/chat-tools.d.ts +2 -0
  146. package/build/tools/chat-tools.js +614 -0
  147. package/build/tools/chat-tools.js.map +1 -0
  148. package/build/tools/checklist-tools.d.ts +2 -0
  149. package/build/tools/checklist-tools.js +139 -0
  150. package/build/tools/checklist-tools.js.map +1 -0
  151. package/build/tools/comment-tools.d.ts +2 -0
  152. package/build/tools/comment-tools.js +295 -0
  153. package/build/tools/comment-tools.js.map +1 -0
  154. package/build/tools/custom-field-tools.d.ts +2 -0
  155. package/build/tools/custom-field-tools.js +578 -0
  156. package/build/tools/custom-field-tools.js.map +1 -0
  157. package/build/tools/dependencies-tools-setup.d.ts +2 -0
  158. package/build/tools/dependencies-tools-setup.js +319 -0
  159. package/build/tools/dependencies-tools-setup.js.map +1 -0
  160. package/build/tools/doc-tools-enhanced.d.ts +2 -0
  161. package/build/tools/doc-tools-enhanced.js +417 -0
  162. package/build/tools/doc-tools-enhanced.js.map +1 -0
  163. package/build/tools/doc-tools.d.ts +2 -0
  164. package/build/tools/doc-tools.js +109 -0
  165. package/build/tools/doc-tools.js.map +1 -0
  166. package/build/tools/goals-tools.d.ts +2 -0
  167. package/build/tools/goals-tools.js +422 -0
  168. package/build/tools/goals-tools.js.map +1 -0
  169. package/build/tools/helper-tools.d.ts +2 -0
  170. package/build/tools/helper-tools.js +363 -0
  171. package/build/tools/helper-tools.js.map +1 -0
  172. package/build/tools/space-tools.d.ts +2 -0
  173. package/build/tools/space-tools.js +45 -0
  174. package/build/tools/space-tools.js.map +1 -0
  175. package/build/tools/task-tools.d.ts +2 -0
  176. package/build/tools/task-tools.js +415 -0
  177. package/build/tools/task-tools.js.map +1 -0
  178. package/build/tools/time-tracking-tools.d.ts +2 -0
  179. package/build/tools/time-tracking-tools.js +329 -0
  180. package/build/tools/time-tracking-tools.js.map +1 -0
  181. package/build/tools/views-tools-setup.d.ts +2 -0
  182. package/build/tools/views-tools-setup.js +358 -0
  183. package/build/tools/views-tools-setup.js.map +1 -0
  184. package/build/tools/webhook-tools-setup.d.ts +2 -0
  185. package/build/tools/webhook-tools-setup.js +304 -0
  186. package/build/tools/webhook-tools-setup.js.map +1 -0
  187. package/build/tools/webhook-tools.d.ts +4 -0
  188. package/build/tools/webhook-tools.js +345 -0
  189. package/build/tools/webhook-tools.js.map +1 -0
  190. package/build/utils/clickup-comment-formatter.d.ts +124 -0
  191. package/build/utils/clickup-comment-formatter.js +504 -0
  192. package/build/utils/clickup-comment-formatter.js.map +1 -0
  193. package/build/utils/context-aware-suggestions.d.ts +45 -0
  194. package/build/utils/context-aware-suggestions.js +360 -0
  195. package/build/utils/context-aware-suggestions.js.map +1 -0
  196. package/build/utils/error-handling.d.ts +140 -0
  197. package/build/utils/error-handling.js +392 -0
  198. package/build/utils/error-handling.js.map +1 -0
  199. package/build/utils/markdown-styling.d.ts +40 -0
  200. package/build/utils/markdown-styling.js +344 -0
  201. package/build/utils/markdown-styling.js.map +1 -0
  202. package/build/utils/markdown.d.ts +54 -0
  203. package/build/utils/markdown.js +243 -0
  204. package/build/utils/markdown.js.map +1 -0
  205. package/build/utils/security.d.ts +79 -0
  206. package/build/utils/security.js +303 -0
  207. package/build/utils/security.js.map +1 -0
  208. package/build/utils/tool-efficiency.d.ts +59 -0
  209. package/build/utils/tool-efficiency.js +247 -0
  210. package/build/utils/tool-efficiency.js.map +1 -0
  211. package/package.json +130 -0
@@ -0,0 +1,141 @@
1
+ import type { CreateChannelRequest, CreateChannelOnParentRequest, CreateDirectMessageRequest, UpdateChannelRequest, GetChannelsFilter, SendMessageRequest, UpdateMessageRequest, CreateReplyRequest, GetMessagesFilter, GetRepliesFilter, CreateReactionRequest, DeleteReactionRequest, AddChannelMemberRequest, RemoveChannelMemberRequest, ChatChannel, ChatMessage, ChatReaction, ChatMember } from '../schemas/chat-schemas.js';
2
+ export interface ChatChannelsResponse {
3
+ channels: ChatChannel[];
4
+ }
5
+ export interface ChatMessagesResponse {
6
+ messages: ChatMessage[];
7
+ has_more: boolean;
8
+ next_cursor?: string;
9
+ }
10
+ export interface ChatRepliesResponse {
11
+ replies: ChatMessage[];
12
+ has_more: boolean;
13
+ next_cursor?: string;
14
+ }
15
+ export interface ChatReactionsResponse {
16
+ reactions: ChatReaction[];
17
+ }
18
+ export interface ChatMembersResponse {
19
+ members: ChatMember[];
20
+ }
21
+ export interface ChatFollowersResponse {
22
+ followers: ChatMember[];
23
+ }
24
+ export interface TaggedUsersResponse {
25
+ tagged_users: {
26
+ id: number;
27
+ username: string;
28
+ email: string;
29
+ color: string;
30
+ profilePicture?: string;
31
+ }[];
32
+ }
33
+ export declare class ChatEnhancedClient {
34
+ private client;
35
+ constructor(apiToken: string);
36
+ /**
37
+ * Retrieve all channels in a workspace
38
+ */
39
+ getChannels(filter: GetChannelsFilter): Promise<ChatChannelsResponse>;
40
+ /**
41
+ * Create a new channel in a workspace
42
+ */
43
+ createChannel(request: CreateChannelRequest): Promise<ChatChannel>;
44
+ /**
45
+ * Create a channel on a specific space, folder, or list
46
+ */
47
+ createChannelOnParent(request: CreateChannelOnParentRequest): Promise<ChatChannel>;
48
+ /**
49
+ * Create a direct message channel
50
+ */
51
+ createDirectMessage(request: CreateDirectMessageRequest): Promise<ChatChannel>;
52
+ /**
53
+ * Get a single channel by ID
54
+ */
55
+ getChannel(channelId: string): Promise<ChatChannel>;
56
+ /**
57
+ * Update a channel
58
+ */
59
+ updateChannel(request: UpdateChannelRequest): Promise<ChatChannel>;
60
+ /**
61
+ * Delete a channel (NOT IMPLEMENTED - too dangerous as per instructions)
62
+ */
63
+ /**
64
+ * Get channel followers
65
+ */
66
+ getChannelFollowers(channelId: string): Promise<ChatFollowersResponse>;
67
+ /**
68
+ * Get channel members
69
+ */
70
+ getChannelMembers(channelId: string): Promise<ChatMembersResponse>;
71
+ /**
72
+ * Add member to channel
73
+ */
74
+ addChannelMember(request: AddChannelMemberRequest): Promise<void>;
75
+ /**
76
+ * Remove member from channel
77
+ */
78
+ removeChannelMember(request: RemoveChannelMemberRequest): Promise<void>;
79
+ /**
80
+ * Get messages from a channel
81
+ */
82
+ getChannelMessages(filter: GetMessagesFilter): Promise<ChatMessagesResponse>;
83
+ /**
84
+ * Send a message to a channel
85
+ */
86
+ sendMessage(request: SendMessageRequest): Promise<ChatMessage>;
87
+ /**
88
+ * Update a message
89
+ */
90
+ updateMessage(request: UpdateMessageRequest): Promise<ChatMessage>;
91
+ /**
92
+ * Delete a message
93
+ */
94
+ deleteMessage(channelId: string, messageId: string): Promise<void>;
95
+ /**
96
+ * Get replies to a message
97
+ */
98
+ getMessageReplies(filter: GetRepliesFilter): Promise<ChatRepliesResponse>;
99
+ /**
100
+ * Create a reply to a message
101
+ */
102
+ createReply(request: CreateReplyRequest): Promise<ChatMessage>;
103
+ /**
104
+ * Get reactions for a message
105
+ */
106
+ getMessageReactions(channelId: string, messageId: string): Promise<ChatReactionsResponse>;
107
+ /**
108
+ * Create a reaction on a message
109
+ */
110
+ createReaction(request: CreateReactionRequest): Promise<void>;
111
+ /**
112
+ * Delete a reaction from a message
113
+ */
114
+ deleteReaction(request: DeleteReactionRequest): Promise<void>;
115
+ /**
116
+ * Get tagged users for a message
117
+ */
118
+ getTaggedUsers(channelId: string, messageId: string): Promise<TaggedUsersResponse>;
119
+ /**
120
+ * Search channels by name
121
+ */
122
+ searchChannels(workspaceId: string, query: string): Promise<ChatChannelsResponse>;
123
+ /**
124
+ * Get channel statistics
125
+ */
126
+ getChannelStats(channelId: string): Promise<{
127
+ message_count: number;
128
+ member_count: number;
129
+ last_activity: string;
130
+ }>;
131
+ /**
132
+ * Mark channel as read
133
+ */
134
+ markChannelAsRead(channelId: string): Promise<void>;
135
+ /**
136
+ * Get unread message count for channel
137
+ */
138
+ getUnreadCount(channelId: string): Promise<{
139
+ unread_count: number;
140
+ }>;
141
+ }
@@ -0,0 +1,196 @@
1
+ import { ClickUpClient } from './index.js';
2
+ export class ChatEnhancedClient {
3
+ constructor(apiToken) {
4
+ this.client = new ClickUpClient({ apiToken });
5
+ }
6
+ // ========================================
7
+ // CHANNEL MANAGEMENT
8
+ // ========================================
9
+ /**
10
+ * Retrieve all channels in a workspace
11
+ */
12
+ async getChannels(filter) {
13
+ const params = {};
14
+ if (filter.archived !== undefined)
15
+ params.archived = filter.archived;
16
+ if (filter.type)
17
+ params.type = filter.type;
18
+ return this.client.get(`/team/${filter.workspace_id}/chat/channels`, params);
19
+ }
20
+ /**
21
+ * Create a new channel in a workspace
22
+ */
23
+ async createChannel(request) {
24
+ const { workspace_id, ...channelData } = request;
25
+ return this.client.post(`/team/${workspace_id}/chat/channel`, channelData);
26
+ }
27
+ /**
28
+ * Create a channel on a specific space, folder, or list
29
+ */
30
+ async createChannelOnParent(request) {
31
+ const { parent_id, parent_type, ...channelData } = request;
32
+ return this.client.post(`/${parent_type}/${parent_id}/chat/channel`, channelData);
33
+ }
34
+ /**
35
+ * Create a direct message channel
36
+ */
37
+ async createDirectMessage(request) {
38
+ const { workspace_id, ...dmData } = request;
39
+ return this.client.post(`/team/${workspace_id}/chat/dm`, dmData);
40
+ }
41
+ /**
42
+ * Get a single channel by ID
43
+ */
44
+ async getChannel(channelId) {
45
+ return this.client.get(`/chat/channel/${channelId}`);
46
+ }
47
+ /**
48
+ * Update a channel
49
+ */
50
+ async updateChannel(request) {
51
+ const { channel_id, ...updateData } = request;
52
+ return this.client.patch(`/chat/channel/${channel_id}`, updateData);
53
+ }
54
+ /**
55
+ * Delete a channel (NOT IMPLEMENTED - too dangerous as per instructions)
56
+ */
57
+ // async deleteChannel(channelId: string): Promise<void> {
58
+ // return this.client.delete(`/chat/channel/${channelId}`);
59
+ // }
60
+ // ========================================
61
+ // CHANNEL MEMBERS & FOLLOWERS
62
+ // ========================================
63
+ /**
64
+ * Get channel followers
65
+ */
66
+ async getChannelFollowers(channelId) {
67
+ return this.client.get(`/chat/channel/${channelId}/followers`);
68
+ }
69
+ /**
70
+ * Get channel members
71
+ */
72
+ async getChannelMembers(channelId) {
73
+ return this.client.get(`/chat/channel/${channelId}/members`);
74
+ }
75
+ /**
76
+ * Add member to channel
77
+ */
78
+ async addChannelMember(request) {
79
+ const { channel_id, user_id } = request;
80
+ return this.client.post(`/chat/channel/${channel_id}/member/${user_id}`, {});
81
+ }
82
+ /**
83
+ * Remove member from channel
84
+ */
85
+ async removeChannelMember(request) {
86
+ const { channel_id, user_id } = request;
87
+ return this.client.delete(`/chat/channel/${channel_id}/member/${user_id}`);
88
+ }
89
+ // ========================================
90
+ // MESSAGE MANAGEMENT
91
+ // ========================================
92
+ /**
93
+ * Get messages from a channel
94
+ */
95
+ async getChannelMessages(filter) {
96
+ const { channel_id, ...params } = filter;
97
+ return this.client.get(`/chat/channel/${channel_id}/messages`, params);
98
+ }
99
+ /**
100
+ * Send a message to a channel
101
+ */
102
+ async sendMessage(request) {
103
+ const { channel_id, ...messageData } = request;
104
+ return this.client.post(`/chat/channel/${channel_id}/message`, messageData);
105
+ }
106
+ /**
107
+ * Update a message
108
+ */
109
+ async updateMessage(request) {
110
+ const { channel_id, message_id, ...updateData } = request;
111
+ return this.client.patch(`/chat/channel/${channel_id}/message/${message_id}`, updateData);
112
+ }
113
+ /**
114
+ * Delete a message
115
+ */
116
+ async deleteMessage(channelId, messageId) {
117
+ return this.client.delete(`/chat/channel/${channelId}/message/${messageId}`);
118
+ }
119
+ // ========================================
120
+ // MESSAGE REPLIES
121
+ // ========================================
122
+ /**
123
+ * Get replies to a message
124
+ */
125
+ async getMessageReplies(filter) {
126
+ const { channel_id, message_id, ...params } = filter;
127
+ return this.client.get(`/chat/channel/${channel_id}/message/${message_id}/replies`, params);
128
+ }
129
+ /**
130
+ * Create a reply to a message
131
+ */
132
+ async createReply(request) {
133
+ const { channel_id, message_id, ...replyData } = request;
134
+ return this.client.post(`/chat/channel/${channel_id}/message/${message_id}/reply`, replyData);
135
+ }
136
+ // ========================================
137
+ // MESSAGE REACTIONS
138
+ // ========================================
139
+ /**
140
+ * Get reactions for a message
141
+ */
142
+ async getMessageReactions(channelId, messageId) {
143
+ return this.client.get(`/chat/channel/${channelId}/message/${messageId}/reactions`);
144
+ }
145
+ /**
146
+ * Create a reaction on a message
147
+ */
148
+ async createReaction(request) {
149
+ const { channel_id, message_id, reaction } = request;
150
+ return this.client.post(`/chat/channel/${channel_id}/message/${message_id}/reaction/${reaction}`, {});
151
+ }
152
+ /**
153
+ * Delete a reaction from a message
154
+ */
155
+ async deleteReaction(request) {
156
+ const { channel_id, message_id, reaction } = request;
157
+ return this.client.delete(`/chat/channel/${channel_id}/message/${message_id}/reaction/${reaction}`);
158
+ }
159
+ // ========================================
160
+ // TAGGED USERS
161
+ // ========================================
162
+ /**
163
+ * Get tagged users for a message
164
+ */
165
+ async getTaggedUsers(channelId, messageId) {
166
+ return this.client.get(`/chat/channel/${channelId}/message/${messageId}/tagged`);
167
+ }
168
+ // ========================================
169
+ // UTILITY METHODS
170
+ // ========================================
171
+ /**
172
+ * Search channels by name
173
+ */
174
+ async searchChannels(workspaceId, query) {
175
+ return this.client.get(`/team/${workspaceId}/chat/channels`, { search: query });
176
+ }
177
+ /**
178
+ * Get channel statistics
179
+ */
180
+ async getChannelStats(channelId) {
181
+ return this.client.get(`/chat/channel/${channelId}/stats`);
182
+ }
183
+ /**
184
+ * Mark channel as read
185
+ */
186
+ async markChannelAsRead(channelId) {
187
+ return this.client.post(`/chat/channel/${channelId}/read`, {});
188
+ }
189
+ /**
190
+ * Get unread message count for channel
191
+ */
192
+ async getUnreadCount(channelId) {
193
+ return this.client.get(`/chat/channel/${channelId}/unread`);
194
+ }
195
+ }
196
+ //# sourceMappingURL=chat-enhanced.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-enhanced.js","sourceRoot":"","sources":["../../src/clickup-client/chat-enhanced.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AA4D3C,MAAM,OAAO,kBAAkB;IAG7B,YAAY,QAAgB;QAC1B,IAAI,CAAC,MAAM,GAAG,IAAI,aAAa,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IAChD,CAAC;IAED,2CAA2C;IAC3C,qBAAqB;IACrB,2CAA2C;IAE3C;;OAEG;IACH,KAAK,CAAC,WAAW,CAAC,MAAyB;QACzC,MAAM,MAAM,GAAQ,EAAE,CAAC;QACvB,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS;YAAE,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,QA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BAAiB,SAAS,OAAO,EAAE,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,cAAc,CAAC,SAAiB;QACpC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,iBAAiB,SAAS,SAAS,CAAC,CAAC;IAC9D,CAAC;CACF"}
@@ -0,0 +1,87 @@
1
+ import { ClickUpClient } from './index.js';
2
+ export interface ChecklistItem {
3
+ id: string;
4
+ name: string;
5
+ orderindex: number;
6
+ resolved: boolean;
7
+ assignee: {
8
+ id: number;
9
+ username: string;
10
+ email: string;
11
+ } | null;
12
+ parent: string | null;
13
+ }
14
+ export interface Checklist {
15
+ id: string;
16
+ task_id: string;
17
+ name: string;
18
+ orderindex: number;
19
+ items: ChecklistItem[];
20
+ }
21
+ export interface CreateChecklistParams {
22
+ name: string;
23
+ }
24
+ export interface UpdateChecklistParams {
25
+ name: string;
26
+ }
27
+ export interface CreateChecklistItemParams {
28
+ name: string;
29
+ assignee?: number;
30
+ resolved?: boolean;
31
+ }
32
+ export interface UpdateChecklistItemParams {
33
+ name?: string;
34
+ assignee?: number;
35
+ resolved?: boolean;
36
+ }
37
+ export declare class ChecklistsClient {
38
+ private client;
39
+ constructor(client: ClickUpClient);
40
+ /**
41
+ * Create a new checklist in a task
42
+ * @param taskId The ID of the task to create the checklist in
43
+ * @param params The checklist parameters
44
+ * @returns The created checklist
45
+ */
46
+ createChecklist(taskId: string, params: CreateChecklistParams): Promise<Checklist>;
47
+ /**
48
+ * Update an existing checklist
49
+ * @param checklistId The ID of the checklist to update
50
+ * @param params The checklist parameters to update
51
+ * @returns The updated checklist
52
+ */
53
+ updateChecklist(checklistId: string, params: UpdateChecklistParams): Promise<Checklist>;
54
+ /**
55
+ * Delete a checklist
56
+ * @param checklistId The ID of the checklist to delete
57
+ * @returns Success message
58
+ */
59
+ deleteChecklist(checklistId: string): Promise<{
60
+ success: boolean;
61
+ }>;
62
+ /**
63
+ * Create a new checklist item in a checklist
64
+ * @param checklistId The ID of the checklist to create the item in
65
+ * @param params The checklist item parameters
66
+ * @returns The created checklist item
67
+ */
68
+ createChecklistItem(checklistId: string, params: CreateChecklistItemParams): Promise<ChecklistItem>;
69
+ /**
70
+ * Update an existing checklist item
71
+ * @param checklistId The ID of the checklist containing the item
72
+ * @param checklistItemId The ID of the checklist item to update
73
+ * @param params The checklist item parameters to update
74
+ * @returns The updated checklist item
75
+ */
76
+ updateChecklistItem(checklistId: string, checklistItemId: string, params: UpdateChecklistItemParams): Promise<ChecklistItem>;
77
+ /**
78
+ * Delete a checklist item
79
+ * @param checklistId The ID of the checklist containing the item
80
+ * @param checklistItemId The ID of the checklist item to delete
81
+ * @returns Success message
82
+ */
83
+ deleteChecklistItem(checklistId: string, checklistItemId: string): Promise<{
84
+ success: boolean;
85
+ }>;
86
+ }
87
+ export declare const createChecklistsClient: (client: ClickUpClient) => ChecklistsClient;
@@ -0,0 +1,63 @@
1
+ export class ChecklistsClient {
2
+ constructor(client) {
3
+ this.client = client;
4
+ }
5
+ /**
6
+ * Create a new checklist in a task
7
+ * @param taskId The ID of the task to create the checklist in
8
+ * @param params The checklist parameters
9
+ * @returns The created checklist
10
+ */
11
+ async createChecklist(taskId, params) {
12
+ return this.client.post(`/task/${taskId}/checklist`, params);
13
+ }
14
+ /**
15
+ * Update an existing checklist
16
+ * @param checklistId The ID of the checklist to update
17
+ * @param params The checklist parameters to update
18
+ * @returns The updated checklist
19
+ */
20
+ async updateChecklist(checklistId, params) {
21
+ return this.client.put(`/checklist/${checklistId}`, params);
22
+ }
23
+ /**
24
+ * Delete a checklist
25
+ * @param checklistId The ID of the checklist to delete
26
+ * @returns Success message
27
+ */
28
+ async deleteChecklist(checklistId) {
29
+ return this.client.delete(`/checklist/${checklistId}`);
30
+ }
31
+ /**
32
+ * Create a new checklist item in a checklist
33
+ * @param checklistId The ID of the checklist to create the item in
34
+ * @param params The checklist item parameters
35
+ * @returns The created checklist item
36
+ */
37
+ async createChecklistItem(checklistId, params) {
38
+ return this.client.post(`/checklist/${checklistId}/checklist_item`, params);
39
+ }
40
+ /**
41
+ * Update an existing checklist item
42
+ * @param checklistId The ID of the checklist containing the item
43
+ * @param checklistItemId The ID of the checklist item to update
44
+ * @param params The checklist item parameters to update
45
+ * @returns The updated checklist item
46
+ */
47
+ async updateChecklistItem(checklistId, checklistItemId, params) {
48
+ return this.client.put(`/checklist/${checklistId}/checklist_item/${checklistItemId}`, params);
49
+ }
50
+ /**
51
+ * Delete a checklist item
52
+ * @param checklistId The ID of the checklist containing the item
53
+ * @param checklistItemId The ID of the checklist item to delete
54
+ * @returns Success message
55
+ */
56
+ async deleteChecklistItem(checklistId, checklistItemId) {
57
+ return this.client.delete(`/checklist/${checklistId}/checklist_item/${checklistItemId}`);
58
+ }
59
+ }
60
+ export const createChecklistsClient = (client) => {
61
+ return new ChecklistsClient(client);
62
+ };
63
+ //# sourceMappingURL=checklists.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checklists.js","sourceRoot":"","sources":["../../src/clickup-client/checklists.ts"],"names":[],"mappings":"AA6CA,MAAM,OAAO,gBAAgB;IAG3B,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,eAAe,CAAC,MAAc,EAAE,MAA6B;QACjE,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,MAAM,YAAY,EAAE,MAAM,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,eAAe,CAAC,WAAmB,EAAE,MAA6B;QACtE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,cAAc,WAAW,EAAE,EAAE,MAAM,CAAC,CAAC;IAC9D,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,eAAe,CAAC,WAAmB;QACvC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,cAAc,WAAW,EAAE,CAAC,CAAC;IACzD,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,mBAAmB,CAAC,WAAmB,EAAE,MAAiC;QAC9E,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,WAAW,iBAAiB,EAAE,MAAM,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,mBAAmB,CAAC,WAAmB,EAAE,eAAuB,EAAE,MAAiC;QACvG,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,cAAc,WAAW,mBAAmB,eAAe,EAAE,EAAE,MAAM,CAAC,CAAC;IAChG,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,mBAAmB,CAAC,WAAmB,EAAE,eAAuB;QACpE,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,cAAc,WAAW,mBAAmB,eAAe,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,MAAqB,EAAoB,EAAE;IAChF,OAAO,IAAI,gBAAgB,CAAC,MAAM,CAAC,CAAC;AACtC,CAAC,CAAC"}
@@ -0,0 +1,176 @@
1
+ import { ClickUpClient } from './index.js';
2
+ import { ClickUpCommentBlock } from '../utils/clickup-comment-formatter.js';
3
+ export interface Comment {
4
+ id: string;
5
+ comment: ClickUpCommentBlock[];
6
+ comment_text: string;
7
+ comment_markdown?: string;
8
+ user: {
9
+ id: number;
10
+ username: string;
11
+ email: string;
12
+ color: string;
13
+ profilePicture?: string;
14
+ };
15
+ resolved: boolean;
16
+ assignee?: {
17
+ id: number;
18
+ username: string;
19
+ email: string;
20
+ color: string;
21
+ profilePicture?: string;
22
+ };
23
+ assigned_by?: {
24
+ id: number;
25
+ username: string;
26
+ email: string;
27
+ color: string;
28
+ profilePicture?: string;
29
+ };
30
+ reactions?: {
31
+ [key: string]: {
32
+ count: number;
33
+ users: Array<{
34
+ id: number;
35
+ username: string;
36
+ email: string;
37
+ }>;
38
+ };
39
+ };
40
+ date: string;
41
+ start_date?: string;
42
+ due_date?: string;
43
+ parent?: string;
44
+ replies_count?: number;
45
+ }
46
+ export interface GetTaskCommentsParams {
47
+ start?: number;
48
+ start_id?: string;
49
+ }
50
+ export interface CreateTaskCommentParams {
51
+ comment_text: string;
52
+ assignee?: number;
53
+ notify_all?: boolean;
54
+ }
55
+ export interface GetChatViewCommentsParams {
56
+ start?: number;
57
+ start_id?: string;
58
+ }
59
+ export interface CreateChatViewCommentParams {
60
+ comment_text: string;
61
+ notify_all?: boolean;
62
+ }
63
+ export interface GetListCommentsParams {
64
+ start?: number;
65
+ start_id?: string;
66
+ }
67
+ export interface CreateListCommentParams {
68
+ comment_text: string;
69
+ assignee?: number;
70
+ notify_all?: boolean;
71
+ }
72
+ export interface UpdateCommentParams {
73
+ comment_text: string;
74
+ assignee?: number;
75
+ resolved?: boolean;
76
+ }
77
+ export interface GetThreadedCommentsParams {
78
+ start?: number;
79
+ start_id?: string;
80
+ }
81
+ export interface CreateThreadedCommentParams {
82
+ comment_text: string;
83
+ notify_all?: boolean;
84
+ }
85
+ /**
86
+ * Prepare comment parameters for ClickUp API using structured comment format
87
+ * This uses ClickUp's structured comment array format for proper markdown rendering
88
+ */
89
+ export declare class CommentsEnhancedClient {
90
+ private client;
91
+ constructor(client: ClickUpClient);
92
+ /**
93
+ * Get comments for a specific task
94
+ * @param taskId The ID of the task to get comments for
95
+ * @param params Optional parameters for pagination
96
+ * @returns A list of comments with processed content and markdown representation
97
+ */
98
+ getTaskComments(taskId: string, params?: GetTaskCommentsParams): Promise<{
99
+ comments: Comment[];
100
+ }>;
101
+ /**
102
+ * Create a new comment on a task
103
+ * @param taskId The ID of the task to comment on
104
+ * @param params The comment parameters (supports markdown in comment_text)
105
+ * @returns The created comment with processed content
106
+ */
107
+ /**
108
+ * RAW API TEST - Bypass all processing and send exactly like ClickUp's official example
109
+ */
110
+ createTaskCommentRaw(taskId: string, commentText: string): Promise<any>;
111
+ createTaskComment(taskId: string, params: CreateTaskCommentParams): Promise<Comment>;
112
+ /**
113
+ * Get comments for a chat view
114
+ * @param viewId The ID of the chat view to get comments for
115
+ * @param params Optional parameters for pagination
116
+ * @returns A list of comments with processed content and markdown representation
117
+ */
118
+ getChatViewComments(viewId: string, params?: GetChatViewCommentsParams): Promise<{
119
+ comments: Comment[];
120
+ }>;
121
+ /**
122
+ * Create a new comment on a chat view
123
+ * @param viewId The ID of the chat view to comment on
124
+ * @param params The comment parameters (supports markdown in comment_text)
125
+ * @returns The created comment with processed content
126
+ */
127
+ createChatViewComment(viewId: string, params: CreateChatViewCommentParams): Promise<Comment>;
128
+ /**
129
+ * Get comments for a list
130
+ * @param listId The ID of the list to get comments for
131
+ * @param params Optional parameters for pagination
132
+ * @returns A list of comments with processed content and markdown representation
133
+ */
134
+ getListComments(listId: string, params?: GetListCommentsParams): Promise<{
135
+ comments: Comment[];
136
+ }>;
137
+ /**
138
+ * Create a new comment on a list
139
+ * @param listId The ID of the list to comment on
140
+ * @param params The comment parameters (supports markdown in comment_text)
141
+ * @returns The created comment with processed content
142
+ */
143
+ createListComment(listId: string, params: CreateListCommentParams): Promise<Comment>;
144
+ /**
145
+ * Update an existing comment
146
+ * @param commentId The ID of the comment to update
147
+ * @param params The comment parameters to update (supports markdown in comment_text)
148
+ * @returns The updated comment with processed content
149
+ */
150
+ updateComment(commentId: string, params: UpdateCommentParams): Promise<Comment>;
151
+ /**
152
+ * Delete a comment
153
+ * @param commentId The ID of the comment to delete
154
+ * @returns Success message
155
+ */
156
+ deleteComment(commentId: string): Promise<{
157
+ success: boolean;
158
+ }>;
159
+ /**
160
+ * Get threaded comments for a parent comment
161
+ * @param commentId The ID of the parent comment
162
+ * @param params Optional parameters for pagination
163
+ * @returns A list of threaded comments with processed content and markdown representation
164
+ */
165
+ getThreadedComments(commentId: string, params?: GetThreadedCommentsParams): Promise<{
166
+ comments: Comment[];
167
+ }>;
168
+ /**
169
+ * Create a new threaded comment on a parent comment
170
+ * @param commentId The ID of the parent comment
171
+ * @param params The comment parameters (supports markdown in comment_text)
172
+ * @returns The created threaded comment with processed content
173
+ */
174
+ createThreadedComment(commentId: string, params: CreateThreadedCommentParams): Promise<Comment>;
175
+ }
176
+ export declare const createCommentsEnhancedClient: (client: ClickUpClient) => CommentsEnhancedClient;