@credal/actions 0.2.177 → 0.2.181
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 +29 -0
- package/dist/actions/actionMapper.js +9 -9
- package/dist/actions/autogen/definitions.d.ts +5 -0
- package/dist/actions/autogen/definitions.js +132 -0
- package/dist/actions/autogen/templates.d.ts +1 -3
- package/dist/actions/autogen/templates.js +140 -330
- package/dist/actions/autogen/types.d.ts +100 -341
- package/dist/actions/autogen/types.js +88 -134
- package/dist/actions/definitions.js +35 -0
- package/dist/actions/invokeMapper.d.ts +9 -0
- package/dist/actions/invokeMapper.js +33 -0
- package/dist/actions/providers/confluence/updatePage.js +9 -13
- package/dist/actions/providers/google-oauth/appendRowsToSpreadsheet.d.ts +7 -0
- package/dist/actions/providers/google-oauth/appendRowsToSpreadsheet.js +61 -0
- package/dist/actions/providers/google-oauth/getSheetValue.d.ts +3 -0
- package/dist/actions/providers/google-oauth/getSheetValue.js +50 -0
- package/dist/actions/providers/google-oauth/getSheetValues.d.ts +3 -0
- package/dist/actions/providers/google-oauth/getSheetValues.js +50 -0
- package/dist/actions/providers/google-oauth/listCalendarEvents.js +7 -20
- package/dist/actions/providers/google-oauth/listGmailThreads.d.ts +3 -0
- package/dist/actions/providers/google-oauth/listGmailThreads.js +98 -0
- package/dist/actions/providers/google-oauth/searchGmailMessages.d.ts +3 -0
- package/dist/actions/providers/google-oauth/searchGmailMessages.js +91 -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/salesforce/createRecord.js +2 -2
- package/dist/actions/providers/salesforce/getRecord.js +2 -2
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.d.ts +3 -0
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.js +43 -0
- package/dist/actions/providers/salesforce/updateRecord.js +2 -2
- 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
|
@@ -85,7 +85,7 @@ export const perplexityPerplexityDeepResearchOutputSchema = z.object({
|
|
|
85
85
|
.describe("Array of source citations")
|
|
86
86
|
.optional(),
|
|
87
87
|
})
|
|
88
|
-
.describe("The main research response/analysis")
|
|
88
|
+
.describe("The main research response/analysis object")
|
|
89
89
|
.optional(),
|
|
90
90
|
});
|
|
91
91
|
export const asanaCommentTaskParamsSchema = z.object({
|
|
@@ -421,7 +421,7 @@ export const confluenceFetchPageContentOutputSchema = z.object({
|
|
|
421
421
|
.optional(),
|
|
422
422
|
});
|
|
423
423
|
export const jiraAssignJiraTicketParamsSchema = z.object({
|
|
424
|
-
projectKey: z.string().describe("The key for the project you want to add
|
|
424
|
+
projectKey: z.string().describe("The key for the project you want to add the ticket to."),
|
|
425
425
|
assignee: z.string().describe("The assignee for the ticket, userID or email"),
|
|
426
426
|
issueId: z.string().describe("The issue ID associated with the ticket to be assigned/re-assigned"),
|
|
427
427
|
});
|
|
@@ -443,9 +443,9 @@ export const jiraPublicCommentOnServiceDeskRequestOutputSchema = z.object({
|
|
|
443
443
|
commentUrl: z.string().describe("The url to the created Jira comment").optional(),
|
|
444
444
|
});
|
|
445
445
|
export const jiraCommentJiraTicketParamsSchema = z.object({
|
|
446
|
-
projectKey: z.string().describe("The key for the project"),
|
|
447
|
-
issueId: z.string().describe("The issue ID associated with the ticket to be commented on"),
|
|
448
|
-
comment: z.string().describe("The text to be commented on the ticket"),
|
|
446
|
+
projectKey: z.string().describe("The key for the project to which the ticket you want to comment on belongs."),
|
|
447
|
+
issueId: z.string().describe("The issue ID associated with the ticket to be commented on."),
|
|
448
|
+
comment: z.string().describe("The text to be commented on the ticket."),
|
|
449
449
|
});
|
|
450
450
|
export const jiraCommentJiraTicketOutputSchema = z.object({
|
|
451
451
|
success: z.boolean().describe("Whether the comment was sent successfully"),
|
|
@@ -453,7 +453,7 @@ export const jiraCommentJiraTicketOutputSchema = z.object({
|
|
|
453
453
|
commentUrl: z.string().describe("The url to the created Jira comment").optional(),
|
|
454
454
|
});
|
|
455
455
|
export const jiraCreateJiraTicketParamsSchema = z.object({
|
|
456
|
-
projectKey: z.string().describe("The key for the project you want to add
|
|
456
|
+
projectKey: z.string().describe("The key for the project you want to add the ticket to."),
|
|
457
457
|
summary: z.string().describe("The summary of the new ticket"),
|
|
458
458
|
description: z.string().describe("The description for the new ticket"),
|
|
459
459
|
issueType: z.string().describe("The issue type of the new ticket. Should be Epic, Story, Task, Bug, Sub-task, etc."),
|
|
@@ -474,37 +474,6 @@ export const jiraCreateJiraTicketOutputSchema = z.object({
|
|
|
474
474
|
.describe("Error message if the ticket creation failed (only present if success is false)")
|
|
475
475
|
.optional(),
|
|
476
476
|
});
|
|
477
|
-
export const jiraGetServiceDesksParamsSchema = z.object({});
|
|
478
|
-
export const jiraGetServiceDesksOutputSchema = z.object({
|
|
479
|
-
success: z.boolean().describe("Whether the service desks were retrieved successfully"),
|
|
480
|
-
error: z.string().describe("The error that occurred if the service desks were not retrieved successfully").optional(),
|
|
481
|
-
serviceDesks: z
|
|
482
|
-
.array(z
|
|
483
|
-
.object({
|
|
484
|
-
id: z.string().describe("The ID of the service desk").optional(),
|
|
485
|
-
projectId: z.string().describe("The ID of the project").optional(),
|
|
486
|
-
projectKey: z.string().describe("The key of the project").optional(),
|
|
487
|
-
projectName: z.string().describe("The name of the service desk").optional(),
|
|
488
|
-
requestTypes: z
|
|
489
|
-
.array(z
|
|
490
|
-
.object({
|
|
491
|
-
id: z.string().describe("The ID of the request type").optional(),
|
|
492
|
-
name: z.string().describe("The name of the request type").optional(),
|
|
493
|
-
description: z.string().describe("The description of the request type").optional(),
|
|
494
|
-
issueTypeId: z.string().describe("The ID of the issue type").optional(),
|
|
495
|
-
portalId: z.string().describe("The ID of the customer portal").optional(),
|
|
496
|
-
helpText: z.string().describe("The help text for the request type").optional(),
|
|
497
|
-
serviceDeskId: z.string().describe("The ID of the service desk").optional(),
|
|
498
|
-
canCreateRequest: z.boolean().describe("Whether the request type can be created").optional(),
|
|
499
|
-
})
|
|
500
|
-
.describe("A request type"))
|
|
501
|
-
.describe("The list of request types")
|
|
502
|
-
.optional(),
|
|
503
|
-
})
|
|
504
|
-
.describe("A service desk"))
|
|
505
|
-
.describe("The list of service desks")
|
|
506
|
-
.optional(),
|
|
507
|
-
});
|
|
508
477
|
export const jiraCreateServiceDeskRequestParamsSchema = z.object({
|
|
509
478
|
serviceDeskId: z.string().describe("The ID of the service desk to create the request in"),
|
|
510
479
|
requestTypeId: z.string().describe("The ID of the request type to use for the new request"),
|
|
@@ -523,7 +492,7 @@ export const jiraCreateServiceDeskRequestOutputSchema = z.object({
|
|
|
523
492
|
currentStatus: z.string().describe("The current status of the created request").optional(),
|
|
524
493
|
});
|
|
525
494
|
export const jiraGetJiraTicketDetailsParamsSchema = z.object({
|
|
526
|
-
projectKey: z.string().describe("The key for the project"),
|
|
495
|
+
projectKey: z.string().describe("The key for the project the ticket belongs to."),
|
|
527
496
|
issueId: z.string().describe("The ID of the ticket"),
|
|
528
497
|
});
|
|
529
498
|
export const jiraGetJiraTicketDetailsOutputSchema = z.object({
|
|
@@ -539,7 +508,7 @@ export const jiraGetJiraTicketDetailsOutputSchema = z.object({
|
|
|
539
508
|
.optional(),
|
|
540
509
|
});
|
|
541
510
|
export const jiraGetJiraTicketHistoryParamsSchema = z.object({
|
|
542
|
-
projectKey: z.string().describe("The key for the project"),
|
|
511
|
+
projectKey: z.string().describe("The key for the project the ticket belongs to."),
|
|
543
512
|
issueId: z.string().describe("The ID of the ticket"),
|
|
544
513
|
});
|
|
545
514
|
export const jiraGetJiraTicketHistoryOutputSchema = z.object({
|
|
@@ -548,7 +517,7 @@ export const jiraGetJiraTicketHistoryOutputSchema = z.object({
|
|
|
548
517
|
history: z.array(z.any()).describe("The history data of the Jira ticket").optional(),
|
|
549
518
|
});
|
|
550
519
|
export const jiraUpdateJiraTicketDetailsParamsSchema = z.object({
|
|
551
|
-
projectKey: z.string().describe("The key for the project
|
|
520
|
+
projectKey: z.string().describe("The key for the project the ticket belongs to."),
|
|
552
521
|
issueId: z.string().describe("The issue ID associated with the ticket to be updated"),
|
|
553
522
|
summary: z.string().describe("The updated summary").optional(),
|
|
554
523
|
description: z.string().describe("The updated description").optional(),
|
|
@@ -566,7 +535,7 @@ export const jiraUpdateJiraTicketDetailsOutputSchema = z.object({
|
|
|
566
535
|
error: z.string().describe("Error message if the ticket update failed (only present if success is false)").optional(),
|
|
567
536
|
});
|
|
568
537
|
export const jiraUpdateJiraTicketStatusParamsSchema = z.object({
|
|
569
|
-
projectKey: z.string().describe("The key for the project you want to add
|
|
538
|
+
projectKey: z.string().describe("The key for the project you want to add the ticket to."),
|
|
570
539
|
issueId: z.string().describe("The issue ID associated with the ticket"),
|
|
571
540
|
status: z.string().describe('The status the ticket should be changed to (eg "In Progress", "Closed")'),
|
|
572
541
|
});
|
|
@@ -637,7 +606,7 @@ export const jiraGetJiraIssuesByQueryOutputSchema = z.object({
|
|
|
637
606
|
error: z.string().describe("The error that occurred if the records were not successfully retrieved").optional(),
|
|
638
607
|
});
|
|
639
608
|
export const jiraOrgAssignJiraTicketParamsSchema = z.object({
|
|
640
|
-
projectKey: z.string().describe("The key for the project you want to add
|
|
609
|
+
projectKey: z.string().describe("The key for the project you want to add the ticket to."),
|
|
641
610
|
assignee: z.string().describe("The assignee for the ticket, userID or email"),
|
|
642
611
|
issueId: z.string().describe("The issue ID associated with the ticket to be assigned/re-assigned"),
|
|
643
612
|
});
|
|
@@ -659,9 +628,9 @@ export const jiraOrgPublicCommentOnServiceDeskRequestOutputSchema = z.object({
|
|
|
659
628
|
commentUrl: z.string().describe("The url to the created Jira comment").optional(),
|
|
660
629
|
});
|
|
661
630
|
export const jiraOrgCommentJiraTicketParamsSchema = z.object({
|
|
662
|
-
projectKey: z.string().describe("The key for the project"),
|
|
663
|
-
issueId: z.string().describe("The issue ID associated with the ticket to be commented on"),
|
|
664
|
-
comment: z.string().describe("The text to be commented on the ticket"),
|
|
631
|
+
projectKey: z.string().describe("The key for the project to which the ticket you want to comment on belongs."),
|
|
632
|
+
issueId: z.string().describe("The issue ID associated with the ticket to be commented on."),
|
|
633
|
+
comment: z.string().describe("The text to be commented on the ticket."),
|
|
665
634
|
});
|
|
666
635
|
export const jiraOrgCommentJiraTicketOutputSchema = z.object({
|
|
667
636
|
success: z.boolean().describe("Whether the comment was sent successfully"),
|
|
@@ -669,7 +638,7 @@ export const jiraOrgCommentJiraTicketOutputSchema = z.object({
|
|
|
669
638
|
commentUrl: z.string().describe("The url to the created Jira comment").optional(),
|
|
670
639
|
});
|
|
671
640
|
export const jiraOrgCreateJiraTicketParamsSchema = z.object({
|
|
672
|
-
projectKey: z.string().describe("The key for the project you want to add
|
|
641
|
+
projectKey: z.string().describe("The key for the project you want to add the ticket to."),
|
|
673
642
|
summary: z.string().describe("The summary of the new ticket"),
|
|
674
643
|
description: z.string().describe("The description for the new ticket"),
|
|
675
644
|
issueType: z.string().describe("The issue type of the new ticket. Should be Epic, Story, Task, Bug, Sub-task, etc."),
|
|
@@ -690,37 +659,6 @@ export const jiraOrgCreateJiraTicketOutputSchema = z.object({
|
|
|
690
659
|
.describe("Error message if the ticket creation failed (only present if success is false)")
|
|
691
660
|
.optional(),
|
|
692
661
|
});
|
|
693
|
-
export const jiraOrgGetServiceDesksParamsSchema = z.object({});
|
|
694
|
-
export const jiraOrgGetServiceDesksOutputSchema = z.object({
|
|
695
|
-
success: z.boolean().describe("Whether the service desks were retrieved successfully"),
|
|
696
|
-
error: z.string().describe("The error that occurred if the service desks were not retrieved successfully").optional(),
|
|
697
|
-
serviceDesks: z
|
|
698
|
-
.array(z
|
|
699
|
-
.object({
|
|
700
|
-
id: z.string().describe("The ID of the service desk").optional(),
|
|
701
|
-
projectId: z.string().describe("The ID of the project").optional(),
|
|
702
|
-
projectKey: z.string().describe("The key of the project").optional(),
|
|
703
|
-
projectName: z.string().describe("The name of the service desk").optional(),
|
|
704
|
-
requestTypes: z
|
|
705
|
-
.array(z
|
|
706
|
-
.object({
|
|
707
|
-
id: z.string().describe("The ID of the request type").optional(),
|
|
708
|
-
name: z.string().describe("The name of the request type").optional(),
|
|
709
|
-
description: z.string().describe("The description of the request type").optional(),
|
|
710
|
-
issueTypeId: z.string().describe("The ID of the issue type").optional(),
|
|
711
|
-
portalId: z.string().describe("The ID of the customer portal").optional(),
|
|
712
|
-
helpText: z.string().describe("The help text for the request type").optional(),
|
|
713
|
-
serviceDeskId: z.string().describe("The ID of the service desk").optional(),
|
|
714
|
-
canCreateRequest: z.boolean().describe("Whether the request type can be created").optional(),
|
|
715
|
-
})
|
|
716
|
-
.describe("A request type"))
|
|
717
|
-
.describe("The list of request types")
|
|
718
|
-
.optional(),
|
|
719
|
-
})
|
|
720
|
-
.describe("A service desk"))
|
|
721
|
-
.describe("The list of service desks")
|
|
722
|
-
.optional(),
|
|
723
|
-
});
|
|
724
662
|
export const jiraOrgCreateServiceDeskRequestParamsSchema = z.object({
|
|
725
663
|
serviceDeskId: z.string().describe("The ID of the service desk to create the request in"),
|
|
726
664
|
requestTypeId: z.string().describe("The ID of the request type to use for the new request"),
|
|
@@ -739,7 +677,7 @@ export const jiraOrgCreateServiceDeskRequestOutputSchema = z.object({
|
|
|
739
677
|
currentStatus: z.string().describe("The current status of the created request").optional(),
|
|
740
678
|
});
|
|
741
679
|
export const jiraOrgGetJiraTicketDetailsParamsSchema = z.object({
|
|
742
|
-
projectKey: z.string().describe("The key for the project"),
|
|
680
|
+
projectKey: z.string().describe("The key for the project the ticket belongs to."),
|
|
743
681
|
issueId: z.string().describe("The ID of the ticket"),
|
|
744
682
|
});
|
|
745
683
|
export const jiraOrgGetJiraTicketDetailsOutputSchema = z.object({
|
|
@@ -755,7 +693,7 @@ export const jiraOrgGetJiraTicketDetailsOutputSchema = z.object({
|
|
|
755
693
|
.optional(),
|
|
756
694
|
});
|
|
757
695
|
export const jiraOrgGetJiraTicketHistoryParamsSchema = z.object({
|
|
758
|
-
projectKey: z.string().describe("The key for the project"),
|
|
696
|
+
projectKey: z.string().describe("The key for the project the ticket belongs to."),
|
|
759
697
|
issueId: z.string().describe("The ID of the ticket"),
|
|
760
698
|
});
|
|
761
699
|
export const jiraOrgGetJiraTicketHistoryOutputSchema = z.object({
|
|
@@ -764,7 +702,7 @@ export const jiraOrgGetJiraTicketHistoryOutputSchema = z.object({
|
|
|
764
702
|
history: z.array(z.any()).describe("The history data of the Jira ticket").optional(),
|
|
765
703
|
});
|
|
766
704
|
export const jiraOrgUpdateJiraTicketDetailsParamsSchema = z.object({
|
|
767
|
-
projectKey: z.string().describe("The key for the project
|
|
705
|
+
projectKey: z.string().describe("The key for the project the ticket belongs to."),
|
|
768
706
|
issueId: z.string().describe("The issue ID associated with the ticket to be updated"),
|
|
769
707
|
summary: z.string().describe("The updated summary").optional(),
|
|
770
708
|
description: z.string().describe("The updated description").optional(),
|
|
@@ -782,7 +720,7 @@ export const jiraOrgUpdateJiraTicketDetailsOutputSchema = z.object({
|
|
|
782
720
|
error: z.string().describe("Error message if the ticket update failed (only present if success is false)").optional(),
|
|
783
721
|
});
|
|
784
722
|
export const jiraOrgUpdateJiraTicketStatusParamsSchema = z.object({
|
|
785
|
-
projectKey: z.string().describe("The key for the project you want to add
|
|
723
|
+
projectKey: z.string().describe("The key for the project you want to add the ticket to."),
|
|
786
724
|
issueId: z.string().describe("The issue ID associated with the ticket"),
|
|
787
725
|
status: z.string().describe('The status the ticket should be changed to (eg "In Progress", "Closed")'),
|
|
788
726
|
});
|
|
@@ -853,7 +791,7 @@ export const jiraOrgGetJiraIssuesByQueryOutputSchema = z.object({
|
|
|
853
791
|
error: z.string().describe("The error that occurred if the records were not successfully retrieved").optional(),
|
|
854
792
|
});
|
|
855
793
|
export const jiraDataCenterAssignJiraTicketParamsSchema = z.object({
|
|
856
|
-
projectKey: z.string().describe("The key for the project you want to add
|
|
794
|
+
projectKey: z.string().describe("The key for the project you want to add the ticket to."),
|
|
857
795
|
assignee: z.string().describe("The assignee for the ticket, userID or email"),
|
|
858
796
|
issueId: z.string().describe("The issue ID associated with the ticket to be assigned/re-assigned"),
|
|
859
797
|
});
|
|
@@ -875,9 +813,9 @@ export const jiraDataCenterPublicCommentOnServiceDeskRequestOutputSchema = z.obj
|
|
|
875
813
|
commentUrl: z.string().describe("The url to the created Jira comment").optional(),
|
|
876
814
|
});
|
|
877
815
|
export const jiraDataCenterCommentJiraTicketParamsSchema = z.object({
|
|
878
|
-
projectKey: z.string().describe("The key for the project"),
|
|
879
|
-
issueId: z.string().describe("The issue ID associated with the ticket to be commented on"),
|
|
880
|
-
comment: z.string().describe("The text to be commented on the ticket"),
|
|
816
|
+
projectKey: z.string().describe("The key for the project to which the ticket you want to comment on belongs."),
|
|
817
|
+
issueId: z.string().describe("The issue ID associated with the ticket to be commented on."),
|
|
818
|
+
comment: z.string().describe("The text to be commented on the ticket."),
|
|
881
819
|
});
|
|
882
820
|
export const jiraDataCenterCommentJiraTicketOutputSchema = z.object({
|
|
883
821
|
success: z.boolean().describe("Whether the comment was sent successfully"),
|
|
@@ -885,7 +823,7 @@ export const jiraDataCenterCommentJiraTicketOutputSchema = z.object({
|
|
|
885
823
|
commentUrl: z.string().describe("The url to the created Jira comment").optional(),
|
|
886
824
|
});
|
|
887
825
|
export const jiraDataCenterCreateJiraTicketParamsSchema = z.object({
|
|
888
|
-
projectKey: z.string().describe("The key for the project you want to add
|
|
826
|
+
projectKey: z.string().describe("The key for the project you want to add the ticket to."),
|
|
889
827
|
summary: z.string().describe("The summary of the new ticket"),
|
|
890
828
|
description: z.string().describe("The description for the new ticket"),
|
|
891
829
|
issueType: z.string().describe("The issue type of the new ticket. Should be Epic, Story, Task, Bug, Sub-task, etc."),
|
|
@@ -906,37 +844,6 @@ export const jiraDataCenterCreateJiraTicketOutputSchema = z.object({
|
|
|
906
844
|
.describe("Error message if the ticket creation failed (only present if success is false)")
|
|
907
845
|
.optional(),
|
|
908
846
|
});
|
|
909
|
-
export const jiraDataCenterGetServiceDesksParamsSchema = z.object({});
|
|
910
|
-
export const jiraDataCenterGetServiceDesksOutputSchema = z.object({
|
|
911
|
-
success: z.boolean().describe("Whether the service desks were retrieved successfully"),
|
|
912
|
-
error: z.string().describe("The error that occurred if the service desks were not retrieved successfully").optional(),
|
|
913
|
-
serviceDesks: z
|
|
914
|
-
.array(z
|
|
915
|
-
.object({
|
|
916
|
-
id: z.string().describe("The ID of the service desk").optional(),
|
|
917
|
-
projectId: z.string().describe("The ID of the project").optional(),
|
|
918
|
-
projectKey: z.string().describe("The key of the project").optional(),
|
|
919
|
-
projectName: z.string().describe("The name of the service desk").optional(),
|
|
920
|
-
requestTypes: z
|
|
921
|
-
.array(z
|
|
922
|
-
.object({
|
|
923
|
-
id: z.string().describe("The ID of the request type").optional(),
|
|
924
|
-
name: z.string().describe("The name of the request type").optional(),
|
|
925
|
-
description: z.string().describe("The description of the request type").optional(),
|
|
926
|
-
issueTypeId: z.string().describe("The ID of the issue type").optional(),
|
|
927
|
-
portalId: z.string().describe("The ID of the customer portal").optional(),
|
|
928
|
-
helpText: z.string().describe("The help text for the request type").optional(),
|
|
929
|
-
serviceDeskId: z.string().describe("The ID of the service desk").optional(),
|
|
930
|
-
canCreateRequest: z.boolean().describe("Whether the request type can be created").optional(),
|
|
931
|
-
})
|
|
932
|
-
.describe("A request type"))
|
|
933
|
-
.describe("The list of request types")
|
|
934
|
-
.optional(),
|
|
935
|
-
})
|
|
936
|
-
.describe("A service desk"))
|
|
937
|
-
.describe("The list of service desks")
|
|
938
|
-
.optional(),
|
|
939
|
-
});
|
|
940
847
|
export const jiraDataCenterCreateServiceDeskRequestParamsSchema = z.object({
|
|
941
848
|
serviceDeskId: z.string().describe("The ID of the service desk to create the request in"),
|
|
942
849
|
requestTypeId: z.string().describe("The ID of the request type to use for the new request"),
|
|
@@ -955,7 +862,7 @@ export const jiraDataCenterCreateServiceDeskRequestOutputSchema = z.object({
|
|
|
955
862
|
currentStatus: z.string().describe("The current status of the created request").optional(),
|
|
956
863
|
});
|
|
957
864
|
export const jiraDataCenterGetJiraTicketDetailsParamsSchema = z.object({
|
|
958
|
-
projectKey: z.string().describe("The key for the project"),
|
|
865
|
+
projectKey: z.string().describe("The key for the project the ticket belongs to."),
|
|
959
866
|
issueId: z.string().describe("The ID of the ticket"),
|
|
960
867
|
});
|
|
961
868
|
export const jiraDataCenterGetJiraTicketDetailsOutputSchema = z.object({
|
|
@@ -971,7 +878,7 @@ export const jiraDataCenterGetJiraTicketDetailsOutputSchema = z.object({
|
|
|
971
878
|
.optional(),
|
|
972
879
|
});
|
|
973
880
|
export const jiraDataCenterGetJiraTicketHistoryParamsSchema = z.object({
|
|
974
|
-
projectKey: z.string().describe("The key for the project"),
|
|
881
|
+
projectKey: z.string().describe("The key for the project the ticket belongs to."),
|
|
975
882
|
issueId: z.string().describe("The ID of the ticket"),
|
|
976
883
|
});
|
|
977
884
|
export const jiraDataCenterGetJiraTicketHistoryOutputSchema = z.object({
|
|
@@ -980,7 +887,7 @@ export const jiraDataCenterGetJiraTicketHistoryOutputSchema = z.object({
|
|
|
980
887
|
history: z.array(z.any()).describe("The history data of the Jira ticket").optional(),
|
|
981
888
|
});
|
|
982
889
|
export const jiraDataCenterUpdateJiraTicketDetailsParamsSchema = z.object({
|
|
983
|
-
projectKey: z.string().describe("The key for the project
|
|
890
|
+
projectKey: z.string().describe("The key for the project the ticket belongs to."),
|
|
984
891
|
issueId: z.string().describe("The issue ID associated with the ticket to be updated"),
|
|
985
892
|
summary: z.string().describe("The updated summary").optional(),
|
|
986
893
|
description: z.string().describe("The updated description").optional(),
|
|
@@ -998,7 +905,7 @@ export const jiraDataCenterUpdateJiraTicketDetailsOutputSchema = z.object({
|
|
|
998
905
|
error: z.string().describe("Error message if the ticket update failed (only present if success is false)").optional(),
|
|
999
906
|
});
|
|
1000
907
|
export const jiraDataCenterUpdateJiraTicketStatusParamsSchema = z.object({
|
|
1001
|
-
projectKey: z.string().describe("The key for the project you want to add
|
|
908
|
+
projectKey: z.string().describe("The key for the project you want to add the ticket to."),
|
|
1002
909
|
issueId: z.string().describe("The issue ID associated with the ticket"),
|
|
1003
910
|
status: z.string().describe('The status the ticket should be changed to (eg "In Progress", "Closed")'),
|
|
1004
911
|
});
|
|
@@ -1162,7 +1069,7 @@ export const bingGetTopNSearchResultUrlsOutputSchema = z.object({
|
|
|
1162
1069
|
name: z.string().describe("The name or title of the search result").optional(),
|
|
1163
1070
|
url: z.string().describe("The URL of the search result").optional(),
|
|
1164
1071
|
}))
|
|
1165
|
-
.describe("The top
|
|
1072
|
+
.describe("The top search result objects"),
|
|
1166
1073
|
});
|
|
1167
1074
|
export const zendeskCreateZendeskTicketParamsSchema = z.object({
|
|
1168
1075
|
subject: z.string().describe("The subject of the ticket"),
|
|
@@ -1957,11 +1864,11 @@ export const googleOauthUpdateDocOutputSchema = z.object({
|
|
|
1957
1864
|
export const googleOauthScheduleCalendarMeetingParamsSchema = z.object({
|
|
1958
1865
|
calendarId: z.string().describe("The ID of the calendar to schedule the meeting on"),
|
|
1959
1866
|
name: z.string().describe("The name of the meeting"),
|
|
1960
|
-
start: z.string().describe("The start time of the meeting"),
|
|
1961
|
-
end: z.string().describe("The end time of the meeting"),
|
|
1867
|
+
start: z.string().describe("The start time of the meeting (in datetime format)"),
|
|
1868
|
+
end: z.string().describe("The end time of the meeting (in datetime format)"),
|
|
1962
1869
|
description: z.string().describe("The description of the meeting").optional(),
|
|
1963
1870
|
attendees: z
|
|
1964
|
-
.array(z.string().describe("The
|
|
1871
|
+
.array(z.string().describe("The emails of the attendees"))
|
|
1965
1872
|
.describe("The attendees of the meeting")
|
|
1966
1873
|
.optional(),
|
|
1967
1874
|
useGoogleMeet: z.boolean().describe("Whether to use Google Meet for the meeting").optional(),
|
|
@@ -2062,6 +1969,23 @@ export const googleOauthListCalendarEventsOutputSchema = z.object({
|
|
|
2062
1969
|
hangoutLink: z.string().describe("Google Meet link for the event, if available").optional(),
|
|
2063
1970
|
created: z.string().describe("Creation time of the event (RFC3339 timestamp)").optional(),
|
|
2064
1971
|
updated: z.string().describe("Last modification time of the event (RFC3339 timestamp)").optional(),
|
|
1972
|
+
attachments: z
|
|
1973
|
+
.array(z.object({
|
|
1974
|
+
fileId: z.string().describe("ID of the attached file").optional(),
|
|
1975
|
+
fileUrl: z.string().describe("URL link to the attachment").optional(),
|
|
1976
|
+
title: z.string().describe("Attachment title").optional(),
|
|
1977
|
+
mimeType: z.string().describe("Internet media type (MIME type) of the attachment").optional(),
|
|
1978
|
+
}))
|
|
1979
|
+
.describe("List of file attachments for the event")
|
|
1980
|
+
.optional(),
|
|
1981
|
+
eventType: z
|
|
1982
|
+
.string()
|
|
1983
|
+
.describe('Differentiate "workingLocation" events, which simply specify a location, from real meetings')
|
|
1984
|
+
.optional(),
|
|
1985
|
+
transparency: z
|
|
1986
|
+
.string()
|
|
1987
|
+
.describe('Whether the event blocks time on the calendar and is considered a "busy" time. Populated when transparent.')
|
|
1988
|
+
.optional(),
|
|
2065
1989
|
})
|
|
2066
1990
|
.describe("A calendar event"))
|
|
2067
1991
|
.describe("List of events"),
|
|
@@ -2386,6 +2310,25 @@ export const googleOauthUpdateSpreadsheetOutputSchema = z.object({
|
|
|
2386
2310
|
.optional(),
|
|
2387
2311
|
error: z.string().describe("The error that occurred if the spreadsheet was not updated successfully").optional(),
|
|
2388
2312
|
});
|
|
2313
|
+
export const googleOauthAppendRowsToSpreadsheetParamsSchema = z.object({
|
|
2314
|
+
spreadsheetId: z
|
|
2315
|
+
.string()
|
|
2316
|
+
.describe('The ID of the Google Spreadsheet to update. This should be provided by the user. Can be found in the URL of the spreadsheet. For example, "1bWp1w2OVwH19mkXEiLIaP8As7N-9c_3EXF_Eo5d5Nm0".'),
|
|
2317
|
+
sheetName: z
|
|
2318
|
+
.string()
|
|
2319
|
+
.describe('The name of the SHEET to append to. This should be provided by the user. For example, "Sheet1".')
|
|
2320
|
+
.optional(),
|
|
2321
|
+
rows: z
|
|
2322
|
+
.array(z
|
|
2323
|
+
.array(z.object({ stringValue: z.string().describe("The value of the cell") }))
|
|
2324
|
+
.describe("A list of cells to append to the spreadsheet"))
|
|
2325
|
+
.describe("Rows of cells to append to the spreadsheet"),
|
|
2326
|
+
});
|
|
2327
|
+
export const googleOauthAppendRowsToSpreadsheetOutputSchema = z.object({
|
|
2328
|
+
success: z.boolean().describe("Whether the spreadsheet was updated successfully"),
|
|
2329
|
+
spreadsheetUrl: z.string().describe("The URL of the updated spreadsheet").optional(),
|
|
2330
|
+
error: z.string().describe("The error that occurred if the spreadsheet was not updated successfully").optional(),
|
|
2331
|
+
});
|
|
2389
2332
|
export const googleOauthCreatePresentationParamsSchema = z.object({
|
|
2390
2333
|
title: z.string().describe("The title of the presentation"),
|
|
2391
2334
|
pageSize: z
|
|
@@ -3452,7 +3395,7 @@ export const lookerEnableUserByEmailOutputSchema = z.object({
|
|
|
3452
3395
|
.optional(),
|
|
3453
3396
|
});
|
|
3454
3397
|
export const salesforceUpdateRecordParamsSchema = z.object({
|
|
3455
|
-
|
|
3398
|
+
recordType: z.string().describe("The Salesforce record type to update (e.g., Lead, Account, Contact)"),
|
|
3456
3399
|
recordId: z.string().describe("The ID of the record to update"),
|
|
3457
3400
|
fieldsToUpdate: z
|
|
3458
3401
|
.record(z.string())
|
|
@@ -3463,7 +3406,7 @@ export const salesforceUpdateRecordOutputSchema = z.object({
|
|
|
3463
3406
|
error: z.string().describe("The error that occurred if the record was not successfully updated").optional(),
|
|
3464
3407
|
});
|
|
3465
3408
|
export const salesforceCreateRecordParamsSchema = z.object({
|
|
3466
|
-
|
|
3409
|
+
recordType: z.string().describe("The Salesforce record type to create (e.g., Lead, Account, Contact)"),
|
|
3467
3410
|
fieldsToCreate: z.record(z.string()).describe("The fields to create on the record").optional(),
|
|
3468
3411
|
});
|
|
3469
3412
|
export const salesforceCreateRecordOutputSchema = z.object({
|
|
@@ -3581,7 +3524,7 @@ export const salesforceGetSalesforceRecordsByQueryOutputSchema = z.object({
|
|
|
3581
3524
|
error: z.string().describe("The error that occurred if the records were not successfully retrieved").optional(),
|
|
3582
3525
|
});
|
|
3583
3526
|
export const salesforceGetRecordParamsSchema = z.object({
|
|
3584
|
-
|
|
3527
|
+
recordType: z.string().describe("The Salesforce record type to retrieve (e.g., Lead, Account, Contact)"),
|
|
3585
3528
|
recordId: z.string().describe("The ID of the record to retrieve"),
|
|
3586
3529
|
});
|
|
3587
3530
|
export const salesforceGetRecordOutputSchema = z.object({
|
|
@@ -4590,7 +4533,10 @@ export const linearGetTeamsOutputSchema = z.object({
|
|
|
4590
4533
|
.optional(),
|
|
4591
4534
|
});
|
|
4592
4535
|
export const hubspotGetContactsParamsSchema = z.object({
|
|
4593
|
-
query: z
|
|
4536
|
+
query: z
|
|
4537
|
+
.string()
|
|
4538
|
+
.describe("Optional keyword search query to filter contacts by name, email, or other properties")
|
|
4539
|
+
.optional(),
|
|
4594
4540
|
limit: z.number().describe("Maximum number of contacts to return (default 100, max 100)").optional(),
|
|
4595
4541
|
});
|
|
4596
4542
|
export const hubspotGetContactsOutputSchema = z.object({
|
|
@@ -4608,7 +4554,9 @@ export const hubspotGetContactsOutputSchema = z.object({
|
|
|
4608
4554
|
.optional(),
|
|
4609
4555
|
});
|
|
4610
4556
|
export const hubspotGetContactDetailsParamsSchema = z.object({
|
|
4611
|
-
contactId: z
|
|
4557
|
+
contactId: z
|
|
4558
|
+
.string()
|
|
4559
|
+
.describe("The ID of the HubSpot contact to retrieve. If you view the contact online, the url contains record/0-1/{contactId}/."),
|
|
4612
4560
|
});
|
|
4613
4561
|
export const hubspotGetContactDetailsOutputSchema = z.object({
|
|
4614
4562
|
success: z.boolean().describe("Whether the operation was successful"),
|
|
@@ -4638,7 +4586,7 @@ export const hubspotGetContactDetailsOutputSchema = z.object({
|
|
|
4638
4586
|
export const hubspotGetCompaniesParamsSchema = z.object({
|
|
4639
4587
|
query: z
|
|
4640
4588
|
.string()
|
|
4641
|
-
.describe("Optional search query to filter companies by name, domain, or other properties")
|
|
4589
|
+
.describe("Optional keyword search query to filter companies by name, domain, or other properties")
|
|
4642
4590
|
.optional(),
|
|
4643
4591
|
limit: z.number().describe("Maximum number of companies to return (default 100, max 100)").optional(),
|
|
4644
4592
|
});
|
|
@@ -4656,7 +4604,9 @@ export const hubspotGetCompaniesOutputSchema = z.object({
|
|
|
4656
4604
|
.optional(),
|
|
4657
4605
|
});
|
|
4658
4606
|
export const hubspotGetCompanyDetailsParamsSchema = z.object({
|
|
4659
|
-
companyId: z
|
|
4607
|
+
companyId: z
|
|
4608
|
+
.string()
|
|
4609
|
+
.describe("The ID of the HubSpot company to retrieve. If you view the company online, the url contains record/0-2/{companyId}/."),
|
|
4660
4610
|
});
|
|
4661
4611
|
export const hubspotGetCompanyDetailsOutputSchema = z.object({
|
|
4662
4612
|
success: z.boolean().describe("Whether the operation was successful"),
|
|
@@ -4700,7 +4650,9 @@ export const hubspotGetDealsOutputSchema = z.object({
|
|
|
4700
4650
|
.optional(),
|
|
4701
4651
|
});
|
|
4702
4652
|
export const hubspotGetDealDetailsParamsSchema = z.object({
|
|
4703
|
-
dealId: z
|
|
4653
|
+
dealId: z
|
|
4654
|
+
.string()
|
|
4655
|
+
.describe("The ID of the HubSpot deal to retrieve. If you view the deal online, the url contains record/0-3/{dealId}/."),
|
|
4704
4656
|
});
|
|
4705
4657
|
export const hubspotGetDealDetailsOutputSchema = z.object({
|
|
4706
4658
|
success: z.boolean().describe("Whether the operation was successful"),
|
|
@@ -4744,7 +4696,9 @@ export const hubspotGetTicketsOutputSchema = z.object({
|
|
|
4744
4696
|
.optional(),
|
|
4745
4697
|
});
|
|
4746
4698
|
export const hubspotGetTicketDetailsParamsSchema = z.object({
|
|
4747
|
-
ticketId: z
|
|
4699
|
+
ticketId: z
|
|
4700
|
+
.string()
|
|
4701
|
+
.describe("The ID of the HubSpot ticket to retrieve. If you view the ticket online, the url contains record/0-5/{ticketId}/."),
|
|
4748
4702
|
});
|
|
4749
4703
|
export const hubspotGetTicketDetailsOutputSchema = z.object({
|
|
4750
4704
|
success: z.boolean().describe("Whether the operation was successful"),
|
|
@@ -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
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -8,30 +8,25 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const
|
|
16
|
-
function
|
|
17
|
-
|
|
12
|
+
const axiosClient_1 = require("../../util/axiosClient");
|
|
13
|
+
function getConfluenceRequestConfig(baseUrl, username, apiToken) {
|
|
14
|
+
return {
|
|
18
15
|
baseURL: baseUrl,
|
|
19
16
|
headers: {
|
|
20
17
|
Accept: "application/json",
|
|
21
|
-
// Tokens are associated with a specific user.
|
|
22
18
|
Authorization: `Basic ${Buffer.from(`${username}:${apiToken}`).toString("base64")}`,
|
|
23
19
|
},
|
|
24
|
-
}
|
|
25
|
-
return api;
|
|
20
|
+
};
|
|
26
21
|
}
|
|
27
22
|
const confluenceUpdatePage = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
28
23
|
const { pageId, username, content, title } = params;
|
|
29
24
|
const { baseUrl, authToken } = authParams;
|
|
30
|
-
const
|
|
25
|
+
const config = getConfluenceRequestConfig(baseUrl, username, authToken);
|
|
31
26
|
// Get current version number
|
|
32
|
-
const response = yield
|
|
27
|
+
const response = yield axiosClient_1.axiosClient.get(`/api/v2/pages/${pageId}`, config);
|
|
33
28
|
const currVersion = response.data.version.number;
|
|
34
|
-
|
|
29
|
+
const payload = {
|
|
35
30
|
id: pageId,
|
|
36
31
|
status: "current",
|
|
37
32
|
title,
|
|
@@ -42,6 +37,7 @@ const confluenceUpdatePage = (_a) => __awaiter(void 0, [_a], void 0, function* (
|
|
|
42
37
|
version: {
|
|
43
38
|
number: currVersion + 1,
|
|
44
39
|
},
|
|
45
|
-
}
|
|
40
|
+
};
|
|
41
|
+
yield axiosClient_1.axiosClient.put(`/api/v2/pages/${pageId}`, payload, config);
|
|
46
42
|
});
|
|
47
43
|
exports.default = confluenceUpdatePage;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { googleOauthAppendRowsToSpreadsheetFunction } from "../../autogen/types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Appends rows to a Google Spreadsheet using OAuth authentication
|
|
4
|
+
* https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/append
|
|
5
|
+
*/
|
|
6
|
+
declare const appendRowsToSpreadsheet: googleOauthAppendRowsToSpreadsheetFunction;
|
|
7
|
+
export default appendRowsToSpreadsheet;
|