@doist/todoist-api-typescript 7.5.0 → 7.6.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.
@@ -9,7 +9,7 @@ export declare const DueDateSchema: z.ZodObject<{
9
9
  }, z.core.$strip>;
10
10
  /**
11
11
  * Represents a due date for a task.
12
- * @see https://todoist.com/api/v1/docs#tag/Tasks/operation/get_tasks_api_v1_tasks_get
12
+ * @see https://developer.todoist.com/api/v1/#tag/Tasks/operation/get_tasks_api_v1_tasks_get
13
13
  */
14
14
  export type DueDate = z.infer<typeof DueDateSchema>;
15
15
  /** Available duration units for task deadlines. */
@@ -25,7 +25,7 @@ export declare const DurationSchema: z.ZodObject<{
25
25
  }, z.core.$strip>;
26
26
  /**
27
27
  * Represents a duration for a task deadline.
28
- * @see https://todoist.com/api/v1/docs#tag/Tasks
28
+ * @see https://developer.todoist.com/api/v1/#tag/Tasks
29
29
  */
30
30
  export type Duration = z.infer<typeof DurationSchema>;
31
31
  export declare const DeadlineSchema: z.ZodObject<{
@@ -157,7 +157,7 @@ export declare const TaskSchema: z.ZodPipe<z.ZodObject<{
157
157
  }>>;
158
158
  /**
159
159
  * Represents a task in Todoist.
160
- * @see https://todoist.com/api/v1/docs#tag/Tasks
160
+ * @see https://developer.todoist.com/api/v1/#tag/Tasks
161
161
  */
162
162
  export type Task = z.infer<typeof TaskSchema>;
163
163
  /**
@@ -345,19 +345,19 @@ export declare const WorkspaceProjectSchema: z.ZodPipe<z.ZodObject<{
345
345
  }>>;
346
346
  /**
347
347
  * Represents a personal project in Todoist.
348
- * @see https://todoist.com/api/v1/docs#tag/Projects
348
+ * @see https://developer.todoist.com/api/v1/#tag/Projects
349
349
  */
350
350
  export type PersonalProject = z.infer<typeof PersonalProjectSchema>;
351
351
  /**
352
352
  * Represents a workspace project in Todoist.
353
- * @see https://todoist.com/api/v1/docs#tag/Projects
353
+ * @see https://developer.todoist.com/api/v1/#tag/Projects
354
354
  */
355
355
  export type WorkspaceProject = z.infer<typeof WorkspaceProjectSchema>;
356
356
  /** Available project view styles. */
357
357
  export declare const PROJECT_VIEW_STYLES: readonly ["list", "board", "calendar"];
358
358
  /**
359
359
  * View style for a project.
360
- * @see https://todoist.com/api/v1/docs#tag/Projects
360
+ * @see https://developer.todoist.com/api/v1/#tag/Projects
361
361
  */
362
362
  export type ProjectViewStyle = (typeof PROJECT_VIEW_STYLES)[number];
363
363
  export declare const SectionSchema: z.ZodPipe<z.ZodObject<{
@@ -400,7 +400,7 @@ export declare const SectionSchema: z.ZodPipe<z.ZodObject<{
400
400
  }>>;
401
401
  /**
402
402
  * Represents a section in a Todoist project.
403
- * @see https://todoist.com/api/v1/docs#tag/Sections
403
+ * @see https://developer.todoist.com/api/v1/#tag/Sections
404
404
  */
405
405
  export type Section = z.infer<typeof SectionSchema>;
406
406
  export declare const LabelSchema: z.ZodObject<{
@@ -412,7 +412,7 @@ export declare const LabelSchema: z.ZodObject<{
412
412
  }, z.core.$strip>;
413
413
  /**
414
414
  * Represents a label in Todoist.
415
- * @see https://todoist.com/api/v1/docs#tag/Labels
415
+ * @see https://developer.todoist.com/api/v1/#tag/Labels
416
416
  */
417
417
  export type Label = z.infer<typeof LabelSchema>;
418
418
  /** Available file attachment upload states. */
@@ -438,7 +438,7 @@ export declare const AttachmentSchema: z.ZodObject<{
438
438
  }, z.core.$strip>;
439
439
  /**
440
440
  * Represents a file attachment in a comment.
441
- * @see https://todoist.com/api/v1/docs#tag/Sync/Comments/File-Attachments
441
+ * @see https://developer.todoist.com/api/v1/#tag/Sync/Comments/File-Attachments
442
442
  */
443
443
  export type Attachment = z.infer<typeof AttachmentSchema>;
444
444
  export declare const RawCommentSchema: z.ZodObject<{
@@ -471,7 +471,7 @@ export declare const RawCommentSchema: z.ZodObject<{
471
471
  }, z.core.$strip>;
472
472
  /**
473
473
  * Represents a raw comment response from the API.
474
- * @see https://todoist.com/api/v1/docs#tag/Comments
474
+ * @see https://developer.todoist.com/api/v1/#tag/Comments
475
475
  */
476
476
  export type RawComment = z.infer<typeof RawCommentSchema>;
477
477
  export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
@@ -552,7 +552,7 @@ export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
552
552
  }>>;
553
553
  /**
554
554
  * Represents a comment in Todoist.
555
- * @see https://todoist.com/api/v1/docs#tag/Comments
555
+ * @see https://developer.todoist.com/api/v1/#tag/Comments
556
556
  */
557
557
  export type Comment = z.infer<typeof CommentSchema>;
558
558
  export declare const UserSchema: z.ZodObject<{
@@ -562,7 +562,7 @@ export declare const UserSchema: z.ZodObject<{
562
562
  }, z.core.$strip>;
563
563
  /**
564
564
  * Represents a user in Todoist (simplified for collaborators).
565
- * @see https://todoist.com/api/v1/docs#tag/User
565
+ * @see https://developer.todoist.com/api/v1/#tag/User
566
566
  */
567
567
  export type User = z.infer<typeof UserSchema>;
568
568
  export declare const TimezoneInfoSchema: z.ZodObject<{
@@ -617,7 +617,7 @@ export declare const CurrentUserSchema: z.ZodObject<{
617
617
  }, z.core.$strip>;
618
618
  /**
619
619
  * Represents the current authenticated user with detailed information.
620
- * @see https://todoist.com/api/v1/docs#tag/User
620
+ * @see https://developer.todoist.com/api/v1/#tag/User
621
621
  */
622
622
  export type CurrentUser = z.infer<typeof CurrentUserSchema>;
623
623
  export declare const StreakSchema: z.ZodObject<{
@@ -731,7 +731,7 @@ export declare const ColorSchema: z.ZodObject<{
731
731
  }, z.core.$strip>;
732
732
  /**
733
733
  * Represents a color in Todoist.
734
- * @see https://todoist.com/api/v1/docs#tag/Colors
734
+ * @see https://developer.todoist.com/api/v1/#tag/Colors
735
735
  */
736
736
  export type Color = z.infer<typeof ColorSchema>;
737
737
  /**
@@ -968,4 +968,244 @@ export declare const WorkspaceSchema: z.ZodObject<{
968
968
  properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
969
969
  }, z.core.$strip>;
970
970
  export type Workspace = z.infer<typeof WorkspaceSchema>;
971
+ export declare const MemberActivityInfoSchema: z.ZodObject<{
972
+ userId: z.ZodString;
973
+ tasksAssigned: z.ZodNumber;
974
+ tasksOverdue: z.ZodNumber;
975
+ }, z.core.$strip>;
976
+ /**
977
+ * Represents activity information for a workspace member.
978
+ */
979
+ export type MemberActivityInfo = z.infer<typeof MemberActivityInfoSchema>;
980
+ export declare const WorkspaceUserTaskSchema: z.ZodObject<{
981
+ id: z.ZodString;
982
+ content: z.ZodString;
983
+ responsibleUid: z.ZodNullable<z.ZodString>;
984
+ due: z.ZodNullable<z.ZodObject<{
985
+ isRecurring: z.ZodBoolean;
986
+ string: z.ZodString;
987
+ date: z.ZodString;
988
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
989
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
990
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
991
+ }, z.core.$strip>>;
992
+ deadline: z.ZodNullable<z.ZodObject<{
993
+ date: z.ZodString;
994
+ lang: z.ZodString;
995
+ }, z.core.$strip>>;
996
+ labels: z.ZodArray<z.ZodString>;
997
+ notesCount: z.ZodNumber;
998
+ projectId: z.ZodString;
999
+ projectName: z.ZodString;
1000
+ priority: z.ZodNumber;
1001
+ description: z.ZodString;
1002
+ isOverdue: z.ZodBoolean;
1003
+ }, z.core.$strip>;
1004
+ /**
1005
+ * Represents a task assigned to a workspace user.
1006
+ */
1007
+ export type WorkspaceUserTask = z.infer<typeof WorkspaceUserTaskSchema>;
1008
+ export declare const DayActivitySchema: z.ZodObject<{
1009
+ date: z.ZodString;
1010
+ totalCount: z.ZodNumber;
1011
+ }, z.core.$strip>;
1012
+ /** Daily activity count for a specific date. */
1013
+ export type DayActivity = z.infer<typeof DayActivitySchema>;
1014
+ export declare const WeekRollupSchema: z.ZodObject<{
1015
+ fromDate: z.ZodString;
1016
+ toDate: z.ZodString;
1017
+ totalCount: z.ZodNumber;
1018
+ }, z.core.$strip>;
1019
+ /** Weekly rollup of activity data. */
1020
+ export type WeekRollup = z.infer<typeof WeekRollupSchema>;
1021
+ export declare const ProjectActivityStatsSchema: z.ZodObject<{
1022
+ dayItems: z.ZodArray<z.ZodObject<{
1023
+ date: z.ZodString;
1024
+ totalCount: z.ZodNumber;
1025
+ }, z.core.$strip>>;
1026
+ weekItems: z.ZodNullable<z.ZodArray<z.ZodObject<{
1027
+ fromDate: z.ZodString;
1028
+ toDate: z.ZodString;
1029
+ totalCount: z.ZodNumber;
1030
+ }, z.core.$strip>>>;
1031
+ }, z.core.$strip>;
1032
+ /** Project activity statistics with daily and optional weekly rollups. */
1033
+ export type ProjectActivityStats = z.infer<typeof ProjectActivityStatsSchema>;
1034
+ /** Available project health statuses. */
1035
+ export declare const HEALTH_STATUSES: readonly ["UNKNOWN", "ON_TRACK", "AT_RISK", "CRITICAL", "EXCELLENT", "ERROR"];
1036
+ /** Health status of a project. */
1037
+ export type HealthStatus = (typeof HEALTH_STATUSES)[number];
1038
+ export declare const TaskRecommendationSchema: z.ZodObject<{
1039
+ taskId: z.ZodString;
1040
+ recommendation: z.ZodString;
1041
+ }, z.core.$strip>;
1042
+ /** A recommendation for a specific task. */
1043
+ export type TaskRecommendation = z.infer<typeof TaskRecommendationSchema>;
1044
+ export declare const ProjectHealthSchema: z.ZodObject<{
1045
+ status: z.ZodEnum<{
1046
+ UNKNOWN: "UNKNOWN";
1047
+ ON_TRACK: "ON_TRACK";
1048
+ AT_RISK: "AT_RISK";
1049
+ CRITICAL: "CRITICAL";
1050
+ EXCELLENT: "EXCELLENT";
1051
+ ERROR: "ERROR";
1052
+ }>;
1053
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1054
+ descriptionSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1055
+ taskRecommendations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1056
+ taskId: z.ZodString;
1057
+ recommendation: z.ZodString;
1058
+ }, z.core.$strip>>>>;
1059
+ projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1060
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1061
+ isStale: z.ZodDefault<z.ZodBoolean>;
1062
+ updateInProgress: z.ZodDefault<z.ZodBoolean>;
1063
+ }, z.core.$strip>;
1064
+ /** Project health status and recommendations. */
1065
+ export type ProjectHealth = z.infer<typeof ProjectHealthSchema>;
1066
+ export declare const ProjectMetricsSchema: z.ZodObject<{
1067
+ totalTasks: z.ZodNumber;
1068
+ completedTasks: z.ZodNumber;
1069
+ overdueTasks: z.ZodNumber;
1070
+ tasksCreatedThisWeek: z.ZodNumber;
1071
+ tasksCompletedThisWeek: z.ZodNumber;
1072
+ averageCompletionTime: z.ZodNullable<z.ZodNumber>;
1073
+ }, z.core.$strip>;
1074
+ /** Project metrics summary. */
1075
+ export type ProjectMetrics = z.infer<typeof ProjectMetricsSchema>;
1076
+ export declare const TaskContextSchema: z.ZodObject<{
1077
+ id: z.ZodString;
1078
+ content: z.ZodString;
1079
+ due: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1080
+ deadline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1081
+ priority: z.ZodString;
1082
+ isCompleted: z.ZodBoolean;
1083
+ createdAt: z.ZodString;
1084
+ updatedAt: z.ZodString;
1085
+ completedAt: z.ZodNullable<z.ZodString>;
1086
+ completedByUid: z.ZodNullable<z.ZodString>;
1087
+ labels: z.ZodArray<z.ZodString>;
1088
+ }, z.core.$strip>;
1089
+ /** Task context used in health analysis. */
1090
+ export type TaskContext = z.infer<typeof TaskContextSchema>;
1091
+ export declare const ProjectHealthContextSchema: z.ZodObject<{
1092
+ projectId: z.ZodString;
1093
+ projectName: z.ZodString;
1094
+ projectDescription: z.ZodNullable<z.ZodString>;
1095
+ projectMetrics: z.ZodObject<{
1096
+ totalTasks: z.ZodNumber;
1097
+ completedTasks: z.ZodNumber;
1098
+ overdueTasks: z.ZodNumber;
1099
+ tasksCreatedThisWeek: z.ZodNumber;
1100
+ tasksCompletedThisWeek: z.ZodNumber;
1101
+ averageCompletionTime: z.ZodNullable<z.ZodNumber>;
1102
+ }, z.core.$strip>;
1103
+ tasks: z.ZodArray<z.ZodObject<{
1104
+ id: z.ZodString;
1105
+ content: z.ZodString;
1106
+ due: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1107
+ deadline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1108
+ priority: z.ZodString;
1109
+ isCompleted: z.ZodBoolean;
1110
+ createdAt: z.ZodString;
1111
+ updatedAt: z.ZodString;
1112
+ completedAt: z.ZodNullable<z.ZodString>;
1113
+ completedByUid: z.ZodNullable<z.ZodString>;
1114
+ labels: z.ZodArray<z.ZodString>;
1115
+ }, z.core.$strip>>;
1116
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1117
+ }, z.core.$strip>;
1118
+ /** Full project context for health analysis. */
1119
+ export type ProjectHealthContext = z.infer<typeof ProjectHealthContextSchema>;
1120
+ export declare const ProjectProgressSchema: z.ZodObject<{
1121
+ projectId: z.ZodString;
1122
+ completedCount: z.ZodNumber;
1123
+ activeCount: z.ZodNumber;
1124
+ progressPercent: z.ZodNumber;
1125
+ }, z.core.$strip>;
1126
+ /** Project progress with completion counts and percentage. */
1127
+ export type ProjectProgress = z.infer<typeof ProjectProgressSchema>;
1128
+ export declare const ProjectInsightSchema: z.ZodObject<{
1129
+ projectId: z.ZodString;
1130
+ health: z.ZodNullable<z.ZodObject<{
1131
+ status: z.ZodEnum<{
1132
+ UNKNOWN: "UNKNOWN";
1133
+ ON_TRACK: "ON_TRACK";
1134
+ AT_RISK: "AT_RISK";
1135
+ CRITICAL: "CRITICAL";
1136
+ EXCELLENT: "EXCELLENT";
1137
+ ERROR: "ERROR";
1138
+ }>;
1139
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1140
+ descriptionSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1141
+ taskRecommendations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1142
+ taskId: z.ZodString;
1143
+ recommendation: z.ZodString;
1144
+ }, z.core.$strip>>>>;
1145
+ projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1146
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1147
+ isStale: z.ZodDefault<z.ZodBoolean>;
1148
+ updateInProgress: z.ZodDefault<z.ZodBoolean>;
1149
+ }, z.core.$strip>>;
1150
+ progress: z.ZodNullable<z.ZodObject<{
1151
+ projectId: z.ZodString;
1152
+ completedCount: z.ZodNumber;
1153
+ activeCount: z.ZodNumber;
1154
+ progressPercent: z.ZodNumber;
1155
+ }, z.core.$strip>>;
1156
+ }, z.core.$strip>;
1157
+ /** Insight data for a single project within a workspace. */
1158
+ export type ProjectInsight = z.infer<typeof ProjectInsightSchema>;
1159
+ export declare const WorkspaceInsightsSchema: z.ZodObject<{
1160
+ folderId: z.ZodNullable<z.ZodString>;
1161
+ projectInsights: z.ZodArray<z.ZodObject<{
1162
+ projectId: z.ZodString;
1163
+ health: z.ZodNullable<z.ZodObject<{
1164
+ status: z.ZodEnum<{
1165
+ UNKNOWN: "UNKNOWN";
1166
+ ON_TRACK: "ON_TRACK";
1167
+ AT_RISK: "AT_RISK";
1168
+ CRITICAL: "CRITICAL";
1169
+ EXCELLENT: "EXCELLENT";
1170
+ ERROR: "ERROR";
1171
+ }>;
1172
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1173
+ descriptionSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1174
+ taskRecommendations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1175
+ taskId: z.ZodString;
1176
+ recommendation: z.ZodString;
1177
+ }, z.core.$strip>>>>;
1178
+ projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1179
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1180
+ isStale: z.ZodDefault<z.ZodBoolean>;
1181
+ updateInProgress: z.ZodDefault<z.ZodBoolean>;
1182
+ }, z.core.$strip>>;
1183
+ progress: z.ZodNullable<z.ZodObject<{
1184
+ projectId: z.ZodString;
1185
+ completedCount: z.ZodNumber;
1186
+ activeCount: z.ZodNumber;
1187
+ progressPercent: z.ZodNumber;
1188
+ }, z.core.$strip>>;
1189
+ }, z.core.$strip>>;
1190
+ }, z.core.$strip>;
1191
+ /** Workspace insights grouped by folder. */
1192
+ export type WorkspaceInsights = z.infer<typeof WorkspaceInsightsSchema>;
1193
+ export declare const BackupSchema: z.ZodObject<{
1194
+ version: z.ZodString;
1195
+ url: z.ZodString;
1196
+ }, z.core.$strip>;
1197
+ /** Represents a backup snapshot. */
1198
+ export type Backup = z.infer<typeof BackupSchema>;
1199
+ export declare const IdMappingSchema: z.ZodObject<{
1200
+ oldId: z.ZodNullable<z.ZodString>;
1201
+ newId: z.ZodNullable<z.ZodString>;
1202
+ }, z.core.$strip>;
1203
+ /** Mapping between old and new IDs after migration. */
1204
+ export type IdMapping = z.infer<typeof IdMappingSchema>;
1205
+ export declare const MovedIdSchema: z.ZodObject<{
1206
+ oldId: z.ZodString;
1207
+ newId: z.ZodString;
1208
+ }, z.core.$strip>;
1209
+ /** A moved ID pair (old to new). */
1210
+ export type MovedId = z.infer<typeof MovedIdSchema>;
971
1211
  export {};