@doist/todoist-api-typescript 7.6.0 → 7.6.1
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/cjs/todoist-api.js +6 -6
- package/dist/cjs/types/activity/index.js +18 -0
- package/dist/cjs/types/activity/requests.js +2 -0
- package/dist/cjs/types/activity/types.js +28 -0
- package/dist/cjs/types/backups/index.js +18 -0
- package/dist/cjs/types/backups/requests.js +2 -0
- package/dist/cjs/types/backups/types.js +8 -0
- package/dist/cjs/types/comments/index.js +18 -0
- package/dist/cjs/types/comments/requests.js +2 -0
- package/dist/cjs/types/comments/types.js +60 -0
- package/dist/cjs/types/common.js +2 -0
- package/dist/cjs/types/emails/index.js +17 -0
- package/dist/cjs/types/emails/requests.js +5 -0
- package/dist/cjs/types/id-mappings/index.js +18 -0
- package/dist/cjs/types/{requests.js → id-mappings/requests.js} +1 -7
- package/dist/cjs/types/id-mappings/types.js +12 -0
- package/dist/cjs/types/index.js +16 -2
- package/dist/cjs/types/insights/index.js +18 -0
- package/dist/cjs/types/insights/requests.js +2 -0
- package/dist/cjs/types/insights/types.js +84 -0
- package/dist/cjs/types/labels/index.js +18 -0
- package/dist/cjs/types/labels/requests.js +2 -0
- package/dist/cjs/types/labels/types.js +11 -0
- package/dist/cjs/types/productivity/index.js +17 -0
- package/dist/cjs/types/productivity/types.js +67 -0
- package/dist/cjs/types/projects/index.js +18 -0
- package/dist/cjs/types/projects/requests.js +2 -0
- package/dist/cjs/types/projects/types.js +56 -0
- package/dist/cjs/types/reminders/index.js +17 -0
- package/dist/cjs/types/reminders/requests.js +5 -0
- package/dist/cjs/types/sections/index.js +18 -0
- package/dist/cjs/types/sections/requests.js +2 -0
- package/dist/cjs/types/sections/types.js +22 -0
- package/dist/cjs/types/sync/commands/shared.js +2 -2
- package/dist/cjs/types/sync/resources/collaborators.js +2 -2
- package/dist/cjs/types/sync/resources/notes.js +2 -2
- package/dist/cjs/types/sync/resources/reminders.js +3 -3
- package/dist/cjs/types/sync/resources/user.js +2 -2
- package/dist/cjs/types/sync/resources/workspaces.js +5 -5
- package/dist/cjs/types/tasks/index.js +18 -0
- package/dist/cjs/types/tasks/requests.js +2 -0
- package/dist/cjs/types/tasks/types.js +59 -0
- package/dist/cjs/types/templates/index.js +17 -0
- package/dist/cjs/types/templates/requests.js +2 -0
- package/dist/cjs/types/uploads/index.js +17 -0
- package/dist/cjs/types/uploads/requests.js +2 -0
- package/dist/cjs/types/users/index.js +17 -0
- package/dist/cjs/types/users/types.js +51 -0
- package/dist/cjs/types/workspaces/index.js +18 -0
- package/dist/cjs/types/workspaces/requests.js +2 -0
- package/dist/cjs/types/workspaces/types.js +137 -0
- package/dist/cjs/utils/validators.js +38 -27
- package/dist/esm/todoist-api.js +2 -2
- package/dist/esm/types/activity/index.js +2 -0
- package/dist/esm/types/activity/requests.js +1 -0
- package/dist/esm/types/activity/types.js +25 -0
- package/dist/esm/types/backups/index.js +2 -0
- package/dist/esm/types/backups/requests.js +1 -0
- package/dist/esm/types/backups/types.js +5 -0
- package/dist/esm/types/comments/index.js +2 -0
- package/dist/esm/types/comments/requests.js +1 -0
- package/dist/esm/types/comments/types.js +57 -0
- package/dist/esm/types/common.js +1 -0
- package/dist/esm/types/emails/index.js +1 -0
- package/dist/esm/types/emails/requests.js +2 -0
- package/dist/esm/types/id-mappings/index.js +2 -0
- package/dist/esm/types/{requests.js → id-mappings/requests.js} +0 -6
- package/dist/esm/types/id-mappings/types.js +9 -0
- package/dist/esm/types/index.js +16 -2
- package/dist/esm/types/insights/index.js +2 -0
- package/dist/esm/types/insights/requests.js +1 -0
- package/dist/esm/types/insights/types.js +81 -0
- package/dist/esm/types/labels/index.js +2 -0
- package/dist/esm/types/labels/requests.js +1 -0
- package/dist/esm/types/labels/types.js +8 -0
- package/dist/esm/types/productivity/index.js +1 -0
- package/dist/esm/types/productivity/types.js +64 -0
- package/dist/esm/types/projects/index.js +2 -0
- package/dist/esm/types/projects/requests.js +1 -0
- package/dist/esm/types/projects/types.js +53 -0
- package/dist/esm/types/reminders/index.js +1 -0
- package/dist/esm/types/reminders/requests.js +2 -0
- package/dist/esm/types/sections/index.js +2 -0
- package/dist/esm/types/sections/requests.js +1 -0
- package/dist/esm/types/sections/types.js +19 -0
- package/dist/esm/types/sync/commands/shared.js +1 -1
- package/dist/esm/types/sync/resources/collaborators.js +1 -1
- package/dist/esm/types/sync/resources/notes.js +1 -1
- package/dist/esm/types/sync/resources/reminders.js +1 -1
- package/dist/esm/types/sync/resources/user.js +1 -1
- package/dist/esm/types/sync/resources/workspaces.js +1 -1
- package/dist/esm/types/tasks/index.js +2 -0
- package/dist/esm/types/tasks/requests.js +1 -0
- package/dist/esm/types/tasks/types.js +56 -0
- package/dist/esm/types/templates/index.js +1 -0
- package/dist/esm/types/templates/requests.js +1 -0
- package/dist/esm/types/uploads/index.js +1 -0
- package/dist/esm/types/uploads/requests.js +1 -0
- package/dist/esm/types/users/index.js +1 -0
- package/dist/esm/types/users/types.js +48 -0
- package/dist/esm/types/workspaces/index.js +2 -0
- package/dist/esm/types/workspaces/requests.js +1 -0
- package/dist/esm/types/workspaces/types.js +134 -0
- package/dist/esm/utils/validators.js +12 -1
- package/dist/types/test-utils/test-defaults.d.ts +5 -5
- package/dist/types/todoist-api.d.ts +16 -2
- package/dist/types/types/activity/index.d.ts +2 -0
- package/dist/types/types/activity/requests.d.ts +85 -0
- package/dist/types/types/activity/types.d.ts +49 -0
- package/dist/types/types/backups/index.d.ts +2 -0
- package/dist/types/types/backups/requests.d.ts +16 -0
- package/dist/types/types/backups/types.d.ts +7 -0
- package/dist/types/types/comments/index.d.ts +2 -0
- package/dist/types/types/comments/requests.d.ts +63 -0
- package/dist/types/types/comments/types.d.ts +141 -0
- package/dist/types/types/common.d.ts +6 -0
- package/dist/types/types/emails/index.d.ts +1 -0
- package/dist/types/types/emails/requests.d.ts +30 -0
- package/dist/types/types/id-mappings/index.d.ts +2 -0
- package/dist/types/types/id-mappings/requests.d.ts +28 -0
- package/dist/types/types/id-mappings/types.d.ts +13 -0
- package/dist/types/types/index.d.ts +16 -2
- package/dist/types/types/insights/index.d.ts +2 -0
- package/dist/types/types/insights/requests.d.ts +26 -0
- package/dist/types/types/insights/types.d.ts +186 -0
- package/dist/types/types/labels/index.d.ts +2 -0
- package/dist/types/types/labels/requests.d.ts +75 -0
- package/dist/types/types/labels/types.d.ts +13 -0
- package/dist/types/types/productivity/index.d.ts +1 -0
- package/dist/types/types/productivity/types.d.ts +115 -0
- package/dist/types/types/projects/index.d.ts +2 -0
- package/dist/types/types/projects/requests.d.ts +169 -0
- package/dist/types/types/projects/types.d.ts +201 -0
- package/dist/types/types/reminders/index.d.ts +1 -0
- package/dist/types/types/reminders/requests.d.ts +91 -0
- package/dist/types/types/sections/index.d.ts +2 -0
- package/dist/types/types/sections/requests.d.ts +41 -0
- package/dist/types/types/sections/types.d.ts +44 -0
- package/dist/types/types/sync/commands/projects.d.ts +2 -1
- package/dist/types/types/sync/commands/shared.d.ts +2 -2
- package/dist/types/types/sync/commands/workspaces.d.ts +1 -1
- package/dist/types/types/sync/resources/notes.d.ts +1 -1
- package/dist/types/types/sync/response.d.ts +5 -1
- package/dist/types/types/tasks/index.d.ts +2 -0
- package/dist/types/types/tasks/requests.d.ts +197 -0
- package/dist/types/types/tasks/types.d.ts +162 -0
- package/dist/types/types/templates/index.d.ts +1 -0
- package/dist/types/types/templates/requests.d.ts +92 -0
- package/dist/types/types/uploads/index.d.ts +1 -0
- package/dist/types/types/uploads/requests.d.ts +32 -0
- package/dist/types/types/users/index.d.ts +1 -0
- package/dist/types/types/users/types.d.ts +66 -0
- package/dist/types/types/workspaces/index.d.ts +2 -0
- package/dist/types/types/workspaces/requests.d.ts +260 -0
- package/dist/types/types/workspaces/types.d.ts +225 -0
- package/dist/types/utils/colors.d.ts +1 -1
- package/dist/types/utils/validators.d.ts +7 -6
- package/package.json +1 -1
- package/dist/cjs/types/entities.js +0 -552
- package/dist/esm/types/entities.js +0 -548
- package/dist/types/types/entities.d.ts +0 -1211
- package/dist/types/types/requests.d.ts +0 -1188
|
@@ -1,1211 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const DueDateSchema: z.ZodObject<{
|
|
3
|
-
isRecurring: z.ZodBoolean;
|
|
4
|
-
string: z.ZodString;
|
|
5
|
-
date: z.ZodString;
|
|
6
|
-
datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
-
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
-
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
|
-
/**
|
|
11
|
-
* Represents a due date for a task.
|
|
12
|
-
* @see https://developer.todoist.com/api/v1/#tag/Tasks/operation/get_tasks_api_v1_tasks_get
|
|
13
|
-
*/
|
|
14
|
-
export type DueDate = z.infer<typeof DueDateSchema>;
|
|
15
|
-
/** Available duration units for task deadlines. */
|
|
16
|
-
export declare const DURATION_UNITS: readonly ["minute", "day"];
|
|
17
|
-
/** Unit of time for a task duration. */
|
|
18
|
-
export type DurationUnit = (typeof DURATION_UNITS)[number];
|
|
19
|
-
export declare const DurationSchema: z.ZodObject<{
|
|
20
|
-
amount: z.ZodNumber;
|
|
21
|
-
unit: z.ZodEnum<{
|
|
22
|
-
minute: "minute";
|
|
23
|
-
day: "day";
|
|
24
|
-
}>;
|
|
25
|
-
}, z.core.$strip>;
|
|
26
|
-
/**
|
|
27
|
-
* Represents a duration for a task deadline.
|
|
28
|
-
* @see https://developer.todoist.com/api/v1/#tag/Tasks
|
|
29
|
-
*/
|
|
30
|
-
export type Duration = z.infer<typeof DurationSchema>;
|
|
31
|
-
export declare const DeadlineSchema: z.ZodObject<{
|
|
32
|
-
date: z.ZodString;
|
|
33
|
-
lang: z.ZodString;
|
|
34
|
-
}, z.core.$strip>;
|
|
35
|
-
/**
|
|
36
|
-
* Represents a task deadline.
|
|
37
|
-
*/
|
|
38
|
-
export type Deadline = z.infer<typeof DeadlineSchema>;
|
|
39
|
-
export declare const TaskSchema: z.ZodPipe<z.ZodObject<{
|
|
40
|
-
id: z.ZodString;
|
|
41
|
-
userId: z.ZodString;
|
|
42
|
-
projectId: z.ZodString;
|
|
43
|
-
sectionId: z.ZodNullable<z.ZodString>;
|
|
44
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
45
|
-
addedByUid: z.ZodNullable<z.ZodString>;
|
|
46
|
-
assignedByUid: z.ZodNullable<z.ZodString>;
|
|
47
|
-
responsibleUid: z.ZodNullable<z.ZodString>;
|
|
48
|
-
labels: z.ZodArray<z.ZodString>;
|
|
49
|
-
deadline: z.ZodNullable<z.ZodObject<{
|
|
50
|
-
date: z.ZodString;
|
|
51
|
-
lang: z.ZodString;
|
|
52
|
-
}, z.core.$strip>>;
|
|
53
|
-
duration: z.ZodNullable<z.ZodObject<{
|
|
54
|
-
amount: z.ZodNumber;
|
|
55
|
-
unit: z.ZodEnum<{
|
|
56
|
-
minute: "minute";
|
|
57
|
-
day: "day";
|
|
58
|
-
}>;
|
|
59
|
-
}, z.core.$strip>>;
|
|
60
|
-
checked: z.ZodBoolean;
|
|
61
|
-
isDeleted: z.ZodBoolean;
|
|
62
|
-
addedAt: z.ZodNullable<z.ZodString>;
|
|
63
|
-
completedAt: z.ZodNullable<z.ZodString>;
|
|
64
|
-
updatedAt: z.ZodNullable<z.ZodString>;
|
|
65
|
-
due: z.ZodNullable<z.ZodObject<{
|
|
66
|
-
isRecurring: z.ZodBoolean;
|
|
67
|
-
string: z.ZodString;
|
|
68
|
-
date: z.ZodString;
|
|
69
|
-
datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
-
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
-
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
-
}, z.core.$strip>>;
|
|
73
|
-
priority: z.ZodNumber;
|
|
74
|
-
childOrder: z.ZodNumber;
|
|
75
|
-
content: z.ZodString;
|
|
76
|
-
description: z.ZodString;
|
|
77
|
-
dayOrder: z.ZodNumber;
|
|
78
|
-
isCollapsed: z.ZodBoolean;
|
|
79
|
-
isUncompletable: z.ZodDefault<z.ZodBoolean>;
|
|
80
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
81
|
-
isUncompletable: boolean;
|
|
82
|
-
url: string;
|
|
83
|
-
id: string;
|
|
84
|
-
userId: string;
|
|
85
|
-
projectId: string;
|
|
86
|
-
sectionId: string | null;
|
|
87
|
-
parentId: string | null;
|
|
88
|
-
addedByUid: string | null;
|
|
89
|
-
assignedByUid: string | null;
|
|
90
|
-
responsibleUid: string | null;
|
|
91
|
-
labels: string[];
|
|
92
|
-
deadline: {
|
|
93
|
-
date: string;
|
|
94
|
-
lang: string;
|
|
95
|
-
} | null;
|
|
96
|
-
duration: {
|
|
97
|
-
amount: number;
|
|
98
|
-
unit: "minute" | "day";
|
|
99
|
-
} | null;
|
|
100
|
-
checked: boolean;
|
|
101
|
-
isDeleted: boolean;
|
|
102
|
-
addedAt: string | null;
|
|
103
|
-
completedAt: string | null;
|
|
104
|
-
updatedAt: string | null;
|
|
105
|
-
due: {
|
|
106
|
-
isRecurring: boolean;
|
|
107
|
-
string: string;
|
|
108
|
-
date: string;
|
|
109
|
-
datetime?: string | null | undefined;
|
|
110
|
-
timezone?: string | null | undefined;
|
|
111
|
-
lang?: string | null | undefined;
|
|
112
|
-
} | null;
|
|
113
|
-
priority: number;
|
|
114
|
-
childOrder: number;
|
|
115
|
-
content: string;
|
|
116
|
-
description: string;
|
|
117
|
-
dayOrder: number;
|
|
118
|
-
isCollapsed: boolean;
|
|
119
|
-
}, {
|
|
120
|
-
id: string;
|
|
121
|
-
userId: string;
|
|
122
|
-
projectId: string;
|
|
123
|
-
sectionId: string | null;
|
|
124
|
-
parentId: string | null;
|
|
125
|
-
addedByUid: string | null;
|
|
126
|
-
assignedByUid: string | null;
|
|
127
|
-
responsibleUid: string | null;
|
|
128
|
-
labels: string[];
|
|
129
|
-
deadline: {
|
|
130
|
-
date: string;
|
|
131
|
-
lang: string;
|
|
132
|
-
} | null;
|
|
133
|
-
duration: {
|
|
134
|
-
amount: number;
|
|
135
|
-
unit: "minute" | "day";
|
|
136
|
-
} | null;
|
|
137
|
-
checked: boolean;
|
|
138
|
-
isDeleted: boolean;
|
|
139
|
-
addedAt: string | null;
|
|
140
|
-
completedAt: string | null;
|
|
141
|
-
updatedAt: string | null;
|
|
142
|
-
due: {
|
|
143
|
-
isRecurring: boolean;
|
|
144
|
-
string: string;
|
|
145
|
-
date: string;
|
|
146
|
-
datetime?: string | null | undefined;
|
|
147
|
-
timezone?: string | null | undefined;
|
|
148
|
-
lang?: string | null | undefined;
|
|
149
|
-
} | null;
|
|
150
|
-
priority: number;
|
|
151
|
-
childOrder: number;
|
|
152
|
-
content: string;
|
|
153
|
-
description: string;
|
|
154
|
-
dayOrder: number;
|
|
155
|
-
isCollapsed: boolean;
|
|
156
|
-
isUncompletable: boolean;
|
|
157
|
-
}>>;
|
|
158
|
-
/**
|
|
159
|
-
* Represents a task in Todoist.
|
|
160
|
-
* @see https://developer.todoist.com/api/v1/#tag/Tasks
|
|
161
|
-
*/
|
|
162
|
-
export type Task = z.infer<typeof TaskSchema>;
|
|
163
|
-
/**
|
|
164
|
-
* Base schema for all project types in Todoist.
|
|
165
|
-
* Contains common fields shared between personal and workspace projects.
|
|
166
|
-
*/
|
|
167
|
-
export declare const BaseProjectSchema: z.ZodObject<{
|
|
168
|
-
id: z.ZodString;
|
|
169
|
-
canAssignTasks: z.ZodBoolean;
|
|
170
|
-
childOrder: z.ZodNumber;
|
|
171
|
-
color: z.ZodString;
|
|
172
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
173
|
-
isArchived: z.ZodBoolean;
|
|
174
|
-
isDeleted: z.ZodBoolean;
|
|
175
|
-
isFavorite: z.ZodBoolean;
|
|
176
|
-
isFrozen: z.ZodBoolean;
|
|
177
|
-
name: z.ZodString;
|
|
178
|
-
updatedAt: z.ZodNullable<z.ZodString>;
|
|
179
|
-
viewStyle: z.ZodString;
|
|
180
|
-
defaultOrder: z.ZodNumber;
|
|
181
|
-
description: z.ZodString;
|
|
182
|
-
isCollapsed: z.ZodBoolean;
|
|
183
|
-
isShared: z.ZodBoolean;
|
|
184
|
-
}, z.core.$strip>;
|
|
185
|
-
/**
|
|
186
|
-
* Schema for personal projects in Todoist.
|
|
187
|
-
*/
|
|
188
|
-
export declare const PersonalProjectSchema: z.ZodPipe<z.ZodObject<{
|
|
189
|
-
id: z.ZodString;
|
|
190
|
-
canAssignTasks: z.ZodBoolean;
|
|
191
|
-
childOrder: z.ZodNumber;
|
|
192
|
-
color: z.ZodString;
|
|
193
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
194
|
-
isArchived: z.ZodBoolean;
|
|
195
|
-
isDeleted: z.ZodBoolean;
|
|
196
|
-
isFavorite: z.ZodBoolean;
|
|
197
|
-
isFrozen: z.ZodBoolean;
|
|
198
|
-
name: z.ZodString;
|
|
199
|
-
updatedAt: z.ZodNullable<z.ZodString>;
|
|
200
|
-
viewStyle: z.ZodString;
|
|
201
|
-
defaultOrder: z.ZodNumber;
|
|
202
|
-
description: z.ZodString;
|
|
203
|
-
isCollapsed: z.ZodBoolean;
|
|
204
|
-
isShared: z.ZodBoolean;
|
|
205
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
206
|
-
inboxProject: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
207
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
208
|
-
url: string;
|
|
209
|
-
id: string;
|
|
210
|
-
canAssignTasks: boolean;
|
|
211
|
-
childOrder: number;
|
|
212
|
-
color: string;
|
|
213
|
-
createdAt: string | null;
|
|
214
|
-
isArchived: boolean;
|
|
215
|
-
isDeleted: boolean;
|
|
216
|
-
isFavorite: boolean;
|
|
217
|
-
isFrozen: boolean;
|
|
218
|
-
name: string;
|
|
219
|
-
updatedAt: string | null;
|
|
220
|
-
viewStyle: string;
|
|
221
|
-
defaultOrder: number;
|
|
222
|
-
description: string;
|
|
223
|
-
isCollapsed: boolean;
|
|
224
|
-
isShared: boolean;
|
|
225
|
-
parentId: string | null;
|
|
226
|
-
inboxProject: boolean;
|
|
227
|
-
}, {
|
|
228
|
-
id: string;
|
|
229
|
-
canAssignTasks: boolean;
|
|
230
|
-
childOrder: number;
|
|
231
|
-
color: string;
|
|
232
|
-
createdAt: string | null;
|
|
233
|
-
isArchived: boolean;
|
|
234
|
-
isDeleted: boolean;
|
|
235
|
-
isFavorite: boolean;
|
|
236
|
-
isFrozen: boolean;
|
|
237
|
-
name: string;
|
|
238
|
-
updatedAt: string | null;
|
|
239
|
-
viewStyle: string;
|
|
240
|
-
defaultOrder: number;
|
|
241
|
-
description: string;
|
|
242
|
-
isCollapsed: boolean;
|
|
243
|
-
isShared: boolean;
|
|
244
|
-
parentId: string | null;
|
|
245
|
-
inboxProject: boolean;
|
|
246
|
-
}>>;
|
|
247
|
-
/** Available project visibility levels. */
|
|
248
|
-
export declare const PROJECT_VISIBILITIES: readonly ["restricted", "team", "public"];
|
|
249
|
-
/** Visibility level of a workspace project. */
|
|
250
|
-
export type ProjectVisibility = (typeof PROJECT_VISIBILITIES)[number];
|
|
251
|
-
export declare const ProjectVisibilitySchema: z.ZodEnum<{
|
|
252
|
-
restricted: "restricted";
|
|
253
|
-
team: "team";
|
|
254
|
-
public: "public";
|
|
255
|
-
}>;
|
|
256
|
-
/**
|
|
257
|
-
* Schema for workspace projects in Todoist.
|
|
258
|
-
*/
|
|
259
|
-
export declare const WorkspaceProjectSchema: z.ZodPipe<z.ZodObject<{
|
|
260
|
-
id: z.ZodString;
|
|
261
|
-
canAssignTasks: z.ZodBoolean;
|
|
262
|
-
childOrder: z.ZodNumber;
|
|
263
|
-
color: z.ZodString;
|
|
264
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
265
|
-
isArchived: z.ZodBoolean;
|
|
266
|
-
isDeleted: z.ZodBoolean;
|
|
267
|
-
isFavorite: z.ZodBoolean;
|
|
268
|
-
isFrozen: z.ZodBoolean;
|
|
269
|
-
name: z.ZodString;
|
|
270
|
-
updatedAt: z.ZodNullable<z.ZodString>;
|
|
271
|
-
viewStyle: z.ZodString;
|
|
272
|
-
defaultOrder: z.ZodNumber;
|
|
273
|
-
description: z.ZodString;
|
|
274
|
-
isCollapsed: z.ZodBoolean;
|
|
275
|
-
isShared: z.ZodBoolean;
|
|
276
|
-
access: z.ZodOptional<z.ZodObject<{
|
|
277
|
-
visibility: z.ZodEnum<{
|
|
278
|
-
restricted: "restricted";
|
|
279
|
-
team: "team";
|
|
280
|
-
public: "public";
|
|
281
|
-
}>;
|
|
282
|
-
}, z.core.$strip>>;
|
|
283
|
-
collaboratorRoleDefault: z.ZodString;
|
|
284
|
-
folderId: z.ZodNullable<z.ZodString>;
|
|
285
|
-
isInviteOnly: z.ZodNullable<z.ZodBoolean>;
|
|
286
|
-
isLinkSharingEnabled: z.ZodBoolean;
|
|
287
|
-
role: z.ZodNullable<z.ZodString>;
|
|
288
|
-
status: z.ZodString;
|
|
289
|
-
workspaceId: z.ZodString;
|
|
290
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
291
|
-
url: string;
|
|
292
|
-
id: string;
|
|
293
|
-
canAssignTasks: boolean;
|
|
294
|
-
childOrder: number;
|
|
295
|
-
color: string;
|
|
296
|
-
createdAt: string | null;
|
|
297
|
-
isArchived: boolean;
|
|
298
|
-
isDeleted: boolean;
|
|
299
|
-
isFavorite: boolean;
|
|
300
|
-
isFrozen: boolean;
|
|
301
|
-
name: string;
|
|
302
|
-
updatedAt: string | null;
|
|
303
|
-
viewStyle: string;
|
|
304
|
-
defaultOrder: number;
|
|
305
|
-
description: string;
|
|
306
|
-
isCollapsed: boolean;
|
|
307
|
-
isShared: boolean;
|
|
308
|
-
collaboratorRoleDefault: string;
|
|
309
|
-
folderId: string | null;
|
|
310
|
-
isInviteOnly: boolean | null;
|
|
311
|
-
isLinkSharingEnabled: boolean;
|
|
312
|
-
role: string | null;
|
|
313
|
-
status: string;
|
|
314
|
-
workspaceId: string;
|
|
315
|
-
access?: {
|
|
316
|
-
visibility: "restricted" | "team" | "public";
|
|
317
|
-
} | undefined;
|
|
318
|
-
}, {
|
|
319
|
-
id: string;
|
|
320
|
-
canAssignTasks: boolean;
|
|
321
|
-
childOrder: number;
|
|
322
|
-
color: string;
|
|
323
|
-
createdAt: string | null;
|
|
324
|
-
isArchived: boolean;
|
|
325
|
-
isDeleted: boolean;
|
|
326
|
-
isFavorite: boolean;
|
|
327
|
-
isFrozen: boolean;
|
|
328
|
-
name: string;
|
|
329
|
-
updatedAt: string | null;
|
|
330
|
-
viewStyle: string;
|
|
331
|
-
defaultOrder: number;
|
|
332
|
-
description: string;
|
|
333
|
-
isCollapsed: boolean;
|
|
334
|
-
isShared: boolean;
|
|
335
|
-
collaboratorRoleDefault: string;
|
|
336
|
-
folderId: string | null;
|
|
337
|
-
isInviteOnly: boolean | null;
|
|
338
|
-
isLinkSharingEnabled: boolean;
|
|
339
|
-
role: string | null;
|
|
340
|
-
status: string;
|
|
341
|
-
workspaceId: string;
|
|
342
|
-
access?: {
|
|
343
|
-
visibility: "restricted" | "team" | "public";
|
|
344
|
-
} | undefined;
|
|
345
|
-
}>>;
|
|
346
|
-
/**
|
|
347
|
-
* Represents a personal project in Todoist.
|
|
348
|
-
* @see https://developer.todoist.com/api/v1/#tag/Projects
|
|
349
|
-
*/
|
|
350
|
-
export type PersonalProject = z.infer<typeof PersonalProjectSchema>;
|
|
351
|
-
/**
|
|
352
|
-
* Represents a workspace project in Todoist.
|
|
353
|
-
* @see https://developer.todoist.com/api/v1/#tag/Projects
|
|
354
|
-
*/
|
|
355
|
-
export type WorkspaceProject = z.infer<typeof WorkspaceProjectSchema>;
|
|
356
|
-
/** Available project view styles. */
|
|
357
|
-
export declare const PROJECT_VIEW_STYLES: readonly ["list", "board", "calendar"];
|
|
358
|
-
/**
|
|
359
|
-
* View style for a project.
|
|
360
|
-
* @see https://developer.todoist.com/api/v1/#tag/Projects
|
|
361
|
-
*/
|
|
362
|
-
export type ProjectViewStyle = (typeof PROJECT_VIEW_STYLES)[number];
|
|
363
|
-
export declare const SectionSchema: z.ZodPipe<z.ZodObject<{
|
|
364
|
-
id: z.ZodString;
|
|
365
|
-
userId: z.ZodString;
|
|
366
|
-
projectId: z.ZodString;
|
|
367
|
-
addedAt: z.ZodString;
|
|
368
|
-
updatedAt: z.ZodString;
|
|
369
|
-
archivedAt: z.ZodNullable<z.ZodString>;
|
|
370
|
-
name: z.ZodString;
|
|
371
|
-
sectionOrder: z.ZodNumber;
|
|
372
|
-
isArchived: z.ZodBoolean;
|
|
373
|
-
isDeleted: z.ZodBoolean;
|
|
374
|
-
isCollapsed: z.ZodBoolean;
|
|
375
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
376
|
-
url: string;
|
|
377
|
-
id: string;
|
|
378
|
-
userId: string;
|
|
379
|
-
projectId: string;
|
|
380
|
-
addedAt: string;
|
|
381
|
-
updatedAt: string;
|
|
382
|
-
archivedAt: string | null;
|
|
383
|
-
name: string;
|
|
384
|
-
sectionOrder: number;
|
|
385
|
-
isArchived: boolean;
|
|
386
|
-
isDeleted: boolean;
|
|
387
|
-
isCollapsed: boolean;
|
|
388
|
-
}, {
|
|
389
|
-
id: string;
|
|
390
|
-
userId: string;
|
|
391
|
-
projectId: string;
|
|
392
|
-
addedAt: string;
|
|
393
|
-
updatedAt: string;
|
|
394
|
-
archivedAt: string | null;
|
|
395
|
-
name: string;
|
|
396
|
-
sectionOrder: number;
|
|
397
|
-
isArchived: boolean;
|
|
398
|
-
isDeleted: boolean;
|
|
399
|
-
isCollapsed: boolean;
|
|
400
|
-
}>>;
|
|
401
|
-
/**
|
|
402
|
-
* Represents a section in a Todoist project.
|
|
403
|
-
* @see https://developer.todoist.com/api/v1/#tag/Sections
|
|
404
|
-
*/
|
|
405
|
-
export type Section = z.infer<typeof SectionSchema>;
|
|
406
|
-
export declare const LabelSchema: z.ZodObject<{
|
|
407
|
-
id: z.ZodString;
|
|
408
|
-
order: z.ZodNullable<z.ZodNumber>;
|
|
409
|
-
name: z.ZodString;
|
|
410
|
-
color: z.ZodString;
|
|
411
|
-
isFavorite: z.ZodBoolean;
|
|
412
|
-
}, z.core.$strip>;
|
|
413
|
-
/**
|
|
414
|
-
* Represents a label in Todoist.
|
|
415
|
-
* @see https://developer.todoist.com/api/v1/#tag/Labels
|
|
416
|
-
*/
|
|
417
|
-
export type Label = z.infer<typeof LabelSchema>;
|
|
418
|
-
/** Available file attachment upload states. */
|
|
419
|
-
export declare const UPLOAD_STATES: readonly ["pending", "completed"];
|
|
420
|
-
/** Upload state of a file attachment. */
|
|
421
|
-
export type UploadState = (typeof UPLOAD_STATES)[number];
|
|
422
|
-
export declare const AttachmentSchema: z.ZodObject<{
|
|
423
|
-
resourceType: z.ZodString;
|
|
424
|
-
fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
425
|
-
fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
426
|
-
fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
427
|
-
fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
428
|
-
fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
429
|
-
uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
430
|
-
pending: "pending";
|
|
431
|
-
completed: "completed";
|
|
432
|
-
}>>>;
|
|
433
|
-
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
434
|
-
imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
435
|
-
imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
436
|
-
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
437
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
438
|
-
}, z.core.$strip>;
|
|
439
|
-
/**
|
|
440
|
-
* Represents a file attachment in a comment.
|
|
441
|
-
* @see https://developer.todoist.com/api/v1/#tag/Sync/Comments/File-Attachments
|
|
442
|
-
*/
|
|
443
|
-
export type Attachment = z.infer<typeof AttachmentSchema>;
|
|
444
|
-
export declare const RawCommentSchema: z.ZodObject<{
|
|
445
|
-
id: z.ZodString;
|
|
446
|
-
itemId: z.ZodOptional<z.ZodString>;
|
|
447
|
-
projectId: z.ZodOptional<z.ZodString>;
|
|
448
|
-
content: z.ZodString;
|
|
449
|
-
postedAt: z.ZodString;
|
|
450
|
-
fileAttachment: z.ZodNullable<z.ZodObject<{
|
|
451
|
-
resourceType: z.ZodString;
|
|
452
|
-
fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
453
|
-
fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
454
|
-
fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
455
|
-
fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
456
|
-
fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
457
|
-
uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
458
|
-
pending: "pending";
|
|
459
|
-
completed: "completed";
|
|
460
|
-
}>>>;
|
|
461
|
-
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
462
|
-
imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
463
|
-
imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
464
|
-
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
465
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
466
|
-
}, z.core.$strip>>;
|
|
467
|
-
postedUid: z.ZodString;
|
|
468
|
-
uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
469
|
-
reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
470
|
-
isDeleted: z.ZodBoolean;
|
|
471
|
-
}, z.core.$strip>;
|
|
472
|
-
/**
|
|
473
|
-
* Represents a raw comment response from the API.
|
|
474
|
-
* @see https://developer.todoist.com/api/v1/#tag/Comments
|
|
475
|
-
*/
|
|
476
|
-
export type RawComment = z.infer<typeof RawCommentSchema>;
|
|
477
|
-
export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
|
|
478
|
-
id: z.ZodString;
|
|
479
|
-
itemId: z.ZodOptional<z.ZodString>;
|
|
480
|
-
projectId: z.ZodOptional<z.ZodString>;
|
|
481
|
-
content: z.ZodString;
|
|
482
|
-
postedAt: z.ZodString;
|
|
483
|
-
fileAttachment: z.ZodNullable<z.ZodObject<{
|
|
484
|
-
resourceType: z.ZodString;
|
|
485
|
-
fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
486
|
-
fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
487
|
-
fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
488
|
-
fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
489
|
-
fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
490
|
-
uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
491
|
-
pending: "pending";
|
|
492
|
-
completed: "completed";
|
|
493
|
-
}>>>;
|
|
494
|
-
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
495
|
-
imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
496
|
-
imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
497
|
-
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
498
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
499
|
-
}, z.core.$strip>>;
|
|
500
|
-
postedUid: z.ZodString;
|
|
501
|
-
uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
502
|
-
reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
503
|
-
isDeleted: z.ZodBoolean;
|
|
504
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
505
|
-
taskId: string | undefined;
|
|
506
|
-
id: string;
|
|
507
|
-
content: string;
|
|
508
|
-
postedAt: string;
|
|
509
|
-
fileAttachment: {
|
|
510
|
-
resourceType: string;
|
|
511
|
-
fileName?: string | null | undefined;
|
|
512
|
-
fileSize?: number | null | undefined;
|
|
513
|
-
fileType?: string | null | undefined;
|
|
514
|
-
fileUrl?: string | null | undefined;
|
|
515
|
-
fileDuration?: number | null | undefined;
|
|
516
|
-
uploadState?: "pending" | "completed" | null | undefined;
|
|
517
|
-
image?: string | null | undefined;
|
|
518
|
-
imageWidth?: number | null | undefined;
|
|
519
|
-
imageHeight?: number | null | undefined;
|
|
520
|
-
url?: string | null | undefined;
|
|
521
|
-
title?: string | null | undefined;
|
|
522
|
-
} | null;
|
|
523
|
-
postedUid: string;
|
|
524
|
-
uidsToNotify: string[] | null;
|
|
525
|
-
reactions: Record<string, string[]> | null;
|
|
526
|
-
isDeleted: boolean;
|
|
527
|
-
projectId?: string | undefined;
|
|
528
|
-
}, {
|
|
529
|
-
id: string;
|
|
530
|
-
content: string;
|
|
531
|
-
postedAt: string;
|
|
532
|
-
fileAttachment: {
|
|
533
|
-
resourceType: string;
|
|
534
|
-
fileName?: string | null | undefined;
|
|
535
|
-
fileSize?: number | null | undefined;
|
|
536
|
-
fileType?: string | null | undefined;
|
|
537
|
-
fileUrl?: string | null | undefined;
|
|
538
|
-
fileDuration?: number | null | undefined;
|
|
539
|
-
uploadState?: "pending" | "completed" | null | undefined;
|
|
540
|
-
image?: string | null | undefined;
|
|
541
|
-
imageWidth?: number | null | undefined;
|
|
542
|
-
imageHeight?: number | null | undefined;
|
|
543
|
-
url?: string | null | undefined;
|
|
544
|
-
title?: string | null | undefined;
|
|
545
|
-
} | null;
|
|
546
|
-
postedUid: string;
|
|
547
|
-
uidsToNotify: string[] | null;
|
|
548
|
-
reactions: Record<string, string[]> | null;
|
|
549
|
-
isDeleted: boolean;
|
|
550
|
-
itemId?: string | undefined;
|
|
551
|
-
projectId?: string | undefined;
|
|
552
|
-
}>>;
|
|
553
|
-
/**
|
|
554
|
-
* Represents a comment in Todoist.
|
|
555
|
-
* @see https://developer.todoist.com/api/v1/#tag/Comments
|
|
556
|
-
*/
|
|
557
|
-
export type Comment = z.infer<typeof CommentSchema>;
|
|
558
|
-
export declare const UserSchema: z.ZodObject<{
|
|
559
|
-
id: z.ZodString;
|
|
560
|
-
name: z.ZodString;
|
|
561
|
-
email: z.ZodString;
|
|
562
|
-
}, z.core.$strip>;
|
|
563
|
-
/**
|
|
564
|
-
* Represents a user in Todoist (simplified for collaborators).
|
|
565
|
-
* @see https://developer.todoist.com/api/v1/#tag/User
|
|
566
|
-
*/
|
|
567
|
-
export type User = z.infer<typeof UserSchema>;
|
|
568
|
-
export declare const TimezoneInfoSchema: z.ZodObject<{
|
|
569
|
-
gmtString: z.ZodString;
|
|
570
|
-
hours: z.ZodNumber;
|
|
571
|
-
isDst: z.ZodNumber;
|
|
572
|
-
minutes: z.ZodNumber;
|
|
573
|
-
timezone: z.ZodString;
|
|
574
|
-
}, z.core.$strip>;
|
|
575
|
-
/** Available user premium statuses. */
|
|
576
|
-
export declare const PREMIUM_STATUSES: readonly ["not_premium", "current_personal_plan", "legacy_personal_plan", "teams_business_member"];
|
|
577
|
-
/** Premium subscription status of a user. */
|
|
578
|
-
export type PremiumStatus = (typeof PREMIUM_STATUSES)[number];
|
|
579
|
-
export declare const CurrentUserSchema: z.ZodObject<{
|
|
580
|
-
id: z.ZodString;
|
|
581
|
-
email: z.ZodString;
|
|
582
|
-
fullName: z.ZodString;
|
|
583
|
-
avatarBig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
584
|
-
avatarMedium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
585
|
-
avatarS640: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
586
|
-
avatarSmall: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
587
|
-
businessAccountId: z.ZodNullable<z.ZodString>;
|
|
588
|
-
isPremium: z.ZodBoolean;
|
|
589
|
-
premiumStatus: z.ZodEnum<{
|
|
590
|
-
not_premium: "not_premium";
|
|
591
|
-
current_personal_plan: "current_personal_plan";
|
|
592
|
-
legacy_personal_plan: "legacy_personal_plan";
|
|
593
|
-
teams_business_member: "teams_business_member";
|
|
594
|
-
}>;
|
|
595
|
-
dateFormat: z.ZodNumber;
|
|
596
|
-
timeFormat: z.ZodNumber;
|
|
597
|
-
weeklyGoal: z.ZodNumber;
|
|
598
|
-
dailyGoal: z.ZodNumber;
|
|
599
|
-
completedCount: z.ZodNumber;
|
|
600
|
-
completedToday: z.ZodNumber;
|
|
601
|
-
karma: z.ZodNumber;
|
|
602
|
-
karmaTrend: z.ZodString;
|
|
603
|
-
lang: z.ZodString;
|
|
604
|
-
nextWeek: z.ZodNumber;
|
|
605
|
-
startDay: z.ZodNumber;
|
|
606
|
-
startPage: z.ZodString;
|
|
607
|
-
tzInfo: z.ZodObject<{
|
|
608
|
-
gmtString: z.ZodString;
|
|
609
|
-
hours: z.ZodNumber;
|
|
610
|
-
isDst: z.ZodNumber;
|
|
611
|
-
minutes: z.ZodNumber;
|
|
612
|
-
timezone: z.ZodString;
|
|
613
|
-
}, z.core.$strip>;
|
|
614
|
-
inboxProjectId: z.ZodString;
|
|
615
|
-
daysOff: z.ZodArray<z.ZodNumber>;
|
|
616
|
-
weekendStartDay: z.ZodNumber;
|
|
617
|
-
}, z.core.$strip>;
|
|
618
|
-
/**
|
|
619
|
-
* Represents the current authenticated user with detailed information.
|
|
620
|
-
* @see https://developer.todoist.com/api/v1/#tag/User
|
|
621
|
-
*/
|
|
622
|
-
export type CurrentUser = z.infer<typeof CurrentUserSchema>;
|
|
623
|
-
export declare const StreakSchema: z.ZodObject<{
|
|
624
|
-
count: z.ZodNumber;
|
|
625
|
-
start: z.ZodString;
|
|
626
|
-
end: z.ZodString;
|
|
627
|
-
}, z.core.$strip>;
|
|
628
|
-
export declare const CompletedItemSchema: z.ZodObject<{
|
|
629
|
-
id: z.ZodString;
|
|
630
|
-
completed: z.ZodNumber;
|
|
631
|
-
}, z.core.$strip>;
|
|
632
|
-
export declare const ItemsWithDateSchema: z.ZodObject<{
|
|
633
|
-
items: z.ZodArray<z.ZodObject<{
|
|
634
|
-
id: z.ZodString;
|
|
635
|
-
completed: z.ZodNumber;
|
|
636
|
-
}, z.core.$strip>>;
|
|
637
|
-
totalCompleted: z.ZodNumber;
|
|
638
|
-
}, z.core.$strip>;
|
|
639
|
-
export declare const KarmaUpdateSchema: z.ZodObject<{
|
|
640
|
-
time: z.ZodString;
|
|
641
|
-
newKarma: z.ZodNumber;
|
|
642
|
-
positiveKarma: z.ZodNumber;
|
|
643
|
-
negativeKarma: z.ZodNumber;
|
|
644
|
-
positiveKarmaReasons: z.ZodArray<z.ZodAny>;
|
|
645
|
-
negativeKarmaReasons: z.ZodArray<z.ZodAny>;
|
|
646
|
-
}, z.core.$strip>;
|
|
647
|
-
export declare const ProductivityStatsSchema: z.ZodObject<{
|
|
648
|
-
completedCount: z.ZodNumber;
|
|
649
|
-
daysItems: z.ZodArray<z.ZodObject<{
|
|
650
|
-
items: z.ZodArray<z.ZodObject<{
|
|
651
|
-
id: z.ZodString;
|
|
652
|
-
completed: z.ZodNumber;
|
|
653
|
-
}, z.core.$strip>>;
|
|
654
|
-
totalCompleted: z.ZodNumber;
|
|
655
|
-
date: z.ZodString;
|
|
656
|
-
}, z.core.$strip>>;
|
|
657
|
-
goals: z.ZodObject<{
|
|
658
|
-
currentDailyStreak: z.ZodObject<{
|
|
659
|
-
count: z.ZodNumber;
|
|
660
|
-
start: z.ZodString;
|
|
661
|
-
end: z.ZodString;
|
|
662
|
-
}, z.core.$strip>;
|
|
663
|
-
currentWeeklyStreak: z.ZodObject<{
|
|
664
|
-
count: z.ZodNumber;
|
|
665
|
-
start: z.ZodString;
|
|
666
|
-
end: z.ZodString;
|
|
667
|
-
}, z.core.$strip>;
|
|
668
|
-
dailyGoal: z.ZodNumber;
|
|
669
|
-
ignoreDays: z.ZodArray<z.ZodNumber>;
|
|
670
|
-
karmaDisabled: z.ZodNumber;
|
|
671
|
-
lastDailyStreak: z.ZodObject<{
|
|
672
|
-
count: z.ZodNumber;
|
|
673
|
-
start: z.ZodString;
|
|
674
|
-
end: z.ZodString;
|
|
675
|
-
}, z.core.$strip>;
|
|
676
|
-
lastWeeklyStreak: z.ZodObject<{
|
|
677
|
-
count: z.ZodNumber;
|
|
678
|
-
start: z.ZodString;
|
|
679
|
-
end: z.ZodString;
|
|
680
|
-
}, z.core.$strip>;
|
|
681
|
-
maxDailyStreak: z.ZodObject<{
|
|
682
|
-
count: z.ZodNumber;
|
|
683
|
-
start: z.ZodString;
|
|
684
|
-
end: z.ZodString;
|
|
685
|
-
}, z.core.$strip>;
|
|
686
|
-
maxWeeklyStreak: z.ZodObject<{
|
|
687
|
-
count: z.ZodNumber;
|
|
688
|
-
start: z.ZodString;
|
|
689
|
-
end: z.ZodString;
|
|
690
|
-
}, z.core.$strip>;
|
|
691
|
-
user: z.ZodString;
|
|
692
|
-
userId: z.ZodString;
|
|
693
|
-
vacationMode: z.ZodNumber;
|
|
694
|
-
weeklyGoal: z.ZodNumber;
|
|
695
|
-
}, z.core.$strip>;
|
|
696
|
-
karma: z.ZodNumber;
|
|
697
|
-
karmaGraphData: z.ZodArray<z.ZodObject<{
|
|
698
|
-
date: z.ZodString;
|
|
699
|
-
karmaAvg: z.ZodNumber;
|
|
700
|
-
}, z.core.$strip>>;
|
|
701
|
-
karmaLastUpdate: z.ZodNumber;
|
|
702
|
-
karmaTrend: z.ZodString;
|
|
703
|
-
karmaUpdateReasons: z.ZodArray<z.ZodObject<{
|
|
704
|
-
time: z.ZodString;
|
|
705
|
-
newKarma: z.ZodNumber;
|
|
706
|
-
positiveKarma: z.ZodNumber;
|
|
707
|
-
negativeKarma: z.ZodNumber;
|
|
708
|
-
positiveKarmaReasons: z.ZodArray<z.ZodAny>;
|
|
709
|
-
negativeKarmaReasons: z.ZodArray<z.ZodAny>;
|
|
710
|
-
}, z.core.$strip>>;
|
|
711
|
-
projectColors: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
712
|
-
weekItems: z.ZodArray<z.ZodObject<{
|
|
713
|
-
items: z.ZodArray<z.ZodObject<{
|
|
714
|
-
id: z.ZodString;
|
|
715
|
-
completed: z.ZodNumber;
|
|
716
|
-
}, z.core.$strip>>;
|
|
717
|
-
totalCompleted: z.ZodNumber;
|
|
718
|
-
from: z.ZodString;
|
|
719
|
-
to: z.ZodString;
|
|
720
|
-
}, z.core.$strip>>;
|
|
721
|
-
}, z.core.$strip>;
|
|
722
|
-
/**
|
|
723
|
-
* Represents the Productivity stats for the authenticated user.
|
|
724
|
-
* @see https://developer.todoist.com/api/v1/#tag/User/operation/get_productivity_stats_api_v1_tasks_completed_stats_get
|
|
725
|
-
*/
|
|
726
|
-
export type ProductivityStats = z.infer<typeof ProductivityStatsSchema>;
|
|
727
|
-
export declare const ColorSchema: z.ZodObject<{
|
|
728
|
-
key: z.ZodString;
|
|
729
|
-
displayName: z.ZodString;
|
|
730
|
-
hexValue: z.ZodString;
|
|
731
|
-
}, z.core.$strip>;
|
|
732
|
-
/**
|
|
733
|
-
* Represents a color in Todoist.
|
|
734
|
-
* @see https://developer.todoist.com/api/v1/#tag/Colors
|
|
735
|
-
*/
|
|
736
|
-
export type Color = z.infer<typeof ColorSchema>;
|
|
737
|
-
/**
|
|
738
|
-
* Type hints for known object types. Accepts any string for forward compatibility.
|
|
739
|
-
*/
|
|
740
|
-
export type ActivityObjectType = 'task' | 'comment' | 'project' | (string & Record<string, never>);
|
|
741
|
-
/**
|
|
742
|
-
* Type hints for known event types. Accepts any string for forward compatibility.
|
|
743
|
-
*/
|
|
744
|
-
export type ActivityEventType = 'added' | 'updated' | 'deleted' | 'completed' | 'uncompleted' | 'archived' | 'unarchived' | 'shared' | 'left' | (string & Record<string, never>);
|
|
745
|
-
type ModernActivityObjectType = 'task' | 'comment' | 'project' | (string & Record<string, never>);
|
|
746
|
-
/**
|
|
747
|
-
* Combined object:event filter string for the `objectEventTypes` parameter of `getActivityLogs`.
|
|
748
|
-
*
|
|
749
|
-
* Uses modern object type names (`task`, `comment`) rather than legacy API names (`item`, `note`).
|
|
750
|
-
* Either part may be omitted:
|
|
751
|
-
* - `'task:added'` — task additions only
|
|
752
|
-
* - `'task:'` — all events for tasks
|
|
753
|
-
* - `':deleted'` — all deleted events across all object types
|
|
754
|
-
*
|
|
755
|
-
* The final `string & Record<string, never>` member allows any arbitrary string
|
|
756
|
-
* to be passed for forward compatibility, while still providing autocomplete for
|
|
757
|
-
* the known combinations above.
|
|
758
|
-
*/
|
|
759
|
-
export type ActivityObjectEventType = `${ModernActivityObjectType}:${ActivityEventType}` | `${ModernActivityObjectType}:` | `:${ActivityEventType}` | (string & Record<string, never>);
|
|
760
|
-
/**
|
|
761
|
-
* Flexible object containing event-specific data.
|
|
762
|
-
* Uses z.record to accept any properties for forward compatibility.
|
|
763
|
-
*/
|
|
764
|
-
export declare const ActivityEventExtraDataSchema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
765
|
-
export type ActivityEventExtraData = z.infer<typeof ActivityEventExtraDataSchema>;
|
|
766
|
-
/**
|
|
767
|
-
* Activity log event schema. Accepts unknown fields for forward compatibility.
|
|
768
|
-
*/
|
|
769
|
-
export declare const ActivityEventSchema: z.ZodObject<{
|
|
770
|
-
objectType: z.ZodString;
|
|
771
|
-
objectId: z.ZodString;
|
|
772
|
-
eventType: z.ZodString;
|
|
773
|
-
eventDate: z.ZodString;
|
|
774
|
-
id: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>;
|
|
775
|
-
parentProjectId: z.ZodNullable<z.ZodString>;
|
|
776
|
-
parentItemId: z.ZodNullable<z.ZodString>;
|
|
777
|
-
initiatorId: z.ZodNullable<z.ZodString>;
|
|
778
|
-
extraData: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
779
|
-
}, z.core.$catchall<z.ZodAny>>;
|
|
780
|
-
/**
|
|
781
|
-
* Represents an activity log event in Todoist.
|
|
782
|
-
*/
|
|
783
|
-
export type ActivityEvent = z.infer<typeof ActivityEventSchema>;
|
|
784
|
-
/** Available project collaborator roles. */
|
|
785
|
-
export declare const COLLABORATOR_ROLES: readonly ["CREATOR", "ADMIN", "READ_WRITE", "EDIT_ONLY", "COMPLETE_ONLY"];
|
|
786
|
-
/** Role of a collaborator in a project. */
|
|
787
|
-
export type CollaboratorRole = (typeof COLLABORATOR_ROLES)[number];
|
|
788
|
-
/**
|
|
789
|
-
* Available workspace roles.
|
|
790
|
-
*/
|
|
791
|
-
export declare const WORKSPACE_ROLES: readonly ["ADMIN", "MEMBER", "GUEST"];
|
|
792
|
-
/**
|
|
793
|
-
* Role of a user within a workspace.
|
|
794
|
-
*/
|
|
795
|
-
export type WorkspaceRole = (typeof WORKSPACE_ROLES)[number];
|
|
796
|
-
export declare const WorkspaceRoleSchema: z.ZodEnum<{
|
|
797
|
-
ADMIN: "ADMIN";
|
|
798
|
-
MEMBER: "MEMBER";
|
|
799
|
-
GUEST: "GUEST";
|
|
800
|
-
}>;
|
|
801
|
-
export declare const WorkspaceUserSchema: z.ZodObject<{
|
|
802
|
-
userId: z.ZodString;
|
|
803
|
-
workspaceId: z.ZodString;
|
|
804
|
-
userEmail: z.ZodString;
|
|
805
|
-
fullName: z.ZodString;
|
|
806
|
-
timezone: z.ZodString;
|
|
807
|
-
role: z.ZodEnum<{
|
|
808
|
-
ADMIN: "ADMIN";
|
|
809
|
-
MEMBER: "MEMBER";
|
|
810
|
-
GUEST: "GUEST";
|
|
811
|
-
}>;
|
|
812
|
-
imageId: z.ZodNullable<z.ZodString>;
|
|
813
|
-
isDeleted: z.ZodDefault<z.ZodBoolean>;
|
|
814
|
-
}, z.core.$strip>;
|
|
815
|
-
/**
|
|
816
|
-
* Represents a user within a workspace (MemberView from API).
|
|
817
|
-
*/
|
|
818
|
-
export type WorkspaceUser = z.infer<typeof WorkspaceUserSchema>;
|
|
819
|
-
export declare const WorkspaceInvitationSchema: z.ZodObject<{
|
|
820
|
-
id: z.ZodDefault<z.ZodString>;
|
|
821
|
-
inviterId: z.ZodString;
|
|
822
|
-
userEmail: z.ZodString;
|
|
823
|
-
workspaceId: z.ZodString;
|
|
824
|
-
role: z.ZodEnum<{
|
|
825
|
-
ADMIN: "ADMIN";
|
|
826
|
-
MEMBER: "MEMBER";
|
|
827
|
-
GUEST: "GUEST";
|
|
828
|
-
}>;
|
|
829
|
-
isExistingUser: z.ZodBoolean;
|
|
830
|
-
}, z.core.$strip>;
|
|
831
|
-
/**
|
|
832
|
-
* Represents a workspace invitation.
|
|
833
|
-
*/
|
|
834
|
-
export type WorkspaceInvitation = z.infer<typeof WorkspaceInvitationSchema>;
|
|
835
|
-
export declare const PlanPriceSchema: z.ZodObject<{
|
|
836
|
-
currency: z.ZodString;
|
|
837
|
-
amount: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
838
|
-
interval: z.ZodOptional<z.ZodString>;
|
|
839
|
-
}, z.core.$strip>;
|
|
840
|
-
/**
|
|
841
|
-
* Plan pricing information.
|
|
842
|
-
*/
|
|
843
|
-
export type PlanPrice = z.infer<typeof PlanPriceSchema>;
|
|
844
|
-
export declare const FormattedPriceListingSchema: z.ZodObject<{
|
|
845
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
846
|
-
amount: z.ZodOptional<z.ZodNumber>;
|
|
847
|
-
interval: z.ZodOptional<z.ZodString>;
|
|
848
|
-
formatted: z.ZodOptional<z.ZodString>;
|
|
849
|
-
}, z.core.$strip>;
|
|
850
|
-
/**
|
|
851
|
-
* Formatted price listing for workspace plans.
|
|
852
|
-
*/
|
|
853
|
-
export type FormattedPriceListing = z.infer<typeof FormattedPriceListingSchema>;
|
|
854
|
-
/** Available workspace plan names. */
|
|
855
|
-
export declare const WORKSPACE_CURRENT_PLANS: readonly ["Business", "Starter"];
|
|
856
|
-
/** Display name of a workspace plan. */
|
|
857
|
-
export type WorkspaceCurrentPlan = (typeof WORKSPACE_CURRENT_PLANS)[number];
|
|
858
|
-
/** Available workspace plan statuses. */
|
|
859
|
-
export declare const WORKSPACE_PLAN_STATUSES: readonly ["Active", "Downgraded", "Cancelled", "NeverSubscribed"];
|
|
860
|
-
/** Subscription status of a workspace plan. */
|
|
861
|
-
export type WorkspacePlanStatus = (typeof WORKSPACE_PLAN_STATUSES)[number];
|
|
862
|
-
export declare const WorkspacePlanDetailsSchema: z.ZodObject<{
|
|
863
|
-
currentMemberCount: z.ZodNumber;
|
|
864
|
-
currentPlan: z.ZodEnum<{
|
|
865
|
-
Business: "Business";
|
|
866
|
-
Starter: "Starter";
|
|
867
|
-
}>;
|
|
868
|
-
currentPlanStatus: z.ZodEnum<{
|
|
869
|
-
Active: "Active";
|
|
870
|
-
Downgraded: "Downgraded";
|
|
871
|
-
Cancelled: "Cancelled";
|
|
872
|
-
NeverSubscribed: "NeverSubscribed";
|
|
873
|
-
}>;
|
|
874
|
-
downgradeAt: z.ZodNullable<z.ZodString>;
|
|
875
|
-
currentActiveProjects: z.ZodNumber;
|
|
876
|
-
maximumActiveProjects: z.ZodNumber;
|
|
877
|
-
priceList: z.ZodArray<z.ZodObject<{
|
|
878
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
879
|
-
amount: z.ZodOptional<z.ZodNumber>;
|
|
880
|
-
interval: z.ZodOptional<z.ZodString>;
|
|
881
|
-
formatted: z.ZodOptional<z.ZodString>;
|
|
882
|
-
}, z.core.$strip>>;
|
|
883
|
-
workspaceId: z.ZodNumber;
|
|
884
|
-
isTrialing: z.ZodBoolean;
|
|
885
|
-
trialEndsAt: z.ZodNullable<z.ZodString>;
|
|
886
|
-
cancelAtPeriodEnd: z.ZodBoolean;
|
|
887
|
-
hasTrialed: z.ZodBoolean;
|
|
888
|
-
planPrice: z.ZodNullable<z.ZodObject<{
|
|
889
|
-
currency: z.ZodString;
|
|
890
|
-
amount: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
891
|
-
interval: z.ZodOptional<z.ZodString>;
|
|
892
|
-
}, z.core.$strip>>;
|
|
893
|
-
hasBillingPortal: z.ZodBoolean;
|
|
894
|
-
hasBillingPortalSwitchToAnnual: z.ZodBoolean;
|
|
895
|
-
}, z.core.$strip>;
|
|
896
|
-
/**
|
|
897
|
-
* Represents workspace plan and billing details.
|
|
898
|
-
*/
|
|
899
|
-
export type WorkspacePlanDetails = z.infer<typeof WorkspacePlanDetailsSchema>;
|
|
900
|
-
export declare const JoinWorkspaceResultSchema: z.ZodObject<{
|
|
901
|
-
customSortingApplied: z.ZodBoolean;
|
|
902
|
-
projectSortPreference: z.ZodString;
|
|
903
|
-
role: z.ZodEnum<{
|
|
904
|
-
ADMIN: "ADMIN";
|
|
905
|
-
MEMBER: "MEMBER";
|
|
906
|
-
GUEST: "GUEST";
|
|
907
|
-
}>;
|
|
908
|
-
userId: z.ZodString;
|
|
909
|
-
workspaceId: z.ZodString;
|
|
910
|
-
}, z.core.$strip>;
|
|
911
|
-
/**
|
|
912
|
-
* Result returned when successfully joining a workspace.
|
|
913
|
-
*/
|
|
914
|
-
export type JoinWorkspaceResult = z.infer<typeof JoinWorkspaceResultSchema>;
|
|
915
|
-
/**
|
|
916
|
-
* Available workspace plans.
|
|
917
|
-
*/
|
|
918
|
-
export declare const WORKSPACE_PLANS: readonly ["STARTER", "BUSINESS"];
|
|
919
|
-
/**
|
|
920
|
-
* Workspace plan type.
|
|
921
|
-
*/
|
|
922
|
-
export type WorkspacePlan = (typeof WORKSPACE_PLANS)[number];
|
|
923
|
-
export declare const WorkspacePlanSchema: z.ZodEnum<{
|
|
924
|
-
STARTER: "STARTER";
|
|
925
|
-
BUSINESS: "BUSINESS";
|
|
926
|
-
}>;
|
|
927
|
-
/**
|
|
928
|
-
* Workspace resource limits.
|
|
929
|
-
*/
|
|
930
|
-
export declare const WorkspaceLimitsSchema: z.ZodObject<{
|
|
931
|
-
current: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
932
|
-
next: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
933
|
-
}, z.core.$catchall<z.ZodAny>>;
|
|
934
|
-
export type WorkspaceLimits = z.infer<typeof WorkspaceLimitsSchema>;
|
|
935
|
-
/**
|
|
936
|
-
* Workspace properties (flexible object for unknown fields).
|
|
937
|
-
*/
|
|
938
|
-
export declare const WorkspacePropertiesSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
939
|
-
export type WorkspaceProperties = z.infer<typeof WorkspacePropertiesSchema>;
|
|
940
|
-
/**
|
|
941
|
-
* Represents a workspace in Todoist.
|
|
942
|
-
*/
|
|
943
|
-
export declare const WorkspaceSchema: z.ZodObject<{
|
|
944
|
-
id: z.ZodString;
|
|
945
|
-
name: z.ZodString;
|
|
946
|
-
plan: z.ZodEnum<{
|
|
947
|
-
STARTER: "STARTER";
|
|
948
|
-
BUSINESS: "BUSINESS";
|
|
949
|
-
}>;
|
|
950
|
-
role: z.ZodEnum<{
|
|
951
|
-
ADMIN: "ADMIN";
|
|
952
|
-
MEMBER: "MEMBER";
|
|
953
|
-
GUEST: "GUEST";
|
|
954
|
-
}>;
|
|
955
|
-
inviteCode: z.ZodString;
|
|
956
|
-
isLinkSharingEnabled: z.ZodBoolean;
|
|
957
|
-
isGuestAllowed: z.ZodBoolean;
|
|
958
|
-
limits: z.ZodObject<{
|
|
959
|
-
current: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
960
|
-
next: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
961
|
-
}, z.core.$catchall<z.ZodAny>>;
|
|
962
|
-
logoBig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
963
|
-
logoMedium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
964
|
-
logoSmall: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
965
|
-
logoS640: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
966
|
-
createdAt: z.ZodString;
|
|
967
|
-
creatorId: z.ZodString;
|
|
968
|
-
properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
969
|
-
}, z.core.$strip>;
|
|
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>;
|
|
1211
|
-
export {};
|