@mindstudio-ai/agent 0.0.4 → 0.0.6

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/index.js CHANGED
@@ -154,6 +154,7 @@ function applyStepMethods(AgentClass) {
154
154
  proto.generatePdf = function(step, options) {
155
155
  return this.executeStep("generatePdf", step, options);
156
156
  };
157
+ proto.generateAsset = proto.generatePdf;
157
158
  proto.generateStaticVideoFromImage = function(step, options) {
158
159
  return this.executeStep("generateStaticVideoFromImage", step, options);
159
160
  };
@@ -268,9 +269,6 @@ function applyStepMethods(AgentClass) {
268
269
  proto.runPackagedWorkflow = function(step, options) {
269
270
  return this.executeStep("runPackagedWorkflow", step, options);
270
271
  };
271
- proto.runWorkflow = function(step, options) {
272
- return this.executeStep("runWorkflow", step, options);
273
- };
274
272
  proto.scrapeFacebookPage = function(step, options) {
275
273
  return this.executeStep("scrapeFacebookPage", step, options);
276
274
  };
@@ -391,6 +389,7 @@ function applyStepMethods(AgentClass) {
391
389
  proto.userMessage = function(step, options) {
392
390
  return this.executeStep("userMessage", step, options);
393
391
  };
392
+ proto.generateText = proto.userMessage;
394
393
  proto.videoFaceSwap = function(step, options) {
395
394
  return this.executeStep("videoFaceSwap", step, options);
396
395
  };
@@ -491,10 +490,823 @@ function resolveToken(provided) {
491
490
  );
492
491
  }
493
492
 
493
+ // src/generated/snippets.ts
494
+ var stepSnippets = {
495
+ "activeCampaignAddNote": {
496
+ method: "activeCampaignAddNote",
497
+ snippet: "{\n contactId: '',\n note: '',\n connectionId: '',\n}",
498
+ outputKeys: []
499
+ },
500
+ "activeCampaignCreateContact": {
501
+ method: "activeCampaignCreateContact",
502
+ snippet: "{\n email: '',\n firstName: '',\n lastName: '',\n phone: '',\n accountId: '',\n customFields: {},\n connectionId: '',\n}",
503
+ outputKeys: ["contactId"]
504
+ },
505
+ "addSubtitlesToVideo": {
506
+ method: "addSubtitlesToVideo",
507
+ snippet: `{
508
+ videoUrl: '',
509
+ language: '',
510
+ fontName: '',
511
+ fontSize: 0,
512
+ fontWeight: "normal",
513
+ fontColor: "white",
514
+ highlightColor: "white",
515
+ strokeWidth: 0,
516
+ strokeColor: "black",
517
+ backgroundColor: "black",
518
+ backgroundOpacity: 0,
519
+ position: "top",
520
+ yOffset: 0,
521
+ wordsPerSubtitle: 0,
522
+ enableAnimation: false,
523
+ }`,
524
+ outputKeys: ["videoUrl"]
525
+ },
526
+ "airtableCreateUpdateRecord": {
527
+ method: "airtableCreateUpdateRecord",
528
+ snippet: "{\n connectionId: '',\n baseId: '',\n tableId: '',\n fields: '',\n recordData: {},\n}",
529
+ outputKeys: ["recordId"]
530
+ },
531
+ "airtableDeleteRecord": {
532
+ method: "airtableDeleteRecord",
533
+ snippet: "{\n connectionId: '',\n baseId: '',\n tableId: '',\n recordId: '',\n}",
534
+ outputKeys: ["deleted"]
535
+ },
536
+ "airtableGetRecord": {
537
+ method: "airtableGetRecord",
538
+ snippet: "{\n connectionId: '',\n baseId: '',\n tableId: '',\n recordId: '',\n}",
539
+ outputKeys: ["record"]
540
+ },
541
+ "airtableGetTableRecords": {
542
+ method: "airtableGetTableRecords",
543
+ snippet: "{\n connectionId: '',\n baseId: '',\n tableId: '',\n}",
544
+ outputKeys: ["records"]
545
+ },
546
+ "analyzeImage": {
547
+ method: "analyzeImage",
548
+ snippet: "{\n prompt: '',\n imageUrl: '',\n}",
549
+ outputKeys: ["analysis"]
550
+ },
551
+ "analyzeVideo": {
552
+ method: "analyzeVideo",
553
+ snippet: "{\n prompt: '',\n videoUrl: '',\n}",
554
+ outputKeys: ["analysis"]
555
+ },
556
+ "captureThumbnail": {
557
+ method: "captureThumbnail",
558
+ snippet: "{\n videoUrl: '',\n at: '',\n}",
559
+ outputKeys: ["thumbnailUrl"]
560
+ },
561
+ "codaCreateUpdatePage": {
562
+ method: "codaCreateUpdatePage",
563
+ snippet: "{\n connectionId: '',\n pageData: {},\n}",
564
+ outputKeys: ["pageId"]
565
+ },
566
+ "codaCreateUpdateRow": {
567
+ method: "codaCreateUpdateRow",
568
+ snippet: "{\n connectionId: '',\n docId: '',\n tableId: '',\n rowData: {},\n}",
569
+ outputKeys: ["rowId"]
570
+ },
571
+ "codaFindRow": {
572
+ method: "codaFindRow",
573
+ snippet: "{\n connectionId: '',\n docId: '',\n tableId: '',\n rowData: {},\n}",
574
+ outputKeys: ["row"]
575
+ },
576
+ "codaGetPage": {
577
+ method: "codaGetPage",
578
+ snippet: "{\n connectionId: '',\n docId: '',\n pageId: '',\n}",
579
+ outputKeys: ["content"]
580
+ },
581
+ "codaGetTableRows": {
582
+ method: "codaGetTableRows",
583
+ snippet: "{\n connectionId: '',\n docId: '',\n tableId: '',\n}",
584
+ outputKeys: ["rows"]
585
+ },
586
+ "convertPdfToImages": {
587
+ method: "convertPdfToImages",
588
+ snippet: "{\n pdfUrl: '',\n}",
589
+ outputKeys: ["imageUrls"]
590
+ },
591
+ "createGoogleCalendarEvent": {
592
+ method: "createGoogleCalendarEvent",
593
+ snippet: "{\n connectionId: '',\n summary: '',\n startDateTime: '',\n endDateTime: '',\n}",
594
+ outputKeys: ["eventId", "htmlLink"]
595
+ },
596
+ "createGoogleDoc": {
597
+ method: "createGoogleDoc",
598
+ snippet: `{
599
+ title: '',
600
+ text: '',
601
+ connectionId: '',
602
+ textType: "plain",
603
+ }`,
604
+ outputKeys: ["documentUrl"]
605
+ },
606
+ "createGoogleSheet": {
607
+ method: "createGoogleSheet",
608
+ snippet: "{\n title: '',\n text: '',\n connectionId: '',\n}",
609
+ outputKeys: ["spreadsheetUrl"]
610
+ },
611
+ "deleteGoogleCalendarEvent": {
612
+ method: "deleteGoogleCalendarEvent",
613
+ snippet: "{\n connectionId: '',\n eventId: '',\n}",
614
+ outputKeys: []
615
+ },
616
+ "detectPII": {
617
+ method: "detectPII",
618
+ snippet: "{\n input: '',\n language: '',\n entities: [],\n}",
619
+ outputKeys: ["detected", "detections"]
620
+ },
621
+ "downloadVideo": {
622
+ method: "downloadVideo",
623
+ snippet: `{
624
+ videoUrl: '',
625
+ format: "mp4",
626
+ }`,
627
+ outputKeys: ["videoUrl"]
628
+ },
629
+ "enhanceImageGenerationPrompt": {
630
+ method: "enhanceImageGenerationPrompt",
631
+ snippet: "{\n initialPrompt: '',\n includeNegativePrompt: false,\n systemPrompt: '',\n}",
632
+ outputKeys: ["prompt"]
633
+ },
634
+ "enhanceVideoGenerationPrompt": {
635
+ method: "enhanceVideoGenerationPrompt",
636
+ snippet: "{\n initialPrompt: '',\n includeNegativePrompt: false,\n systemPrompt: '',\n}",
637
+ outputKeys: ["prompt"]
638
+ },
639
+ "enrichPerson": {
640
+ method: "enrichPerson",
641
+ snippet: "{\n params: {},\n}",
642
+ outputKeys: ["data"]
643
+ },
644
+ "extractAudioFromVideo": {
645
+ method: "extractAudioFromVideo",
646
+ snippet: "{\n videoUrl: '',\n}",
647
+ outputKeys: ["audioUrl"]
648
+ },
649
+ "extractText": {
650
+ method: "extractText",
651
+ snippet: "{\n url: '',\n}",
652
+ outputKeys: ["text"]
653
+ },
654
+ "fetchGoogleDoc": {
655
+ method: "fetchGoogleDoc",
656
+ snippet: `{
657
+ documentId: '',
658
+ connectionId: '',
659
+ exportType: "html",
660
+ }`,
661
+ outputKeys: ["content"]
662
+ },
663
+ "fetchGoogleSheet": {
664
+ method: "fetchGoogleSheet",
665
+ snippet: `{
666
+ spreadsheetId: '',
667
+ range: '',
668
+ connectionId: '',
669
+ exportType: "csv",
670
+ }`,
671
+ outputKeys: ["content"]
672
+ },
673
+ "fetchSlackChannelHistory": {
674
+ method: "fetchSlackChannelHistory",
675
+ snippet: "{\n connectionId: '',\n channelId: '',\n}",
676
+ outputKeys: ["messages"]
677
+ },
678
+ "fetchYoutubeCaptions": {
679
+ method: "fetchYoutubeCaptions",
680
+ snippet: `{
681
+ videoUrl: '',
682
+ exportType: "text",
683
+ language: '',
684
+ }`,
685
+ outputKeys: ["transcripts"]
686
+ },
687
+ "fetchYoutubeChannel": {
688
+ method: "fetchYoutubeChannel",
689
+ snippet: "{\n channelUrl: '',\n}",
690
+ outputKeys: ["channel"]
691
+ },
692
+ "fetchYoutubeComments": {
693
+ method: "fetchYoutubeComments",
694
+ snippet: `{
695
+ videoUrl: '',
696
+ exportType: "text",
697
+ limitPages: '',
698
+ }`,
699
+ outputKeys: ["comments"]
700
+ },
701
+ "fetchYoutubeVideo": {
702
+ method: "fetchYoutubeVideo",
703
+ snippet: "{\n videoUrl: '',\n}",
704
+ outputKeys: ["video"]
705
+ },
706
+ "generateAsset": {
707
+ method: "generateAsset",
708
+ snippet: `{
709
+ source: '',
710
+ sourceType: "html",
711
+ outputFormat: "pdf",
712
+ pageSize: "full",
713
+ testData: {},
714
+ }`,
715
+ outputKeys: ["url"]
716
+ },
717
+ "generateChart": {
718
+ method: "generateChart",
719
+ snippet: "{\n chart: {},\n}",
720
+ outputKeys: ["chartUrl"]
721
+ },
722
+ "generateImage": {
723
+ method: "generateImage",
724
+ snippet: "{\n prompt: '',\n}",
725
+ outputKeys: ["imageUrl"]
726
+ },
727
+ "generateLipsync": {
728
+ method: "generateLipsync",
729
+ snippet: "{}",
730
+ outputKeys: []
731
+ },
732
+ "generateMusic": {
733
+ method: "generateMusic",
734
+ snippet: "{\n text: '',\n}",
735
+ outputKeys: []
736
+ },
737
+ "generatePdf": {
738
+ method: "generatePdf",
739
+ snippet: `{
740
+ source: '',
741
+ sourceType: "html",
742
+ outputFormat: "pdf",
743
+ pageSize: "full",
744
+ testData: {},
745
+ }`,
746
+ outputKeys: ["url"]
747
+ },
748
+ "generateStaticVideoFromImage": {
749
+ method: "generateStaticVideoFromImage",
750
+ snippet: "{\n imageUrl: '',\n duration: '',\n}",
751
+ outputKeys: ["videoUrl"]
752
+ },
753
+ "generateText": {
754
+ method: "generateText",
755
+ snippet: "{\n message: '',\n}",
756
+ outputKeys: ["content"]
757
+ },
758
+ "generateVideo": {
759
+ method: "generateVideo",
760
+ snippet: "{\n prompt: '',\n}",
761
+ outputKeys: ["videoUrl"]
762
+ },
763
+ "getGoogleCalendarEvent": {
764
+ method: "getGoogleCalendarEvent",
765
+ snippet: `{
766
+ connectionId: '',
767
+ eventId: '',
768
+ exportType: "json",
769
+ }`,
770
+ outputKeys: ["event"]
771
+ },
772
+ "getMediaMetadata": {
773
+ method: "getMediaMetadata",
774
+ snippet: "{\n mediaUrl: '',\n}",
775
+ outputKeys: ["metadata"]
776
+ },
777
+ "httpRequest": {
778
+ method: "httpRequest",
779
+ snippet: `{
780
+ url: '',
781
+ method: '',
782
+ headers: {},
783
+ queryParams: {},
784
+ body: '',
785
+ bodyItems: {},
786
+ contentType: "none",
787
+ customContentType: '',
788
+ }`,
789
+ outputKeys: ["ok", "status", "statusText", "response"]
790
+ },
791
+ "hubspotCreateCompany": {
792
+ method: "hubspotCreateCompany",
793
+ snippet: "{\n connectionId: '',\n company: {},\n enabledProperties: [],\n}",
794
+ outputKeys: ["companyId"]
795
+ },
796
+ "hubspotCreateContact": {
797
+ method: "hubspotCreateContact",
798
+ snippet: "{\n connectionId: '',\n contact: {},\n enabledProperties: [],\n companyDomain: '',\n}",
799
+ outputKeys: ["contactId"]
800
+ },
801
+ "hubspotGetCompany": {
802
+ method: "hubspotGetCompany",
803
+ snippet: `{
804
+ connectionId: '',
805
+ searchBy: "domain",
806
+ companyDomain: '',
807
+ companyId: '',
808
+ additionalProperties: [],
809
+ }`,
810
+ outputKeys: ["company"]
811
+ },
812
+ "hubspotGetContact": {
813
+ method: "hubspotGetContact",
814
+ snippet: `{
815
+ connectionId: '',
816
+ searchBy: "email",
817
+ contactEmail: '',
818
+ contactId: '',
819
+ additionalProperties: [],
820
+ }`,
821
+ outputKeys: ["contact"]
822
+ },
823
+ "hunterApiCompanyEnrichment": {
824
+ method: "hunterApiCompanyEnrichment",
825
+ snippet: "{\n domain: '',\n}",
826
+ outputKeys: ["data"]
827
+ },
828
+ "hunterApiDomainSearch": {
829
+ method: "hunterApiDomainSearch",
830
+ snippet: "{\n domain: '',\n}",
831
+ outputKeys: ["data"]
832
+ },
833
+ "hunterApiEmailFinder": {
834
+ method: "hunterApiEmailFinder",
835
+ snippet: "{\n domain: '',\n firstName: '',\n lastName: '',\n}",
836
+ outputKeys: ["data"]
837
+ },
838
+ "hunterApiEmailVerification": {
839
+ method: "hunterApiEmailVerification",
840
+ snippet: "{\n email: '',\n}",
841
+ outputKeys: ["data"]
842
+ },
843
+ "hunterApiPersonEnrichment": {
844
+ method: "hunterApiPersonEnrichment",
845
+ snippet: "{\n email: '',\n}",
846
+ outputKeys: ["data"]
847
+ },
848
+ "imageFaceSwap": {
849
+ method: "imageFaceSwap",
850
+ snippet: "{\n imageUrl: '',\n faceImageUrl: '',\n engine: '',\n}",
851
+ outputKeys: ["imageUrl"]
852
+ },
853
+ "imageRemoveWatermark": {
854
+ method: "imageRemoveWatermark",
855
+ snippet: "{\n imageUrl: '',\n engine: '',\n}",
856
+ outputKeys: ["imageUrl"]
857
+ },
858
+ "insertVideoClips": {
859
+ method: "insertVideoClips",
860
+ snippet: "{\n baseVideoUrl: '',\n overlayVideos: [],\n}",
861
+ outputKeys: ["videoUrl"]
862
+ },
863
+ "listGoogleCalendarEvents": {
864
+ method: "listGoogleCalendarEvents",
865
+ snippet: `{
866
+ connectionId: '',
867
+ limit: 0,
868
+ exportType: "json",
869
+ }`,
870
+ outputKeys: ["events"]
871
+ },
872
+ "logic": {
873
+ method: "logic",
874
+ snippet: "{\n context: '',\n cases: [],\n}",
875
+ outputKeys: ["selectedCase"]
876
+ },
877
+ "makeDotComRunScenario": {
878
+ method: "makeDotComRunScenario",
879
+ snippet: "{\n webhookUrl: '',\n input: {},\n}",
880
+ outputKeys: ["data"]
881
+ },
882
+ "mergeAudio": {
883
+ method: "mergeAudio",
884
+ snippet: "{\n mp3Urls: [],\n}",
885
+ outputKeys: ["audioUrl"]
886
+ },
887
+ "mergeVideos": {
888
+ method: "mergeVideos",
889
+ snippet: "{\n videoUrls: [],\n}",
890
+ outputKeys: ["videoUrl"]
891
+ },
892
+ "mixAudioIntoVideo": {
893
+ method: "mixAudioIntoVideo",
894
+ snippet: "{\n videoUrl: '',\n audioUrl: '',\n options: {},\n}",
895
+ outputKeys: ["videoUrl"]
896
+ },
897
+ "muteVideo": {
898
+ method: "muteVideo",
899
+ snippet: "{\n videoUrl: '',\n}",
900
+ outputKeys: ["videoUrl"]
901
+ },
902
+ "n8nRunNode": {
903
+ method: "n8nRunNode",
904
+ snippet: `{
905
+ method: '',
906
+ authentication: "none",
907
+ user: '',
908
+ password: '',
909
+ webhookUrl: '',
910
+ input: {},
911
+ }`,
912
+ outputKeys: ["data"]
913
+ },
914
+ "notionCreatePage": {
915
+ method: "notionCreatePage",
916
+ snippet: "{\n pageId: '',\n content: '',\n title: '',\n connectionId: '',\n}",
917
+ outputKeys: ["pageId", "pageUrl"]
918
+ },
919
+ "notionUpdatePage": {
920
+ method: "notionUpdatePage",
921
+ snippet: `{
922
+ pageId: '',
923
+ content: '',
924
+ mode: "append",
925
+ connectionId: '',
926
+ }`,
927
+ outputKeys: ["pageId", "pageUrl"]
928
+ },
929
+ "peopleSearch": {
930
+ method: "peopleSearch",
931
+ snippet: "{\n smartQuery: '',\n enrichPeople: false,\n enrichOrganizations: false,\n limit: '',\n page: '',\n params: {},\n}",
932
+ outputKeys: ["results"]
933
+ },
934
+ "postToLinkedIn": {
935
+ method: "postToLinkedIn",
936
+ snippet: `{
937
+ message: '',
938
+ visibility: "PUBLIC",
939
+ connectionId: '',
940
+ }`,
941
+ outputKeys: []
942
+ },
943
+ "postToSlackChannel": {
944
+ method: "postToSlackChannel",
945
+ snippet: `{
946
+ channelId: '',
947
+ messageType: "string",
948
+ message: '',
949
+ connectionId: '',
950
+ }`,
951
+ outputKeys: []
952
+ },
953
+ "postToX": {
954
+ method: "postToX",
955
+ snippet: "{\n text: '',\n connectionId: '',\n}",
956
+ outputKeys: []
957
+ },
958
+ "postToZapier": {
959
+ method: "postToZapier",
960
+ snippet: "{\n webhookUrl: '',\n input: {},\n}",
961
+ outputKeys: ["data"]
962
+ },
963
+ "queryDataSource": {
964
+ method: "queryDataSource",
965
+ snippet: "{\n dataSourceId: '',\n query: '',\n maxResults: 0,\n}",
966
+ outputKeys: ["text", "chunks", "query", "citations", "latencyMs"]
967
+ },
968
+ "queryExternalDatabase": {
969
+ method: "queryExternalDatabase",
970
+ snippet: `{
971
+ connectionId: '',
972
+ query: '',
973
+ outputFormat: "json",
974
+ }`,
975
+ outputKeys: ["data"]
976
+ },
977
+ "redactPII": {
978
+ method: "redactPII",
979
+ snippet: "{\n input: '',\n language: '',\n entities: [],\n}",
980
+ outputKeys: ["text"]
981
+ },
982
+ "removeBackgroundFromImage": {
983
+ method: "removeBackgroundFromImage",
984
+ snippet: "{\n imageUrl: '',\n}",
985
+ outputKeys: ["imageUrl"]
986
+ },
987
+ "resizeVideo": {
988
+ method: "resizeVideo",
989
+ snippet: `{
990
+ videoUrl: '',
991
+ mode: "fit",
992
+ }`,
993
+ outputKeys: ["videoUrl"]
994
+ },
995
+ "runPackagedWorkflow": {
996
+ method: "runPackagedWorkflow",
997
+ snippet: "{\n appId: '',\n workflowId: '',\n inputVariables: {},\n outputVariables: {},\n name: '',\n}",
998
+ outputKeys: ["data"]
999
+ },
1000
+ "scrapeFacebookPage": {
1001
+ method: "scrapeFacebookPage",
1002
+ snippet: "{\n pageUrl: '',\n}",
1003
+ outputKeys: ["data"]
1004
+ },
1005
+ "scrapeFacebookPosts": {
1006
+ method: "scrapeFacebookPosts",
1007
+ snippet: "{\n pageUrl: '',\n}",
1008
+ outputKeys: ["data"]
1009
+ },
1010
+ "scrapeInstagramComments": {
1011
+ method: "scrapeInstagramComments",
1012
+ snippet: "{\n postUrl: '',\n resultsLimit: '',\n}",
1013
+ outputKeys: ["data"]
1014
+ },
1015
+ "scrapeInstagramMentions": {
1016
+ method: "scrapeInstagramMentions",
1017
+ snippet: "{\n profileUrl: '',\n resultsLimit: '',\n}",
1018
+ outputKeys: ["data"]
1019
+ },
1020
+ "scrapeInstagramPosts": {
1021
+ method: "scrapeInstagramPosts",
1022
+ snippet: "{\n profileUrl: '',\n resultsLimit: '',\n onlyPostsNewerThan: '',\n}",
1023
+ outputKeys: ["data"]
1024
+ },
1025
+ "scrapeInstagramProfile": {
1026
+ method: "scrapeInstagramProfile",
1027
+ snippet: "{\n profileUrl: '',\n}",
1028
+ outputKeys: ["data"]
1029
+ },
1030
+ "scrapeInstagramReels": {
1031
+ method: "scrapeInstagramReels",
1032
+ snippet: "{\n profileUrl: '',\n resultsLimit: '',\n}",
1033
+ outputKeys: ["data"]
1034
+ },
1035
+ "scrapeLinkedInCompany": {
1036
+ method: "scrapeLinkedInCompany",
1037
+ snippet: "{\n url: '',\n}",
1038
+ outputKeys: ["company"]
1039
+ },
1040
+ "scrapeLinkedInProfile": {
1041
+ method: "scrapeLinkedInProfile",
1042
+ snippet: "{\n url: '',\n}",
1043
+ outputKeys: ["profile"]
1044
+ },
1045
+ "scrapeMetaThreadsProfile": {
1046
+ method: "scrapeMetaThreadsProfile",
1047
+ snippet: "{\n profileUrl: '',\n}",
1048
+ outputKeys: ["data"]
1049
+ },
1050
+ "scrapeUrl": {
1051
+ method: "scrapeUrl",
1052
+ snippet: `{
1053
+ url: '',
1054
+ service: "default",
1055
+ autoEnhance: false,
1056
+ outputFormat: "text",
1057
+ pageOptions: {},
1058
+ }`,
1059
+ outputKeys: ["content"]
1060
+ },
1061
+ "scrapeXPost": {
1062
+ method: "scrapeXPost",
1063
+ snippet: "{\n url: '',\n}",
1064
+ outputKeys: ["post"]
1065
+ },
1066
+ "scrapeXProfile": {
1067
+ method: "scrapeXProfile",
1068
+ snippet: "{\n url: '',\n}",
1069
+ outputKeys: ["profile"]
1070
+ },
1071
+ "searchGoogle": {
1072
+ method: "searchGoogle",
1073
+ snippet: `{
1074
+ query: '',
1075
+ exportType: "text",
1076
+ }`,
1077
+ outputKeys: ["results"]
1078
+ },
1079
+ "searchGoogleImages": {
1080
+ method: "searchGoogleImages",
1081
+ snippet: `{
1082
+ query: '',
1083
+ exportType: "text",
1084
+ }`,
1085
+ outputKeys: ["images"]
1086
+ },
1087
+ "searchGoogleNews": {
1088
+ method: "searchGoogleNews",
1089
+ snippet: `{
1090
+ text: '',
1091
+ exportType: "text",
1092
+ }`,
1093
+ outputKeys: ["articles"]
1094
+ },
1095
+ "searchGoogleTrends": {
1096
+ method: "searchGoogleTrends",
1097
+ snippet: `{
1098
+ text: '',
1099
+ hl: '',
1100
+ geo: '',
1101
+ data_type: "TIMESERIES",
1102
+ cat: '',
1103
+ date: '',
1104
+ ts: '',
1105
+ }`,
1106
+ outputKeys: ["trends"]
1107
+ },
1108
+ "searchPerplexity": {
1109
+ method: "searchPerplexity",
1110
+ snippet: `{
1111
+ query: '',
1112
+ exportType: "text",
1113
+ }`,
1114
+ outputKeys: ["results"]
1115
+ },
1116
+ "searchXPosts": {
1117
+ method: "searchXPosts",
1118
+ snippet: `{
1119
+ query: '',
1120
+ scope: "recent",
1121
+ options: {},
1122
+ }`,
1123
+ outputKeys: ["posts"]
1124
+ },
1125
+ "searchYoutube": {
1126
+ method: "searchYoutube",
1127
+ snippet: "{\n query: '',\n limitPages: '',\n filter: '',\n filterType: '',\n}",
1128
+ outputKeys: ["results"]
1129
+ },
1130
+ "searchYoutubeTrends": {
1131
+ method: "searchYoutubeTrends",
1132
+ snippet: `{
1133
+ bp: "now",
1134
+ hl: '',
1135
+ gl: '',
1136
+ }`,
1137
+ outputKeys: ["trends"]
1138
+ },
1139
+ "sendEmail": {
1140
+ method: "sendEmail",
1141
+ snippet: "{\n subject: '',\n body: '',\n connectionId: '',\n}",
1142
+ outputKeys: ["recipients"]
1143
+ },
1144
+ "sendSMS": {
1145
+ method: "sendSMS",
1146
+ snippet: "{\n body: '',\n connectionId: '',\n}",
1147
+ outputKeys: []
1148
+ },
1149
+ "setRunTitle": {
1150
+ method: "setRunTitle",
1151
+ snippet: "{\n title: '',\n}",
1152
+ outputKeys: []
1153
+ },
1154
+ "setVariable": {
1155
+ method: "setVariable",
1156
+ snippet: `{
1157
+ value: '',
1158
+ type: "imageUrl",
1159
+ }`,
1160
+ outputKeys: ["variableName", "value"]
1161
+ },
1162
+ "telegramSendAudio": {
1163
+ method: "telegramSendAudio",
1164
+ snippet: `{
1165
+ botToken: '',
1166
+ chatId: '',
1167
+ audioUrl: '',
1168
+ mode: "audio",
1169
+ }`,
1170
+ outputKeys: []
1171
+ },
1172
+ "telegramSendFile": {
1173
+ method: "telegramSendFile",
1174
+ snippet: "{\n botToken: '',\n chatId: '',\n fileUrl: '',\n}",
1175
+ outputKeys: []
1176
+ },
1177
+ "telegramSendImage": {
1178
+ method: "telegramSendImage",
1179
+ snippet: "{\n botToken: '',\n chatId: '',\n imageUrl: '',\n}",
1180
+ outputKeys: []
1181
+ },
1182
+ "telegramSendMessage": {
1183
+ method: "telegramSendMessage",
1184
+ snippet: "{\n botToken: '',\n chatId: '',\n text: '',\n}",
1185
+ outputKeys: []
1186
+ },
1187
+ "telegramSendVideo": {
1188
+ method: "telegramSendVideo",
1189
+ snippet: "{\n botToken: '',\n chatId: '',\n videoUrl: '',\n}",
1190
+ outputKeys: []
1191
+ },
1192
+ "telegramSetTyping": {
1193
+ method: "telegramSetTyping",
1194
+ snippet: "{\n botToken: '',\n chatId: '',\n}",
1195
+ outputKeys: []
1196
+ },
1197
+ "textToSpeech": {
1198
+ method: "textToSpeech",
1199
+ snippet: "{\n text: '',\n}",
1200
+ outputKeys: ["audioUrl"]
1201
+ },
1202
+ "transcribeAudio": {
1203
+ method: "transcribeAudio",
1204
+ snippet: "{\n audioUrl: '',\n prompt: '',\n}",
1205
+ outputKeys: ["text"]
1206
+ },
1207
+ "trimMedia": {
1208
+ method: "trimMedia",
1209
+ snippet: "{\n inputUrl: '',\n}",
1210
+ outputKeys: ["mediaUrl"]
1211
+ },
1212
+ "updateGoogleCalendarEvent": {
1213
+ method: "updateGoogleCalendarEvent",
1214
+ snippet: "{\n connectionId: '',\n eventId: '',\n}",
1215
+ outputKeys: ["eventId", "htmlLink"]
1216
+ },
1217
+ "updateGoogleDoc": {
1218
+ method: "updateGoogleDoc",
1219
+ snippet: `{
1220
+ documentId: '',
1221
+ connectionId: '',
1222
+ text: '',
1223
+ textType: "plain",
1224
+ operationType: "addToTop",
1225
+ }`,
1226
+ outputKeys: ["documentUrl"]
1227
+ },
1228
+ "updateGoogleSheet": {
1229
+ method: "updateGoogleSheet",
1230
+ snippet: `{
1231
+ text: '',
1232
+ connectionId: '',
1233
+ spreadsheetId: '',
1234
+ range: '',
1235
+ operationType: "addToBottom",
1236
+ }`,
1237
+ outputKeys: ["spreadsheetUrl"]
1238
+ },
1239
+ "upscaleImage": {
1240
+ method: "upscaleImage",
1241
+ snippet: `{
1242
+ imageUrl: '',
1243
+ targetResolution: "2k",
1244
+ engine: "standard",
1245
+ }`,
1246
+ outputKeys: ["imageUrl"]
1247
+ },
1248
+ "upscaleVideo": {
1249
+ method: "upscaleVideo",
1250
+ snippet: `{
1251
+ videoUrl: '',
1252
+ targetResolution: "720p",
1253
+ engine: "standard",
1254
+ }`,
1255
+ outputKeys: ["videoUrl"]
1256
+ },
1257
+ "userMessage": {
1258
+ method: "userMessage",
1259
+ snippet: "{\n message: '',\n}",
1260
+ outputKeys: ["content"]
1261
+ },
1262
+ "videoFaceSwap": {
1263
+ method: "videoFaceSwap",
1264
+ snippet: "{\n videoUrl: '',\n faceImageUrl: '',\n targetIndex: 0,\n engine: '',\n}",
1265
+ outputKeys: ["videoUrl"]
1266
+ },
1267
+ "videoRemoveBackground": {
1268
+ method: "videoRemoveBackground",
1269
+ snippet: `{
1270
+ videoUrl: '',
1271
+ newBackground: "transparent",
1272
+ engine: '',
1273
+ }`,
1274
+ outputKeys: ["videoUrl"]
1275
+ },
1276
+ "videoRemoveWatermark": {
1277
+ method: "videoRemoveWatermark",
1278
+ snippet: "{\n videoUrl: '',\n engine: '',\n}",
1279
+ outputKeys: ["videoUrl"]
1280
+ },
1281
+ "watermarkImage": {
1282
+ method: "watermarkImage",
1283
+ snippet: `{
1284
+ imageUrl: '',
1285
+ watermarkImageUrl: '',
1286
+ corner: "top-left",
1287
+ paddingPx: 0,
1288
+ widthPx: 0,
1289
+ }`,
1290
+ outputKeys: ["imageUrl"]
1291
+ },
1292
+ "watermarkVideo": {
1293
+ method: "watermarkVideo",
1294
+ snippet: `{
1295
+ videoUrl: '',
1296
+ imageUrl: '',
1297
+ corner: "top-left",
1298
+ paddingPx: 0,
1299
+ widthPx: 0,
1300
+ }`,
1301
+ outputKeys: ["videoUrl"]
1302
+ }
1303
+ };
1304
+
494
1305
  // src/index.ts
495
1306
  var MindStudioAgent2 = MindStudioAgent;
496
1307
  export {
497
1308
  MindStudioAgent2 as MindStudioAgent,
498
- MindStudioError
1309
+ MindStudioError,
1310
+ stepSnippets
499
1311
  };
500
1312
  //# sourceMappingURL=index.js.map