@credal/actions 0.1.88 → 0.1.90
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/actions/actionMapper.js +26 -0
- package/dist/actions/autogen/definitions.d.ts +5 -0
- package/dist/actions/autogen/definitions.js +132 -0
- package/dist/actions/autogen/templates.d.ts +5 -0
- package/dist/actions/autogen/templates.js +316 -3
- package/dist/actions/autogen/types.d.ts +298 -10
- package/dist/actions/autogen/types.js +85 -5
- package/dist/actions/definitions.js +35 -0
- package/dist/actions/groups.js +6 -0
- package/dist/actions/invokeMapper.d.ts +9 -0
- package/dist/actions/invokeMapper.js +33 -0
- package/dist/actions/providers/asana/getTasksDetails.d.ts +3 -0
- package/dist/actions/providers/asana/getTasksDetails.js +99 -0
- package/dist/actions/providers/asana/searchAsanaTasks.d.ts +3 -0
- package/dist/actions/providers/asana/searchAsanaTasks.js +67 -0
- package/dist/actions/providers/confluence/updatePage.d.ts +3 -0
- package/dist/actions/providers/confluence/updatePage.js +43 -0
- package/dist/actions/providers/google-oauth/searchDriveByKeywords.d.ts +3 -0
- package/dist/actions/providers/google-oauth/searchDriveByKeywords.js +46 -0
- package/dist/actions/providers/googlemaps/nearbysearch.d.ts +3 -0
- package/dist/actions/providers/googlemaps/nearbysearch.js +96 -0
- package/dist/actions/providers/jira/createTicket.d.ts +3 -0
- package/dist/actions/providers/jira/createTicket.js +34 -0
- package/dist/actions/providers/notion/searchByTitle.d.ts +3 -0
- package/dist/actions/providers/notion/searchByTitle.js +71 -0
- package/dist/actions/providers/slack/listConversations.d.ts +1 -1
- package/dist/actions/providers/slack/list_conversations.d.ts +3 -0
- package/dist/actions/providers/slack/list_conversations.js +60 -0
- package/dist/actions/providers/slack/summarizeChannel.d.ts +3 -0
- package/dist/actions/providers/slack/summarizeChannel.js +51 -0
- package/dist/actions/schema.js +6 -0
- package/dist/actions/types.js +2 -0
- package/dist/main.js +11 -0
- package/package.json +1 -1
@@ -232,20 +232,20 @@ export declare const asanaListAsanaTasksByProjectOutputSchema: z.ZodObject<{
|
|
232
232
|
gid?: string | undefined;
|
233
233
|
}>>;
|
234
234
|
}, "strip", z.ZodTypeAny, {
|
235
|
+
created_at?: string | undefined;
|
235
236
|
text?: string | undefined;
|
236
237
|
resource_type?: string | undefined;
|
237
238
|
gid?: string | undefined;
|
238
|
-
created_at?: string | undefined;
|
239
239
|
created_by?: {
|
240
240
|
name?: string | undefined;
|
241
241
|
resource_type?: string | undefined;
|
242
242
|
gid?: string | undefined;
|
243
243
|
} | undefined;
|
244
244
|
}, {
|
245
|
+
created_at?: string | undefined;
|
245
246
|
text?: string | undefined;
|
246
247
|
resource_type?: string | undefined;
|
247
248
|
gid?: string | undefined;
|
248
|
-
created_at?: string | undefined;
|
249
249
|
created_by?: {
|
250
250
|
name?: string | undefined;
|
251
251
|
resource_type?: string | undefined;
|
@@ -281,10 +281,10 @@ export declare const asanaListAsanaTasksByProjectOutputSchema: z.ZodObject<{
|
|
281
281
|
num_subtasks?: number | undefined;
|
282
282
|
}[] | null | undefined;
|
283
283
|
taskStories?: {
|
284
|
+
created_at?: string | undefined;
|
284
285
|
text?: string | undefined;
|
285
286
|
resource_type?: string | undefined;
|
286
287
|
gid?: string | undefined;
|
287
|
-
created_at?: string | undefined;
|
288
288
|
created_by?: {
|
289
289
|
name?: string | undefined;
|
290
290
|
resource_type?: string | undefined;
|
@@ -320,10 +320,10 @@ export declare const asanaListAsanaTasksByProjectOutputSchema: z.ZodObject<{
|
|
320
320
|
num_subtasks?: number | undefined;
|
321
321
|
}[] | null | undefined;
|
322
322
|
taskStories?: {
|
323
|
+
created_at?: string | undefined;
|
323
324
|
text?: string | undefined;
|
324
325
|
resource_type?: string | undefined;
|
325
326
|
gid?: string | undefined;
|
326
|
-
created_at?: string | undefined;
|
327
327
|
created_by?: {
|
328
328
|
name?: string | undefined;
|
329
329
|
resource_type?: string | undefined;
|
@@ -363,10 +363,10 @@ export declare const asanaListAsanaTasksByProjectOutputSchema: z.ZodObject<{
|
|
363
363
|
num_subtasks?: number | undefined;
|
364
364
|
}[] | null | undefined;
|
365
365
|
taskStories?: {
|
366
|
+
created_at?: string | undefined;
|
366
367
|
text?: string | undefined;
|
367
368
|
resource_type?: string | undefined;
|
368
369
|
gid?: string | undefined;
|
369
|
-
created_at?: string | undefined;
|
370
370
|
created_by?: {
|
371
371
|
name?: string | undefined;
|
372
372
|
resource_type?: string | undefined;
|
@@ -406,10 +406,10 @@ export declare const asanaListAsanaTasksByProjectOutputSchema: z.ZodObject<{
|
|
406
406
|
num_subtasks?: number | undefined;
|
407
407
|
}[] | null | undefined;
|
408
408
|
taskStories?: {
|
409
|
+
created_at?: string | undefined;
|
409
410
|
text?: string | undefined;
|
410
411
|
resource_type?: string | undefined;
|
411
412
|
gid?: string | undefined;
|
412
|
-
created_at?: string | undefined;
|
413
413
|
created_by?: {
|
414
414
|
name?: string | undefined;
|
415
415
|
resource_type?: string | undefined;
|
@@ -508,6 +508,155 @@ export declare const asanaUpdateTaskOutputSchema: z.ZodObject<{
|
|
508
508
|
}>;
|
509
509
|
export type asanaUpdateTaskOutputType = z.infer<typeof asanaUpdateTaskOutputSchema>;
|
510
510
|
export type asanaUpdateTaskFunction = ActionFunction<asanaUpdateTaskParamsType, AuthParamsType, asanaUpdateTaskOutputType>;
|
511
|
+
export declare const asanaSearchTasksParamsSchema: z.ZodObject<{
|
512
|
+
query: z.ZodString;
|
513
|
+
}, "strip", z.ZodTypeAny, {
|
514
|
+
query: string;
|
515
|
+
}, {
|
516
|
+
query: string;
|
517
|
+
}>;
|
518
|
+
export type asanaSearchTasksParamsType = z.infer<typeof asanaSearchTasksParamsSchema>;
|
519
|
+
export declare const asanaSearchTasksOutputSchema: z.ZodObject<{
|
520
|
+
error: z.ZodOptional<z.ZodString>;
|
521
|
+
success: z.ZodBoolean;
|
522
|
+
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
523
|
+
id: z.ZodString;
|
524
|
+
name: z.ZodString;
|
525
|
+
resourceType: z.ZodOptional<z.ZodString>;
|
526
|
+
workspaceId: z.ZodString;
|
527
|
+
}, "strip", z.ZodTypeAny, {
|
528
|
+
name: string;
|
529
|
+
id: string;
|
530
|
+
workspaceId: string;
|
531
|
+
resourceType?: string | undefined;
|
532
|
+
}, {
|
533
|
+
name: string;
|
534
|
+
id: string;
|
535
|
+
workspaceId: string;
|
536
|
+
resourceType?: string | undefined;
|
537
|
+
}>, "many">>;
|
538
|
+
}, "strip", z.ZodTypeAny, {
|
539
|
+
success: boolean;
|
540
|
+
error?: string | undefined;
|
541
|
+
results?: {
|
542
|
+
name: string;
|
543
|
+
id: string;
|
544
|
+
workspaceId: string;
|
545
|
+
resourceType?: string | undefined;
|
546
|
+
}[] | undefined;
|
547
|
+
}, {
|
548
|
+
success: boolean;
|
549
|
+
error?: string | undefined;
|
550
|
+
results?: {
|
551
|
+
name: string;
|
552
|
+
id: string;
|
553
|
+
workspaceId: string;
|
554
|
+
resourceType?: string | undefined;
|
555
|
+
}[] | undefined;
|
556
|
+
}>;
|
557
|
+
export type asanaSearchTasksOutputType = z.infer<typeof asanaSearchTasksOutputSchema>;
|
558
|
+
export type asanaSearchTasksFunction = ActionFunction<asanaSearchTasksParamsType, AuthParamsType, asanaSearchTasksOutputType>;
|
559
|
+
export declare const asanaGetTasksDetailsParamsSchema: z.ZodObject<{
|
560
|
+
taskIds: z.ZodArray<z.ZodString, "many">;
|
561
|
+
}, "strip", z.ZodTypeAny, {
|
562
|
+
taskIds: string[];
|
563
|
+
}, {
|
564
|
+
taskIds: string[];
|
565
|
+
}>;
|
566
|
+
export type asanaGetTasksDetailsParamsType = z.infer<typeof asanaGetTasksDetailsParamsSchema>;
|
567
|
+
export declare const asanaGetTasksDetailsOutputSchema: z.ZodObject<{
|
568
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
569
|
+
success: z.ZodBoolean;
|
570
|
+
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
571
|
+
id: z.ZodString;
|
572
|
+
name: z.ZodString;
|
573
|
+
approval_status: z.ZodString;
|
574
|
+
completed: z.ZodBoolean;
|
575
|
+
created_at: z.ZodString;
|
576
|
+
due_at: z.ZodOptional<z.ZodString>;
|
577
|
+
assignee_name: z.ZodString;
|
578
|
+
notes: z.ZodString;
|
579
|
+
comments: z.ZodArray<z.ZodObject<{
|
580
|
+
text: z.ZodString;
|
581
|
+
created_at: z.ZodString;
|
582
|
+
creator_name: z.ZodString;
|
583
|
+
}, "strip", z.ZodTypeAny, {
|
584
|
+
created_at: string;
|
585
|
+
text: string;
|
586
|
+
creator_name: string;
|
587
|
+
}, {
|
588
|
+
created_at: string;
|
589
|
+
text: string;
|
590
|
+
creator_name: string;
|
591
|
+
}>, "many">;
|
592
|
+
}, "strip", z.ZodTypeAny, {
|
593
|
+
name: string;
|
594
|
+
completed: boolean;
|
595
|
+
id: string;
|
596
|
+
approval_status: string;
|
597
|
+
created_at: string;
|
598
|
+
assignee_name: string;
|
599
|
+
notes: string;
|
600
|
+
comments: {
|
601
|
+
created_at: string;
|
602
|
+
text: string;
|
603
|
+
creator_name: string;
|
604
|
+
}[];
|
605
|
+
due_at?: string | undefined;
|
606
|
+
}, {
|
607
|
+
name: string;
|
608
|
+
completed: boolean;
|
609
|
+
id: string;
|
610
|
+
approval_status: string;
|
611
|
+
created_at: string;
|
612
|
+
assignee_name: string;
|
613
|
+
notes: string;
|
614
|
+
comments: {
|
615
|
+
created_at: string;
|
616
|
+
text: string;
|
617
|
+
creator_name: string;
|
618
|
+
}[];
|
619
|
+
due_at?: string | undefined;
|
620
|
+
}>, "many">>;
|
621
|
+
}, "strip", z.ZodTypeAny, {
|
622
|
+
success: boolean;
|
623
|
+
results?: {
|
624
|
+
name: string;
|
625
|
+
completed: boolean;
|
626
|
+
id: string;
|
627
|
+
approval_status: string;
|
628
|
+
created_at: string;
|
629
|
+
assignee_name: string;
|
630
|
+
notes: string;
|
631
|
+
comments: {
|
632
|
+
created_at: string;
|
633
|
+
text: string;
|
634
|
+
creator_name: string;
|
635
|
+
}[];
|
636
|
+
due_at?: string | undefined;
|
637
|
+
}[] | undefined;
|
638
|
+
errors?: string[] | undefined;
|
639
|
+
}, {
|
640
|
+
success: boolean;
|
641
|
+
results?: {
|
642
|
+
name: string;
|
643
|
+
completed: boolean;
|
644
|
+
id: string;
|
645
|
+
approval_status: string;
|
646
|
+
created_at: string;
|
647
|
+
assignee_name: string;
|
648
|
+
notes: string;
|
649
|
+
comments: {
|
650
|
+
created_at: string;
|
651
|
+
text: string;
|
652
|
+
creator_name: string;
|
653
|
+
}[];
|
654
|
+
due_at?: string | undefined;
|
655
|
+
}[] | undefined;
|
656
|
+
errors?: string[] | undefined;
|
657
|
+
}>;
|
658
|
+
export type asanaGetTasksDetailsOutputType = z.infer<typeof asanaGetTasksDetailsOutputSchema>;
|
659
|
+
export type asanaGetTasksDetailsFunction = ActionFunction<asanaGetTasksDetailsParamsType, AuthParamsType, asanaGetTasksDetailsOutputType>;
|
511
660
|
export declare const slackSendMessageParamsSchema: z.ZodObject<{
|
512
661
|
channelName: z.ZodString;
|
513
662
|
message: z.ZodString;
|
@@ -548,24 +697,24 @@ export declare const slackGetChannelMessagesOutputSchema: z.ZodObject<{
|
|
548
697
|
text: z.ZodString;
|
549
698
|
ts: z.ZodString;
|
550
699
|
}, "strip", z.ZodTypeAny, {
|
551
|
-
user: string;
|
552
700
|
text: string;
|
701
|
+
user: string;
|
553
702
|
ts: string;
|
554
703
|
}, {
|
555
|
-
user: string;
|
556
704
|
text: string;
|
705
|
+
user: string;
|
557
706
|
ts: string;
|
558
707
|
}>, "many">;
|
559
708
|
}, "strip", z.ZodTypeAny, {
|
560
709
|
messages: {
|
561
|
-
user: string;
|
562
710
|
text: string;
|
711
|
+
user: string;
|
563
712
|
ts: string;
|
564
713
|
}[];
|
565
714
|
}, {
|
566
715
|
messages: {
|
567
|
-
user: string;
|
568
716
|
text: string;
|
717
|
+
user: string;
|
569
718
|
ts: string;
|
570
719
|
}[];
|
571
720
|
}>;
|
@@ -1856,6 +2005,54 @@ export declare const resendSendEmailOutputSchema: z.ZodObject<{
|
|
1856
2005
|
}>;
|
1857
2006
|
export type resendSendEmailOutputType = z.infer<typeof resendSendEmailOutputSchema>;
|
1858
2007
|
export type resendSendEmailFunction = ActionFunction<resendSendEmailParamsType, AuthParamsType, resendSendEmailOutputType>;
|
2008
|
+
export declare const googleOauthSearchFilesByKeywordsParamsSchema: z.ZodObject<{
|
2009
|
+
keywords: z.ZodArray<z.ZodString, "many">;
|
2010
|
+
}, "strip", z.ZodTypeAny, {
|
2011
|
+
keywords: string[];
|
2012
|
+
}, {
|
2013
|
+
keywords: string[];
|
2014
|
+
}>;
|
2015
|
+
export type googleOauthSearchFilesByKeywordsParamsType = z.infer<typeof googleOauthSearchFilesByKeywordsParamsSchema>;
|
2016
|
+
export declare const googleOauthSearchFilesByKeywordsOutputSchema: z.ZodObject<{
|
2017
|
+
success: z.ZodBoolean;
|
2018
|
+
files: z.ZodArray<z.ZodObject<{
|
2019
|
+
id: z.ZodString;
|
2020
|
+
name: z.ZodString;
|
2021
|
+
mimeType: z.ZodString;
|
2022
|
+
webViewLink: z.ZodString;
|
2023
|
+
}, "strip", z.ZodTypeAny, {
|
2024
|
+
name: string;
|
2025
|
+
id: string;
|
2026
|
+
mimeType: string;
|
2027
|
+
webViewLink: string;
|
2028
|
+
}, {
|
2029
|
+
name: string;
|
2030
|
+
id: string;
|
2031
|
+
mimeType: string;
|
2032
|
+
webViewLink: string;
|
2033
|
+
}>, "many">;
|
2034
|
+
error: z.ZodOptional<z.ZodString>;
|
2035
|
+
}, "strip", z.ZodTypeAny, {
|
2036
|
+
success: boolean;
|
2037
|
+
files: {
|
2038
|
+
name: string;
|
2039
|
+
id: string;
|
2040
|
+
mimeType: string;
|
2041
|
+
webViewLink: string;
|
2042
|
+
}[];
|
2043
|
+
error?: string | undefined;
|
2044
|
+
}, {
|
2045
|
+
success: boolean;
|
2046
|
+
files: {
|
2047
|
+
name: string;
|
2048
|
+
id: string;
|
2049
|
+
mimeType: string;
|
2050
|
+
webViewLink: string;
|
2051
|
+
}[];
|
2052
|
+
error?: string | undefined;
|
2053
|
+
}>;
|
2054
|
+
export type googleOauthSearchFilesByKeywordsOutputType = z.infer<typeof googleOauthSearchFilesByKeywordsOutputSchema>;
|
2055
|
+
export type googleOauthSearchFilesByKeywordsFunction = ActionFunction<googleOauthSearchFilesByKeywordsParamsType, AuthParamsType, googleOauthSearchFilesByKeywordsOutputType>;
|
1859
2056
|
export declare const googleOauthCreateNewGoogleDocParamsSchema: z.ZodObject<{
|
1860
2057
|
title: z.ZodString;
|
1861
2058
|
content: z.ZodOptional<z.ZodString>;
|
@@ -2282,6 +2479,54 @@ export declare const googleOauthUpdatePresentationOutputSchema: z.ZodObject<{
|
|
2282
2479
|
}>;
|
2283
2480
|
export type googleOauthUpdatePresentationOutputType = z.infer<typeof googleOauthUpdatePresentationOutputSchema>;
|
2284
2481
|
export type googleOauthUpdatePresentationFunction = ActionFunction<googleOauthUpdatePresentationParamsType, AuthParamsType, googleOauthUpdatePresentationOutputType>;
|
2482
|
+
export declare const googleOauthSearchDriveByKeywordsParamsSchema: z.ZodObject<{
|
2483
|
+
keywords: z.ZodArray<z.ZodString, "many">;
|
2484
|
+
}, "strip", z.ZodTypeAny, {
|
2485
|
+
keywords: string[];
|
2486
|
+
}, {
|
2487
|
+
keywords: string[];
|
2488
|
+
}>;
|
2489
|
+
export type googleOauthSearchDriveByKeywordsParamsType = z.infer<typeof googleOauthSearchDriveByKeywordsParamsSchema>;
|
2490
|
+
export declare const googleOauthSearchDriveByKeywordsOutputSchema: z.ZodObject<{
|
2491
|
+
success: z.ZodBoolean;
|
2492
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
2493
|
+
id: z.ZodString;
|
2494
|
+
name: z.ZodString;
|
2495
|
+
mimeType: z.ZodString;
|
2496
|
+
url: z.ZodString;
|
2497
|
+
}, "strip", z.ZodTypeAny, {
|
2498
|
+
name: string;
|
2499
|
+
id: string;
|
2500
|
+
url: string;
|
2501
|
+
mimeType: string;
|
2502
|
+
}, {
|
2503
|
+
name: string;
|
2504
|
+
id: string;
|
2505
|
+
url: string;
|
2506
|
+
mimeType: string;
|
2507
|
+
}>, "many">>;
|
2508
|
+
error: z.ZodOptional<z.ZodString>;
|
2509
|
+
}, "strip", z.ZodTypeAny, {
|
2510
|
+
success: boolean;
|
2511
|
+
error?: string | undefined;
|
2512
|
+
files?: {
|
2513
|
+
name: string;
|
2514
|
+
id: string;
|
2515
|
+
url: string;
|
2516
|
+
mimeType: string;
|
2517
|
+
}[] | undefined;
|
2518
|
+
}, {
|
2519
|
+
success: boolean;
|
2520
|
+
error?: string | undefined;
|
2521
|
+
files?: {
|
2522
|
+
name: string;
|
2523
|
+
id: string;
|
2524
|
+
url: string;
|
2525
|
+
mimeType: string;
|
2526
|
+
}[] | undefined;
|
2527
|
+
}>;
|
2528
|
+
export type googleOauthSearchDriveByKeywordsOutputType = z.infer<typeof googleOauthSearchDriveByKeywordsOutputSchema>;
|
2529
|
+
export type googleOauthSearchDriveByKeywordsFunction = ActionFunction<googleOauthSearchDriveByKeywordsParamsType, AuthParamsType, googleOauthSearchDriveByKeywordsOutputType>;
|
2285
2530
|
export declare const gongGetGongTranscriptsParamsSchema: z.ZodObject<{
|
2286
2531
|
userRole: z.ZodString;
|
2287
2532
|
trackers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
@@ -3426,3 +3671,46 @@ export declare const githubListPullRequestsOutputSchema: z.ZodObject<{
|
|
3426
3671
|
}>;
|
3427
3672
|
export type githubListPullRequestsOutputType = z.infer<typeof githubListPullRequestsOutputSchema>;
|
3428
3673
|
export type githubListPullRequestsFunction = ActionFunction<githubListPullRequestsParamsType, AuthParamsType, githubListPullRequestsOutputType>;
|
3674
|
+
export declare const notionSearchByTitleParamsSchema: z.ZodObject<{
|
3675
|
+
query: z.ZodString;
|
3676
|
+
}, "strip", z.ZodTypeAny, {
|
3677
|
+
query: string;
|
3678
|
+
}, {
|
3679
|
+
query: string;
|
3680
|
+
}>;
|
3681
|
+
export type notionSearchByTitleParamsType = z.infer<typeof notionSearchByTitleParamsSchema>;
|
3682
|
+
export declare const notionSearchByTitleOutputSchema: z.ZodObject<{
|
3683
|
+
success: z.ZodBoolean;
|
3684
|
+
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
3685
|
+
id: z.ZodString;
|
3686
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
3687
|
+
url: z.ZodString;
|
3688
|
+
}, "strip", z.ZodTypeAny, {
|
3689
|
+
id: string;
|
3690
|
+
url: string;
|
3691
|
+
title?: string | null | undefined;
|
3692
|
+
}, {
|
3693
|
+
id: string;
|
3694
|
+
url: string;
|
3695
|
+
title?: string | null | undefined;
|
3696
|
+
}>, "many">>;
|
3697
|
+
error: z.ZodOptional<z.ZodString>;
|
3698
|
+
}, "strip", z.ZodTypeAny, {
|
3699
|
+
success: boolean;
|
3700
|
+
error?: string | undefined;
|
3701
|
+
results?: {
|
3702
|
+
id: string;
|
3703
|
+
url: string;
|
3704
|
+
title?: string | null | undefined;
|
3705
|
+
}[] | undefined;
|
3706
|
+
}, {
|
3707
|
+
success: boolean;
|
3708
|
+
error?: string | undefined;
|
3709
|
+
results?: {
|
3710
|
+
id: string;
|
3711
|
+
url: string;
|
3712
|
+
title?: string | null | undefined;
|
3713
|
+
}[] | undefined;
|
3714
|
+
}>;
|
3715
|
+
export type notionSearchByTitleOutputType = z.infer<typeof notionSearchByTitleOutputSchema>;
|
3716
|
+
export type notionSearchByTitleFunction = ActionFunction<notionSearchByTitleParamsType, AuthParamsType, notionSearchByTitleOutputType>;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
exports.
|
5
|
-
exports.
|
6
|
-
exports.githubListPullRequestsOutputSchema = exports.githubListPullRequestsParamsSchema = exports.githubCreatePullRequestOutputSchema = void 0;
|
3
|
+
exports.credalCallCopilotParamsSchema = exports.bingGetTopNSearchResultUrlsOutputSchema = exports.bingGetTopNSearchResultUrlsParamsSchema = exports.googlemapsNearbysearchRestaurantsOutputSchema = exports.googlemapsNearbysearchRestaurantsParamsSchema = exports.googlemapsValidateAddressOutputSchema = exports.googlemapsValidateAddressParamsSchema = exports.kandjiGetFVRecoveryKeyForDeviceOutputSchema = exports.kandjiGetFVRecoveryKeyForDeviceParamsSchema = exports.jiraGetJiraIssuesByQueryOutputSchema = exports.jiraGetJiraIssuesByQueryParamsSchema = exports.jiraUpdateJiraTicketStatusOutputSchema = exports.jiraUpdateJiraTicketStatusParamsSchema = exports.jiraUpdateJiraTicketDetailsOutputSchema = exports.jiraUpdateJiraTicketDetailsParamsSchema = exports.jiraGetJiraTicketHistoryOutputSchema = exports.jiraGetJiraTicketHistoryParamsSchema = exports.jiraGetJiraTicketDetailsOutputSchema = exports.jiraGetJiraTicketDetailsParamsSchema = exports.jiraCreateJiraTicketOutputSchema = exports.jiraCreateJiraTicketParamsSchema = exports.jiraCommentJiraTicketOutputSchema = exports.jiraCommentJiraTicketParamsSchema = exports.jiraAssignJiraTicketOutputSchema = exports.jiraAssignJiraTicketParamsSchema = exports.confluenceFetchPageContentOutputSchema = exports.confluenceFetchPageContentParamsSchema = exports.confluenceOverwritePageOutputSchema = exports.confluenceOverwritePageParamsSchema = exports.mathAddOutputSchema = exports.mathAddParamsSchema = exports.slackGetChannelMessagesOutputSchema = exports.slackGetChannelMessagesParamsSchema = exports.slackSendMessageOutputSchema = exports.slackSendMessageParamsSchema = exports.asanaGetTasksDetailsOutputSchema = exports.asanaGetTasksDetailsParamsSchema = exports.asanaSearchTasksOutputSchema = exports.asanaSearchTasksParamsSchema = exports.asanaUpdateTaskOutputSchema = exports.asanaUpdateTaskParamsSchema = exports.asanaCreateTaskOutputSchema = exports.asanaCreateTaskParamsSchema = exports.asanaListAsanaTasksByProjectOutputSchema = exports.asanaListAsanaTasksByProjectParamsSchema = exports.asanaCommentTaskOutputSchema = exports.asanaCommentTaskParamsSchema = exports.genericFillTemplateOutputSchema = exports.genericFillTemplateParamsSchema = exports.AuthParamsSchema = void 0;
|
4
|
+
exports.googleOauthUpdatePresentationParamsSchema = exports.googleOauthCreatePresentationOutputSchema = exports.googleOauthCreatePresentationParamsSchema = exports.googleOauthUpdateSpreadsheetOutputSchema = exports.googleOauthUpdateSpreadsheetParamsSchema = exports.googleOauthCreateSpreadsheetOutputSchema = exports.googleOauthCreateSpreadsheetParamsSchema = exports.googleOauthScheduleCalendarMeetingOutputSchema = exports.googleOauthScheduleCalendarMeetingParamsSchema = exports.googleOauthUpdateDocOutputSchema = exports.googleOauthUpdateDocParamsSchema = exports.googleOauthCreateNewGoogleDocOutputSchema = exports.googleOauthCreateNewGoogleDocParamsSchema = exports.googleOauthSearchFilesByKeywordsOutputSchema = exports.googleOauthSearchFilesByKeywordsParamsSchema = exports.resendSendEmailOutputSchema = exports.resendSendEmailParamsSchema = exports.firecrawlScrapeTweetDataWithNitterOutputSchema = exports.firecrawlScrapeTweetDataWithNitterParamsSchema = exports.firecrawlScrapeUrlOutputSchema = exports.firecrawlScrapeUrlParamsSchema = exports.firecrawlDeepResearchOutputSchema = exports.firecrawlDeepResearchParamsSchema = exports.nwsGetForecastForLocationOutputSchema = exports.nwsGetForecastForLocationParamsSchema = exports.openstreetmapGetLatitudeLongitudeFromLocationOutputSchema = exports.openstreetmapGetLatitudeLongitudeFromLocationParamsSchema = exports.snowflakeRunSnowflakeQueryOutputSchema = exports.snowflakeRunSnowflakeQueryParamsSchema = exports.snowflakeGetRowByFieldValueOutputSchema = exports.snowflakeGetRowByFieldValueParamsSchema = exports.mongoInsertMongoDocOutputSchema = exports.mongoInsertMongoDocParamsSchema = exports.xCreateShareXPostUrlOutputSchema = exports.xCreateShareXPostUrlParamsSchema = exports.linkedinCreateShareLinkedinPostUrlOutputSchema = exports.linkedinCreateShareLinkedinPostUrlParamsSchema = exports.zendeskAssignTicketOutputSchema = exports.zendeskAssignTicketParamsSchema = exports.zendeskAddCommentToTicketOutputSchema = exports.zendeskAddCommentToTicketParamsSchema = exports.zendeskUpdateTicketStatusOutputSchema = exports.zendeskUpdateTicketStatusParamsSchema = exports.zendeskGetTicketDetailsOutputSchema = exports.zendeskGetTicketDetailsParamsSchema = exports.zendeskListZendeskTicketsOutputSchema = exports.zendeskListZendeskTicketsParamsSchema = exports.zendeskCreateZendeskTicketOutputSchema = exports.zendeskCreateZendeskTicketParamsSchema = exports.credalCallCopilotOutputSchema = void 0;
|
5
|
+
exports.microsoftMessageTeamsChannelParamsSchema = exports.microsoftMessageTeamsChatOutputSchema = exports.microsoftMessageTeamsChatParamsSchema = exports.microsoftUpdateSpreadsheetOutputSchema = exports.microsoftUpdateSpreadsheetParamsSchema = exports.microsoftUpdateDocumentOutputSchema = exports.microsoftUpdateDocumentParamsSchema = exports.microsoftCreateDocumentOutputSchema = exports.microsoftCreateDocumentParamsSchema = exports.salesforceFetchSalesforceSchemaByObjectOutputSchema = exports.salesforceFetchSalesforceSchemaByObjectParamsSchema = exports.salesforceGetRecordOutputSchema = exports.salesforceGetRecordParamsSchema = exports.salesforceGetSalesforceRecordsByQueryOutputSchema = exports.salesforceGetSalesforceRecordsByQueryParamsSchema = exports.salesforceGenerateSalesReportOutputSchema = exports.salesforceGenerateSalesReportParamsSchema = exports.salesforceCreateCaseOutputSchema = exports.salesforceCreateCaseParamsSchema = exports.salesforceCreateRecordOutputSchema = exports.salesforceCreateRecordParamsSchema = exports.salesforceUpdateRecordOutputSchema = exports.salesforceUpdateRecordParamsSchema = exports.ashbyUpdateCandidateOutputSchema = exports.ashbyUpdateCandidateParamsSchema = exports.ashbyCreateCandidateOutputSchema = exports.ashbyCreateCandidateParamsSchema = exports.ashbyListCandidateNotesOutputSchema = exports.ashbyListCandidateNotesParamsSchema = exports.ashbySearchCandidatesOutputSchema = exports.ashbySearchCandidatesParamsSchema = exports.ashbyListCandidatesOutputSchema = exports.ashbyListCandidatesParamsSchema = exports.ashbyAddCandidateToProjectOutputSchema = exports.ashbyAddCandidateToProjectParamsSchema = exports.ashbyGetCandidateInfoOutputSchema = exports.ashbyGetCandidateInfoParamsSchema = exports.ashbyCreateNoteOutputSchema = exports.ashbyCreateNoteParamsSchema = exports.lookerEnableUserByEmailOutputSchema = exports.lookerEnableUserByEmailParamsSchema = exports.finnhubGetBasicFinancialsOutputSchema = exports.finnhubGetBasicFinancialsParamsSchema = exports.finnhubSymbolLookupOutputSchema = exports.finnhubSymbolLookupParamsSchema = exports.gongGetGongTranscriptsOutputSchema = exports.gongGetGongTranscriptsParamsSchema = exports.googleOauthSearchDriveByKeywordsOutputSchema = exports.googleOauthSearchDriveByKeywordsParamsSchema = exports.googleOauthUpdatePresentationOutputSchema = void 0;
|
6
|
+
exports.notionSearchByTitleOutputSchema = exports.notionSearchByTitleParamsSchema = exports.githubListPullRequestsOutputSchema = exports.githubListPullRequestsParamsSchema = exports.githubCreatePullRequestOutputSchema = exports.githubCreatePullRequestParamsSchema = exports.githubCreateBranchOutputSchema = exports.githubCreateBranchParamsSchema = exports.githubCreateOrUpdateFileOutputSchema = exports.githubCreateOrUpdateFileParamsSchema = exports.microsoftGetDocumentOutputSchema = exports.microsoftGetDocumentParamsSchema = exports.microsoftMessageTeamsChannelOutputSchema = void 0;
|
7
7
|
const zod_1 = require("zod");
|
8
8
|
exports.AuthParamsSchema = zod_1.z.object({
|
9
9
|
authToken: zod_1.z.string().optional(),
|
@@ -141,6 +141,40 @@ exports.asanaUpdateTaskOutputSchema = zod_1.z.object({
|
|
141
141
|
success: zod_1.z.boolean().describe("Whether task update was successful"),
|
142
142
|
taskUrl: zod_1.z.string().describe("The url to the updated Asana task").optional(),
|
143
143
|
});
|
144
|
+
exports.asanaSearchTasksParamsSchema = zod_1.z.object({ query: zod_1.z.string().describe("Search query") });
|
145
|
+
exports.asanaSearchTasksOutputSchema = zod_1.z.object({
|
146
|
+
error: zod_1.z.string().describe("Error if search was unsuccessful").optional(),
|
147
|
+
success: zod_1.z.boolean().describe("Whether search was successful"),
|
148
|
+
results: zod_1.z
|
149
|
+
.array(zod_1.z
|
150
|
+
.object({ id: zod_1.z.string(), name: zod_1.z.string(), resourceType: zod_1.z.string().optional(), workspaceId: zod_1.z.string() })
|
151
|
+
.describe("List of tasks that match search query"))
|
152
|
+
.describe("The list of tasks that match search query")
|
153
|
+
.optional(),
|
154
|
+
});
|
155
|
+
exports.asanaGetTasksDetailsParamsSchema = zod_1.z.object({
|
156
|
+
taskIds: zod_1.z.array(zod_1.z.string()).describe("The list of task ids to get details for"),
|
157
|
+
});
|
158
|
+
exports.asanaGetTasksDetailsOutputSchema = zod_1.z.object({
|
159
|
+
errors: zod_1.z.array(zod_1.z.string()).describe("Errors if search was unsuccessful").optional(),
|
160
|
+
success: zod_1.z.boolean().describe("Whether search was successful"),
|
161
|
+
results: zod_1.z
|
162
|
+
.array(zod_1.z
|
163
|
+
.object({
|
164
|
+
id: zod_1.z.string(),
|
165
|
+
name: zod_1.z.string(),
|
166
|
+
approval_status: zod_1.z.string(),
|
167
|
+
completed: zod_1.z.boolean(),
|
168
|
+
created_at: zod_1.z.string(),
|
169
|
+
due_at: zod_1.z.string().optional(),
|
170
|
+
assignee_name: zod_1.z.string(),
|
171
|
+
notes: zod_1.z.string(),
|
172
|
+
comments: zod_1.z.array(zod_1.z.object({ text: zod_1.z.string(), created_at: zod_1.z.string(), creator_name: zod_1.z.string() })),
|
173
|
+
})
|
174
|
+
.describe("List of tasks that match search query"))
|
175
|
+
.describe("The list of tasks that match search query")
|
176
|
+
.optional(),
|
177
|
+
});
|
144
178
|
exports.slackSendMessageParamsSchema = zod_1.z.object({
|
145
179
|
channelName: zod_1.z.string().describe("The name of the Slack channel to send the message to (e.g. general, alerts)"),
|
146
180
|
message: zod_1.z.string().describe("The message content to send to Slack. Can include markdown formatting."),
|
@@ -601,6 +635,21 @@ exports.resendSendEmailOutputSchema = zod_1.z.object({
|
|
601
635
|
success: zod_1.z.boolean().describe("Whether the email was sent successfully"),
|
602
636
|
error: zod_1.z.string().describe("The error that occurred if the email was not sent successfully").optional(),
|
603
637
|
});
|
638
|
+
exports.googleOauthSearchFilesByKeywordsParamsSchema = zod_1.z.object({
|
639
|
+
keywords: zod_1.z.array(zod_1.z.string()).describe("List of keywords to search for in file contents."),
|
640
|
+
});
|
641
|
+
exports.googleOauthSearchFilesByKeywordsOutputSchema = zod_1.z.object({
|
642
|
+
success: zod_1.z.boolean().describe("Whether the search was successful"),
|
643
|
+
files: zod_1.z
|
644
|
+
.array(zod_1.z.object({
|
645
|
+
id: zod_1.z.string().describe("The file ID"),
|
646
|
+
name: zod_1.z.string().describe("The file name"),
|
647
|
+
mimeType: zod_1.z.string().describe("The MIME type of the file"),
|
648
|
+
webViewLink: zod_1.z.string().describe("The web link to view the file"),
|
649
|
+
}))
|
650
|
+
.describe("List of files matching the search"),
|
651
|
+
error: zod_1.z.string().describe("Error message if search failed").optional(),
|
652
|
+
});
|
604
653
|
exports.googleOauthCreateNewGoogleDocParamsSchema = zod_1.z.object({
|
605
654
|
title: zod_1.z.string().describe("The title of the new Google Doc"),
|
606
655
|
content: zod_1.z.string().describe("The content to add to the new Google Doc").optional(),
|
@@ -1754,7 +1803,7 @@ exports.googleOauthUpdatePresentationParamsSchema = zod_1.z.object({
|
|
1754
1803
|
text: zod_1.z.string().describe("The text the shape must contain to be replaced"),
|
1755
1804
|
matchCase: zod_1.z.boolean().describe("Whether the text match is case-sensitive").optional(),
|
1756
1805
|
})
|
1757
|
-
.describe("
|
1806
|
+
.describe("The text to search for in shapes to be replaced"),
|
1758
1807
|
replaceMethod: zod_1.z
|
1759
1808
|
.enum(["CENTER_INSIDE", "CENTER_CROP"])
|
1760
1809
|
.describe("The image replace method (Defaults to CENTER_INSIDE)")
|
@@ -2053,6 +2102,22 @@ exports.googleOauthUpdatePresentationOutputSchema = zod_1.z.object({
|
|
2053
2102
|
error: zod_1.z.string().describe("The error that occurred if the presentation was not created successfully").optional(),
|
2054
2103
|
presentationUrl: zod_1.z.string().describe("The URL of the created presentation").optional(),
|
2055
2104
|
});
|
2105
|
+
exports.googleOauthSearchDriveByKeywordsParamsSchema = zod_1.z.object({
|
2106
|
+
keywords: zod_1.z.array(zod_1.z.string()).describe("List of keywords to search for in file contents."),
|
2107
|
+
});
|
2108
|
+
exports.googleOauthSearchDriveByKeywordsOutputSchema = zod_1.z.object({
|
2109
|
+
success: zod_1.z.boolean().describe("Whether the search was successful"),
|
2110
|
+
files: zod_1.z
|
2111
|
+
.array(zod_1.z.object({
|
2112
|
+
id: zod_1.z.string().describe("The file ID"),
|
2113
|
+
name: zod_1.z.string().describe("The file name"),
|
2114
|
+
mimeType: zod_1.z.string().describe("The MIME type of the file"),
|
2115
|
+
url: zod_1.z.string().describe("The web link to view the file"),
|
2116
|
+
}))
|
2117
|
+
.describe("List of files matching the search")
|
2118
|
+
.optional(),
|
2119
|
+
error: zod_1.z.string().describe("Error message if search failed").optional(),
|
2120
|
+
});
|
2056
2121
|
exports.gongGetGongTranscriptsParamsSchema = zod_1.z.object({
|
2057
2122
|
userRole: zod_1.z.string().describe("The role of users whose transcripts are being fetched"),
|
2058
2123
|
trackers: zod_1.z
|
@@ -2457,3 +2522,18 @@ exports.githubListPullRequestsOutputSchema = zod_1.z.object({
|
|
2457
2522
|
}))
|
2458
2523
|
.describe("A list of pull requests in the repository"),
|
2459
2524
|
});
|
2525
|
+
exports.notionSearchByTitleParamsSchema = zod_1.z.object({
|
2526
|
+
query: zod_1.z.string().describe("The query to search for in Notion titles"),
|
2527
|
+
});
|
2528
|
+
exports.notionSearchByTitleOutputSchema = zod_1.z.object({
|
2529
|
+
success: zod_1.z.boolean().describe("Whether the search was successful"),
|
2530
|
+
results: zod_1.z
|
2531
|
+
.array(zod_1.z.object({
|
2532
|
+
id: zod_1.z.string().describe("The Notion page ID"),
|
2533
|
+
title: zod_1.z.string().nullable().describe("The page title").optional(),
|
2534
|
+
url: zod_1.z.string().describe("The URL to the Notion page"),
|
2535
|
+
}))
|
2536
|
+
.describe("List of matching Notion pages")
|
2537
|
+
.optional(),
|
2538
|
+
error: zod_1.z.string().describe("Error message if search failed").optional(),
|
2539
|
+
});
|
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.mathAddDefinition = exports.slackSendMessageDefinition = void 0;
|
4
|
+
exports.slackSendMessageDefinition = {
|
5
|
+
name: "send_message",
|
6
|
+
description: "Sends a message to a Slack channel",
|
7
|
+
parameters: {
|
8
|
+
"channel": {
|
9
|
+
"type": "string",
|
10
|
+
"description": "The Slack channel to send the message to (e.g., \\#general, \\#alerts)",
|
11
|
+
"required": true
|
12
|
+
},
|
13
|
+
"message": {
|
14
|
+
"type": "string",
|
15
|
+
"description": "The message content to send to Slack. Can include markdown formatting.",
|
16
|
+
"required": true
|
17
|
+
}
|
18
|
+
}
|
19
|
+
};
|
20
|
+
exports.mathAddDefinition = {
|
21
|
+
name: "add",
|
22
|
+
description: "Adds two numbers together",
|
23
|
+
parameters: {
|
24
|
+
"a": {
|
25
|
+
"type": "number",
|
26
|
+
"description": "The first number to add",
|
27
|
+
"required": true
|
28
|
+
},
|
29
|
+
"b": {
|
30
|
+
"type": "number",
|
31
|
+
"description": "The second number to add",
|
32
|
+
"required": true
|
33
|
+
}
|
34
|
+
}
|
35
|
+
};
|
package/dist/actions/groups.js
CHANGED
@@ -13,6 +13,7 @@ exports.ACTION_GROUPS = {
|
|
13
13
|
templates_1.asanaCommentTaskDefinition,
|
14
14
|
templates_1.asanaCreateTaskDefinition,
|
15
15
|
templates_1.asanaUpdateTaskDefinition,
|
16
|
+
templates_1.asanaSearchTasksDefinition,
|
16
17
|
templates_1.asanaListAsanaTasksByProjectDefinition,
|
17
18
|
],
|
18
19
|
},
|
@@ -41,6 +42,7 @@ exports.ACTION_GROUPS = {
|
|
41
42
|
templates_1.googleOauthUpdateSpreadsheetDefinition,
|
42
43
|
templates_1.googleOauthCreatePresentationDefinition,
|
43
44
|
templates_1.googleOauthUpdatePresentationDefinition,
|
45
|
+
templates_1.googleOauthSearchDriveByKeywordsDefinition,
|
44
46
|
],
|
45
47
|
},
|
46
48
|
GOOGLE_CALENDAR: {
|
@@ -176,4 +178,8 @@ exports.ACTION_GROUPS = {
|
|
176
178
|
templates_1.ashbyAddCandidateToProjectDefinition,
|
177
179
|
],
|
178
180
|
},
|
181
|
+
NOTION: {
|
182
|
+
description: "Actions for interacting with Notion",
|
183
|
+
actions: [templates_1.notionSearchByTitleDefinition],
|
184
|
+
},
|
179
185
|
};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { type ActionFunction } from "./autogen/types";
|
2
|
+
import { z } from "zod";
|
3
|
+
interface ActionFunctionComponents {
|
4
|
+
fn: ActionFunction<any, any, any>;
|
5
|
+
paramsSchema: z.ZodSchema;
|
6
|
+
outputSchema: z.ZodSchema;
|
7
|
+
}
|
8
|
+
export declare const FunctionMapper: Record<string, Record<string, ActionFunctionComponents>>;
|
9
|
+
export {};
|
@@ -0,0 +1,33 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.FunctionMapper = void 0;
|
7
|
+
const add_1 = __importDefault(require("./providers/math/add"));
|
8
|
+
const list_conversations_1 = __importDefault(require("./providers/slack/list_conversations"));
|
9
|
+
const updatePage_1 = __importDefault(require("./providers/confluence/updatePage"));
|
10
|
+
const types_1 = require("./autogen/types");
|
11
|
+
exports.FunctionMapper = {
|
12
|
+
math: {
|
13
|
+
add: {
|
14
|
+
fn: add_1.default,
|
15
|
+
paramsSchema: types_1.mathAddParamsSchema,
|
16
|
+
outputSchema: types_1.mathAddOutputSchema,
|
17
|
+
},
|
18
|
+
},
|
19
|
+
slack: {
|
20
|
+
listConversations: {
|
21
|
+
fn: list_conversations_1.default,
|
22
|
+
paramsSchema: types_1.slackListConversationsParamsSchema,
|
23
|
+
outputSchema: types_1.slackListConversationsOutputSchema,
|
24
|
+
},
|
25
|
+
},
|
26
|
+
confluence: {
|
27
|
+
updatePage: {
|
28
|
+
fn: updatePage_1.default,
|
29
|
+
paramsSchema: types_1.confluenceUpdatePageParamsSchema,
|
30
|
+
outputSchema: types_1.confluenceUpdatePageOutputSchema,
|
31
|
+
},
|
32
|
+
},
|
33
|
+
};
|