@doist/todoist-ai 4.16.1 → 4.17.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.
- package/dist/index.d.ts +882 -34
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/main.js +1 -1
- package/dist/mcp-helpers.d.ts +1 -1
- package/dist/mcp-helpers.d.ts.map +1 -1
- package/dist/mcp-server-BADReNAy.js +3092 -0
- package/dist/todoist-tool.d.ts +7 -1
- package/dist/todoist-tool.d.ts.map +1 -1
- package/dist/tools/add-comments.d.ts +68 -2
- package/dist/tools/add-comments.d.ts.map +1 -1
- package/dist/tools/add-projects.d.ts +31 -0
- package/dist/tools/add-projects.d.ts.map +1 -1
- package/dist/tools/add-sections.d.ts +13 -0
- package/dist/tools/add-sections.d.ts.map +1 -1
- package/dist/tools/add-tasks.d.ts +64 -9
- package/dist/tools/add-tasks.d.ts.map +1 -1
- package/dist/tools/complete-tasks.d.ts +19 -0
- package/dist/tools/complete-tasks.d.ts.map +1 -1
- package/dist/tools/delete-object.d.ts +13 -0
- package/dist/tools/delete-object.d.ts.map +1 -1
- package/dist/tools/fetch.d.ts +7 -0
- package/dist/tools/fetch.d.ts.map +1 -1
- package/dist/tools/find-activity.d.ts +39 -2
- package/dist/tools/find-activity.d.ts.map +1 -1
- package/dist/tools/find-comments.d.ts +67 -1
- package/dist/tools/find-comments.d.ts.map +1 -1
- package/dist/tools/find-completed-tasks.d.ts +62 -4
- package/dist/tools/find-completed-tasks.d.ts.map +1 -1
- package/dist/tools/find-project-collaborators.d.ts +31 -0
- package/dist/tools/find-project-collaborators.d.ts.map +1 -1
- package/dist/tools/find-projects.d.ts +34 -0
- package/dist/tools/find-projects.d.ts.map +1 -1
- package/dist/tools/find-sections.d.ts +14 -0
- package/dist/tools/find-sections.d.ts.map +1 -1
- package/dist/tools/find-tasks-by-date.d.ts +60 -2
- package/dist/tools/find-tasks-by-date.d.ts.map +1 -1
- package/dist/tools/find-tasks.d.ts +62 -4
- package/dist/tools/find-tasks.d.ts.map +1 -1
- package/dist/tools/get-overview.d.ts +23 -0
- package/dist/tools/get-overview.d.ts.map +1 -1
- package/dist/tools/manage-assignments.d.ts +38 -1
- package/dist/tools/manage-assignments.d.ts.map +1 -1
- package/dist/tools/search.d.ts +16 -0
- package/dist/tools/search.d.ts.map +1 -1
- package/dist/tools/update-comments.d.ts +73 -0
- package/dist/tools/update-comments.d.ts.map +1 -1
- package/dist/tools/update-projects.d.ts +42 -0
- package/dist/tools/update-projects.d.ts.map +1 -1
- package/dist/tools/update-sections.d.ts +14 -0
- package/dist/tools/update-sections.d.ts.map +1 -1
- package/dist/tools/update-tasks.d.ts +75 -9
- package/dist/tools/update-tasks.d.ts.map +1 -1
- package/dist/tools/user-info.d.ts +18 -0
- package/dist/tools/user-info.d.ts.map +1 -1
- package/dist/utils/output-schemas.d.ts +233 -0
- package/dist/utils/output-schemas.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/mcp-server-6tm7Rhyz.js +0 -2840
|
@@ -21,45 +21,111 @@ declare const updateTasks: {
|
|
|
21
21
|
id: string;
|
|
22
22
|
content?: string | undefined;
|
|
23
23
|
description?: string | undefined;
|
|
24
|
+
deadlineDate?: string | undefined;
|
|
25
|
+
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
24
26
|
projectId?: string | undefined;
|
|
25
|
-
parentId?: string | undefined;
|
|
26
27
|
sectionId?: string | undefined;
|
|
28
|
+
parentId?: string | undefined;
|
|
27
29
|
labels?: string[] | undefined;
|
|
28
30
|
duration?: string | undefined;
|
|
29
|
-
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
30
31
|
dueString?: string | undefined;
|
|
31
|
-
deadlineDate?: string | undefined;
|
|
32
32
|
responsibleUser?: string | undefined;
|
|
33
33
|
order?: number | undefined;
|
|
34
34
|
}, {
|
|
35
35
|
id: string;
|
|
36
36
|
content?: string | undefined;
|
|
37
37
|
description?: string | undefined;
|
|
38
|
+
deadlineDate?: string | undefined;
|
|
39
|
+
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
38
40
|
projectId?: string | undefined;
|
|
39
|
-
parentId?: string | undefined;
|
|
40
41
|
sectionId?: string | undefined;
|
|
42
|
+
parentId?: string | undefined;
|
|
41
43
|
labels?: string[] | undefined;
|
|
42
44
|
duration?: string | undefined;
|
|
43
|
-
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
44
45
|
dueString?: string | undefined;
|
|
45
|
-
deadlineDate?: string | undefined;
|
|
46
46
|
responsibleUser?: string | undefined;
|
|
47
47
|
order?: number | undefined;
|
|
48
48
|
}>, "many">;
|
|
49
49
|
};
|
|
50
|
+
outputSchema: {
|
|
51
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
52
|
+
id: z.ZodString;
|
|
53
|
+
content: z.ZodString;
|
|
54
|
+
description: z.ZodString;
|
|
55
|
+
dueDate: z.ZodOptional<z.ZodString>;
|
|
56
|
+
recurring: z.ZodUnion<[z.ZodBoolean, z.ZodString]>;
|
|
57
|
+
deadlineDate: z.ZodOptional<z.ZodString>;
|
|
58
|
+
priority: z.ZodNumber;
|
|
59
|
+
projectId: z.ZodString;
|
|
60
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
61
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
62
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
63
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
64
|
+
responsibleUid: z.ZodOptional<z.ZodString>;
|
|
65
|
+
assignedByUid: z.ZodOptional<z.ZodString>;
|
|
66
|
+
checked: z.ZodBoolean;
|
|
67
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
|
69
|
+
content: string;
|
|
70
|
+
description: string;
|
|
71
|
+
id: string;
|
|
72
|
+
recurring: string | boolean;
|
|
73
|
+
priority: number;
|
|
74
|
+
projectId: string;
|
|
75
|
+
labels: string[];
|
|
76
|
+
checked: boolean;
|
|
77
|
+
dueDate?: string | undefined;
|
|
78
|
+
deadlineDate?: string | undefined;
|
|
79
|
+
sectionId?: string | undefined;
|
|
80
|
+
parentId?: string | undefined;
|
|
81
|
+
duration?: string | undefined;
|
|
82
|
+
responsibleUid?: string | undefined;
|
|
83
|
+
assignedByUid?: string | undefined;
|
|
84
|
+
completedAt?: string | undefined;
|
|
85
|
+
}, {
|
|
86
|
+
content: string;
|
|
87
|
+
description: string;
|
|
88
|
+
id: string;
|
|
89
|
+
recurring: string | boolean;
|
|
90
|
+
priority: number;
|
|
91
|
+
projectId: string;
|
|
92
|
+
labels: string[];
|
|
93
|
+
checked: boolean;
|
|
94
|
+
dueDate?: string | undefined;
|
|
95
|
+
deadlineDate?: string | undefined;
|
|
96
|
+
sectionId?: string | undefined;
|
|
97
|
+
parentId?: string | undefined;
|
|
98
|
+
duration?: string | undefined;
|
|
99
|
+
responsibleUid?: string | undefined;
|
|
100
|
+
assignedByUid?: string | undefined;
|
|
101
|
+
completedAt?: string | undefined;
|
|
102
|
+
}>, "many">;
|
|
103
|
+
totalCount: z.ZodNumber;
|
|
104
|
+
updatedTaskIds: z.ZodArray<z.ZodString, "many">;
|
|
105
|
+
appliedOperations: z.ZodObject<{
|
|
106
|
+
updateCount: z.ZodNumber;
|
|
107
|
+
skippedCount: z.ZodNumber;
|
|
108
|
+
}, "strip", z.ZodTypeAny, {
|
|
109
|
+
updateCount: number;
|
|
110
|
+
skippedCount: number;
|
|
111
|
+
}, {
|
|
112
|
+
updateCount: number;
|
|
113
|
+
skippedCount: number;
|
|
114
|
+
}>;
|
|
115
|
+
};
|
|
50
116
|
execute(args: {
|
|
51
117
|
tasks: {
|
|
52
118
|
id: string;
|
|
53
119
|
content?: string | undefined;
|
|
54
120
|
description?: string | undefined;
|
|
121
|
+
deadlineDate?: string | undefined;
|
|
122
|
+
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
55
123
|
projectId?: string | undefined;
|
|
56
|
-
parentId?: string | undefined;
|
|
57
124
|
sectionId?: string | undefined;
|
|
125
|
+
parentId?: string | undefined;
|
|
58
126
|
labels?: string[] | undefined;
|
|
59
127
|
duration?: string | undefined;
|
|
60
|
-
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
61
128
|
dueString?: string | undefined;
|
|
62
|
-
deadlineDate?: string | undefined;
|
|
63
129
|
responsibleUser?: string | undefined;
|
|
64
130
|
order?: number | undefined;
|
|
65
131
|
}[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/update-tasks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"update-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/update-tasks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAmFvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsIyB,CAAA;AA4B1C,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TodoistApi } from '@doist/todoist-api-typescript';
|
|
2
|
+
import { z } from 'zod';
|
|
2
3
|
type UserPlan = 'Todoist Free' | 'Todoist Pro' | 'Todoist Business';
|
|
3
4
|
type UserInfoStructured = Record<string, unknown> & {
|
|
4
5
|
type: 'user_info';
|
|
@@ -21,6 +22,23 @@ declare const userInfo: {
|
|
|
21
22
|
name: "user-info";
|
|
22
23
|
description: string;
|
|
23
24
|
parameters: {};
|
|
25
|
+
outputSchema: {
|
|
26
|
+
type: z.ZodLiteral<"user_info">;
|
|
27
|
+
userId: z.ZodString;
|
|
28
|
+
fullName: z.ZodString;
|
|
29
|
+
timezone: z.ZodString;
|
|
30
|
+
currentLocalTime: z.ZodString;
|
|
31
|
+
startDay: z.ZodNumber;
|
|
32
|
+
startDayName: z.ZodString;
|
|
33
|
+
weekStartDate: z.ZodString;
|
|
34
|
+
weekEndDate: z.ZodString;
|
|
35
|
+
currentWeekNumber: z.ZodNumber;
|
|
36
|
+
completedToday: z.ZodNumber;
|
|
37
|
+
dailyGoal: z.ZodNumber;
|
|
38
|
+
weeklyGoal: z.ZodNumber;
|
|
39
|
+
email: z.ZodString;
|
|
40
|
+
plan: z.ZodEnum<["Todoist Free", "Todoist Pro", "Todoist Business"]>;
|
|
41
|
+
};
|
|
24
42
|
execute(_args: {}, client: TodoistApi): Promise<{
|
|
25
43
|
content: {
|
|
26
44
|
type: "text";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-info.d.ts","sourceRoot":"","sources":["../../src/tools/user-info.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;
|
|
1
|
+
{"version":3,"file":"user-info.d.ts","sourceRoot":"","sources":["../../src/tools/user-info.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAyBvB,KAAK,QAAQ,GAAG,cAAc,GAAG,aAAa,GAAG,kBAAkB,CAAA;AAEnE,KAAK,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAChD,IAAI,EAAE,WAAW,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,gBAAgB,EAAE,MAAM,CAAA;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,MAAM,CAAA;IACnB,iBAAiB,EAAE,MAAM,CAAA;IACzB,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,QAAQ,CAAA;CACjB,CAAA;AAoJD,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc4B,CAAA;AAE1C,OAAO,EAAE,QAAQ,EAAE,KAAK,kBAAkB,EAAE,CAAA"}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Schema for a mapped task object returned by tools
|
|
4
|
+
*/
|
|
5
|
+
declare const TaskSchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
content: z.ZodString;
|
|
8
|
+
description: z.ZodString;
|
|
9
|
+
dueDate: z.ZodOptional<z.ZodString>;
|
|
10
|
+
recurring: z.ZodUnion<[z.ZodBoolean, z.ZodString]>;
|
|
11
|
+
deadlineDate: z.ZodOptional<z.ZodString>;
|
|
12
|
+
priority: z.ZodNumber;
|
|
13
|
+
projectId: z.ZodString;
|
|
14
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
16
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
17
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
18
|
+
responsibleUid: z.ZodOptional<z.ZodString>;
|
|
19
|
+
assignedByUid: z.ZodOptional<z.ZodString>;
|
|
20
|
+
checked: z.ZodBoolean;
|
|
21
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
content: string;
|
|
24
|
+
description: string;
|
|
25
|
+
id: string;
|
|
26
|
+
recurring: string | boolean;
|
|
27
|
+
priority: number;
|
|
28
|
+
projectId: string;
|
|
29
|
+
labels: string[];
|
|
30
|
+
checked: boolean;
|
|
31
|
+
dueDate?: string | undefined;
|
|
32
|
+
deadlineDate?: string | undefined;
|
|
33
|
+
sectionId?: string | undefined;
|
|
34
|
+
parentId?: string | undefined;
|
|
35
|
+
duration?: string | undefined;
|
|
36
|
+
responsibleUid?: string | undefined;
|
|
37
|
+
assignedByUid?: string | undefined;
|
|
38
|
+
completedAt?: string | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
content: string;
|
|
41
|
+
description: string;
|
|
42
|
+
id: string;
|
|
43
|
+
recurring: string | boolean;
|
|
44
|
+
priority: number;
|
|
45
|
+
projectId: string;
|
|
46
|
+
labels: string[];
|
|
47
|
+
checked: boolean;
|
|
48
|
+
dueDate?: string | undefined;
|
|
49
|
+
deadlineDate?: string | undefined;
|
|
50
|
+
sectionId?: string | undefined;
|
|
51
|
+
parentId?: string | undefined;
|
|
52
|
+
duration?: string | undefined;
|
|
53
|
+
responsibleUid?: string | undefined;
|
|
54
|
+
assignedByUid?: string | undefined;
|
|
55
|
+
completedAt?: string | undefined;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Schema for a mapped project object returned by tools
|
|
59
|
+
*/
|
|
60
|
+
declare const ProjectSchema: z.ZodObject<{
|
|
61
|
+
id: z.ZodString;
|
|
62
|
+
name: z.ZodString;
|
|
63
|
+
color: z.ZodString;
|
|
64
|
+
isFavorite: z.ZodBoolean;
|
|
65
|
+
isShared: z.ZodBoolean;
|
|
66
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
67
|
+
inboxProject: z.ZodBoolean;
|
|
68
|
+
viewStyle: z.ZodString;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
name: string;
|
|
71
|
+
id: string;
|
|
72
|
+
color: string;
|
|
73
|
+
isFavorite: boolean;
|
|
74
|
+
isShared: boolean;
|
|
75
|
+
inboxProject: boolean;
|
|
76
|
+
viewStyle: string;
|
|
77
|
+
parentId?: string | undefined;
|
|
78
|
+
}, {
|
|
79
|
+
name: string;
|
|
80
|
+
id: string;
|
|
81
|
+
color: string;
|
|
82
|
+
isFavorite: boolean;
|
|
83
|
+
isShared: boolean;
|
|
84
|
+
inboxProject: boolean;
|
|
85
|
+
viewStyle: string;
|
|
86
|
+
parentId?: string | undefined;
|
|
87
|
+
}>;
|
|
88
|
+
/**
|
|
89
|
+
* Schema for a section object returned by tools
|
|
90
|
+
*/
|
|
91
|
+
declare const SectionSchema: z.ZodObject<{
|
|
92
|
+
id: z.ZodString;
|
|
93
|
+
name: z.ZodString;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
name: string;
|
|
96
|
+
id: string;
|
|
97
|
+
}, {
|
|
98
|
+
name: string;
|
|
99
|
+
id: string;
|
|
100
|
+
}>;
|
|
101
|
+
/**
|
|
102
|
+
* Schema for a comment object returned by tools
|
|
103
|
+
*/
|
|
104
|
+
declare const CommentSchema: z.ZodObject<{
|
|
105
|
+
id: z.ZodString;
|
|
106
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
107
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
108
|
+
content: z.ZodString;
|
|
109
|
+
postedAt: z.ZodString;
|
|
110
|
+
attachment: z.ZodOptional<z.ZodObject<{
|
|
111
|
+
resourceType: z.ZodString;
|
|
112
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
113
|
+
fileSize: z.ZodOptional<z.ZodNumber>;
|
|
114
|
+
fileType: z.ZodOptional<z.ZodString>;
|
|
115
|
+
fileUrl: z.ZodOptional<z.ZodString>;
|
|
116
|
+
fileDuration: z.ZodOptional<z.ZodNumber>;
|
|
117
|
+
uploadState: z.ZodOptional<z.ZodEnum<["pending", "completed"]>>;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
resourceType: string;
|
|
120
|
+
fileName?: string | undefined;
|
|
121
|
+
fileSize?: number | undefined;
|
|
122
|
+
fileType?: string | undefined;
|
|
123
|
+
fileUrl?: string | undefined;
|
|
124
|
+
fileDuration?: number | undefined;
|
|
125
|
+
uploadState?: "pending" | "completed" | undefined;
|
|
126
|
+
}, {
|
|
127
|
+
resourceType: string;
|
|
128
|
+
fileName?: string | undefined;
|
|
129
|
+
fileSize?: number | undefined;
|
|
130
|
+
fileType?: string | undefined;
|
|
131
|
+
fileUrl?: string | undefined;
|
|
132
|
+
fileDuration?: number | undefined;
|
|
133
|
+
uploadState?: "pending" | "completed" | undefined;
|
|
134
|
+
}>>;
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
content: string;
|
|
137
|
+
id: string;
|
|
138
|
+
postedAt: string;
|
|
139
|
+
projectId?: string | undefined;
|
|
140
|
+
taskId?: string | undefined;
|
|
141
|
+
attachment?: {
|
|
142
|
+
resourceType: string;
|
|
143
|
+
fileName?: string | undefined;
|
|
144
|
+
fileSize?: number | undefined;
|
|
145
|
+
fileType?: string | undefined;
|
|
146
|
+
fileUrl?: string | undefined;
|
|
147
|
+
fileDuration?: number | undefined;
|
|
148
|
+
uploadState?: "pending" | "completed" | undefined;
|
|
149
|
+
} | undefined;
|
|
150
|
+
}, {
|
|
151
|
+
content: string;
|
|
152
|
+
id: string;
|
|
153
|
+
postedAt: string;
|
|
154
|
+
projectId?: string | undefined;
|
|
155
|
+
taskId?: string | undefined;
|
|
156
|
+
attachment?: {
|
|
157
|
+
resourceType: string;
|
|
158
|
+
fileName?: string | undefined;
|
|
159
|
+
fileSize?: number | undefined;
|
|
160
|
+
fileType?: string | undefined;
|
|
161
|
+
fileUrl?: string | undefined;
|
|
162
|
+
fileDuration?: number | undefined;
|
|
163
|
+
uploadState?: "pending" | "completed" | undefined;
|
|
164
|
+
} | undefined;
|
|
165
|
+
}>;
|
|
166
|
+
/**
|
|
167
|
+
* Schema for an activity event object returned by tools
|
|
168
|
+
*/
|
|
169
|
+
declare const ActivityEventSchema: z.ZodObject<{
|
|
170
|
+
id: z.ZodString;
|
|
171
|
+
objectType: z.ZodString;
|
|
172
|
+
objectId: z.ZodString;
|
|
173
|
+
eventType: z.ZodString;
|
|
174
|
+
eventDate: z.ZodString;
|
|
175
|
+
parentProjectId: z.ZodOptional<z.ZodString>;
|
|
176
|
+
parentItemId: z.ZodOptional<z.ZodString>;
|
|
177
|
+
initiatorId: z.ZodOptional<z.ZodString>;
|
|
178
|
+
extraData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
179
|
+
}, "strip", z.ZodTypeAny, {
|
|
180
|
+
id: string;
|
|
181
|
+
objectType: string;
|
|
182
|
+
objectId: string;
|
|
183
|
+
eventType: string;
|
|
184
|
+
eventDate: string;
|
|
185
|
+
extraData: Record<string, unknown>;
|
|
186
|
+
parentProjectId?: string | undefined;
|
|
187
|
+
parentItemId?: string | undefined;
|
|
188
|
+
initiatorId?: string | undefined;
|
|
189
|
+
}, {
|
|
190
|
+
id: string;
|
|
191
|
+
objectType: string;
|
|
192
|
+
objectId: string;
|
|
193
|
+
eventType: string;
|
|
194
|
+
eventDate: string;
|
|
195
|
+
extraData: Record<string, unknown>;
|
|
196
|
+
parentProjectId?: string | undefined;
|
|
197
|
+
parentItemId?: string | undefined;
|
|
198
|
+
initiatorId?: string | undefined;
|
|
199
|
+
}>;
|
|
200
|
+
/**
|
|
201
|
+
* Schema for a user/collaborator object returned by tools
|
|
202
|
+
*/
|
|
203
|
+
declare const CollaboratorSchema: z.ZodObject<{
|
|
204
|
+
id: z.ZodString;
|
|
205
|
+
name: z.ZodString;
|
|
206
|
+
email: z.ZodString;
|
|
207
|
+
}, "strip", z.ZodTypeAny, {
|
|
208
|
+
name: string;
|
|
209
|
+
id: string;
|
|
210
|
+
email: string;
|
|
211
|
+
}, {
|
|
212
|
+
name: string;
|
|
213
|
+
id: string;
|
|
214
|
+
email: string;
|
|
215
|
+
}>;
|
|
216
|
+
/**
|
|
217
|
+
* Schema for batch operation failure
|
|
218
|
+
*/
|
|
219
|
+
declare const FailureSchema: z.ZodObject<{
|
|
220
|
+
item: z.ZodString;
|
|
221
|
+
error: z.ZodString;
|
|
222
|
+
code: z.ZodOptional<z.ZodString>;
|
|
223
|
+
}, "strip", z.ZodTypeAny, {
|
|
224
|
+
item: string;
|
|
225
|
+
error: string;
|
|
226
|
+
code?: string | undefined;
|
|
227
|
+
}, {
|
|
228
|
+
item: string;
|
|
229
|
+
error: string;
|
|
230
|
+
code?: string | undefined;
|
|
231
|
+
}>;
|
|
232
|
+
export { ActivityEventSchema, CollaboratorSchema, CommentSchema, FailureSchema, ProjectSchema, SectionSchema, TaskSchema, };
|
|
233
|
+
//# sourceMappingURL=output-schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output-schemas.d.ts","sourceRoot":"","sources":["../../src/utils/output-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;GAEG;AACH,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBd,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;EASjB,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,aAAa;;;;;;;;;EAGjB,CAAA;AAqBF;;GAEG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOjB,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYvB,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,kBAAkB;;;;;;;;;;;;EAItB,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;;;EAIjB,CAAA;AAEF,OAAO,EACH,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,UAAU,GACb,CAAA"}
|