@superagnt/heyreach-outreach 2.0.4 → 2.0.5
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/index.js +61 -60
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -7,7 +7,8 @@ import { homedir as _homedir } from 'node:os'
|
|
|
7
7
|
import { join as _join } from 'node:path'
|
|
8
8
|
import { existsSync as _existsSync, readFileSync as _readFileSync } from 'node:fs'
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// SUPERAGNT_API_URL overrides the API origin (QA/staging); customers never set it.
|
|
11
|
+
const BASE_URL = (process.env.SUPERAGNT_API_URL || 'https://api.superagnt.com') + '/v1/connections/heyreach'
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
// ── Auth Module (inlined) ────────────────────────────────────────────────────
|
|
@@ -99,7 +100,7 @@ export default function register(api) {
|
|
|
99
100
|
"type": "object",
|
|
100
101
|
"properties": {}
|
|
101
102
|
},
|
|
102
|
-
execute: async (input) => {
|
|
103
|
+
execute: async (_toolCallId, input) => {
|
|
103
104
|
const key = ensureApiKey()
|
|
104
105
|
const params = parseToolInput(input)
|
|
105
106
|
return callSuperagnt(key, 'GET', '/auth/CheckApiKey', params)
|
|
@@ -134,7 +135,7 @@ export default function register(api) {
|
|
|
134
135
|
}
|
|
135
136
|
}
|
|
136
137
|
},
|
|
137
|
-
execute: async (input) => {
|
|
138
|
+
execute: async (_toolCallId, input) => {
|
|
138
139
|
const key = ensureApiKey()
|
|
139
140
|
const params = parseToolInput(input)
|
|
140
141
|
return callSuperagnt(key, 'POST', '/campaign/GetAll', undefined, params)
|
|
@@ -156,7 +157,7 @@ export default function register(api) {
|
|
|
156
157
|
"campaignId"
|
|
157
158
|
]
|
|
158
159
|
},
|
|
159
|
-
execute: async (input) => {
|
|
160
|
+
execute: async (_toolCallId, input) => {
|
|
160
161
|
const key = ensureApiKey()
|
|
161
162
|
const params = parseToolInput(input)
|
|
162
163
|
return callSuperagnt(key, 'GET', '/campaign/GetById', params)
|
|
@@ -178,7 +179,7 @@ export default function register(api) {
|
|
|
178
179
|
"campaignId"
|
|
179
180
|
]
|
|
180
181
|
},
|
|
181
|
-
execute: async (input) => {
|
|
182
|
+
execute: async (_toolCallId, input) => {
|
|
182
183
|
const key = ensureApiKey()
|
|
183
184
|
const params = parseToolInput(input)
|
|
184
185
|
return callSuperagnt(key, 'POST', '/campaign/Pause', undefined, params)
|
|
@@ -200,7 +201,7 @@ export default function register(api) {
|
|
|
200
201
|
"campaignId"
|
|
201
202
|
]
|
|
202
203
|
},
|
|
203
|
-
execute: async (input) => {
|
|
204
|
+
execute: async (_toolCallId, input) => {
|
|
204
205
|
const key = ensureApiKey()
|
|
205
206
|
const params = parseToolInput(input)
|
|
206
207
|
return callSuperagnt(key, 'POST', '/campaign/Resume', undefined, params)
|
|
@@ -222,7 +223,7 @@ export default function register(api) {
|
|
|
222
223
|
"campaignId"
|
|
223
224
|
]
|
|
224
225
|
},
|
|
225
|
-
execute: async (input) => {
|
|
226
|
+
execute: async (_toolCallId, input) => {
|
|
226
227
|
const key = ensureApiKey()
|
|
227
228
|
const params = parseToolInput(input)
|
|
228
229
|
return callSuperagnt(key, 'POST', '/campaign/StartCampaign', undefined, params)
|
|
@@ -263,7 +264,7 @@ export default function register(api) {
|
|
|
263
264
|
"sequence"
|
|
264
265
|
]
|
|
265
266
|
},
|
|
266
|
-
execute: async (input) => {
|
|
267
|
+
execute: async (_toolCallId, input) => {
|
|
267
268
|
const key = ensureApiKey()
|
|
268
269
|
const params = parseToolInput(input)
|
|
269
270
|
return callSuperagnt(key, 'POST', '/campaign/Create', undefined, params)
|
|
@@ -315,7 +316,7 @@ export default function register(api) {
|
|
|
315
316
|
"linkedInAcccountIdsForCampaign"
|
|
316
317
|
]
|
|
317
318
|
},
|
|
318
|
-
execute: async (input) => {
|
|
319
|
+
execute: async (_toolCallId, input) => {
|
|
319
320
|
const key = ensureApiKey()
|
|
320
321
|
const params = parseToolInput(input)
|
|
321
322
|
return callSuperagnt(key, 'POST', '/campaign/CreateCampaignFromTemplate', undefined, params)
|
|
@@ -361,7 +362,7 @@ export default function register(api) {
|
|
|
361
362
|
"campaignId"
|
|
362
363
|
]
|
|
363
364
|
},
|
|
364
|
-
execute: async (input) => {
|
|
365
|
+
execute: async (_toolCallId, input) => {
|
|
365
366
|
const key = ensureApiKey()
|
|
366
367
|
const params = parseToolInput(input)
|
|
367
368
|
return callSuperagnt(key, 'POST', '/campaign/UpdateSettings', undefined, params)
|
|
@@ -388,7 +389,7 @@ export default function register(api) {
|
|
|
388
389
|
"schedule"
|
|
389
390
|
]
|
|
390
391
|
},
|
|
391
|
-
execute: async (input) => {
|
|
392
|
+
execute: async (_toolCallId, input) => {
|
|
392
393
|
const key = ensureApiKey()
|
|
393
394
|
const params = parseToolInput(input)
|
|
394
395
|
return callSuperagnt(key, 'POST', '/campaign/UpdateSchedule', undefined, params)
|
|
@@ -415,7 +416,7 @@ export default function register(api) {
|
|
|
415
416
|
"linkedInAccountIds"
|
|
416
417
|
]
|
|
417
418
|
},
|
|
418
|
-
execute: async (input) => {
|
|
419
|
+
execute: async (_toolCallId, input) => {
|
|
419
420
|
const key = ensureApiKey()
|
|
420
421
|
const params = parseToolInput(input)
|
|
421
422
|
return callSuperagnt(key, 'POST', '/campaign/UpdateAccounts', undefined, params)
|
|
@@ -442,7 +443,7 @@ export default function register(api) {
|
|
|
442
443
|
"sequence"
|
|
443
444
|
]
|
|
444
445
|
},
|
|
445
|
-
execute: async (input) => {
|
|
446
|
+
execute: async (_toolCallId, input) => {
|
|
446
447
|
const key = ensureApiKey()
|
|
447
448
|
const params = parseToolInput(input)
|
|
448
449
|
return callSuperagnt(key, 'POST', '/campaign/UpdateSequence', undefined, params)
|
|
@@ -464,7 +465,7 @@ export default function register(api) {
|
|
|
464
465
|
"campaignId"
|
|
465
466
|
]
|
|
466
467
|
},
|
|
467
|
-
execute: async (input) => {
|
|
468
|
+
execute: async (_toolCallId, input) => {
|
|
468
469
|
const key = ensureApiKey()
|
|
469
470
|
const params = parseToolInput(input)
|
|
470
471
|
return callSuperagnt(key, 'GET', '/campaign/GetCampaignSequence', params)
|
|
@@ -491,7 +492,7 @@ export default function register(api) {
|
|
|
491
492
|
"accountLeadPairs"
|
|
492
493
|
]
|
|
493
494
|
},
|
|
494
|
-
execute: async (input) => {
|
|
495
|
+
execute: async (_toolCallId, input) => {
|
|
495
496
|
const key = ensureApiKey()
|
|
496
497
|
const params = parseToolInput(input)
|
|
497
498
|
return callSuperagnt(key, 'POST', '/campaign/AddLeadsToCampaignV2', undefined, params)
|
|
@@ -526,7 +527,7 @@ export default function register(api) {
|
|
|
526
527
|
"accountLeadPairs"
|
|
527
528
|
]
|
|
528
529
|
},
|
|
529
|
-
execute: async (input) => {
|
|
530
|
+
execute: async (_toolCallId, input) => {
|
|
530
531
|
const key = ensureApiKey()
|
|
531
532
|
const params = parseToolInput(input)
|
|
532
533
|
return callSuperagnt(key, 'POST', '/campaign/AddLeadsToCampaign', undefined, params)
|
|
@@ -556,7 +557,7 @@ export default function register(api) {
|
|
|
556
557
|
"campaignId"
|
|
557
558
|
]
|
|
558
559
|
},
|
|
559
|
-
execute: async (input) => {
|
|
560
|
+
execute: async (_toolCallId, input) => {
|
|
560
561
|
const key = ensureApiKey()
|
|
561
562
|
const params = parseToolInput(input)
|
|
562
563
|
return callSuperagnt(key, 'POST', '/campaign/StopLeadInCampaign', undefined, params)
|
|
@@ -598,7 +599,7 @@ export default function register(api) {
|
|
|
598
599
|
"campaignId"
|
|
599
600
|
]
|
|
600
601
|
},
|
|
601
|
-
execute: async (input) => {
|
|
602
|
+
execute: async (_toolCallId, input) => {
|
|
602
603
|
const key = ensureApiKey()
|
|
603
604
|
const params = parseToolInput(input)
|
|
604
605
|
return callSuperagnt(key, 'POST', '/campaign/GetLeadsFromCampaign', undefined, params)
|
|
@@ -633,7 +634,7 @@ export default function register(api) {
|
|
|
633
634
|
}
|
|
634
635
|
}
|
|
635
636
|
},
|
|
636
|
-
execute: async (input) => {
|
|
637
|
+
execute: async (_toolCallId, input) => {
|
|
637
638
|
const key = ensureApiKey()
|
|
638
639
|
const params = parseToolInput(input)
|
|
639
640
|
return callSuperagnt(key, 'POST', '/campaign/GetCampaignsForLead', undefined, params)
|
|
@@ -660,7 +661,7 @@ export default function register(api) {
|
|
|
660
661
|
}
|
|
661
662
|
}
|
|
662
663
|
},
|
|
663
|
-
execute: async (input) => {
|
|
664
|
+
execute: async (_toolCallId, input) => {
|
|
664
665
|
const key = ensureApiKey()
|
|
665
666
|
const params = parseToolInput(input)
|
|
666
667
|
return callSuperagnt(key, 'POST', '/inbox/GetConversationsV2', undefined, params)
|
|
@@ -687,7 +688,7 @@ export default function register(api) {
|
|
|
687
688
|
"conversationId"
|
|
688
689
|
]
|
|
689
690
|
},
|
|
690
|
-
execute: async (input) => {
|
|
691
|
+
execute: async (_toolCallId, input) => {
|
|
691
692
|
const key = ensureApiKey()
|
|
692
693
|
const params = parseToolInput(input)
|
|
693
694
|
return callSuperagnt(key, 'GET', '/inbox/GetChatroom/{accountId}/{conversationId}', params)
|
|
@@ -723,7 +724,7 @@ export default function register(api) {
|
|
|
723
724
|
"linkedInAccountId"
|
|
724
725
|
]
|
|
725
726
|
},
|
|
726
|
-
execute: async (input) => {
|
|
727
|
+
execute: async (_toolCallId, input) => {
|
|
727
728
|
const key = ensureApiKey()
|
|
728
729
|
const params = parseToolInput(input)
|
|
729
730
|
return callSuperagnt(key, 'POST', '/inbox/SendMessage', undefined, params)
|
|
@@ -755,7 +756,7 @@ export default function register(api) {
|
|
|
755
756
|
"seen"
|
|
756
757
|
]
|
|
757
758
|
},
|
|
758
|
-
execute: async (input) => {
|
|
759
|
+
execute: async (_toolCallId, input) => {
|
|
759
760
|
const key = ensureApiKey()
|
|
760
761
|
const params = parseToolInput(input)
|
|
761
762
|
return callSuperagnt(key, 'POST', '/inbox/SetSeenStatus', undefined, params)
|
|
@@ -782,7 +783,7 @@ export default function register(api) {
|
|
|
782
783
|
}
|
|
783
784
|
}
|
|
784
785
|
},
|
|
785
|
-
execute: async (input) => {
|
|
786
|
+
execute: async (_toolCallId, input) => {
|
|
786
787
|
const key = ensureApiKey()
|
|
787
788
|
const params = parseToolInput(input)
|
|
788
789
|
return callSuperagnt(key, 'POST', '/li_account/GetAll', undefined, params)
|
|
@@ -804,7 +805,7 @@ export default function register(api) {
|
|
|
804
805
|
"accountId"
|
|
805
806
|
]
|
|
806
807
|
},
|
|
807
|
-
execute: async (input) => {
|
|
808
|
+
execute: async (_toolCallId, input) => {
|
|
808
809
|
const key = ensureApiKey()
|
|
809
810
|
const params = parseToolInput(input)
|
|
810
811
|
return callSuperagnt(key, 'GET', '/li_account/GetById', params)
|
|
@@ -835,7 +836,7 @@ export default function register(api) {
|
|
|
835
836
|
}
|
|
836
837
|
}
|
|
837
838
|
},
|
|
838
|
-
execute: async (input) => {
|
|
839
|
+
execute: async (_toolCallId, input) => {
|
|
839
840
|
const key = ensureApiKey()
|
|
840
841
|
const params = parseToolInput(input)
|
|
841
842
|
return callSuperagnt(key, 'POST', '/list/GetAll', undefined, params)
|
|
@@ -857,7 +858,7 @@ export default function register(api) {
|
|
|
857
858
|
"listId"
|
|
858
859
|
]
|
|
859
860
|
},
|
|
860
|
-
execute: async (input) => {
|
|
861
|
+
execute: async (_toolCallId, input) => {
|
|
861
862
|
const key = ensureApiKey()
|
|
862
863
|
const params = parseToolInput(input)
|
|
863
864
|
return callSuperagnt(key, 'GET', '/list/GetById', params)
|
|
@@ -884,7 +885,7 @@ export default function register(api) {
|
|
|
884
885
|
"type"
|
|
885
886
|
]
|
|
886
887
|
},
|
|
887
|
-
execute: async (input) => {
|
|
888
|
+
execute: async (_toolCallId, input) => {
|
|
888
889
|
const key = ensureApiKey()
|
|
889
890
|
const params = parseToolInput(input)
|
|
890
891
|
return callSuperagnt(key, 'POST', '/list/CreateEmptyList', undefined, params)
|
|
@@ -934,7 +935,7 @@ export default function register(api) {
|
|
|
934
935
|
"listId"
|
|
935
936
|
]
|
|
936
937
|
},
|
|
937
|
-
execute: async (input) => {
|
|
938
|
+
execute: async (_toolCallId, input) => {
|
|
938
939
|
const key = ensureApiKey()
|
|
939
940
|
const params = parseToolInput(input)
|
|
940
941
|
return callSuperagnt(key, 'POST', '/list/GetLeadsFromList', undefined, params)
|
|
@@ -968,7 +969,7 @@ export default function register(api) {
|
|
|
968
969
|
"listId"
|
|
969
970
|
]
|
|
970
971
|
},
|
|
971
|
-
execute: async (input) => {
|
|
972
|
+
execute: async (_toolCallId, input) => {
|
|
972
973
|
const key = ensureApiKey()
|
|
973
974
|
const params = parseToolInput(input)
|
|
974
975
|
return callSuperagnt(key, 'POST', '/list/GetCompaniesFromList', undefined, params)
|
|
@@ -995,7 +996,7 @@ export default function register(api) {
|
|
|
995
996
|
"leads"
|
|
996
997
|
]
|
|
997
998
|
},
|
|
998
|
-
execute: async (input) => {
|
|
999
|
+
execute: async (_toolCallId, input) => {
|
|
999
1000
|
const key = ensureApiKey()
|
|
1000
1001
|
const params = parseToolInput(input)
|
|
1001
1002
|
return callSuperagnt(key, 'POST', '/list/AddLeadsToListV2', undefined, params)
|
|
@@ -1022,7 +1023,7 @@ export default function register(api) {
|
|
|
1022
1023
|
"leads"
|
|
1023
1024
|
]
|
|
1024
1025
|
},
|
|
1025
|
-
execute: async (input) => {
|
|
1026
|
+
execute: async (_toolCallId, input) => {
|
|
1026
1027
|
const key = ensureApiKey()
|
|
1027
1028
|
const params = parseToolInput(input)
|
|
1028
1029
|
return callSuperagnt(key, 'POST', '/list/AddLeadsToList', undefined, params)
|
|
@@ -1049,7 +1050,7 @@ export default function register(api) {
|
|
|
1049
1050
|
"leadMemberIds"
|
|
1050
1051
|
]
|
|
1051
1052
|
},
|
|
1052
|
-
execute: async (input) => {
|
|
1053
|
+
execute: async (_toolCallId, input) => {
|
|
1053
1054
|
const key = ensureApiKey()
|
|
1054
1055
|
const params = parseToolInput(input)
|
|
1055
1056
|
return callSuperagnt(key, 'DELETE', '/list/DeleteLeadsFromList', undefined, params)
|
|
@@ -1076,7 +1077,7 @@ export default function register(api) {
|
|
|
1076
1077
|
"profileUrls"
|
|
1077
1078
|
]
|
|
1078
1079
|
},
|
|
1079
|
-
execute: async (input) => {
|
|
1080
|
+
execute: async (_toolCallId, input) => {
|
|
1080
1081
|
const key = ensureApiKey()
|
|
1081
1082
|
const params = parseToolInput(input)
|
|
1082
1083
|
return callSuperagnt(key, 'DELETE', '/list/DeleteLeadsFromListByProfileUrl', undefined, params)
|
|
@@ -1111,7 +1112,7 @@ export default function register(api) {
|
|
|
1111
1112
|
}
|
|
1112
1113
|
}
|
|
1113
1114
|
},
|
|
1114
|
-
execute: async (input) => {
|
|
1115
|
+
execute: async (_toolCallId, input) => {
|
|
1115
1116
|
const key = ensureApiKey()
|
|
1116
1117
|
const params = parseToolInput(input)
|
|
1117
1118
|
return callSuperagnt(key, 'POST', '/list/GetListsForLead', undefined, params)
|
|
@@ -1133,7 +1134,7 @@ export default function register(api) {
|
|
|
1133
1134
|
"profileUrl"
|
|
1134
1135
|
]
|
|
1135
1136
|
},
|
|
1136
|
-
execute: async (input) => {
|
|
1137
|
+
execute: async (_toolCallId, input) => {
|
|
1137
1138
|
const key = ensureApiKey()
|
|
1138
1139
|
const params = parseToolInput(input)
|
|
1139
1140
|
return callSuperagnt(key, 'POST', '/lead/GetLead', undefined, params)
|
|
@@ -1167,7 +1168,7 @@ export default function register(api) {
|
|
|
1167
1168
|
"tags"
|
|
1168
1169
|
]
|
|
1169
1170
|
},
|
|
1170
|
-
execute: async (input) => {
|
|
1171
|
+
execute: async (_toolCallId, input) => {
|
|
1171
1172
|
const key = ensureApiKey()
|
|
1172
1173
|
const params = parseToolInput(input)
|
|
1173
1174
|
return callSuperagnt(key, 'POST', '/lead/AddTags', undefined, params)
|
|
@@ -1201,7 +1202,7 @@ export default function register(api) {
|
|
|
1201
1202
|
"tags"
|
|
1202
1203
|
]
|
|
1203
1204
|
},
|
|
1204
|
-
execute: async (input) => {
|
|
1205
|
+
execute: async (_toolCallId, input) => {
|
|
1205
1206
|
const key = ensureApiKey()
|
|
1206
1207
|
const params = parseToolInput(input)
|
|
1207
1208
|
return callSuperagnt(key, 'POST', '/lead/ReplaceTags', undefined, params)
|
|
@@ -1223,7 +1224,7 @@ export default function register(api) {
|
|
|
1223
1224
|
"profileUrl"
|
|
1224
1225
|
]
|
|
1225
1226
|
},
|
|
1226
|
-
execute: async (input) => {
|
|
1227
|
+
execute: async (_toolCallId, input) => {
|
|
1227
1228
|
const key = ensureApiKey()
|
|
1228
1229
|
const params = parseToolInput(input)
|
|
1229
1230
|
return callSuperagnt(key, 'POST', '/lead/GetTags', undefined, params)
|
|
@@ -1245,7 +1246,7 @@ export default function register(api) {
|
|
|
1245
1246
|
"tags"
|
|
1246
1247
|
]
|
|
1247
1248
|
},
|
|
1248
|
-
execute: async (input) => {
|
|
1249
|
+
execute: async (_toolCallId, input) => {
|
|
1249
1250
|
const key = ensureApiKey()
|
|
1250
1251
|
const params = parseToolInput(input)
|
|
1251
1252
|
return callSuperagnt(key, 'POST', '/lead_tags/CreateTags', undefined, params)
|
|
@@ -1276,7 +1277,7 @@ export default function register(api) {
|
|
|
1276
1277
|
}
|
|
1277
1278
|
}
|
|
1278
1279
|
},
|
|
1279
|
-
execute: async (input) => {
|
|
1280
|
+
execute: async (_toolCallId, input) => {
|
|
1280
1281
|
const key = ensureApiKey()
|
|
1281
1282
|
const params = parseToolInput(input)
|
|
1282
1283
|
return callSuperagnt(key, 'POST', '/stats/GetOverallStats', undefined, params)
|
|
@@ -1307,7 +1308,7 @@ export default function register(api) {
|
|
|
1307
1308
|
}
|
|
1308
1309
|
}
|
|
1309
1310
|
},
|
|
1310
|
-
execute: async (input) => {
|
|
1311
|
+
execute: async (_toolCallId, input) => {
|
|
1311
1312
|
const key = ensureApiKey()
|
|
1312
1313
|
const params = parseToolInput(input)
|
|
1313
1314
|
return callSuperagnt(key, 'POST', '/stats/GetOverallStatsByCampaign', undefined, params)
|
|
@@ -1341,7 +1342,7 @@ export default function register(api) {
|
|
|
1341
1342
|
"senderId"
|
|
1342
1343
|
]
|
|
1343
1344
|
},
|
|
1344
|
-
execute: async (input) => {
|
|
1345
|
+
execute: async (_toolCallId, input) => {
|
|
1345
1346
|
const key = ensureApiKey()
|
|
1346
1347
|
const params = parseToolInput(input)
|
|
1347
1348
|
return callSuperagnt(key, 'POST', '/MyNetwork/GetMyNetworkForSender', undefined, params)
|
|
@@ -1371,7 +1372,7 @@ export default function register(api) {
|
|
|
1371
1372
|
"senderAccountId"
|
|
1372
1373
|
]
|
|
1373
1374
|
},
|
|
1374
|
-
execute: async (input) => {
|
|
1375
|
+
execute: async (_toolCallId, input) => {
|
|
1375
1376
|
const key = ensureApiKey()
|
|
1376
1377
|
const params = parseToolInput(input)
|
|
1377
1378
|
return callSuperagnt(key, 'POST', '/MyNetwork/IsConnection', undefined, params)
|
|
@@ -1411,7 +1412,7 @@ export default function register(api) {
|
|
|
1411
1412
|
"eventType"
|
|
1412
1413
|
]
|
|
1413
1414
|
},
|
|
1414
|
-
execute: async (input) => {
|
|
1415
|
+
execute: async (_toolCallId, input) => {
|
|
1415
1416
|
const key = ensureApiKey()
|
|
1416
1417
|
const params = parseToolInput(input)
|
|
1417
1418
|
return callSuperagnt(key, 'POST', '/webhooks/CreateWebhook', undefined, params)
|
|
@@ -1437,7 +1438,7 @@ export default function register(api) {
|
|
|
1437
1438
|
"webhookId"
|
|
1438
1439
|
]
|
|
1439
1440
|
},
|
|
1440
|
-
execute: async (input) => {
|
|
1441
|
+
execute: async (_toolCallId, input) => {
|
|
1441
1442
|
const key = ensureApiKey()
|
|
1442
1443
|
const params = parseToolInput(input)
|
|
1443
1444
|
return callSuperagnt(key, 'GET', '/webhooks/GetWebhookById', params)
|
|
@@ -1464,7 +1465,7 @@ export default function register(api) {
|
|
|
1464
1465
|
}
|
|
1465
1466
|
}
|
|
1466
1467
|
},
|
|
1467
|
-
execute: async (input) => {
|
|
1468
|
+
execute: async (_toolCallId, input) => {
|
|
1468
1469
|
const key = ensureApiKey()
|
|
1469
1470
|
const params = parseToolInput(input)
|
|
1470
1471
|
return callSuperagnt(key, 'POST', '/webhooks/GetAllWebhooks', undefined, params)
|
|
@@ -1510,7 +1511,7 @@ export default function register(api) {
|
|
|
1510
1511
|
"webhookId"
|
|
1511
1512
|
]
|
|
1512
1513
|
},
|
|
1513
|
-
execute: async (input) => {
|
|
1514
|
+
execute: async (_toolCallId, input) => {
|
|
1514
1515
|
const key = ensureApiKey()
|
|
1515
1516
|
const params = parseToolInput(input)
|
|
1516
1517
|
return callSuperagnt(key, 'PATCH', '/webhooks/UpdateWebhook', undefined, params)
|
|
@@ -1532,7 +1533,7 @@ export default function register(api) {
|
|
|
1532
1533
|
"webhookId"
|
|
1533
1534
|
]
|
|
1534
1535
|
},
|
|
1535
|
-
execute: async (input) => {
|
|
1536
|
+
execute: async (_toolCallId, input) => {
|
|
1536
1537
|
const key = ensureApiKey()
|
|
1537
1538
|
const params = parseToolInput(input)
|
|
1538
1539
|
return callSuperagnt(key, 'DELETE', '/webhooks/DeleteWebhook', undefined, params)
|
|
@@ -1555,7 +1556,7 @@ export default function register(api) {
|
|
|
1555
1556
|
}
|
|
1556
1557
|
}
|
|
1557
1558
|
},
|
|
1558
|
-
execute: async (input) => {
|
|
1559
|
+
execute: async (_toolCallId, input) => {
|
|
1559
1560
|
const key = ensureApiKey()
|
|
1560
1561
|
const params = parseToolInput(input)
|
|
1561
1562
|
return callSuperagnt(key, 'GET', '/management/organizations/workspaces', params)
|
|
@@ -1581,7 +1582,7 @@ export default function register(api) {
|
|
|
1581
1582
|
"workspaceName"
|
|
1582
1583
|
]
|
|
1583
1584
|
},
|
|
1584
|
-
execute: async (input) => {
|
|
1585
|
+
execute: async (_toolCallId, input) => {
|
|
1585
1586
|
const key = ensureApiKey()
|
|
1586
1587
|
const params = parseToolInput(input)
|
|
1587
1588
|
return callSuperagnt(key, 'POST', '/management/organizations/workspaces', undefined, params)
|
|
@@ -1611,7 +1612,7 @@ export default function register(api) {
|
|
|
1611
1612
|
"workspaceId"
|
|
1612
1613
|
]
|
|
1613
1614
|
},
|
|
1614
|
-
execute: async (input) => {
|
|
1615
|
+
execute: async (_toolCallId, input) => {
|
|
1615
1616
|
const key = ensureApiKey()
|
|
1616
1617
|
const params = parseToolInput(input)
|
|
1617
1618
|
return callSuperagnt(key, 'PATCH', '/management/organizations/workspaces/{workspaceId}', undefined, params)
|
|
@@ -1633,7 +1634,7 @@ export default function register(api) {
|
|
|
1633
1634
|
"workspaceId"
|
|
1634
1635
|
]
|
|
1635
1636
|
},
|
|
1636
|
-
execute: async (input) => {
|
|
1637
|
+
execute: async (_toolCallId, input) => {
|
|
1637
1638
|
const key = ensureApiKey()
|
|
1638
1639
|
const params = parseToolInput(input)
|
|
1639
1640
|
return callSuperagnt(key, 'GET', '/management/organizations/api-keys/workspaces/{workspaceId}', params)
|
|
@@ -1660,7 +1661,7 @@ export default function register(api) {
|
|
|
1660
1661
|
"apiKeyType"
|
|
1661
1662
|
]
|
|
1662
1663
|
},
|
|
1663
|
-
execute: async (input) => {
|
|
1664
|
+
execute: async (_toolCallId, input) => {
|
|
1664
1665
|
const key = ensureApiKey()
|
|
1665
1666
|
const params = parseToolInput(input)
|
|
1666
1667
|
return callSuperagnt(key, 'POST', '/management/organizations/api-keys/workspaces/{workspaceId}', undefined, params)
|
|
@@ -1691,7 +1692,7 @@ export default function register(api) {
|
|
|
1691
1692
|
}
|
|
1692
1693
|
}
|
|
1693
1694
|
},
|
|
1694
|
-
execute: async (input) => {
|
|
1695
|
+
execute: async (_toolCallId, input) => {
|
|
1695
1696
|
const key = ensureApiKey()
|
|
1696
1697
|
const params = parseToolInput(input)
|
|
1697
1698
|
return callSuperagnt(key, 'POST', '/management/organizations/users', undefined, params)
|
|
@@ -1713,7 +1714,7 @@ export default function register(api) {
|
|
|
1713
1714
|
"userId"
|
|
1714
1715
|
]
|
|
1715
1716
|
},
|
|
1716
|
-
execute: async (input) => {
|
|
1717
|
+
execute: async (_toolCallId, input) => {
|
|
1717
1718
|
const key = ensureApiKey()
|
|
1718
1719
|
const params = parseToolInput(input)
|
|
1719
1720
|
return callSuperagnt(key, 'GET', '/management/organizations/users/{userId}', params)
|
|
@@ -1751,7 +1752,7 @@ export default function register(api) {
|
|
|
1751
1752
|
"workspaceId"
|
|
1752
1753
|
]
|
|
1753
1754
|
},
|
|
1754
|
-
execute: async (input) => {
|
|
1755
|
+
execute: async (_toolCallId, input) => {
|
|
1755
1756
|
const key = ensureApiKey()
|
|
1756
1757
|
const params = parseToolInput(input)
|
|
1757
1758
|
return callSuperagnt(key, 'POST', '/management/organizations/users/workspaces/{workspaceId}', undefined, params)
|
|
@@ -1778,7 +1779,7 @@ export default function register(api) {
|
|
|
1778
1779
|
"emails"
|
|
1779
1780
|
]
|
|
1780
1781
|
},
|
|
1781
|
-
execute: async (input) => {
|
|
1782
|
+
execute: async (_toolCallId, input) => {
|
|
1782
1783
|
const key = ensureApiKey()
|
|
1783
1784
|
const params = parseToolInput(input)
|
|
1784
1785
|
return callSuperagnt(key, 'POST', '/management/organizations/users/invite/admins', undefined, params)
|
|
@@ -1810,7 +1811,7 @@ export default function register(api) {
|
|
|
1810
1811
|
"workspaceIds"
|
|
1811
1812
|
]
|
|
1812
1813
|
},
|
|
1813
|
-
execute: async (input) => {
|
|
1814
|
+
execute: async (_toolCallId, input) => {
|
|
1814
1815
|
const key = ensureApiKey()
|
|
1815
1816
|
const params = parseToolInput(input)
|
|
1816
1817
|
return callSuperagnt(key, 'POST', '/management/organizations/users/invite/managers', undefined, params)
|
|
@@ -1847,7 +1848,7 @@ export default function register(api) {
|
|
|
1847
1848
|
"permissions"
|
|
1848
1849
|
]
|
|
1849
1850
|
},
|
|
1850
|
-
execute: async (input) => {
|
|
1851
|
+
execute: async (_toolCallId, input) => {
|
|
1851
1852
|
const key = ensureApiKey()
|
|
1852
1853
|
const params = parseToolInput(input)
|
|
1853
1854
|
return callSuperagnt(key, 'POST', '/management/organizations/users/invite/members', undefined, params)
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "heyreach-outreach",
|
|
3
3
|
"name": "HeyReach Integration",
|
|
4
4
|
"description": "OpenClaw plugin for HeyReach LinkedIn outreach — manage campaigns, leads, lead lists, conversations, and analytics with your superagnt API key.",
|
|
5
|
-
"version": "2.0.
|
|
5
|
+
"version": "2.0.5",
|
|
6
6
|
"contracts": {
|
|
7
7
|
"tools": [
|
|
8
8
|
"superagnt_connection_heyreach_auth_check_api_key",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superagnt/heyreach-outreach",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "OpenClaw plugin for HeyReach LinkedIn outreach — manage campaigns, leads, lead lists, conversations, and analytics with your superagnt API key.",
|
|
6
6
|
"main": "index.js",
|