@superagnt/heyreach-outreach 2.0.3 → 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 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
- const BASE_URL = 'https://api.superagnt.com/v1/connections/heyreach'
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) ────────────────────────────────────────────────────
@@ -95,11 +96,11 @@ export default function register(api) {
95
96
  api.registerTool({
96
97
  name: 'superagnt_connection_heyreach_auth_check_api_key',
97
98
  description: "Check API Key",
98
- inputSchema: {
99
+ parameters: {
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)
@@ -109,7 +110,7 @@ export default function register(api) {
109
110
  api.registerTool({
110
111
  name: 'superagnt_connection_heyreach_campaign_get_all',
111
112
  description: "List campaigns",
112
- inputSchema: {
113
+ parameters: {
113
114
  "type": "object",
114
115
  "properties": {
115
116
  "offset": {
@@ -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)
@@ -144,7 +145,7 @@ export default function register(api) {
144
145
  api.registerTool({
145
146
  name: 'superagnt_connection_heyreach_campaign_get_by_id',
146
147
  description: "Get campaign by ID",
147
- inputSchema: {
148
+ parameters: {
148
149
  "type": "object",
149
150
  "properties": {
150
151
  "campaignId": {
@@ -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)
@@ -166,7 +167,7 @@ export default function register(api) {
166
167
  api.registerTool({
167
168
  name: 'superagnt_connection_heyreach_campaign_pause',
168
169
  description: "Pause campaign",
169
- inputSchema: {
170
+ parameters: {
170
171
  "type": "object",
171
172
  "properties": {
172
173
  "campaignId": {
@@ -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)
@@ -188,7 +189,7 @@ export default function register(api) {
188
189
  api.registerTool({
189
190
  name: 'superagnt_connection_heyreach_campaign_resume',
190
191
  description: "Resume campaign",
191
- inputSchema: {
192
+ parameters: {
192
193
  "type": "object",
193
194
  "properties": {
194
195
  "campaignId": {
@@ -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)
@@ -210,7 +211,7 @@ export default function register(api) {
210
211
  api.registerTool({
211
212
  name: 'superagnt_connection_heyreach_campaign_start',
212
213
  description: "Start campaign",
213
- inputSchema: {
214
+ parameters: {
214
215
  "type": "object",
215
216
  "properties": {
216
217
  "campaignId": {
@@ -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)
@@ -232,7 +233,7 @@ export default function register(api) {
232
233
  api.registerTool({
233
234
  name: 'superagnt_connection_heyreach_campaign_create',
234
235
  description: "Create campaign",
235
- inputSchema: {
236
+ parameters: {
236
237
  "type": "object",
237
238
  "properties": {
238
239
  "name": {
@@ -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)
@@ -273,7 +274,7 @@ export default function register(api) {
273
274
  api.registerTool({
274
275
  name: 'superagnt_connection_heyreach_campaign_create_from_template',
275
276
  description: "Create campaign from template",
276
- inputSchema: {
277
+ parameters: {
277
278
  "type": "object",
278
279
  "properties": {
279
280
  "campaignIdForTemplate": {
@@ -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)
@@ -325,7 +326,7 @@ export default function register(api) {
325
326
  api.registerTool({
326
327
  name: 'superagnt_connection_heyreach_campaign_update_settings',
327
328
  description: "Update campaign settings",
328
- inputSchema: {
329
+ parameters: {
329
330
  "type": "object",
330
331
  "properties": {
331
332
  "campaignId": {
@@ -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)
@@ -371,7 +372,7 @@ export default function register(api) {
371
372
  api.registerTool({
372
373
  name: 'superagnt_connection_heyreach_campaign_update_schedule',
373
374
  description: "Update campaign schedule",
374
- inputSchema: {
375
+ parameters: {
375
376
  "type": "object",
376
377
  "properties": {
377
378
  "campaignId": {
@@ -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)
@@ -398,7 +399,7 @@ export default function register(api) {
398
399
  api.registerTool({
399
400
  name: 'superagnt_connection_heyreach_campaign_update_accounts',
400
401
  description: "Update campaign sender accounts",
401
- inputSchema: {
402
+ parameters: {
402
403
  "type": "object",
403
404
  "properties": {
404
405
  "campaignId": {
@@ -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)
@@ -425,7 +426,7 @@ export default function register(api) {
425
426
  api.registerTool({
426
427
  name: 'superagnt_connection_heyreach_campaign_update_sequence',
427
428
  description: "Update campaign sequence",
428
- inputSchema: {
429
+ parameters: {
429
430
  "type": "object",
430
431
  "properties": {
431
432
  "campaignId": {
@@ -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)
@@ -452,7 +453,7 @@ export default function register(api) {
452
453
  api.registerTool({
453
454
  name: 'superagnt_connection_heyreach_campaign_get_sequence',
454
455
  description: "Get campaign sequence",
455
- inputSchema: {
456
+ parameters: {
456
457
  "type": "object",
457
458
  "properties": {
458
459
  "campaignId": {
@@ -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)
@@ -474,7 +475,7 @@ export default function register(api) {
474
475
  api.registerTool({
475
476
  name: 'superagnt_connection_heyreach_campaign_add_leads_v2',
476
477
  description: "Add leads to campaign",
477
- inputSchema: {
478
+ parameters: {
478
479
  "type": "object",
479
480
  "properties": {
480
481
  "campaignId": {
@@ -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)
@@ -501,7 +502,7 @@ export default function register(api) {
501
502
  api.registerTool({
502
503
  name: 'superagnt_connection_heyreach_campaign_add_leads',
503
504
  description: "Add leads to campaign (v1, legacy)",
504
- inputSchema: {
505
+ parameters: {
505
506
  "type": "object",
506
507
  "properties": {
507
508
  "campaignId": {
@@ -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)
@@ -536,7 +537,7 @@ export default function register(api) {
536
537
  api.registerTool({
537
538
  name: 'superagnt_connection_heyreach_campaign_stop_lead',
538
539
  description: "Stop lead in campaign",
539
- inputSchema: {
540
+ parameters: {
540
541
  "type": "object",
541
542
  "properties": {
542
543
  "campaignId": {
@@ -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)
@@ -566,7 +567,7 @@ export default function register(api) {
566
567
  api.registerTool({
567
568
  name: 'superagnt_connection_heyreach_campaign_get_leads',
568
569
  description: "Get leads in campaign",
569
- inputSchema: {
570
+ parameters: {
570
571
  "type": "object",
571
572
  "properties": {
572
573
  "campaignId": {
@@ -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)
@@ -608,7 +609,7 @@ export default function register(api) {
608
609
  api.registerTool({
609
610
  name: 'superagnt_connection_heyreach_campaign_get_for_lead',
610
611
  description: "Get campaigns for lead",
611
- inputSchema: {
612
+ parameters: {
612
613
  "type": "object",
613
614
  "properties": {
614
615
  "email": {
@@ -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)
@@ -643,7 +644,7 @@ export default function register(api) {
643
644
  api.registerTool({
644
645
  name: 'superagnt_connection_heyreach_inbox_get_conversations_v2',
645
646
  description: "Get conversations",
646
- inputSchema: {
647
+ parameters: {
647
648
  "type": "object",
648
649
  "properties": {
649
650
  "offset": {
@@ -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)
@@ -670,7 +671,7 @@ export default function register(api) {
670
671
  api.registerTool({
671
672
  name: 'superagnt_connection_heyreach_inbox_get_chatroom',
672
673
  description: "Get chatroom (single conversation thread)",
673
- inputSchema: {
674
+ parameters: {
674
675
  "type": "object",
675
676
  "properties": {
676
677
  "accountId": {
@@ -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)
@@ -697,7 +698,7 @@ export default function register(api) {
697
698
  api.registerTool({
698
699
  name: 'superagnt_connection_heyreach_inbox_send_message',
699
700
  description: "Send message in conversation",
700
- inputSchema: {
701
+ parameters: {
701
702
  "type": "object",
702
703
  "properties": {
703
704
  "message": {
@@ -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)
@@ -733,7 +734,7 @@ export default function register(api) {
733
734
  api.registerTool({
734
735
  name: 'superagnt_connection_heyreach_inbox_set_seen_status',
735
736
  description: "Set conversation seen status",
736
- inputSchema: {
737
+ parameters: {
737
738
  "type": "object",
738
739
  "properties": {
739
740
  "conversationId": {
@@ -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)
@@ -765,7 +766,7 @@ export default function register(api) {
765
766
  api.registerTool({
766
767
  name: 'superagnt_connection_heyreach_li_account_get_all',
767
768
  description: "List connected LinkedIn accounts",
768
- inputSchema: {
769
+ parameters: {
769
770
  "type": "object",
770
771
  "properties": {
771
772
  "offset": {
@@ -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)
@@ -792,7 +793,7 @@ export default function register(api) {
792
793
  api.registerTool({
793
794
  name: 'superagnt_connection_heyreach_li_account_get_by_id',
794
795
  description: "Get connected LinkedIn account by ID",
795
- inputSchema: {
796
+ parameters: {
796
797
  "type": "object",
797
798
  "properties": {
798
799
  "accountId": {
@@ -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)
@@ -814,7 +815,7 @@ export default function register(api) {
814
815
  api.registerTool({
815
816
  name: 'superagnt_connection_heyreach_list_get_all',
816
817
  description: "List lead/company lists",
817
- inputSchema: {
818
+ parameters: {
818
819
  "type": "object",
819
820
  "properties": {
820
821
  "offset": {
@@ -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)
@@ -845,7 +846,7 @@ export default function register(api) {
845
846
  api.registerTool({
846
847
  name: 'superagnt_connection_heyreach_list_get_by_id',
847
848
  description: "Get list by ID",
848
- inputSchema: {
849
+ parameters: {
849
850
  "type": "object",
850
851
  "properties": {
851
852
  "listId": {
@@ -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)
@@ -867,7 +868,7 @@ export default function register(api) {
867
868
  api.registerTool({
868
869
  name: 'superagnt_connection_heyreach_list_create_empty',
869
870
  description: "Create empty list",
870
- inputSchema: {
871
+ parameters: {
871
872
  "type": "object",
872
873
  "properties": {
873
874
  "name": {
@@ -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)
@@ -894,7 +895,7 @@ export default function register(api) {
894
895
  api.registerTool({
895
896
  name: 'superagnt_connection_heyreach_list_get_leads',
896
897
  description: "Get leads from a list",
897
- inputSchema: {
898
+ parameters: {
898
899
  "type": "object",
899
900
  "properties": {
900
901
  "listId": {
@@ -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)
@@ -944,7 +945,7 @@ export default function register(api) {
944
945
  api.registerTool({
945
946
  name: 'superagnt_connection_heyreach_list_get_companies',
946
947
  description: "Get companies from a list",
947
- inputSchema: {
948
+ parameters: {
948
949
  "type": "object",
949
950
  "properties": {
950
951
  "listId": {
@@ -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)
@@ -978,7 +979,7 @@ export default function register(api) {
978
979
  api.registerTool({
979
980
  name: 'superagnt_connection_heyreach_list_add_leads_v2',
980
981
  description: "Add leads to list",
981
- inputSchema: {
982
+ parameters: {
982
983
  "type": "object",
983
984
  "properties": {
984
985
  "listId": {
@@ -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)
@@ -1005,7 +1006,7 @@ export default function register(api) {
1005
1006
  api.registerTool({
1006
1007
  name: 'superagnt_connection_heyreach_list_add_leads',
1007
1008
  description: "Add leads to list (v1, legacy)",
1008
- inputSchema: {
1009
+ parameters: {
1009
1010
  "type": "object",
1010
1011
  "properties": {
1011
1012
  "listId": {
@@ -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)
@@ -1032,7 +1033,7 @@ export default function register(api) {
1032
1033
  api.registerTool({
1033
1034
  name: 'superagnt_connection_heyreach_list_delete_leads',
1034
1035
  description: "Delete leads from list by member ID",
1035
- inputSchema: {
1036
+ parameters: {
1036
1037
  "type": "object",
1037
1038
  "properties": {
1038
1039
  "listId": {
@@ -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)
@@ -1059,7 +1060,7 @@ export default function register(api) {
1059
1060
  api.registerTool({
1060
1061
  name: 'superagnt_connection_heyreach_list_delete_leads_by_url',
1061
1062
  description: "Delete leads from list by profile URL",
1062
- inputSchema: {
1063
+ parameters: {
1063
1064
  "type": "object",
1064
1065
  "properties": {
1065
1066
  "listId": {
@@ -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)
@@ -1086,7 +1087,7 @@ export default function register(api) {
1086
1087
  api.registerTool({
1087
1088
  name: 'superagnt_connection_heyreach_list_get_for_lead',
1088
1089
  description: "Get lists a lead belongs to",
1089
- inputSchema: {
1090
+ parameters: {
1090
1091
  "type": "object",
1091
1092
  "properties": {
1092
1093
  "email": {
@@ -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)
@@ -1121,7 +1122,7 @@ export default function register(api) {
1121
1122
  api.registerTool({
1122
1123
  name: 'superagnt_connection_heyreach_lead_get_by_profile_url',
1123
1124
  description: "Get lead by profile URL",
1124
- inputSchema: {
1125
+ parameters: {
1125
1126
  "type": "object",
1126
1127
  "properties": {
1127
1128
  "profileUrl": {
@@ -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)
@@ -1143,7 +1144,7 @@ export default function register(api) {
1143
1144
  api.registerTool({
1144
1145
  name: 'superagnt_connection_heyreach_lead_add_tags',
1145
1146
  description: "Add tags to lead",
1146
- inputSchema: {
1147
+ parameters: {
1147
1148
  "type": "object",
1148
1149
  "properties": {
1149
1150
  "leadProfileUrl": {
@@ -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)
@@ -1177,7 +1178,7 @@ export default function register(api) {
1177
1178
  api.registerTool({
1178
1179
  name: 'superagnt_connection_heyreach_lead_replace_tags',
1179
1180
  description: "Replace lead tags",
1180
- inputSchema: {
1181
+ parameters: {
1181
1182
  "type": "object",
1182
1183
  "properties": {
1183
1184
  "leadProfileUrl": {
@@ -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)
@@ -1211,7 +1212,7 @@ export default function register(api) {
1211
1212
  api.registerTool({
1212
1213
  name: 'superagnt_connection_heyreach_lead_get_tags',
1213
1214
  description: "Get tags for a lead",
1214
- inputSchema: {
1215
+ parameters: {
1215
1216
  "type": "object",
1216
1217
  "properties": {
1217
1218
  "profileUrl": {
@@ -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)
@@ -1233,7 +1234,7 @@ export default function register(api) {
1233
1234
  api.registerTool({
1234
1235
  name: 'superagnt_connection_heyreach_lead_tags_create',
1235
1236
  description: "Create workspace lead tags",
1236
- inputSchema: {
1237
+ parameters: {
1237
1238
  "type": "object",
1238
1239
  "properties": {
1239
1240
  "tags": {
@@ -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)
@@ -1255,7 +1256,7 @@ export default function register(api) {
1255
1256
  api.registerTool({
1256
1257
  name: 'superagnt_connection_heyreach_stats_get_overall',
1257
1258
  description: "Get overall stats",
1258
- inputSchema: {
1259
+ parameters: {
1259
1260
  "type": "object",
1260
1261
  "properties": {
1261
1262
  "startDate": {
@@ -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)
@@ -1286,7 +1287,7 @@ export default function register(api) {
1286
1287
  api.registerTool({
1287
1288
  name: 'superagnt_connection_heyreach_stats_get_by_campaign',
1288
1289
  description: "Get overall stats grouped by campaign",
1289
- inputSchema: {
1290
+ parameters: {
1290
1291
  "type": "object",
1291
1292
  "properties": {
1292
1293
  "startDate": {
@@ -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)
@@ -1317,7 +1318,7 @@ export default function register(api) {
1317
1318
  api.registerTool({
1318
1319
  name: 'superagnt_connection_heyreach_network_get_for_sender',
1319
1320
  description: "Get sender's LinkedIn network",
1320
- inputSchema: {
1321
+ parameters: {
1321
1322
  "type": "object",
1322
1323
  "properties": {
1323
1324
  "senderId": {
@@ -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)
@@ -1351,7 +1352,7 @@ export default function register(api) {
1351
1352
  api.registerTool({
1352
1353
  name: 'superagnt_connection_heyreach_network_is_connection',
1353
1354
  description: "Check if a lead is a 1st-degree connection",
1354
- inputSchema: {
1355
+ parameters: {
1355
1356
  "type": "object",
1356
1357
  "properties": {
1357
1358
  "senderAccountId": {
@@ -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)
@@ -1381,7 +1382,7 @@ export default function register(api) {
1381
1382
  api.registerTool({
1382
1383
  name: 'superagnt_connection_heyreach_webhook_create',
1383
1384
  description: "Create webhook subscription",
1384
- inputSchema: {
1385
+ parameters: {
1385
1386
  "type": "object",
1386
1387
  "properties": {
1387
1388
  "webhookName": {
@@ -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)
@@ -1421,7 +1422,7 @@ export default function register(api) {
1421
1422
  api.registerTool({
1422
1423
  name: 'superagnt_connection_heyreach_webhook_get_by_id',
1423
1424
  description: "Get webhook by ID",
1424
- inputSchema: {
1425
+ parameters: {
1425
1426
  "type": "object",
1426
1427
  "properties": {
1427
1428
  "webhookId": {
@@ -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)
@@ -1447,7 +1448,7 @@ export default function register(api) {
1447
1448
  api.registerTool({
1448
1449
  name: 'superagnt_connection_heyreach_webhook_get_all',
1449
1450
  description: "List webhooks",
1450
- inputSchema: {
1451
+ parameters: {
1451
1452
  "type": "object",
1452
1453
  "properties": {
1453
1454
  "offset": {
@@ -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)
@@ -1474,7 +1475,7 @@ export default function register(api) {
1474
1475
  api.registerTool({
1475
1476
  name: 'superagnt_connection_heyreach_webhook_update',
1476
1477
  description: "Update webhook subscription",
1477
- inputSchema: {
1478
+ parameters: {
1478
1479
  "type": "object",
1479
1480
  "properties": {
1480
1481
  "webhookId": {
@@ -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)
@@ -1520,7 +1521,7 @@ export default function register(api) {
1520
1521
  api.registerTool({
1521
1522
  name: 'superagnt_connection_heyreach_webhook_delete',
1522
1523
  description: "Delete webhook subscription",
1523
- inputSchema: {
1524
+ parameters: {
1524
1525
  "type": "object",
1525
1526
  "properties": {
1526
1527
  "webhookId": {
@@ -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)
@@ -1542,7 +1543,7 @@ export default function register(api) {
1542
1543
  api.registerTool({
1543
1544
  name: 'superagnt_connection_heyreach_org_workspaces_get_all',
1544
1545
  description: "List workspaces (organization-scoped key)",
1545
- inputSchema: {
1546
+ parameters: {
1546
1547
  "type": "object",
1547
1548
  "properties": {
1548
1549
  "Offset": {
@@ -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)
@@ -1565,7 +1566,7 @@ export default function register(api) {
1565
1566
  api.registerTool({
1566
1567
  name: 'superagnt_connection_heyreach_org_workspaces_create',
1567
1568
  description: "Create workspace",
1568
- inputSchema: {
1569
+ parameters: {
1569
1570
  "type": "object",
1570
1571
  "properties": {
1571
1572
  "workspaceName": {
@@ -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)
@@ -1591,7 +1592,7 @@ export default function register(api) {
1591
1592
  api.registerTool({
1592
1593
  name: 'superagnt_connection_heyreach_org_workspaces_update',
1593
1594
  description: "Update workspace",
1594
- inputSchema: {
1595
+ parameters: {
1595
1596
  "type": "object",
1596
1597
  "properties": {
1597
1598
  "workspaceId": {
@@ -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)
@@ -1621,7 +1622,7 @@ export default function register(api) {
1621
1622
  api.registerTool({
1622
1623
  name: 'superagnt_connection_heyreach_org_workspace_api_keys_get',
1623
1624
  description: "Get workspace API keys",
1624
- inputSchema: {
1625
+ parameters: {
1625
1626
  "type": "object",
1626
1627
  "properties": {
1627
1628
  "workspaceId": {
@@ -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)
@@ -1643,7 +1644,7 @@ export default function register(api) {
1643
1644
  api.registerTool({
1644
1645
  name: 'superagnt_connection_heyreach_org_workspace_api_keys_create',
1645
1646
  description: "Create workspace API key",
1646
- inputSchema: {
1647
+ parameters: {
1647
1648
  "type": "object",
1648
1649
  "properties": {
1649
1650
  "workspaceId": {
@@ -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)
@@ -1670,7 +1671,7 @@ export default function register(api) {
1670
1671
  api.registerTool({
1671
1672
  name: 'superagnt_connection_heyreach_org_users_get_all',
1672
1673
  description: "List users in the organization",
1673
- inputSchema: {
1674
+ parameters: {
1674
1675
  "type": "object",
1675
1676
  "properties": {
1676
1677
  "offset": {
@@ -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)
@@ -1701,7 +1702,7 @@ export default function register(api) {
1701
1702
  api.registerTool({
1702
1703
  name: 'superagnt_connection_heyreach_org_user_get_by_id',
1703
1704
  description: "Get user by ID",
1704
- inputSchema: {
1705
+ parameters: {
1705
1706
  "type": "object",
1706
1707
  "properties": {
1707
1708
  "userId": {
@@ -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)
@@ -1723,7 +1724,7 @@ export default function register(api) {
1723
1724
  api.registerTool({
1724
1725
  name: 'superagnt_connection_heyreach_org_workspace_users_get_all',
1725
1726
  description: "List users in workspace",
1726
- inputSchema: {
1727
+ parameters: {
1727
1728
  "type": "object",
1728
1729
  "properties": {
1729
1730
  "workspaceId": {
@@ -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)
@@ -1761,7 +1762,7 @@ export default function register(api) {
1761
1762
  api.registerTool({
1762
1763
  name: 'superagnt_connection_heyreach_org_invite_admins',
1763
1764
  description: "Invite admins",
1764
- inputSchema: {
1765
+ parameters: {
1765
1766
  "type": "object",
1766
1767
  "properties": {
1767
1768
  "inviterEmail": {
@@ -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)
@@ -1788,7 +1789,7 @@ export default function register(api) {
1788
1789
  api.registerTool({
1789
1790
  name: 'superagnt_connection_heyreach_org_invite_managers',
1790
1791
  description: "Invite managers",
1791
- inputSchema: {
1792
+ parameters: {
1792
1793
  "type": "object",
1793
1794
  "properties": {
1794
1795
  "inviterEmail": {
@@ -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)
@@ -1820,7 +1821,7 @@ export default function register(api) {
1820
1821
  api.registerTool({
1821
1822
  name: 'superagnt_connection_heyreach_org_invite_members',
1822
1823
  description: "Invite members",
1823
- inputSchema: {
1824
+ parameters: {
1824
1825
  "type": "object",
1825
1826
  "properties": {
1826
1827
  "inviterEmail": {
@@ -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)
@@ -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.3",
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",
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",