@doist/todoist-ai 4.17.1 → 4.17.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.
@@ -1,4 +1,4 @@
1
- import { ActivityEvent, MoveTaskArgs, PersonalProject, Task, TodoistApi, WorkspaceProject } from '@doist/todoist-api-typescript';
1
+ import { ActivityEvent, Comment, MoveTaskArgs, PersonalProject, Task, TodoistApi, WorkspaceProject } from '@doist/todoist-api-typescript';
2
2
  export { appendToQuery, buildResponsibleUserQueryFilter, filterTasksByResponsibleUser, RESPONSIBLE_USER_FILTERING, type ResponsibleUserFiltering, resolveResponsibleUser, } from './filter-helpers.js';
3
3
  export type Project = PersonalProject | WorkspaceProject;
4
4
  export declare function isPersonalProject(project: Project): project is PersonalProject;
@@ -52,6 +52,33 @@ declare function mapProject(project: Project): {
52
52
  inboxProject: boolean;
53
53
  viewStyle: string;
54
54
  };
55
+ /**
56
+ * Map a single Todoist comment to a more structured format, for LLM consumption.
57
+ * @param comment - The comment to map.
58
+ * @returns The mapped comment.
59
+ */
60
+ declare function mapComment(comment: Comment): {
61
+ id: string;
62
+ taskId: string | undefined;
63
+ projectId: string | undefined;
64
+ content: string;
65
+ postedAt: string;
66
+ postedUid: string;
67
+ fileAttachment: {
68
+ resourceType: string;
69
+ fileName: string | undefined;
70
+ fileSize: number | undefined;
71
+ fileType: string | undefined;
72
+ fileUrl: string | undefined;
73
+ fileDuration: number | undefined;
74
+ uploadState: "pending" | "completed" | undefined;
75
+ url: string | undefined;
76
+ title: string | undefined;
77
+ image: string | undefined;
78
+ imageWidth: number | undefined;
79
+ imageHeight: number | undefined;
80
+ } | undefined;
81
+ };
55
82
  /**
56
83
  * Map a single Todoist activity event to a more structured format, for LLM consumption.
57
84
  * @param event - The activity event to map.
@@ -94,6 +121,6 @@ declare function getTasksByFilter({ client, query, limit, cursor, }: {
94
121
  }[];
95
122
  nextCursor: string | null;
96
123
  }>;
97
- export { getTasksByFilter, mapActivityEvent, mapProject, mapTask };
124
+ export { getTasksByFilter, mapActivityEvent, mapComment, mapProject, mapTask };
98
125
  export type { MappedTask };
99
126
  //# sourceMappingURL=tool-helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tool-helpers.d.ts","sourceRoot":"","sources":["../src/tool-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,aAAa,EACb,YAAY,EACZ,eAAe,EACf,IAAI,EACJ,UAAU,EACV,gBAAgB,EACnB,MAAM,+BAA+B,CAAA;AAKtC,OAAO,EACH,aAAa,EACb,+BAA+B,EAC/B,4BAA4B,EAC5B,0BAA0B,EAC1B,KAAK,wBAAwB,EAC7B,sBAAsB,GACzB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,MAAM,OAAO,GAAG,eAAe,GAAG,gBAAgB,CAAA;AAExD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,eAAe,CAE9E;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,gBAAgB,CAEhF;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAC9B,MAAM,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,MAAM,EAClB,SAAS,CAAC,EAAE,MAAM,EAClB,QAAQ,CAAC,EAAE,MAAM,GAClB,YAAY,CAsBd;AAED;;;;GAIG;AACH,iBAAS,OAAO,CAAC,IAAI,EAAE,IAAI;;;;;;;;;;;;;;;;;EAmB1B;AAED,KAAK,UAAU,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAA;AAE5C;;;;GAIG;AACH,iBAAS,UAAU,CAAC,OAAO,EAAE,OAAO;;;;;;;;;EAWnC;AAED;;;;GAIG;AACH,iBAAS,gBAAgB,CAAC,KAAK,EAAE,aAAa;;;;;;;;;;EAY7C;AAWD,iBAAe,gBAAgB,CAAC,EAC5B,MAAM,EACN,KAAK,EACL,KAAK,EACL,MAAM,GACT,EAAE;IACC,MAAM,EAAE,UAAU,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7B;;;;;;;;;;;;;;;;;;;;GAkBA;AAED,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,EAAE,OAAO,EAAE,CAAA;AAClE,YAAY,EAAE,UAAU,EAAE,CAAA"}
1
+ {"version":3,"file":"tool-helpers.d.ts","sourceRoot":"","sources":["../src/tool-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,aAAa,EACb,OAAO,EACP,YAAY,EACZ,eAAe,EACf,IAAI,EACJ,UAAU,EACV,gBAAgB,EACnB,MAAM,+BAA+B,CAAA;AAKtC,OAAO,EACH,aAAa,EACb,+BAA+B,EAC/B,4BAA4B,EAC5B,0BAA0B,EAC1B,KAAK,wBAAwB,EAC7B,sBAAsB,GACzB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,MAAM,OAAO,GAAG,eAAe,GAAG,gBAAgB,CAAA;AAExD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,eAAe,CAE9E;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,gBAAgB,CAEhF;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAC9B,MAAM,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,MAAM,EAClB,SAAS,CAAC,EAAE,MAAM,EAClB,QAAQ,CAAC,EAAE,MAAM,GAClB,YAAY,CAsBd;AAED;;;;GAIG;AACH,iBAAS,OAAO,CAAC,IAAI,EAAE,IAAI;;;;;;;;;;;;;;;;;EAmB1B;AAED,KAAK,UAAU,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAA;AAE5C;;;;GAIG;AACH,iBAAS,UAAU,CAAC,OAAO,EAAE,OAAO;;;;;;;;;EAWnC;AAED;;;;GAIG;AACH,iBAAS,UAAU,CAAC,OAAO,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;EAyBnC;AAED;;;;GAIG;AACH,iBAAS,gBAAgB,CAAC,KAAK,EAAE,aAAa;;;;;;;;;;EAY7C;AAWD,iBAAe,gBAAgB,CAAC,EAC5B,MAAM,EACN,KAAK,EACL,KAAK,EACL,MAAM,GACT,EAAE;IACC,MAAM,EAAE,UAAU,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7B;;;;;;;;;;;;;;;;;;;;GAkBA;AAED,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,CAAA;AAC9E,YAAY,EAAE,UAAU,EAAE,CAAA"}
@@ -24,7 +24,8 @@ declare const addComments: {
24
24
  projectId: z.ZodOptional<z.ZodString>;
25
25
  content: z.ZodString;
26
26
  postedAt: z.ZodString;
27
- attachment: z.ZodOptional<z.ZodObject<{
27
+ postedUid: z.ZodOptional<z.ZodString>;
28
+ fileAttachment: z.ZodOptional<z.ZodObject<{
28
29
  resourceType: z.ZodString;
29
30
  fileName: z.ZodOptional<z.ZodString>;
30
31
  fileSize: z.ZodOptional<z.ZodNumber>;
@@ -32,53 +33,80 @@ declare const addComments: {
32
33
  fileUrl: z.ZodOptional<z.ZodString>;
33
34
  fileDuration: z.ZodOptional<z.ZodNumber>;
34
35
  uploadState: z.ZodOptional<z.ZodEnum<["pending", "completed"]>>;
36
+ url: z.ZodOptional<z.ZodString>;
37
+ title: z.ZodOptional<z.ZodString>;
38
+ image: z.ZodOptional<z.ZodString>;
39
+ imageWidth: z.ZodOptional<z.ZodNumber>;
40
+ imageHeight: z.ZodOptional<z.ZodNumber>;
35
41
  }, "strip", z.ZodTypeAny, {
36
42
  resourceType: string;
43
+ image?: string | undefined;
44
+ title?: string | undefined;
37
45
  fileName?: string | undefined;
38
46
  fileSize?: number | undefined;
39
47
  fileType?: string | undefined;
40
48
  fileUrl?: string | undefined;
41
49
  fileDuration?: number | undefined;
42
50
  uploadState?: "pending" | "completed" | undefined;
51
+ imageWidth?: number | undefined;
52
+ imageHeight?: number | undefined;
53
+ url?: string | undefined;
43
54
  }, {
44
55
  resourceType: string;
56
+ image?: string | undefined;
57
+ title?: string | undefined;
45
58
  fileName?: string | undefined;
46
59
  fileSize?: number | undefined;
47
60
  fileType?: string | undefined;
48
61
  fileUrl?: string | undefined;
49
62
  fileDuration?: number | undefined;
50
63
  uploadState?: "pending" | "completed" | undefined;
64
+ imageWidth?: number | undefined;
65
+ imageHeight?: number | undefined;
66
+ url?: string | undefined;
51
67
  }>>;
52
68
  }, "strip", z.ZodTypeAny, {
53
69
  content: string;
54
70
  id: string;
55
71
  postedAt: string;
56
72
  projectId?: string | undefined;
57
- taskId?: string | undefined;
58
- attachment?: {
73
+ fileAttachment?: {
59
74
  resourceType: string;
75
+ image?: string | undefined;
76
+ title?: string | undefined;
60
77
  fileName?: string | undefined;
61
78
  fileSize?: number | undefined;
62
79
  fileType?: string | undefined;
63
80
  fileUrl?: string | undefined;
64
81
  fileDuration?: number | undefined;
65
82
  uploadState?: "pending" | "completed" | undefined;
83
+ imageWidth?: number | undefined;
84
+ imageHeight?: number | undefined;
85
+ url?: string | undefined;
66
86
  } | undefined;
87
+ postedUid?: string | undefined;
88
+ taskId?: string | undefined;
67
89
  }, {
68
90
  content: string;
69
91
  id: string;
70
92
  postedAt: string;
71
93
  projectId?: string | undefined;
72
- taskId?: string | undefined;
73
- attachment?: {
94
+ fileAttachment?: {
74
95
  resourceType: string;
96
+ image?: string | undefined;
97
+ title?: string | undefined;
75
98
  fileName?: string | undefined;
76
99
  fileSize?: number | undefined;
77
100
  fileType?: string | undefined;
78
101
  fileUrl?: string | undefined;
79
102
  fileDuration?: number | undefined;
80
103
  uploadState?: "pending" | "completed" | undefined;
104
+ imageWidth?: number | undefined;
105
+ imageHeight?: number | undefined;
106
+ url?: string | undefined;
81
107
  } | undefined;
108
+ postedUid?: string | undefined;
109
+ taskId?: string | undefined;
82
110
  }>, "many">;
83
111
  totalCount: z.ZodNumber;
84
112
  addedCommentIds: z.ZodArray<z.ZodString, "many">;
@@ -93,29 +121,26 @@ declare const addComments: {
93
121
  textContent: string;
94
122
  structuredContent: {
95
123
  comments: {
96
- taskId: string | undefined;
97
124
  id: string;
125
+ taskId: string | undefined;
126
+ projectId: string | undefined;
98
127
  content: string;
99
128
  postedAt: string;
129
+ postedUid: string;
100
130
  fileAttachment: {
101
131
  resourceType: string;
102
- fileName?: string | null | undefined;
103
- fileSize?: number | null | undefined;
104
- fileType?: string | null | undefined;
105
- fileUrl?: string | null | undefined;
106
- fileDuration?: number | null | undefined;
107
- uploadState?: "pending" | "completed" | null | undefined;
108
- image?: string | null | undefined;
109
- imageWidth?: number | null | undefined;
110
- imageHeight?: number | null | undefined;
111
- url?: string | null | undefined;
112
- title?: string | null | undefined;
113
- } | null;
114
- postedUid: string;
115
- uidsToNotify: string[] | null;
116
- reactions: Record<string, string[]> | null;
117
- isDeleted: boolean;
118
- projectId?: string | undefined;
132
+ fileName: string | undefined;
133
+ fileSize: number | undefined;
134
+ fileType: string | undefined;
135
+ fileUrl: string | undefined;
136
+ fileDuration: number | undefined;
137
+ uploadState: "pending" | "completed" | undefined;
138
+ url: string | undefined;
139
+ title: string | undefined;
140
+ image: string | undefined;
141
+ imageWidth: number | undefined;
142
+ imageHeight: number | undefined;
143
+ } | undefined;
119
144
  }[];
120
145
  totalCount: number;
121
146
  addedCommentIds: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"add-comments.d.ts","sourceRoot":"","sources":["../../src/tools/add-comments.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA0BvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAyEopV,CAAC;4BAA6C,CAAC;4BAA6C,CAAC;2BAA4C,CAAC;gCAAiD,CAAC;+BAAgD,CAAC;yBAA2D,CAAC;8BAA+C,CAAC;+BAAgD,CAAC;uBAAwC,CAAC;yBAA0C,CAAC;;;;;;;;;;;;CAvBpkW,CAAA;AAsB/D,OAAO,EAAE,WAAW,EAAE,CAAA"}
1
+ {"version":3,"file":"add-comments.d.ts","sourceRoot":"","sources":["../../src/tools/add-comments.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA2BvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmD8C,CAAA;AAsB/D,OAAO,EAAE,WAAW,EAAE,CAAA"}
@@ -10,14 +10,14 @@ declare const addProjects: {
10
10
  viewStyle: z.ZodOptional<z.ZodEnum<["list", "board", "calendar"]>>;
11
11
  }, "strip", z.ZodTypeAny, {
12
12
  name: string;
13
- parentId?: string | undefined;
14
13
  isFavorite?: boolean | undefined;
15
14
  viewStyle?: "list" | "board" | "calendar" | undefined;
15
+ parentId?: string | undefined;
16
16
  }, {
17
17
  name: string;
18
- parentId?: string | undefined;
19
18
  isFavorite?: boolean | undefined;
20
19
  viewStyle?: "list" | "board" | "calendar" | undefined;
20
+ parentId?: string | undefined;
21
21
  }>, "many">;
22
22
  };
23
23
  outputSchema: {
@@ -35,18 +35,18 @@ declare const addProjects: {
35
35
  id: string;
36
36
  color: string;
37
37
  isFavorite: boolean;
38
+ viewStyle: string;
38
39
  isShared: boolean;
39
40
  inboxProject: boolean;
40
- viewStyle: string;
41
41
  parentId?: string | undefined;
42
42
  }, {
43
43
  name: string;
44
44
  id: string;
45
45
  color: string;
46
46
  isFavorite: boolean;
47
+ viewStyle: string;
47
48
  isShared: boolean;
48
49
  inboxProject: boolean;
49
- viewStyle: string;
50
50
  parentId?: string | undefined;
51
51
  }>, "many">;
52
52
  totalCount: z.ZodNumber;
@@ -54,9 +54,9 @@ declare const addProjects: {
54
54
  execute({ projects }: {
55
55
  projects: {
56
56
  name: string;
57
- parentId?: string | undefined;
58
57
  isFavorite?: boolean | undefined;
59
58
  viewStyle?: "list" | "board" | "calendar" | undefined;
59
+ parentId?: string | undefined;
60
60
  }[];
61
61
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
62
62
  textContent: string;
@@ -19,25 +19,25 @@ declare const addTasks: {
19
19
  }, "strip", z.ZodTypeAny, {
20
20
  content: string;
21
21
  description?: string | undefined;
22
- deadlineDate?: string | undefined;
23
- priority?: "p1" | "p2" | "p3" | "p4" | undefined;
22
+ parentId?: string | undefined;
24
23
  projectId?: string | undefined;
25
24
  sectionId?: string | undefined;
26
- parentId?: string | undefined;
27
25
  labels?: string[] | undefined;
28
26
  duration?: string | undefined;
27
+ priority?: "p1" | "p2" | "p3" | "p4" | undefined;
28
+ deadlineDate?: string | undefined;
29
29
  dueString?: string | undefined;
30
30
  responsibleUser?: string | undefined;
31
31
  }, {
32
32
  content: string;
33
33
  description?: string | undefined;
34
- deadlineDate?: string | undefined;
35
- priority?: "p1" | "p2" | "p3" | "p4" | undefined;
34
+ parentId?: string | undefined;
36
35
  projectId?: string | undefined;
37
36
  sectionId?: string | undefined;
38
- parentId?: string | undefined;
39
37
  labels?: string[] | undefined;
40
38
  duration?: string | undefined;
39
+ priority?: "p1" | "p2" | "p3" | "p4" | undefined;
40
+ deadlineDate?: string | undefined;
41
41
  dueString?: string | undefined;
42
42
  responsibleUser?: string | undefined;
43
43
  }>, "many">;
@@ -54,7 +54,7 @@ declare const addTasks: {
54
54
  projectId: z.ZodString;
55
55
  sectionId: z.ZodOptional<z.ZodString>;
56
56
  parentId: z.ZodOptional<z.ZodString>;
57
- labels: z.ZodArray<z.ZodString, "many">;
57
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
58
58
  duration: z.ZodOptional<z.ZodString>;
59
59
  responsibleUid: z.ZodOptional<z.ZodString>;
60
60
  assignedByUid: z.ZodOptional<z.ZodString>;
@@ -64,36 +64,36 @@ declare const addTasks: {
64
64
  content: string;
65
65
  description: string;
66
66
  id: string;
67
- recurring: string | boolean;
68
- priority: number;
69
67
  projectId: string;
70
- labels: string[];
71
68
  checked: boolean;
72
- dueDate?: string | undefined;
73
- deadlineDate?: string | undefined;
74
- sectionId?: string | undefined;
69
+ priority: number;
70
+ recurring: string | boolean;
75
71
  parentId?: string | undefined;
76
- duration?: string | undefined;
77
- responsibleUid?: string | undefined;
72
+ sectionId?: string | undefined;
78
73
  assignedByUid?: string | undefined;
74
+ responsibleUid?: string | undefined;
75
+ labels?: string[] | undefined;
76
+ duration?: string | undefined;
79
77
  completedAt?: string | undefined;
78
+ dueDate?: string | undefined;
79
+ deadlineDate?: string | undefined;
80
80
  }, {
81
81
  content: string;
82
82
  description: string;
83
83
  id: string;
84
- recurring: string | boolean;
85
- priority: number;
86
84
  projectId: string;
87
- labels: string[];
88
85
  checked: boolean;
89
- dueDate?: string | undefined;
90
- deadlineDate?: string | undefined;
91
- sectionId?: string | undefined;
86
+ priority: number;
87
+ recurring: string | boolean;
92
88
  parentId?: string | undefined;
93
- duration?: string | undefined;
94
- responsibleUid?: string | undefined;
89
+ sectionId?: string | undefined;
95
90
  assignedByUid?: string | undefined;
91
+ responsibleUid?: string | undefined;
92
+ labels?: string[] | undefined;
93
+ duration?: string | undefined;
96
94
  completedAt?: string | undefined;
95
+ dueDate?: string | undefined;
96
+ deadlineDate?: string | undefined;
97
97
  }>, "many">;
98
98
  totalCount: z.ZodNumber;
99
99
  };
@@ -101,13 +101,13 @@ declare const addTasks: {
101
101
  tasks: {
102
102
  content: string;
103
103
  description?: string | undefined;
104
- deadlineDate?: string | undefined;
105
- priority?: "p1" | "p2" | "p3" | "p4" | undefined;
104
+ parentId?: string | undefined;
106
105
  projectId?: string | undefined;
107
106
  sectionId?: string | undefined;
108
- parentId?: string | undefined;
109
107
  labels?: string[] | undefined;
110
108
  duration?: string | undefined;
109
+ priority?: "p1" | "p2" | "p3" | "p4" | undefined;
110
+ deadlineDate?: string | undefined;
111
111
  dueString?: string | undefined;
112
112
  responsibleUser?: string | undefined;
113
113
  }[];
@@ -12,12 +12,12 @@ declare const completeTasks: {
12
12
  error: z.ZodString;
13
13
  code: z.ZodOptional<z.ZodString>;
14
14
  }, "strip", z.ZodTypeAny, {
15
- item: string;
16
15
  error: string;
16
+ item: string;
17
17
  code?: string | undefined;
18
18
  }, {
19
- item: string;
20
19
  error: string;
20
+ item: string;
21
21
  code?: string | undefined;
22
22
  }>, "many">;
23
23
  totalRequested: z.ZodNumber;
@@ -52,12 +52,12 @@ declare const findActivity: {
52
52
  execute(args: {
53
53
  limit: number;
54
54
  projectId?: string | undefined;
55
- taskId?: string | undefined;
56
55
  objectType?: "comment" | "task" | "project" | undefined;
57
56
  objectId?: string | undefined;
58
57
  eventType?: "completed" | "added" | "updated" | "deleted" | "uncompleted" | "archived" | "unarchived" | "shared" | "left" | undefined;
59
58
  initiatorId?: string | undefined;
60
59
  cursor?: string | undefined;
60
+ taskId?: string | undefined;
61
61
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
62
62
  textContent: string;
63
63
  structuredContent: {
@@ -78,12 +78,12 @@ declare const findActivity: {
78
78
  appliedFilters: {
79
79
  limit: number;
80
80
  projectId?: string | undefined;
81
- taskId?: string | undefined;
82
81
  objectType?: "comment" | "task" | "project" | undefined;
83
82
  objectId?: string | undefined;
84
83
  eventType?: "completed" | "added" | "updated" | "deleted" | "uncompleted" | "archived" | "unarchived" | "shared" | "left" | undefined;
85
84
  initiatorId?: string | undefined;
86
85
  cursor?: string | undefined;
86
+ taskId?: string | undefined;
87
87
  };
88
88
  };
89
89
  }>;
@@ -16,7 +16,8 @@ declare const findComments: {
16
16
  projectId: z.ZodOptional<z.ZodString>;
17
17
  content: z.ZodString;
18
18
  postedAt: z.ZodString;
19
- attachment: z.ZodOptional<z.ZodObject<{
19
+ postedUid: z.ZodOptional<z.ZodString>;
20
+ fileAttachment: z.ZodOptional<z.ZodObject<{
20
21
  resourceType: z.ZodString;
21
22
  fileName: z.ZodOptional<z.ZodString>;
22
23
  fileSize: z.ZodOptional<z.ZodNumber>;
@@ -24,90 +25,114 @@ declare const findComments: {
24
25
  fileUrl: z.ZodOptional<z.ZodString>;
25
26
  fileDuration: z.ZodOptional<z.ZodNumber>;
26
27
  uploadState: z.ZodOptional<z.ZodEnum<["pending", "completed"]>>;
28
+ url: z.ZodOptional<z.ZodString>;
29
+ title: z.ZodOptional<z.ZodString>;
30
+ image: z.ZodOptional<z.ZodString>;
31
+ imageWidth: z.ZodOptional<z.ZodNumber>;
32
+ imageHeight: z.ZodOptional<z.ZodNumber>;
27
33
  }, "strip", z.ZodTypeAny, {
28
34
  resourceType: string;
35
+ image?: string | undefined;
36
+ title?: string | undefined;
29
37
  fileName?: string | undefined;
30
38
  fileSize?: number | undefined;
31
39
  fileType?: string | undefined;
32
40
  fileUrl?: string | undefined;
33
41
  fileDuration?: number | undefined;
34
42
  uploadState?: "pending" | "completed" | undefined;
43
+ imageWidth?: number | undefined;
44
+ imageHeight?: number | undefined;
45
+ url?: string | undefined;
35
46
  }, {
36
47
  resourceType: string;
48
+ image?: string | undefined;
49
+ title?: string | undefined;
37
50
  fileName?: string | undefined;
38
51
  fileSize?: number | undefined;
39
52
  fileType?: string | undefined;
40
53
  fileUrl?: string | undefined;
41
54
  fileDuration?: number | undefined;
42
55
  uploadState?: "pending" | "completed" | undefined;
56
+ imageWidth?: number | undefined;
57
+ imageHeight?: number | undefined;
58
+ url?: string | undefined;
43
59
  }>>;
44
60
  }, "strip", z.ZodTypeAny, {
45
61
  content: string;
46
62
  id: string;
47
63
  postedAt: string;
48
64
  projectId?: string | undefined;
49
- taskId?: string | undefined;
50
- attachment?: {
65
+ fileAttachment?: {
51
66
  resourceType: string;
67
+ image?: string | undefined;
68
+ title?: string | undefined;
52
69
  fileName?: string | undefined;
53
70
  fileSize?: number | undefined;
54
71
  fileType?: string | undefined;
55
72
  fileUrl?: string | undefined;
56
73
  fileDuration?: number | undefined;
57
74
  uploadState?: "pending" | "completed" | undefined;
75
+ imageWidth?: number | undefined;
76
+ imageHeight?: number | undefined;
77
+ url?: string | undefined;
58
78
  } | undefined;
79
+ postedUid?: string | undefined;
80
+ taskId?: string | undefined;
59
81
  }, {
60
82
  content: string;
61
83
  id: string;
62
84
  postedAt: string;
63
85
  projectId?: string | undefined;
64
- taskId?: string | undefined;
65
- attachment?: {
86
+ fileAttachment?: {
66
87
  resourceType: string;
88
+ image?: string | undefined;
89
+ title?: string | undefined;
67
90
  fileName?: string | undefined;
68
91
  fileSize?: number | undefined;
69
92
  fileType?: string | undefined;
70
93
  fileUrl?: string | undefined;
71
94
  fileDuration?: number | undefined;
72
95
  uploadState?: "pending" | "completed" | undefined;
96
+ imageWidth?: number | undefined;
97
+ imageHeight?: number | undefined;
98
+ url?: string | undefined;
73
99
  } | undefined;
100
+ postedUid?: string | undefined;
101
+ taskId?: string | undefined;
74
102
  }>, "many">;
75
103
  nextCursor: z.ZodOptional<z.ZodString>;
76
104
  totalCount: z.ZodNumber;
77
105
  };
78
106
  execute(args: {
79
107
  projectId?: string | undefined;
80
- taskId?: string | undefined;
81
108
  limit?: number | undefined;
82
109
  cursor?: string | undefined;
110
+ taskId?: string | undefined;
83
111
  commentId?: string | undefined;
84
112
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
85
113
  textContent: string;
86
114
  structuredContent: {
87
115
  comments: {
88
- taskId: string | undefined;
89
116
  id: string;
117
+ taskId: string | undefined;
118
+ projectId: string | undefined;
90
119
  content: string;
91
120
  postedAt: string;
121
+ postedUid: string;
92
122
  fileAttachment: {
93
123
  resourceType: string;
94
- fileName?: string | null | undefined;
95
- fileSize?: number | null | undefined;
96
- fileType?: string | null | undefined;
97
- fileUrl?: string | null | undefined;
98
- fileDuration?: number | null | undefined;
99
- uploadState?: "pending" | "completed" | null | undefined;
100
- image?: string | null | undefined;
101
- imageWidth?: number | null | undefined;
102
- imageHeight?: number | null | undefined;
103
- url?: string | null | undefined;
104
- title?: string | null | undefined;
105
- } | null;
106
- postedUid: string;
107
- uidsToNotify: string[] | null;
108
- reactions: Record<string, string[]> | null;
109
- isDeleted: boolean;
110
- projectId?: string | undefined;
124
+ fileName: string | undefined;
125
+ fileSize: number | undefined;
126
+ fileType: string | undefined;
127
+ fileUrl: string | undefined;
128
+ fileDuration: number | undefined;
129
+ uploadState: "pending" | "completed" | undefined;
130
+ url: string | undefined;
131
+ title: string | undefined;
132
+ image: string | undefined;
133
+ imageWidth: number | undefined;
134
+ imageHeight: number | undefined;
135
+ } | undefined;
111
136
  }[];
112
137
  searchType: string;
113
138
  searchId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"find-comments.d.ts","sourceRoot":"","sources":["../../src/tools/find-comments.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAgCvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BA+HgmR,CAAC;4BAA6C,CAAC;4BAA6C,CAAC;2BAA4C,CAAC;gCAAiD,CAAC;+BAAgD,CAAC;yBAA2D,CAAC;8BAA+C,CAAC;+BAAgD,CAAC;uBAAwC,CAAC;yBAA0C,CAAC;;;;;;;;;;;;;;;CApDjhS,CAAA;AAmD/D,OAAO,EAAE,YAAY,EAAE,CAAA"}
1
+ {"version":3,"file":"find-comments.d.ts","sourceRoot":"","sources":["../../src/tools/find-comments.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAiCvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6E6C,CAAA;AAmD/D,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -28,7 +28,7 @@ declare const findCompletedTasks: {
28
28
  projectId: z.ZodString;
29
29
  sectionId: z.ZodOptional<z.ZodString>;
30
30
  parentId: z.ZodOptional<z.ZodString>;
31
- labels: z.ZodArray<z.ZodString, "many">;
31
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
32
32
  duration: z.ZodOptional<z.ZodString>;
33
33
  responsibleUid: z.ZodOptional<z.ZodString>;
34
34
  assignedByUid: z.ZodOptional<z.ZodString>;
@@ -38,36 +38,36 @@ declare const findCompletedTasks: {
38
38
  content: string;
39
39
  description: string;
40
40
  id: string;
41
- recurring: string | boolean;
42
- priority: number;
43
41
  projectId: string;
44
- labels: string[];
45
42
  checked: boolean;
46
- dueDate?: string | undefined;
47
- deadlineDate?: string | undefined;
48
- sectionId?: string | undefined;
43
+ priority: number;
44
+ recurring: string | boolean;
49
45
  parentId?: string | undefined;
50
- duration?: string | undefined;
51
- responsibleUid?: string | undefined;
46
+ sectionId?: string | undefined;
52
47
  assignedByUid?: string | undefined;
48
+ responsibleUid?: string | undefined;
49
+ labels?: string[] | undefined;
50
+ duration?: string | undefined;
53
51
  completedAt?: string | undefined;
52
+ dueDate?: string | undefined;
53
+ deadlineDate?: string | undefined;
54
54
  }, {
55
55
  content: string;
56
56
  description: string;
57
57
  id: string;
58
- recurring: string | boolean;
59
- priority: number;
60
58
  projectId: string;
61
- labels: string[];
62
59
  checked: boolean;
63
- dueDate?: string | undefined;
64
- deadlineDate?: string | undefined;
65
- sectionId?: string | undefined;
60
+ priority: number;
61
+ recurring: string | boolean;
66
62
  parentId?: string | undefined;
67
- duration?: string | undefined;
68
- responsibleUid?: string | undefined;
63
+ sectionId?: string | undefined;
69
64
  assignedByUid?: string | undefined;
65
+ responsibleUid?: string | undefined;
66
+ labels?: string[] | undefined;
67
+ duration?: string | undefined;
70
68
  completedAt?: string | undefined;
69
+ dueDate?: string | undefined;
70
+ deadlineDate?: string | undefined;
71
71
  }>, "many">;
72
72
  nextCursor: z.ZodOptional<z.ZodString>;
73
73
  totalCount: z.ZodNumber;
@@ -79,11 +79,11 @@ declare const findCompletedTasks: {
79
79
  getBy: "due" | "completion";
80
80
  since: string;
81
81
  until: string;
82
+ parentId?: string | undefined;
83
+ workspaceId?: string | undefined;
82
84
  projectId?: string | undefined;
83
85
  sectionId?: string | undefined;
84
- parentId?: string | undefined;
85
86
  labels?: string[] | undefined;
86
- workspaceId?: string | undefined;
87
87
  cursor?: string | undefined;
88
88
  responsibleUser?: string | undefined;
89
89
  labelsOperator?: "and" | "or" | undefined;
@@ -116,11 +116,11 @@ declare const findCompletedTasks: {
116
116
  getBy: "due" | "completion";
117
117
  since: string;
118
118
  until: string;
119
+ parentId?: string | undefined;
120
+ workspaceId?: string | undefined;
119
121
  projectId?: string | undefined;
120
122
  sectionId?: string | undefined;
121
- parentId?: string | undefined;
122
123
  labels?: string[] | undefined;
123
- workspaceId?: string | undefined;
124
124
  cursor?: string | undefined;
125
125
  responsibleUser?: string | undefined;
126
126
  labelsOperator?: "and" | "or" | undefined;