@superagnt/attio-crm 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 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/attio'
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/attio'
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', '/v2/objects', params)
@@ -121,7 +122,7 @@ export default function register(api) {
121
122
  "data"
122
123
  ]
123
124
  },
124
- execute: async (input) => {
125
+ execute: async (_toolCallId, input) => {
125
126
  const key = ensureApiKey()
126
127
  const params = parseToolInput(input)
127
128
  return callSuperagnt(key, 'POST', '/v2/objects', undefined, params)
@@ -143,7 +144,7 @@ export default function register(api) {
143
144
  "object"
144
145
  ]
145
146
  },
146
- execute: async (input) => {
147
+ execute: async (_toolCallId, input) => {
147
148
  const key = ensureApiKey()
148
149
  const params = parseToolInput(input)
149
150
  return callSuperagnt(key, 'GET', '/v2/objects/{object}', params)
@@ -170,7 +171,7 @@ export default function register(api) {
170
171
  "data"
171
172
  ]
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, 'PATCH', '/v2/objects/{object}', undefined, params)
@@ -204,7 +205,7 @@ export default function register(api) {
204
205
  "object"
205
206
  ]
206
207
  },
207
- execute: async (input) => {
208
+ execute: async (_toolCallId, input) => {
208
209
  const key = ensureApiKey()
209
210
  const params = parseToolInput(input)
210
211
  return callSuperagnt(key, 'GET', '/v2/objects/{object}/views', params)
@@ -243,7 +244,7 @@ export default function register(api) {
243
244
  "identifier"
244
245
  ]
245
246
  },
246
- execute: async (input) => {
247
+ execute: async (_toolCallId, input) => {
247
248
  const key = ensureApiKey()
248
249
  const params = parseToolInput(input)
249
250
  return callSuperagnt(key, 'GET', '/v2/{target}/{identifier}/attributes', params)
@@ -275,7 +276,7 @@ export default function register(api) {
275
276
  "data"
276
277
  ]
277
278
  },
278
- execute: async (input) => {
279
+ execute: async (_toolCallId, input) => {
279
280
  const key = ensureApiKey()
280
281
  const params = parseToolInput(input)
281
282
  return callSuperagnt(key, 'POST', '/v2/{target}/{identifier}/attributes', undefined, params)
@@ -307,7 +308,7 @@ export default function register(api) {
307
308
  "attribute"
308
309
  ]
309
310
  },
310
- execute: async (input) => {
311
+ execute: async (_toolCallId, input) => {
311
312
  const key = ensureApiKey()
312
313
  const params = parseToolInput(input)
313
314
  return callSuperagnt(key, 'GET', '/v2/{target}/{identifier}/attributes/{attribute}', params)
@@ -344,7 +345,7 @@ export default function register(api) {
344
345
  "data"
345
346
  ]
346
347
  },
347
- execute: async (input) => {
348
+ execute: async (_toolCallId, input) => {
348
349
  const key = ensureApiKey()
349
350
  const params = parseToolInput(input)
350
351
  return callSuperagnt(key, 'PATCH', '/v2/{target}/{identifier}/attributes/{attribute}', undefined, params)
@@ -380,7 +381,7 @@ export default function register(api) {
380
381
  "attribute"
381
382
  ]
382
383
  },
383
- execute: async (input) => {
384
+ execute: async (_toolCallId, input) => {
384
385
  const key = ensureApiKey()
385
386
  const params = parseToolInput(input)
386
387
  return callSuperagnt(key, 'GET', '/v2/{target}/{identifier}/attributes/{attribute}/options', params)
@@ -417,7 +418,7 @@ export default function register(api) {
417
418
  "data"
418
419
  ]
419
420
  },
420
- execute: async (input) => {
421
+ execute: async (_toolCallId, input) => {
421
422
  const key = ensureApiKey()
422
423
  const params = parseToolInput(input)
423
424
  return callSuperagnt(key, 'POST', '/v2/{target}/{identifier}/attributes/{attribute}/options', undefined, params)
@@ -459,7 +460,7 @@ export default function register(api) {
459
460
  "data"
460
461
  ]
461
462
  },
462
- execute: async (input) => {
463
+ execute: async (_toolCallId, input) => {
463
464
  const key = ensureApiKey()
464
465
  const params = parseToolInput(input)
465
466
  return callSuperagnt(key, 'PATCH', '/v2/{target}/{identifier}/attributes/{attribute}/options/{option}', undefined, params)
@@ -495,7 +496,7 @@ export default function register(api) {
495
496
  "attribute"
496
497
  ]
497
498
  },
498
- execute: async (input) => {
499
+ execute: async (_toolCallId, input) => {
499
500
  const key = ensureApiKey()
500
501
  const params = parseToolInput(input)
501
502
  return callSuperagnt(key, 'GET', '/v2/{target}/{identifier}/attributes/{attribute}/statuses', params)
@@ -532,7 +533,7 @@ export default function register(api) {
532
533
  "data"
533
534
  ]
534
535
  },
535
- execute: async (input) => {
536
+ execute: async (_toolCallId, input) => {
536
537
  const key = ensureApiKey()
537
538
  const params = parseToolInput(input)
538
539
  return callSuperagnt(key, 'POST', '/v2/{target}/{identifier}/attributes/{attribute}/statuses', undefined, params)
@@ -574,7 +575,7 @@ export default function register(api) {
574
575
  "data"
575
576
  ]
576
577
  },
577
- execute: async (input) => {
578
+ execute: async (_toolCallId, input) => {
578
579
  const key = ensureApiKey()
579
580
  const params = parseToolInput(input)
580
581
  return callSuperagnt(key, 'PATCH', '/v2/{target}/{identifier}/attributes/{attribute}/statuses/{status}', undefined, params)
@@ -616,7 +617,7 @@ export default function register(api) {
616
617
  "object"
617
618
  ]
618
619
  },
619
- execute: async (input) => {
620
+ execute: async (_toolCallId, input) => {
620
621
  const key = ensureApiKey()
621
622
  const params = parseToolInput(input)
622
623
  return callSuperagnt(key, 'POST', '/v2/objects/{object}/records/query', undefined, params)
@@ -643,7 +644,7 @@ export default function register(api) {
643
644
  "data"
644
645
  ]
645
646
  },
646
- execute: async (input) => {
647
+ execute: async (_toolCallId, input) => {
647
648
  const key = ensureApiKey()
648
649
  const params = parseToolInput(input)
649
650
  return callSuperagnt(key, 'POST', '/v2/objects/{object}/records', undefined, params)
@@ -675,7 +676,7 @@ export default function register(api) {
675
676
  "data"
676
677
  ]
677
678
  },
678
- execute: async (input) => {
679
+ execute: async (_toolCallId, input) => {
679
680
  const key = ensureApiKey()
680
681
  const params = parseToolInput(input)
681
682
  return callSuperagnt(key, 'PUT', '/v2/objects/{object}/records', undefined, params)
@@ -702,7 +703,7 @@ export default function register(api) {
702
703
  "record_id"
703
704
  ]
704
705
  },
705
- execute: async (input) => {
706
+ execute: async (_toolCallId, input) => {
706
707
  const key = ensureApiKey()
707
708
  const params = parseToolInput(input)
708
709
  return callSuperagnt(key, 'GET', '/v2/objects/{object}/records/{record_id}', params)
@@ -734,7 +735,7 @@ export default function register(api) {
734
735
  "data"
735
736
  ]
736
737
  },
737
- execute: async (input) => {
738
+ execute: async (_toolCallId, input) => {
738
739
  const key = ensureApiKey()
739
740
  const params = parseToolInput(input)
740
741
  return callSuperagnt(key, 'PUT', '/v2/objects/{object}/records/{record_id}', undefined, params)
@@ -766,7 +767,7 @@ export default function register(api) {
766
767
  "data"
767
768
  ]
768
769
  },
769
- execute: async (input) => {
770
+ execute: async (_toolCallId, input) => {
770
771
  const key = ensureApiKey()
771
772
  const params = parseToolInput(input)
772
773
  return callSuperagnt(key, 'PATCH', '/v2/objects/{object}/records/{record_id}', undefined, params)
@@ -793,7 +794,7 @@ export default function register(api) {
793
794
  "record_id"
794
795
  ]
795
796
  },
796
- execute: async (input) => {
797
+ execute: async (_toolCallId, input) => {
797
798
  const key = ensureApiKey()
798
799
  const params = parseToolInput(input)
799
800
  return callSuperagnt(key, 'DELETE', '/v2/objects/{object}/records/{record_id}', undefined, params)
@@ -837,7 +838,7 @@ export default function register(api) {
837
838
  "attribute"
838
839
  ]
839
840
  },
840
- execute: async (input) => {
841
+ execute: async (_toolCallId, input) => {
841
842
  const key = ensureApiKey()
842
843
  const params = parseToolInput(input)
843
844
  return callSuperagnt(key, 'GET', '/v2/objects/{object}/records/{record_id}/attributes/{attribute}/values', params)
@@ -872,7 +873,7 @@ export default function register(api) {
872
873
  "record_id"
873
874
  ]
874
875
  },
875
- execute: async (input) => {
876
+ execute: async (_toolCallId, input) => {
876
877
  const key = ensureApiKey()
877
878
  const params = parseToolInput(input)
878
879
  return callSuperagnt(key, 'GET', '/v2/objects/{object}/records/{record_id}/entries', params)
@@ -908,7 +909,7 @@ export default function register(api) {
908
909
  "request_as"
909
910
  ]
910
911
  },
911
- execute: async (input) => {
912
+ execute: async (_toolCallId, input) => {
912
913
  const key = ensureApiKey()
913
914
  const params = parseToolInput(input)
914
915
  return callSuperagnt(key, 'POST', '/v2/objects/records/search', undefined, params)
@@ -922,7 +923,7 @@ export default function register(api) {
922
923
  "type": "object",
923
924
  "properties": {}
924
925
  },
925
- execute: async (input) => {
926
+ execute: async (_toolCallId, input) => {
926
927
  const key = ensureApiKey()
927
928
  const params = parseToolInput(input)
928
929
  return callSuperagnt(key, 'GET', '/v2/lists', params)
@@ -944,7 +945,7 @@ export default function register(api) {
944
945
  "data"
945
946
  ]
946
947
  },
947
- execute: async (input) => {
948
+ execute: async (_toolCallId, input) => {
948
949
  const key = ensureApiKey()
949
950
  const params = parseToolInput(input)
950
951
  return callSuperagnt(key, 'POST', '/v2/lists', undefined, params)
@@ -966,7 +967,7 @@ export default function register(api) {
966
967
  "list"
967
968
  ]
968
969
  },
969
- execute: async (input) => {
970
+ execute: async (_toolCallId, input) => {
970
971
  const key = ensureApiKey()
971
972
  const params = parseToolInput(input)
972
973
  return callSuperagnt(key, 'GET', '/v2/lists/{list}', params)
@@ -993,7 +994,7 @@ export default function register(api) {
993
994
  "data"
994
995
  ]
995
996
  },
996
- execute: async (input) => {
997
+ execute: async (_toolCallId, input) => {
997
998
  const key = ensureApiKey()
998
999
  const params = parseToolInput(input)
999
1000
  return callSuperagnt(key, 'PATCH', '/v2/lists/{list}', undefined, params)
@@ -1027,7 +1028,7 @@ export default function register(api) {
1027
1028
  "list"
1028
1029
  ]
1029
1030
  },
1030
- execute: async (input) => {
1031
+ execute: async (_toolCallId, input) => {
1031
1032
  const key = ensureApiKey()
1032
1033
  const params = parseToolInput(input)
1033
1034
  return callSuperagnt(key, 'GET', '/v2/lists/{list}/views', params)
@@ -1069,7 +1070,7 @@ export default function register(api) {
1069
1070
  "list"
1070
1071
  ]
1071
1072
  },
1072
- execute: async (input) => {
1073
+ execute: async (_toolCallId, input) => {
1073
1074
  const key = ensureApiKey()
1074
1075
  const params = parseToolInput(input)
1075
1076
  return callSuperagnt(key, 'POST', '/v2/lists/{list}/entries/query', undefined, params)
@@ -1096,7 +1097,7 @@ export default function register(api) {
1096
1097
  "data"
1097
1098
  ]
1098
1099
  },
1099
- execute: async (input) => {
1100
+ execute: async (_toolCallId, input) => {
1100
1101
  const key = ensureApiKey()
1101
1102
  const params = parseToolInput(input)
1102
1103
  return callSuperagnt(key, 'POST', '/v2/lists/{list}/entries', undefined, params)
@@ -1123,7 +1124,7 @@ export default function register(api) {
1123
1124
  "data"
1124
1125
  ]
1125
1126
  },
1126
- execute: async (input) => {
1127
+ execute: async (_toolCallId, input) => {
1127
1128
  const key = ensureApiKey()
1128
1129
  const params = parseToolInput(input)
1129
1130
  return callSuperagnt(key, 'PUT', '/v2/lists/{list}/entries', undefined, params)
@@ -1150,7 +1151,7 @@ export default function register(api) {
1150
1151
  "entry_id"
1151
1152
  ]
1152
1153
  },
1153
- execute: async (input) => {
1154
+ execute: async (_toolCallId, input) => {
1154
1155
  const key = ensureApiKey()
1155
1156
  const params = parseToolInput(input)
1156
1157
  return callSuperagnt(key, 'GET', '/v2/lists/{list}/entries/{entry_id}', params)
@@ -1182,7 +1183,7 @@ export default function register(api) {
1182
1183
  "data"
1183
1184
  ]
1184
1185
  },
1185
- execute: async (input) => {
1186
+ execute: async (_toolCallId, input) => {
1186
1187
  const key = ensureApiKey()
1187
1188
  const params = parseToolInput(input)
1188
1189
  return callSuperagnt(key, 'PUT', '/v2/lists/{list}/entries/{entry_id}', undefined, params)
@@ -1214,7 +1215,7 @@ export default function register(api) {
1214
1215
  "data"
1215
1216
  ]
1216
1217
  },
1217
- execute: async (input) => {
1218
+ execute: async (_toolCallId, input) => {
1218
1219
  const key = ensureApiKey()
1219
1220
  const params = parseToolInput(input)
1220
1221
  return callSuperagnt(key, 'PATCH', '/v2/lists/{list}/entries/{entry_id}', undefined, params)
@@ -1241,7 +1242,7 @@ export default function register(api) {
1241
1242
  "entry_id"
1242
1243
  ]
1243
1244
  },
1244
- execute: async (input) => {
1245
+ execute: async (_toolCallId, input) => {
1245
1246
  const key = ensureApiKey()
1246
1247
  const params = parseToolInput(input)
1247
1248
  return callSuperagnt(key, 'DELETE', '/v2/lists/{list}/entries/{entry_id}', undefined, params)
@@ -1285,7 +1286,7 @@ export default function register(api) {
1285
1286
  "attribute"
1286
1287
  ]
1287
1288
  },
1288
- execute: async (input) => {
1289
+ execute: async (_toolCallId, input) => {
1289
1290
  const key = ensureApiKey()
1290
1291
  const params = parseToolInput(input)
1291
1292
  return callSuperagnt(key, 'GET', '/v2/lists/{list}/entries/{entry_id}/attributes/{attribute}/values', params)
@@ -1299,7 +1300,7 @@ export default function register(api) {
1299
1300
  "type": "object",
1300
1301
  "properties": {}
1301
1302
  },
1302
- execute: async (input) => {
1303
+ execute: async (_toolCallId, input) => {
1303
1304
  const key = ensureApiKey()
1304
1305
  const params = parseToolInput(input)
1305
1306
  return callSuperagnt(key, 'GET', '/v2/workspace_members', params)
@@ -1321,7 +1322,7 @@ export default function register(api) {
1321
1322
  "workspace_member_id"
1322
1323
  ]
1323
1324
  },
1324
- execute: async (input) => {
1325
+ execute: async (_toolCallId, input) => {
1325
1326
  const key = ensureApiKey()
1326
1327
  const params = parseToolInput(input)
1327
1328
  return callSuperagnt(key, 'GET', '/v2/workspace_members/{workspace_member_id}', params)
@@ -1352,7 +1353,7 @@ export default function register(api) {
1352
1353
  }
1353
1354
  }
1354
1355
  },
1355
- execute: async (input) => {
1356
+ execute: async (_toolCallId, input) => {
1356
1357
  const key = ensureApiKey()
1357
1358
  const params = parseToolInput(input)
1358
1359
  return callSuperagnt(key, 'GET', '/v2/notes', params)
@@ -1374,7 +1375,7 @@ export default function register(api) {
1374
1375
  "data"
1375
1376
  ]
1376
1377
  },
1377
- execute: async (input) => {
1378
+ execute: async (_toolCallId, input) => {
1378
1379
  const key = ensureApiKey()
1379
1380
  const params = parseToolInput(input)
1380
1381
  return callSuperagnt(key, 'POST', '/v2/notes', undefined, params)
@@ -1396,7 +1397,7 @@ export default function register(api) {
1396
1397
  "note_id"
1397
1398
  ]
1398
1399
  },
1399
- execute: async (input) => {
1400
+ execute: async (_toolCallId, input) => {
1400
1401
  const key = ensureApiKey()
1401
1402
  const params = parseToolInput(input)
1402
1403
  return callSuperagnt(key, 'GET', '/v2/notes/{note_id}', params)
@@ -1418,7 +1419,7 @@ export default function register(api) {
1418
1419
  "note_id"
1419
1420
  ]
1420
1421
  },
1421
- execute: async (input) => {
1422
+ execute: async (_toolCallId, input) => {
1422
1423
  const key = ensureApiKey()
1423
1424
  const params = parseToolInput(input)
1424
1425
  return callSuperagnt(key, 'DELETE', '/v2/notes/{note_id}', undefined, 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, 'GET', '/v2/tasks', params)
@@ -1486,7 +1487,7 @@ export default function register(api) {
1486
1487
  "data"
1487
1488
  ]
1488
1489
  },
1489
- execute: async (input) => {
1490
+ execute: async (_toolCallId, input) => {
1490
1491
  const key = ensureApiKey()
1491
1492
  const params = parseToolInput(input)
1492
1493
  return callSuperagnt(key, 'POST', '/v2/tasks', undefined, params)
@@ -1508,7 +1509,7 @@ export default function register(api) {
1508
1509
  "task_id"
1509
1510
  ]
1510
1511
  },
1511
- execute: async (input) => {
1512
+ execute: async (_toolCallId, input) => {
1512
1513
  const key = ensureApiKey()
1513
1514
  const params = parseToolInput(input)
1514
1515
  return callSuperagnt(key, 'GET', '/v2/tasks/{task_id}', params)
@@ -1535,7 +1536,7 @@ export default function register(api) {
1535
1536
  "data"
1536
1537
  ]
1537
1538
  },
1538
- execute: async (input) => {
1539
+ execute: async (_toolCallId, input) => {
1539
1540
  const key = ensureApiKey()
1540
1541
  const params = parseToolInput(input)
1541
1542
  return callSuperagnt(key, 'PATCH', '/v2/tasks/{task_id}', undefined, params)
@@ -1557,7 +1558,7 @@ export default function register(api) {
1557
1558
  "task_id"
1558
1559
  ]
1559
1560
  },
1560
- execute: async (input) => {
1561
+ execute: async (_toolCallId, input) => {
1561
1562
  const key = ensureApiKey()
1562
1563
  const params = parseToolInput(input)
1563
1564
  return callSuperagnt(key, 'DELETE', '/v2/tasks/{task_id}', undefined, params)
@@ -1596,7 +1597,7 @@ export default function register(api) {
1596
1597
  }
1597
1598
  }
1598
1599
  },
1599
- execute: async (input) => {
1600
+ execute: async (_toolCallId, input) => {
1600
1601
  const key = ensureApiKey()
1601
1602
  const params = parseToolInput(input)
1602
1603
  return callSuperagnt(key, 'GET', '/v2/threads', params)
@@ -1618,7 +1619,7 @@ export default function register(api) {
1618
1619
  "thread_id"
1619
1620
  ]
1620
1621
  },
1621
- execute: async (input) => {
1622
+ execute: async (_toolCallId, input) => {
1622
1623
  const key = ensureApiKey()
1623
1624
  const params = parseToolInput(input)
1624
1625
  return callSuperagnt(key, 'GET', '/v2/threads/{thread_id}', params)
@@ -1640,7 +1641,7 @@ export default function register(api) {
1640
1641
  "data"
1641
1642
  ]
1642
1643
  },
1643
- execute: async (input) => {
1644
+ execute: async (_toolCallId, input) => {
1644
1645
  const key = ensureApiKey()
1645
1646
  const params = parseToolInput(input)
1646
1647
  return callSuperagnt(key, 'POST', '/v2/comments', undefined, params)
@@ -1662,7 +1663,7 @@ export default function register(api) {
1662
1663
  "comment_id"
1663
1664
  ]
1664
1665
  },
1665
- execute: async (input) => {
1666
+ execute: async (_toolCallId, input) => {
1666
1667
  const key = ensureApiKey()
1667
1668
  const params = parseToolInput(input)
1668
1669
  return callSuperagnt(key, 'GET', '/v2/comments/{comment_id}', params)
@@ -1684,7 +1685,7 @@ export default function register(api) {
1684
1685
  "comment_id"
1685
1686
  ]
1686
1687
  },
1687
- execute: async (input) => {
1688
+ execute: async (_toolCallId, input) => {
1688
1689
  const key = ensureApiKey()
1689
1690
  const params = parseToolInput(input)
1690
1691
  return callSuperagnt(key, 'DELETE', '/v2/comments/{comment_id}', undefined, params)
@@ -1741,7 +1742,7 @@ export default function register(api) {
1741
1742
  }
1742
1743
  }
1743
1744
  },
1744
- execute: async (input) => {
1745
+ execute: async (_toolCallId, input) => {
1745
1746
  const key = ensureApiKey()
1746
1747
  const params = parseToolInput(input)
1747
1748
  return callSuperagnt(key, 'GET', '/v2/meetings', params)
@@ -1763,7 +1764,7 @@ export default function register(api) {
1763
1764
  "data"
1764
1765
  ]
1765
1766
  },
1766
- execute: async (input) => {
1767
+ execute: async (_toolCallId, input) => {
1767
1768
  const key = ensureApiKey()
1768
1769
  const params = parseToolInput(input)
1769
1770
  return callSuperagnt(key, 'POST', '/v2/meetings', undefined, params)
@@ -1785,7 +1786,7 @@ export default function register(api) {
1785
1786
  "meeting_id"
1786
1787
  ]
1787
1788
  },
1788
- execute: async (input) => {
1789
+ execute: async (_toolCallId, input) => {
1789
1790
  const key = ensureApiKey()
1790
1791
  const params = parseToolInput(input)
1791
1792
  return callSuperagnt(key, 'GET', '/v2/meetings/{meeting_id}', params)
@@ -1815,7 +1816,7 @@ export default function register(api) {
1815
1816
  "meeting_id"
1816
1817
  ]
1817
1818
  },
1818
- execute: async (input) => {
1819
+ execute: async (_toolCallId, input) => {
1819
1820
  const key = ensureApiKey()
1820
1821
  const params = parseToolInput(input)
1821
1822
  return callSuperagnt(key, 'GET', '/v2/meetings/{meeting_id}/call_recordings', params)
@@ -1842,7 +1843,7 @@ export default function register(api) {
1842
1843
  "data"
1843
1844
  ]
1844
1845
  },
1845
- execute: async (input) => {
1846
+ execute: async (_toolCallId, input) => {
1846
1847
  const key = ensureApiKey()
1847
1848
  const params = parseToolInput(input)
1848
1849
  return callSuperagnt(key, 'POST', '/v2/meetings/{meeting_id}/call_recordings', undefined, params)
@@ -1869,7 +1870,7 @@ export default function register(api) {
1869
1870
  "call_recording_id"
1870
1871
  ]
1871
1872
  },
1872
- execute: async (input) => {
1873
+ execute: async (_toolCallId, input) => {
1873
1874
  const key = ensureApiKey()
1874
1875
  const params = parseToolInput(input)
1875
1876
  return callSuperagnt(key, 'GET', '/v2/meetings/{meeting_id}/call_recordings/{call_recording_id}', params)
@@ -1896,7 +1897,7 @@ export default function register(api) {
1896
1897
  "call_recording_id"
1897
1898
  ]
1898
1899
  },
1899
- execute: async (input) => {
1900
+ execute: async (_toolCallId, input) => {
1900
1901
  const key = ensureApiKey()
1901
1902
  const params = parseToolInput(input)
1902
1903
  return callSuperagnt(key, 'DELETE', '/v2/meetings/{meeting_id}/call_recordings/{call_recording_id}', undefined, params)
@@ -1927,7 +1928,7 @@ export default function register(api) {
1927
1928
  "call_recording_id"
1928
1929
  ]
1929
1930
  },
1930
- execute: async (input) => {
1931
+ execute: async (_toolCallId, input) => {
1931
1932
  const key = ensureApiKey()
1932
1933
  const params = parseToolInput(input)
1933
1934
  return callSuperagnt(key, 'GET', '/v2/meetings/{meeting_id}/call_recordings/{call_recording_id}/transcript', params)
@@ -1970,7 +1971,7 @@ export default function register(api) {
1970
1971
  "record_id"
1971
1972
  ]
1972
1973
  },
1973
- execute: async (input) => {
1974
+ execute: async (_toolCallId, input) => {
1974
1975
  const key = ensureApiKey()
1975
1976
  const params = parseToolInput(input)
1976
1977
  return callSuperagnt(key, 'GET', '/v2/files', params)
@@ -1984,7 +1985,7 @@ export default function register(api) {
1984
1985
  "type": "object",
1985
1986
  "properties": {}
1986
1987
  },
1987
- execute: async (input) => {
1988
+ execute: async (_toolCallId, input) => {
1988
1989
  const key = ensureApiKey()
1989
1990
  const params = parseToolInput(input)
1990
1991
  return callSuperagnt(key, 'POST', '/v2/files', undefined, params)
@@ -1998,7 +1999,7 @@ export default function register(api) {
1998
1999
  "type": "object",
1999
2000
  "properties": {}
2000
2001
  },
2001
- execute: async (input) => {
2002
+ execute: async (_toolCallId, input) => {
2002
2003
  const key = ensureApiKey()
2003
2004
  const params = parseToolInput(input)
2004
2005
  return callSuperagnt(key, 'POST', '/v2/files/upload', undefined, params)
@@ -2020,7 +2021,7 @@ export default function register(api) {
2020
2021
  "file_id"
2021
2022
  ]
2022
2023
  },
2023
- execute: async (input) => {
2024
+ execute: async (_toolCallId, input) => {
2024
2025
  const key = ensureApiKey()
2025
2026
  const params = parseToolInput(input)
2026
2027
  return callSuperagnt(key, 'GET', '/v2/files/{file_id}', params)
@@ -2042,7 +2043,7 @@ export default function register(api) {
2042
2043
  "file_id"
2043
2044
  ]
2044
2045
  },
2045
- execute: async (input) => {
2046
+ execute: async (_toolCallId, input) => {
2046
2047
  const key = ensureApiKey()
2047
2048
  const params = parseToolInput(input)
2048
2049
  return callSuperagnt(key, 'DELETE', '/v2/files/{file_id}', undefined, params)
@@ -2064,7 +2065,7 @@ export default function register(api) {
2064
2065
  "file_id"
2065
2066
  ]
2066
2067
  },
2067
- execute: async (input) => {
2068
+ execute: async (_toolCallId, input) => {
2068
2069
  const key = ensureApiKey()
2069
2070
  const params = parseToolInput(input)
2070
2071
  return callSuperagnt(key, 'GET', '/v2/files/{file_id}/download', params)
@@ -2078,7 +2079,7 @@ export default function register(api) {
2078
2079
  "type": "object",
2079
2080
  "properties": {}
2080
2081
  },
2081
- execute: async (input) => {
2082
+ execute: async (_toolCallId, input) => {
2082
2083
  const key = ensureApiKey()
2083
2084
  const params = parseToolInput(input)
2084
2085
  return callSuperagnt(key, 'GET', '/scim/v2/Schemas', params)
@@ -2092,7 +2093,7 @@ export default function register(api) {
2092
2093
  "type": "object",
2093
2094
  "properties": {}
2094
2095
  },
2095
- execute: async (input) => {
2096
+ execute: async (_toolCallId, input) => {
2096
2097
  const key = ensureApiKey()
2097
2098
  const params = parseToolInput(input)
2098
2099
  return callSuperagnt(key, 'GET', '/scim/v2/Users', params)
@@ -2106,7 +2107,7 @@ export default function register(api) {
2106
2107
  "type": "object",
2107
2108
  "properties": {}
2108
2109
  },
2109
- execute: async (input) => {
2110
+ execute: async (_toolCallId, input) => {
2110
2111
  const key = ensureApiKey()
2111
2112
  const params = parseToolInput(input)
2112
2113
  return callSuperagnt(key, 'POST', '/scim/v2/Users', undefined, params)
@@ -2120,7 +2121,7 @@ export default function register(api) {
2120
2121
  "type": "object",
2121
2122
  "properties": {}
2122
2123
  },
2123
- execute: async (input) => {
2124
+ execute: async (_toolCallId, input) => {
2124
2125
  const key = ensureApiKey()
2125
2126
  const params = parseToolInput(input)
2126
2127
  return callSuperagnt(key, 'GET', '/scim/v2/Groups', params)
@@ -2134,7 +2135,7 @@ export default function register(api) {
2134
2135
  "type": "object",
2135
2136
  "properties": {}
2136
2137
  },
2137
- execute: async (input) => {
2138
+ execute: async (_toolCallId, input) => {
2138
2139
  const key = ensureApiKey()
2139
2140
  const params = parseToolInput(input)
2140
2141
  return callSuperagnt(key, 'POST', '/scim/v2/Groups', undefined, params)
@@ -2148,7 +2149,7 @@ export default function register(api) {
2148
2149
  "type": "object",
2149
2150
  "properties": {}
2150
2151
  },
2151
- execute: async (input) => {
2152
+ execute: async (_toolCallId, input) => {
2152
2153
  const key = ensureApiKey()
2153
2154
  const params = parseToolInput(input)
2154
2155
  return callSuperagnt(key, 'GET', '/scim/v2/Users/{user_id}', params)
@@ -2162,7 +2163,7 @@ export default function register(api) {
2162
2163
  "type": "object",
2163
2164
  "properties": {}
2164
2165
  },
2165
- execute: async (input) => {
2166
+ execute: async (_toolCallId, input) => {
2166
2167
  const key = ensureApiKey()
2167
2168
  const params = parseToolInput(input)
2168
2169
  return callSuperagnt(key, 'PUT', '/scim/v2/Users/{user_id}', undefined, params)
@@ -2176,7 +2177,7 @@ export default function register(api) {
2176
2177
  "type": "object",
2177
2178
  "properties": {}
2178
2179
  },
2179
- execute: async (input) => {
2180
+ execute: async (_toolCallId, input) => {
2180
2181
  const key = ensureApiKey()
2181
2182
  const params = parseToolInput(input)
2182
2183
  return callSuperagnt(key, 'PATCH', '/scim/v2/Users/{user_id}', undefined, params)
@@ -2190,7 +2191,7 @@ export default function register(api) {
2190
2191
  "type": "object",
2191
2192
  "properties": {}
2192
2193
  },
2193
- execute: async (input) => {
2194
+ execute: async (_toolCallId, input) => {
2194
2195
  const key = ensureApiKey()
2195
2196
  const params = parseToolInput(input)
2196
2197
  return callSuperagnt(key, 'DELETE', '/scim/v2/Users/{user_id}', undefined, params)
@@ -2204,7 +2205,7 @@ export default function register(api) {
2204
2205
  "type": "object",
2205
2206
  "properties": {}
2206
2207
  },
2207
- execute: async (input) => {
2208
+ execute: async (_toolCallId, input) => {
2208
2209
  const key = ensureApiKey()
2209
2210
  const params = parseToolInput(input)
2210
2211
  return callSuperagnt(key, 'GET', '/scim/v2/Groups/{workspace_team_id}', params)
@@ -2218,7 +2219,7 @@ export default function register(api) {
2218
2219
  "type": "object",
2219
2220
  "properties": {}
2220
2221
  },
2221
- execute: async (input) => {
2222
+ execute: async (_toolCallId, input) => {
2222
2223
  const key = ensureApiKey()
2223
2224
  const params = parseToolInput(input)
2224
2225
  return callSuperagnt(key, 'PUT', '/scim/v2/Groups/{workspace_team_id}', undefined, params)
@@ -2232,7 +2233,7 @@ export default function register(api) {
2232
2233
  "type": "object",
2233
2234
  "properties": {}
2234
2235
  },
2235
- execute: async (input) => {
2236
+ execute: async (_toolCallId, input) => {
2236
2237
  const key = ensureApiKey()
2237
2238
  const params = parseToolInput(input)
2238
2239
  return callSuperagnt(key, 'PATCH', '/scim/v2/Groups/{workspace_team_id}', undefined, params)
@@ -2246,7 +2247,7 @@ export default function register(api) {
2246
2247
  "type": "object",
2247
2248
  "properties": {}
2248
2249
  },
2249
- execute: async (input) => {
2250
+ execute: async (_toolCallId, input) => {
2250
2251
  const key = ensureApiKey()
2251
2252
  const params = parseToolInput(input)
2252
2253
  return callSuperagnt(key, 'DELETE', '/scim/v2/Groups/{workspace_team_id}', undefined, params)
@@ -2269,7 +2270,7 @@ export default function register(api) {
2269
2270
  }
2270
2271
  }
2271
2272
  },
2272
- execute: async (input) => {
2273
+ execute: async (_toolCallId, input) => {
2273
2274
  const key = ensureApiKey()
2274
2275
  const params = parseToolInput(input)
2275
2276
  return callSuperagnt(key, 'GET', '/v2/webhooks', params)
@@ -2291,7 +2292,7 @@ export default function register(api) {
2291
2292
  "data"
2292
2293
  ]
2293
2294
  },
2294
- execute: async (input) => {
2295
+ execute: async (_toolCallId, input) => {
2295
2296
  const key = ensureApiKey()
2296
2297
  const params = parseToolInput(input)
2297
2298
  return callSuperagnt(key, 'POST', '/v2/webhooks', undefined, params)
@@ -2313,7 +2314,7 @@ export default function register(api) {
2313
2314
  "webhook_id"
2314
2315
  ]
2315
2316
  },
2316
- execute: async (input) => {
2317
+ execute: async (_toolCallId, input) => {
2317
2318
  const key = ensureApiKey()
2318
2319
  const params = parseToolInput(input)
2319
2320
  return callSuperagnt(key, 'GET', '/v2/webhooks/{webhook_id}', params)
@@ -2340,7 +2341,7 @@ export default function register(api) {
2340
2341
  "data"
2341
2342
  ]
2342
2343
  },
2343
- execute: async (input) => {
2344
+ execute: async (_toolCallId, input) => {
2344
2345
  const key = ensureApiKey()
2345
2346
  const params = parseToolInput(input)
2346
2347
  return callSuperagnt(key, 'PATCH', '/v2/webhooks/{webhook_id}', undefined, params)
@@ -2362,7 +2363,7 @@ export default function register(api) {
2362
2363
  "webhook_id"
2363
2364
  ]
2364
2365
  },
2365
- execute: async (input) => {
2366
+ execute: async (_toolCallId, input) => {
2366
2367
  const key = ensureApiKey()
2367
2368
  const params = parseToolInput(input)
2368
2369
  return callSuperagnt(key, 'DELETE', '/v2/webhooks/{webhook_id}', undefined, params)
@@ -2376,7 +2377,7 @@ export default function register(api) {
2376
2377
  "type": "object",
2377
2378
  "properties": {}
2378
2379
  },
2379
- execute: async (input) => {
2380
+ execute: async (_toolCallId, input) => {
2380
2381
  const key = ensureApiKey()
2381
2382
  const params = parseToolInput(input)
2382
2383
  return callSuperagnt(key, 'GET', '/v2/self', params)
@@ -2,7 +2,7 @@
2
2
  "id": "attio-crm",
3
3
  "name": "Attio Integration",
4
4
  "description": "OpenClaw plugin for Attio CRM — manage records, lists, notes, tasks, meetings, and call recordings with your superagnt API key.",
5
- "version": "2.0.4",
5
+ "version": "2.0.5",
6
6
  "contracts": {
7
7
  "tools": [
8
8
  "superagnt_connection_attio_get_v2_objects",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superagnt/attio-crm",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "type": "module",
5
5
  "description": "OpenClaw plugin for Attio CRM — manage records, lists, notes, tasks, meetings, and call recordings with your superagnt API key.",
6
6
  "main": "index.js",