@chykalophia/clickup-mcp-server 3.4.0 → 4.1.2

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 (133) hide show
  1. package/build/clickup-client/attachments-enhanced.js +4 -1
  2. package/build/clickup-client/attachments-enhanced.js.map +1 -1
  3. package/build/clickup-client/auth.js.map +1 -1
  4. package/build/clickup-client/chat-enhanced.js +3 -1
  5. package/build/clickup-client/chat-enhanced.js.map +1 -1
  6. package/build/clickup-client/checklists.js.map +1 -1
  7. package/build/clickup-client/comments-enhanced.js +4 -3
  8. package/build/clickup-client/comments-enhanced.js.map +1 -1
  9. package/build/clickup-client/comments.js +2 -1
  10. package/build/clickup-client/comments.js.map +1 -1
  11. package/build/clickup-client/custom-fields-enhanced.js +7 -7
  12. package/build/clickup-client/custom-fields-enhanced.js.map +1 -1
  13. package/build/clickup-client/dependencies-enhanced.js.map +1 -1
  14. package/build/clickup-client/docs-enhanced.d.ts +1 -1
  15. package/build/clickup-client/docs-enhanced.js +35 -7
  16. package/build/clickup-client/docs-enhanced.js.map +1 -1
  17. package/build/clickup-client/docs.js +6 -6
  18. package/build/clickup-client/docs.js.map +1 -1
  19. package/build/clickup-client/folders.js.map +1 -1
  20. package/build/clickup-client/goals-enhanced.js.map +1 -1
  21. package/build/clickup-client/index.js +2 -2
  22. package/build/clickup-client/index.js.map +1 -1
  23. package/build/clickup-client/lists.js.map +1 -1
  24. package/build/clickup-client/secure-client.js +7 -6
  25. package/build/clickup-client/secure-client.js.map +1 -1
  26. package/build/clickup-client/tasks.d.ts +41 -0
  27. package/build/clickup-client/tasks.js +128 -2
  28. package/build/clickup-client/tasks.js.map +1 -1
  29. package/build/clickup-client/time-tracking-enhanced.js +2 -6
  30. package/build/clickup-client/time-tracking-enhanced.js.map +1 -1
  31. package/build/clickup-client/views-enhanced.js.map +1 -1
  32. package/build/clickup-client/webhooks-enhanced.js +4 -3
  33. package/build/clickup-client/webhooks-enhanced.js.map +1 -1
  34. package/build/index-efficiency-simple.js +81 -50
  35. package/build/index-efficiency-simple.js.map +1 -1
  36. package/build/index-enhanced.js +1 -0
  37. package/build/index-enhanced.js.map +1 -1
  38. package/build/index.js +1 -0
  39. package/build/index.js.map +1 -1
  40. package/build/resources/checklist-resources.js +1 -0
  41. package/build/resources/checklist-resources.js.map +1 -1
  42. package/build/resources/comment-resources.js +1 -0
  43. package/build/resources/comment-resources.js.map +1 -1
  44. package/build/resources/doc-resources.js +1 -0
  45. package/build/resources/doc-resources.js.map +1 -1
  46. package/build/resources/folder-resources.js +1 -0
  47. package/build/resources/folder-resources.js.map +1 -1
  48. package/build/resources/list-resources.js +1 -0
  49. package/build/resources/list-resources.js.map +1 -1
  50. package/build/resources/space-resources.js +1 -0
  51. package/build/resources/space-resources.js.map +1 -1
  52. package/build/resources/task-resources.js +1 -0
  53. package/build/resources/task-resources.js.map +1 -1
  54. package/build/schemas/attachments-schemas.js +16 -10
  55. package/build/schemas/attachments-schemas.js.map +1 -1
  56. package/build/schemas/chat-schemas.d.ts +7 -7
  57. package/build/schemas/chat-schemas.js +22 -6
  58. package/build/schemas/chat-schemas.js.map +1 -1
  59. package/build/schemas/custom-field-schemas.d.ts +80 -80
  60. package/build/schemas/custom-field-schemas.js +27 -11
  61. package/build/schemas/custom-field-schemas.js.map +1 -1
  62. package/build/schemas/dependencies-schemas.d.ts +11 -11
  63. package/build/schemas/dependencies-schemas.js +14 -11
  64. package/build/schemas/dependencies-schemas.js.map +1 -1
  65. package/build/schemas/document-schemas.d.ts +14 -14
  66. package/build/schemas/document-schemas.js +38 -14
  67. package/build/schemas/document-schemas.js.map +1 -1
  68. package/build/schemas/goals-schemas.d.ts +50 -50
  69. package/build/schemas/goals-schemas.js +4 -1
  70. package/build/schemas/goals-schemas.js.map +1 -1
  71. package/build/schemas/task-schemas.d.ts +382 -0
  72. package/build/schemas/task-schemas.js +115 -0
  73. package/build/schemas/task-schemas.js.map +1 -0
  74. package/build/schemas/time-tracking-schemas.d.ts +20 -20
  75. package/build/schemas/time-tracking-schemas.js +11 -10
  76. package/build/schemas/time-tracking-schemas.js.map +1 -1
  77. package/build/schemas/views-schemas.d.ts +2 -2
  78. package/build/schemas/views-schemas.js +9 -9
  79. package/build/schemas/views-schemas.js.map +1 -1
  80. package/build/schemas/webhook-schemas.js +3 -3
  81. package/build/schemas/webhook-schemas.js.map +1 -1
  82. package/build/tools/attachments-tools-setup.js +146 -65
  83. package/build/tools/attachments-tools-setup.js.map +1 -1
  84. package/build/tools/chat-tools.js +233 -106
  85. package/build/tools/chat-tools.js.map +1 -1
  86. package/build/tools/checklist-tools.js +13 -5
  87. package/build/tools/checklist-tools.js.map +1 -1
  88. package/build/tools/comment-tools.js +35 -14
  89. package/build/tools/comment-tools.js.map +1 -1
  90. package/build/tools/custom-field-tools.js +192 -67
  91. package/build/tools/custom-field-tools.js.map +1 -1
  92. package/build/tools/dependencies-tools-setup.js +133 -58
  93. package/build/tools/dependencies-tools-setup.js.map +1 -1
  94. package/build/tools/doc-tools-enhanced.js +153 -45
  95. package/build/tools/doc-tools-enhanced.js.map +1 -1
  96. package/build/tools/doc-tools.js +4 -1
  97. package/build/tools/doc-tools.js.map +1 -1
  98. package/build/tools/goals-tools.js +113 -41
  99. package/build/tools/goals-tools.js.map +1 -1
  100. package/build/tools/helper-tools.js +131 -53
  101. package/build/tools/helper-tools.js.map +1 -1
  102. package/build/tools/space-tools.js.map +1 -1
  103. package/build/tools/task-tools.js +501 -21
  104. package/build/tools/task-tools.js.map +1 -1
  105. package/build/tools/test-task-update.d.ts +2 -0
  106. package/build/tools/test-task-update.js +124 -0
  107. package/build/tools/test-task-update.js.map +1 -0
  108. package/build/tools/time-tracking-tools.js +105 -36
  109. package/build/tools/time-tracking-tools.js.map +1 -1
  110. package/build/tools/views-tools-setup.js +124 -61
  111. package/build/tools/views-tools-setup.js.map +1 -1
  112. package/build/tools/webhook-tools-setup.js +175 -72
  113. package/build/tools/webhook-tools-setup.js.map +1 -1
  114. package/build/tools/webhook-tools.js +51 -18
  115. package/build/tools/webhook-tools.js.map +1 -1
  116. package/build/utils/clickup-comment-formatter.js +55 -25
  117. package/build/utils/clickup-comment-formatter.js.map +1 -1
  118. package/build/utils/context-aware-suggestions.js +42 -22
  119. package/build/utils/context-aware-suggestions.js.map +1 -1
  120. package/build/utils/error-handling.js +29 -13
  121. package/build/utils/error-handling.js.map +1 -1
  122. package/build/utils/markdown-styling.js.map +1 -1
  123. package/build/utils/markdown.d.ts +5 -4
  124. package/build/utils/markdown.js +24 -19
  125. package/build/utils/markdown.js.map +1 -1
  126. package/build/utils/security.d.ts +76 -0
  127. package/build/utils/security.js +280 -25
  128. package/build/utils/security.js.map +1 -1
  129. package/build/utils/tool-efficiency.js +21 -12
  130. package/build/utils/tool-efficiency.js.map +1 -1
  131. package/package.json +5 -5
  132. package/LICENSE +0 -21
  133. package/README.md +0 -510
@@ -0,0 +1,382 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Schema for individual task creation in bulk operations
4
+ */
5
+ export declare const BulkCreateTaskItemSchema: z.ZodObject<{
6
+ name: z.ZodString;
7
+ description: z.ZodOptional<z.ZodString>;
8
+ markdown_content: z.ZodOptional<z.ZodString>;
9
+ assignees: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
10
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11
+ status: z.ZodOptional<z.ZodString>;
12
+ priority: z.ZodOptional<z.ZodNumber>;
13
+ due_date: z.ZodOptional<z.ZodNumber>;
14
+ due_date_time: z.ZodOptional<z.ZodBoolean>;
15
+ time_estimate: z.ZodOptional<z.ZodNumber>;
16
+ start_date: z.ZodOptional<z.ZodNumber>;
17
+ start_date_time: z.ZodOptional<z.ZodBoolean>;
18
+ notify_all: z.ZodOptional<z.ZodBoolean>;
19
+ parent: z.ZodOptional<z.ZodString>;
20
+ links_to: z.ZodOptional<z.ZodString>;
21
+ check_required_custom_fields: z.ZodOptional<z.ZodBoolean>;
22
+ custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
23
+ id: z.ZodString;
24
+ value: z.ZodAny;
25
+ }, "strip", z.ZodTypeAny, {
26
+ id: string;
27
+ value?: any;
28
+ }, {
29
+ id: string;
30
+ value?: any;
31
+ }>, "many">>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ name: string;
34
+ description?: string | undefined;
35
+ markdown_content?: string | undefined;
36
+ assignees?: number[] | undefined;
37
+ status?: string | undefined;
38
+ priority?: number | undefined;
39
+ due_date?: number | undefined;
40
+ due_date_time?: boolean | undefined;
41
+ time_estimate?: number | undefined;
42
+ start_date?: number | undefined;
43
+ start_date_time?: boolean | undefined;
44
+ notify_all?: boolean | undefined;
45
+ parent?: string | undefined;
46
+ custom_fields?: {
47
+ id: string;
48
+ value?: any;
49
+ }[] | undefined;
50
+ tags?: string[] | undefined;
51
+ links_to?: string | undefined;
52
+ check_required_custom_fields?: boolean | undefined;
53
+ }, {
54
+ name: string;
55
+ description?: string | undefined;
56
+ markdown_content?: string | undefined;
57
+ assignees?: number[] | undefined;
58
+ status?: string | undefined;
59
+ priority?: number | undefined;
60
+ due_date?: number | undefined;
61
+ due_date_time?: boolean | undefined;
62
+ time_estimate?: number | undefined;
63
+ start_date?: number | undefined;
64
+ start_date_time?: boolean | undefined;
65
+ notify_all?: boolean | undefined;
66
+ parent?: string | undefined;
67
+ custom_fields?: {
68
+ id: string;
69
+ value?: any;
70
+ }[] | undefined;
71
+ tags?: string[] | undefined;
72
+ links_to?: string | undefined;
73
+ check_required_custom_fields?: boolean | undefined;
74
+ }>;
75
+ /**
76
+ * Schema for individual task update in bulk operations
77
+ */
78
+ export declare const BulkUpdateTaskItemSchema: z.ZodObject<{
79
+ task_id: z.ZodString;
80
+ name: z.ZodOptional<z.ZodString>;
81
+ description: z.ZodOptional<z.ZodString>;
82
+ markdown_content: z.ZodOptional<z.ZodString>;
83
+ assignees: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
84
+ status: z.ZodOptional<z.ZodString>;
85
+ priority: z.ZodOptional<z.ZodNumber>;
86
+ due_date: z.ZodOptional<z.ZodNumber>;
87
+ due_date_time: z.ZodOptional<z.ZodBoolean>;
88
+ time_estimate: z.ZodOptional<z.ZodNumber>;
89
+ start_date: z.ZodOptional<z.ZodNumber>;
90
+ start_date_time: z.ZodOptional<z.ZodBoolean>;
91
+ notify_all: z.ZodOptional<z.ZodBoolean>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ task_id: string;
94
+ name?: string | undefined;
95
+ description?: string | undefined;
96
+ markdown_content?: string | undefined;
97
+ assignees?: number[] | undefined;
98
+ status?: string | undefined;
99
+ priority?: number | undefined;
100
+ due_date?: number | undefined;
101
+ due_date_time?: boolean | undefined;
102
+ time_estimate?: number | undefined;
103
+ start_date?: number | undefined;
104
+ start_date_time?: boolean | undefined;
105
+ notify_all?: boolean | undefined;
106
+ }, {
107
+ task_id: string;
108
+ name?: string | undefined;
109
+ description?: string | undefined;
110
+ markdown_content?: string | undefined;
111
+ assignees?: number[] | undefined;
112
+ status?: string | undefined;
113
+ priority?: number | undefined;
114
+ due_date?: number | undefined;
115
+ due_date_time?: boolean | undefined;
116
+ time_estimate?: number | undefined;
117
+ start_date?: number | undefined;
118
+ start_date_time?: boolean | undefined;
119
+ notify_all?: boolean | undefined;
120
+ }>;
121
+ /**
122
+ * Schema for bulk task creation operations
123
+ */
124
+ export declare const BulkCreateTasksSchema: z.ZodObject<{
125
+ list_id: z.ZodString;
126
+ tasks: z.ZodArray<z.ZodObject<{
127
+ name: z.ZodString;
128
+ description: z.ZodOptional<z.ZodString>;
129
+ markdown_content: z.ZodOptional<z.ZodString>;
130
+ assignees: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
131
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
132
+ status: z.ZodOptional<z.ZodString>;
133
+ priority: z.ZodOptional<z.ZodNumber>;
134
+ due_date: z.ZodOptional<z.ZodNumber>;
135
+ due_date_time: z.ZodOptional<z.ZodBoolean>;
136
+ time_estimate: z.ZodOptional<z.ZodNumber>;
137
+ start_date: z.ZodOptional<z.ZodNumber>;
138
+ start_date_time: z.ZodOptional<z.ZodBoolean>;
139
+ notify_all: z.ZodOptional<z.ZodBoolean>;
140
+ parent: z.ZodOptional<z.ZodString>;
141
+ links_to: z.ZodOptional<z.ZodString>;
142
+ check_required_custom_fields: z.ZodOptional<z.ZodBoolean>;
143
+ custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
144
+ id: z.ZodString;
145
+ value: z.ZodAny;
146
+ }, "strip", z.ZodTypeAny, {
147
+ id: string;
148
+ value?: any;
149
+ }, {
150
+ id: string;
151
+ value?: any;
152
+ }>, "many">>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ name: string;
155
+ description?: string | undefined;
156
+ markdown_content?: string | undefined;
157
+ assignees?: number[] | undefined;
158
+ status?: string | undefined;
159
+ priority?: number | undefined;
160
+ due_date?: number | undefined;
161
+ due_date_time?: boolean | undefined;
162
+ time_estimate?: number | undefined;
163
+ start_date?: number | undefined;
164
+ start_date_time?: boolean | undefined;
165
+ notify_all?: boolean | undefined;
166
+ parent?: string | undefined;
167
+ custom_fields?: {
168
+ id: string;
169
+ value?: any;
170
+ }[] | undefined;
171
+ tags?: string[] | undefined;
172
+ links_to?: string | undefined;
173
+ check_required_custom_fields?: boolean | undefined;
174
+ }, {
175
+ name: string;
176
+ description?: string | undefined;
177
+ markdown_content?: string | undefined;
178
+ assignees?: number[] | undefined;
179
+ status?: string | undefined;
180
+ priority?: number | undefined;
181
+ due_date?: number | undefined;
182
+ due_date_time?: boolean | undefined;
183
+ time_estimate?: number | undefined;
184
+ start_date?: number | undefined;
185
+ start_date_time?: boolean | undefined;
186
+ notify_all?: boolean | undefined;
187
+ parent?: string | undefined;
188
+ custom_fields?: {
189
+ id: string;
190
+ value?: any;
191
+ }[] | undefined;
192
+ tags?: string[] | undefined;
193
+ links_to?: string | undefined;
194
+ check_required_custom_fields?: boolean | undefined;
195
+ }>, "many">;
196
+ continue_on_error: z.ZodDefault<z.ZodBoolean>;
197
+ }, "strip", z.ZodTypeAny, {
198
+ list_id: string;
199
+ tasks: {
200
+ name: string;
201
+ description?: string | undefined;
202
+ markdown_content?: string | undefined;
203
+ assignees?: number[] | undefined;
204
+ status?: string | undefined;
205
+ priority?: number | undefined;
206
+ due_date?: number | undefined;
207
+ due_date_time?: boolean | undefined;
208
+ time_estimate?: number | undefined;
209
+ start_date?: number | undefined;
210
+ start_date_time?: boolean | undefined;
211
+ notify_all?: boolean | undefined;
212
+ parent?: string | undefined;
213
+ custom_fields?: {
214
+ id: string;
215
+ value?: any;
216
+ }[] | undefined;
217
+ tags?: string[] | undefined;
218
+ links_to?: string | undefined;
219
+ check_required_custom_fields?: boolean | undefined;
220
+ }[];
221
+ continue_on_error: boolean;
222
+ }, {
223
+ list_id: string;
224
+ tasks: {
225
+ name: string;
226
+ description?: string | undefined;
227
+ markdown_content?: string | undefined;
228
+ assignees?: number[] | undefined;
229
+ status?: string | undefined;
230
+ priority?: number | undefined;
231
+ due_date?: number | undefined;
232
+ due_date_time?: boolean | undefined;
233
+ time_estimate?: number | undefined;
234
+ start_date?: number | undefined;
235
+ start_date_time?: boolean | undefined;
236
+ notify_all?: boolean | undefined;
237
+ parent?: string | undefined;
238
+ custom_fields?: {
239
+ id: string;
240
+ value?: any;
241
+ }[] | undefined;
242
+ tags?: string[] | undefined;
243
+ links_to?: string | undefined;
244
+ check_required_custom_fields?: boolean | undefined;
245
+ }[];
246
+ continue_on_error?: boolean | undefined;
247
+ }>;
248
+ /**
249
+ * Schema for bulk task update operations
250
+ */
251
+ export declare const BulkUpdateTasksSchema: z.ZodObject<{
252
+ tasks: z.ZodArray<z.ZodObject<{
253
+ task_id: z.ZodString;
254
+ name: z.ZodOptional<z.ZodString>;
255
+ description: z.ZodOptional<z.ZodString>;
256
+ markdown_content: z.ZodOptional<z.ZodString>;
257
+ assignees: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
258
+ status: z.ZodOptional<z.ZodString>;
259
+ priority: z.ZodOptional<z.ZodNumber>;
260
+ due_date: z.ZodOptional<z.ZodNumber>;
261
+ due_date_time: z.ZodOptional<z.ZodBoolean>;
262
+ time_estimate: z.ZodOptional<z.ZodNumber>;
263
+ start_date: z.ZodOptional<z.ZodNumber>;
264
+ start_date_time: z.ZodOptional<z.ZodBoolean>;
265
+ notify_all: z.ZodOptional<z.ZodBoolean>;
266
+ }, "strip", z.ZodTypeAny, {
267
+ task_id: string;
268
+ name?: string | undefined;
269
+ description?: string | undefined;
270
+ markdown_content?: string | undefined;
271
+ assignees?: number[] | undefined;
272
+ status?: string | undefined;
273
+ priority?: number | undefined;
274
+ due_date?: number | undefined;
275
+ due_date_time?: boolean | undefined;
276
+ time_estimate?: number | undefined;
277
+ start_date?: number | undefined;
278
+ start_date_time?: boolean | undefined;
279
+ notify_all?: boolean | undefined;
280
+ }, {
281
+ task_id: string;
282
+ name?: string | undefined;
283
+ description?: string | undefined;
284
+ markdown_content?: string | undefined;
285
+ assignees?: number[] | undefined;
286
+ status?: string | undefined;
287
+ priority?: number | undefined;
288
+ due_date?: number | undefined;
289
+ due_date_time?: boolean | undefined;
290
+ time_estimate?: number | undefined;
291
+ start_date?: number | undefined;
292
+ start_date_time?: boolean | undefined;
293
+ notify_all?: boolean | undefined;
294
+ }>, "many">;
295
+ continue_on_error: z.ZodDefault<z.ZodBoolean>;
296
+ }, "strip", z.ZodTypeAny, {
297
+ tasks: {
298
+ task_id: string;
299
+ name?: string | undefined;
300
+ description?: string | undefined;
301
+ markdown_content?: string | undefined;
302
+ assignees?: number[] | undefined;
303
+ status?: string | undefined;
304
+ priority?: number | undefined;
305
+ due_date?: number | undefined;
306
+ due_date_time?: boolean | undefined;
307
+ time_estimate?: number | undefined;
308
+ start_date?: number | undefined;
309
+ start_date_time?: boolean | undefined;
310
+ notify_all?: boolean | undefined;
311
+ }[];
312
+ continue_on_error: boolean;
313
+ }, {
314
+ tasks: {
315
+ task_id: string;
316
+ name?: string | undefined;
317
+ description?: string | undefined;
318
+ markdown_content?: string | undefined;
319
+ assignees?: number[] | undefined;
320
+ status?: string | undefined;
321
+ priority?: number | undefined;
322
+ due_date?: number | undefined;
323
+ due_date_time?: boolean | undefined;
324
+ time_estimate?: number | undefined;
325
+ start_date?: number | undefined;
326
+ start_date_time?: boolean | undefined;
327
+ notify_all?: boolean | undefined;
328
+ }[];
329
+ continue_on_error?: boolean | undefined;
330
+ }>;
331
+ /**
332
+ * Schema for bulk task operation results
333
+ */
334
+ export declare const BulkTaskResultSchema: z.ZodObject<{
335
+ success_count: z.ZodNumber;
336
+ error_count: z.ZodNumber;
337
+ total_count: z.ZodNumber;
338
+ results: z.ZodArray<z.ZodObject<{
339
+ success: z.ZodBoolean;
340
+ task_id: z.ZodOptional<z.ZodString>;
341
+ error: z.ZodOptional<z.ZodString>;
342
+ index: z.ZodNumber;
343
+ }, "strip", z.ZodTypeAny, {
344
+ success: boolean;
345
+ index: number;
346
+ task_id?: string | undefined;
347
+ error?: string | undefined;
348
+ }, {
349
+ success: boolean;
350
+ index: number;
351
+ task_id?: string | undefined;
352
+ error?: string | undefined;
353
+ }>, "many">;
354
+ execution_time_ms: z.ZodNumber;
355
+ }, "strip", z.ZodTypeAny, {
356
+ success_count: number;
357
+ error_count: number;
358
+ total_count: number;
359
+ results: {
360
+ success: boolean;
361
+ index: number;
362
+ task_id?: string | undefined;
363
+ error?: string | undefined;
364
+ }[];
365
+ execution_time_ms: number;
366
+ }, {
367
+ success_count: number;
368
+ error_count: number;
369
+ total_count: number;
370
+ results: {
371
+ success: boolean;
372
+ index: number;
373
+ task_id?: string | undefined;
374
+ error?: string | undefined;
375
+ }[];
376
+ execution_time_ms: number;
377
+ }>;
378
+ export type BulkCreateTaskItem = z.infer<typeof BulkCreateTaskItemSchema>;
379
+ export type BulkUpdateTaskItem = z.infer<typeof BulkUpdateTaskItemSchema>;
380
+ export type BulkCreateTasks = z.infer<typeof BulkCreateTasksSchema>;
381
+ export type BulkUpdateTasks = z.infer<typeof BulkUpdateTasksSchema>;
382
+ export type BulkTaskResult = z.infer<typeof BulkTaskResultSchema>;
@@ -0,0 +1,115 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Schema for individual task creation in bulk operations
4
+ */
5
+ export const BulkCreateTaskItemSchema = z.object({
6
+ name: z.string().min(1).describe('The name of the task'),
7
+ description: z
8
+ .string()
9
+ .optional()
10
+ .describe('The description of the task (supports GitHub Flavored Markdown)'),
11
+ markdown_content: z
12
+ .string()
13
+ .optional()
14
+ .describe('Raw markdown content for the task description (alternative to description field)'),
15
+ assignees: z.array(z.number()).optional().describe('The IDs of the users to assign to the task'),
16
+ tags: z.array(z.string()).optional().describe('The tags to add to the task'),
17
+ status: z.string().optional().describe('The status of the task'),
18
+ priority: z.number().min(1).max(4).optional().describe('The priority of the task (1-4)'),
19
+ due_date: z.number().optional().describe('The due date of the task (Unix timestamp)'),
20
+ due_date_time: z.boolean().optional().describe('Whether the due date includes a time'),
21
+ time_estimate: z.number().optional().describe('The time estimate for the task (in milliseconds)'),
22
+ start_date: z.number().optional().describe('The start date of the task (Unix timestamp)'),
23
+ start_date_time: z.boolean().optional().describe('Whether the start date includes a time'),
24
+ notify_all: z.boolean().optional().describe('Whether to notify all assignees'),
25
+ parent: z.string().optional().describe('The ID of the parent task'),
26
+ links_to: z.string().optional().describe('The ID of the task to link to'),
27
+ check_required_custom_fields: z
28
+ .boolean()
29
+ .optional()
30
+ .describe('Whether to check required custom fields'),
31
+ custom_fields: z
32
+ .array(z.object({
33
+ id: z.string().describe('The ID of the custom field'),
34
+ value: z.any().describe('The value to set')
35
+ }))
36
+ .optional()
37
+ .describe('Custom field values to set')
38
+ });
39
+ /**
40
+ * Schema for individual task update in bulk operations
41
+ */
42
+ export const BulkUpdateTaskItemSchema = z.object({
43
+ task_id: z.string().min(1).describe('The ID of the task to update'),
44
+ name: z.string().optional().describe('The new name of the task'),
45
+ description: z
46
+ .string()
47
+ .optional()
48
+ .describe('The new description of the task (supports GitHub Flavored Markdown)'),
49
+ markdown_content: z
50
+ .string()
51
+ .optional()
52
+ .describe('Raw markdown content for the task description (alternative to description field)'),
53
+ assignees: z.array(z.number()).optional().describe('The IDs of the users to assign to the task'),
54
+ status: z.string().optional().describe('The new status of the task'),
55
+ priority: z.number().min(1).max(4).optional().describe('The new priority of the task (1-4)'),
56
+ due_date: z.number().optional().describe('The new due date of the task (Unix timestamp)'),
57
+ due_date_time: z.boolean().optional().describe('Whether the due date includes a time'),
58
+ time_estimate: z
59
+ .number()
60
+ .optional()
61
+ .describe('The new time estimate for the task (in milliseconds)'),
62
+ start_date: z.number().optional().describe('The new start date of the task (Unix timestamp)'),
63
+ start_date_time: z.boolean().optional().describe('Whether the start date includes a time'),
64
+ notify_all: z.boolean().optional().describe('Whether to notify all assignees')
65
+ });
66
+ /**
67
+ * Schema for bulk task creation operations
68
+ */
69
+ export const BulkCreateTasksSchema = z.object({
70
+ list_id: z.string().min(1).describe('The ID of the list to create tasks in'),
71
+ tasks: z
72
+ .array(BulkCreateTaskItemSchema)
73
+ .min(1)
74
+ .max(50)
75
+ .describe('Array of tasks to create (maximum 50 tasks per request)'),
76
+ continue_on_error: z
77
+ .boolean()
78
+ .default(false)
79
+ .describe('Whether to continue creating remaining tasks if one fails')
80
+ });
81
+ /**
82
+ * Schema for bulk task update operations
83
+ */
84
+ export const BulkUpdateTasksSchema = z.object({
85
+ tasks: z
86
+ .array(BulkUpdateTaskItemSchema)
87
+ .min(1)
88
+ .max(50)
89
+ .describe('Array of task updates to perform (maximum 50 tasks per request)'),
90
+ continue_on_error: z
91
+ .boolean()
92
+ .default(false)
93
+ .describe('Whether to continue updating remaining tasks if one fails')
94
+ });
95
+ /**
96
+ * Schema for bulk task operation results
97
+ */
98
+ export const BulkTaskResultSchema = z.object({
99
+ success_count: z.number().describe('Number of successful operations'),
100
+ error_count: z.number().describe('Number of failed operations'),
101
+ total_count: z.number().describe('Total number of operations attempted'),
102
+ results: z
103
+ .array(z.object({
104
+ success: z.boolean().describe('Whether the operation was successful'),
105
+ task_id: z
106
+ .string()
107
+ .optional()
108
+ .describe('The ID of the created/updated task (if successful)'),
109
+ error: z.string().optional().describe('Error message (if failed)'),
110
+ index: z.number().describe('Index of the task in the original request array')
111
+ }))
112
+ .describe('Detailed results for each task operation'),
113
+ execution_time_ms: z.number().describe('Total execution time in milliseconds')
114
+ });
115
+ //# sourceMappingURL=task-schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task-schemas.js","sourceRoot":"","sources":["../../src/schemas/task-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IACxD,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,iEAAiE,CAAC;IAC9E,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,kFAAkF,CAAC;IAC/F,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;IAChG,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IAC5E,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;IAChE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,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AW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;IACxE,OAAO,EAAE,CAAC;SACP,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;QACrE,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,oDAAoD,CAAC;QACjE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;QAClE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iDAAiD,CAAC;KAC9E,CAAC,CACH;SACA,QAAQ,CAAC,0CAA0C,CAAC;IACvD,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;CAC/E,CAAC,CAAC"}
@@ -150,18 +150,18 @@ export declare const GetTimeEntriesSchema: z.ZodObject<{
150
150
  include_task_tags: boolean;
151
151
  include_location_names: boolean;
152
152
  team_id: string;
153
- list_id?: string | undefined;
154
153
  task_id?: string | undefined;
155
154
  start_date?: number | undefined;
155
+ list_id?: string | undefined;
156
156
  space_id?: string | undefined;
157
157
  folder_id?: string | undefined;
158
158
  assignee?: number | undefined;
159
159
  end_date?: number | undefined;
160
160
  }, {
161
161
  team_id: string;
162
- list_id?: string | undefined;
163
162
  task_id?: string | undefined;
164
163
  start_date?: number | undefined;
164
+ list_id?: string | undefined;
165
165
  space_id?: string | undefined;
166
166
  folder_id?: string | undefined;
167
167
  assignee?: number | undefined;
@@ -218,18 +218,18 @@ export declare const GetTimeSummarySchema: z.ZodObject<{
218
218
  }, "strip", z.ZodTypeAny, {
219
219
  team_id: string;
220
220
  billable_only: boolean;
221
- list_id?: string | undefined;
222
221
  task_id?: string | undefined;
223
222
  start_date?: number | undefined;
223
+ list_id?: string | undefined;
224
224
  space_id?: string | undefined;
225
225
  folder_id?: string | undefined;
226
226
  assignee?: number | undefined;
227
227
  end_date?: number | undefined;
228
228
  }, {
229
229
  team_id: string;
230
- list_id?: string | undefined;
231
230
  task_id?: string | undefined;
232
231
  start_date?: number | undefined;
232
+ list_id?: string | undefined;
233
233
  space_id?: string | undefined;
234
234
  folder_id?: string | undefined;
235
235
  assignee?: number | undefined;
@@ -259,36 +259,36 @@ export declare const TimeEntryResponseSchema: z.ZodObject<{
259
259
  type: z.ZodString;
260
260
  orderindex: z.ZodNumber;
261
261
  }, "strip", z.ZodTypeAny, {
262
- type: string;
263
262
  status: string;
263
+ type: string;
264
264
  color: string;
265
265
  orderindex: number;
266
266
  }, {
267
- type: string;
268
267
  status: string;
268
+ type: string;
269
269
  color: string;
270
270
  orderindex: number;
271
271
  }>;
272
272
  custom_type: z.ZodNullable<z.ZodString>;
273
273
  }, "strip", z.ZodTypeAny, {
274
274
  id: string;
275
+ name: string;
275
276
  status: {
276
- type: string;
277
277
  status: string;
278
+ type: string;
278
279
  color: string;
279
280
  orderindex: number;
280
281
  };
281
- name: string;
282
282
  custom_type: string | null;
283
283
  }, {
284
284
  id: string;
285
+ name: string;
285
286
  status: {
286
- type: string;
287
287
  status: string;
288
+ type: string;
288
289
  color: string;
289
290
  orderindex: number;
290
291
  };
291
- name: string;
292
292
  custom_type: string | null;
293
293
  }>>;
294
294
  wid: z.ZodString;
@@ -340,8 +340,8 @@ export declare const TimeEntryResponseSchema: z.ZodObject<{
340
340
  }, "strip", z.ZodTypeAny, {
341
341
  source: string;
342
342
  id: string;
343
- at: string;
344
343
  description: string;
344
+ at: string;
345
345
  tags: {
346
346
  name: string;
347
347
  tag_fg?: string | undefined;
@@ -351,13 +351,13 @@ export declare const TimeEntryResponseSchema: z.ZodObject<{
351
351
  start: string;
352
352
  task: {
353
353
  id: string;
354
+ name: string;
354
355
  status: {
355
- type: string;
356
356
  status: string;
357
+ type: string;
357
358
  color: string;
358
359
  orderindex: number;
359
360
  };
360
- name: string;
361
361
  custom_type: string | null;
362
362
  } | null;
363
363
  duration: string;
@@ -375,8 +375,8 @@ export declare const TimeEntryResponseSchema: z.ZodObject<{
375
375
  }, {
376
376
  source: string;
377
377
  id: string;
378
- at: string;
379
378
  description: string;
379
+ at: string;
380
380
  tags: {
381
381
  name: string;
382
382
  tag_fg?: string | undefined;
@@ -386,13 +386,13 @@ export declare const TimeEntryResponseSchema: z.ZodObject<{
386
386
  start: string;
387
387
  task: {
388
388
  id: string;
389
+ name: string;
389
390
  status: {
390
- type: string;
391
391
  status: string;
392
+ type: string;
392
393
  color: string;
393
394
  orderindex: number;
394
395
  };
395
- name: string;
396
396
  custom_type: string | null;
397
397
  } | null;
398
398
  duration: string;
@@ -641,18 +641,18 @@ export declare const TimeTrackingToolSchemas: {
641
641
  include_task_tags: boolean;
642
642
  include_location_names: boolean;
643
643
  team_id: string;
644
- list_id?: string | undefined;
645
644
  task_id?: string | undefined;
646
645
  start_date?: number | undefined;
646
+ list_id?: string | undefined;
647
647
  space_id?: string | undefined;
648
648
  folder_id?: string | undefined;
649
649
  assignee?: number | undefined;
650
650
  end_date?: number | undefined;
651
651
  }, {
652
652
  team_id: string;
653
- list_id?: string | undefined;
654
653
  task_id?: string | undefined;
655
654
  start_date?: number | undefined;
655
+ list_id?: string | undefined;
656
656
  space_id?: string | undefined;
657
657
  folder_id?: string | undefined;
658
658
  assignee?: number | undefined;
@@ -709,18 +709,18 @@ export declare const TimeTrackingToolSchemas: {
709
709
  }, "strip", z.ZodTypeAny, {
710
710
  team_id: string;
711
711
  billable_only: boolean;
712
- list_id?: string | undefined;
713
712
  task_id?: string | undefined;
714
713
  start_date?: number | undefined;
714
+ list_id?: string | undefined;
715
715
  space_id?: string | undefined;
716
716
  folder_id?: string | undefined;
717
717
  assignee?: number | undefined;
718
718
  end_date?: number | undefined;
719
719
  }, {
720
720
  team_id: string;
721
- list_id?: string | undefined;
722
721
  task_id?: string | undefined;
723
722
  start_date?: number | undefined;
723
+ list_id?: string | undefined;
724
724
  space_id?: string | undefined;
725
725
  folder_id?: string | undefined;
726
726
  assignee?: number | undefined;