@frogbotai/piece-linear 0.39.0 → 0.40.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/dist/adapter.d.ts +1 -0
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +4 -0
- package/dist/adapter.js.map +1 -1
- package/dist/define.d.ts +106 -40
- package/dist/define.d.ts.map +1 -1
- package/dist/index.d.ts +445 -188
- package/dist/index.d.ts.map +1 -1
- package/dist/triggers/commentCreated.d.ts +70 -32
- package/dist/triggers/commentCreated.d.ts.map +1 -1
- package/dist/triggers/issueCreated.d.ts +65 -28
- package/dist/triggers/issueCreated.d.ts.map +1 -1
- package/dist/triggers/issueRemoved.d.ts +65 -28
- package/dist/triggers/issueRemoved.d.ts.map +1 -1
- package/dist/triggers/issueUpdated.d.ts +65 -28
- package/dist/triggers/issueUpdated.d.ts.map +1 -1
- package/dist/triggers/projectCreated.d.ts +55 -20
- package/dist/triggers/projectCreated.d.ts.map +1 -1
- package/dist/triggers/projectRemoved.d.ts +55 -20
- package/dist/triggers/projectRemoved.d.ts.map +1 -1
- package/dist/triggers/projectUpdated.d.ts +70 -32
- package/dist/triggers/projectUpdated.d.ts.map +1 -1
- package/dist/triggers/webhook.d.ts +55 -20
- package/dist/triggers/webhook.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -263,40 +263,55 @@ export declare const createLinear: import("frogbot").PieceFactory<{
|
|
|
263
263
|
sample?: import("frogbot").PieceJSON | undefined;
|
|
264
264
|
} & {
|
|
265
265
|
type: "webhook";
|
|
266
|
-
onEnable(args:
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
266
|
+
onEnable(args: {
|
|
267
|
+
input: {
|
|
268
|
+
teamIds?: string[] | undefined;
|
|
269
|
+
authorIds?: string[] | undefined;
|
|
270
|
+
};
|
|
271
|
+
client: import("@linear/sdk").LinearClient;
|
|
272
|
+
options: {
|
|
273
|
+
channelMode: "agent-sessions" | "comments";
|
|
274
|
+
webhookSecret?: string | undefined;
|
|
275
|
+
botUsername?: string | undefined;
|
|
276
|
+
};
|
|
277
|
+
req: import("frogbot").FrogBotRequest;
|
|
278
|
+
} & {
|
|
274
279
|
webhookUrl: string;
|
|
275
280
|
}): Promise<{
|
|
276
281
|
webhookId: string;
|
|
277
282
|
}>;
|
|
278
|
-
onDisable(args:
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
283
|
+
onDisable(args: {
|
|
284
|
+
input: {
|
|
285
|
+
teamIds?: string[] | undefined;
|
|
286
|
+
authorIds?: string[] | undefined;
|
|
287
|
+
};
|
|
288
|
+
client: import("@linear/sdk").LinearClient;
|
|
289
|
+
options: {
|
|
290
|
+
channelMode: "agent-sessions" | "comments";
|
|
291
|
+
webhookSecret?: string | undefined;
|
|
292
|
+
botUsername?: string | undefined;
|
|
293
|
+
};
|
|
294
|
+
req: import("frogbot").FrogBotRequest;
|
|
295
|
+
} & {
|
|
286
296
|
state: {
|
|
287
297
|
webhookId: string;
|
|
288
298
|
};
|
|
289
299
|
}): Promise<void>;
|
|
290
300
|
renew?: {
|
|
291
301
|
schedule: string;
|
|
292
|
-
run(args:
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
302
|
+
run(args: {
|
|
303
|
+
input: {
|
|
304
|
+
teamIds?: string[] | undefined;
|
|
305
|
+
authorIds?: string[] | undefined;
|
|
306
|
+
};
|
|
307
|
+
client: import("@linear/sdk").LinearClient;
|
|
308
|
+
options: {
|
|
309
|
+
channelMode: "agent-sessions" | "comments";
|
|
310
|
+
webhookSecret?: string | undefined;
|
|
311
|
+
botUsername?: string | undefined;
|
|
312
|
+
};
|
|
313
|
+
req: import("frogbot").FrogBotRequest;
|
|
314
|
+
} & {
|
|
300
315
|
state: {
|
|
301
316
|
webhookId: string;
|
|
302
317
|
};
|
|
@@ -305,18 +320,41 @@ export declare const createLinear: import("frogbot").PieceFactory<{
|
|
|
305
320
|
webhookId: string;
|
|
306
321
|
}>;
|
|
307
322
|
} | undefined;
|
|
308
|
-
run(args:
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
323
|
+
run(args: {
|
|
324
|
+
input: {
|
|
325
|
+
teamIds?: string[] | undefined;
|
|
326
|
+
authorIds?: string[] | undefined;
|
|
327
|
+
};
|
|
328
|
+
client: import("@linear/sdk").LinearClient;
|
|
329
|
+
options: {
|
|
330
|
+
channelMode: "agent-sessions" | "comments";
|
|
331
|
+
webhookSecret?: string | undefined;
|
|
332
|
+
botUsername?: string | undefined;
|
|
333
|
+
};
|
|
334
|
+
req: import("frogbot").FrogBotRequest;
|
|
335
|
+
} & {
|
|
316
336
|
state: {
|
|
317
337
|
webhookId: string;
|
|
318
338
|
};
|
|
319
339
|
}): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
|
|
340
|
+
reply?(args: {
|
|
341
|
+
input: {
|
|
342
|
+
teamIds?: string[] | undefined;
|
|
343
|
+
authorIds?: string[] | undefined;
|
|
344
|
+
};
|
|
345
|
+
client: import("@linear/sdk").LinearClient;
|
|
346
|
+
options: {
|
|
347
|
+
channelMode: "agent-sessions" | "comments";
|
|
348
|
+
webhookSecret?: string | undefined;
|
|
349
|
+
botUsername?: string | undefined;
|
|
350
|
+
};
|
|
351
|
+
req: import("frogbot").FrogBotRequest;
|
|
352
|
+
} & {
|
|
353
|
+
state: {
|
|
354
|
+
webhookId: string;
|
|
355
|
+
};
|
|
356
|
+
events: import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[];
|
|
357
|
+
}): Response | Promise<Response>;
|
|
320
358
|
} & {
|
|
321
359
|
slug: "commentCreated";
|
|
322
360
|
}, {
|
|
@@ -330,37 +368,52 @@ export declare const createLinear: import("frogbot").PieceFactory<{
|
|
|
330
368
|
sample?: import("frogbot").PieceJSON | undefined;
|
|
331
369
|
} & {
|
|
332
370
|
type: "webhook";
|
|
333
|
-
onEnable(args:
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
371
|
+
onEnable(args: {
|
|
372
|
+
input: {
|
|
373
|
+
teamId: string;
|
|
374
|
+
};
|
|
375
|
+
client: import("@linear/sdk").LinearClient;
|
|
376
|
+
options: {
|
|
377
|
+
channelMode: "agent-sessions" | "comments";
|
|
378
|
+
webhookSecret?: string | undefined;
|
|
379
|
+
botUsername?: string | undefined;
|
|
380
|
+
};
|
|
381
|
+
req: import("frogbot").FrogBotRequest;
|
|
382
|
+
} & {
|
|
340
383
|
webhookUrl: string;
|
|
341
384
|
}): Promise<{
|
|
342
385
|
webhookId: string;
|
|
343
386
|
}>;
|
|
344
|
-
onDisable(args:
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
387
|
+
onDisable(args: {
|
|
388
|
+
input: {
|
|
389
|
+
teamId: string;
|
|
390
|
+
};
|
|
391
|
+
client: import("@linear/sdk").LinearClient;
|
|
392
|
+
options: {
|
|
393
|
+
channelMode: "agent-sessions" | "comments";
|
|
394
|
+
webhookSecret?: string | undefined;
|
|
395
|
+
botUsername?: string | undefined;
|
|
396
|
+
};
|
|
397
|
+
req: import("frogbot").FrogBotRequest;
|
|
398
|
+
} & {
|
|
351
399
|
state: {
|
|
352
400
|
webhookId: string;
|
|
353
401
|
};
|
|
354
402
|
}): Promise<void>;
|
|
355
403
|
renew?: {
|
|
356
404
|
schedule: string;
|
|
357
|
-
run(args:
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
405
|
+
run(args: {
|
|
406
|
+
input: {
|
|
407
|
+
teamId: string;
|
|
408
|
+
};
|
|
409
|
+
client: import("@linear/sdk").LinearClient;
|
|
410
|
+
options: {
|
|
411
|
+
channelMode: "agent-sessions" | "comments";
|
|
412
|
+
webhookSecret?: string | undefined;
|
|
413
|
+
botUsername?: string | undefined;
|
|
414
|
+
};
|
|
415
|
+
req: import("frogbot").FrogBotRequest;
|
|
416
|
+
} & {
|
|
364
417
|
state: {
|
|
365
418
|
webhookId: string;
|
|
366
419
|
};
|
|
@@ -369,17 +422,39 @@ export declare const createLinear: import("frogbot").PieceFactory<{
|
|
|
369
422
|
webhookId: string;
|
|
370
423
|
}>;
|
|
371
424
|
} | undefined;
|
|
372
|
-
run(args:
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
425
|
+
run(args: {
|
|
426
|
+
input: {
|
|
427
|
+
teamId: string;
|
|
428
|
+
};
|
|
429
|
+
client: import("@linear/sdk").LinearClient;
|
|
430
|
+
options: {
|
|
431
|
+
channelMode: "agent-sessions" | "comments";
|
|
432
|
+
webhookSecret?: string | undefined;
|
|
433
|
+
botUsername?: string | undefined;
|
|
434
|
+
};
|
|
435
|
+
req: import("frogbot").FrogBotRequest;
|
|
436
|
+
} & {
|
|
379
437
|
state: {
|
|
380
438
|
webhookId: string;
|
|
381
439
|
};
|
|
382
440
|
}): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
|
|
441
|
+
reply?(args: {
|
|
442
|
+
input: {
|
|
443
|
+
teamId: string;
|
|
444
|
+
};
|
|
445
|
+
client: import("@linear/sdk").LinearClient;
|
|
446
|
+
options: {
|
|
447
|
+
channelMode: "agent-sessions" | "comments";
|
|
448
|
+
webhookSecret?: string | undefined;
|
|
449
|
+
botUsername?: string | undefined;
|
|
450
|
+
};
|
|
451
|
+
req: import("frogbot").FrogBotRequest;
|
|
452
|
+
} & {
|
|
453
|
+
state: {
|
|
454
|
+
webhookId: string;
|
|
455
|
+
};
|
|
456
|
+
events: import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[];
|
|
457
|
+
}): Response | Promise<Response>;
|
|
383
458
|
} & {
|
|
384
459
|
slug: "issueCreated";
|
|
385
460
|
}, {
|
|
@@ -393,37 +468,52 @@ export declare const createLinear: import("frogbot").PieceFactory<{
|
|
|
393
468
|
sample?: import("frogbot").PieceJSON | undefined;
|
|
394
469
|
} & {
|
|
395
470
|
type: "webhook";
|
|
396
|
-
onEnable(args:
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
471
|
+
onEnable(args: {
|
|
472
|
+
input: {
|
|
473
|
+
teamId?: string | undefined;
|
|
474
|
+
};
|
|
475
|
+
client: import("@linear/sdk").LinearClient;
|
|
476
|
+
options: {
|
|
477
|
+
channelMode: "agent-sessions" | "comments";
|
|
478
|
+
webhookSecret?: string | undefined;
|
|
479
|
+
botUsername?: string | undefined;
|
|
480
|
+
};
|
|
481
|
+
req: import("frogbot").FrogBotRequest;
|
|
482
|
+
} & {
|
|
403
483
|
webhookUrl: string;
|
|
404
484
|
}): Promise<{
|
|
405
485
|
webhookId: string;
|
|
406
486
|
}>;
|
|
407
|
-
onDisable(args:
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
487
|
+
onDisable(args: {
|
|
488
|
+
input: {
|
|
489
|
+
teamId?: string | undefined;
|
|
490
|
+
};
|
|
491
|
+
client: import("@linear/sdk").LinearClient;
|
|
492
|
+
options: {
|
|
493
|
+
channelMode: "agent-sessions" | "comments";
|
|
494
|
+
webhookSecret?: string | undefined;
|
|
495
|
+
botUsername?: string | undefined;
|
|
496
|
+
};
|
|
497
|
+
req: import("frogbot").FrogBotRequest;
|
|
498
|
+
} & {
|
|
414
499
|
state: {
|
|
415
500
|
webhookId: string;
|
|
416
501
|
};
|
|
417
502
|
}): Promise<void>;
|
|
418
503
|
renew?: {
|
|
419
504
|
schedule: string;
|
|
420
|
-
run(args:
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
505
|
+
run(args: {
|
|
506
|
+
input: {
|
|
507
|
+
teamId?: string | undefined;
|
|
508
|
+
};
|
|
509
|
+
client: import("@linear/sdk").LinearClient;
|
|
510
|
+
options: {
|
|
511
|
+
channelMode: "agent-sessions" | "comments";
|
|
512
|
+
webhookSecret?: string | undefined;
|
|
513
|
+
botUsername?: string | undefined;
|
|
514
|
+
};
|
|
515
|
+
req: import("frogbot").FrogBotRequest;
|
|
516
|
+
} & {
|
|
427
517
|
state: {
|
|
428
518
|
webhookId: string;
|
|
429
519
|
};
|
|
@@ -432,17 +522,39 @@ export declare const createLinear: import("frogbot").PieceFactory<{
|
|
|
432
522
|
webhookId: string;
|
|
433
523
|
}>;
|
|
434
524
|
} | undefined;
|
|
435
|
-
run(args:
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
525
|
+
run(args: {
|
|
526
|
+
input: {
|
|
527
|
+
teamId?: string | undefined;
|
|
528
|
+
};
|
|
529
|
+
client: import("@linear/sdk").LinearClient;
|
|
530
|
+
options: {
|
|
531
|
+
channelMode: "agent-sessions" | "comments";
|
|
532
|
+
webhookSecret?: string | undefined;
|
|
533
|
+
botUsername?: string | undefined;
|
|
534
|
+
};
|
|
535
|
+
req: import("frogbot").FrogBotRequest;
|
|
536
|
+
} & {
|
|
442
537
|
state: {
|
|
443
538
|
webhookId: string;
|
|
444
539
|
};
|
|
445
540
|
}): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
|
|
541
|
+
reply?(args: {
|
|
542
|
+
input: {
|
|
543
|
+
teamId?: string | undefined;
|
|
544
|
+
};
|
|
545
|
+
client: import("@linear/sdk").LinearClient;
|
|
546
|
+
options: {
|
|
547
|
+
channelMode: "agent-sessions" | "comments";
|
|
548
|
+
webhookSecret?: string | undefined;
|
|
549
|
+
botUsername?: string | undefined;
|
|
550
|
+
};
|
|
551
|
+
req: import("frogbot").FrogBotRequest;
|
|
552
|
+
} & {
|
|
553
|
+
state: {
|
|
554
|
+
webhookId: string;
|
|
555
|
+
};
|
|
556
|
+
events: import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[];
|
|
557
|
+
}): Response | Promise<Response>;
|
|
446
558
|
} & {
|
|
447
559
|
slug: "issueUpdated";
|
|
448
560
|
}, {
|
|
@@ -456,37 +568,52 @@ export declare const createLinear: import("frogbot").PieceFactory<{
|
|
|
456
568
|
sample?: import("frogbot").PieceJSON | undefined;
|
|
457
569
|
} & {
|
|
458
570
|
type: "webhook";
|
|
459
|
-
onEnable(args:
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
571
|
+
onEnable(args: {
|
|
572
|
+
input: {
|
|
573
|
+
teamId: string;
|
|
574
|
+
};
|
|
575
|
+
client: import("@linear/sdk").LinearClient;
|
|
576
|
+
options: {
|
|
577
|
+
channelMode: "agent-sessions" | "comments";
|
|
578
|
+
webhookSecret?: string | undefined;
|
|
579
|
+
botUsername?: string | undefined;
|
|
580
|
+
};
|
|
581
|
+
req: import("frogbot").FrogBotRequest;
|
|
582
|
+
} & {
|
|
466
583
|
webhookUrl: string;
|
|
467
584
|
}): Promise<{
|
|
468
585
|
webhookId: string;
|
|
469
586
|
}>;
|
|
470
|
-
onDisable(args:
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
587
|
+
onDisable(args: {
|
|
588
|
+
input: {
|
|
589
|
+
teamId: string;
|
|
590
|
+
};
|
|
591
|
+
client: import("@linear/sdk").LinearClient;
|
|
592
|
+
options: {
|
|
593
|
+
channelMode: "agent-sessions" | "comments";
|
|
594
|
+
webhookSecret?: string | undefined;
|
|
595
|
+
botUsername?: string | undefined;
|
|
596
|
+
};
|
|
597
|
+
req: import("frogbot").FrogBotRequest;
|
|
598
|
+
} & {
|
|
477
599
|
state: {
|
|
478
600
|
webhookId: string;
|
|
479
601
|
};
|
|
480
602
|
}): Promise<void>;
|
|
481
603
|
renew?: {
|
|
482
604
|
schedule: string;
|
|
483
|
-
run(args:
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
605
|
+
run(args: {
|
|
606
|
+
input: {
|
|
607
|
+
teamId: string;
|
|
608
|
+
};
|
|
609
|
+
client: import("@linear/sdk").LinearClient;
|
|
610
|
+
options: {
|
|
611
|
+
channelMode: "agent-sessions" | "comments";
|
|
612
|
+
webhookSecret?: string | undefined;
|
|
613
|
+
botUsername?: string | undefined;
|
|
614
|
+
};
|
|
615
|
+
req: import("frogbot").FrogBotRequest;
|
|
616
|
+
} & {
|
|
490
617
|
state: {
|
|
491
618
|
webhookId: string;
|
|
492
619
|
};
|
|
@@ -495,17 +622,39 @@ export declare const createLinear: import("frogbot").PieceFactory<{
|
|
|
495
622
|
webhookId: string;
|
|
496
623
|
}>;
|
|
497
624
|
} | undefined;
|
|
498
|
-
run(args:
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
625
|
+
run(args: {
|
|
626
|
+
input: {
|
|
627
|
+
teamId: string;
|
|
628
|
+
};
|
|
629
|
+
client: import("@linear/sdk").LinearClient;
|
|
630
|
+
options: {
|
|
631
|
+
channelMode: "agent-sessions" | "comments";
|
|
632
|
+
webhookSecret?: string | undefined;
|
|
633
|
+
botUsername?: string | undefined;
|
|
634
|
+
};
|
|
635
|
+
req: import("frogbot").FrogBotRequest;
|
|
636
|
+
} & {
|
|
505
637
|
state: {
|
|
506
638
|
webhookId: string;
|
|
507
639
|
};
|
|
508
640
|
}): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
|
|
641
|
+
reply?(args: {
|
|
642
|
+
input: {
|
|
643
|
+
teamId: string;
|
|
644
|
+
};
|
|
645
|
+
client: import("@linear/sdk").LinearClient;
|
|
646
|
+
options: {
|
|
647
|
+
channelMode: "agent-sessions" | "comments";
|
|
648
|
+
webhookSecret?: string | undefined;
|
|
649
|
+
botUsername?: string | undefined;
|
|
650
|
+
};
|
|
651
|
+
req: import("frogbot").FrogBotRequest;
|
|
652
|
+
} & {
|
|
653
|
+
state: {
|
|
654
|
+
webhookId: string;
|
|
655
|
+
};
|
|
656
|
+
events: import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[];
|
|
657
|
+
}): Response | Promise<Response>;
|
|
509
658
|
} & {
|
|
510
659
|
slug: "issueRemoved";
|
|
511
660
|
}, {
|
|
@@ -517,31 +666,46 @@ export declare const createLinear: import("frogbot").PieceFactory<{
|
|
|
517
666
|
sample?: import("frogbot").PieceJSON | undefined;
|
|
518
667
|
} & {
|
|
519
668
|
type: "webhook";
|
|
520
|
-
onEnable(args:
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
669
|
+
onEnable(args: {
|
|
670
|
+
input: Record<string, never>;
|
|
671
|
+
client: import("@linear/sdk").LinearClient;
|
|
672
|
+
options: {
|
|
673
|
+
channelMode: "agent-sessions" | "comments";
|
|
674
|
+
webhookSecret?: string | undefined;
|
|
675
|
+
botUsername?: string | undefined;
|
|
676
|
+
};
|
|
677
|
+
req: import("frogbot").FrogBotRequest;
|
|
678
|
+
} & {
|
|
525
679
|
webhookUrl: string;
|
|
526
680
|
}): Promise<{
|
|
527
681
|
webhookId: string;
|
|
528
682
|
}>;
|
|
529
|
-
onDisable(args:
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
683
|
+
onDisable(args: {
|
|
684
|
+
input: Record<string, never>;
|
|
685
|
+
client: import("@linear/sdk").LinearClient;
|
|
686
|
+
options: {
|
|
687
|
+
channelMode: "agent-sessions" | "comments";
|
|
688
|
+
webhookSecret?: string | undefined;
|
|
689
|
+
botUsername?: string | undefined;
|
|
690
|
+
};
|
|
691
|
+
req: import("frogbot").FrogBotRequest;
|
|
692
|
+
} & {
|
|
534
693
|
state: {
|
|
535
694
|
webhookId: string;
|
|
536
695
|
};
|
|
537
696
|
}): Promise<void>;
|
|
538
697
|
renew?: {
|
|
539
698
|
schedule: string;
|
|
540
|
-
run(args:
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
699
|
+
run(args: {
|
|
700
|
+
input: Record<string, never>;
|
|
701
|
+
client: import("@linear/sdk").LinearClient;
|
|
702
|
+
options: {
|
|
703
|
+
channelMode: "agent-sessions" | "comments";
|
|
704
|
+
webhookSecret?: string | undefined;
|
|
705
|
+
botUsername?: string | undefined;
|
|
706
|
+
};
|
|
707
|
+
req: import("frogbot").FrogBotRequest;
|
|
708
|
+
} & {
|
|
545
709
|
state: {
|
|
546
710
|
webhookId: string;
|
|
547
711
|
};
|
|
@@ -550,15 +714,35 @@ export declare const createLinear: import("frogbot").PieceFactory<{
|
|
|
550
714
|
webhookId: string;
|
|
551
715
|
}>;
|
|
552
716
|
} | undefined;
|
|
553
|
-
run(args:
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
717
|
+
run(args: {
|
|
718
|
+
input: Record<string, never>;
|
|
719
|
+
client: import("@linear/sdk").LinearClient;
|
|
720
|
+
options: {
|
|
721
|
+
channelMode: "agent-sessions" | "comments";
|
|
722
|
+
webhookSecret?: string | undefined;
|
|
723
|
+
botUsername?: string | undefined;
|
|
724
|
+
};
|
|
725
|
+
req: import("frogbot").FrogBotRequest;
|
|
726
|
+
} & {
|
|
558
727
|
state: {
|
|
559
728
|
webhookId: string;
|
|
560
729
|
};
|
|
561
730
|
}): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
|
|
731
|
+
reply?(args: {
|
|
732
|
+
input: Record<string, never>;
|
|
733
|
+
client: import("@linear/sdk").LinearClient;
|
|
734
|
+
options: {
|
|
735
|
+
channelMode: "agent-sessions" | "comments";
|
|
736
|
+
webhookSecret?: string | undefined;
|
|
737
|
+
botUsername?: string | undefined;
|
|
738
|
+
};
|
|
739
|
+
req: import("frogbot").FrogBotRequest;
|
|
740
|
+
} & {
|
|
741
|
+
state: {
|
|
742
|
+
webhookId: string;
|
|
743
|
+
};
|
|
744
|
+
events: import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[];
|
|
745
|
+
}): Response | Promise<Response>;
|
|
562
746
|
} & {
|
|
563
747
|
slug: "projectCreated";
|
|
564
748
|
}, {
|
|
@@ -573,40 +757,55 @@ export declare const createLinear: import("frogbot").PieceFactory<{
|
|
|
573
757
|
sample?: import("frogbot").PieceJSON | undefined;
|
|
574
758
|
} & {
|
|
575
759
|
type: "webhook";
|
|
576
|
-
onEnable(args:
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
760
|
+
onEnable(args: {
|
|
761
|
+
input: {
|
|
762
|
+
teamIds?: string[] | undefined;
|
|
763
|
+
projectStatus?: string | undefined;
|
|
764
|
+
};
|
|
765
|
+
client: import("@linear/sdk").LinearClient;
|
|
766
|
+
options: {
|
|
767
|
+
channelMode: "agent-sessions" | "comments";
|
|
768
|
+
webhookSecret?: string | undefined;
|
|
769
|
+
botUsername?: string | undefined;
|
|
770
|
+
};
|
|
771
|
+
req: import("frogbot").FrogBotRequest;
|
|
772
|
+
} & {
|
|
584
773
|
webhookUrl: string;
|
|
585
774
|
}): Promise<{
|
|
586
775
|
webhookId: string;
|
|
587
776
|
}>;
|
|
588
|
-
onDisable(args:
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
777
|
+
onDisable(args: {
|
|
778
|
+
input: {
|
|
779
|
+
teamIds?: string[] | undefined;
|
|
780
|
+
projectStatus?: string | undefined;
|
|
781
|
+
};
|
|
782
|
+
client: import("@linear/sdk").LinearClient;
|
|
783
|
+
options: {
|
|
784
|
+
channelMode: "agent-sessions" | "comments";
|
|
785
|
+
webhookSecret?: string | undefined;
|
|
786
|
+
botUsername?: string | undefined;
|
|
787
|
+
};
|
|
788
|
+
req: import("frogbot").FrogBotRequest;
|
|
789
|
+
} & {
|
|
596
790
|
state: {
|
|
597
791
|
webhookId: string;
|
|
598
792
|
};
|
|
599
793
|
}): Promise<void>;
|
|
600
794
|
renew?: {
|
|
601
795
|
schedule: string;
|
|
602
|
-
run(args:
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
796
|
+
run(args: {
|
|
797
|
+
input: {
|
|
798
|
+
teamIds?: string[] | undefined;
|
|
799
|
+
projectStatus?: string | undefined;
|
|
800
|
+
};
|
|
801
|
+
client: import("@linear/sdk").LinearClient;
|
|
802
|
+
options: {
|
|
803
|
+
channelMode: "agent-sessions" | "comments";
|
|
804
|
+
webhookSecret?: string | undefined;
|
|
805
|
+
botUsername?: string | undefined;
|
|
806
|
+
};
|
|
807
|
+
req: import("frogbot").FrogBotRequest;
|
|
808
|
+
} & {
|
|
610
809
|
state: {
|
|
611
810
|
webhookId: string;
|
|
612
811
|
};
|
|
@@ -615,18 +814,41 @@ export declare const createLinear: import("frogbot").PieceFactory<{
|
|
|
615
814
|
webhookId: string;
|
|
616
815
|
}>;
|
|
617
816
|
} | undefined;
|
|
618
|
-
run(args:
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
817
|
+
run(args: {
|
|
818
|
+
input: {
|
|
819
|
+
teamIds?: string[] | undefined;
|
|
820
|
+
projectStatus?: string | undefined;
|
|
821
|
+
};
|
|
822
|
+
client: import("@linear/sdk").LinearClient;
|
|
823
|
+
options: {
|
|
824
|
+
channelMode: "agent-sessions" | "comments";
|
|
825
|
+
webhookSecret?: string | undefined;
|
|
826
|
+
botUsername?: string | undefined;
|
|
827
|
+
};
|
|
828
|
+
req: import("frogbot").FrogBotRequest;
|
|
829
|
+
} & {
|
|
626
830
|
state: {
|
|
627
831
|
webhookId: string;
|
|
628
832
|
};
|
|
629
833
|
}): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
|
|
834
|
+
reply?(args: {
|
|
835
|
+
input: {
|
|
836
|
+
teamIds?: string[] | undefined;
|
|
837
|
+
projectStatus?: string | undefined;
|
|
838
|
+
};
|
|
839
|
+
client: import("@linear/sdk").LinearClient;
|
|
840
|
+
options: {
|
|
841
|
+
channelMode: "agent-sessions" | "comments";
|
|
842
|
+
webhookSecret?: string | undefined;
|
|
843
|
+
botUsername?: string | undefined;
|
|
844
|
+
};
|
|
845
|
+
req: import("frogbot").FrogBotRequest;
|
|
846
|
+
} & {
|
|
847
|
+
state: {
|
|
848
|
+
webhookId: string;
|
|
849
|
+
};
|
|
850
|
+
events: import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[];
|
|
851
|
+
}): Response | Promise<Response>;
|
|
630
852
|
} & {
|
|
631
853
|
slug: "projectUpdated";
|
|
632
854
|
}, {
|
|
@@ -638,31 +860,46 @@ export declare const createLinear: import("frogbot").PieceFactory<{
|
|
|
638
860
|
sample?: import("frogbot").PieceJSON | undefined;
|
|
639
861
|
} & {
|
|
640
862
|
type: "webhook";
|
|
641
|
-
onEnable(args:
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
863
|
+
onEnable(args: {
|
|
864
|
+
input: Record<string, never>;
|
|
865
|
+
client: import("@linear/sdk").LinearClient;
|
|
866
|
+
options: {
|
|
867
|
+
channelMode: "agent-sessions" | "comments";
|
|
868
|
+
webhookSecret?: string | undefined;
|
|
869
|
+
botUsername?: string | undefined;
|
|
870
|
+
};
|
|
871
|
+
req: import("frogbot").FrogBotRequest;
|
|
872
|
+
} & {
|
|
646
873
|
webhookUrl: string;
|
|
647
874
|
}): Promise<{
|
|
648
875
|
webhookId: string;
|
|
649
876
|
}>;
|
|
650
|
-
onDisable(args:
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
877
|
+
onDisable(args: {
|
|
878
|
+
input: Record<string, never>;
|
|
879
|
+
client: import("@linear/sdk").LinearClient;
|
|
880
|
+
options: {
|
|
881
|
+
channelMode: "agent-sessions" | "comments";
|
|
882
|
+
webhookSecret?: string | undefined;
|
|
883
|
+
botUsername?: string | undefined;
|
|
884
|
+
};
|
|
885
|
+
req: import("frogbot").FrogBotRequest;
|
|
886
|
+
} & {
|
|
655
887
|
state: {
|
|
656
888
|
webhookId: string;
|
|
657
889
|
};
|
|
658
890
|
}): Promise<void>;
|
|
659
891
|
renew?: {
|
|
660
892
|
schedule: string;
|
|
661
|
-
run(args:
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
893
|
+
run(args: {
|
|
894
|
+
input: Record<string, never>;
|
|
895
|
+
client: import("@linear/sdk").LinearClient;
|
|
896
|
+
options: {
|
|
897
|
+
channelMode: "agent-sessions" | "comments";
|
|
898
|
+
webhookSecret?: string | undefined;
|
|
899
|
+
botUsername?: string | undefined;
|
|
900
|
+
};
|
|
901
|
+
req: import("frogbot").FrogBotRequest;
|
|
902
|
+
} & {
|
|
666
903
|
state: {
|
|
667
904
|
webhookId: string;
|
|
668
905
|
};
|
|
@@ -671,15 +908,35 @@ export declare const createLinear: import("frogbot").PieceFactory<{
|
|
|
671
908
|
webhookId: string;
|
|
672
909
|
}>;
|
|
673
910
|
} | undefined;
|
|
674
|
-
run(args:
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
911
|
+
run(args: {
|
|
912
|
+
input: Record<string, never>;
|
|
913
|
+
client: import("@linear/sdk").LinearClient;
|
|
914
|
+
options: {
|
|
915
|
+
channelMode: "agent-sessions" | "comments";
|
|
916
|
+
webhookSecret?: string | undefined;
|
|
917
|
+
botUsername?: string | undefined;
|
|
918
|
+
};
|
|
919
|
+
req: import("frogbot").FrogBotRequest;
|
|
920
|
+
} & {
|
|
679
921
|
state: {
|
|
680
922
|
webhookId: string;
|
|
681
923
|
};
|
|
682
924
|
}): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
|
|
925
|
+
reply?(args: {
|
|
926
|
+
input: Record<string, never>;
|
|
927
|
+
client: import("@linear/sdk").LinearClient;
|
|
928
|
+
options: {
|
|
929
|
+
channelMode: "agent-sessions" | "comments";
|
|
930
|
+
webhookSecret?: string | undefined;
|
|
931
|
+
botUsername?: string | undefined;
|
|
932
|
+
};
|
|
933
|
+
req: import("frogbot").FrogBotRequest;
|
|
934
|
+
} & {
|
|
935
|
+
state: {
|
|
936
|
+
webhookId: string;
|
|
937
|
+
};
|
|
938
|
+
events: import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[];
|
|
939
|
+
}): Response | Promise<Response>;
|
|
683
940
|
} & {
|
|
684
941
|
slug: "projectRemoved";
|
|
685
942
|
}];
|