@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,1188 +0,0 @@
|
|
|
1
|
-
import type { RequireAllOrNone, RequireOneOrNone, RequireExactlyOne } from 'type-fest';
|
|
2
|
-
import type { ColorKey } from '../utils/colors.js';
|
|
3
|
-
import type { ActivityEvent, ActivityObjectEventType, CollaboratorRole, Comment, DueDate, Duration, Label, MemberActivityInfo, PersonalProject, ProjectViewStyle, ProjectVisibility, Section, Task, User, WorkspaceInvitation, WorkspaceProject, WorkspaceRole, WorkspaceUser, WorkspaceUserTask } from './entities.js';
|
|
4
|
-
import type { LocationTrigger, Reminder, LocationReminder } from './sync/resources/reminders.js';
|
|
5
|
-
/**
|
|
6
|
-
* Arguments for creating a new task.
|
|
7
|
-
* @see https://developer.todoist.com/api/v1/#tag/Tasks/operation/create_task_api_v1_tasks_post
|
|
8
|
-
*/
|
|
9
|
-
export type AddTaskArgs = {
|
|
10
|
-
content: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
projectId?: string;
|
|
13
|
-
sectionId?: string;
|
|
14
|
-
parentId?: string;
|
|
15
|
-
order?: number;
|
|
16
|
-
labels?: string[];
|
|
17
|
-
priority?: number;
|
|
18
|
-
assigneeId?: string;
|
|
19
|
-
dueString?: string;
|
|
20
|
-
dueLang?: string;
|
|
21
|
-
deadlineLang?: string;
|
|
22
|
-
deadlineDate?: string;
|
|
23
|
-
isUncompletable?: boolean;
|
|
24
|
-
} & RequireOneOrNone<{
|
|
25
|
-
dueDate?: string;
|
|
26
|
-
dueDatetime?: string;
|
|
27
|
-
}> & RequireAllOrNone<{
|
|
28
|
-
duration?: Duration['amount'];
|
|
29
|
-
durationUnit?: Duration['unit'];
|
|
30
|
-
}>;
|
|
31
|
-
/**
|
|
32
|
-
* Arguments for retrieving tasks.
|
|
33
|
-
* @see https://developer.todoist.com/api/v1/#tag/Tasks/operation/get_tasks_api_v1_tasks_get
|
|
34
|
-
*/
|
|
35
|
-
export type GetTasksArgs = {
|
|
36
|
-
projectId?: string;
|
|
37
|
-
sectionId?: string;
|
|
38
|
-
parentId?: string;
|
|
39
|
-
label?: string;
|
|
40
|
-
ids?: string[];
|
|
41
|
-
cursor?: string | null;
|
|
42
|
-
limit?: number;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Arguments for retrieving tasks by filter.
|
|
46
|
-
* @see https://developer.todoist.com/api/v1/#tag/Tasks/operation/get_tasks_by_filter_api_v1_tasks_filter_get
|
|
47
|
-
*/
|
|
48
|
-
export type GetTasksByFilterArgs = {
|
|
49
|
-
query: string;
|
|
50
|
-
lang?: string;
|
|
51
|
-
cursor?: string | null;
|
|
52
|
-
limit?: number;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Arguments for retrieving completed tasks by completion date.
|
|
56
|
-
* @see https://developer.todoist.com/api/v1/#tag/Tasks/operation/tasks_completed_by_completion_date_api_v1_tasks_completed_by_completion_date_get
|
|
57
|
-
*/
|
|
58
|
-
export type GetCompletedTasksByCompletionDateArgs = {
|
|
59
|
-
since: string;
|
|
60
|
-
until: string;
|
|
61
|
-
workspaceId?: string | null;
|
|
62
|
-
projectId?: string | null;
|
|
63
|
-
sectionId?: string | null;
|
|
64
|
-
parentId?: string | null;
|
|
65
|
-
filterQuery?: string | null;
|
|
66
|
-
filterLang?: string | null;
|
|
67
|
-
cursor?: string | null;
|
|
68
|
-
limit?: number;
|
|
69
|
-
publicKey?: string | null;
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* Arguments for retrieving completed tasks by due date.
|
|
73
|
-
* @see https://developer.todoist.com/api/v1/#tag/Tasks/operation/tasks_completed_by_due_date_api_v1_tasks_completed_by_due_date_get
|
|
74
|
-
*/
|
|
75
|
-
export type GetCompletedTasksByDueDateArgs = {
|
|
76
|
-
since: string;
|
|
77
|
-
until: string;
|
|
78
|
-
workspaceId?: string | null;
|
|
79
|
-
projectId?: string | null;
|
|
80
|
-
sectionId?: string | null;
|
|
81
|
-
parentId?: string | null;
|
|
82
|
-
filterQuery?: string | null;
|
|
83
|
-
filterLang?: string | null;
|
|
84
|
-
cursor?: string | null;
|
|
85
|
-
limit?: number;
|
|
86
|
-
};
|
|
87
|
-
/**
|
|
88
|
-
* Arguments for searching completed tasks.
|
|
89
|
-
*/
|
|
90
|
-
export type SearchCompletedTasksArgs = {
|
|
91
|
-
query: string;
|
|
92
|
-
cursor?: string | null;
|
|
93
|
-
limit?: number;
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* @see https://developer.todoist.com/api/v1/#tag/Tasks/operation/get_tasks_api_v1_tasks_get
|
|
97
|
-
*/
|
|
98
|
-
export type GetTasksResponse = {
|
|
99
|
-
results: Task[];
|
|
100
|
-
nextCursor: string | null;
|
|
101
|
-
};
|
|
102
|
-
/**
|
|
103
|
-
* @see https://developer.todoist.com/api/v1/#tag/Tasks/operation/tasks_completed_by_due_date_api_v1_tasks_completed_by_due_date_get
|
|
104
|
-
* @see https://developer.todoist.com/api/v1/#tag/Tasks/operation/tasks_completed_by_completion_date_api_v1_tasks_completed_by_completion_date_get
|
|
105
|
-
*/
|
|
106
|
-
export type GetCompletedTasksResponse = {
|
|
107
|
-
items: Task[];
|
|
108
|
-
nextCursor: string | null;
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* Arguments for updating a task.
|
|
112
|
-
* @see https://developer.todoist.com/api/v1/#tag/Tasks/operation/update_task_api_v1_tasks__task_id__post
|
|
113
|
-
*/
|
|
114
|
-
export type UpdateTaskArgs = {
|
|
115
|
-
content?: string;
|
|
116
|
-
description?: string;
|
|
117
|
-
labels?: string[];
|
|
118
|
-
priority?: number;
|
|
119
|
-
/**
|
|
120
|
-
* Sort order of the task within its parent/project.
|
|
121
|
-
* Internally mapped to `child_order` in the API payload.
|
|
122
|
-
*/
|
|
123
|
-
order?: number;
|
|
124
|
-
/**
|
|
125
|
-
* Natural language due date.
|
|
126
|
-
* Use `"no date"` to clear a due date, or `null` as an SDK alias for the same behavior.
|
|
127
|
-
*/
|
|
128
|
-
dueString?: (string & {}) | 'no date' | null;
|
|
129
|
-
dueLang?: string | null;
|
|
130
|
-
assigneeId?: string | null;
|
|
131
|
-
/**
|
|
132
|
-
* Deadline date in `YYYY-MM-DD` format.
|
|
133
|
-
* Use `null` to clear a task deadline.
|
|
134
|
-
*/
|
|
135
|
-
deadlineDate?: string | null;
|
|
136
|
-
deadlineLang?: string | null;
|
|
137
|
-
isUncompletable?: boolean;
|
|
138
|
-
} & RequireOneOrNone<{
|
|
139
|
-
dueDate?: string;
|
|
140
|
-
dueDatetime?: string;
|
|
141
|
-
}> & RequireAllOrNone<{
|
|
142
|
-
duration?: Duration['amount'];
|
|
143
|
-
durationUnit?: Duration['unit'];
|
|
144
|
-
}>;
|
|
145
|
-
/**
|
|
146
|
-
* Arguments for quick adding a task.
|
|
147
|
-
* @see https://developer.todoist.com/api/v1/#tag/Tasks/operation/quick_add_api_v1_tasks_quick_post
|
|
148
|
-
*/
|
|
149
|
-
export type QuickAddTaskArgs = {
|
|
150
|
-
text: string;
|
|
151
|
-
note?: string;
|
|
152
|
-
reminder?: string;
|
|
153
|
-
autoReminder?: boolean;
|
|
154
|
-
meta?: boolean;
|
|
155
|
-
isUncompletable?: boolean;
|
|
156
|
-
};
|
|
157
|
-
/**
|
|
158
|
-
* Response from quick adding a task.
|
|
159
|
-
* @see https://developer.todoist.com/api/v1/#tag/Tasks/operation/quick_add_api_v1_tasks_quick_post
|
|
160
|
-
*/
|
|
161
|
-
/**
|
|
162
|
-
* Arguments for moving a task.
|
|
163
|
-
* @see https://developer.todoist.com/api/v1/#tag/Tasks/operation/move_task_api_v1_tasks__task_id__move_post
|
|
164
|
-
*/
|
|
165
|
-
export type MoveTaskArgs = RequireExactlyOne<{
|
|
166
|
-
projectId?: string;
|
|
167
|
-
sectionId?: string;
|
|
168
|
-
parentId?: string;
|
|
169
|
-
}>;
|
|
170
|
-
/**
|
|
171
|
-
* Arguments for retrieving projects.
|
|
172
|
-
* @see https://developer.todoist.com/api/v1/#tag/Projects/operation/get_projects_api_v1_projects_get
|
|
173
|
-
*/
|
|
174
|
-
export type GetProjectsArgs = {
|
|
175
|
-
cursor?: string | null;
|
|
176
|
-
limit?: number;
|
|
177
|
-
};
|
|
178
|
-
/**
|
|
179
|
-
* Arguments for searching projects.
|
|
180
|
-
*/
|
|
181
|
-
type SearchArgs = {
|
|
182
|
-
query: string;
|
|
183
|
-
cursor?: string | null;
|
|
184
|
-
limit?: number;
|
|
185
|
-
};
|
|
186
|
-
export type SearchProjectsArgs = SearchArgs;
|
|
187
|
-
/**
|
|
188
|
-
* Response from retrieving projects.
|
|
189
|
-
* @see https://developer.todoist.com/api/v1/#tag/Projects/operation/get_projects_api_v1_projects_get
|
|
190
|
-
*/
|
|
191
|
-
export type GetProjectsResponse = {
|
|
192
|
-
results: (PersonalProject | WorkspaceProject)[];
|
|
193
|
-
nextCursor: string | null;
|
|
194
|
-
};
|
|
195
|
-
/**
|
|
196
|
-
* Arguments for retrieving archived projects.
|
|
197
|
-
* @see https://developer.todoist.com/api/v1/#tag/Projects/operation/get_archived_projects_api_v1_projects_archived_get
|
|
198
|
-
*/
|
|
199
|
-
export type GetArchivedProjectsArgs = {
|
|
200
|
-
cursor?: string | null;
|
|
201
|
-
limit?: number;
|
|
202
|
-
};
|
|
203
|
-
/**
|
|
204
|
-
* Response from retrieving archived projects.
|
|
205
|
-
* @see https://developer.todoist.com/api/v1/#tag/Projects/operation/get_archived_projects_api_v1_projects_archived_get
|
|
206
|
-
*/
|
|
207
|
-
export type GetArchivedProjectsResponse = {
|
|
208
|
-
results: (PersonalProject | WorkspaceProject)[];
|
|
209
|
-
nextCursor: string | null;
|
|
210
|
-
};
|
|
211
|
-
/**
|
|
212
|
-
* Arguments for creating a new project.
|
|
213
|
-
* @see https://developer.todoist.com/api/v1/#tag/Projects/operation/create_project_api_v1_projects_post
|
|
214
|
-
*/
|
|
215
|
-
export type AddProjectArgs = {
|
|
216
|
-
name: string;
|
|
217
|
-
parentId?: string;
|
|
218
|
-
color?: ColorKey;
|
|
219
|
-
isFavorite?: boolean;
|
|
220
|
-
viewStyle?: ProjectViewStyle;
|
|
221
|
-
workspaceId?: string;
|
|
222
|
-
};
|
|
223
|
-
/**
|
|
224
|
-
* Arguments for updating a project.
|
|
225
|
-
* @see https://developer.todoist.com/api/v1/#tag/Projects/operation/update_project_api_v1_projects__project_id__post
|
|
226
|
-
*/
|
|
227
|
-
export type UpdateProjectArgs = {
|
|
228
|
-
name?: string;
|
|
229
|
-
color?: ColorKey;
|
|
230
|
-
isFavorite?: boolean;
|
|
231
|
-
viewStyle?: ProjectViewStyle;
|
|
232
|
-
};
|
|
233
|
-
/**
|
|
234
|
-
* Arguments for retrieving project collaborators.
|
|
235
|
-
* @see https://developer.todoist.com/api/v1/#tag/Projects/operation/get_project_collaborators_api_v1_projects__project_id__collaborators_get
|
|
236
|
-
*/
|
|
237
|
-
export type GetProjectCollaboratorsArgs = {
|
|
238
|
-
cursor?: string | null;
|
|
239
|
-
limit?: number;
|
|
240
|
-
};
|
|
241
|
-
/**
|
|
242
|
-
* Response from retrieving project collaborators.
|
|
243
|
-
* @see https://developer.todoist.com/api/v1/#tag/Projects/operation/get_project_collaborators_api_v1_projects__project_id__collaborators_get
|
|
244
|
-
*/
|
|
245
|
-
export type GetProjectCollaboratorsResponse = {
|
|
246
|
-
results: User[];
|
|
247
|
-
nextCursor: string | null;
|
|
248
|
-
};
|
|
249
|
-
/**
|
|
250
|
-
* Arguments for retrieving sections.
|
|
251
|
-
* @see https://developer.todoist.com/api/v1/#tag/Sections/operation/get_sections_api_v1_sections_get
|
|
252
|
-
*/
|
|
253
|
-
export type GetSectionsArgs = {
|
|
254
|
-
projectId?: string | null;
|
|
255
|
-
cursor?: string | null;
|
|
256
|
-
limit?: number;
|
|
257
|
-
};
|
|
258
|
-
/**
|
|
259
|
-
* Arguments for searching sections.
|
|
260
|
-
*/
|
|
261
|
-
export type SearchSectionsArgs = SearchArgs & {
|
|
262
|
-
projectId?: string | null;
|
|
263
|
-
};
|
|
264
|
-
/**
|
|
265
|
-
* Response from retrieving sections.
|
|
266
|
-
* @see https://developer.todoist.com/api/v1/#tag/Sections/operation/get_sections_api_v1_sections_get
|
|
267
|
-
*/
|
|
268
|
-
export type GetSectionsResponse = {
|
|
269
|
-
results: Section[];
|
|
270
|
-
nextCursor: string | null;
|
|
271
|
-
};
|
|
272
|
-
/**
|
|
273
|
-
* Arguments for creating a new section.
|
|
274
|
-
* @see https://developer.todoist.com/api/v1/#tag/Sections/operation/create_section_api_v1_sections_post
|
|
275
|
-
*/
|
|
276
|
-
export type AddSectionArgs = {
|
|
277
|
-
name: string;
|
|
278
|
-
projectId: string;
|
|
279
|
-
order?: number | null;
|
|
280
|
-
};
|
|
281
|
-
/**
|
|
282
|
-
* Arguments for updating a section.
|
|
283
|
-
* @see https://developer.todoist.com/api/v1/#tag/Sections/operation/update_section_api_v1_sections__section_id__post
|
|
284
|
-
*/
|
|
285
|
-
export type UpdateSectionArgs = {
|
|
286
|
-
name: string;
|
|
287
|
-
};
|
|
288
|
-
/**
|
|
289
|
-
* Arguments for retrieving labels.
|
|
290
|
-
* @see https://developer.todoist.com/api/v1/#tag/Labels/operation/get_labels_api_v1_labels_get
|
|
291
|
-
*/
|
|
292
|
-
export type GetLabelsArgs = {
|
|
293
|
-
cursor?: string | null;
|
|
294
|
-
limit?: number;
|
|
295
|
-
};
|
|
296
|
-
/**
|
|
297
|
-
* Arguments for searching labels.
|
|
298
|
-
*/
|
|
299
|
-
export type SearchLabelsArgs = SearchArgs;
|
|
300
|
-
/**
|
|
301
|
-
* Response from retrieving labels.
|
|
302
|
-
* @see https://developer.todoist.com/api/v1/#tag/Labels/operation/get_labels_api_v1_labels_get
|
|
303
|
-
*/
|
|
304
|
-
export type GetLabelsResponse = {
|
|
305
|
-
results: Label[];
|
|
306
|
-
nextCursor: string | null;
|
|
307
|
-
};
|
|
308
|
-
/**
|
|
309
|
-
* Arguments for creating a new label.
|
|
310
|
-
* @see https://developer.todoist.com/api/v1/#tag/Labels/operation/create_label_api_v1_labels_post
|
|
311
|
-
*/
|
|
312
|
-
export type AddLabelArgs = {
|
|
313
|
-
name: string;
|
|
314
|
-
order?: number | null;
|
|
315
|
-
color?: ColorKey;
|
|
316
|
-
isFavorite?: boolean;
|
|
317
|
-
};
|
|
318
|
-
/**
|
|
319
|
-
* Arguments for updating a label.
|
|
320
|
-
* @see https://developer.todoist.com/api/v1/#tag/Labels/operation/update_label_api_v1_labels__label_id__post
|
|
321
|
-
*/
|
|
322
|
-
export type UpdateLabelArgs = {
|
|
323
|
-
name?: string;
|
|
324
|
-
order?: number | null;
|
|
325
|
-
color?: ColorKey;
|
|
326
|
-
isFavorite?: boolean;
|
|
327
|
-
};
|
|
328
|
-
/**
|
|
329
|
-
* Arguments for retrieving shared labels.
|
|
330
|
-
* @see https://developer.todoist.com/api/v1/#tag/Labels/operation/shared_labels_api_v1_labels_shared_get
|
|
331
|
-
*/
|
|
332
|
-
export type GetSharedLabelsArgs = {
|
|
333
|
-
omitPersonal?: boolean;
|
|
334
|
-
cursor?: string | null;
|
|
335
|
-
limit?: number;
|
|
336
|
-
};
|
|
337
|
-
/**
|
|
338
|
-
* Response from retrieving shared labels.
|
|
339
|
-
* @see https://developer.todoist.com/api/v1/#tag/Labels/operation/shared_labels_api_v1_labels_shared_get
|
|
340
|
-
*/
|
|
341
|
-
export type GetSharedLabelsResponse = {
|
|
342
|
-
results: string[];
|
|
343
|
-
nextCursor: string | null;
|
|
344
|
-
};
|
|
345
|
-
/**
|
|
346
|
-
* Arguments for renaming a shared label.
|
|
347
|
-
* @see https://developer.todoist.com/api/v1/#tag/Labels/operation/shared_labels_rename_api_v1_labels_shared_rename_post
|
|
348
|
-
*/
|
|
349
|
-
export type RenameSharedLabelArgs = {
|
|
350
|
-
name: string;
|
|
351
|
-
newName: string;
|
|
352
|
-
};
|
|
353
|
-
/**
|
|
354
|
-
* Arguments for removing a shared label.
|
|
355
|
-
* @see https://developer.todoist.com/api/v1/#tag/Labels/operation/shared_labels_remove_api_v1_labels_shared_remove_post
|
|
356
|
-
*/
|
|
357
|
-
export type RemoveSharedLabelArgs = {
|
|
358
|
-
name: string;
|
|
359
|
-
};
|
|
360
|
-
/**
|
|
361
|
-
* Arguments for retrieving comments.
|
|
362
|
-
* @see https://developer.todoist.com/api/v1/#tag/Comments/operation/get_comments_api_v1_comments_get
|
|
363
|
-
*/
|
|
364
|
-
export type GetCommentsArgs = {
|
|
365
|
-
taskId: string;
|
|
366
|
-
projectId?: never;
|
|
367
|
-
cursor?: string | null;
|
|
368
|
-
limit?: number;
|
|
369
|
-
};
|
|
370
|
-
/**
|
|
371
|
-
* Arguments for retrieving task comments.
|
|
372
|
-
* @see https://developer.todoist.com/api/v1/#tag/Comments/operation/get_comments_api_v1_comments_get
|
|
373
|
-
*/
|
|
374
|
-
export type GetTaskCommentsArgs = {
|
|
375
|
-
taskId: string;
|
|
376
|
-
projectId?: never;
|
|
377
|
-
cursor?: string | null;
|
|
378
|
-
limit?: number;
|
|
379
|
-
};
|
|
380
|
-
/**
|
|
381
|
-
* Arguments for retrieving project comments.
|
|
382
|
-
* @see https://developer.todoist.com/api/v1/#tag/Comments/operation/get_comments_api_v1_comments_get
|
|
383
|
-
*/
|
|
384
|
-
export type GetProjectCommentsArgs = {
|
|
385
|
-
projectId: string;
|
|
386
|
-
taskId?: never;
|
|
387
|
-
cursor?: string | null;
|
|
388
|
-
limit?: number;
|
|
389
|
-
};
|
|
390
|
-
/**
|
|
391
|
-
* Response from retrieving comments.
|
|
392
|
-
* @see https://developer.todoist.com/api/v1/#tag/Comments/operation/get_comments_api_v1_comments_get
|
|
393
|
-
*/
|
|
394
|
-
export type GetCommentsResponse = {
|
|
395
|
-
results: Comment[];
|
|
396
|
-
nextCursor: string | null;
|
|
397
|
-
};
|
|
398
|
-
/**
|
|
399
|
-
* Arguments for creating a new comment.
|
|
400
|
-
* @see https://developer.todoist.com/api/v1/#tag/Comments/operation/create_comment_api_v1_comments_post
|
|
401
|
-
*/
|
|
402
|
-
export type AddCommentArgs = {
|
|
403
|
-
content: string;
|
|
404
|
-
attachment?: {
|
|
405
|
-
fileName?: string;
|
|
406
|
-
fileUrl: string;
|
|
407
|
-
fileType?: string;
|
|
408
|
-
resourceType?: string;
|
|
409
|
-
} | null;
|
|
410
|
-
} & RequireExactlyOne<{
|
|
411
|
-
taskId?: string;
|
|
412
|
-
projectId?: string;
|
|
413
|
-
}>;
|
|
414
|
-
/**
|
|
415
|
-
* Arguments for updating a comment.
|
|
416
|
-
* @see https://developer.todoist.com/api/v1/#tag/Comments/operation/update_comment_api_v1_comments__comment_id__post
|
|
417
|
-
*/
|
|
418
|
-
export type UpdateCommentArgs = {
|
|
419
|
-
content: string;
|
|
420
|
-
};
|
|
421
|
-
/** Available reminder delivery services. */
|
|
422
|
-
export declare const REMINDER_DELIVERY_SERVICES: readonly ["email", "push"];
|
|
423
|
-
/** Delivery service for a reminder notification. */
|
|
424
|
-
export type ReminderDeliveryService = (typeof REMINDER_DELIVERY_SERVICES)[number];
|
|
425
|
-
export type ReminderDueDate = Partial<Pick<DueDate, 'date' | 'string' | 'timezone' | 'lang' | 'isRecurring'>>;
|
|
426
|
-
type ReminderTaskArgs = {
|
|
427
|
-
taskId: string;
|
|
428
|
-
};
|
|
429
|
-
type TimeBasedReminderArgs = {
|
|
430
|
-
service?: ReminderDeliveryService;
|
|
431
|
-
notifyUid?: string;
|
|
432
|
-
isUrgent?: boolean;
|
|
433
|
-
};
|
|
434
|
-
type AddLocationReminderFields = {
|
|
435
|
-
notifyUid?: string;
|
|
436
|
-
name: string;
|
|
437
|
-
locLat: string;
|
|
438
|
-
locLong: string;
|
|
439
|
-
locTrigger: LocationTrigger;
|
|
440
|
-
radius?: number;
|
|
441
|
-
};
|
|
442
|
-
export type AddRelativeReminderArgs = ReminderTaskArgs & {
|
|
443
|
-
reminderType?: 'relative';
|
|
444
|
-
minuteOffset: number;
|
|
445
|
-
} & TimeBasedReminderArgs;
|
|
446
|
-
export type AddAbsoluteReminderArgs = ReminderTaskArgs & {
|
|
447
|
-
reminderType: 'absolute';
|
|
448
|
-
due: ReminderDueDate;
|
|
449
|
-
} & TimeBasedReminderArgs;
|
|
450
|
-
export type AddLocationReminderArgs = ReminderTaskArgs & AddLocationReminderFields;
|
|
451
|
-
/**
|
|
452
|
-
* Arguments for creating a new reminder.
|
|
453
|
-
* @see https://developer.todoist.com/api/v1/#tag/Reminders/operation/create_reminder_api_v1_reminders_post
|
|
454
|
-
*/
|
|
455
|
-
export type AddReminderArgs = AddRelativeReminderArgs | AddAbsoluteReminderArgs;
|
|
456
|
-
export type UpdateRelativeReminderArgs = {
|
|
457
|
-
reminderType: 'relative';
|
|
458
|
-
} & Partial<Omit<AddRelativeReminderArgs, 'taskId' | 'reminderType'>>;
|
|
459
|
-
export type UpdateAbsoluteReminderArgs = {
|
|
460
|
-
reminderType: 'absolute';
|
|
461
|
-
} & Partial<Omit<AddAbsoluteReminderArgs, 'taskId' | 'reminderType'>>;
|
|
462
|
-
/**
|
|
463
|
-
* Arguments for updating an existing reminder.
|
|
464
|
-
* @see https://developer.todoist.com/api/v1/#tag/Reminders/operation/update_reminder_api_v1_reminders__reminder_id__post
|
|
465
|
-
*/
|
|
466
|
-
export type UpdateReminderArgs = UpdateRelativeReminderArgs | UpdateAbsoluteReminderArgs;
|
|
467
|
-
/**
|
|
468
|
-
* Arguments for updating an existing location reminder.
|
|
469
|
-
*/
|
|
470
|
-
export type UpdateLocationReminderArgs = Partial<Omit<AddLocationReminderArgs, 'taskId'>>;
|
|
471
|
-
/**
|
|
472
|
-
* Common arguments for retrieving activity logs (excluding filter-type params).
|
|
473
|
-
*/
|
|
474
|
-
type GetActivityLogsArgsCommon = {
|
|
475
|
-
/**
|
|
476
|
-
* Filter by the ID of a specific object.
|
|
477
|
-
*/
|
|
478
|
-
objectId?: string;
|
|
479
|
-
/**
|
|
480
|
-
* Filter events by parent project ID.
|
|
481
|
-
*/
|
|
482
|
-
parentProjectId?: string;
|
|
483
|
-
/**
|
|
484
|
-
* Filter events by parent task ID.
|
|
485
|
-
*/
|
|
486
|
-
parentItemId?: string;
|
|
487
|
-
/**
|
|
488
|
-
* When true, includes the parent object data in the response.
|
|
489
|
-
*/
|
|
490
|
-
includeParentObject?: boolean;
|
|
491
|
-
/**
|
|
492
|
-
* When true, includes child object data in the response.
|
|
493
|
-
*/
|
|
494
|
-
includeChildObjects?: boolean;
|
|
495
|
-
/**
|
|
496
|
-
* Filter by the user ID who initiated the event.
|
|
497
|
-
*/
|
|
498
|
-
initiatorId?: string;
|
|
499
|
-
/**
|
|
500
|
-
* When true, filters for events with no initiator (system-generated events).
|
|
501
|
-
* When false, filters for events with an initiator.
|
|
502
|
-
* When null or undefined, no filtering on initiator is applied.
|
|
503
|
-
*/
|
|
504
|
-
initiatorIdNull?: boolean | null;
|
|
505
|
-
/**
|
|
506
|
-
* When true, ensures the last state of objects is included in the response.
|
|
507
|
-
*/
|
|
508
|
-
ensureLastState?: boolean;
|
|
509
|
-
/**
|
|
510
|
-
* When true, includes comment annotations in the response.
|
|
511
|
-
*/
|
|
512
|
-
annotateNotes?: boolean;
|
|
513
|
-
/**
|
|
514
|
-
* When true, includes parent object annotations in the response.
|
|
515
|
-
*/
|
|
516
|
-
annotateParents?: boolean;
|
|
517
|
-
/**
|
|
518
|
-
* Pagination cursor for retrieving the next page of results.
|
|
519
|
-
*/
|
|
520
|
-
cursor?: string | null;
|
|
521
|
-
/**
|
|
522
|
-
* Maximum number of results to return per page.
|
|
523
|
-
*/
|
|
524
|
-
limit?: number;
|
|
525
|
-
/**
|
|
526
|
-
* Start date for filtering events (inclusive). Replaces deprecated `since`.
|
|
527
|
-
* Accepts a Date object or YYYY-MM-DD string.
|
|
528
|
-
*/
|
|
529
|
-
dateFrom?: Date | string;
|
|
530
|
-
/**
|
|
531
|
-
* End date for filtering events (inclusive). Replaces deprecated `until`.
|
|
532
|
-
* Accepts a Date object or YYYY-MM-DD string.
|
|
533
|
-
*/
|
|
534
|
-
dateTo?: Date | string;
|
|
535
|
-
};
|
|
536
|
-
export type GetActivityLogsArgs = GetActivityLogsArgsCommon & {
|
|
537
|
-
objectEventTypes?: ActivityObjectEventType | ActivityObjectEventType[];
|
|
538
|
-
/** @removed Use `objectEventTypes` instead. */
|
|
539
|
-
objectType?: never;
|
|
540
|
-
/** @removed Use `objectEventTypes` instead. */
|
|
541
|
-
eventType?: never;
|
|
542
|
-
/** @removed Use `dateFrom` instead. */
|
|
543
|
-
since?: never;
|
|
544
|
-
/** @removed Use `dateTo` instead. */
|
|
545
|
-
until?: never;
|
|
546
|
-
};
|
|
547
|
-
/**
|
|
548
|
-
* Response from retrieving activity logs.
|
|
549
|
-
*/
|
|
550
|
-
export type GetActivityLogsResponse = {
|
|
551
|
-
results: ActivityEvent[];
|
|
552
|
-
nextCursor: string | null;
|
|
553
|
-
};
|
|
554
|
-
/**
|
|
555
|
-
* Arguments for uploading a file.
|
|
556
|
-
* @see https://developer.todoist.com/api/v1/#tag/Uploads/operation/upload_file_api_v1_uploads_post
|
|
557
|
-
*/
|
|
558
|
-
export type UploadFileArgs = {
|
|
559
|
-
/**
|
|
560
|
-
* The file content to upload. Can be:
|
|
561
|
-
* - Buffer: File content as a Buffer (requires fileName)
|
|
562
|
-
* - ReadableStream: File content as a stream (requires fileName)
|
|
563
|
-
* - string: Path to a file on the filesystem (fileName is optional, will be inferred from path)
|
|
564
|
-
*/
|
|
565
|
-
file: Buffer | NodeJS.ReadableStream | string | Blob;
|
|
566
|
-
/**
|
|
567
|
-
* The name of the file. Required for Buffer and Stream inputs.
|
|
568
|
-
* Optional for file path strings and File objects (will be inferred if not provided).
|
|
569
|
-
*/
|
|
570
|
-
fileName?: string;
|
|
571
|
-
/**
|
|
572
|
-
* The project ID to associate the upload with.
|
|
573
|
-
*/
|
|
574
|
-
projectId?: string | null;
|
|
575
|
-
};
|
|
576
|
-
/**
|
|
577
|
-
* Arguments for deleting an uploaded file.
|
|
578
|
-
* @see https://developer.todoist.com/api/v1/#tag/Uploads/operation/delete_upload_api_v1_uploads_delete
|
|
579
|
-
*/
|
|
580
|
-
export type DeleteUploadArgs = {
|
|
581
|
-
/**
|
|
582
|
-
* The URL of the file to delete.
|
|
583
|
-
*/
|
|
584
|
-
fileUrl: string;
|
|
585
|
-
};
|
|
586
|
-
/**
|
|
587
|
-
* Arguments for moving a project to a workspace.
|
|
588
|
-
*/
|
|
589
|
-
export type MoveProjectToWorkspaceArgs = {
|
|
590
|
-
/** The ID of the project to move. */
|
|
591
|
-
projectId: string;
|
|
592
|
-
/** The target workspace ID. */
|
|
593
|
-
workspaceId: string;
|
|
594
|
-
/** Optional target folder ID within the workspace. */
|
|
595
|
-
folderId?: string | null;
|
|
596
|
-
/** Optional access settings for the project in the workspace. */
|
|
597
|
-
access?: {
|
|
598
|
-
visibility: ProjectVisibility;
|
|
599
|
-
};
|
|
600
|
-
};
|
|
601
|
-
/**
|
|
602
|
-
* Arguments for moving a project to personal.
|
|
603
|
-
*/
|
|
604
|
-
export type MoveProjectToPersonalArgs = {
|
|
605
|
-
/** The ID of the project to move. */
|
|
606
|
-
projectId: string;
|
|
607
|
-
};
|
|
608
|
-
/**
|
|
609
|
-
* Arguments for counting archived projects.
|
|
610
|
-
* @see https://developer.todoist.com/api/v1/#tag/Projects/operation/count_projects_archived_api_v1_projects_archived_count_get
|
|
611
|
-
*/
|
|
612
|
-
export type GetArchivedProjectsCountArgs = {
|
|
613
|
-
workspaceId?: number | null;
|
|
614
|
-
joined?: boolean | null;
|
|
615
|
-
};
|
|
616
|
-
/**
|
|
617
|
-
* Response from counting archived projects.
|
|
618
|
-
* @see https://developer.todoist.com/api/v1/#tag/Projects/operation/count_projects_archived_api_v1_projects_archived_count_get
|
|
619
|
-
*/
|
|
620
|
-
export type GetArchivedProjectsCountResponse = {
|
|
621
|
-
count: number;
|
|
622
|
-
};
|
|
623
|
-
/**
|
|
624
|
-
* An action permitted for a role.
|
|
625
|
-
*/
|
|
626
|
-
export type ActionView = {
|
|
627
|
-
name: string;
|
|
628
|
-
};
|
|
629
|
-
/**
|
|
630
|
-
* A project collaborator role with its permitted actions.
|
|
631
|
-
*/
|
|
632
|
-
export type ProjectRoleView = {
|
|
633
|
-
name: CollaboratorRole;
|
|
634
|
-
actions: ActionView[];
|
|
635
|
-
};
|
|
636
|
-
/**
|
|
637
|
-
* A workspace role with its permitted actions.
|
|
638
|
-
*/
|
|
639
|
-
export type WorkspaceRoleView = {
|
|
640
|
-
name: WorkspaceRole;
|
|
641
|
-
actions: ActionView[];
|
|
642
|
-
};
|
|
643
|
-
/**
|
|
644
|
-
* Response from getting project permissions (role-to-action mappings).
|
|
645
|
-
* @see https://developer.todoist.com/api/v1/#tag/Projects/operation/permissions_api_v1_projects_permissions_get
|
|
646
|
-
*/
|
|
647
|
-
export type GetProjectPermissionsResponse = {
|
|
648
|
-
projectCollaboratorActions: ProjectRoleView[];
|
|
649
|
-
workspaceCollaboratorActions: WorkspaceRoleView[];
|
|
650
|
-
};
|
|
651
|
-
/**
|
|
652
|
-
* Arguments for getting full project data.
|
|
653
|
-
* @see https://developer.todoist.com/api/v1/#tag/Projects/operation/projects_full_data_api_v1_projects__project_id__full_get
|
|
654
|
-
*/
|
|
655
|
-
export type GetFullProjectArgs = {
|
|
656
|
-
/**
|
|
657
|
-
* Required to access the public project without authentication.
|
|
658
|
-
*/
|
|
659
|
-
publicKey?: string | null;
|
|
660
|
-
};
|
|
661
|
-
/**
|
|
662
|
-
* Response from getting full project data.
|
|
663
|
-
* @see https://developer.todoist.com/api/v1/#tag/Projects/operation/projects_full_data_api_v1_projects__project_id__full_get
|
|
664
|
-
*/
|
|
665
|
-
export type GetFullProjectResponse = {
|
|
666
|
-
project: (PersonalProject | WorkspaceProject) | null;
|
|
667
|
-
commentsCount: number;
|
|
668
|
-
tasks: Task[];
|
|
669
|
-
sections: Section[];
|
|
670
|
-
collaborators: User[];
|
|
671
|
-
notes: Comment[];
|
|
672
|
-
};
|
|
673
|
-
/**
|
|
674
|
-
* Arguments for listing backups.
|
|
675
|
-
* @see https://developer.todoist.com/api/v1/#tag/Backups/operation/get_backups_api_v1_backups_get
|
|
676
|
-
*/
|
|
677
|
-
export type GetBackupsArgs = {
|
|
678
|
-
/** MFA token if required. Not needed when using an OAuth token with the `backups:read` scope. */
|
|
679
|
-
mfaToken?: string | null;
|
|
680
|
-
};
|
|
681
|
-
/**
|
|
682
|
-
* Arguments for downloading a backup.
|
|
683
|
-
* @see https://developer.todoist.com/api/v1/#tag/Backups/operation/download_backup_api_v1_backups_download_get
|
|
684
|
-
*/
|
|
685
|
-
export type DownloadBackupArgs = {
|
|
686
|
-
/** The backup file URL. */
|
|
687
|
-
file: string;
|
|
688
|
-
};
|
|
689
|
-
/** Object types that support email forwarding. */
|
|
690
|
-
export declare const EMAIL_OBJECT_TYPES: readonly ["project", "project_comments", "task"];
|
|
691
|
-
/** Object type that supports email forwarding. */
|
|
692
|
-
export type EmailObjectType = (typeof EMAIL_OBJECT_TYPES)[number];
|
|
693
|
-
/**
|
|
694
|
-
* Arguments for getting or creating an email forwarding address.
|
|
695
|
-
* @see https://developer.todoist.com/api/v1/#tag/Emails/operation/email_get_or_create_api_v1_emails_put
|
|
696
|
-
*/
|
|
697
|
-
export type GetOrCreateEmailArgs = {
|
|
698
|
-
/** The type of object to forward emails to. */
|
|
699
|
-
objType: EmailObjectType;
|
|
700
|
-
/** The ID of the object. */
|
|
701
|
-
objId: string;
|
|
702
|
-
};
|
|
703
|
-
/**
|
|
704
|
-
* Response from getting or creating an email forwarding address.
|
|
705
|
-
*/
|
|
706
|
-
export type GetOrCreateEmailResponse = {
|
|
707
|
-
email: string;
|
|
708
|
-
};
|
|
709
|
-
/**
|
|
710
|
-
* Arguments for disabling email forwarding.
|
|
711
|
-
* @see https://developer.todoist.com/api/v1/#tag/Emails/operation/email_disable_api_v1_emails_delete
|
|
712
|
-
*/
|
|
713
|
-
export type DisableEmailArgs = {
|
|
714
|
-
/** The type of object to disable forwarding for. */
|
|
715
|
-
objType: EmailObjectType;
|
|
716
|
-
/** The ID of the object. */
|
|
717
|
-
objId: string;
|
|
718
|
-
};
|
|
719
|
-
/** Object types that support ID mappings. */
|
|
720
|
-
export declare const ID_MAPPING_OBJECT_TYPES: readonly ["sections", "tasks", "comments", "reminders", "location_reminders", "projects"];
|
|
721
|
-
/** Object type that supports ID mappings. */
|
|
722
|
-
export type IdMappingObjectType = (typeof ID_MAPPING_OBJECT_TYPES)[number];
|
|
723
|
-
/** Object types that support moved ID lookups. */
|
|
724
|
-
export declare const MOVED_ID_OBJECT_TYPES: readonly ["sections", "tasks", "comments", "reminders", "location_reminders"];
|
|
725
|
-
/** Object type that supports moved ID lookups. */
|
|
726
|
-
export type MovedIdObjectType = (typeof MOVED_ID_OBJECT_TYPES)[number];
|
|
727
|
-
/**
|
|
728
|
-
* Arguments for getting ID mappings between old and new IDs.
|
|
729
|
-
* @see https://developer.todoist.com/api/v1/#tag/Ids/operation/id_mappings_api_v1_id_mappings__obj_name___obj_ids__get
|
|
730
|
-
*/
|
|
731
|
-
export type GetIdMappingsArgs = {
|
|
732
|
-
/** The type of object to look up. */
|
|
733
|
-
objName: IdMappingObjectType;
|
|
734
|
-
/** Array of IDs to look up. */
|
|
735
|
-
objIds: [string, ...string[]];
|
|
736
|
-
};
|
|
737
|
-
/**
|
|
738
|
-
* Arguments for getting moved IDs.
|
|
739
|
-
* @see https://developer.todoist.com/api/v1/#tag/Ids/operation/moved_ids_api_v1_moved_ids__obj_name__get
|
|
740
|
-
*/
|
|
741
|
-
export type GetMovedIdsArgs = {
|
|
742
|
-
/** The type of object to look up. */
|
|
743
|
-
objName: MovedIdObjectType;
|
|
744
|
-
/** Array of old IDs to look up. */
|
|
745
|
-
oldIds?: string[];
|
|
746
|
-
};
|
|
747
|
-
/**
|
|
748
|
-
* Arguments for listing reminders.
|
|
749
|
-
* @see https://developer.todoist.com/api/v1/#tag/Reminders/operation/get_reminders_api_v1_reminders_get
|
|
750
|
-
*/
|
|
751
|
-
export type GetRemindersArgs = {
|
|
752
|
-
/** Filter by task ID. */
|
|
753
|
-
taskId?: string | null;
|
|
754
|
-
/** Cursor for pagination. */
|
|
755
|
-
cursor?: string | null;
|
|
756
|
-
/** Number of results per page (max 200, default 50). */
|
|
757
|
-
limit?: number;
|
|
758
|
-
};
|
|
759
|
-
/**
|
|
760
|
-
* Paginated response for reminders.
|
|
761
|
-
*/
|
|
762
|
-
export type GetRemindersResponse = {
|
|
763
|
-
results: Reminder[];
|
|
764
|
-
nextCursor: string | null;
|
|
765
|
-
};
|
|
766
|
-
/**
|
|
767
|
-
* Arguments for listing location reminders.
|
|
768
|
-
* @see https://developer.todoist.com/api/v1/#tag/Location-reminders/operation/get_location_reminders_api_v1_location_reminders_get
|
|
769
|
-
*/
|
|
770
|
-
export type GetLocationRemindersArgs = {
|
|
771
|
-
/** Filter by task ID. */
|
|
772
|
-
taskId?: string | null;
|
|
773
|
-
/** Cursor for pagination. */
|
|
774
|
-
cursor?: string | null;
|
|
775
|
-
/** Number of results per page (max 200, default 50). */
|
|
776
|
-
limit?: number;
|
|
777
|
-
};
|
|
778
|
-
/**
|
|
779
|
-
* Paginated response for location reminders.
|
|
780
|
-
*/
|
|
781
|
-
export type GetLocationRemindersResponse = {
|
|
782
|
-
results: LocationReminder[];
|
|
783
|
-
nextCursor: string | null;
|
|
784
|
-
};
|
|
785
|
-
/**
|
|
786
|
-
* Arguments for getting all completed tasks.
|
|
787
|
-
* @see https://developer.todoist.com/api/v1/#tag/Tasks/operation/get_all_completed_items_api_v1_tasks_completed_get
|
|
788
|
-
*/
|
|
789
|
-
export type GetAllCompletedTasksArgs = {
|
|
790
|
-
/** Filter by project ID. */
|
|
791
|
-
projectId?: string | null;
|
|
792
|
-
/** Filter by label name. */
|
|
793
|
-
label?: string | null;
|
|
794
|
-
/** Number of results to return (max 200, default 30). */
|
|
795
|
-
limit?: number;
|
|
796
|
-
/** Number of results to skip (default 0). */
|
|
797
|
-
offset?: number;
|
|
798
|
-
/** Return items completed after this date. */
|
|
799
|
-
since?: Date | null;
|
|
800
|
-
/** Return items completed before this date. */
|
|
801
|
-
until?: Date | null;
|
|
802
|
-
/** Include comment data in the response. */
|
|
803
|
-
annotateNotes?: boolean;
|
|
804
|
-
/** Include task data in the response. */
|
|
805
|
-
annotateItems?: boolean;
|
|
806
|
-
};
|
|
807
|
-
/**
|
|
808
|
-
* Response from getting all completed tasks.
|
|
809
|
-
*/
|
|
810
|
-
export type GetAllCompletedTasksResponse = {
|
|
811
|
-
projects: Record<string, Record<string, unknown>>;
|
|
812
|
-
sections: Record<string, Record<string, unknown>>;
|
|
813
|
-
items: Task[];
|
|
814
|
-
};
|
|
815
|
-
/**
|
|
816
|
-
* Arguments for exporting a project as a template file.
|
|
817
|
-
* @see https://developer.todoist.com/api/v1/#tag/Templates/operation/export_as_file_api_v1_templates_file_get
|
|
818
|
-
*/
|
|
819
|
-
export type ExportTemplateFileArgs = {
|
|
820
|
-
/** The project ID to export. */
|
|
821
|
-
projectId: string;
|
|
822
|
-
/** Whether to use relative dates in the export. */
|
|
823
|
-
useRelativeDates?: boolean;
|
|
824
|
-
};
|
|
825
|
-
/**
|
|
826
|
-
* Arguments for exporting a project as a template URL.
|
|
827
|
-
* @see https://developer.todoist.com/api/v1/#tag/Templates/operation/export_as_url_api_v1_templates_url_get
|
|
828
|
-
*/
|
|
829
|
-
export type ExportTemplateUrlArgs = {
|
|
830
|
-
/** The project ID to export. */
|
|
831
|
-
projectId: string;
|
|
832
|
-
/** Whether to use relative dates in the export. */
|
|
833
|
-
useRelativeDates?: boolean;
|
|
834
|
-
};
|
|
835
|
-
/**
|
|
836
|
-
* Response from exporting a project as a template URL.
|
|
837
|
-
*/
|
|
838
|
-
export type ExportTemplateUrlResponse = {
|
|
839
|
-
fileName: string;
|
|
840
|
-
fileUrl: string;
|
|
841
|
-
};
|
|
842
|
-
/**
|
|
843
|
-
* Arguments for creating a project from a template file.
|
|
844
|
-
* @see https://developer.todoist.com/api/v1/#tag/Templates/operation/create_project_from_file_api_v1_templates_create_project_from_file_post
|
|
845
|
-
*/
|
|
846
|
-
export type CreateProjectFromTemplateArgs = {
|
|
847
|
-
/** Name for the new project. */
|
|
848
|
-
name: string;
|
|
849
|
-
/** The template file content. */
|
|
850
|
-
file: Buffer | NodeJS.ReadableStream | string | Blob;
|
|
851
|
-
/** Optional file name (required for Buffer/Stream). */
|
|
852
|
-
fileName?: string;
|
|
853
|
-
/** Optional workspace ID. */
|
|
854
|
-
workspaceId?: string | null;
|
|
855
|
-
};
|
|
856
|
-
/**
|
|
857
|
-
* Response from creating a project from a template.
|
|
858
|
-
*/
|
|
859
|
-
export type CreateProjectFromTemplateResponse = {
|
|
860
|
-
status: string;
|
|
861
|
-
projectId: string;
|
|
862
|
-
templateType: string;
|
|
863
|
-
projects: (PersonalProject | WorkspaceProject)[];
|
|
864
|
-
sections: Section[];
|
|
865
|
-
tasks: Task[];
|
|
866
|
-
comments: Comment[];
|
|
867
|
-
};
|
|
868
|
-
/**
|
|
869
|
-
* Arguments for importing a template file into an existing project.
|
|
870
|
-
* @see https://developer.todoist.com/api/v1/#tag/Templates/operation/import_into_project_from_file_api_v1_templates_import_into_project_from_file_post
|
|
871
|
-
*/
|
|
872
|
-
export type ImportTemplateIntoProjectArgs = {
|
|
873
|
-
/** The project ID to import into. */
|
|
874
|
-
projectId: string;
|
|
875
|
-
/** The template file content. */
|
|
876
|
-
file: Buffer | NodeJS.ReadableStream | string | Blob;
|
|
877
|
-
/** Optional file name (required for Buffer/Stream). */
|
|
878
|
-
fileName?: string;
|
|
879
|
-
};
|
|
880
|
-
/**
|
|
881
|
-
* Arguments for importing a template by ID into an existing project.
|
|
882
|
-
* @see https://developer.todoist.com/api/v1/#tag/Templates/operation/import_into_project_from_template_id_api_v1_templates_import_into_project_from_template_id_post
|
|
883
|
-
*/
|
|
884
|
-
export type ImportTemplateFromIdArgs = {
|
|
885
|
-
/** The project ID to import into. */
|
|
886
|
-
projectId: string;
|
|
887
|
-
/** The template ID to import. */
|
|
888
|
-
templateId: string;
|
|
889
|
-
/** Locale for the import (default: 'en'). */
|
|
890
|
-
locale?: string;
|
|
891
|
-
};
|
|
892
|
-
/**
|
|
893
|
-
* Response from importing a template into a project.
|
|
894
|
-
*/
|
|
895
|
-
export type ImportTemplateResponse = {
|
|
896
|
-
status: string;
|
|
897
|
-
templateType: string;
|
|
898
|
-
projects: (PersonalProject | WorkspaceProject)[];
|
|
899
|
-
sections: Section[];
|
|
900
|
-
tasks: Task[];
|
|
901
|
-
comments: Comment[];
|
|
902
|
-
};
|
|
903
|
-
/** Known activity object types. Accepts any string for forward compatibility. */
|
|
904
|
-
export type InsightsObjectType = 'ITEM' | 'PROJECT' | 'NOTE' | (string & Record<string, never>);
|
|
905
|
-
/** Known activity event types. Accepts any string for forward compatibility. */
|
|
906
|
-
export type InsightsEventType = 'ADDED' | 'DELETED' | 'UPDATED' | 'ARCHIVED' | 'UNARCHIVED' | 'COMPLETED' | 'UNCOMPLETED' | 'SHARED' | 'LEFT' | (string & Record<string, never>);
|
|
907
|
-
/**
|
|
908
|
-
* Arguments for getting project activity stats.
|
|
909
|
-
* @see https://developer.todoist.com/api/v1/#tag/Insights/operation/get_project_activity_stats_api_v1_projects__project_id__insights_activity_stats_get
|
|
910
|
-
*/
|
|
911
|
-
export type GetProjectActivityStatsArgs = {
|
|
912
|
-
/** The type of object to get activity counts for (default: 'ITEM'). */
|
|
913
|
-
objectType?: InsightsObjectType;
|
|
914
|
-
/** The type of event to count (default: 'COMPLETED'). */
|
|
915
|
-
eventType?: InsightsEventType;
|
|
916
|
-
/** Number of weeks of activity counts to retrieve (1-12, default 2). */
|
|
917
|
-
weeks?: number;
|
|
918
|
-
/** Whether to include weekly rollup counts in the response. */
|
|
919
|
-
includeWeeklyCounts?: boolean;
|
|
920
|
-
};
|
|
921
|
-
/**
|
|
922
|
-
* Arguments for getting workspace insights.
|
|
923
|
-
* @see https://developer.todoist.com/api/v1/#tag/Insights/operation/get_workspace_insights_api_v1_workspaces__workspace_id__insights_get
|
|
924
|
-
*/
|
|
925
|
-
export type GetWorkspaceInsightsArgs = {
|
|
926
|
-
/** Project IDs to get insights for. */
|
|
927
|
-
projectIds?: string[];
|
|
928
|
-
};
|
|
929
|
-
/**
|
|
930
|
-
* Arguments for creating a new workspace.
|
|
931
|
-
* @see https://developer.todoist.com/api/v1/#tag/Workspace/operation/create_workspace_api_v1_workspaces_post
|
|
932
|
-
*/
|
|
933
|
-
export type AddWorkspaceArgs = {
|
|
934
|
-
/** Name of the workspace. */
|
|
935
|
-
name: string;
|
|
936
|
-
/** Description of the workspace. */
|
|
937
|
-
description?: string | null;
|
|
938
|
-
/** Whether link sharing is enabled for the workspace. */
|
|
939
|
-
isLinkSharingEnabled?: boolean;
|
|
940
|
-
/** Whether guests are allowed in the workspace. */
|
|
941
|
-
isGuestAllowed?: boolean;
|
|
942
|
-
/** Workspace email domain. */
|
|
943
|
-
domainName?: string | null;
|
|
944
|
-
/** Whether users with matching email domains can discover this workspace. */
|
|
945
|
-
domainDiscovery?: boolean;
|
|
946
|
-
/** Whether workspace invites are restricted to workspace domain. */
|
|
947
|
-
restrictEmailDomains?: boolean;
|
|
948
|
-
/** Workspace properties. */
|
|
949
|
-
properties?: Record<string, unknown> | null;
|
|
950
|
-
};
|
|
951
|
-
/**
|
|
952
|
-
* Arguments for updating an existing workspace.
|
|
953
|
-
* @see https://developer.todoist.com/api/v1/#tag/Workspace/operation/update_workspace_api_v1_workspaces__workspace_id__post
|
|
954
|
-
*/
|
|
955
|
-
export type UpdateWorkspaceArgs = {
|
|
956
|
-
/** Updated workspace name. */
|
|
957
|
-
name?: string;
|
|
958
|
-
/** Updated workspace description. */
|
|
959
|
-
description?: string | null;
|
|
960
|
-
/** Updated link sharing status. */
|
|
961
|
-
isLinkSharingEnabled?: boolean;
|
|
962
|
-
/** Updated guest access status. */
|
|
963
|
-
isGuestAllowed?: boolean | null;
|
|
964
|
-
/** Updated workspace email domain. */
|
|
965
|
-
domainName?: string | null;
|
|
966
|
-
/** Updated domain discovery setting. */
|
|
967
|
-
domainDiscovery?: boolean;
|
|
968
|
-
/** Updated email domain restriction setting. */
|
|
969
|
-
restrictEmailDomains?: boolean;
|
|
970
|
-
/** Updated workspace properties. */
|
|
971
|
-
properties?: Record<string, unknown> | null;
|
|
972
|
-
/** Updated collapse state for current user. */
|
|
973
|
-
isCollapsed?: boolean;
|
|
974
|
-
};
|
|
975
|
-
/**
|
|
976
|
-
* Arguments for getting workspace members activity.
|
|
977
|
-
* @see https://developer.todoist.com/api/v1/#tag/Workspace/operation/get_workspace_members_activity_api_v1_workspaces_members_get
|
|
978
|
-
*/
|
|
979
|
-
export type GetWorkspaceMembersActivityArgs = {
|
|
980
|
-
/** The workspace ID. */
|
|
981
|
-
workspaceId: string;
|
|
982
|
-
/** Comma-separated list of user IDs to filter by. */
|
|
983
|
-
userIds?: string | null;
|
|
984
|
-
/** Comma-separated list of project IDs to filter by. */
|
|
985
|
-
projectIds?: string | null;
|
|
986
|
-
};
|
|
987
|
-
/**
|
|
988
|
-
* Response from getting workspace members activity.
|
|
989
|
-
*/
|
|
990
|
-
export type GetWorkspaceMembersActivityResponse = {
|
|
991
|
-
members: MemberActivityInfo[];
|
|
992
|
-
};
|
|
993
|
-
/**
|
|
994
|
-
* Arguments for getting tasks assigned to a workspace user.
|
|
995
|
-
* @see https://developer.todoist.com/api/v1/#tag/Workspace/operation/get_workspace_user_tasks_api_v1_workspaces__workspace_id__users__user_id__tasks_get
|
|
996
|
-
*/
|
|
997
|
-
export type GetWorkspaceUserTasksArgs = {
|
|
998
|
-
/** The workspace ID. */
|
|
999
|
-
workspaceId: string;
|
|
1000
|
-
/** The user ID. */
|
|
1001
|
-
userId: string;
|
|
1002
|
-
/** Comma-separated list of project IDs to filter by. */
|
|
1003
|
-
projectIds?: string | null;
|
|
1004
|
-
};
|
|
1005
|
-
/**
|
|
1006
|
-
* Response from getting workspace user tasks.
|
|
1007
|
-
*/
|
|
1008
|
-
export type GetWorkspaceUserTasksResponse = {
|
|
1009
|
-
tasks: WorkspaceUserTask[];
|
|
1010
|
-
};
|
|
1011
|
-
/**
|
|
1012
|
-
* Arguments for inviting users to a workspace.
|
|
1013
|
-
* @see https://developer.todoist.com/api/v1/#tag/Workspace/operation/invite_workspace_users_api_v1_workspaces__workspace_id__users_invite_post
|
|
1014
|
-
*/
|
|
1015
|
-
export type InviteWorkspaceUsersArgs = {
|
|
1016
|
-
/** The workspace ID. */
|
|
1017
|
-
workspaceId: string;
|
|
1018
|
-
/** List of user emails to invite. */
|
|
1019
|
-
emailList: string[];
|
|
1020
|
-
/** Role assigned to invited users. */
|
|
1021
|
-
role?: WorkspaceRole;
|
|
1022
|
-
};
|
|
1023
|
-
/**
|
|
1024
|
-
* Response from inviting workspace users.
|
|
1025
|
-
*/
|
|
1026
|
-
export type InviteWorkspaceUsersResponse = {
|
|
1027
|
-
invitedEmails: string[];
|
|
1028
|
-
};
|
|
1029
|
-
/**
|
|
1030
|
-
* Arguments for updating a workspace user's role.
|
|
1031
|
-
* @see https://developer.todoist.com/api/v1/#tag/Workspace/operation/update_workspace_user_api_v1_workspaces__workspace_id__users__user_id__post
|
|
1032
|
-
*/
|
|
1033
|
-
export type UpdateWorkspaceUserArgs = {
|
|
1034
|
-
/** The workspace ID. */
|
|
1035
|
-
workspaceId: string;
|
|
1036
|
-
/** The user ID. */
|
|
1037
|
-
userId: string;
|
|
1038
|
-
/** Updated role for the user. */
|
|
1039
|
-
role: WorkspaceRole;
|
|
1040
|
-
};
|
|
1041
|
-
/**
|
|
1042
|
-
* Arguments for removing a user from a workspace.
|
|
1043
|
-
* @see https://developer.todoist.com/api/v1/#tag/Workspace/operation/remove_workspace_user_api_v1_workspaces__workspace_id__users__user_id__delete
|
|
1044
|
-
*/
|
|
1045
|
-
export type RemoveWorkspaceUserArgs = {
|
|
1046
|
-
/** The workspace ID. */
|
|
1047
|
-
workspaceId: string;
|
|
1048
|
-
/** The user ID. */
|
|
1049
|
-
userId: string;
|
|
1050
|
-
};
|
|
1051
|
-
/**
|
|
1052
|
-
* Arguments for getting workspace invitations.
|
|
1053
|
-
*/
|
|
1054
|
-
export type GetWorkspaceInvitationsArgs = {
|
|
1055
|
-
/**
|
|
1056
|
-
* The workspace ID to get invitations for.
|
|
1057
|
-
*/
|
|
1058
|
-
workspaceId: number;
|
|
1059
|
-
};
|
|
1060
|
-
/**
|
|
1061
|
-
* Arguments for deleting a workspace invitation.
|
|
1062
|
-
*/
|
|
1063
|
-
export type DeleteWorkspaceInvitationArgs = {
|
|
1064
|
-
/**
|
|
1065
|
-
* The workspace ID.
|
|
1066
|
-
*/
|
|
1067
|
-
workspaceId: number;
|
|
1068
|
-
/**
|
|
1069
|
-
* The email address of the invitation to delete.
|
|
1070
|
-
*/
|
|
1071
|
-
userEmail: string;
|
|
1072
|
-
};
|
|
1073
|
-
/**
|
|
1074
|
-
* Arguments for accepting/rejecting a workspace invitation.
|
|
1075
|
-
*/
|
|
1076
|
-
export type WorkspaceInvitationActionArgs = {
|
|
1077
|
-
/**
|
|
1078
|
-
* The invitation code from the email.
|
|
1079
|
-
*/
|
|
1080
|
-
inviteCode: string;
|
|
1081
|
-
};
|
|
1082
|
-
/**
|
|
1083
|
-
* Arguments for joining a workspace.
|
|
1084
|
-
*/
|
|
1085
|
-
export type JoinWorkspaceArgs = {
|
|
1086
|
-
/**
|
|
1087
|
-
* Optional invitation code/link to join via.
|
|
1088
|
-
*/
|
|
1089
|
-
inviteCode?: string | null;
|
|
1090
|
-
/**
|
|
1091
|
-
* Optional workspace ID to join via domain auto-join.
|
|
1092
|
-
*/
|
|
1093
|
-
workspaceId?: number | null;
|
|
1094
|
-
};
|
|
1095
|
-
/**
|
|
1096
|
-
* Arguments for uploading/updating workspace logo.
|
|
1097
|
-
*/
|
|
1098
|
-
export type WorkspaceLogoArgs = {
|
|
1099
|
-
/**
|
|
1100
|
-
* The workspace ID.
|
|
1101
|
-
*/
|
|
1102
|
-
workspaceId: number;
|
|
1103
|
-
/**
|
|
1104
|
-
* The image file to upload (Buffer, Stream, or file path).
|
|
1105
|
-
*/
|
|
1106
|
-
file?: Buffer | NodeJS.ReadableStream | string | Blob;
|
|
1107
|
-
/**
|
|
1108
|
-
* The file name (required for Buffer/Stream uploads).
|
|
1109
|
-
*/
|
|
1110
|
-
fileName?: string;
|
|
1111
|
-
/**
|
|
1112
|
-
* Whether to delete the logo instead of updating it.
|
|
1113
|
-
*/
|
|
1114
|
-
delete?: boolean;
|
|
1115
|
-
};
|
|
1116
|
-
/**
|
|
1117
|
-
* Arguments for getting workspace plan details.
|
|
1118
|
-
*/
|
|
1119
|
-
export type GetWorkspacePlanDetailsArgs = {
|
|
1120
|
-
/**
|
|
1121
|
-
* The workspace ID.
|
|
1122
|
-
*/
|
|
1123
|
-
workspaceId: number;
|
|
1124
|
-
};
|
|
1125
|
-
/**
|
|
1126
|
-
* Arguments for getting workspace users (paginated).
|
|
1127
|
-
*/
|
|
1128
|
-
export type GetWorkspaceUsersArgs = {
|
|
1129
|
-
/**
|
|
1130
|
-
* Optional workspace ID. If not provided, returns users for all workspaces.
|
|
1131
|
-
*/
|
|
1132
|
-
workspaceId?: number | null;
|
|
1133
|
-
/**
|
|
1134
|
-
* Cursor for pagination.
|
|
1135
|
-
*/
|
|
1136
|
-
cursor?: string | null;
|
|
1137
|
-
/**
|
|
1138
|
-
* Maximum number of users to return (default: 100).
|
|
1139
|
-
*/
|
|
1140
|
-
limit?: number;
|
|
1141
|
-
};
|
|
1142
|
-
/**
|
|
1143
|
-
* Arguments for getting workspace projects (paginated).
|
|
1144
|
-
*/
|
|
1145
|
-
export type GetWorkspaceProjectsArgs = {
|
|
1146
|
-
/**
|
|
1147
|
-
* The workspace ID.
|
|
1148
|
-
*/
|
|
1149
|
-
workspaceId: number;
|
|
1150
|
-
/**
|
|
1151
|
-
* Cursor for pagination.
|
|
1152
|
-
*/
|
|
1153
|
-
cursor?: string | null;
|
|
1154
|
-
/**
|
|
1155
|
-
* Maximum number of projects to return (default: 100).
|
|
1156
|
-
*/
|
|
1157
|
-
limit?: number;
|
|
1158
|
-
};
|
|
1159
|
-
/**
|
|
1160
|
-
* Paginated response for workspace users.
|
|
1161
|
-
*/
|
|
1162
|
-
export type GetWorkspaceUsersResponse = {
|
|
1163
|
-
/**
|
|
1164
|
-
* Whether there are more users available.
|
|
1165
|
-
*/
|
|
1166
|
-
hasMore: boolean;
|
|
1167
|
-
/**
|
|
1168
|
-
* Cursor for the next page of results.
|
|
1169
|
-
*/
|
|
1170
|
-
nextCursor?: string;
|
|
1171
|
-
/**
|
|
1172
|
-
* Array of workspace users.
|
|
1173
|
-
*/
|
|
1174
|
-
workspaceUsers: WorkspaceUser[];
|
|
1175
|
-
};
|
|
1176
|
-
/**
|
|
1177
|
-
* Response type for workspace invitations endpoint (simple email list).
|
|
1178
|
-
*/
|
|
1179
|
-
export type WorkspaceInvitationsResponse = string[];
|
|
1180
|
-
/**
|
|
1181
|
-
* Response type for all workspace invitations endpoint (detailed objects).
|
|
1182
|
-
*/
|
|
1183
|
-
export type AllWorkspaceInvitationsResponse = WorkspaceInvitation[];
|
|
1184
|
-
/**
|
|
1185
|
-
* Response type for workspace logo upload.
|
|
1186
|
-
*/
|
|
1187
|
-
export type WorkspaceLogoResponse = Record<string, unknown> | null;
|
|
1188
|
-
export {};
|