@superagnt/dub-links 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/dub'
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/dub'
11
12
 
12
13
 
13
14
  // ── Auth Module (inlined) ────────────────────────────────────────────────────
@@ -95,7 +96,7 @@ export default function register(api) {
95
96
  api.registerTool({
96
97
  name: 'superagnt_connection_dub_getLinks',
97
98
  description: "Retrieve a list of links",
98
- inputSchema: {
99
+ parameters: {
99
100
  "type": "object",
100
101
  "properties": {
101
102
  "domain": {
@@ -156,7 +157,7 @@ export default function register(api) {
156
157
  }
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', '/links', params)
@@ -166,11 +167,11 @@ export default function register(api) {
166
167
  api.registerTool({
167
168
  name: 'superagnt_connection_dub_createLink',
168
169
  description: "Create a link",
169
- inputSchema: {
170
+ parameters: {
170
171
  "type": "object",
171
172
  "properties": {}
172
173
  },
173
- execute: async (input) => {
174
+ execute: async (_toolCallId, input) => {
174
175
  const key = ensureApiKey()
175
176
  const params = parseToolInput(input)
176
177
  return callSuperagnt(key, 'POST', '/links', undefined, params)
@@ -180,11 +181,11 @@ export default function register(api) {
180
181
  api.registerTool({
181
182
  name: 'superagnt_connection_dub_upsertLink',
182
183
  description: "Upsert a link",
183
- inputSchema: {
184
+ parameters: {
184
185
  "type": "object",
185
186
  "properties": {}
186
187
  },
187
- execute: async (input) => {
188
+ execute: async (_toolCallId, input) => {
188
189
  const key = ensureApiKey()
189
190
  const params = parseToolInput(input)
190
191
  return callSuperagnt(key, 'PUT', '/links', undefined, params)
@@ -194,7 +195,7 @@ export default function register(api) {
194
195
  api.registerTool({
195
196
  name: 'superagnt_connection_dub_getLinkInfo',
196
197
  description: "Retrieve a link",
197
- inputSchema: {
198
+ parameters: {
198
199
  "type": "object",
199
200
  "properties": {
200
201
  "domain": {
@@ -215,7 +216,7 @@ export default function register(api) {
215
216
  }
216
217
  }
217
218
  },
218
- execute: async (input) => {
219
+ execute: async (_toolCallId, input) => {
219
220
  const key = ensureApiKey()
220
221
  const params = parseToolInput(input)
221
222
  return callSuperagnt(key, 'GET', '/links/info', params)
@@ -225,7 +226,7 @@ export default function register(api) {
225
226
  api.registerTool({
226
227
  name: 'superagnt_connection_dub_getLinksCount',
227
228
  description: "Retrieve links count",
228
- inputSchema: {
229
+ parameters: {
229
230
  "type": "object",
230
231
  "properties": {
231
232
  "domain": {
@@ -262,7 +263,7 @@ export default function register(api) {
262
263
  }
263
264
  }
264
265
  },
265
- execute: async (input) => {
266
+ execute: async (_toolCallId, input) => {
266
267
  const key = ensureApiKey()
267
268
  const params = parseToolInput(input)
268
269
  return callSuperagnt(key, 'GET', '/links/count', params)
@@ -272,7 +273,7 @@ export default function register(api) {
272
273
  api.registerTool({
273
274
  name: 'superagnt_connection_dub_updateLink',
274
275
  description: "Update a link",
275
- inputSchema: {
276
+ parameters: {
276
277
  "type": "object",
277
278
  "properties": {
278
279
  "linkId": {
@@ -284,7 +285,7 @@ export default function register(api) {
284
285
  "linkId"
285
286
  ]
286
287
  },
287
- execute: async (input) => {
288
+ execute: async (_toolCallId, input) => {
288
289
  const key = ensureApiKey()
289
290
  const params = parseToolInput(input)
290
291
  return callSuperagnt(key, 'PATCH', '/links/{linkId}', undefined, params)
@@ -294,7 +295,7 @@ export default function register(api) {
294
295
  api.registerTool({
295
296
  name: 'superagnt_connection_dub_deleteLink',
296
297
  description: "Delete a link",
297
- inputSchema: {
298
+ parameters: {
298
299
  "type": "object",
299
300
  "properties": {
300
301
  "linkId": {
@@ -306,7 +307,7 @@ export default function register(api) {
306
307
  "linkId"
307
308
  ]
308
309
  },
309
- execute: async (input) => {
310
+ execute: async (_toolCallId, input) => {
310
311
  const key = ensureApiKey()
311
312
  const params = parseToolInput(input)
312
313
  return callSuperagnt(key, 'DELETE', '/links/{linkId}', undefined, params)
@@ -316,11 +317,11 @@ export default function register(api) {
316
317
  api.registerTool({
317
318
  name: 'superagnt_connection_dub_bulkCreateLinks',
318
319
  description: "Bulk create links",
319
- inputSchema: {
320
+ parameters: {
320
321
  "type": "object",
321
322
  "properties": {}
322
323
  },
323
- execute: async (input) => {
324
+ execute: async (_toolCallId, input) => {
324
325
  const key = ensureApiKey()
325
326
  const params = parseToolInput(input)
326
327
  return callSuperagnt(key, 'POST', '/links/bulk', undefined, params)
@@ -330,7 +331,7 @@ export default function register(api) {
330
331
  api.registerTool({
331
332
  name: 'superagnt_connection_dub_bulkUpdateLinks',
332
333
  description: "Bulk update links",
333
- inputSchema: {
334
+ parameters: {
334
335
  "type": "object",
335
336
  "properties": {
336
337
  "linkIds": {
@@ -350,7 +351,7 @@ export default function register(api) {
350
351
  "data"
351
352
  ]
352
353
  },
353
- execute: async (input) => {
354
+ execute: async (_toolCallId, input) => {
354
355
  const key = ensureApiKey()
355
356
  const params = parseToolInput(input)
356
357
  return callSuperagnt(key, 'PATCH', '/links/bulk', undefined, params)
@@ -360,7 +361,7 @@ export default function register(api) {
360
361
  api.registerTool({
361
362
  name: 'superagnt_connection_dub_bulkDeleteLinks',
362
363
  description: "Bulk delete links",
363
- inputSchema: {
364
+ parameters: {
364
365
  "type": "object",
365
366
  "properties": {
366
367
  "linkIds": {
@@ -372,7 +373,7 @@ export default function register(api) {
372
373
  "linkIds"
373
374
  ]
374
375
  },
375
- execute: async (input) => {
376
+ execute: async (_toolCallId, input) => {
376
377
  const key = ensureApiKey()
377
378
  const params = parseToolInput(input)
378
379
  return callSuperagnt(key, 'DELETE', '/links/bulk', undefined, params)
@@ -382,7 +383,7 @@ export default function register(api) {
382
383
  api.registerTool({
383
384
  name: 'superagnt_connection_dub_retrieveAnalytics',
384
385
  description: "Retrieve analytics",
385
- inputSchema: {
386
+ parameters: {
386
387
  "type": "object",
387
388
  "properties": {
388
389
  "event": {
@@ -527,7 +528,7 @@ export default function register(api) {
527
528
  }
528
529
  }
529
530
  },
530
- execute: async (input) => {
531
+ execute: async (_toolCallId, input) => {
531
532
  const key = ensureApiKey()
532
533
  const params = parseToolInput(input)
533
534
  return callSuperagnt(key, 'GET', '/analytics', params)
@@ -537,7 +538,7 @@ export default function register(api) {
537
538
  api.registerTool({
538
539
  name: 'superagnt_connection_dub_listEvents',
539
540
  description: "Retrieve a list of events",
540
- inputSchema: {
541
+ parameters: {
541
542
  "type": "object",
542
543
  "properties": {
543
544
  "event": {
@@ -682,7 +683,7 @@ export default function register(api) {
682
683
  }
683
684
  }
684
685
  },
685
- execute: async (input) => {
686
+ execute: async (_toolCallId, input) => {
686
687
  const key = ensureApiKey()
687
688
  const params = parseToolInput(input)
688
689
  return callSuperagnt(key, 'GET', '/events', params)
@@ -692,7 +693,7 @@ export default function register(api) {
692
693
  api.registerTool({
693
694
  name: 'superagnt_connection_dub_getTags',
694
695
  description: "Retrieve a list of tags",
695
- inputSchema: {
696
+ parameters: {
696
697
  "type": "object",
697
698
  "properties": {
698
699
  "sortBy": {
@@ -721,7 +722,7 @@ export default function register(api) {
721
722
  }
722
723
  }
723
724
  },
724
- execute: async (input) => {
725
+ execute: async (_toolCallId, input) => {
725
726
  const key = ensureApiKey()
726
727
  const params = parseToolInput(input)
727
728
  return callSuperagnt(key, 'GET', '/tags', params)
@@ -731,7 +732,7 @@ export default function register(api) {
731
732
  api.registerTool({
732
733
  name: 'superagnt_connection_dub_createTag',
733
734
  description: "Create a tag",
734
- inputSchema: {
735
+ parameters: {
735
736
  "type": "object",
736
737
  "properties": {
737
738
  "name": {
@@ -744,7 +745,7 @@ export default function register(api) {
744
745
  }
745
746
  }
746
747
  },
747
- execute: async (input) => {
748
+ execute: async (_toolCallId, input) => {
748
749
  const key = ensureApiKey()
749
750
  const params = parseToolInput(input)
750
751
  return callSuperagnt(key, 'POST', '/tags', undefined, params)
@@ -754,7 +755,7 @@ export default function register(api) {
754
755
  api.registerTool({
755
756
  name: 'superagnt_connection_dub_updateTag',
756
757
  description: "Update a tag",
757
- inputSchema: {
758
+ parameters: {
758
759
  "type": "object",
759
760
  "properties": {
760
761
  "id": {
@@ -774,7 +775,7 @@ export default function register(api) {
774
775
  "id"
775
776
  ]
776
777
  },
777
- execute: async (input) => {
778
+ execute: async (_toolCallId, input) => {
778
779
  const key = ensureApiKey()
779
780
  const params = parseToolInput(input)
780
781
  return callSuperagnt(key, 'PATCH', '/tags/{id}', undefined, params)
@@ -784,7 +785,7 @@ export default function register(api) {
784
785
  api.registerTool({
785
786
  name: 'superagnt_connection_dub_listFolders',
786
787
  description: "Retrieve a list of folders",
787
- inputSchema: {
788
+ parameters: {
788
789
  "type": "object",
789
790
  "properties": {
790
791
  "search": {
@@ -801,7 +802,7 @@ export default function register(api) {
801
802
  }
802
803
  }
803
804
  },
804
- execute: async (input) => {
805
+ execute: async (_toolCallId, input) => {
805
806
  const key = ensureApiKey()
806
807
  const params = parseToolInput(input)
807
808
  return callSuperagnt(key, 'GET', '/folders', params)
@@ -811,7 +812,7 @@ export default function register(api) {
811
812
  api.registerTool({
812
813
  name: 'superagnt_connection_dub_createFolder',
813
814
  description: "Create a folder",
814
- inputSchema: {
815
+ parameters: {
815
816
  "type": "object",
816
817
  "properties": {
817
818
  "name": {
@@ -827,7 +828,7 @@ export default function register(api) {
827
828
  "name"
828
829
  ]
829
830
  },
830
- execute: async (input) => {
831
+ execute: async (_toolCallId, input) => {
831
832
  const key = ensureApiKey()
832
833
  const params = parseToolInput(input)
833
834
  return callSuperagnt(key, 'POST', '/folders', undefined, params)
@@ -837,7 +838,7 @@ export default function register(api) {
837
838
  api.registerTool({
838
839
  name: 'superagnt_connection_dub_updateFolder',
839
840
  description: "Update a folder",
840
- inputSchema: {
841
+ parameters: {
841
842
  "type": "object",
842
843
  "properties": {
843
844
  "id": {
@@ -857,7 +858,7 @@ export default function register(api) {
857
858
  "id"
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, 'PATCH', '/folders/{id}', undefined, params)
@@ -867,7 +868,7 @@ export default function register(api) {
867
868
  api.registerTool({
868
869
  name: 'superagnt_connection_dub_deleteFolder',
869
870
  description: "Delete a folder",
870
- inputSchema: {
871
+ parameters: {
871
872
  "type": "object",
872
873
  "properties": {
873
874
  "id": {
@@ -879,7 +880,7 @@ export default function register(api) {
879
880
  "id"
880
881
  ]
881
882
  },
882
- execute: async (input) => {
883
+ execute: async (_toolCallId, input) => {
883
884
  const key = ensureApiKey()
884
885
  const params = parseToolInput(input)
885
886
  return callSuperagnt(key, 'DELETE', '/folders/{id}', undefined, params)
@@ -889,7 +890,7 @@ export default function register(api) {
889
890
  api.registerTool({
890
891
  name: 'superagnt_connection_dub_listCustomers',
891
892
  description: "Retrieve a list of customers",
892
- inputSchema: {
893
+ parameters: {
893
894
  "type": "object",
894
895
  "properties": {
895
896
  "email": {
@@ -930,7 +931,7 @@ export default function register(api) {
930
931
  }
931
932
  }
932
933
  },
933
- execute: async (input) => {
934
+ execute: async (_toolCallId, input) => {
934
935
  const key = ensureApiKey()
935
936
  const params = parseToolInput(input)
936
937
  return callSuperagnt(key, 'GET', '/customers', params)
@@ -940,7 +941,7 @@ export default function register(api) {
940
941
  api.registerTool({
941
942
  name: 'superagnt_connection_dub_getCustomer',
942
943
  description: "Retrieve a customer",
943
- inputSchema: {
944
+ parameters: {
944
945
  "type": "object",
945
946
  "properties": {
946
947
  "id": {
@@ -956,7 +957,7 @@ export default function register(api) {
956
957
  "id"
957
958
  ]
958
959
  },
959
- execute: async (input) => {
960
+ execute: async (_toolCallId, input) => {
960
961
  const key = ensureApiKey()
961
962
  const params = parseToolInput(input)
962
963
  return callSuperagnt(key, 'GET', '/customers/{id}', params)
@@ -966,7 +967,7 @@ export default function register(api) {
966
967
  api.registerTool({
967
968
  name: 'superagnt_connection_dub_updateCustomer',
968
969
  description: "Update a customer",
969
- inputSchema: {
970
+ parameters: {
970
971
  "type": "object",
971
972
  "properties": {
972
973
  "id": {
@@ -994,7 +995,7 @@ export default function register(api) {
994
995
  "id"
995
996
  ]
996
997
  },
997
- execute: async (input) => {
998
+ execute: async (_toolCallId, input) => {
998
999
  const key = ensureApiKey()
999
1000
  const params = parseToolInput(input)
1000
1001
  return callSuperagnt(key, 'PATCH', '/customers/{id}', undefined, params)
@@ -1004,7 +1005,7 @@ export default function register(api) {
1004
1005
  api.registerTool({
1005
1006
  name: 'superagnt_connection_dub_deleteCustomer',
1006
1007
  description: "Delete a customer",
1007
- inputSchema: {
1008
+ parameters: {
1008
1009
  "type": "object",
1009
1010
  "properties": {
1010
1011
  "id": {
@@ -1016,7 +1017,7 @@ export default function register(api) {
1016
1017
  "id"
1017
1018
  ]
1018
1019
  },
1019
- execute: async (input) => {
1020
+ execute: async (_toolCallId, input) => {
1020
1021
  const key = ensureApiKey()
1021
1022
  const params = parseToolInput(input)
1022
1023
  return callSuperagnt(key, 'DELETE', '/customers/{id}', undefined, params)
@@ -1026,7 +1027,7 @@ export default function register(api) {
1026
1027
  api.registerTool({
1027
1028
  name: 'superagnt_connection_dub_createDomain',
1028
1029
  description: "Create a domain",
1029
- inputSchema: {
1030
+ parameters: {
1030
1031
  "type": "object",
1031
1032
  "properties": {
1032
1033
  "slug": {
@@ -1054,7 +1055,7 @@ export default function register(api) {
1054
1055
  "slug"
1055
1056
  ]
1056
1057
  },
1057
- execute: async (input) => {
1058
+ execute: async (_toolCallId, input) => {
1058
1059
  const key = ensureApiKey()
1059
1060
  const params = parseToolInput(input)
1060
1061
  return callSuperagnt(key, 'POST', '/domains', undefined, params)
@@ -1064,7 +1065,7 @@ export default function register(api) {
1064
1065
  api.registerTool({
1065
1066
  name: 'superagnt_connection_dub_updateDomain',
1066
1067
  description: "Update a domain",
1067
- inputSchema: {
1068
+ parameters: {
1068
1069
  "type": "object",
1069
1070
  "properties": {
1070
1071
  "slug": {
@@ -1092,7 +1093,7 @@ export default function register(api) {
1092
1093
  "slug"
1093
1094
  ]
1094
1095
  },
1095
- execute: async (input) => {
1096
+ execute: async (_toolCallId, input) => {
1096
1097
  const key = ensureApiKey()
1097
1098
  const params = parseToolInput(input)
1098
1099
  return callSuperagnt(key, 'PATCH', '/domains/{slug}', undefined, params)
@@ -1102,7 +1103,7 @@ export default function register(api) {
1102
1103
  api.registerTool({
1103
1104
  name: 'superagnt_connection_dub_deleteDomain',
1104
1105
  description: "Delete a domain",
1105
- inputSchema: {
1106
+ parameters: {
1106
1107
  "type": "object",
1107
1108
  "properties": {
1108
1109
  "slug": {
@@ -1114,7 +1115,7 @@ export default function register(api) {
1114
1115
  "slug"
1115
1116
  ]
1116
1117
  },
1117
- execute: async (input) => {
1118
+ execute: async (_toolCallId, input) => {
1118
1119
  const key = ensureApiKey()
1119
1120
  const params = parseToolInput(input)
1120
1121
  return callSuperagnt(key, 'DELETE', '/domains/{slug}', undefined, params)
@@ -1124,7 +1125,7 @@ export default function register(api) {
1124
1125
  api.registerTool({
1125
1126
  name: 'superagnt_connection_dub_trackLead',
1126
1127
  description: "Track a lead",
1127
- inputSchema: {
1128
+ parameters: {
1128
1129
  "type": "object",
1129
1130
  "properties": {
1130
1131
  "clickId": {
@@ -1170,7 +1171,7 @@ export default function register(api) {
1170
1171
  "customerExternalId"
1171
1172
  ]
1172
1173
  },
1173
- execute: async (input) => {
1174
+ execute: async (_toolCallId, input) => {
1174
1175
  const key = ensureApiKey()
1175
1176
  const params = parseToolInput(input)
1176
1177
  return callSuperagnt(key, 'POST', '/track/lead', undefined, params)
@@ -1180,7 +1181,7 @@ export default function register(api) {
1180
1181
  api.registerTool({
1181
1182
  name: 'superagnt_connection_dub_trackSale',
1182
1183
  description: "Track a sale",
1183
- inputSchema: {
1184
+ parameters: {
1184
1185
  "type": "object",
1185
1186
  "properties": {
1186
1187
  "customerExternalId": {
@@ -1237,7 +1238,7 @@ export default function register(api) {
1237
1238
  "amount"
1238
1239
  ]
1239
1240
  },
1240
- execute: async (input) => {
1241
+ execute: async (_toolCallId, input) => {
1241
1242
  const key = ensureApiKey()
1242
1243
  const params = parseToolInput(input)
1243
1244
  return callSuperagnt(key, 'POST', '/track/sale', undefined, params)
@@ -1247,7 +1248,7 @@ export default function register(api) {
1247
1248
  api.registerTool({
1248
1249
  name: 'superagnt_connection_dub_listPartners',
1249
1250
  description: "List partners",
1250
- inputSchema: {
1251
+ parameters: {
1251
1252
  "type": "object",
1252
1253
  "properties": {
1253
1254
  "groupId": {
@@ -1292,7 +1293,7 @@ export default function register(api) {
1292
1293
  }
1293
1294
  }
1294
1295
  },
1295
- execute: async (input) => {
1296
+ execute: async (_toolCallId, input) => {
1296
1297
  const key = ensureApiKey()
1297
1298
  const params = parseToolInput(input)
1298
1299
  return callSuperagnt(key, 'GET', '/partners', params)
@@ -1302,7 +1303,7 @@ export default function register(api) {
1302
1303
  api.registerTool({
1303
1304
  name: 'superagnt_connection_dub_createPartner',
1304
1305
  description: "Create or update a partner",
1305
- inputSchema: {
1306
+ parameters: {
1306
1307
  "type": "object",
1307
1308
  "properties": {
1308
1309
  "email": {
@@ -1346,7 +1347,7 @@ export default function register(api) {
1346
1347
  "email"
1347
1348
  ]
1348
1349
  },
1349
- execute: async (input) => {
1350
+ execute: async (_toolCallId, input) => {
1350
1351
  const key = ensureApiKey()
1351
1352
  const params = parseToolInput(input)
1352
1353
  return callSuperagnt(key, 'POST', '/partners', undefined, params)
@@ -1356,7 +1357,7 @@ export default function register(api) {
1356
1357
  api.registerTool({
1357
1358
  name: 'superagnt_connection_dub_retrievePartnerLinks',
1358
1359
  description: "Retrieve a partner's links",
1359
- inputSchema: {
1360
+ parameters: {
1360
1361
  "type": "object",
1361
1362
  "properties": {
1362
1363
  "partnerId": {
@@ -1369,7 +1370,7 @@ export default function register(api) {
1369
1370
  }
1370
1371
  }
1371
1372
  },
1372
- execute: async (input) => {
1373
+ execute: async (_toolCallId, input) => {
1373
1374
  const key = ensureApiKey()
1374
1375
  const params = parseToolInput(input)
1375
1376
  return callSuperagnt(key, 'GET', '/partners/links', params)
@@ -1379,11 +1380,11 @@ export default function register(api) {
1379
1380
  api.registerTool({
1380
1381
  name: 'superagnt_connection_dub_createPartnerLink',
1381
1382
  description: "Create a partner link",
1382
- inputSchema: {
1383
+ parameters: {
1383
1384
  "type": "object",
1384
1385
  "properties": {}
1385
1386
  },
1386
- execute: async (input) => {
1387
+ execute: async (_toolCallId, input) => {
1387
1388
  const key = ensureApiKey()
1388
1389
  const params = parseToolInput(input)
1389
1390
  return callSuperagnt(key, 'POST', '/partners/links', undefined, params)
@@ -1393,11 +1394,11 @@ export default function register(api) {
1393
1394
  api.registerTool({
1394
1395
  name: 'superagnt_connection_dub_upsertPartnerLink',
1395
1396
  description: "Upsert a partner link",
1396
- inputSchema: {
1397
+ parameters: {
1397
1398
  "type": "object",
1398
1399
  "properties": {}
1399
1400
  },
1400
- execute: async (input) => {
1401
+ execute: async (_toolCallId, input) => {
1401
1402
  const key = ensureApiKey()
1402
1403
  const params = parseToolInput(input)
1403
1404
  return callSuperagnt(key, 'PUT', '/partners/links/upsert', undefined, params)
@@ -1407,7 +1408,7 @@ export default function register(api) {
1407
1408
  api.registerTool({
1408
1409
  name: 'superagnt_connection_dub_banPartner',
1409
1410
  description: "Ban a partner",
1410
- inputSchema: {
1411
+ parameters: {
1411
1412
  "type": "object",
1412
1413
  "properties": {
1413
1414
  "partnerId": {
@@ -1427,7 +1428,7 @@ export default function register(api) {
1427
1428
  "reason"
1428
1429
  ]
1429
1430
  },
1430
- execute: async (input) => {
1431
+ execute: async (_toolCallId, input) => {
1431
1432
  const key = ensureApiKey()
1432
1433
  const params = parseToolInput(input)
1433
1434
  return callSuperagnt(key, 'POST', '/partners/ban', undefined, params)
@@ -1437,7 +1438,7 @@ export default function register(api) {
1437
1438
  api.registerTool({
1438
1439
  name: 'superagnt_connection_dub_deactivatePartner',
1439
1440
  description: "Deactivate a partner",
1440
- inputSchema: {
1441
+ parameters: {
1441
1442
  "type": "object",
1442
1443
  "properties": {
1443
1444
  "partnerId": {
@@ -1450,7 +1451,7 @@ export default function register(api) {
1450
1451
  }
1451
1452
  }
1452
1453
  },
1453
- execute: async (input) => {
1454
+ execute: async (_toolCallId, input) => {
1454
1455
  const key = ensureApiKey()
1455
1456
  const params = parseToolInput(input)
1456
1457
  return callSuperagnt(key, 'POST', '/partners/deactivate', undefined, params)
@@ -1460,7 +1461,7 @@ export default function register(api) {
1460
1461
  api.registerTool({
1461
1462
  name: 'superagnt_connection_dub_listBountySubmissions',
1462
1463
  description: "List bounty submissions",
1463
- inputSchema: {
1464
+ parameters: {
1464
1465
  "type": "object",
1465
1466
  "properties": {
1466
1467
  "bountyId": {
@@ -1500,7 +1501,7 @@ export default function register(api) {
1500
1501
  "bountyId"
1501
1502
  ]
1502
1503
  },
1503
- execute: async (input) => {
1504
+ execute: async (_toolCallId, input) => {
1504
1505
  const key = ensureApiKey()
1505
1506
  const params = parseToolInput(input)
1506
1507
  return callSuperagnt(key, 'GET', '/bounties/{bountyId}/submissions', params)
@@ -1510,7 +1511,7 @@ export default function register(api) {
1510
1511
  api.registerTool({
1511
1512
  name: 'superagnt_connection_dub_approveBountySubmission',
1512
1513
  description: "Approve a bounty submission",
1513
- inputSchema: {
1514
+ parameters: {
1514
1515
  "type": "object",
1515
1516
  "properties": {
1516
1517
  "bountyId": {
@@ -1531,7 +1532,7 @@ export default function register(api) {
1531
1532
  "submissionId"
1532
1533
  ]
1533
1534
  },
1534
- execute: async (input) => {
1535
+ execute: async (_toolCallId, input) => {
1535
1536
  const key = ensureApiKey()
1536
1537
  const params = parseToolInput(input)
1537
1538
  return callSuperagnt(key, 'POST', '/bounties/{bountyId}/submissions/{submissionId}/approve', undefined, params)
@@ -1541,7 +1542,7 @@ export default function register(api) {
1541
1542
  api.registerTool({
1542
1543
  name: 'superagnt_connection_dub_rejectBountySubmission',
1543
1544
  description: "Reject a bounty submission",
1544
- inputSchema: {
1545
+ parameters: {
1545
1546
  "type": "object",
1546
1547
  "properties": {
1547
1548
  "bountyId": {
@@ -1566,7 +1567,7 @@ export default function register(api) {
1566
1567
  "submissionId"
1567
1568
  ]
1568
1569
  },
1569
- execute: async (input) => {
1570
+ execute: async (_toolCallId, input) => {
1570
1571
  const key = ensureApiKey()
1571
1572
  const params = parseToolInput(input)
1572
1573
  return callSuperagnt(key, 'POST', '/bounties/{bountyId}/submissions/{submissionId}/reject', undefined, params)
@@ -1576,7 +1577,7 @@ export default function register(api) {
1576
1577
  api.registerTool({
1577
1578
  name: 'superagnt_connection_dub_listCommissions',
1578
1579
  description: "List commissions",
1579
- inputSchema: {
1580
+ parameters: {
1580
1581
  "type": "object",
1581
1582
  "properties": {
1582
1583
  "type": {
@@ -1653,7 +1654,7 @@ export default function register(api) {
1653
1654
  }
1654
1655
  }
1655
1656
  },
1656
- execute: async (input) => {
1657
+ execute: async (_toolCallId, input) => {
1657
1658
  const key = ensureApiKey()
1658
1659
  const params = parseToolInput(input)
1659
1660
  return callSuperagnt(key, 'GET', '/commissions', params)
@@ -1663,7 +1664,7 @@ export default function register(api) {
1663
1664
  api.registerTool({
1664
1665
  name: 'superagnt_connection_dub_updateCommission',
1665
1666
  description: "Update a commission",
1666
- inputSchema: {
1667
+ parameters: {
1667
1668
  "type": "object",
1668
1669
  "properties": {
1669
1670
  "id": {
@@ -1703,7 +1704,7 @@ export default function register(api) {
1703
1704
  "id"
1704
1705
  ]
1705
1706
  },
1706
- execute: async (input) => {
1707
+ execute: async (_toolCallId, input) => {
1707
1708
  const key = ensureApiKey()
1708
1709
  const params = parseToolInput(input)
1709
1710
  return callSuperagnt(key, 'PATCH', '/commissions/{id}', undefined, params)
@@ -1713,7 +1714,7 @@ export default function register(api) {
1713
1714
  api.registerTool({
1714
1715
  name: 'superagnt_connection_dub_listPayouts',
1715
1716
  description: "List payouts",
1716
- inputSchema: {
1717
+ parameters: {
1717
1718
  "type": "object",
1718
1719
  "properties": {
1719
1720
  "status": {
@@ -1750,7 +1751,7 @@ export default function register(api) {
1750
1751
  }
1751
1752
  }
1752
1753
  },
1753
- execute: async (input) => {
1754
+ execute: async (_toolCallId, input) => {
1754
1755
  const key = ensureApiKey()
1755
1756
  const params = parseToolInput(input)
1756
1757
  return callSuperagnt(key, 'GET', '/payouts', params)
@@ -2,7 +2,7 @@
2
2
  "id": "dub-links",
3
3
  "name": "Dub Integration",
4
4
  "description": "OpenClaw plugin for Dub — manage short links, conversion events, customers, tags, folders, and domains 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_dub_getLinks",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superagnt/dub-links",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "type": "module",
5
5
  "description": "OpenClaw plugin for Dub — manage short links, conversion events, customers, tags, folders, and domains with your superagnt API key.",
6
6
  "main": "index.js",