@superdurable/connector-clickup 0.1.2 → 0.2.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/README.md +6 -4
- package/dex-connector.json +367 -9
- package/dist/{chunk-PAUZSKGN.js → chunk-PQCNNSDL.js} +35 -13
- package/dist/{connection-BB-IGLLD.d.ts → connection-CIEP4aiP.d.ts} +8 -2
- package/dist/index.d.ts +141 -26
- package/dist/index.js +607 -114
- package/dist/mock.d.ts +1 -1
- package/dist/mock.js +1 -1
- package/package.json +7 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
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,
|
|
2
|
-
export { j as AddCommentInputSchema, k as AddCommentOutputSchema, l as ConfigSchema, m as CreateTaskInputSchema, n as CreateTaskOutputSchema, o as
|
|
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, h as Credentials, i as Config, O as Operations } from './connection-CIEP4aiP.js';
|
|
2
|
+
export { j as AddCommentInputSchema, k as AddCommentOutputSchema, l as ConfigSchema, m as CreateTaskInputSchema, n as CreateTaskOutputSchema, o as CredentialMaterialError, p as CredentialSource, q as CustomFieldInput, r as CustomFieldInputSchema, s as CustomFieldValue, t as CustomFieldValueSchema, u as FindMemberByEmailInputSchema, v as GetTaskInputSchema, w as MemberSchema, x as SearchTasksInputSchema, y as SearchTasksOutputSchema, z as TaskSchema, B as TaskStatus, D as TaskStatusSchema, E as UpdateTaskInputSchema, H as UpdateTaskOutputSchema, I as UpdateTaskTagsInputSchema, J as UpdateTaskTagsOutputSchema, K as User, L as UserSchema, N as decodeCredentials, P as isCredentialMaterialError, Q as newConnection, R as newConnectionWithOperations } from './connection-CIEP4aiP.js';
|
|
3
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';
|
|
4
|
+
import { MutationDefinition, QueryDefinition, MutationStepConfig, Mutation, MutationResult, QueryStepConfig, Query, QueryResult, MutationStep, QueryStep, Call, QueryAttempt, MutationAttempt, CredentialProvider, TriggerLogger, ReceiptDraft, Failure, TriggerTarget, TriggerRunner, TriggerContext, ConnectorConfigurationUI, TriggerDefinition, TriggerBindingDefinition } from '@superdurable/connectors-sdk';
|
|
5
5
|
import { StepTarget } from '@superdurable/dex';
|
|
6
6
|
import { LoadedProject } from '@superdurable/connectors-sdk/projectconfig';
|
|
7
7
|
import { ProviderRequest, ProviderResponse } from '@superdurable/connectors-sdk/providerhttp';
|
|
8
|
-
import '
|
|
8
|
+
import { IncomingMessage, ServerResponse } from 'node:http';
|
|
9
|
+
import { WebhookEndpoint } from '@superdurable/connectors-sdk/webhooktrigger';
|
|
10
|
+
import { z } from 'zod';
|
|
9
11
|
|
|
10
12
|
/** Stable connector identity. */
|
|
11
13
|
declare const ConnectorID = "clickup";
|
|
@@ -77,7 +79,7 @@ declare const CreateTaskBranchCreated: "created";
|
|
|
77
79
|
declare const CreateTaskBranchNotFound: "notFound";
|
|
78
80
|
/** ClickUp conclusively rejected the task, such as an unknown status, assignee, or custom field value, or missing permission; nothing was created. */
|
|
79
81
|
declare const CreateTaskBranchProviderRejected: "providerRejected";
|
|
80
|
-
/**
|
|
82
|
+
/** Earlier attempts sent the create up to the send cap, ClickUp accepted it without a usable task ID, or read-back after a possible send cannot confirm a single matching task, including a List that is now missing, so the task may exist; the connector does not send it again. */
|
|
81
83
|
declare const CreateTaskBranchUncertain: "uncertain";
|
|
82
84
|
/** Local input, connection configuration, or connector definition is invalid. */
|
|
83
85
|
declare const CreateTaskBranchDefect: "defect";
|
|
@@ -103,7 +105,7 @@ declare const UpdateTaskBranchUpdated: "updated";
|
|
|
103
105
|
declare const UpdateTaskBranchNotFound: "notFound";
|
|
104
106
|
/** ClickUp conclusively rejected the change, such as a status that is not in the task's List or missing permission. */
|
|
105
107
|
declare const UpdateTaskBranchProviderRejected: "providerRejected";
|
|
106
|
-
/**
|
|
108
|
+
/** Kept for compatibility and no longer selected: the update is safe to repeat, so an invalid or oversized task after the update retries. */
|
|
107
109
|
declare const UpdateTaskBranchInvalidResponse: "invalidResponse";
|
|
108
110
|
/** Local input, connection configuration, or connector definition is invalid. */
|
|
109
111
|
declare const UpdateTaskBranchDefect: "defect";
|
|
@@ -129,7 +131,7 @@ declare const UpdateTaskTagsBranchUpdated: "updated";
|
|
|
129
131
|
declare const UpdateTaskTagsBranchNotFound: "notFound";
|
|
130
132
|
/** ClickUp conclusively rejected a tag change, such as missing permission; earlier changes in the same Step may have been applied. */
|
|
131
133
|
declare const UpdateTaskTagsBranchProviderRejected: "providerRejected";
|
|
132
|
-
/**
|
|
134
|
+
/** Kept for compatibility and no longer selected: the tag changes are safe to repeat, so an invalid or oversized task read back retries. */
|
|
133
135
|
declare const UpdateTaskTagsBranchInvalidResponse: "invalidResponse";
|
|
134
136
|
/** Local input, connection configuration, or connector definition is invalid. */
|
|
135
137
|
declare const UpdateTaskTagsBranchDefect: "defect";
|
|
@@ -155,7 +157,7 @@ declare const AddCommentBranchAdded: "added";
|
|
|
155
157
|
declare const AddCommentBranchNotFound: "notFound";
|
|
156
158
|
/** ClickUp conclusively rejected the comment, such as missing permission; nothing was added. */
|
|
157
159
|
declare const AddCommentBranchProviderRejected: "providerRejected";
|
|
158
|
-
/**
|
|
160
|
+
/** Earlier attempts sent the comment up to the send cap, ClickUp accepted it without a usable comment ID, or read-back after a possible send cannot confirm a single matching comment, including a task that is now missing, so the comment may exist; the connector does not send it again. */
|
|
159
161
|
declare const AddCommentBranchUncertain: "uncertain";
|
|
160
162
|
/** Local input, connection configuration, or connector definition is invalid. */
|
|
161
163
|
declare const AddCommentBranchDefect: "defect";
|
|
@@ -250,7 +252,7 @@ interface CreateTaskStepConfig<StepInput, OperationInput = CreateTaskInput, Oper
|
|
|
250
252
|
notFound?: StepTarget<MutationResult<OperationOutput>>;
|
|
251
253
|
/** ClickUp conclusively rejected the task, such as an unknown status, assignee, or custom field value, or missing permission; nothing was created. */
|
|
252
254
|
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
253
|
-
/**
|
|
255
|
+
/** Earlier attempts sent the create up to the send cap, ClickUp accepted it without a usable task ID, or read-back after a possible send cannot confirm a single matching task, including a List that is now missing, so the task may exist; the connector does not send it again. */
|
|
254
256
|
uncertain?: StepTarget<MutationResult<OperationOutput>>;
|
|
255
257
|
/** Local input, connection configuration, or connector definition is invalid. */
|
|
256
258
|
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
@@ -271,10 +273,12 @@ interface UpdateTaskStepConfig<StepInput, OperationInput = UpdateTaskInput, Oper
|
|
|
271
273
|
notFound?: StepTarget<MutationResult<OperationOutput>>;
|
|
272
274
|
/** ClickUp conclusively rejected the change, such as a status that is not in the task's List or missing permission. */
|
|
273
275
|
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
274
|
-
/**
|
|
276
|
+
/** Kept for compatibility and no longer selected: the update is safe to repeat, so an invalid or oversized task after the update retries. */
|
|
275
277
|
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
276
278
|
/** Local input, connection configuration, or connector definition is invalid. */
|
|
277
279
|
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
280
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
281
|
+
maxSends?: number;
|
|
278
282
|
}
|
|
279
283
|
/** Build the updateTask Step from a named connection. */
|
|
280
284
|
declare function newUpdateTaskStep<StepInput, OperationInput = UpdateTaskInput, OperationOutput = UpdateTaskOutput>(configuration: UpdateTaskStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
@@ -292,10 +296,12 @@ interface UpdateTaskTagsStepConfig<StepInput, OperationInput = UpdateTaskTagsInp
|
|
|
292
296
|
notFound?: StepTarget<MutationResult<OperationOutput>>;
|
|
293
297
|
/** ClickUp conclusively rejected a tag change, such as missing permission; earlier changes in the same Step may have been applied. */
|
|
294
298
|
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
295
|
-
/**
|
|
299
|
+
/** Kept for compatibility and no longer selected: the tag changes are safe to repeat, so an invalid or oversized task read back retries. */
|
|
296
300
|
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
297
301
|
/** Local input, connection configuration, or connector definition is invalid. */
|
|
298
302
|
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
303
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
304
|
+
maxSends?: number;
|
|
299
305
|
}
|
|
300
306
|
/** Build the updateTaskTags Step from a named connection. */
|
|
301
307
|
declare function newUpdateTaskTagsStep<StepInput, OperationInput = UpdateTaskTagsInput, OperationOutput = UpdateTaskTagsOutput>(configuration: UpdateTaskTagsStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
@@ -313,7 +319,7 @@ interface AddCommentStepConfig<StepInput, OperationInput = AddCommentInput, Oper
|
|
|
313
319
|
notFound?: StepTarget<MutationResult<OperationOutput>>;
|
|
314
320
|
/** ClickUp conclusively rejected the comment, such as missing permission; nothing was added. */
|
|
315
321
|
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
316
|
-
/**
|
|
322
|
+
/** Earlier attempts sent the comment up to the send cap, ClickUp accepted it without a usable comment ID, or read-back after a possible send cannot confirm a single matching comment, including a task that is now missing, so the comment may exist; the connector does not send it again. */
|
|
317
323
|
uncertain?: StepTarget<MutationResult<OperationOutput>>;
|
|
318
324
|
/** Local input, connection configuration, or connector definition is invalid. */
|
|
319
325
|
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
@@ -342,9 +348,6 @@ interface FindMemberByEmailStepConfig<StepInput, OperationInput = FindMemberByEm
|
|
|
342
348
|
/** Build the findMemberByEmail Step from a named connection. */
|
|
343
349
|
declare function newFindMemberByEmailStep<StepInput, OperationInput = FindMemberByEmailInput, OperationOutput = Member>(configuration: FindMemberByEmailStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
344
350
|
|
|
345
|
-
/** Open one named ClickUp connection declared in a Dex project. */
|
|
346
|
-
declare function newProjectConnection(project: LoadedProject, connectionName: string): Connection<Operations>;
|
|
347
|
-
|
|
348
351
|
/** Search one Workspace task page. */
|
|
349
352
|
declare class SearchTasksOperation implements Query<SearchTasksInput, SearchTasksOutput> {
|
|
350
353
|
private readonly client;
|
|
@@ -373,7 +376,7 @@ declare class FindMemberByEmailOperation implements Query<FindMemberByEmailInput
|
|
|
373
376
|
declare class UpdateTaskOperation implements Mutation<UpdateTaskInput, UpdateTaskOutput> {
|
|
374
377
|
private readonly client;
|
|
375
378
|
/** Bind a client. */ constructor(client: ClickUpClient);
|
|
376
|
-
/** Return the generated definition. */ definition():
|
|
379
|
+
/** Return the generated definition. */ definition(): MutationDefinition;
|
|
377
380
|
/** Correlate this mutation with the Dex Call ID. */ idempotencyKey(callId: string): string;
|
|
378
381
|
/** Validate, update, and decode the task. */
|
|
379
382
|
invoke(call: Call, input: UpdateTaskInput): Promise<MutationAttempt<UpdateTaskOutput>>;
|
|
@@ -382,29 +385,31 @@ declare class UpdateTaskOperation implements Mutation<UpdateTaskInput, UpdateTas
|
|
|
382
385
|
declare class UpdateTaskTagsOperation implements Mutation<UpdateTaskTagsInput, UpdateTaskTagsOutput> {
|
|
383
386
|
private readonly client;
|
|
384
387
|
/** Bind a client. */ constructor(client: ClickUpClient);
|
|
385
|
-
/** Return the generated definition. */ definition():
|
|
388
|
+
/** Return the generated definition. */ definition(): MutationDefinition;
|
|
386
389
|
/** Correlate this mutation with the Dex Call ID. */ idempotencyKey(callId: string): string;
|
|
387
390
|
/** Apply repeat safe tag membership changes. */
|
|
388
391
|
invoke(call: Call, input: UpdateTaskTagsInput): Promise<MutationAttempt<UpdateTaskTagsOutput>>;
|
|
389
392
|
}
|
|
390
|
-
/** Create one task
|
|
393
|
+
/** Create one task behind the single-dispatch fence, reading back an unknown earlier send and resending only within the send cap. */
|
|
391
394
|
declare class CreateTaskOperation implements Mutation<CreateTaskInput, CreateTaskOutput> {
|
|
392
395
|
private readonly client;
|
|
393
396
|
/** Bind a client. */ constructor(client: ClickUpClient);
|
|
394
|
-
/** Return the generated definition. */ definition():
|
|
397
|
+
/** Return the generated definition. */ definition(): MutationDefinition;
|
|
395
398
|
/** Correlate the checkpoint with the Dex Call ID. */ idempotencyKey(callId: string): string;
|
|
396
|
-
/** Create or
|
|
399
|
+
/** Create, read back, or resend one task. */
|
|
397
400
|
invoke(call: Call, input: CreateTaskInput): Promise<MutationAttempt<CreateTaskOutput>>;
|
|
401
|
+
/** Never send; return undefined when read-back confirmed nothing and the fence permits a resend. */
|
|
398
402
|
private reconcile;
|
|
399
403
|
}
|
|
400
|
-
/** Add one comment
|
|
404
|
+
/** Add one comment behind the single-dispatch fence, reading back an unknown earlier send and resending only within the send cap. */
|
|
401
405
|
declare class AddCommentOperation implements Mutation<AddCommentInput, AddCommentOutput> {
|
|
402
406
|
private readonly client;
|
|
403
407
|
/** Bind a client. */ constructor(client: ClickUpClient);
|
|
404
|
-
/** Return the generated definition. */ definition():
|
|
408
|
+
/** Return the generated definition. */ definition(): MutationDefinition;
|
|
405
409
|
/** Correlate the checkpoint with the Dex Call ID. */ idempotencyKey(callId: string): string;
|
|
406
|
-
/** Add or
|
|
410
|
+
/** Add, read back, or resend one comment. */
|
|
407
411
|
invoke(call: Call, input: AddCommentInput): Promise<MutationAttempt<AddCommentOutput>>;
|
|
412
|
+
/** Never send; return undefined when read-back confirmed nothing and the fence permits a resend. */
|
|
408
413
|
private reconcile;
|
|
409
414
|
}
|
|
410
415
|
|
|
@@ -418,8 +423,12 @@ interface ClickUpClientOptions {
|
|
|
418
423
|
now?: () => Date;
|
|
419
424
|
/** Override only with a ClickUp compatible test endpoint. */
|
|
420
425
|
apiBaseURL?: string;
|
|
426
|
+
/** Destination of secret-safe Trigger records. */ logger?: TriggerLogger;
|
|
421
427
|
}
|
|
422
|
-
/**
|
|
428
|
+
/**
|
|
429
|
+
* Outcome of one ClickUp HTTP exchange; `status` is the HTTP status of a response without a usable body, or 0.
|
|
430
|
+
* `isErrorBodyTooLarge` marks a non-2xx body over maxResponseBytes, which cannot prove a write refusal.
|
|
431
|
+
*/
|
|
423
432
|
type Exchange = {
|
|
424
433
|
kind: 'succeeded';
|
|
425
434
|
response: ProviderResponse;
|
|
@@ -427,12 +436,17 @@ type Exchange = {
|
|
|
427
436
|
kind: 'notFound' | 'notSent' | 'rateLimited' | 'unconfirmed' | 'rejected' | 'invalid' | 'defect';
|
|
428
437
|
failure: Failure;
|
|
429
438
|
retryAfterMs: number;
|
|
439
|
+
status: number;
|
|
440
|
+
isErrorBodyTooLarge?: boolean;
|
|
430
441
|
};
|
|
431
442
|
/** Authenticated ClickUp API client; credentials are resolved for each request. */
|
|
432
443
|
declare class ClickUpClient {
|
|
433
444
|
private readonly endpoint;
|
|
434
445
|
private readonly maxResponseBytes;
|
|
435
|
-
|
|
446
|
+
readonly credentials: CredentialProvider<Credentials>;
|
|
447
|
+
/** Largest accepted webhook body in bytes. */ readonly webhookMaxBodyBytes: number;
|
|
448
|
+
/** Destination of Trigger records. */ readonly triggerLogger: TriggerLogger;
|
|
449
|
+
/** Clock for webhook receipt times. */ readonly triggerNow: () => Date;
|
|
436
450
|
private readonly send;
|
|
437
451
|
private readonly now;
|
|
438
452
|
/** Validate the client configuration without contacting ClickUp. */
|
|
@@ -450,8 +464,109 @@ declare class ClickUpClient {
|
|
|
450
464
|
currentTime(): Date;
|
|
451
465
|
/** Send a bounded API request and classify its response; signal can bound a multi-request operation. */
|
|
452
466
|
exchange(call: Call, operation: string, method: string, path: string, query?: URLSearchParams, payload?: unknown, signal?: AbortSignal): Promise<Exchange>;
|
|
467
|
+
private classifyFailureStatus;
|
|
453
468
|
private rateLimitDelay;
|
|
454
469
|
private outcome;
|
|
455
470
|
}
|
|
456
471
|
|
|
457
|
-
|
|
472
|
+
/** Open one named ClickUp connection declared in a Dex project. */
|
|
473
|
+
declare function newProjectConnection(project: LoadedProject, connectionName: string, options?: ClickUpClientOptions): Connection<Operations>;
|
|
474
|
+
|
|
475
|
+
/** Supported ClickUp task webhook events in Go's stable order. */
|
|
476
|
+
declare const TaskEvents: readonly ["taskCreated", "taskUpdated", "taskDeleted", "taskPriorityUpdated", "taskStatusUpdated", "taskAssigneeUpdated", "taskDueDateUpdated", "taskTagUpdated", "taskMoved", "taskCommentPosted", "taskCommentUpdated", "taskTimeEstimateUpdated", "taskTimeTrackedUpdated"];
|
|
477
|
+
/** Event filter of one taskEvent binding; an empty list accepts every supported event. */
|
|
478
|
+
declare const TaskEventTriggerConfigurationSchema: z.ZodObject<{
|
|
479
|
+
events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
480
|
+
}, z.core.$strict>;
|
|
481
|
+
/** One taskEvent binding's event filter. */
|
|
482
|
+
type TaskEventTriggerConfiguration = z.infer<typeof TaskEventTriggerConfigurationSchema>;
|
|
483
|
+
/** One ClickUp task history item, with status names and no changed values. */
|
|
484
|
+
declare const TaskHistoryItemSchema: z.ZodObject<{
|
|
485
|
+
id: z.ZodString;
|
|
486
|
+
field: z.ZodString;
|
|
487
|
+
occurredAt: z.ZodOptional<z.ZodString>;
|
|
488
|
+
userId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodCustom<Readonly<{
|
|
489
|
+
rawJSON: string;
|
|
490
|
+
}>, Readonly<{
|
|
491
|
+
rawJSON: string;
|
|
492
|
+
}>>]>>;
|
|
493
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
494
|
+
statusBefore: z.ZodOptional<z.ZodString>;
|
|
495
|
+
statusAfter: z.ZodOptional<z.ZodString>;
|
|
496
|
+
}, z.core.$strip>;
|
|
497
|
+
/** One ClickUp task history item. */
|
|
498
|
+
type TaskHistoryItem = z.infer<typeof TaskHistoryItemSchema>;
|
|
499
|
+
/** One verified task webhook, with an event ID stable across ClickUp redelivery. */
|
|
500
|
+
declare const TaskEventSchema: z.ZodObject<{
|
|
501
|
+
eventId: z.ZodString;
|
|
502
|
+
webhookId: z.ZodString;
|
|
503
|
+
event: z.ZodString;
|
|
504
|
+
taskId: z.ZodString;
|
|
505
|
+
historyItems: z.ZodArray<z.ZodObject<{
|
|
506
|
+
id: z.ZodString;
|
|
507
|
+
field: z.ZodString;
|
|
508
|
+
occurredAt: z.ZodOptional<z.ZodString>;
|
|
509
|
+
userId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodCustom<Readonly<{
|
|
510
|
+
rawJSON: string;
|
|
511
|
+
}>, Readonly<{
|
|
512
|
+
rawJSON: string;
|
|
513
|
+
}>>]>>;
|
|
514
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
515
|
+
statusBefore: z.ZodOptional<z.ZodString>;
|
|
516
|
+
statusAfter: z.ZodOptional<z.ZodString>;
|
|
517
|
+
}, z.core.$strip>>;
|
|
518
|
+
occurredAt: z.ZodString;
|
|
519
|
+
}, z.core.$strip>;
|
|
520
|
+
/** One verified task webhook. */
|
|
521
|
+
type TaskEvent = z.infer<typeof TaskEventSchema>;
|
|
522
|
+
/** Manifest definition of taskEvent. */
|
|
523
|
+
declare const TaskEventTriggerDefinition: TriggerDefinition;
|
|
524
|
+
/** ClickUp event picker UI unit. */ declare const UIUnitTaskEventPicker = "taskEventPicker";
|
|
525
|
+
/** Event picker output port. */ declare const UITaskEventPickerPortEvents = "events";
|
|
526
|
+
/** Static taskEvent binding shown in Dex Web. */
|
|
527
|
+
interface TaskEventTriggerBindingConfig {
|
|
528
|
+
/** Connection name. */ connectionName: string;
|
|
529
|
+
/** Binding name. */ bindingName: string;
|
|
530
|
+
/** Connector Studio units. */ configurationUI: ConnectorConfigurationUI;
|
|
531
|
+
}
|
|
532
|
+
/** Declare a static taskEvent binding. */
|
|
533
|
+
declare function defineTaskEventTriggerBinding(config: TaskEventTriggerBindingConfig): TriggerBindingDefinition;
|
|
534
|
+
/** One taskEvent binding and its target. */
|
|
535
|
+
interface TaskEventTriggerConfig {
|
|
536
|
+
/** ClickUp connection. */ connection: Connection;
|
|
537
|
+
/** Static connection name. */ connectionName: string;
|
|
538
|
+
/** Static binding name. */ bindingName: string;
|
|
539
|
+
/** Event filter. */ configuration: TaskEventTriggerConfiguration;
|
|
540
|
+
/** Delivery target. */ target: TriggerTarget<TaskEvent>;
|
|
541
|
+
}
|
|
542
|
+
/** Create a taskEvent Trigger from a connection's shared webhook endpoint. */
|
|
543
|
+
declare function newTaskEventTrigger(config: TaskEventTriggerConfig): TriggerRunner;
|
|
544
|
+
/** HTTP handler of one ClickUp connection; it answers 503 while no binding receives events. */
|
|
545
|
+
interface TaskEventWebhookHandler {
|
|
546
|
+
/** Verify and acknowledge a delivery. */ serveHTTP(request: IncomingMessage, response: ServerResponse): Promise<void>;
|
|
547
|
+
/** Running bindings. */ runningSourceCount(): number;
|
|
548
|
+
}
|
|
549
|
+
/** Return the endpoint shared by every taskEvent binding of a connection. */
|
|
550
|
+
declare function taskEventWebhookHandler(connection: Connection): TaskEventWebhookHandler;
|
|
551
|
+
/** One stored taskEvent binding routed through its durable inbox. */
|
|
552
|
+
interface ProjectTaskEventTriggerRoute {
|
|
553
|
+
/** Stored binding name. */ bindingName: string;
|
|
554
|
+
/** Application target. */ target: TriggerTarget<TaskEvent>;
|
|
555
|
+
}
|
|
556
|
+
/** Serve and run a connection's taskEvent bindings. */
|
|
557
|
+
declare class TaskEventEndpointRunner {
|
|
558
|
+
#private;
|
|
559
|
+
private readonly endpoint;
|
|
560
|
+
/** @internal Construct through newProjectTaskEventEndpointRunner. */
|
|
561
|
+
constructor(endpoint: WebhookEndpoint<Credentials, TaskEvent>, runners: readonly TriggerRunner[]);
|
|
562
|
+
/** Verify, record, and acknowledge one delivery, or answer 503 until pending events have replayed. */
|
|
563
|
+
serveHTTP(request: IncomingMessage, response: ServerResponse): Promise<void>;
|
|
564
|
+
/** Replay durable inboxes, then deliver new events until stopped. */
|
|
565
|
+
run(context: TriggerContext): Promise<void>;
|
|
566
|
+
/** Number of bindings ready to receive. */
|
|
567
|
+
runningSourceCount(): number;
|
|
568
|
+
}
|
|
569
|
+
/** Load stored bindings and wrap every target in a durable project inbox before webhook acknowledgement. */
|
|
570
|
+
declare function newProjectTaskEventEndpointRunner(project: LoadedProject, connectionName: string, routes: readonly ProjectTaskEventTriggerRoute[], options?: ClickUpClientOptions): TaskEventEndpointRunner;
|
|
571
|
+
|
|
572
|
+
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, type ProjectTaskEventTriggerRoute, ProviderID, SearchTasksBranch, SearchTasksBranchDefect, SearchTasksBranchInvalidResponse, SearchTasksBranchNotFound, SearchTasksBranchProviderRejected, SearchTasksBranchSearched, SearchTasksDefinition, SearchTasksInput, SearchTasksMetadata, SearchTasksOperation, SearchTasksOutput, type SearchTasksStepConfig, Task, type TaskEvent, TaskEventEndpointRunner, TaskEventSchema, type TaskEventTriggerBindingConfig, type TaskEventTriggerConfig, type TaskEventTriggerConfiguration, TaskEventTriggerConfigurationSchema, TaskEventTriggerDefinition, type TaskEventWebhookHandler, TaskEvents, type TaskHistoryItem, TaskHistoryItemSchema, UITaskEventPickerPortEvents, UIUnitTaskEventPicker, 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, defineTaskEventTriggerBinding, newAddCommentStep, newCreateTaskStep, newFindMemberByEmailStep, newGetTaskStep, newProjectConnection, newProjectTaskEventEndpointRunner, newSearchTasksStep, newTaskEventTrigger, newUpdateTaskStep, newUpdateTaskTagsStep, taskEventWebhookHandler };
|