@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.
@@ -13,7 +13,7 @@ declare const TaskSchema: z.ZodObject<{
13
13
  projectId: z.ZodString;
14
14
  sectionId: z.ZodOptional<z.ZodString>;
15
15
  parentId: z.ZodOptional<z.ZodString>;
16
- labels: z.ZodArray<z.ZodString, "many">;
16
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17
17
  duration: z.ZodOptional<z.ZodString>;
18
18
  responsibleUid: z.ZodOptional<z.ZodString>;
19
19
  assignedByUid: z.ZodOptional<z.ZodString>;
@@ -23,36 +23,36 @@ declare const TaskSchema: z.ZodObject<{
23
23
  content: string;
24
24
  description: string;
25
25
  id: string;
26
- recurring: string | boolean;
27
- priority: number;
28
26
  projectId: string;
29
- labels: string[];
30
27
  checked: boolean;
31
- dueDate?: string | undefined;
32
- deadlineDate?: string | undefined;
33
- sectionId?: string | undefined;
28
+ priority: number;
29
+ recurring: string | boolean;
34
30
  parentId?: string | undefined;
35
- duration?: string | undefined;
36
- responsibleUid?: string | undefined;
31
+ sectionId?: string | undefined;
37
32
  assignedByUid?: string | undefined;
33
+ responsibleUid?: string | undefined;
34
+ labels?: string[] | undefined;
35
+ duration?: string | undefined;
38
36
  completedAt?: string | undefined;
37
+ dueDate?: string | undefined;
38
+ deadlineDate?: string | undefined;
39
39
  }, {
40
40
  content: string;
41
41
  description: string;
42
42
  id: string;
43
- recurring: string | boolean;
44
- priority: number;
45
43
  projectId: string;
46
- labels: string[];
47
44
  checked: boolean;
48
- dueDate?: string | undefined;
49
- deadlineDate?: string | undefined;
50
- sectionId?: string | undefined;
45
+ priority: number;
46
+ recurring: string | boolean;
51
47
  parentId?: string | undefined;
52
- duration?: string | undefined;
53
- responsibleUid?: string | undefined;
48
+ sectionId?: string | undefined;
54
49
  assignedByUid?: string | undefined;
50
+ responsibleUid?: string | undefined;
51
+ labels?: string[] | undefined;
52
+ duration?: string | undefined;
55
53
  completedAt?: string | undefined;
54
+ dueDate?: string | undefined;
55
+ deadlineDate?: string | undefined;
56
56
  }>;
57
57
  /**
58
58
  * Schema for a mapped project object returned by tools
@@ -71,18 +71,18 @@ declare const ProjectSchema: z.ZodObject<{
71
71
  id: string;
72
72
  color: string;
73
73
  isFavorite: boolean;
74
+ viewStyle: string;
74
75
  isShared: boolean;
75
76
  inboxProject: boolean;
76
- viewStyle: string;
77
77
  parentId?: string | undefined;
78
78
  }, {
79
79
  name: string;
80
80
  id: string;
81
81
  color: string;
82
82
  isFavorite: boolean;
83
+ viewStyle: string;
83
84
  isShared: boolean;
84
85
  inboxProject: boolean;
85
- viewStyle: string;
86
86
  parentId?: string | undefined;
87
87
  }>;
88
88
  /**
@@ -107,7 +107,8 @@ declare const CommentSchema: z.ZodObject<{
107
107
  projectId: z.ZodOptional<z.ZodString>;
108
108
  content: z.ZodString;
109
109
  postedAt: z.ZodString;
110
- attachment: z.ZodOptional<z.ZodObject<{
110
+ postedUid: z.ZodOptional<z.ZodString>;
111
+ fileAttachment: z.ZodOptional<z.ZodObject<{
111
112
  resourceType: z.ZodString;
112
113
  fileName: z.ZodOptional<z.ZodString>;
113
114
  fileSize: z.ZodOptional<z.ZodNumber>;
@@ -115,53 +116,80 @@ declare const CommentSchema: z.ZodObject<{
115
116
  fileUrl: z.ZodOptional<z.ZodString>;
116
117
  fileDuration: z.ZodOptional<z.ZodNumber>;
117
118
  uploadState: z.ZodOptional<z.ZodEnum<["pending", "completed"]>>;
119
+ url: z.ZodOptional<z.ZodString>;
120
+ title: z.ZodOptional<z.ZodString>;
121
+ image: z.ZodOptional<z.ZodString>;
122
+ imageWidth: z.ZodOptional<z.ZodNumber>;
123
+ imageHeight: z.ZodOptional<z.ZodNumber>;
118
124
  }, "strip", z.ZodTypeAny, {
119
125
  resourceType: string;
126
+ image?: string | undefined;
127
+ title?: string | undefined;
120
128
  fileName?: string | undefined;
121
129
  fileSize?: number | undefined;
122
130
  fileType?: string | undefined;
123
131
  fileUrl?: string | undefined;
124
132
  fileDuration?: number | undefined;
125
133
  uploadState?: "pending" | "completed" | undefined;
134
+ imageWidth?: number | undefined;
135
+ imageHeight?: number | undefined;
136
+ url?: string | undefined;
126
137
  }, {
127
138
  resourceType: string;
139
+ image?: string | undefined;
140
+ title?: string | undefined;
128
141
  fileName?: string | undefined;
129
142
  fileSize?: number | undefined;
130
143
  fileType?: string | undefined;
131
144
  fileUrl?: string | undefined;
132
145
  fileDuration?: number | undefined;
133
146
  uploadState?: "pending" | "completed" | undefined;
147
+ imageWidth?: number | undefined;
148
+ imageHeight?: number | undefined;
149
+ url?: string | undefined;
134
150
  }>>;
135
151
  }, "strip", z.ZodTypeAny, {
136
152
  content: string;
137
153
  id: string;
138
154
  postedAt: string;
139
155
  projectId?: string | undefined;
140
- taskId?: string | undefined;
141
- attachment?: {
156
+ fileAttachment?: {
142
157
  resourceType: string;
158
+ image?: string | undefined;
159
+ title?: string | undefined;
143
160
  fileName?: string | undefined;
144
161
  fileSize?: number | undefined;
145
162
  fileType?: string | undefined;
146
163
  fileUrl?: string | undefined;
147
164
  fileDuration?: number | undefined;
148
165
  uploadState?: "pending" | "completed" | undefined;
166
+ imageWidth?: number | undefined;
167
+ imageHeight?: number | undefined;
168
+ url?: string | undefined;
149
169
  } | undefined;
170
+ postedUid?: string | undefined;
171
+ taskId?: string | undefined;
150
172
  }, {
151
173
  content: string;
152
174
  id: string;
153
175
  postedAt: string;
154
176
  projectId?: string | undefined;
155
- taskId?: string | undefined;
156
- attachment?: {
177
+ fileAttachment?: {
157
178
  resourceType: string;
179
+ image?: string | undefined;
180
+ title?: string | undefined;
158
181
  fileName?: string | undefined;
159
182
  fileSize?: number | undefined;
160
183
  fileType?: string | undefined;
161
184
  fileUrl?: string | undefined;
162
185
  fileDuration?: number | undefined;
163
186
  uploadState?: "pending" | "completed" | undefined;
187
+ imageWidth?: number | undefined;
188
+ imageHeight?: number | undefined;
189
+ url?: string | undefined;
164
190
  } | undefined;
191
+ postedUid?: string | undefined;
192
+ taskId?: string | undefined;
165
193
  }>;
166
194
  /**
167
195
  * Schema for an activity event object returned by tools
@@ -221,12 +249,12 @@ declare const FailureSchema: z.ZodObject<{
221
249
  error: z.ZodString;
222
250
  code: z.ZodOptional<z.ZodString>;
223
251
  }, "strip", z.ZodTypeAny, {
224
- item: string;
225
252
  error: string;
253
+ item: string;
226
254
  code?: string | undefined;
227
255
  }, {
228
- item: string;
229
256
  error: string;
257
+ item: string;
230
258
  code?: string | undefined;
231
259
  }>;
232
260
  export { ActivityEventSchema, CollaboratorSchema, CommentSchema, FailureSchema, ProjectSchema, SectionSchema, TaskSchema, };
@@ -1 +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"}
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;AA0BF;;GAEG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQjB,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"}
@@ -1,9 +1,10 @@
1
1
  /**
2
- * Removes all null fields, empty objects, and empty arrays from an object recursively.
2
+ * Removes all null fields and empty objects from an object recursively.
3
+ * Empty arrays are preserved as they carry semantic meaning (e.g., "no results found").
3
4
  * This ensures that data sent to agents doesn't include unnecessary empty values.
4
5
  *
5
6
  * @param obj - The object to sanitize
6
- * @returns A new object with all null fields, empty objects, and empty arrays removed
7
+ * @returns A new object with all null fields and empty objects removed
7
8
  */
8
9
  export declare function removeNullFields<T>(obj: T): T;
9
10
  //# sourceMappingURL=sanitize-data.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sanitize-data.d.ts","sourceRoot":"","sources":["../../src/utils/sanitize-data.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAqC7C"}
1
+ {"version":3,"file":"sanitize-data.d.ts","sourceRoot":"","sources":["../../src/utils/sanitize-data.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAiC7C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doist/todoist-ai",
3
- "version": "4.17.1",
3
+ "version": "4.17.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",