@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.
@@ -0,0 +1,457 @@
1
+ import { A as AddCommentInput, a as AddCommentOutput, C as Connection, b as CreateTaskInput, c as CreateTaskOutput, F as FindMemberByEmailInput, M as Member, G as GetTaskInput, T as Task, S as SearchTasksInput, d as SearchTasksOutput, U as UpdateTaskInput, e as UpdateTaskOutput, f as UpdateTaskTagsInput, g as UpdateTaskTagsOutput, O as Operations, h as Config, i as Credentials } from './connection-DYuseKLI.js';
2
+ export { j as AddCommentInputSchema, k as AddCommentOutputSchema, l as ConfigSchema, m as CreateTaskInputSchema, n as CreateTaskOutputSchema, o as CredentialSource, p as CustomFieldInput, q as CustomFieldInputSchema, r as CustomFieldValue, s as CustomFieldValueSchema, t as FindMemberByEmailInputSchema, u as GetTaskInputSchema, v as MemberSchema, w as SearchTasksInputSchema, x as SearchTasksOutputSchema, y as TaskSchema, z as TaskStatus, B as TaskStatusSchema, D as UpdateTaskInputSchema, E as UpdateTaskOutputSchema, H as UpdateTaskTagsInputSchema, I as UpdateTaskTagsOutputSchema, J as User, K as UserSchema, L as newConnection, N as newConnectionWithOperations } from './connection-DYuseKLI.js';
3
+ import * as _superdurable_connectors_sdk from '@superdurable/connectors-sdk';
4
+ import { MutationDefinition, QueryDefinition, MutationStepConfig, Mutation, MutationResult, QueryStepConfig, Query, QueryResult, MutationStep, QueryStep, Call, QueryAttempt, MutationAttempt, CredentialProvider, ReceiptDraft, Failure } from '@superdurable/connectors-sdk';
5
+ import { StepTarget } from '@superdurable/dex';
6
+ import { LoadedProject } from '@superdurable/connectors-sdk/projectconfig';
7
+ import { ProviderRequest, ProviderResponse } from '@superdurable/connectors-sdk/providerhttp';
8
+ import 'zod';
9
+
10
+ /** Stable connector identity. */
11
+ declare const ConnectorID = "clickup";
12
+ /** Provider identity for named connections. */
13
+ declare const ProviderID = "clickup";
14
+ /** Branch IDs for searchTasks. */
15
+ declare const SearchTasksBranch: {
16
+ readonly Searched: "searched";
17
+ readonly NotFound: "notFound";
18
+ readonly ProviderRejected: "providerRejected";
19
+ readonly InvalidResponse: "invalidResponse";
20
+ readonly Defect: "defect";
21
+ };
22
+ /** One page of matching tasks was read; it can be empty. */
23
+ declare const SearchTasksBranchSearched: "searched";
24
+ /** The Workspace does not exist or the token's user is not a member of it. */
25
+ declare const SearchTasksBranchNotFound: "notFound";
26
+ /** ClickUp conclusively rejected the search, such as an invalid filter or an invalid token. */
27
+ declare const SearchTasksBranchProviderRejected: "providerRejected";
28
+ /** ClickUp returned an invalid or oversized page of tasks. */
29
+ declare const SearchTasksBranchInvalidResponse: "invalidResponse";
30
+ /** Local input, connection configuration, or connector definition is invalid. */
31
+ declare const SearchTasksBranchDefect: "defect";
32
+ /** Manifest definition for searchTasks. */
33
+ declare const SearchTasksDefinition: QueryDefinition;
34
+ /** Manifest metadata for searchTasks. */
35
+ declare const SearchTasksMetadata: {
36
+ readonly kind: "query";
37
+ readonly idempotency: "none";
38
+ readonly authorization: "required";
39
+ };
40
+ /** Branch IDs for getTask. */
41
+ declare const GetTaskBranch: {
42
+ readonly Found: "found";
43
+ readonly NotFound: "notFound";
44
+ readonly ProviderRejected: "providerRejected";
45
+ readonly InvalidResponse: "invalidResponse";
46
+ readonly Defect: "defect";
47
+ };
48
+ /** The task was read. */
49
+ declare const GetTaskBranchFound: "found";
50
+ /** The task does not exist or the connection cannot see it. */
51
+ declare const GetTaskBranchNotFound: "notFound";
52
+ /** ClickUp conclusively rejected the task read. */
53
+ declare const GetTaskBranchProviderRejected: "providerRejected";
54
+ /** ClickUp returned an invalid or oversized task. */
55
+ declare const GetTaskBranchInvalidResponse: "invalidResponse";
56
+ /** Local input, connection configuration, or connector definition is invalid. */
57
+ declare const GetTaskBranchDefect: "defect";
58
+ /** Manifest definition for getTask. */
59
+ declare const GetTaskDefinition: QueryDefinition;
60
+ /** Manifest metadata for getTask. */
61
+ declare const GetTaskMetadata: {
62
+ readonly kind: "query";
63
+ readonly idempotency: "none";
64
+ readonly authorization: "required";
65
+ };
66
+ /** Branch IDs for createTask. */
67
+ declare const CreateTaskBranch: {
68
+ readonly Created: "created";
69
+ readonly NotFound: "notFound";
70
+ readonly ProviderRejected: "providerRejected";
71
+ readonly Uncertain: "uncertain";
72
+ readonly Defect: "defect";
73
+ };
74
+ /** ClickUp created the task; a retried attempt that found its own earlier task in the List reports it instead of creating another. */
75
+ declare const CreateTaskBranchCreated: "created";
76
+ /** The List does not exist or the connection cannot see it; nothing was created. */
77
+ declare const CreateTaskBranchNotFound: "notFound";
78
+ /** ClickUp conclusively rejected the task, such as an unknown status, assignee, or custom field value, or missing permission; nothing was created. */
79
+ declare const CreateTaskBranchProviderRejected: "providerRejected";
80
+ /** An earlier attempt sent the create but its outcome cannot be confirmed and the List shows no single matching task, so the task may exist; the connector never sends it again. */
81
+ declare const CreateTaskBranchUncertain: "uncertain";
82
+ /** Local input, connection configuration, or connector definition is invalid. */
83
+ declare const CreateTaskBranchDefect: "defect";
84
+ /** Manifest definition for createTask. */
85
+ declare const CreateTaskDefinition: MutationDefinition;
86
+ /** Manifest metadata for createTask. */
87
+ declare const CreateTaskMetadata: {
88
+ readonly kind: "mutation";
89
+ readonly idempotency: "required";
90
+ readonly authorization: "required";
91
+ };
92
+ /** Branch IDs for updateTask. */
93
+ declare const UpdateTaskBranch: {
94
+ readonly Updated: "updated";
95
+ readonly NotFound: "notFound";
96
+ readonly ProviderRejected: "providerRejected";
97
+ readonly InvalidResponse: "invalidResponse";
98
+ readonly Defect: "defect";
99
+ };
100
+ /** ClickUp applied every requested change, including when the task already had those values, and the Value holds the task it returned. */
101
+ declare const UpdateTaskBranchUpdated: "updated";
102
+ /** The task does not exist or the connection cannot see it. */
103
+ declare const UpdateTaskBranchNotFound: "notFound";
104
+ /** ClickUp conclusively rejected the change, such as a status that is not in the task's List or missing permission. */
105
+ declare const UpdateTaskBranchProviderRejected: "providerRejected";
106
+ /** ClickUp returned an invalid or oversized task after the update, so the change may have been applied. */
107
+ declare const UpdateTaskBranchInvalidResponse: "invalidResponse";
108
+ /** Local input, connection configuration, or connector definition is invalid. */
109
+ declare const UpdateTaskBranchDefect: "defect";
110
+ /** Manifest definition for updateTask. */
111
+ declare const UpdateTaskDefinition: MutationDefinition;
112
+ /** Manifest metadata for updateTask. */
113
+ declare const UpdateTaskMetadata: {
114
+ readonly kind: "mutation";
115
+ readonly idempotency: "required";
116
+ readonly authorization: "required";
117
+ };
118
+ /** Branch IDs for updateTaskTags. */
119
+ declare const UpdateTaskTagsBranch: {
120
+ readonly Updated: "updated";
121
+ readonly NotFound: "notFound";
122
+ readonly ProviderRejected: "providerRejected";
123
+ readonly InvalidResponse: "invalidResponse";
124
+ readonly Defect: "defect";
125
+ };
126
+ /** ClickUp applied every tag change, and the Value holds the task's tags read back. */
127
+ declare const UpdateTaskTagsBranchUpdated: "updated";
128
+ /** The task does not exist or the connection cannot see it. */
129
+ declare const UpdateTaskTagsBranchNotFound: "notFound";
130
+ /** ClickUp conclusively rejected a tag change, such as missing permission; earlier changes in the same Step may have been applied. */
131
+ declare const UpdateTaskTagsBranchProviderRejected: "providerRejected";
132
+ /** ClickUp returned an invalid or oversized task when its tags were read back; the tag changes were applied. */
133
+ declare const UpdateTaskTagsBranchInvalidResponse: "invalidResponse";
134
+ /** Local input, connection configuration, or connector definition is invalid. */
135
+ declare const UpdateTaskTagsBranchDefect: "defect";
136
+ /** Manifest definition for updateTaskTags. */
137
+ declare const UpdateTaskTagsDefinition: MutationDefinition;
138
+ /** Manifest metadata for updateTaskTags. */
139
+ declare const UpdateTaskTagsMetadata: {
140
+ readonly kind: "mutation";
141
+ readonly idempotency: "required";
142
+ readonly authorization: "required";
143
+ };
144
+ /** Branch IDs for addComment. */
145
+ declare const AddCommentBranch: {
146
+ readonly Added: "added";
147
+ readonly NotFound: "notFound";
148
+ readonly ProviderRejected: "providerRejected";
149
+ readonly Uncertain: "uncertain";
150
+ readonly Defect: "defect";
151
+ };
152
+ /** The comment is on the task; a retried attempt that found its own earlier comment reports it instead of adding another. */
153
+ declare const AddCommentBranchAdded: "added";
154
+ /** The task does not exist or the connection cannot see it; nothing was added. */
155
+ declare const AddCommentBranchNotFound: "notFound";
156
+ /** ClickUp conclusively rejected the comment, such as missing permission; nothing was added. */
157
+ declare const AddCommentBranchProviderRejected: "providerRejected";
158
+ /** An earlier attempt sent the comment but its outcome cannot be confirmed and the task shows no matching comment, so the comment may exist; the connector never sends it again. */
159
+ declare const AddCommentBranchUncertain: "uncertain";
160
+ /** Local input, connection configuration, or connector definition is invalid. */
161
+ declare const AddCommentBranchDefect: "defect";
162
+ /** Manifest definition for addComment. */
163
+ declare const AddCommentDefinition: MutationDefinition;
164
+ /** Manifest metadata for addComment. */
165
+ declare const AddCommentMetadata: {
166
+ readonly kind: "mutation";
167
+ readonly idempotency: "required";
168
+ readonly authorization: "required";
169
+ };
170
+ /** Branch IDs for findMemberByEmail. */
171
+ declare const FindMemberByEmailBranch: {
172
+ readonly Found: "found";
173
+ readonly NotFound: "notFound";
174
+ readonly ProviderRejected: "providerRejected";
175
+ readonly InvalidResponse: "invalidResponse";
176
+ readonly Defect: "defect";
177
+ };
178
+ /** A member of the Workspace has the email address. */
179
+ declare const FindMemberByEmailBranchFound: "found";
180
+ /** No member of the Workspace has the email address, or the token's user is not a member of the Workspace. */
181
+ declare const FindMemberByEmailBranchNotFound: "notFound";
182
+ /** ClickUp conclusively rejected the Workspace read. */
183
+ declare const FindMemberByEmailBranchProviderRejected: "providerRejected";
184
+ /** ClickUp returned an invalid or oversized list of Workspaces. */
185
+ declare const FindMemberByEmailBranchInvalidResponse: "invalidResponse";
186
+ /** Local input, connection configuration, or connector definition is invalid. */
187
+ declare const FindMemberByEmailBranchDefect: "defect";
188
+ /** Manifest definition for findMemberByEmail. */
189
+ declare const FindMemberByEmailDefinition: QueryDefinition;
190
+ /** Manifest metadata for findMemberByEmail. */
191
+ declare const FindMemberByEmailMetadata: {
192
+ readonly kind: "query";
193
+ readonly idempotency: "none";
194
+ readonly authorization: "required";
195
+ };
196
+
197
+ /** Configuration for the searchTasks connector Step. */
198
+ interface SearchTasksStepConfig<StepInput, OperationInput = SearchTasksInput, OperationOutput = SearchTasksOutput> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
199
+ /** Named connection supplying this operation. */
200
+ connection: Connection<{
201
+ searchTasks(): Query<OperationInput, OperationOutput>;
202
+ }>;
203
+ /** Name matching the bound connection. */
204
+ connectionName: string;
205
+ /** One page of matching tasks was read; it can be empty. */
206
+ searched: StepTarget<QueryResult<OperationOutput>>;
207
+ /** The Workspace does not exist or the token's user is not a member of it. */
208
+ notFound?: StepTarget<QueryResult<OperationOutput>>;
209
+ /** ClickUp conclusively rejected the search, such as an invalid filter or an invalid token. */
210
+ providerRejected?: StepTarget<QueryResult<OperationOutput>>;
211
+ /** ClickUp returned an invalid or oversized page of tasks. */
212
+ invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
213
+ /** Local input, connection configuration, or connector definition is invalid. */
214
+ defect?: StepTarget<QueryResult<OperationOutput>>;
215
+ }
216
+ /** Build the searchTasks Step from a named connection. */
217
+ declare function newSearchTasksStep<StepInput, OperationInput = SearchTasksInput, OperationOutput = SearchTasksOutput>(configuration: SearchTasksStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
218
+ /** Configuration for the getTask connector Step. */
219
+ interface GetTaskStepConfig<StepInput, OperationInput = GetTaskInput, OperationOutput = Task> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
220
+ /** Named connection supplying this operation. */
221
+ connection: Connection<{
222
+ getTask(): Query<OperationInput, OperationOutput>;
223
+ }>;
224
+ /** Name matching the bound connection. */
225
+ connectionName: string;
226
+ /** The task was read. */
227
+ found: StepTarget<QueryResult<OperationOutput>>;
228
+ /** The task does not exist or the connection cannot see it. */
229
+ notFound?: StepTarget<QueryResult<OperationOutput>>;
230
+ /** ClickUp conclusively rejected the task read. */
231
+ providerRejected?: StepTarget<QueryResult<OperationOutput>>;
232
+ /** ClickUp returned an invalid or oversized task. */
233
+ invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
234
+ /** Local input, connection configuration, or connector definition is invalid. */
235
+ defect?: StepTarget<QueryResult<OperationOutput>>;
236
+ }
237
+ /** Build the getTask Step from a named connection. */
238
+ declare function newGetTaskStep<StepInput, OperationInput = GetTaskInput, OperationOutput = Task>(configuration: GetTaskStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
239
+ /** Configuration for the createTask connector Step. */
240
+ interface CreateTaskStepConfig<StepInput, OperationInput = CreateTaskInput, OperationOutput = CreateTaskOutput> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
241
+ /** Named connection supplying this operation. */
242
+ connection: Connection<{
243
+ createTask(): Mutation<OperationInput, OperationOutput>;
244
+ }>;
245
+ /** Name matching the bound connection. */
246
+ connectionName: string;
247
+ /** ClickUp created the task; a retried attempt that found its own earlier task in the List reports it instead of creating another. */
248
+ created: StepTarget<MutationResult<OperationOutput>>;
249
+ /** The List does not exist or the connection cannot see it; nothing was created. */
250
+ notFound?: StepTarget<MutationResult<OperationOutput>>;
251
+ /** ClickUp conclusively rejected the task, such as an unknown status, assignee, or custom field value, or missing permission; nothing was created. */
252
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
253
+ /** An earlier attempt sent the create but its outcome cannot be confirmed and the List shows no single matching task, so the task may exist; the connector never sends it again. */
254
+ uncertain?: StepTarget<MutationResult<OperationOutput>>;
255
+ /** Local input, connection configuration, or connector definition is invalid. */
256
+ defect?: StepTarget<MutationResult<OperationOutput>>;
257
+ }
258
+ /** Build the createTask Step from a named connection. */
259
+ declare function newCreateTaskStep<StepInput, OperationInput = CreateTaskInput, OperationOutput = CreateTaskOutput>(configuration: CreateTaskStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
260
+ /** Configuration for the updateTask connector Step. */
261
+ interface UpdateTaskStepConfig<StepInput, OperationInput = UpdateTaskInput, OperationOutput = UpdateTaskOutput> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
262
+ /** Named connection supplying this operation. */
263
+ connection: Connection<{
264
+ updateTask(): Mutation<OperationInput, OperationOutput>;
265
+ }>;
266
+ /** Name matching the bound connection. */
267
+ connectionName: string;
268
+ /** ClickUp applied every requested change, including when the task already had those values, and the Value holds the task it returned. */
269
+ updated: StepTarget<MutationResult<OperationOutput>>;
270
+ /** The task does not exist or the connection cannot see it. */
271
+ notFound?: StepTarget<MutationResult<OperationOutput>>;
272
+ /** ClickUp conclusively rejected the change, such as a status that is not in the task's List or missing permission. */
273
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
274
+ /** ClickUp returned an invalid or oversized task after the update, so the change may have been applied. */
275
+ invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
276
+ /** Local input, connection configuration, or connector definition is invalid. */
277
+ defect?: StepTarget<MutationResult<OperationOutput>>;
278
+ }
279
+ /** Build the updateTask Step from a named connection. */
280
+ declare function newUpdateTaskStep<StepInput, OperationInput = UpdateTaskInput, OperationOutput = UpdateTaskOutput>(configuration: UpdateTaskStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
281
+ /** Configuration for the updateTaskTags connector Step. */
282
+ interface UpdateTaskTagsStepConfig<StepInput, OperationInput = UpdateTaskTagsInput, OperationOutput = UpdateTaskTagsOutput> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
283
+ /** Named connection supplying this operation. */
284
+ connection: Connection<{
285
+ updateTaskTags(): Mutation<OperationInput, OperationOutput>;
286
+ }>;
287
+ /** Name matching the bound connection. */
288
+ connectionName: string;
289
+ /** ClickUp applied every tag change, and the Value holds the task's tags read back. */
290
+ updated: StepTarget<MutationResult<OperationOutput>>;
291
+ /** The task does not exist or the connection cannot see it. */
292
+ notFound?: StepTarget<MutationResult<OperationOutput>>;
293
+ /** ClickUp conclusively rejected a tag change, such as missing permission; earlier changes in the same Step may have been applied. */
294
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
295
+ /** ClickUp returned an invalid or oversized task when its tags were read back; the tag changes were applied. */
296
+ invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
297
+ /** Local input, connection configuration, or connector definition is invalid. */
298
+ defect?: StepTarget<MutationResult<OperationOutput>>;
299
+ }
300
+ /** Build the updateTaskTags Step from a named connection. */
301
+ declare function newUpdateTaskTagsStep<StepInput, OperationInput = UpdateTaskTagsInput, OperationOutput = UpdateTaskTagsOutput>(configuration: UpdateTaskTagsStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
302
+ /** Configuration for the addComment connector Step. */
303
+ interface AddCommentStepConfig<StepInput, OperationInput = AddCommentInput, OperationOutput = AddCommentOutput> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
304
+ /** Named connection supplying this operation. */
305
+ connection: Connection<{
306
+ addComment(): Mutation<OperationInput, OperationOutput>;
307
+ }>;
308
+ /** Name matching the bound connection. */
309
+ connectionName: string;
310
+ /** The comment is on the task; a retried attempt that found its own earlier comment reports it instead of adding another. */
311
+ added: StepTarget<MutationResult<OperationOutput>>;
312
+ /** The task does not exist or the connection cannot see it; nothing was added. */
313
+ notFound?: StepTarget<MutationResult<OperationOutput>>;
314
+ /** ClickUp conclusively rejected the comment, such as missing permission; nothing was added. */
315
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
316
+ /** An earlier attempt sent the comment but its outcome cannot be confirmed and the task shows no matching comment, so the comment may exist; the connector never sends it again. */
317
+ uncertain?: StepTarget<MutationResult<OperationOutput>>;
318
+ /** Local input, connection configuration, or connector definition is invalid. */
319
+ defect?: StepTarget<MutationResult<OperationOutput>>;
320
+ }
321
+ /** Build the addComment Step from a named connection. */
322
+ declare function newAddCommentStep<StepInput, OperationInput = AddCommentInput, OperationOutput = AddCommentOutput>(configuration: AddCommentStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
323
+ /** Configuration for the findMemberByEmail connector Step. */
324
+ interface FindMemberByEmailStepConfig<StepInput, OperationInput = FindMemberByEmailInput, OperationOutput = Member> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
325
+ /** Named connection supplying this operation. */
326
+ connection: Connection<{
327
+ findMemberByEmail(): Query<OperationInput, OperationOutput>;
328
+ }>;
329
+ /** Name matching the bound connection. */
330
+ connectionName: string;
331
+ /** A member of the Workspace has the email address. */
332
+ found: StepTarget<QueryResult<OperationOutput>>;
333
+ /** No member of the Workspace has the email address, or the token's user is not a member of the Workspace. */
334
+ notFound?: StepTarget<QueryResult<OperationOutput>>;
335
+ /** ClickUp conclusively rejected the Workspace read. */
336
+ providerRejected?: StepTarget<QueryResult<OperationOutput>>;
337
+ /** ClickUp returned an invalid or oversized list of Workspaces. */
338
+ invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
339
+ /** Local input, connection configuration, or connector definition is invalid. */
340
+ defect?: StepTarget<QueryResult<OperationOutput>>;
341
+ }
342
+ /** Build the findMemberByEmail Step from a named connection. */
343
+ declare function newFindMemberByEmailStep<StepInput, OperationInput = FindMemberByEmailInput, OperationOutput = Member>(configuration: FindMemberByEmailStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
344
+
345
+ /** Open one named ClickUp connection declared in a Dex project. */
346
+ declare function newProjectConnection(project: LoadedProject, connectionName: string): Connection<Operations>;
347
+
348
+ /** Search one Workspace task page. */
349
+ declare class SearchTasksOperation implements Query<SearchTasksInput, SearchTasksOutput> {
350
+ private readonly client;
351
+ /** Bind a client. */ constructor(client: ClickUpClient);
352
+ /** Return the generated definition. */ definition(): _superdurable_connectors_sdk.QueryDefinition;
353
+ /** Validate filters, search, and decode the page. */
354
+ invoke(call: Call, input: SearchTasksInput): Promise<QueryAttempt<SearchTasksOutput>>;
355
+ }
356
+ /** Read one task with details. */
357
+ declare class GetTaskOperation implements Query<GetTaskInput, Task> {
358
+ private readonly client;
359
+ /** Bind a client. */ constructor(client: ClickUpClient);
360
+ /** Return the generated definition. */ definition(): _superdurable_connectors_sdk.QueryDefinition;
361
+ /** Validate, read, and decode one task. */
362
+ invoke(call: Call, input: GetTaskInput): Promise<QueryAttempt<Task>>;
363
+ }
364
+ /** Find one member by email in an authorized Workspace. */
365
+ declare class FindMemberByEmailOperation implements Query<FindMemberByEmailInput, Member> {
366
+ private readonly client;
367
+ /** Bind a client. */ constructor(client: ClickUpClient);
368
+ /** Return the generated definition. */ definition(): _superdurable_connectors_sdk.QueryDefinition;
369
+ /** Read Workspace members and compare email addresses. */
370
+ invoke(call: Call, input: FindMemberByEmailInput): Promise<QueryAttempt<Member>>;
371
+ }
372
+ /** Apply repeat safe task field changes. */
373
+ declare class UpdateTaskOperation implements Mutation<UpdateTaskInput, UpdateTaskOutput> {
374
+ private readonly client;
375
+ /** Bind a client. */ constructor(client: ClickUpClient);
376
+ /** Return the generated definition. */ definition(): _superdurable_connectors_sdk.QueryDefinition;
377
+ /** Correlate this mutation with the Dex Call ID. */ idempotencyKey(callId: string): string;
378
+ /** Validate, update, and decode the task. */
379
+ invoke(call: Call, input: UpdateTaskInput): Promise<MutationAttempt<UpdateTaskOutput>>;
380
+ }
381
+ /** Add and remove tags, then read the resulting task. */
382
+ declare class UpdateTaskTagsOperation implements Mutation<UpdateTaskTagsInput, UpdateTaskTagsOutput> {
383
+ private readonly client;
384
+ /** Bind a client. */ constructor(client: ClickUpClient);
385
+ /** Return the generated definition. */ definition(): _superdurable_connectors_sdk.QueryDefinition;
386
+ /** Correlate this mutation with the Dex Call ID. */ idempotencyKey(callId: string): string;
387
+ /** Apply repeat safe tag membership changes. */
388
+ invoke(call: Call, input: UpdateTaskTagsInput): Promise<MutationAttempt<UpdateTaskTagsOutput>>;
389
+ }
390
+ /** Create one task with a Dex checkpoint and read back on an ambiguous result. */
391
+ declare class CreateTaskOperation implements Mutation<CreateTaskInput, CreateTaskOutput> {
392
+ private readonly client;
393
+ /** Bind a client. */ constructor(client: ClickUpClient);
394
+ /** Return the generated definition. */ definition(): _superdurable_connectors_sdk.QueryDefinition;
395
+ /** Correlate the checkpoint with the Dex Call ID. */ idempotencyKey(callId: string): string;
396
+ /** Create or reconcile one task. */
397
+ invoke(call: Call, input: CreateTaskInput): Promise<MutationAttempt<CreateTaskOutput>>;
398
+ private reconcile;
399
+ }
400
+ /** Add one comment with a Dex checkpoint and read back on an ambiguous result. */
401
+ declare class AddCommentOperation implements Mutation<AddCommentInput, AddCommentOutput> {
402
+ private readonly client;
403
+ /** Bind a client. */ constructor(client: ClickUpClient);
404
+ /** Return the generated definition. */ definition(): _superdurable_connectors_sdk.QueryDefinition;
405
+ /** Correlate the checkpoint with the Dex Call ID. */ idempotencyKey(callId: string): string;
406
+ /** Add or reconcile one comment. */
407
+ invoke(call: Call, input: AddCommentInput): Promise<MutationAttempt<AddCommentOutput>>;
408
+ private reconcile;
409
+ }
410
+
411
+ /** Provider request sender, injectable for conformance and provider tests. */
412
+ type ClickUpRequestSender = (request: ProviderRequest) => Promise<ProviderResponse>;
413
+ /** Dependencies for deterministic provider tests. */
414
+ interface ClickUpClientOptions {
415
+ /** Use the SDK transport when omitted. */
416
+ send?: ClickUpRequestSender;
417
+ /** Use the system clock when omitted. */
418
+ now?: () => Date;
419
+ /** Override only with a ClickUp compatible test endpoint. */
420
+ apiBaseURL?: string;
421
+ }
422
+ /** Outcome of one ClickUp HTTP exchange. */
423
+ type Exchange = {
424
+ kind: 'succeeded';
425
+ response: ProviderResponse;
426
+ } | {
427
+ kind: 'notFound' | 'notSent' | 'rateLimited' | 'unconfirmed' | 'rejected' | 'invalid' | 'defect';
428
+ failure: Failure;
429
+ retryAfterMs: number;
430
+ };
431
+ /** Authenticated ClickUp API client; credentials are resolved for each request. */
432
+ declare class ClickUpClient {
433
+ private readonly endpoint;
434
+ private readonly maxResponseBytes;
435
+ private readonly credentials;
436
+ private readonly send;
437
+ private readonly now;
438
+ /** Validate the client configuration without contacting ClickUp. */
439
+ constructor(config: Config, credentials: CredentialProvider<Credentials>, options?: ClickUpClientOptions);
440
+ /** Bind the Workspace task search. */ searchTasks(): SearchTasksOperation;
441
+ /** Bind the task read. */ getTask(): GetTaskOperation;
442
+ /** Bind the task creation. */ createTask(): CreateTaskOperation;
443
+ /** Bind the task update. */ updateTask(): UpdateTaskOperation;
444
+ /** Bind the task tag update. */ updateTaskTags(): UpdateTaskTagsOperation;
445
+ /** Bind the comment creation. */ addComment(): AddCommentOperation;
446
+ /** Bind the Workspace member lookup. */ findMemberByEmail(): FindMemberByEmailOperation;
447
+ /** Create a secret safe receipt. */
448
+ receipt(call: Call, objectId?: string): ReceiptDraft;
449
+ /** Return the current time for retry and reconciliation decisions. */
450
+ currentTime(): Date;
451
+ /** Send a bounded API request and classify its response; signal can bound a multi-request operation. */
452
+ exchange(call: Call, operation: string, method: string, path: string, query?: URLSearchParams, payload?: unknown, signal?: AbortSignal): Promise<Exchange>;
453
+ private rateLimitDelay;
454
+ private outcome;
455
+ }
456
+
457
+ export { AddCommentBranch, AddCommentBranchAdded, AddCommentBranchDefect, AddCommentBranchNotFound, AddCommentBranchProviderRejected, AddCommentBranchUncertain, AddCommentDefinition, AddCommentInput, AddCommentMetadata, AddCommentOperation, AddCommentOutput, type AddCommentStepConfig, ClickUpClient, type ClickUpClientOptions, type ClickUpRequestSender, Config, Connection, ConnectorID, CreateTaskBranch, CreateTaskBranchCreated, CreateTaskBranchDefect, CreateTaskBranchNotFound, CreateTaskBranchProviderRejected, CreateTaskBranchUncertain, CreateTaskDefinition, CreateTaskInput, CreateTaskMetadata, CreateTaskOperation, CreateTaskOutput, type CreateTaskStepConfig, Credentials, type Exchange, FindMemberByEmailBranch, FindMemberByEmailBranchDefect, FindMemberByEmailBranchFound, FindMemberByEmailBranchInvalidResponse, FindMemberByEmailBranchNotFound, FindMemberByEmailBranchProviderRejected, FindMemberByEmailDefinition, FindMemberByEmailInput, FindMemberByEmailMetadata, FindMemberByEmailOperation, type FindMemberByEmailStepConfig, GetTaskBranch, GetTaskBranchDefect, GetTaskBranchFound, GetTaskBranchInvalidResponse, GetTaskBranchNotFound, GetTaskBranchProviderRejected, GetTaskDefinition, GetTaskInput, GetTaskMetadata, GetTaskOperation, type GetTaskStepConfig, Member, Operations, ProviderID, SearchTasksBranch, SearchTasksBranchDefect, SearchTasksBranchInvalidResponse, SearchTasksBranchNotFound, SearchTasksBranchProviderRejected, SearchTasksBranchSearched, SearchTasksDefinition, SearchTasksInput, SearchTasksMetadata, SearchTasksOperation, SearchTasksOutput, type SearchTasksStepConfig, Task, UpdateTaskBranch, UpdateTaskBranchDefect, UpdateTaskBranchInvalidResponse, UpdateTaskBranchNotFound, UpdateTaskBranchProviderRejected, UpdateTaskBranchUpdated, UpdateTaskDefinition, UpdateTaskInput, UpdateTaskMetadata, UpdateTaskOperation, UpdateTaskOutput, type UpdateTaskStepConfig, UpdateTaskTagsBranch, UpdateTaskTagsBranchDefect, UpdateTaskTagsBranchInvalidResponse, UpdateTaskTagsBranchNotFound, UpdateTaskTagsBranchProviderRejected, UpdateTaskTagsBranchUpdated, UpdateTaskTagsDefinition, UpdateTaskTagsInput, UpdateTaskTagsMetadata, UpdateTaskTagsOperation, UpdateTaskTagsOutput, type UpdateTaskTagsStepConfig, newAddCommentStep, newCreateTaskStep, newFindMemberByEmailStep, newGetTaskStep, newProjectConnection, newSearchTasksStep, newUpdateTaskStep, newUpdateTaskTagsStep };