@doist/todoist-sdk 8.5.0-next.1 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/cjs/consts/endpoints.js +1 -6
  2. package/dist/cjs/test-utils/test-defaults.js +15 -12
  3. package/dist/cjs/todoist-api.js +0 -128
  4. package/dist/cjs/types/activity/types.js +1 -1
  5. package/dist/cjs/types/comments/types.js +1 -1
  6. package/dist/cjs/types/index.js +0 -1
  7. package/dist/cjs/types/insights/types.js +6 -4
  8. package/dist/cjs/types/projects/types.js +2 -2
  9. package/dist/cjs/types/sections/types.js +3 -3
  10. package/dist/cjs/types/sync/commands/index.js +0 -1
  11. package/dist/cjs/types/sync/resource-types.js +0 -1
  12. package/dist/cjs/types/sync/resources/live-notifications.js +1 -1
  13. package/dist/cjs/types/sync/resources/notes.js +1 -1
  14. package/dist/cjs/types/sync/resources/user.js +4 -4
  15. package/dist/cjs/types/sync/resources/workspace-filters.js +2 -2
  16. package/dist/cjs/types/sync/resources/workspace-goals.js +2 -2
  17. package/dist/cjs/types/sync/resources/workspaces.js +3 -3
  18. package/dist/cjs/types/sync/response.js +10 -12
  19. package/dist/cjs/types/tasks/types.js +3 -3
  20. package/dist/cjs/types/workspaces/types.js +3 -3
  21. package/dist/cjs/utils/validators.js +46 -48
  22. package/dist/esm/consts/endpoints.js +0 -5
  23. package/dist/esm/test-utils/test-defaults.js +15 -12
  24. package/dist/esm/todoist-api.js +2 -130
  25. package/dist/esm/types/activity/types.js +1 -1
  26. package/dist/esm/types/comments/types.js +1 -1
  27. package/dist/esm/types/index.js +0 -1
  28. package/dist/esm/types/insights/types.js +6 -4
  29. package/dist/esm/types/projects/types.js +2 -2
  30. package/dist/esm/types/sections/types.js +3 -3
  31. package/dist/esm/types/sync/commands/index.js +0 -1
  32. package/dist/esm/types/sync/resource-types.js +0 -1
  33. package/dist/esm/types/sync/resources/live-notifications.js +1 -1
  34. package/dist/esm/types/sync/resources/notes.js +1 -1
  35. package/dist/esm/types/sync/resources/user.js +4 -4
  36. package/dist/esm/types/sync/resources/workspace-filters.js +2 -2
  37. package/dist/esm/types/sync/resources/workspace-goals.js +2 -2
  38. package/dist/esm/types/sync/resources/workspaces.js +3 -3
  39. package/dist/esm/types/sync/response.js +0 -2
  40. package/dist/esm/types/tasks/types.js +3 -3
  41. package/dist/esm/types/workspaces/types.js +3 -3
  42. package/dist/esm/utils/validators.js +0 -2
  43. package/dist/types/consts/endpoints.d.ts +2 -7
  44. package/dist/types/test-utils/test-defaults.d.ts +13 -13
  45. package/dist/types/todoist-api.d.ts +1 -12
  46. package/dist/types/types/activity/types.d.ts +1 -1
  47. package/dist/types/types/comments/types.d.ts +4 -4
  48. package/dist/types/types/folders/requests.d.ts +2 -2
  49. package/dist/types/types/index.d.ts +0 -1
  50. package/dist/types/types/insights/types.d.ts +9 -9
  51. package/dist/types/types/projects/requests.d.ts +1 -1
  52. package/dist/types/types/projects/types.d.ts +18 -18
  53. package/dist/types/types/sections/types.d.ts +9 -9
  54. package/dist/types/types/sync/commands/index.d.ts +0 -9
  55. package/dist/types/types/sync/commands/workspaces.d.ts +1 -1
  56. package/dist/types/types/sync/resource-types.d.ts +1 -1
  57. package/dist/types/types/sync/resources/live-notifications.d.ts +1 -1
  58. package/dist/types/types/sync/resources/notes.d.ts +1 -1
  59. package/dist/types/types/sync/resources/user.d.ts +4 -4
  60. package/dist/types/types/sync/resources/view-options.d.ts +6 -6
  61. package/dist/types/types/sync/resources/workspace-filters.d.ts +2 -2
  62. package/dist/types/types/sync/resources/workspace-goals.d.ts +2 -2
  63. package/dist/types/types/sync/resources/workspaces.d.ts +8 -8
  64. package/dist/types/types/sync/response.d.ts +45 -70
  65. package/dist/types/types/tasks/requests.d.ts +0 -1
  66. package/dist/types/types/tasks/types.d.ts +9 -9
  67. package/dist/types/types/workspaces/requests.d.ts +7 -7
  68. package/dist/types/types/workspaces/types.d.ts +6 -6
  69. package/dist/types/utils/validators.d.ts +64 -111
  70. package/package.json +1 -1
  71. package/dist/cjs/types/goals/index.js +0 -18
  72. package/dist/cjs/types/goals/requests.js +0 -2
  73. package/dist/cjs/types/goals/types.js +0 -29
  74. package/dist/cjs/types/sync/commands/goals.js +0 -2
  75. package/dist/esm/types/goals/index.js +0 -2
  76. package/dist/esm/types/goals/requests.js +0 -1
  77. package/dist/esm/types/goals/types.js +0 -26
  78. package/dist/esm/types/sync/commands/goals.js +0 -1
  79. package/dist/types/types/goals/index.d.ts +0 -2
  80. package/dist/types/types/goals/requests.d.ts +0 -33
  81. package/dist/types/types/goals/types.d.ts +0 -41
  82. package/dist/types/types/sync/commands/goals.d.ts +0 -33
@@ -32,7 +32,6 @@ export declare const GROUPED_BY_OPTIONS: readonly ["ASSIGNEE", "ADDED_DATE", "DU
32
32
  /** Field to group tasks by. */
33
33
  export type GroupedBy = (typeof GROUPED_BY_OPTIONS)[number];
34
34
  export declare const GroupedBySchema: z.ZodNullable<z.ZodEnum<{
35
- WORKSPACE: "WORKSPACE";
36
35
  PROJECT: "PROJECT";
37
36
  LABEL: "LABEL";
38
37
  ASSIGNEE: "ASSIGNEE";
@@ -40,19 +39,20 @@ export declare const GroupedBySchema: z.ZodNullable<z.ZodEnum<{
40
39
  DUE_DATE: "DUE_DATE";
41
40
  DEADLINE: "DEADLINE";
42
41
  PRIORITY: "PRIORITY";
42
+ WORKSPACE: "WORKSPACE";
43
43
  }>>;
44
44
  /** Available sorting options. */
45
45
  export declare const SORTED_BY_OPTIONS: readonly ["MANUAL", "ALPHABETICALLY", "ASSIGNEE", "DUE_DATE", "DEADLINE", "ADDED_DATE", "PRIORITY", "PROJECT", "WORKSPACE"];
46
46
  /** Field to sort tasks by. */
47
47
  export type SortedBy = (typeof SORTED_BY_OPTIONS)[number];
48
48
  export declare const SortedBySchema: z.ZodNullable<z.ZodEnum<{
49
- WORKSPACE: "WORKSPACE";
50
49
  PROJECT: "PROJECT";
51
50
  ASSIGNEE: "ASSIGNEE";
52
51
  ADDED_DATE: "ADDED_DATE";
53
52
  DUE_DATE: "DUE_DATE";
54
53
  DEADLINE: "DEADLINE";
55
54
  PRIORITY: "PRIORITY";
55
+ WORKSPACE: "WORKSPACE";
56
56
  MANUAL: "MANUAL";
57
57
  ALPHABETICALLY: "ALPHABETICALLY";
58
58
  }>>;
@@ -92,7 +92,6 @@ export declare const ViewOptionsSchema: z.ZodObject<{
92
92
  }>;
93
93
  objectId: z.ZodOptional<z.ZodString>;
94
94
  groupedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
95
- WORKSPACE: "WORKSPACE";
96
95
  PROJECT: "PROJECT";
97
96
  LABEL: "LABEL";
98
97
  ASSIGNEE: "ASSIGNEE";
@@ -100,6 +99,7 @@ export declare const ViewOptionsSchema: z.ZodObject<{
100
99
  DUE_DATE: "DUE_DATE";
101
100
  DEADLINE: "DEADLINE";
102
101
  PRIORITY: "PRIORITY";
102
+ WORKSPACE: "WORKSPACE";
103
103
  }>>>;
104
104
  filteredBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
105
  viewMode: z.ZodOptional<z.ZodEnum<{
@@ -109,13 +109,13 @@ export declare const ViewOptionsSchema: z.ZodObject<{
109
109
  }>>;
110
110
  showCompletedTasks: z.ZodOptional<z.ZodBoolean>;
111
111
  sortedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
112
- WORKSPACE: "WORKSPACE";
113
112
  PROJECT: "PROJECT";
114
113
  ASSIGNEE: "ASSIGNEE";
115
114
  ADDED_DATE: "ADDED_DATE";
116
115
  DUE_DATE: "DUE_DATE";
117
116
  DEADLINE: "DEADLINE";
118
117
  PRIORITY: "PRIORITY";
118
+ WORKSPACE: "WORKSPACE";
119
119
  MANUAL: "MANUAL";
120
120
  ALPHABETICALLY: "ALPHABETICALLY";
121
121
  }>>>;
@@ -133,7 +133,6 @@ export declare const ProjectViewOptionsDefaultsSchema: z.ZodObject<{
133
133
  CALENDAR: "CALENDAR";
134
134
  }>>>;
135
135
  groupedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
136
- WORKSPACE: "WORKSPACE";
137
136
  PROJECT: "PROJECT";
138
137
  LABEL: "LABEL";
139
138
  ASSIGNEE: "ASSIGNEE";
@@ -141,15 +140,16 @@ export declare const ProjectViewOptionsDefaultsSchema: z.ZodObject<{
141
140
  DUE_DATE: "DUE_DATE";
142
141
  DEADLINE: "DEADLINE";
143
142
  PRIORITY: "PRIORITY";
143
+ WORKSPACE: "WORKSPACE";
144
144
  }>>>;
145
145
  sortedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
146
- WORKSPACE: "WORKSPACE";
147
146
  PROJECT: "PROJECT";
148
147
  ASSIGNEE: "ASSIGNEE";
149
148
  ADDED_DATE: "ADDED_DATE";
150
149
  DUE_DATE: "DUE_DATE";
151
150
  DEADLINE: "DEADLINE";
152
151
  PRIORITY: "PRIORITY";
152
+ WORKSPACE: "WORKSPACE";
153
153
  MANUAL: "MANUAL";
154
154
  ALPHABETICALLY: "ALPHABETICALLY";
155
155
  }>>>;
@@ -11,7 +11,7 @@ export declare const WorkspaceFilterSchema: z.ZodObject<{
11
11
  isFrozen: z.ZodBoolean;
12
12
  creatorUid: z.ZodString;
13
13
  updaterUid: z.ZodString;
14
- createdAt: z.ZodString;
15
- updatedAt: z.ZodString;
14
+ createdAt: z.ZodCoercedDate<unknown>;
15
+ updatedAt: z.ZodCoercedDate<unknown>;
16
16
  }, z.core.$loose>;
17
17
  export type WorkspaceFilter = z.infer<typeof WorkspaceFilterSchema>;
@@ -23,7 +23,7 @@ export declare const WorkspaceGoalSchema: z.ZodObject<{
23
23
  totalItems: z.ZodNumber;
24
24
  }, z.core.$loose>>;
25
25
  creatorUid: z.ZodString;
26
- createdAt: z.ZodString;
27
- updatedAt: z.ZodString;
26
+ createdAt: z.ZodCoercedDate<unknown>;
27
+ updatedAt: z.ZodCoercedDate<unknown>;
28
28
  }, z.core.$loose>;
29
29
  export type WorkspaceGoal = z.infer<typeof WorkspaceGoalSchema>;
@@ -15,8 +15,8 @@ export declare const SyncWorkspaceSchema: z.ZodPipe<z.ZodObject<{
15
15
  logoSmall: z.ZodOptional<z.ZodString>;
16
16
  logoS640: z.ZodOptional<z.ZodString>;
17
17
  creatorId: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
18
- createdAt: z.ZodOptional<z.ZodString>;
19
- dateCreated: z.ZodOptional<z.ZodString>;
18
+ createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
19
+ dateCreated: z.ZodOptional<z.ZodCoercedDate<unknown>>;
20
20
  isDeleted: z.ZodBoolean;
21
21
  isCollapsed: z.ZodBoolean;
22
22
  role: z.ZodOptional<z.ZodEnum<{
@@ -51,11 +51,11 @@ export declare const SyncWorkspaceSchema: z.ZodPipe<z.ZodObject<{
51
51
  projectSortPreference: z.ZodOptional<z.ZodString>;
52
52
  defaultCollaborators: z.ZodOptional<z.ZodObject<{
53
53
  predefinedGroupIds: z.ZodArray<z.ZodString>;
54
- userIds: z.ZodArray<z.ZodNumber>;
54
+ userIds: z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>;
55
55
  }, z.core.$strip>>;
56
56
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
57
57
  }, z.core.$loose>, z.ZodTransform<{
58
- createdAt: string | undefined;
58
+ createdAt: Date | undefined;
59
59
  id: string;
60
60
  name: string;
61
61
  description: string;
@@ -92,7 +92,7 @@ export declare const SyncWorkspaceSchema: z.ZodPipe<z.ZodObject<{
92
92
  projectSortPreference?: string | undefined;
93
93
  defaultCollaborators?: {
94
94
  predefinedGroupIds: string[];
95
- userIds: number[];
95
+ userIds: string[];
96
96
  } | undefined;
97
97
  properties?: Record<string, unknown> | undefined;
98
98
  }, {
@@ -112,8 +112,8 @@ export declare const SyncWorkspaceSchema: z.ZodPipe<z.ZodObject<{
112
112
  logoMedium?: string | undefined;
113
113
  logoSmall?: string | undefined;
114
114
  logoS640?: string | undefined;
115
- createdAt?: string | undefined;
116
- dateCreated?: string | undefined;
115
+ createdAt?: Date | undefined;
116
+ dateCreated?: Date | undefined;
117
117
  role?: "ADMIN" | "MEMBER" | "GUEST" | undefined;
118
118
  limits?: {
119
119
  [x: string]: any;
@@ -135,7 +135,7 @@ export declare const SyncWorkspaceSchema: z.ZodPipe<z.ZodObject<{
135
135
  projectSortPreference?: string | undefined;
136
136
  defaultCollaborators?: {
137
137
  predefinedGroupIds: string[];
138
- userIds: number[];
138
+ userIds: string[];
139
139
  } | undefined;
140
140
  properties?: Record<string, unknown> | undefined;
141
141
  }>>;
@@ -41,9 +41,9 @@ export declare const SyncResponseSchema: z.ZodObject<{
41
41
  }, z.core.$strip>>;
42
42
  checked: z.ZodBoolean;
43
43
  isDeleted: z.ZodBoolean;
44
- addedAt: z.ZodNullable<z.ZodString>;
45
- completedAt: z.ZodNullable<z.ZodString>;
46
- updatedAt: z.ZodNullable<z.ZodString>;
44
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
45
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
46
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
47
47
  due: z.ZodNullable<z.ZodObject<{
48
48
  isRecurring: z.ZodBoolean;
49
49
  string: z.ZodString;
@@ -81,9 +81,9 @@ export declare const SyncResponseSchema: z.ZodObject<{
81
81
  } | null;
82
82
  checked: boolean;
83
83
  isDeleted: boolean;
84
- addedAt: string | null;
85
- completedAt: string | null;
86
- updatedAt: string | null;
84
+ addedAt: Date | null;
85
+ completedAt: Date | null;
86
+ updatedAt: Date | null;
87
87
  due: {
88
88
  isRecurring: boolean;
89
89
  string: string;
@@ -118,9 +118,9 @@ export declare const SyncResponseSchema: z.ZodObject<{
118
118
  } | null;
119
119
  checked: boolean;
120
120
  isDeleted: boolean;
121
- addedAt: string | null;
122
- completedAt: string | null;
123
- updatedAt: string | null;
121
+ addedAt: Date | null;
122
+ completedAt: Date | null;
123
+ updatedAt: Date | null;
124
124
  due: {
125
125
  isRecurring: boolean;
126
126
  string: string;
@@ -143,13 +143,13 @@ export declare const SyncResponseSchema: z.ZodObject<{
143
143
  canAssignTasks: boolean;
144
144
  childOrder: number;
145
145
  color: string;
146
- createdAt: string | null;
146
+ createdAt: Date | null;
147
147
  isArchived: boolean;
148
148
  isDeleted: boolean;
149
149
  isFavorite: boolean;
150
150
  isFrozen: boolean;
151
151
  name: string;
152
- updatedAt: string | null;
152
+ updatedAt: Date | null;
153
153
  viewStyle: string;
154
154
  defaultOrder: number;
155
155
  description: string;
@@ -163,13 +163,13 @@ export declare const SyncResponseSchema: z.ZodObject<{
163
163
  canAssignTasks: boolean;
164
164
  childOrder: number;
165
165
  color: string;
166
- createdAt: string | null;
166
+ createdAt: Date | null;
167
167
  isArchived: boolean;
168
168
  isDeleted: boolean;
169
169
  isFavorite: boolean;
170
170
  isFrozen: boolean;
171
171
  name: string;
172
- updatedAt: string | null;
172
+ updatedAt: Date | null;
173
173
  viewStyle: string;
174
174
  defaultOrder: number;
175
175
  description: string;
@@ -190,9 +190,9 @@ export declare const SyncResponseSchema: z.ZodObject<{
190
190
  id: z.ZodString;
191
191
  userId: z.ZodString;
192
192
  projectId: z.ZodString;
193
- addedAt: z.ZodString;
194
- updatedAt: z.ZodString;
195
- archivedAt: z.ZodNullable<z.ZodString>;
193
+ addedAt: z.ZodCoercedDate<unknown>;
194
+ updatedAt: z.ZodCoercedDate<unknown>;
195
+ archivedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
196
196
  name: z.ZodString;
197
197
  sectionOrder: z.ZodNumber;
198
198
  isArchived: z.ZodBoolean;
@@ -203,9 +203,9 @@ export declare const SyncResponseSchema: z.ZodObject<{
203
203
  id: string;
204
204
  userId: string;
205
205
  projectId: string;
206
- addedAt: string;
207
- updatedAt: string;
208
- archivedAt: string | null;
206
+ addedAt: Date;
207
+ updatedAt: Date;
208
+ archivedAt: Date | null;
209
209
  name: string;
210
210
  sectionOrder: number;
211
211
  isArchived: boolean;
@@ -215,9 +215,9 @@ export declare const SyncResponseSchema: z.ZodObject<{
215
215
  id: string;
216
216
  userId: string;
217
217
  projectId: string;
218
- addedAt: string;
219
- updatedAt: string;
220
- archivedAt: string | null;
218
+ addedAt: Date;
219
+ updatedAt: Date;
220
+ archivedAt: Date | null;
221
221
  name: string;
222
222
  sectionOrder: number;
223
223
  isArchived: boolean;
@@ -236,7 +236,7 @@ export declare const SyncResponseSchema: z.ZodObject<{
236
236
  itemId: z.ZodOptional<z.ZodString>;
237
237
  projectId: z.ZodOptional<z.ZodString>;
238
238
  content: z.ZodString;
239
- postedAt: z.ZodString;
239
+ postedAt: z.ZodCoercedDate<unknown>;
240
240
  fileAttachment: z.ZodNullable<z.ZodObject<{
241
241
  resourceType: z.ZodString;
242
242
  fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -264,7 +264,7 @@ export declare const SyncResponseSchema: z.ZodObject<{
264
264
  itemId: z.ZodOptional<z.ZodString>;
265
265
  projectId: z.ZodOptional<z.ZodString>;
266
266
  content: z.ZodString;
267
- postedAt: z.ZodString;
267
+ postedAt: z.ZodCoercedDate<unknown>;
268
268
  fileAttachment: z.ZodNullable<z.ZodObject<{
269
269
  resourceType: z.ZodString;
270
270
  fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -391,7 +391,7 @@ export declare const SyncResponseSchema: z.ZodObject<{
391
391
  goldTheme: z.ZodOptional<z.ZodBoolean>;
392
392
  migratedFromTdb: z.ZodOptional<z.ZodBoolean>;
393
393
  }, z.core.$loose>;
394
- freeTrailExpires: z.ZodOptional<z.ZodString>;
394
+ freeTrailExpires: z.ZodOptional<z.ZodCoercedDate<unknown>>;
395
395
  hasMagicNumber: z.ZodBoolean;
396
396
  hasPassword: z.ZodBoolean;
397
397
  hasStartedATrial: z.ZodOptional<z.ZodBoolean>;
@@ -404,7 +404,7 @@ export declare const SyncResponseSchema: z.ZodObject<{
404
404
  workspaceName: z.ZodString;
405
405
  memberCount: z.ZodNumber;
406
406
  }, z.core.$loose>>;
407
- joinedAt: z.ZodString;
407
+ joinedAt: z.ZodCoercedDate<unknown>;
408
408
  gettingStartedGuideProjects: z.ZodNullable<z.ZodArray<z.ZodObject<{
409
409
  onboardingUseCase: z.ZodString;
410
410
  projectId: z.ZodString;
@@ -432,12 +432,12 @@ export declare const SyncResponseSchema: z.ZodObject<{
432
432
  legacy_personal_plan: "legacy_personal_plan";
433
433
  teams_business_member: "teams_business_member";
434
434
  }>;
435
- premiumUntil: z.ZodNullable<z.ZodString>;
435
+ premiumUntil: z.ZodNullable<z.ZodCoercedDate<unknown>>;
436
436
  rambleSessionsUsage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
437
437
  currentCount: z.ZodNumber;
438
438
  limit: z.ZodNumber;
439
439
  remaining: z.ZodNumber;
440
- resetDate: z.ZodString;
440
+ resetDate: z.ZodCoercedDate<unknown>;
441
441
  }, z.core.$strip>>>;
442
442
  shareLimit: z.ZodNumber;
443
443
  sortOrder: z.ZodNumber;
@@ -461,7 +461,7 @@ export declare const SyncResponseSchema: z.ZodObject<{
461
461
  }, z.core.$loose>>;
462
462
  liveNotifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
463
463
  id: z.ZodString;
464
- createdAt: z.ZodString;
464
+ createdAt: z.ZodCoercedDate<unknown>;
465
465
  fromUid: z.ZodString;
466
466
  notificationType: z.ZodString;
467
467
  isUnread: z.ZodBoolean;
@@ -579,8 +579,8 @@ export declare const SyncResponseSchema: z.ZodObject<{
579
579
  logoSmall: z.ZodOptional<z.ZodString>;
580
580
  logoS640: z.ZodOptional<z.ZodString>;
581
581
  creatorId: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
582
- createdAt: z.ZodOptional<z.ZodString>;
583
- dateCreated: z.ZodOptional<z.ZodString>;
582
+ createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
583
+ dateCreated: z.ZodOptional<z.ZodCoercedDate<unknown>>;
584
584
  isDeleted: z.ZodBoolean;
585
585
  isCollapsed: z.ZodBoolean;
586
586
  role: z.ZodOptional<z.ZodEnum<{
@@ -615,11 +615,11 @@ export declare const SyncResponseSchema: z.ZodObject<{
615
615
  projectSortPreference: z.ZodOptional<z.ZodString>;
616
616
  defaultCollaborators: z.ZodOptional<z.ZodObject<{
617
617
  predefinedGroupIds: z.ZodArray<z.ZodString>;
618
- userIds: z.ZodArray<z.ZodNumber>;
618
+ userIds: z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>;
619
619
  }, z.core.$strip>>;
620
620
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
621
621
  }, z.core.$loose>, z.ZodTransform<{
622
- createdAt: string | undefined;
622
+ createdAt: Date | undefined;
623
623
  id: string;
624
624
  name: string;
625
625
  description: string;
@@ -656,7 +656,7 @@ export declare const SyncResponseSchema: z.ZodObject<{
656
656
  projectSortPreference?: string | undefined;
657
657
  defaultCollaborators?: {
658
658
  predefinedGroupIds: string[];
659
- userIds: number[];
659
+ userIds: string[];
660
660
  } | undefined;
661
661
  properties?: Record<string, unknown> | undefined;
662
662
  }, {
@@ -676,8 +676,8 @@ export declare const SyncResponseSchema: z.ZodObject<{
676
676
  logoMedium?: string | undefined;
677
677
  logoSmall?: string | undefined;
678
678
  logoS640?: string | undefined;
679
- createdAt?: string | undefined;
680
- dateCreated?: string | undefined;
679
+ createdAt?: Date | undefined;
680
+ dateCreated?: Date | undefined;
681
681
  role?: "ADMIN" | "MEMBER" | "GUEST" | undefined;
682
682
  limits?: {
683
683
  [x: string]: any;
@@ -699,7 +699,7 @@ export declare const SyncResponseSchema: z.ZodObject<{
699
699
  projectSortPreference?: string | undefined;
700
700
  defaultCollaborators?: {
701
701
  predefinedGroupIds: string[];
702
- userIds: number[];
702
+ userIds: string[];
703
703
  } | undefined;
704
704
  properties?: Record<string, unknown> | undefined;
705
705
  }>>>>;
@@ -729,8 +729,8 @@ export declare const SyncResponseSchema: z.ZodObject<{
729
729
  isFrozen: z.ZodBoolean;
730
730
  creatorUid: z.ZodString;
731
731
  updaterUid: z.ZodString;
732
- createdAt: z.ZodString;
733
- updatedAt: z.ZodString;
732
+ createdAt: z.ZodCoercedDate<unknown>;
733
+ updatedAt: z.ZodCoercedDate<unknown>;
734
734
  }, z.core.$loose>>>;
735
735
  viewOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
736
736
  viewType: z.ZodEnum<{
@@ -750,7 +750,6 @@ export declare const SyncResponseSchema: z.ZodObject<{
750
750
  }>;
751
751
  objectId: z.ZodOptional<z.ZodString>;
752
752
  groupedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
753
- WORKSPACE: "WORKSPACE";
754
753
  PROJECT: "PROJECT";
755
754
  LABEL: "LABEL";
756
755
  ASSIGNEE: "ASSIGNEE";
@@ -758,6 +757,7 @@ export declare const SyncResponseSchema: z.ZodObject<{
758
757
  DUE_DATE: "DUE_DATE";
759
758
  DEADLINE: "DEADLINE";
760
759
  PRIORITY: "PRIORITY";
760
+ WORKSPACE: "WORKSPACE";
761
761
  }>>>;
762
762
  filteredBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
763
763
  viewMode: z.ZodOptional<z.ZodEnum<{
@@ -767,13 +767,13 @@ export declare const SyncResponseSchema: z.ZodObject<{
767
767
  }>>;
768
768
  showCompletedTasks: z.ZodOptional<z.ZodBoolean>;
769
769
  sortedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
770
- WORKSPACE: "WORKSPACE";
771
770
  PROJECT: "PROJECT";
772
771
  ASSIGNEE: "ASSIGNEE";
773
772
  ADDED_DATE: "ADDED_DATE";
774
773
  DUE_DATE: "DUE_DATE";
775
774
  DEADLINE: "DEADLINE";
776
775
  PRIORITY: "PRIORITY";
776
+ WORKSPACE: "WORKSPACE";
777
777
  MANUAL: "MANUAL";
778
778
  ALPHABETICALLY: "ALPHABETICALLY";
779
779
  }>>>;
@@ -790,7 +790,6 @@ export declare const SyncResponseSchema: z.ZodObject<{
790
790
  CALENDAR: "CALENDAR";
791
791
  }>>>;
792
792
  groupedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
793
- WORKSPACE: "WORKSPACE";
794
793
  PROJECT: "PROJECT";
795
794
  LABEL: "LABEL";
796
795
  ASSIGNEE: "ASSIGNEE";
@@ -798,15 +797,16 @@ export declare const SyncResponseSchema: z.ZodObject<{
798
797
  DUE_DATE: "DUE_DATE";
799
798
  DEADLINE: "DEADLINE";
800
799
  PRIORITY: "PRIORITY";
800
+ WORKSPACE: "WORKSPACE";
801
801
  }>>>;
802
802
  sortedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
803
- WORKSPACE: "WORKSPACE";
804
803
  PROJECT: "PROJECT";
805
804
  ASSIGNEE: "ASSIGNEE";
806
805
  ADDED_DATE: "ADDED_DATE";
807
806
  DUE_DATE: "DUE_DATE";
808
807
  DEADLINE: "DEADLINE";
809
808
  PRIORITY: "PRIORITY";
809
+ WORKSPACE: "WORKSPACE";
810
810
  MANUAL: "MANUAL";
811
811
  ALPHABETICALLY: "ALPHABETICALLY";
812
812
  }>>>;
@@ -832,31 +832,6 @@ export declare const SyncResponseSchema: z.ZodObject<{
832
832
  defaultOrder: z.ZodNumber;
833
833
  childOrder: z.ZodNumber;
834
834
  }, z.core.$loose>>>;
835
- goals: z.ZodOptional<z.ZodArray<z.ZodObject<{
836
- id: z.ZodString;
837
- ownerType: z.ZodEnum<{
838
- USER: "USER";
839
- WORKSPACE: "WORKSPACE";
840
- }>;
841
- ownerId: z.ZodString;
842
- name: z.ZodString;
843
- description: z.ZodNullable<z.ZodString>;
844
- deadline: z.ZodNullable<z.ZodString>;
845
- parentGoalId: z.ZodNullable<z.ZodString>;
846
- childOrder: z.ZodNumber;
847
- isCompleted: z.ZodBoolean;
848
- completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
849
- responsibleUid: z.ZodNullable<z.ZodString>;
850
- isDeleted: z.ZodBoolean;
851
- progress: z.ZodOptional<z.ZodObject<{
852
- totalTaskCount: z.ZodNumber;
853
- completedTaskCount: z.ZodNumber;
854
- percentage: z.ZodNumber;
855
- }, z.core.$loose>>;
856
- creatorUid: z.ZodString;
857
- createdAt: z.ZodCoercedDate<unknown>;
858
- updatedAt: z.ZodCoercedDate<unknown>;
859
- }, z.core.$loose>>>;
860
835
  workspaceGoals: z.ZodOptional<z.ZodArray<z.ZodObject<{
861
836
  id: z.ZodString;
862
837
  workspaceId: z.ZodString;
@@ -870,8 +845,8 @@ export declare const SyncResponseSchema: z.ZodObject<{
870
845
  totalItems: z.ZodNumber;
871
846
  }, z.core.$loose>>;
872
847
  creatorUid: z.ZodString;
873
- createdAt: z.ZodString;
874
- updatedAt: z.ZodString;
848
+ createdAt: z.ZodCoercedDate<unknown>;
849
+ updatedAt: z.ZodCoercedDate<unknown>;
875
850
  }, z.core.$loose>>>;
876
851
  dayOrders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
877
852
  calendars: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -36,7 +36,6 @@ export type GetTasksArgs = {
36
36
  parentId?: string;
37
37
  label?: string;
38
38
  ids?: string[];
39
- goalId?: string;
40
39
  cursor?: string | null;
41
40
  limit?: number;
42
41
  };
@@ -59,9 +59,9 @@ export declare const TaskSchema: z.ZodPipe<z.ZodObject<{
59
59
  }, z.core.$strip>>;
60
60
  checked: z.ZodBoolean;
61
61
  isDeleted: z.ZodBoolean;
62
- addedAt: z.ZodNullable<z.ZodString>;
63
- completedAt: z.ZodNullable<z.ZodString>;
64
- updatedAt: z.ZodNullable<z.ZodString>;
62
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
63
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
64
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
65
65
  due: z.ZodNullable<z.ZodObject<{
66
66
  isRecurring: z.ZodBoolean;
67
67
  string: z.ZodString;
@@ -99,9 +99,9 @@ export declare const TaskSchema: z.ZodPipe<z.ZodObject<{
99
99
  } | null;
100
100
  checked: boolean;
101
101
  isDeleted: boolean;
102
- addedAt: string | null;
103
- completedAt: string | null;
104
- updatedAt: string | null;
102
+ addedAt: Date | null;
103
+ completedAt: Date | null;
104
+ updatedAt: Date | null;
105
105
  due: {
106
106
  isRecurring: boolean;
107
107
  string: string;
@@ -136,9 +136,9 @@ export declare const TaskSchema: z.ZodPipe<z.ZodObject<{
136
136
  } | null;
137
137
  checked: boolean;
138
138
  isDeleted: boolean;
139
- addedAt: string | null;
140
- completedAt: string | null;
141
- updatedAt: string | null;
139
+ addedAt: Date | null;
140
+ completedAt: Date | null;
141
+ updatedAt: Date | null;
142
142
  due: {
143
143
  isRecurring: boolean;
144
144
  string: string;
@@ -128,7 +128,7 @@ export type GetWorkspaceInvitationsArgs = {
128
128
  /**
129
129
  * The workspace ID to get invitations for.
130
130
  */
131
- workspaceId: number;
131
+ workspaceId: string;
132
132
  };
133
133
  /**
134
134
  * Arguments for deleting a workspace invitation.
@@ -137,7 +137,7 @@ export type DeleteWorkspaceInvitationArgs = {
137
137
  /**
138
138
  * The workspace ID.
139
139
  */
140
- workspaceId: number;
140
+ workspaceId: string;
141
141
  /**
142
142
  * The email address of the invitation to delete.
143
143
  */
@@ -163,7 +163,7 @@ export type JoinWorkspaceArgs = {
163
163
  /**
164
164
  * Optional workspace ID to join via domain auto-join.
165
165
  */
166
- workspaceId?: number | null;
166
+ workspaceId?: string | null;
167
167
  };
168
168
  /**
169
169
  * Arguments for uploading/updating workspace logo.
@@ -172,7 +172,7 @@ export type WorkspaceLogoArgs = {
172
172
  /**
173
173
  * The workspace ID.
174
174
  */
175
- workspaceId: number;
175
+ workspaceId: string;
176
176
  /**
177
177
  * The image file to upload (Buffer, Stream, or file path).
178
178
  */
@@ -193,7 +193,7 @@ export type GetWorkspacePlanDetailsArgs = {
193
193
  /**
194
194
  * The workspace ID.
195
195
  */
196
- workspaceId: number;
196
+ workspaceId: string;
197
197
  };
198
198
  /**
199
199
  * Arguments for getting workspace users (paginated).
@@ -202,7 +202,7 @@ export type GetWorkspaceUsersArgs = {
202
202
  /**
203
203
  * Optional workspace ID. If not provided, returns users for all workspaces.
204
204
  */
205
- workspaceId?: number | null;
205
+ workspaceId?: string | null;
206
206
  /**
207
207
  * Cursor for pagination.
208
208
  */
@@ -219,7 +219,7 @@ export type GetWorkspaceProjectsArgs = {
219
219
  /**
220
220
  * The workspace ID.
221
221
  */
222
- workspaceId: number;
222
+ workspaceId: string;
223
223
  /**
224
224
  * Cursor for pagination.
225
225
  */
@@ -98,7 +98,7 @@ export declare const WorkspacePlanDetailsSchema: z.ZodObject<{
98
98
  interval: z.ZodOptional<z.ZodString>;
99
99
  formatted: z.ZodOptional<z.ZodString>;
100
100
  }, z.core.$strip>>;
101
- workspaceId: z.ZodNumber;
101
+ workspaceId: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
102
102
  isTrialing: z.ZodBoolean;
103
103
  trialEndsAt: z.ZodNullable<z.ZodString>;
104
104
  cancelAtPeriodEnd: z.ZodBoolean;
@@ -181,12 +181,12 @@ export declare const WorkspaceSchema: z.ZodPipe<z.ZodObject<{
181
181
  logoMedium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
182
182
  logoSmall: z.ZodOptional<z.ZodNullable<z.ZodString>>;
183
183
  logoS640: z.ZodOptional<z.ZodNullable<z.ZodString>>;
184
- createdAt: z.ZodOptional<z.ZodString>;
185
- dateCreated: z.ZodOptional<z.ZodString>;
184
+ createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
185
+ dateCreated: z.ZodOptional<z.ZodCoercedDate<unknown>>;
186
186
  creatorId: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
187
187
  properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
188
188
  }, z.core.$strip>, z.ZodTransform<{
189
- createdAt: string | undefined;
189
+ createdAt: Date | undefined;
190
190
  id: string;
191
191
  name: string;
192
192
  plan: "STARTER" | "BUSINESS";
@@ -224,8 +224,8 @@ export declare const WorkspaceSchema: z.ZodPipe<z.ZodObject<{
224
224
  logoMedium?: string | null | undefined;
225
225
  logoSmall?: string | null | undefined;
226
226
  logoS640?: string | null | undefined;
227
- createdAt?: string | undefined;
228
- dateCreated?: string | undefined;
227
+ createdAt?: Date | undefined;
228
+ dateCreated?: Date | undefined;
229
229
  }>>;
230
230
  export type Workspace = z.infer<typeof WorkspaceSchema>;
231
231
  export declare const MemberActivityInfoSchema: z.ZodObject<{