@superdurable/connector-clickup 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +29 -2
- package/dex-connector.json +277 -0
- package/dist/chunk-5MZPRO45.js +426 -0
- package/dist/connection-DYuseKLI.d.ts +603 -0
- package/dist/index.d.ts +457 -0
- package/dist/index.js +997 -0
- package/dist/mock.d.ts +197 -0
- package/dist/mock.js +479 -0
- package/package.json +59 -4
|
@@ -0,0 +1,603 @@
|
|
|
1
|
+
import { SecretString, CredentialProvider, Query, Mutation, ConnectionRef } from '@superdurable/connectors-sdk';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
/** Connector configuration; omitted fields use manifest defaults. */
|
|
5
|
+
interface Config {
|
|
6
|
+
/** Largest complete ClickUp API response, in bytes. searchTasks reads up to 100 tasks with their custom fields in one page, and findMemberByEmail reads every member of the token's Workspaces, so raise it only when those select invalidResponse in a very large Workspace; enter a positive integer. Blank keeps the displayed safety limit. */
|
|
7
|
+
maxResponseBytes?: number;
|
|
8
|
+
/** Largest ClickUp webhook request body, in bytes, that the taskEvent endpoint accepts; a larger request is answered 413 before its signature is checked. A task event carries its history items, including a custom field's option list, so raise it only when the endpoint answers 413 to real events; enter a positive integer. Blank keeps the displayed limit. */
|
|
9
|
+
webhookMaxBodyBytes?: number;
|
|
10
|
+
}
|
|
11
|
+
/** Runtime schema for manifest configuration. */
|
|
12
|
+
declare const ConfigSchema: z.ZodObject<{
|
|
13
|
+
maxResponseBytes: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
webhookMaxBodyBytes: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
/** Private connector credentials resolved by the host. */
|
|
17
|
+
interface Credentials {
|
|
18
|
+
/** Secret ClickUp personal API token. Sign in at https://app.clickup.com/settings/apps (avatar > Settings > Apps) as the user the Flows act as, choose Generate or Regenerate under API Token, and choose Copy. It starts with pk_, never expires, and is sent only to ClickUp as the raw Authorization header; it is stored only in this credential field. Required: no operation can run while it is blank. After Regenerate in ClickUp, paste the new token here; it takes effect without a restart. */
|
|
19
|
+
apiToken: SecretString;
|
|
20
|
+
/** Secret signing secret of the ClickUp webhook that delivers task events to this connection, returned once as webhook.secret by Create Webhook (POST https://api.clickup.com/api/v2/team/{team_id}/webhook, documented at https://developer.clickup.com/reference/createwebhook). It is an opaque string of letters and digits, stored only in this credential field and never sent to ClickUp; the taskEvent Trigger checks each request's X-Signature, a hex HMAC-SHA256 of the body, with it. Leave it blank when no Flow uses the taskEvent Trigger; while it is blank, the webhook endpoint answers 503. */
|
|
21
|
+
webhookSecret?: SecretString;
|
|
22
|
+
}
|
|
23
|
+
/** Host-owned source of private connector credentials. */
|
|
24
|
+
type CredentialSource = CredentialProvider<Credentials>;
|
|
25
|
+
/** SearchTasksInput filters one Workspace's tasks. Every non-empty filter narrows the search, and the
|
|
26
|
+
* values of one list filter are alternatives. */
|
|
27
|
+
interface SearchTasksInput {
|
|
28
|
+
/** WorkspaceID is the Workspace (ClickUp API team) ID, the first number in a ClickUp web address. */
|
|
29
|
+
"workspaceId": string;
|
|
30
|
+
/** ListIDs keeps tasks of these Lists. */
|
|
31
|
+
"listIds"?: Array<string> | undefined;
|
|
32
|
+
/** FolderIDs keeps tasks of Lists in these Folders. */
|
|
33
|
+
"folderIds"?: Array<string> | undefined;
|
|
34
|
+
/** SpaceIDs keeps tasks of these Spaces. */
|
|
35
|
+
"spaceIds"?: Array<string> | undefined;
|
|
36
|
+
/** Statuses keeps tasks in these status names, such as in progress. */
|
|
37
|
+
"statuses"?: Array<string> | undefined;
|
|
38
|
+
/** AssigneeIDs keeps tasks assigned to any of these user IDs. */
|
|
39
|
+
"assigneeIds"?: Array<number> | undefined;
|
|
40
|
+
/** Tags keeps tasks with any of these tag names. */
|
|
41
|
+
"tags"?: Array<string> | undefined;
|
|
42
|
+
/** UpdatedAfter keeps tasks updated after this time, for polling changes since a checkpoint. */
|
|
43
|
+
"updatedAfter"?: string | null | undefined;
|
|
44
|
+
/** IsClosedIncluded also returns tasks in a closed status; ClickUp excludes them by default. */
|
|
45
|
+
"isClosedIncluded"?: boolean | undefined;
|
|
46
|
+
/** AreSubtasksIncluded also returns subtasks; ClickUp excludes them by default. */
|
|
47
|
+
"areSubtasksIncluded"?: boolean | undefined;
|
|
48
|
+
/** OrderBy is created, updated, due_date, or id; empty uses ClickUp's default order by creation. */
|
|
49
|
+
"orderBy"?: "created" | "due_date" | "id" | "updated" | (string & {}) | undefined;
|
|
50
|
+
/** IsReverse reverses ClickUp's order. */
|
|
51
|
+
"isReverse"?: boolean | undefined;
|
|
52
|
+
/** Page is the zero-based page to read; continue with SearchTasksOutput.NextPage. */
|
|
53
|
+
"page"?: number | undefined;
|
|
54
|
+
}
|
|
55
|
+
/** TaskStatus is a status of a List's workflow. */
|
|
56
|
+
interface TaskStatus {
|
|
57
|
+
/** Name is the status name as the List defines it, such as in progress. */
|
|
58
|
+
"name": string;
|
|
59
|
+
/** Type is ClickUp's status type: open, custom, done, or closed. */
|
|
60
|
+
"type"?: string | undefined;
|
|
61
|
+
}
|
|
62
|
+
/** User is a ClickUp user without contact details. */
|
|
63
|
+
interface User {
|
|
64
|
+
/** ID is ClickUp's numeric user ID, the value task assignees use. */
|
|
65
|
+
"id": number;
|
|
66
|
+
/** Username is the user's display name. */
|
|
67
|
+
"username"?: string | undefined;
|
|
68
|
+
}
|
|
69
|
+
/** CustomFieldValue is one custom field of a task. */
|
|
70
|
+
interface CustomFieldValue {
|
|
71
|
+
/** ID is the custom field's ID, a UUID. */
|
|
72
|
+
"id": string;
|
|
73
|
+
/** Name is the custom field's name. */
|
|
74
|
+
"name": string;
|
|
75
|
+
/** Type is ClickUp's field type, such as short_text, number, drop_down, labels, or users. */
|
|
76
|
+
"type": string;
|
|
77
|
+
/** Value is ClickUp's value passed through unchanged, or absent when the field is unset. A drop_down
|
|
78
|
+
* value is an option ID or index and a users value is a list of users; see ClickUp's Custom Fields guide. */
|
|
79
|
+
"value"?: unknown | undefined;
|
|
80
|
+
}
|
|
81
|
+
/** Task is one ClickUp task as the connector returns it. */
|
|
82
|
+
interface Task {
|
|
83
|
+
/** ID is ClickUp's task ID, such as 86b2x4k7q. */
|
|
84
|
+
"id": string;
|
|
85
|
+
/** CustomID is the Workspace's custom task ID, such as DEV-123, when custom task IDs are enabled. */
|
|
86
|
+
"customId"?: string | undefined;
|
|
87
|
+
/** Name is the task name. */
|
|
88
|
+
"name": string;
|
|
89
|
+
/** URL is the task's ClickUp web address. */
|
|
90
|
+
"url"?: string | undefined;
|
|
91
|
+
/** Status is the task's status in its List's workflow. */
|
|
92
|
+
"status": TaskStatus;
|
|
93
|
+
/** Priority is 1 urgent through 4 low, or zero when the task has no priority. */
|
|
94
|
+
"priority"?: 1 | 2 | 3 | 4 | (number & {}) | undefined;
|
|
95
|
+
/** PriorityName is ClickUp's priority name, such as urgent, or empty without a priority. */
|
|
96
|
+
"priorityName"?: string | undefined;
|
|
97
|
+
/** DueAt is the due time in UTC, or nil without a due date. */
|
|
98
|
+
"dueAt"?: string | null | undefined;
|
|
99
|
+
/** StartAt is the start time in UTC, or nil without a start date. */
|
|
100
|
+
"startAt"?: string | null | undefined;
|
|
101
|
+
/** CreatedAt is when the task was created. */
|
|
102
|
+
"createdAt"?: string | undefined;
|
|
103
|
+
/** UpdatedAt is when the task last changed. */
|
|
104
|
+
"updatedAt"?: string | undefined;
|
|
105
|
+
/** ClosedAt is when the task reached a closed status, or nil. */
|
|
106
|
+
"closedAt"?: string | null | undefined;
|
|
107
|
+
/** IsArchived reports an archived task. */
|
|
108
|
+
"isArchived"?: boolean | undefined;
|
|
109
|
+
/** Creator is the user who created the task, when ClickUp reports one. */
|
|
110
|
+
"creator"?: User | undefined;
|
|
111
|
+
/** Assignees are the users the task is assigned to. */
|
|
112
|
+
"assignees": Array<User> | null;
|
|
113
|
+
/** Tags are the task's tag names. */
|
|
114
|
+
"tags": Array<string> | null;
|
|
115
|
+
/** ParentTaskID is the parent task of a subtask, or empty for a top-level task. */
|
|
116
|
+
"parentTaskId"?: string | undefined;
|
|
117
|
+
/** WorkspaceID is the Workspace (ClickUp API team) the task belongs to. */
|
|
118
|
+
"workspaceId"?: string | undefined;
|
|
119
|
+
/** ListID is the task's home List. */
|
|
120
|
+
"listId"?: string | undefined;
|
|
121
|
+
/** ListName is the home List's name. */
|
|
122
|
+
"listName"?: string | undefined;
|
|
123
|
+
/** FolderID is the home List's Folder, or empty for a folderless List. */
|
|
124
|
+
"folderId"?: string | undefined;
|
|
125
|
+
/** SpaceID is the Space of the home List. */
|
|
126
|
+
"spaceId"?: string | undefined;
|
|
127
|
+
/** MarkdownDescription is the description in Markdown; only getTask returns it. */
|
|
128
|
+
"markdownDescription"?: string | undefined;
|
|
129
|
+
/** IsDescriptionTruncated reports a description longer than MaxDescriptionBytes. */
|
|
130
|
+
"isDescriptionTruncated"?: boolean | undefined;
|
|
131
|
+
/** CustomFields are the task's applicable custom fields with their values; only getTask returns them. */
|
|
132
|
+
"customFields"?: Array<CustomFieldValue> | undefined;
|
|
133
|
+
}
|
|
134
|
+
/** SearchTasksOutput is one page of matching tasks. */
|
|
135
|
+
interface SearchTasksOutput {
|
|
136
|
+
/** Tasks are the page's tasks without descriptions or custom fields; read those with getTask. */
|
|
137
|
+
"tasks": Array<Task> | null;
|
|
138
|
+
/** Page is the page that was read. */
|
|
139
|
+
"page": number;
|
|
140
|
+
/** NextPage is the next page to read, or nil on the last page. */
|
|
141
|
+
"nextPage"?: number | undefined;
|
|
142
|
+
}
|
|
143
|
+
/** GetTaskInput names one task. */
|
|
144
|
+
interface GetTaskInput {
|
|
145
|
+
/** TaskID is ClickUp's task ID, the code after /t/ in the task's web address, or a custom task ID
|
|
146
|
+
* such as DEV-123 when IsCustomTaskID is set. */
|
|
147
|
+
"taskId": string;
|
|
148
|
+
/** IsCustomTaskID reads TaskID as the Workspace's custom task ID; it requires WorkspaceID. */
|
|
149
|
+
"isCustomTaskId"?: boolean | undefined;
|
|
150
|
+
/** WorkspaceID is the Workspace of a custom task ID; leave it empty for an ordinary task ID. */
|
|
151
|
+
"workspaceId"?: string | undefined;
|
|
152
|
+
}
|
|
153
|
+
/** CustomFieldInput sets one custom field on a new task. */
|
|
154
|
+
interface CustomFieldInput {
|
|
155
|
+
/** ID is the custom field's ID, from getTask or ClickUp's Get Accessible Custom Fields. */
|
|
156
|
+
"id": string;
|
|
157
|
+
/** Value is the JSON value ClickUp expects for the field's type, such as "text", 5, or an option ID. */
|
|
158
|
+
"value": unknown | null;
|
|
159
|
+
}
|
|
160
|
+
/** CreateTaskInput is one task to create in a List. */
|
|
161
|
+
interface CreateTaskInput {
|
|
162
|
+
/** ListID is the List to create the task in, the number after /li/ in the List's web address. */
|
|
163
|
+
"listId": string;
|
|
164
|
+
/** Name is the task name. A retried attempt finds its earlier task by this name, so a name that
|
|
165
|
+
* carries the application's own request key, such as [REQ-1042], makes reconciliation unambiguous. */
|
|
166
|
+
"name": string;
|
|
167
|
+
/** MarkdownDescription is the description in Markdown, at most MaxDescriptionBytes; empty sets none. */
|
|
168
|
+
"markdownDescription"?: string | undefined;
|
|
169
|
+
/** Status is a status name of the List's workflow, such as in progress; empty uses the List's first status. */
|
|
170
|
+
"status"?: string | undefined;
|
|
171
|
+
/** Priority is 1 urgent through 4 low; zero sets no priority. */
|
|
172
|
+
"priority"?: 1 | 2 | 3 | 4 | (number & {}) | undefined;
|
|
173
|
+
/** DueAt is the due date and time; nil sets none. */
|
|
174
|
+
"dueAt"?: string | null | undefined;
|
|
175
|
+
/** AssigneeIDs are the users to assign, such as a findMemberByEmail result's ID. */
|
|
176
|
+
"assigneeIds"?: Array<number> | undefined;
|
|
177
|
+
/** Tags are tag names of the List's Space to add. */
|
|
178
|
+
"tags"?: Array<string> | undefined;
|
|
179
|
+
/** ParentTaskID creates a subtask of this task, which must be in the same List; empty creates a task. */
|
|
180
|
+
"parentTaskId"?: string | undefined;
|
|
181
|
+
/** CustomFields set custom field values; ClickUp ignores fields that do not apply to the task. */
|
|
182
|
+
"customFields"?: Array<CustomFieldInput> | undefined;
|
|
183
|
+
/** IsCreatorNotified also notifies the token's user; assignees and watchers are always notified. */
|
|
184
|
+
"isCreatorNotified"?: boolean | undefined;
|
|
185
|
+
}
|
|
186
|
+
/** CreateTaskOutput is the created task. */
|
|
187
|
+
interface CreateTaskOutput {
|
|
188
|
+
/** ListID echoes the requested List. */
|
|
189
|
+
"listId": string;
|
|
190
|
+
/** Name echoes the requested name. */
|
|
191
|
+
"name": string;
|
|
192
|
+
/** Task is the task ClickUp created, or empty on every branch except created. */
|
|
193
|
+
"task": Task;
|
|
194
|
+
/** WasAlreadyApplied reports that an earlier attempt of this Step created the task without a
|
|
195
|
+
* confirmed outcome and this attempt found it in the List, so nothing was sent again. */
|
|
196
|
+
"wasAlreadyApplied"?: boolean | undefined;
|
|
197
|
+
}
|
|
198
|
+
/** UpdateTaskInput changes one task. Only set fields change; every change is an absolute value or a set
|
|
199
|
+
* membership, so a repeated update leaves the same task. */
|
|
200
|
+
interface UpdateTaskInput {
|
|
201
|
+
/** TaskID is ClickUp's task ID. */
|
|
202
|
+
"taskId": string;
|
|
203
|
+
/** Name renames the task when set. */
|
|
204
|
+
"name"?: string | undefined;
|
|
205
|
+
/** MarkdownDescription replaces the description with Markdown when set; a pointer to "" clears it. */
|
|
206
|
+
"markdownDescription"?: string | undefined;
|
|
207
|
+
/** Status moves the task to a status name of its List's workflow, such as in progress; empty keeps it. */
|
|
208
|
+
"status"?: string | undefined;
|
|
209
|
+
/** Priority sets 1 urgent through 4 low; zero keeps the current priority. */
|
|
210
|
+
"priority"?: 1 | 2 | 3 | 4 | (number & {}) | undefined;
|
|
211
|
+
/** DueAt sets the due date and time; nil keeps it. */
|
|
212
|
+
"dueAt"?: string | null | undefined;
|
|
213
|
+
/** AddAssigneeIDs assigns these users; an existing assignee stays assigned. */
|
|
214
|
+
"addAssigneeIds"?: Array<number> | undefined;
|
|
215
|
+
/** RemoveAssigneeIDs unassigns these users; a user who is not assigned is ignored. */
|
|
216
|
+
"removeAssigneeIds"?: Array<number> | undefined;
|
|
217
|
+
}
|
|
218
|
+
/** UpdateTaskOutput is the task after the update. */
|
|
219
|
+
interface UpdateTaskOutput {
|
|
220
|
+
/** Task is the task ClickUp returned after applying the change. */
|
|
221
|
+
"task": Task;
|
|
222
|
+
}
|
|
223
|
+
/** UpdateTaskTagsInput adds tags to and removes tags from one task. */
|
|
224
|
+
interface UpdateTaskTagsInput {
|
|
225
|
+
/** TaskID is ClickUp's task ID. */
|
|
226
|
+
"taskId": string;
|
|
227
|
+
/** AddTags are tag names to add; a tag the task already has stays. */
|
|
228
|
+
"addTags"?: Array<string> | undefined;
|
|
229
|
+
/** RemoveTags are tag names to remove from the task; the tag stays in the Space. */
|
|
230
|
+
"removeTags"?: Array<string> | undefined;
|
|
231
|
+
}
|
|
232
|
+
/** UpdateTaskTagsOutput is the task's tags after the update. */
|
|
233
|
+
interface UpdateTaskTagsOutput {
|
|
234
|
+
/** TaskID is the updated task. */
|
|
235
|
+
"taskId": string;
|
|
236
|
+
/** Tags are the task's tag names read back after every change, as ClickUp stores them. */
|
|
237
|
+
"tags": Array<string> | null;
|
|
238
|
+
/** AppliedChanges counts the tag requests ClickUp accepted, also on providerRejected. */
|
|
239
|
+
"appliedChanges": number;
|
|
240
|
+
}
|
|
241
|
+
/** AddCommentInput is one plain-text comment to add to a task. */
|
|
242
|
+
interface AddCommentInput {
|
|
243
|
+
/** TaskID is ClickUp's task ID. */
|
|
244
|
+
"taskId": string;
|
|
245
|
+
/** Text is the comment's plain text, at most MaxCommentBytes; ClickUp shows it as written. */
|
|
246
|
+
"text": string;
|
|
247
|
+
/** IsCreatorNotified also notifies the token's user; assignees and watchers are always notified. */
|
|
248
|
+
"isCreatorNotified"?: boolean | undefined;
|
|
249
|
+
}
|
|
250
|
+
/** AddCommentOutput is the comment on the task. */
|
|
251
|
+
interface AddCommentOutput {
|
|
252
|
+
/** TaskID is the task the comment belongs to. */
|
|
253
|
+
"taskId": string;
|
|
254
|
+
/** CommentID is ClickUp's comment ID, or empty on every branch except added. */
|
|
255
|
+
"commentId"?: string | undefined;
|
|
256
|
+
/** CreatedAt is when ClickUp recorded the comment, when it reported the time. */
|
|
257
|
+
"createdAt"?: string | null | undefined;
|
|
258
|
+
/** WasAlreadyApplied reports that an earlier attempt of this Step added the comment without a
|
|
259
|
+
* confirmed outcome and this attempt found it on the task, so nothing was sent again. */
|
|
260
|
+
"wasAlreadyApplied"?: boolean | undefined;
|
|
261
|
+
}
|
|
262
|
+
/** FindMemberByEmailInput names one Workspace and one email address. */
|
|
263
|
+
interface FindMemberByEmailInput {
|
|
264
|
+
/** WorkspaceID is the Workspace (ClickUp API team) ID, the first number in a ClickUp web address. */
|
|
265
|
+
"workspaceId": string;
|
|
266
|
+
/** Email is one bare email address, compared without regard to case. */
|
|
267
|
+
"email": string;
|
|
268
|
+
}
|
|
269
|
+
/** Member is one member of a Workspace. */
|
|
270
|
+
interface Member {
|
|
271
|
+
/** ID is ClickUp's numeric user ID, the value task assignees use. */
|
|
272
|
+
"id": number;
|
|
273
|
+
/** Username is the member's display name. */
|
|
274
|
+
"username"?: string | undefined;
|
|
275
|
+
/** Email is the member's email address as ClickUp stores it. */
|
|
276
|
+
"email": string;
|
|
277
|
+
/** Role is 1 owner, 2 admin, 3 member, or 4 guest, or zero when ClickUp does not report it. */
|
|
278
|
+
"role"?: 1 | 2 | 3 | 4 | (number & {}) | undefined;
|
|
279
|
+
/** WorkspaceID is the Workspace the member belongs to. */
|
|
280
|
+
"workspaceId": string;
|
|
281
|
+
}
|
|
282
|
+
/** Runtime validator for SearchTasksInput. */
|
|
283
|
+
declare const SearchTasksInputSchema: z.ZodObject<{
|
|
284
|
+
workspaceId: z.ZodString;
|
|
285
|
+
listIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
286
|
+
folderIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
287
|
+
spaceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
288
|
+
statuses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
289
|
+
assigneeIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
290
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
291
|
+
updatedAfter: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
292
|
+
isClosedIncluded: z.ZodOptional<z.ZodBoolean>;
|
|
293
|
+
areSubtasksIncluded: z.ZodOptional<z.ZodBoolean>;
|
|
294
|
+
orderBy: z.ZodOptional<z.ZodString>;
|
|
295
|
+
isReverse: z.ZodOptional<z.ZodBoolean>;
|
|
296
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
297
|
+
}, z.core.$strict>;
|
|
298
|
+
/** Runtime validator for TaskStatus. */
|
|
299
|
+
declare const TaskStatusSchema: z.ZodObject<{
|
|
300
|
+
name: z.ZodString;
|
|
301
|
+
type: z.ZodOptional<z.ZodString>;
|
|
302
|
+
}, z.core.$strict>;
|
|
303
|
+
/** Runtime validator for User. */
|
|
304
|
+
declare const UserSchema: z.ZodObject<{
|
|
305
|
+
id: z.ZodNumber;
|
|
306
|
+
username: z.ZodOptional<z.ZodString>;
|
|
307
|
+
}, z.core.$strict>;
|
|
308
|
+
/** Runtime validator for CustomFieldValue. */
|
|
309
|
+
declare const CustomFieldValueSchema: z.ZodObject<{
|
|
310
|
+
id: z.ZodString;
|
|
311
|
+
name: z.ZodString;
|
|
312
|
+
type: z.ZodString;
|
|
313
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
314
|
+
}, z.core.$strict>;
|
|
315
|
+
/** Runtime validator for Task. */
|
|
316
|
+
declare const TaskSchema: z.ZodObject<{
|
|
317
|
+
id: z.ZodString;
|
|
318
|
+
customId: z.ZodOptional<z.ZodString>;
|
|
319
|
+
name: z.ZodString;
|
|
320
|
+
url: z.ZodOptional<z.ZodString>;
|
|
321
|
+
status: z.ZodObject<{
|
|
322
|
+
name: z.ZodString;
|
|
323
|
+
type: z.ZodOptional<z.ZodString>;
|
|
324
|
+
}, z.core.$strict>;
|
|
325
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
326
|
+
priorityName: z.ZodOptional<z.ZodString>;
|
|
327
|
+
dueAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
328
|
+
startAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
329
|
+
createdAt: z.ZodOptional<z.ZodISODateTime>;
|
|
330
|
+
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
331
|
+
closedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
332
|
+
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
333
|
+
creator: z.ZodOptional<z.ZodObject<{
|
|
334
|
+
id: z.ZodNumber;
|
|
335
|
+
username: z.ZodOptional<z.ZodString>;
|
|
336
|
+
}, z.core.$strict>>;
|
|
337
|
+
assignees: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
338
|
+
id: z.ZodNumber;
|
|
339
|
+
username: z.ZodOptional<z.ZodString>;
|
|
340
|
+
}, z.core.$strict>>>;
|
|
341
|
+
tags: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
342
|
+
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
343
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
344
|
+
listId: z.ZodOptional<z.ZodString>;
|
|
345
|
+
listName: z.ZodOptional<z.ZodString>;
|
|
346
|
+
folderId: z.ZodOptional<z.ZodString>;
|
|
347
|
+
spaceId: z.ZodOptional<z.ZodString>;
|
|
348
|
+
markdownDescription: z.ZodOptional<z.ZodString>;
|
|
349
|
+
isDescriptionTruncated: z.ZodOptional<z.ZodBoolean>;
|
|
350
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
351
|
+
id: z.ZodString;
|
|
352
|
+
name: z.ZodString;
|
|
353
|
+
type: z.ZodString;
|
|
354
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
355
|
+
}, z.core.$strict>>>;
|
|
356
|
+
}, z.core.$strict>;
|
|
357
|
+
/** Runtime validator for SearchTasksOutput. */
|
|
358
|
+
declare const SearchTasksOutputSchema: z.ZodObject<{
|
|
359
|
+
tasks: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
360
|
+
id: z.ZodString;
|
|
361
|
+
customId: z.ZodOptional<z.ZodString>;
|
|
362
|
+
name: z.ZodString;
|
|
363
|
+
url: z.ZodOptional<z.ZodString>;
|
|
364
|
+
status: z.ZodObject<{
|
|
365
|
+
name: z.ZodString;
|
|
366
|
+
type: z.ZodOptional<z.ZodString>;
|
|
367
|
+
}, z.core.$strict>;
|
|
368
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
369
|
+
priorityName: z.ZodOptional<z.ZodString>;
|
|
370
|
+
dueAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
371
|
+
startAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
372
|
+
createdAt: z.ZodOptional<z.ZodISODateTime>;
|
|
373
|
+
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
374
|
+
closedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
375
|
+
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
376
|
+
creator: z.ZodOptional<z.ZodObject<{
|
|
377
|
+
id: z.ZodNumber;
|
|
378
|
+
username: z.ZodOptional<z.ZodString>;
|
|
379
|
+
}, z.core.$strict>>;
|
|
380
|
+
assignees: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
381
|
+
id: z.ZodNumber;
|
|
382
|
+
username: z.ZodOptional<z.ZodString>;
|
|
383
|
+
}, z.core.$strict>>>;
|
|
384
|
+
tags: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
385
|
+
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
386
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
387
|
+
listId: z.ZodOptional<z.ZodString>;
|
|
388
|
+
listName: z.ZodOptional<z.ZodString>;
|
|
389
|
+
folderId: z.ZodOptional<z.ZodString>;
|
|
390
|
+
spaceId: z.ZodOptional<z.ZodString>;
|
|
391
|
+
markdownDescription: z.ZodOptional<z.ZodString>;
|
|
392
|
+
isDescriptionTruncated: z.ZodOptional<z.ZodBoolean>;
|
|
393
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
394
|
+
id: z.ZodString;
|
|
395
|
+
name: z.ZodString;
|
|
396
|
+
type: z.ZodString;
|
|
397
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
398
|
+
}, z.core.$strict>>>;
|
|
399
|
+
}, z.core.$strict>>>;
|
|
400
|
+
page: z.ZodNumber;
|
|
401
|
+
nextPage: z.ZodOptional<z.ZodNumber>;
|
|
402
|
+
}, z.core.$strict>;
|
|
403
|
+
/** Runtime validator for GetTaskInput. */
|
|
404
|
+
declare const GetTaskInputSchema: z.ZodObject<{
|
|
405
|
+
taskId: z.ZodString;
|
|
406
|
+
isCustomTaskId: z.ZodOptional<z.ZodBoolean>;
|
|
407
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
408
|
+
}, z.core.$strict>;
|
|
409
|
+
/** Runtime validator for CustomFieldInput. */
|
|
410
|
+
declare const CustomFieldInputSchema: z.ZodObject<{
|
|
411
|
+
id: z.ZodString;
|
|
412
|
+
value: z.ZodNullable<z.ZodUnknown>;
|
|
413
|
+
}, z.core.$strict>;
|
|
414
|
+
/** Runtime validator for CreateTaskInput. */
|
|
415
|
+
declare const CreateTaskInputSchema: z.ZodObject<{
|
|
416
|
+
listId: z.ZodString;
|
|
417
|
+
name: z.ZodString;
|
|
418
|
+
markdownDescription: z.ZodOptional<z.ZodString>;
|
|
419
|
+
status: z.ZodOptional<z.ZodString>;
|
|
420
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
421
|
+
dueAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
422
|
+
assigneeIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
423
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
424
|
+
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
425
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
426
|
+
id: z.ZodString;
|
|
427
|
+
value: z.ZodNullable<z.ZodUnknown>;
|
|
428
|
+
}, z.core.$strict>>>;
|
|
429
|
+
isCreatorNotified: z.ZodOptional<z.ZodBoolean>;
|
|
430
|
+
}, z.core.$strict>;
|
|
431
|
+
/** Runtime validator for CreateTaskOutput. */
|
|
432
|
+
declare const CreateTaskOutputSchema: z.ZodObject<{
|
|
433
|
+
listId: z.ZodString;
|
|
434
|
+
name: z.ZodString;
|
|
435
|
+
task: z.ZodObject<{
|
|
436
|
+
id: z.ZodString;
|
|
437
|
+
customId: z.ZodOptional<z.ZodString>;
|
|
438
|
+
name: z.ZodString;
|
|
439
|
+
url: z.ZodOptional<z.ZodString>;
|
|
440
|
+
status: z.ZodObject<{
|
|
441
|
+
name: z.ZodString;
|
|
442
|
+
type: z.ZodOptional<z.ZodString>;
|
|
443
|
+
}, z.core.$strict>;
|
|
444
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
445
|
+
priorityName: z.ZodOptional<z.ZodString>;
|
|
446
|
+
dueAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
447
|
+
startAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
448
|
+
createdAt: z.ZodOptional<z.ZodISODateTime>;
|
|
449
|
+
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
450
|
+
closedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
451
|
+
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
452
|
+
creator: z.ZodOptional<z.ZodObject<{
|
|
453
|
+
id: z.ZodNumber;
|
|
454
|
+
username: z.ZodOptional<z.ZodString>;
|
|
455
|
+
}, z.core.$strict>>;
|
|
456
|
+
assignees: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
457
|
+
id: z.ZodNumber;
|
|
458
|
+
username: z.ZodOptional<z.ZodString>;
|
|
459
|
+
}, z.core.$strict>>>;
|
|
460
|
+
tags: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
461
|
+
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
462
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
463
|
+
listId: z.ZodOptional<z.ZodString>;
|
|
464
|
+
listName: z.ZodOptional<z.ZodString>;
|
|
465
|
+
folderId: z.ZodOptional<z.ZodString>;
|
|
466
|
+
spaceId: z.ZodOptional<z.ZodString>;
|
|
467
|
+
markdownDescription: z.ZodOptional<z.ZodString>;
|
|
468
|
+
isDescriptionTruncated: z.ZodOptional<z.ZodBoolean>;
|
|
469
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
470
|
+
id: z.ZodString;
|
|
471
|
+
name: z.ZodString;
|
|
472
|
+
type: z.ZodString;
|
|
473
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
474
|
+
}, z.core.$strict>>>;
|
|
475
|
+
}, z.core.$strict>;
|
|
476
|
+
wasAlreadyApplied: z.ZodOptional<z.ZodBoolean>;
|
|
477
|
+
}, z.core.$strict>;
|
|
478
|
+
/** Runtime validator for UpdateTaskInput. */
|
|
479
|
+
declare const UpdateTaskInputSchema: z.ZodObject<{
|
|
480
|
+
taskId: z.ZodString;
|
|
481
|
+
name: z.ZodOptional<z.ZodString>;
|
|
482
|
+
markdownDescription: z.ZodOptional<z.ZodString>;
|
|
483
|
+
status: z.ZodOptional<z.ZodString>;
|
|
484
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
485
|
+
dueAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
486
|
+
addAssigneeIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
487
|
+
removeAssigneeIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
488
|
+
}, z.core.$strict>;
|
|
489
|
+
/** Runtime validator for UpdateTaskOutput. */
|
|
490
|
+
declare const UpdateTaskOutputSchema: z.ZodObject<{
|
|
491
|
+
task: z.ZodObject<{
|
|
492
|
+
id: z.ZodString;
|
|
493
|
+
customId: z.ZodOptional<z.ZodString>;
|
|
494
|
+
name: z.ZodString;
|
|
495
|
+
url: z.ZodOptional<z.ZodString>;
|
|
496
|
+
status: z.ZodObject<{
|
|
497
|
+
name: z.ZodString;
|
|
498
|
+
type: z.ZodOptional<z.ZodString>;
|
|
499
|
+
}, z.core.$strict>;
|
|
500
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
501
|
+
priorityName: z.ZodOptional<z.ZodString>;
|
|
502
|
+
dueAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
503
|
+
startAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
504
|
+
createdAt: z.ZodOptional<z.ZodISODateTime>;
|
|
505
|
+
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
506
|
+
closedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
507
|
+
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
508
|
+
creator: z.ZodOptional<z.ZodObject<{
|
|
509
|
+
id: z.ZodNumber;
|
|
510
|
+
username: z.ZodOptional<z.ZodString>;
|
|
511
|
+
}, z.core.$strict>>;
|
|
512
|
+
assignees: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
513
|
+
id: z.ZodNumber;
|
|
514
|
+
username: z.ZodOptional<z.ZodString>;
|
|
515
|
+
}, z.core.$strict>>>;
|
|
516
|
+
tags: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
517
|
+
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
518
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
519
|
+
listId: z.ZodOptional<z.ZodString>;
|
|
520
|
+
listName: z.ZodOptional<z.ZodString>;
|
|
521
|
+
folderId: z.ZodOptional<z.ZodString>;
|
|
522
|
+
spaceId: z.ZodOptional<z.ZodString>;
|
|
523
|
+
markdownDescription: z.ZodOptional<z.ZodString>;
|
|
524
|
+
isDescriptionTruncated: z.ZodOptional<z.ZodBoolean>;
|
|
525
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
526
|
+
id: z.ZodString;
|
|
527
|
+
name: z.ZodString;
|
|
528
|
+
type: z.ZodString;
|
|
529
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
530
|
+
}, z.core.$strict>>>;
|
|
531
|
+
}, z.core.$strict>;
|
|
532
|
+
}, z.core.$strict>;
|
|
533
|
+
/** Runtime validator for UpdateTaskTagsInput. */
|
|
534
|
+
declare const UpdateTaskTagsInputSchema: z.ZodObject<{
|
|
535
|
+
taskId: z.ZodString;
|
|
536
|
+
addTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
537
|
+
removeTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
538
|
+
}, z.core.$strict>;
|
|
539
|
+
/** Runtime validator for UpdateTaskTagsOutput. */
|
|
540
|
+
declare const UpdateTaskTagsOutputSchema: z.ZodObject<{
|
|
541
|
+
taskId: z.ZodString;
|
|
542
|
+
tags: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
543
|
+
appliedChanges: z.ZodNumber;
|
|
544
|
+
}, z.core.$strict>;
|
|
545
|
+
/** Runtime validator for AddCommentInput. */
|
|
546
|
+
declare const AddCommentInputSchema: z.ZodObject<{
|
|
547
|
+
taskId: z.ZodString;
|
|
548
|
+
text: z.ZodString;
|
|
549
|
+
isCreatorNotified: z.ZodOptional<z.ZodBoolean>;
|
|
550
|
+
}, z.core.$strict>;
|
|
551
|
+
/** Runtime validator for AddCommentOutput. */
|
|
552
|
+
declare const AddCommentOutputSchema: z.ZodObject<{
|
|
553
|
+
taskId: z.ZodString;
|
|
554
|
+
commentId: z.ZodOptional<z.ZodString>;
|
|
555
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
556
|
+
wasAlreadyApplied: z.ZodOptional<z.ZodBoolean>;
|
|
557
|
+
}, z.core.$strict>;
|
|
558
|
+
/** Runtime validator for FindMemberByEmailInput. */
|
|
559
|
+
declare const FindMemberByEmailInputSchema: z.ZodObject<{
|
|
560
|
+
workspaceId: z.ZodString;
|
|
561
|
+
email: z.ZodString;
|
|
562
|
+
}, z.core.$strict>;
|
|
563
|
+
/** Runtime validator for Member. */
|
|
564
|
+
declare const MemberSchema: z.ZodObject<{
|
|
565
|
+
id: z.ZodNumber;
|
|
566
|
+
username: z.ZodOptional<z.ZodString>;
|
|
567
|
+
email: z.ZodString;
|
|
568
|
+
role: z.ZodOptional<z.ZodNumber>;
|
|
569
|
+
workspaceId: z.ZodString;
|
|
570
|
+
}, z.core.$strict>;
|
|
571
|
+
|
|
572
|
+
/** Typed operations supplied by a client or mock. */
|
|
573
|
+
interface Operations {
|
|
574
|
+
/** Invoke searchTasks through this connection. */
|
|
575
|
+
searchTasks(): Query<SearchTasksInput, SearchTasksOutput>;
|
|
576
|
+
/** Invoke getTask through this connection. */
|
|
577
|
+
getTask(): Query<GetTaskInput, Task>;
|
|
578
|
+
/** Invoke createTask through this connection. */
|
|
579
|
+
createTask(): Mutation<CreateTaskInput, CreateTaskOutput>;
|
|
580
|
+
/** Invoke updateTask through this connection. */
|
|
581
|
+
updateTask(): Mutation<UpdateTaskInput, UpdateTaskOutput>;
|
|
582
|
+
/** Invoke updateTaskTags through this connection. */
|
|
583
|
+
updateTaskTags(): Mutation<UpdateTaskTagsInput, UpdateTaskTagsOutput>;
|
|
584
|
+
/** Invoke addComment through this connection. */
|
|
585
|
+
addComment(): Mutation<AddCommentInput, AddCommentOutput>;
|
|
586
|
+
/** Invoke findMemberByEmail through this connection. */
|
|
587
|
+
findMemberByEmail(): Query<FindMemberByEmailInput, Member>;
|
|
588
|
+
}
|
|
589
|
+
/** Named connector connection kept outside Flow state. */
|
|
590
|
+
declare class Connection<BoundOperations = Operations> {
|
|
591
|
+
/** Stable provider and connection name. */
|
|
592
|
+
readonly reference: ConnectionRef;
|
|
593
|
+
/** Bound provider operations. */
|
|
594
|
+
readonly operations: BoundOperations;
|
|
595
|
+
/** Validate a reference and bind operations. */
|
|
596
|
+
constructor(reference: ConnectionRef, operations: BoundOperations);
|
|
597
|
+
}
|
|
598
|
+
/** Bind a client to a named connection. */
|
|
599
|
+
declare function newConnection(client: Operations, reference: ConnectionRef): Connection;
|
|
600
|
+
/** Bind scripted operations to a named connection. */
|
|
601
|
+
declare function newConnectionWithOperations(operations: Operations, reference: ConnectionRef): Connection;
|
|
602
|
+
|
|
603
|
+
export { type AddCommentInput as A, TaskStatusSchema as B, Connection as C, UpdateTaskInputSchema as D, UpdateTaskOutputSchema as E, type FindMemberByEmailInput as F, type GetTaskInput as G, UpdateTaskTagsInputSchema as H, UpdateTaskTagsOutputSchema as I, type User as J, UserSchema as K, newConnection as L, type Member as M, newConnectionWithOperations as N, type Operations as O, type SearchTasksInput as S, type Task as T, type UpdateTaskInput as U, type AddCommentOutput as a, type CreateTaskInput as b, type CreateTaskOutput as c, type SearchTasksOutput as d, type UpdateTaskOutput as e, type UpdateTaskTagsInput as f, type UpdateTaskTagsOutput as g, type Config as h, type Credentials as i, AddCommentInputSchema as j, AddCommentOutputSchema as k, ConfigSchema as l, CreateTaskInputSchema as m, CreateTaskOutputSchema as n, type CredentialSource as o, type CustomFieldInput as p, CustomFieldInputSchema as q, type CustomFieldValue as r, CustomFieldValueSchema as s, FindMemberByEmailInputSchema as t, GetTaskInputSchema as u, MemberSchema as v, SearchTasksInputSchema as w, SearchTasksOutputSchema as x, TaskSchema as y, type TaskStatus as z };
|