@superagnt/attio-crm 2.0.2 → 2.0.4
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/README.md +10 -11
- package/index.js +175 -387
- package/openclaw.plugin.json +92 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -28,194 +28,6 @@ function readAgntConfig() {
|
|
|
28
28
|
|
|
29
29
|
// ── End Auth Module ──────────────────────────────────────────────────────────
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
// ── CLI Module (inlined) ─────────────────────────────────────────────────────
|
|
33
|
-
|
|
34
|
-
function maskApiKey(key) {
|
|
35
|
-
if (!key || typeof key !== 'string') return '(none)'
|
|
36
|
-
const k = key.trim()
|
|
37
|
-
if (k.length <= 8) return k.slice(0, 2) + '…'
|
|
38
|
-
return k.slice(0, 6) + '…' + k.slice(-4)
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function registerAgntCli(api) {
|
|
42
|
-
api.registerCli(
|
|
43
|
-
({ program }) => {
|
|
44
|
-
const cmd = program
|
|
45
|
-
.command('superagnt')
|
|
46
|
-
.description('superagnt social data API (status, doctor)')
|
|
47
|
-
|
|
48
|
-
cmd
|
|
49
|
-
.command('status')
|
|
50
|
-
.description('Show whether an API key is configured (masked)')
|
|
51
|
-
.action(async () => {
|
|
52
|
-
const cfg = readAgntConfig()
|
|
53
|
-
const key = cfg?.apiKey
|
|
54
|
-
|
|
55
|
-
console.log('\nsuperagnt status\n')
|
|
56
|
-
if (!key) {
|
|
57
|
-
console.log(' API key: not configured')
|
|
58
|
-
console.log(' Workspace: —')
|
|
59
|
-
console.log('\n Get your API key at: https://app.superagnt.com/dashboard\n')
|
|
60
|
-
return
|
|
61
|
-
}
|
|
62
|
-
console.log(' API key: ' + maskApiKey(key) + ' (from ~/.superagnt/config.json)')
|
|
63
|
-
console.log(' Workspace: ' + (cfg?.workspaceId ?? '—'))
|
|
64
|
-
console.log('')
|
|
65
|
-
})
|
|
66
|
-
|
|
67
|
-
cmd
|
|
68
|
-
.command('doctor')
|
|
69
|
-
.description('Check connectivity and validate API key against api.superagnt.dev')
|
|
70
|
-
.action(async () => {
|
|
71
|
-
console.log('\nsuperagnt doctor\n')
|
|
72
|
-
|
|
73
|
-
try {
|
|
74
|
-
const publicRes = await fetch('https://api.superagnt.com/v1/platforms')
|
|
75
|
-
console.log(' Public API: ' + (publicRes.ok ? 'OK (' + publicRes.status + ')' : 'HTTP ' + publicRes.status))
|
|
76
|
-
} catch (err) {
|
|
77
|
-
const msg = err instanceof Error ? err.message : String(err)
|
|
78
|
-
console.log(' Public API: failed — ' + msg)
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
const cfg = readAgntConfig()
|
|
82
|
-
const key = cfg?.apiKey
|
|
83
|
-
|
|
84
|
-
if (!key) {
|
|
85
|
-
console.log('\n Authenticated: skipped (no API key)')
|
|
86
|
-
console.log(' Get your API key at: https://app.superagnt.com/dashboard\n')
|
|
87
|
-
return
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
try {
|
|
91
|
-
const res = await fetch('https://api.superagnt.com/v1/platforms', {
|
|
92
|
-
headers: { Authorization: 'Bearer ' + key },
|
|
93
|
-
})
|
|
94
|
-
const text = await res.text()
|
|
95
|
-
let summary = 'HTTP ' + res.status
|
|
96
|
-
if (res.ok) {
|
|
97
|
-
try {
|
|
98
|
-
const json = JSON.parse(text)
|
|
99
|
-
const n = Array.isArray(json?.data) ? json.data.length : (json?.data ? Object.keys(json.data).length : 'ok')
|
|
100
|
-
summary = 'OK — platforms payload received (' + (typeof n === 'number' ? n + ' entries' : String(n)) + ')'
|
|
101
|
-
} catch {
|
|
102
|
-
summary = 'OK (' + res.status + ')'
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
console.log(' Authenticated: ' + summary)
|
|
106
|
-
if (!res.ok) {
|
|
107
|
-
console.log(' If 401, get a new key at: https://app.superagnt.com/dashboard')
|
|
108
|
-
}
|
|
109
|
-
} catch (err) {
|
|
110
|
-
const msg = err instanceof Error ? err.message : String(err)
|
|
111
|
-
console.log(' Authenticated: failed — ' + msg)
|
|
112
|
-
}
|
|
113
|
-
console.log('')
|
|
114
|
-
})
|
|
115
|
-
},
|
|
116
|
-
{ commands: ['superagnt'] },
|
|
117
|
-
)
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// ── End CLI Module ───────────────────────────────────────────────────────────
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
// ── System prompt (inlined) ─────────────────────────────────────────────────
|
|
124
|
-
|
|
125
|
-
function getSystemPrompt(state) {
|
|
126
|
-
const scope = "Only the Attio integration (attio)."
|
|
127
|
-
if (state.ready && state.toolCount > 0) {
|
|
128
|
-
return (
|
|
129
|
-
'<superagnt>\n' +
|
|
130
|
-
'Ignore pretrained knowledge about superagnt tool names — use only tools that exist in this session.\n' +
|
|
131
|
-
'\n' +
|
|
132
|
-
'## What superagnt is\n' +
|
|
133
|
-
'superagnt exposes **structured social-data HTTP APIs** behind OpenClaw tools. Scope for this plugin: **' + scope + '**.\n' +
|
|
134
|
-
'\n' +
|
|
135
|
-
'## When to use superagnt tools\n' +
|
|
136
|
-
'- Use superagnt when the user needs **live social/network data** (profiles, posts, companies, comments, etc.) from supported platforms.\n' +
|
|
137
|
-
'- Prefer **discovery** when unsure which endpoint fits: call public discovery (GET /v1/platforms and GET /v1/platforms/{slug}) or read tool descriptions; do not invent endpoints or parameters.\n' +
|
|
138
|
-
'\n' +
|
|
139
|
-
'## Platform selection (high level)\n' +
|
|
140
|
-
'- **linkedin** — B2B enrichment, org/person research, hiring/sales workflows\n' +
|
|
141
|
-
'- **youtube** / **tiktok** — video/creator/channel metadata and content signals\n' +
|
|
142
|
-
'- **x** / **reddit** — short-form social and community threads\n' +
|
|
143
|
-
'- **instagram** — visual/creator discovery where Instagram is the source of truth\n' +
|
|
144
|
-
'- **facebook** — pages/groups/marketplace/adjacent Facebook surface areas exposed by the API\n' +
|
|
145
|
-
'\n' +
|
|
146
|
-
'## Rules\n' +
|
|
147
|
-
'- Do **not** fabricate tool names — pick from the registered superagnt_* tools only.\n' +
|
|
148
|
-
'- If authentication fails (401), tell the user to get a new key at https://app.superagnt.com/dashboard\n' +
|
|
149
|
-
'</superagnt>'
|
|
150
|
-
)
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
if (state.ready && state.toolCount === 0) {
|
|
154
|
-
return (
|
|
155
|
-
'<superagnt>\n' +
|
|
156
|
-
'The superagnt plugin loaded but registered **zero** API tools. Check your OpenClaw plugin packaging and regenerate the plugin from @superagnt/clawhub.\n' +
|
|
157
|
-
'</superagnt>'
|
|
158
|
-
)
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
if (state.error) {
|
|
162
|
-
return (
|
|
163
|
-
'<superagnt>\n' +
|
|
164
|
-
'superagnt plugin diagnostic: ' + state.error + '\n' +
|
|
165
|
-
'Do not pretend superagnt tools exist. Ask the user to fix configuration and restart the gateway.\n' +
|
|
166
|
-
'</superagnt>'
|
|
167
|
-
)
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
return (
|
|
171
|
-
'<superagnt>\n' +
|
|
172
|
-
'superagnt tools are still loading. If the user asks for social data right now, ask them to wait a moment and retry.\n' +
|
|
173
|
-
'</superagnt>'
|
|
174
|
-
)
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
// ── End System prompt ────────────────────────────────────────────────────────
|
|
178
|
-
|
|
179
|
-
const MCP_URL = 'https://mcp.superagnt.com/mcp'
|
|
180
|
-
|
|
181
|
-
async function mcpRpc(token, method, params) {
|
|
182
|
-
const res = await fetch(MCP_URL, {
|
|
183
|
-
method: 'POST',
|
|
184
|
-
headers: {
|
|
185
|
-
Authorization: `Bearer ${token}`,
|
|
186
|
-
'Content-Type': 'application/json',
|
|
187
|
-
Accept: 'application/json, text/event-stream',
|
|
188
|
-
},
|
|
189
|
-
body: JSON.stringify({ jsonrpc: '2.0', id: Date.now(), method, params }),
|
|
190
|
-
})
|
|
191
|
-
if (!res.ok) throw new Error(`MCP ${method} failed: HTTP ${res.status}`)
|
|
192
|
-
const data = await res.json()
|
|
193
|
-
if (data.error) throw new Error(`MCP ${method} error: ${data.error.message}`)
|
|
194
|
-
return data.result
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
async function registerLiveMcpTools(api, token) {
|
|
198
|
-
const result = await mcpRpc(token, 'tools/list', {})
|
|
199
|
-
const tools = Array.isArray(result?.tools) ? result.tools : []
|
|
200
|
-
if (tools.length === 0) throw new Error('MCP tools/list returned no tools')
|
|
201
|
-
for (const t of tools) {
|
|
202
|
-
api.registerTool({
|
|
203
|
-
name: t.name,
|
|
204
|
-
description: t.description,
|
|
205
|
-
inputSchema: t.inputSchema,
|
|
206
|
-
execute: async (input) => {
|
|
207
|
-
const args = parseToolInput(input)
|
|
208
|
-
const r = await mcpRpc(token, 'tools/call', { name: t.name, arguments: args })
|
|
209
|
-
if (r && r.structuredContent !== undefined) return r.structuredContent
|
|
210
|
-
const text = Array.isArray(r?.content) ? r.content.find((c) => c.type === 'text')?.text : undefined
|
|
211
|
-
if (text === undefined) return r
|
|
212
|
-
try { return JSON.parse(text) } catch { return text }
|
|
213
|
-
},
|
|
214
|
-
})
|
|
215
|
-
}
|
|
216
|
-
return tools.length
|
|
217
|
-
}
|
|
218
|
-
|
|
219
31
|
function parseToolInput(input) {
|
|
220
32
|
if (input == null) return {}
|
|
221
33
|
if (typeof input === 'object' && !Array.isArray(input)) return input
|
|
@@ -267,9 +79,8 @@ async function callSuperagnt(apiKey, method, path, query, body) {
|
|
|
267
79
|
return res.json()
|
|
268
80
|
}
|
|
269
81
|
|
|
270
|
-
export default
|
|
82
|
+
export default function register(api) {
|
|
271
83
|
const apiKey = api.pluginConfig.apiKey || process.env.SUPERAGNT_API_KEY || readAgntConfig()?.apiKey
|
|
272
|
-
const mcpToken = api.pluginConfig.mcpToken || process.env.SUPERAGNT_MCP_TOKEN
|
|
273
84
|
|
|
274
85
|
function ensureApiKey() {
|
|
275
86
|
if (apiKey) return apiKey
|
|
@@ -281,35 +92,15 @@ export default async function register(api) {
|
|
|
281
92
|
)
|
|
282
93
|
}
|
|
283
94
|
|
|
284
|
-
registerAgntCli(api)
|
|
285
|
-
|
|
286
|
-
const promptState = { toolCount: 0, error: '', ready: false }
|
|
287
|
-
api.on('before_prompt_build', () => ({
|
|
288
|
-
prependSystemContext: getSystemPrompt(promptState),
|
|
289
|
-
}))
|
|
290
|
-
|
|
291
|
-
// Live MCP mode: a workspace MCP token upgrades this plugin to the server's
|
|
292
|
-
// own tool surface, fetched fresh at load — it grows with agnt_tools_enable
|
|
293
|
-
// and never goes stale. Any failure falls back to the baked toolset below.
|
|
294
|
-
if (mcpToken) {
|
|
295
|
-
try {
|
|
296
|
-
promptState.toolCount = await registerLiveMcpTools(api, mcpToken)
|
|
297
|
-
promptState.ready = true
|
|
298
|
-
return
|
|
299
|
-
} catch (err) {
|
|
300
|
-
promptState.error = 'Live MCP connect failed (' + (err && err.message ? err.message : err) + '); using the built-in toolset.'
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
|
|
304
95
|
api.registerTool({
|
|
305
96
|
name: 'superagnt_connection_attio_get_v2_objects',
|
|
306
97
|
description: "List objects",
|
|
307
|
-
|
|
98
|
+
parameters: {
|
|
308
99
|
"type": "object",
|
|
309
100
|
"properties": {}
|
|
310
101
|
},
|
|
311
102
|
execute: async (input) => {
|
|
312
|
-
const key =
|
|
103
|
+
const key = ensureApiKey()
|
|
313
104
|
const params = parseToolInput(input)
|
|
314
105
|
return callSuperagnt(key, 'GET', '/v2/objects', params)
|
|
315
106
|
},
|
|
@@ -318,7 +109,7 @@ export default async function register(api) {
|
|
|
318
109
|
api.registerTool({
|
|
319
110
|
name: 'superagnt_connection_attio_post_v2_objects',
|
|
320
111
|
description: "Create an object",
|
|
321
|
-
|
|
112
|
+
parameters: {
|
|
322
113
|
"type": "object",
|
|
323
114
|
"properties": {
|
|
324
115
|
"data": {
|
|
@@ -331,7 +122,7 @@ export default async function register(api) {
|
|
|
331
122
|
]
|
|
332
123
|
},
|
|
333
124
|
execute: async (input) => {
|
|
334
|
-
const key =
|
|
125
|
+
const key = ensureApiKey()
|
|
335
126
|
const params = parseToolInput(input)
|
|
336
127
|
return callSuperagnt(key, 'POST', '/v2/objects', undefined, params)
|
|
337
128
|
},
|
|
@@ -340,7 +131,7 @@ export default async function register(api) {
|
|
|
340
131
|
api.registerTool({
|
|
341
132
|
name: 'superagnt_connection_attio_get_v2_objects__object_',
|
|
342
133
|
description: "Get an object",
|
|
343
|
-
|
|
134
|
+
parameters: {
|
|
344
135
|
"type": "object",
|
|
345
136
|
"properties": {
|
|
346
137
|
"object": {
|
|
@@ -353,7 +144,7 @@ export default async function register(api) {
|
|
|
353
144
|
]
|
|
354
145
|
},
|
|
355
146
|
execute: async (input) => {
|
|
356
|
-
const key =
|
|
147
|
+
const key = ensureApiKey()
|
|
357
148
|
const params = parseToolInput(input)
|
|
358
149
|
return callSuperagnt(key, 'GET', '/v2/objects/{object}', params)
|
|
359
150
|
},
|
|
@@ -362,7 +153,7 @@ export default async function register(api) {
|
|
|
362
153
|
api.registerTool({
|
|
363
154
|
name: 'superagnt_connection_attio_patch_v2_objects__object_',
|
|
364
155
|
description: "Update an object",
|
|
365
|
-
|
|
156
|
+
parameters: {
|
|
366
157
|
"type": "object",
|
|
367
158
|
"properties": {
|
|
368
159
|
"object": {
|
|
@@ -380,7 +171,7 @@ export default async function register(api) {
|
|
|
380
171
|
]
|
|
381
172
|
},
|
|
382
173
|
execute: async (input) => {
|
|
383
|
-
const key =
|
|
174
|
+
const key = ensureApiKey()
|
|
384
175
|
const params = parseToolInput(input)
|
|
385
176
|
return callSuperagnt(key, 'PATCH', '/v2/objects/{object}', undefined, params)
|
|
386
177
|
},
|
|
@@ -389,7 +180,7 @@ export default async function register(api) {
|
|
|
389
180
|
api.registerTool({
|
|
390
181
|
name: 'superagnt_connection_attio_get_v2_objects__object__views',
|
|
391
182
|
description: "List views for object",
|
|
392
|
-
|
|
183
|
+
parameters: {
|
|
393
184
|
"type": "object",
|
|
394
185
|
"properties": {
|
|
395
186
|
"object": {
|
|
@@ -414,7 +205,7 @@ export default async function register(api) {
|
|
|
414
205
|
]
|
|
415
206
|
},
|
|
416
207
|
execute: async (input) => {
|
|
417
|
-
const key =
|
|
208
|
+
const key = ensureApiKey()
|
|
418
209
|
const params = parseToolInput(input)
|
|
419
210
|
return callSuperagnt(key, 'GET', '/v2/objects/{object}/views', params)
|
|
420
211
|
},
|
|
@@ -423,7 +214,7 @@ export default async function register(api) {
|
|
|
423
214
|
api.registerTool({
|
|
424
215
|
name: 'superagnt_connection_attio_list_attributes',
|
|
425
216
|
description: "List attributes",
|
|
426
|
-
|
|
217
|
+
parameters: {
|
|
427
218
|
"type": "object",
|
|
428
219
|
"properties": {
|
|
429
220
|
"target": {
|
|
@@ -453,7 +244,7 @@ export default async function register(api) {
|
|
|
453
244
|
]
|
|
454
245
|
},
|
|
455
246
|
execute: async (input) => {
|
|
456
|
-
const key =
|
|
247
|
+
const key = ensureApiKey()
|
|
457
248
|
const params = parseToolInput(input)
|
|
458
249
|
return callSuperagnt(key, 'GET', '/v2/{target}/{identifier}/attributes', params)
|
|
459
250
|
},
|
|
@@ -462,7 +253,7 @@ export default async function register(api) {
|
|
|
462
253
|
api.registerTool({
|
|
463
254
|
name: 'superagnt_connection_attio_create_attribute',
|
|
464
255
|
description: "Create an attribute",
|
|
465
|
-
|
|
256
|
+
parameters: {
|
|
466
257
|
"type": "object",
|
|
467
258
|
"properties": {
|
|
468
259
|
"target": {
|
|
@@ -485,7 +276,7 @@ export default async function register(api) {
|
|
|
485
276
|
]
|
|
486
277
|
},
|
|
487
278
|
execute: async (input) => {
|
|
488
|
-
const key =
|
|
279
|
+
const key = ensureApiKey()
|
|
489
280
|
const params = parseToolInput(input)
|
|
490
281
|
return callSuperagnt(key, 'POST', '/v2/{target}/{identifier}/attributes', undefined, params)
|
|
491
282
|
},
|
|
@@ -494,7 +285,7 @@ export default async function register(api) {
|
|
|
494
285
|
api.registerTool({
|
|
495
286
|
name: 'superagnt_connection_attio_get_attribute',
|
|
496
287
|
description: "Get an attribute",
|
|
497
|
-
|
|
288
|
+
parameters: {
|
|
498
289
|
"type": "object",
|
|
499
290
|
"properties": {
|
|
500
291
|
"target": {
|
|
@@ -517,7 +308,7 @@ export default async function register(api) {
|
|
|
517
308
|
]
|
|
518
309
|
},
|
|
519
310
|
execute: async (input) => {
|
|
520
|
-
const key =
|
|
311
|
+
const key = ensureApiKey()
|
|
521
312
|
const params = parseToolInput(input)
|
|
522
313
|
return callSuperagnt(key, 'GET', '/v2/{target}/{identifier}/attributes/{attribute}', params)
|
|
523
314
|
},
|
|
@@ -526,7 +317,7 @@ export default async function register(api) {
|
|
|
526
317
|
api.registerTool({
|
|
527
318
|
name: 'superagnt_connection_attio_update_attribute',
|
|
528
319
|
description: "Update an attribute",
|
|
529
|
-
|
|
320
|
+
parameters: {
|
|
530
321
|
"type": "object",
|
|
531
322
|
"properties": {
|
|
532
323
|
"target": {
|
|
@@ -554,7 +345,7 @@ export default async function register(api) {
|
|
|
554
345
|
]
|
|
555
346
|
},
|
|
556
347
|
execute: async (input) => {
|
|
557
|
-
const key =
|
|
348
|
+
const key = ensureApiKey()
|
|
558
349
|
const params = parseToolInput(input)
|
|
559
350
|
return callSuperagnt(key, 'PATCH', '/v2/{target}/{identifier}/attributes/{attribute}', undefined, params)
|
|
560
351
|
},
|
|
@@ -563,7 +354,7 @@ export default async function register(api) {
|
|
|
563
354
|
api.registerTool({
|
|
564
355
|
name: 'superagnt_connection_attio_list_attribute_options',
|
|
565
356
|
description: "List select options",
|
|
566
|
-
|
|
357
|
+
parameters: {
|
|
567
358
|
"type": "object",
|
|
568
359
|
"properties": {
|
|
569
360
|
"target": {
|
|
@@ -590,7 +381,7 @@ export default async function register(api) {
|
|
|
590
381
|
]
|
|
591
382
|
},
|
|
592
383
|
execute: async (input) => {
|
|
593
|
-
const key =
|
|
384
|
+
const key = ensureApiKey()
|
|
594
385
|
const params = parseToolInput(input)
|
|
595
386
|
return callSuperagnt(key, 'GET', '/v2/{target}/{identifier}/attributes/{attribute}/options', params)
|
|
596
387
|
},
|
|
@@ -599,7 +390,7 @@ export default async function register(api) {
|
|
|
599
390
|
api.registerTool({
|
|
600
391
|
name: 'superagnt_connection_attio_create_attribute_option',
|
|
601
392
|
description: "Create a select option",
|
|
602
|
-
|
|
393
|
+
parameters: {
|
|
603
394
|
"type": "object",
|
|
604
395
|
"properties": {
|
|
605
396
|
"target": {
|
|
@@ -627,7 +418,7 @@ export default async function register(api) {
|
|
|
627
418
|
]
|
|
628
419
|
},
|
|
629
420
|
execute: async (input) => {
|
|
630
|
-
const key =
|
|
421
|
+
const key = ensureApiKey()
|
|
631
422
|
const params = parseToolInput(input)
|
|
632
423
|
return callSuperagnt(key, 'POST', '/v2/{target}/{identifier}/attributes/{attribute}/options', undefined, params)
|
|
633
424
|
},
|
|
@@ -636,7 +427,7 @@ export default async function register(api) {
|
|
|
636
427
|
api.registerTool({
|
|
637
428
|
name: 'superagnt_connection_attio_update_attribute_option',
|
|
638
429
|
description: "Update a select option",
|
|
639
|
-
|
|
430
|
+
parameters: {
|
|
640
431
|
"type": "object",
|
|
641
432
|
"properties": {
|
|
642
433
|
"target": {
|
|
@@ -669,7 +460,7 @@ export default async function register(api) {
|
|
|
669
460
|
]
|
|
670
461
|
},
|
|
671
462
|
execute: async (input) => {
|
|
672
|
-
const key =
|
|
463
|
+
const key = ensureApiKey()
|
|
673
464
|
const params = parseToolInput(input)
|
|
674
465
|
return callSuperagnt(key, 'PATCH', '/v2/{target}/{identifier}/attributes/{attribute}/options/{option}', undefined, params)
|
|
675
466
|
},
|
|
@@ -678,7 +469,7 @@ export default async function register(api) {
|
|
|
678
469
|
api.registerTool({
|
|
679
470
|
name: 'superagnt_connection_attio_list_attribute_statuses',
|
|
680
471
|
description: "List statuses",
|
|
681
|
-
|
|
472
|
+
parameters: {
|
|
682
473
|
"type": "object",
|
|
683
474
|
"properties": {
|
|
684
475
|
"target": {
|
|
@@ -705,7 +496,7 @@ export default async function register(api) {
|
|
|
705
496
|
]
|
|
706
497
|
},
|
|
707
498
|
execute: async (input) => {
|
|
708
|
-
const key =
|
|
499
|
+
const key = ensureApiKey()
|
|
709
500
|
const params = parseToolInput(input)
|
|
710
501
|
return callSuperagnt(key, 'GET', '/v2/{target}/{identifier}/attributes/{attribute}/statuses', params)
|
|
711
502
|
},
|
|
@@ -714,7 +505,7 @@ export default async function register(api) {
|
|
|
714
505
|
api.registerTool({
|
|
715
506
|
name: 'superagnt_connection_attio_create_attribute_status',
|
|
716
507
|
description: "Create a status",
|
|
717
|
-
|
|
508
|
+
parameters: {
|
|
718
509
|
"type": "object",
|
|
719
510
|
"properties": {
|
|
720
511
|
"target": {
|
|
@@ -742,7 +533,7 @@ export default async function register(api) {
|
|
|
742
533
|
]
|
|
743
534
|
},
|
|
744
535
|
execute: async (input) => {
|
|
745
|
-
const key =
|
|
536
|
+
const key = ensureApiKey()
|
|
746
537
|
const params = parseToolInput(input)
|
|
747
538
|
return callSuperagnt(key, 'POST', '/v2/{target}/{identifier}/attributes/{attribute}/statuses', undefined, params)
|
|
748
539
|
},
|
|
@@ -751,7 +542,7 @@ export default async function register(api) {
|
|
|
751
542
|
api.registerTool({
|
|
752
543
|
name: 'superagnt_connection_attio_update_attribute_status',
|
|
753
544
|
description: "Update a status",
|
|
754
|
-
|
|
545
|
+
parameters: {
|
|
755
546
|
"type": "object",
|
|
756
547
|
"properties": {
|
|
757
548
|
"target": {
|
|
@@ -784,7 +575,7 @@ export default async function register(api) {
|
|
|
784
575
|
]
|
|
785
576
|
},
|
|
786
577
|
execute: async (input) => {
|
|
787
|
-
const key =
|
|
578
|
+
const key = ensureApiKey()
|
|
788
579
|
const params = parseToolInput(input)
|
|
789
580
|
return callSuperagnt(key, 'PATCH', '/v2/{target}/{identifier}/attributes/{attribute}/statuses/{status}', undefined, params)
|
|
790
581
|
},
|
|
@@ -793,7 +584,7 @@ export default async function register(api) {
|
|
|
793
584
|
api.registerTool({
|
|
794
585
|
name: 'superagnt_connection_attio_list_records',
|
|
795
586
|
description: "List records",
|
|
796
|
-
|
|
587
|
+
parameters: {
|
|
797
588
|
"type": "object",
|
|
798
589
|
"properties": {
|
|
799
590
|
"object": {
|
|
@@ -826,7 +617,7 @@ export default async function register(api) {
|
|
|
826
617
|
]
|
|
827
618
|
},
|
|
828
619
|
execute: async (input) => {
|
|
829
|
-
const key =
|
|
620
|
+
const key = ensureApiKey()
|
|
830
621
|
const params = parseToolInput(input)
|
|
831
622
|
return callSuperagnt(key, 'POST', '/v2/objects/{object}/records/query', undefined, params)
|
|
832
623
|
},
|
|
@@ -835,7 +626,7 @@ export default async function register(api) {
|
|
|
835
626
|
api.registerTool({
|
|
836
627
|
name: 'superagnt_connection_attio_post_v2_objects__object__records',
|
|
837
628
|
description: "Create a record",
|
|
838
|
-
|
|
629
|
+
parameters: {
|
|
839
630
|
"type": "object",
|
|
840
631
|
"properties": {
|
|
841
632
|
"object": {
|
|
@@ -853,7 +644,7 @@ export default async function register(api) {
|
|
|
853
644
|
]
|
|
854
645
|
},
|
|
855
646
|
execute: async (input) => {
|
|
856
|
-
const key =
|
|
647
|
+
const key = ensureApiKey()
|
|
857
648
|
const params = parseToolInput(input)
|
|
858
649
|
return callSuperagnt(key, 'POST', '/v2/objects/{object}/records', undefined, params)
|
|
859
650
|
},
|
|
@@ -862,7 +653,7 @@ export default async function register(api) {
|
|
|
862
653
|
api.registerTool({
|
|
863
654
|
name: 'superagnt_connection_attio_put_v2_objects__object__records',
|
|
864
655
|
description: "Assert a record",
|
|
865
|
-
|
|
656
|
+
parameters: {
|
|
866
657
|
"type": "object",
|
|
867
658
|
"properties": {
|
|
868
659
|
"object": {
|
|
@@ -885,7 +676,7 @@ export default async function register(api) {
|
|
|
885
676
|
]
|
|
886
677
|
},
|
|
887
678
|
execute: async (input) => {
|
|
888
|
-
const key =
|
|
679
|
+
const key = ensureApiKey()
|
|
889
680
|
const params = parseToolInput(input)
|
|
890
681
|
return callSuperagnt(key, 'PUT', '/v2/objects/{object}/records', undefined, params)
|
|
891
682
|
},
|
|
@@ -894,7 +685,7 @@ export default async function register(api) {
|
|
|
894
685
|
api.registerTool({
|
|
895
686
|
name: 'superagnt_connection_attio_get_record',
|
|
896
687
|
description: "Get a record",
|
|
897
|
-
|
|
688
|
+
parameters: {
|
|
898
689
|
"type": "object",
|
|
899
690
|
"properties": {
|
|
900
691
|
"object": {
|
|
@@ -912,7 +703,7 @@ export default async function register(api) {
|
|
|
912
703
|
]
|
|
913
704
|
},
|
|
914
705
|
execute: async (input) => {
|
|
915
|
-
const key =
|
|
706
|
+
const key = ensureApiKey()
|
|
916
707
|
const params = parseToolInput(input)
|
|
917
708
|
return callSuperagnt(key, 'GET', '/v2/objects/{object}/records/{record_id}', params)
|
|
918
709
|
},
|
|
@@ -921,7 +712,7 @@ export default async function register(api) {
|
|
|
921
712
|
api.registerTool({
|
|
922
713
|
name: 'superagnt_connection_attio_overwrite_record',
|
|
923
714
|
description: "Update a record (overwrite multiselect values)",
|
|
924
|
-
|
|
715
|
+
parameters: {
|
|
925
716
|
"type": "object",
|
|
926
717
|
"properties": {
|
|
927
718
|
"object": {
|
|
@@ -944,7 +735,7 @@ export default async function register(api) {
|
|
|
944
735
|
]
|
|
945
736
|
},
|
|
946
737
|
execute: async (input) => {
|
|
947
|
-
const key =
|
|
738
|
+
const key = ensureApiKey()
|
|
948
739
|
const params = parseToolInput(input)
|
|
949
740
|
return callSuperagnt(key, 'PUT', '/v2/objects/{object}/records/{record_id}', undefined, params)
|
|
950
741
|
},
|
|
@@ -953,7 +744,7 @@ export default async function register(api) {
|
|
|
953
744
|
api.registerTool({
|
|
954
745
|
name: 'superagnt_connection_attio_update_record',
|
|
955
746
|
description: "Update a record (append multiselect values)",
|
|
956
|
-
|
|
747
|
+
parameters: {
|
|
957
748
|
"type": "object",
|
|
958
749
|
"properties": {
|
|
959
750
|
"object": {
|
|
@@ -976,7 +767,7 @@ export default async function register(api) {
|
|
|
976
767
|
]
|
|
977
768
|
},
|
|
978
769
|
execute: async (input) => {
|
|
979
|
-
const key =
|
|
770
|
+
const key = ensureApiKey()
|
|
980
771
|
const params = parseToolInput(input)
|
|
981
772
|
return callSuperagnt(key, 'PATCH', '/v2/objects/{object}/records/{record_id}', undefined, params)
|
|
982
773
|
},
|
|
@@ -985,7 +776,7 @@ export default async function register(api) {
|
|
|
985
776
|
api.registerTool({
|
|
986
777
|
name: 'superagnt_connection_attio_delete_record',
|
|
987
778
|
description: "Delete a record",
|
|
988
|
-
|
|
779
|
+
parameters: {
|
|
989
780
|
"type": "object",
|
|
990
781
|
"properties": {
|
|
991
782
|
"object": {
|
|
@@ -1003,7 +794,7 @@ export default async function register(api) {
|
|
|
1003
794
|
]
|
|
1004
795
|
},
|
|
1005
796
|
execute: async (input) => {
|
|
1006
|
-
const key =
|
|
797
|
+
const key = ensureApiKey()
|
|
1007
798
|
const params = parseToolInput(input)
|
|
1008
799
|
return callSuperagnt(key, 'DELETE', '/v2/objects/{object}/records/{record_id}', undefined, params)
|
|
1009
800
|
},
|
|
@@ -1012,7 +803,7 @@ export default async function register(api) {
|
|
|
1012
803
|
api.registerTool({
|
|
1013
804
|
name: 'superagnt_connection_attio_list_record_attribute_values',
|
|
1014
805
|
description: "List record attribute values",
|
|
1015
|
-
|
|
806
|
+
parameters: {
|
|
1016
807
|
"type": "object",
|
|
1017
808
|
"properties": {
|
|
1018
809
|
"object": {
|
|
@@ -1047,7 +838,7 @@ export default async function register(api) {
|
|
|
1047
838
|
]
|
|
1048
839
|
},
|
|
1049
840
|
execute: async (input) => {
|
|
1050
|
-
const key =
|
|
841
|
+
const key = ensureApiKey()
|
|
1051
842
|
const params = parseToolInput(input)
|
|
1052
843
|
return callSuperagnt(key, 'GET', '/v2/objects/{object}/records/{record_id}/attributes/{attribute}/values', params)
|
|
1053
844
|
},
|
|
@@ -1056,7 +847,7 @@ export default async function register(api) {
|
|
|
1056
847
|
api.registerTool({
|
|
1057
848
|
name: 'superagnt_connection_attio_list_record_list_entries',
|
|
1058
849
|
description: "List record entries",
|
|
1059
|
-
|
|
850
|
+
parameters: {
|
|
1060
851
|
"type": "object",
|
|
1061
852
|
"properties": {
|
|
1062
853
|
"object": {
|
|
@@ -1082,7 +873,7 @@ export default async function register(api) {
|
|
|
1082
873
|
]
|
|
1083
874
|
},
|
|
1084
875
|
execute: async (input) => {
|
|
1085
|
-
const key =
|
|
876
|
+
const key = ensureApiKey()
|
|
1086
877
|
const params = parseToolInput(input)
|
|
1087
878
|
return callSuperagnt(key, 'GET', '/v2/objects/{object}/records/{record_id}/entries', params)
|
|
1088
879
|
},
|
|
@@ -1091,7 +882,7 @@ export default async function register(api) {
|
|
|
1091
882
|
api.registerTool({
|
|
1092
883
|
name: 'superagnt_connection_attio_post_v2_objects_records_search',
|
|
1093
884
|
description: "Search records",
|
|
1094
|
-
|
|
885
|
+
parameters: {
|
|
1095
886
|
"type": "object",
|
|
1096
887
|
"properties": {
|
|
1097
888
|
"query": {
|
|
@@ -1118,7 +909,7 @@ export default async function register(api) {
|
|
|
1118
909
|
]
|
|
1119
910
|
},
|
|
1120
911
|
execute: async (input) => {
|
|
1121
|
-
const key =
|
|
912
|
+
const key = ensureApiKey()
|
|
1122
913
|
const params = parseToolInput(input)
|
|
1123
914
|
return callSuperagnt(key, 'POST', '/v2/objects/records/search', undefined, params)
|
|
1124
915
|
},
|
|
@@ -1127,12 +918,12 @@ export default async function register(api) {
|
|
|
1127
918
|
api.registerTool({
|
|
1128
919
|
name: 'superagnt_connection_attio_get_v2_lists',
|
|
1129
920
|
description: "List all lists",
|
|
1130
|
-
|
|
921
|
+
parameters: {
|
|
1131
922
|
"type": "object",
|
|
1132
923
|
"properties": {}
|
|
1133
924
|
},
|
|
1134
925
|
execute: async (input) => {
|
|
1135
|
-
const key =
|
|
926
|
+
const key = ensureApiKey()
|
|
1136
927
|
const params = parseToolInput(input)
|
|
1137
928
|
return callSuperagnt(key, 'GET', '/v2/lists', params)
|
|
1138
929
|
},
|
|
@@ -1141,7 +932,7 @@ export default async function register(api) {
|
|
|
1141
932
|
api.registerTool({
|
|
1142
933
|
name: 'superagnt_connection_attio_post_v2_lists',
|
|
1143
934
|
description: "Create a list",
|
|
1144
|
-
|
|
935
|
+
parameters: {
|
|
1145
936
|
"type": "object",
|
|
1146
937
|
"properties": {
|
|
1147
938
|
"data": {
|
|
@@ -1154,7 +945,7 @@ export default async function register(api) {
|
|
|
1154
945
|
]
|
|
1155
946
|
},
|
|
1156
947
|
execute: async (input) => {
|
|
1157
|
-
const key =
|
|
948
|
+
const key = ensureApiKey()
|
|
1158
949
|
const params = parseToolInput(input)
|
|
1159
950
|
return callSuperagnt(key, 'POST', '/v2/lists', undefined, params)
|
|
1160
951
|
},
|
|
@@ -1163,7 +954,7 @@ export default async function register(api) {
|
|
|
1163
954
|
api.registerTool({
|
|
1164
955
|
name: 'superagnt_connection_attio_get_v2_lists__list_',
|
|
1165
956
|
description: "Get a list",
|
|
1166
|
-
|
|
957
|
+
parameters: {
|
|
1167
958
|
"type": "object",
|
|
1168
959
|
"properties": {
|
|
1169
960
|
"list": {
|
|
@@ -1176,7 +967,7 @@ export default async function register(api) {
|
|
|
1176
967
|
]
|
|
1177
968
|
},
|
|
1178
969
|
execute: async (input) => {
|
|
1179
|
-
const key =
|
|
970
|
+
const key = ensureApiKey()
|
|
1180
971
|
const params = parseToolInput(input)
|
|
1181
972
|
return callSuperagnt(key, 'GET', '/v2/lists/{list}', params)
|
|
1182
973
|
},
|
|
@@ -1185,7 +976,7 @@ export default async function register(api) {
|
|
|
1185
976
|
api.registerTool({
|
|
1186
977
|
name: 'superagnt_connection_attio_patch_v2_lists__list_',
|
|
1187
978
|
description: "Update a list",
|
|
1188
|
-
|
|
979
|
+
parameters: {
|
|
1189
980
|
"type": "object",
|
|
1190
981
|
"properties": {
|
|
1191
982
|
"list": {
|
|
@@ -1203,7 +994,7 @@ export default async function register(api) {
|
|
|
1203
994
|
]
|
|
1204
995
|
},
|
|
1205
996
|
execute: async (input) => {
|
|
1206
|
-
const key =
|
|
997
|
+
const key = ensureApiKey()
|
|
1207
998
|
const params = parseToolInput(input)
|
|
1208
999
|
return callSuperagnt(key, 'PATCH', '/v2/lists/{list}', undefined, params)
|
|
1209
1000
|
},
|
|
@@ -1212,7 +1003,7 @@ export default async function register(api) {
|
|
|
1212
1003
|
api.registerTool({
|
|
1213
1004
|
name: 'superagnt_connection_attio_get_v2_lists__list__views',
|
|
1214
1005
|
description: "List views for list",
|
|
1215
|
-
|
|
1006
|
+
parameters: {
|
|
1216
1007
|
"type": "object",
|
|
1217
1008
|
"properties": {
|
|
1218
1009
|
"list": {
|
|
@@ -1237,7 +1028,7 @@ export default async function register(api) {
|
|
|
1237
1028
|
]
|
|
1238
1029
|
},
|
|
1239
1030
|
execute: async (input) => {
|
|
1240
|
-
const key =
|
|
1031
|
+
const key = ensureApiKey()
|
|
1241
1032
|
const params = parseToolInput(input)
|
|
1242
1033
|
return callSuperagnt(key, 'GET', '/v2/lists/{list}/views', params)
|
|
1243
1034
|
},
|
|
@@ -1246,7 +1037,7 @@ export default async function register(api) {
|
|
|
1246
1037
|
api.registerTool({
|
|
1247
1038
|
name: 'superagnt_connection_attio_list_list_entries',
|
|
1248
1039
|
description: "List entries",
|
|
1249
|
-
|
|
1040
|
+
parameters: {
|
|
1250
1041
|
"type": "object",
|
|
1251
1042
|
"properties": {
|
|
1252
1043
|
"list": {
|
|
@@ -1279,7 +1070,7 @@ export default async function register(api) {
|
|
|
1279
1070
|
]
|
|
1280
1071
|
},
|
|
1281
1072
|
execute: async (input) => {
|
|
1282
|
-
const key =
|
|
1073
|
+
const key = ensureApiKey()
|
|
1283
1074
|
const params = parseToolInput(input)
|
|
1284
1075
|
return callSuperagnt(key, 'POST', '/v2/lists/{list}/entries/query', undefined, params)
|
|
1285
1076
|
},
|
|
@@ -1288,7 +1079,7 @@ export default async function register(api) {
|
|
|
1288
1079
|
api.registerTool({
|
|
1289
1080
|
name: 'superagnt_connection_attio_post_v2_lists__list__entries',
|
|
1290
1081
|
description: "Create an entry (add record to list)",
|
|
1291
|
-
|
|
1082
|
+
parameters: {
|
|
1292
1083
|
"type": "object",
|
|
1293
1084
|
"properties": {
|
|
1294
1085
|
"list": {
|
|
@@ -1306,7 +1097,7 @@ export default async function register(api) {
|
|
|
1306
1097
|
]
|
|
1307
1098
|
},
|
|
1308
1099
|
execute: async (input) => {
|
|
1309
|
-
const key =
|
|
1100
|
+
const key = ensureApiKey()
|
|
1310
1101
|
const params = parseToolInput(input)
|
|
1311
1102
|
return callSuperagnt(key, 'POST', '/v2/lists/{list}/entries', undefined, params)
|
|
1312
1103
|
},
|
|
@@ -1315,7 +1106,7 @@ export default async function register(api) {
|
|
|
1315
1106
|
api.registerTool({
|
|
1316
1107
|
name: 'superagnt_connection_attio_put_v2_lists__list__entries',
|
|
1317
1108
|
description: "Assert a list entry by parent",
|
|
1318
|
-
|
|
1109
|
+
parameters: {
|
|
1319
1110
|
"type": "object",
|
|
1320
1111
|
"properties": {
|
|
1321
1112
|
"list": {
|
|
@@ -1333,7 +1124,7 @@ export default async function register(api) {
|
|
|
1333
1124
|
]
|
|
1334
1125
|
},
|
|
1335
1126
|
execute: async (input) => {
|
|
1336
|
-
const key =
|
|
1127
|
+
const key = ensureApiKey()
|
|
1337
1128
|
const params = parseToolInput(input)
|
|
1338
1129
|
return callSuperagnt(key, 'PUT', '/v2/lists/{list}/entries', undefined, params)
|
|
1339
1130
|
},
|
|
@@ -1342,7 +1133,7 @@ export default async function register(api) {
|
|
|
1342
1133
|
api.registerTool({
|
|
1343
1134
|
name: 'superagnt_connection_attio_get_list_entry',
|
|
1344
1135
|
description: "Get a list entry",
|
|
1345
|
-
|
|
1136
|
+
parameters: {
|
|
1346
1137
|
"type": "object",
|
|
1347
1138
|
"properties": {
|
|
1348
1139
|
"list": {
|
|
@@ -1360,7 +1151,7 @@ export default async function register(api) {
|
|
|
1360
1151
|
]
|
|
1361
1152
|
},
|
|
1362
1153
|
execute: async (input) => {
|
|
1363
|
-
const key =
|
|
1154
|
+
const key = ensureApiKey()
|
|
1364
1155
|
const params = parseToolInput(input)
|
|
1365
1156
|
return callSuperagnt(key, 'GET', '/v2/lists/{list}/entries/{entry_id}', params)
|
|
1366
1157
|
},
|
|
@@ -1369,7 +1160,7 @@ export default async function register(api) {
|
|
|
1369
1160
|
api.registerTool({
|
|
1370
1161
|
name: 'superagnt_connection_attio_overwrite_list_entry',
|
|
1371
1162
|
description: "Update a list entry (overwrite multiselect values)",
|
|
1372
|
-
|
|
1163
|
+
parameters: {
|
|
1373
1164
|
"type": "object",
|
|
1374
1165
|
"properties": {
|
|
1375
1166
|
"list": {
|
|
@@ -1392,7 +1183,7 @@ export default async function register(api) {
|
|
|
1392
1183
|
]
|
|
1393
1184
|
},
|
|
1394
1185
|
execute: async (input) => {
|
|
1395
|
-
const key =
|
|
1186
|
+
const key = ensureApiKey()
|
|
1396
1187
|
const params = parseToolInput(input)
|
|
1397
1188
|
return callSuperagnt(key, 'PUT', '/v2/lists/{list}/entries/{entry_id}', undefined, params)
|
|
1398
1189
|
},
|
|
@@ -1401,7 +1192,7 @@ export default async function register(api) {
|
|
|
1401
1192
|
api.registerTool({
|
|
1402
1193
|
name: 'superagnt_connection_attio_update_list_entry',
|
|
1403
1194
|
description: "Update a list entry (append multiselect values)",
|
|
1404
|
-
|
|
1195
|
+
parameters: {
|
|
1405
1196
|
"type": "object",
|
|
1406
1197
|
"properties": {
|
|
1407
1198
|
"list": {
|
|
@@ -1424,7 +1215,7 @@ export default async function register(api) {
|
|
|
1424
1215
|
]
|
|
1425
1216
|
},
|
|
1426
1217
|
execute: async (input) => {
|
|
1427
|
-
const key =
|
|
1218
|
+
const key = ensureApiKey()
|
|
1428
1219
|
const params = parseToolInput(input)
|
|
1429
1220
|
return callSuperagnt(key, 'PATCH', '/v2/lists/{list}/entries/{entry_id}', undefined, params)
|
|
1430
1221
|
},
|
|
@@ -1433,7 +1224,7 @@ export default async function register(api) {
|
|
|
1433
1224
|
api.registerTool({
|
|
1434
1225
|
name: 'superagnt_connection_attio_delete_list_entry',
|
|
1435
1226
|
description: "Delete a list entry",
|
|
1436
|
-
|
|
1227
|
+
parameters: {
|
|
1437
1228
|
"type": "object",
|
|
1438
1229
|
"properties": {
|
|
1439
1230
|
"list": {
|
|
@@ -1451,7 +1242,7 @@ export default async function register(api) {
|
|
|
1451
1242
|
]
|
|
1452
1243
|
},
|
|
1453
1244
|
execute: async (input) => {
|
|
1454
|
-
const key =
|
|
1245
|
+
const key = ensureApiKey()
|
|
1455
1246
|
const params = parseToolInput(input)
|
|
1456
1247
|
return callSuperagnt(key, 'DELETE', '/v2/lists/{list}/entries/{entry_id}', undefined, params)
|
|
1457
1248
|
},
|
|
@@ -1460,7 +1251,7 @@ export default async function register(api) {
|
|
|
1460
1251
|
api.registerTool({
|
|
1461
1252
|
name: 'superagnt_connection_attio_list_list_entry_attribute_values',
|
|
1462
1253
|
description: "List attribute values for a list entry",
|
|
1463
|
-
|
|
1254
|
+
parameters: {
|
|
1464
1255
|
"type": "object",
|
|
1465
1256
|
"properties": {
|
|
1466
1257
|
"list": {
|
|
@@ -1495,7 +1286,7 @@ export default async function register(api) {
|
|
|
1495
1286
|
]
|
|
1496
1287
|
},
|
|
1497
1288
|
execute: async (input) => {
|
|
1498
|
-
const key =
|
|
1289
|
+
const key = ensureApiKey()
|
|
1499
1290
|
const params = parseToolInput(input)
|
|
1500
1291
|
return callSuperagnt(key, 'GET', '/v2/lists/{list}/entries/{entry_id}/attributes/{attribute}/values', params)
|
|
1501
1292
|
},
|
|
@@ -1504,12 +1295,12 @@ export default async function register(api) {
|
|
|
1504
1295
|
api.registerTool({
|
|
1505
1296
|
name: 'superagnt_connection_attio_get_v2_workspace_members',
|
|
1506
1297
|
description: "List workspace members",
|
|
1507
|
-
|
|
1298
|
+
parameters: {
|
|
1508
1299
|
"type": "object",
|
|
1509
1300
|
"properties": {}
|
|
1510
1301
|
},
|
|
1511
1302
|
execute: async (input) => {
|
|
1512
|
-
const key =
|
|
1303
|
+
const key = ensureApiKey()
|
|
1513
1304
|
const params = parseToolInput(input)
|
|
1514
1305
|
return callSuperagnt(key, 'GET', '/v2/workspace_members', params)
|
|
1515
1306
|
},
|
|
@@ -1518,7 +1309,7 @@ export default async function register(api) {
|
|
|
1518
1309
|
api.registerTool({
|
|
1519
1310
|
name: 'superagnt_connection_attio_get_workspace_member',
|
|
1520
1311
|
description: "Get a workspace member",
|
|
1521
|
-
|
|
1312
|
+
parameters: {
|
|
1522
1313
|
"type": "object",
|
|
1523
1314
|
"properties": {
|
|
1524
1315
|
"workspace_member_id": {
|
|
@@ -1531,7 +1322,7 @@ export default async function register(api) {
|
|
|
1531
1322
|
]
|
|
1532
1323
|
},
|
|
1533
1324
|
execute: async (input) => {
|
|
1534
|
-
const key =
|
|
1325
|
+
const key = ensureApiKey()
|
|
1535
1326
|
const params = parseToolInput(input)
|
|
1536
1327
|
return callSuperagnt(key, 'GET', '/v2/workspace_members/{workspace_member_id}', params)
|
|
1537
1328
|
},
|
|
@@ -1540,7 +1331,7 @@ export default async function register(api) {
|
|
|
1540
1331
|
api.registerTool({
|
|
1541
1332
|
name: 'superagnt_connection_attio_get_v2_notes',
|
|
1542
1333
|
description: "List notes",
|
|
1543
|
-
|
|
1334
|
+
parameters: {
|
|
1544
1335
|
"type": "object",
|
|
1545
1336
|
"properties": {
|
|
1546
1337
|
"limit": {
|
|
@@ -1562,7 +1353,7 @@ export default async function register(api) {
|
|
|
1562
1353
|
}
|
|
1563
1354
|
},
|
|
1564
1355
|
execute: async (input) => {
|
|
1565
|
-
const key =
|
|
1356
|
+
const key = ensureApiKey()
|
|
1566
1357
|
const params = parseToolInput(input)
|
|
1567
1358
|
return callSuperagnt(key, 'GET', '/v2/notes', params)
|
|
1568
1359
|
},
|
|
@@ -1571,7 +1362,7 @@ export default async function register(api) {
|
|
|
1571
1362
|
api.registerTool({
|
|
1572
1363
|
name: 'superagnt_connection_attio_post_v2_notes',
|
|
1573
1364
|
description: "Create a note",
|
|
1574
|
-
|
|
1365
|
+
parameters: {
|
|
1575
1366
|
"type": "object",
|
|
1576
1367
|
"properties": {
|
|
1577
1368
|
"data": {
|
|
@@ -1584,7 +1375,7 @@ export default async function register(api) {
|
|
|
1584
1375
|
]
|
|
1585
1376
|
},
|
|
1586
1377
|
execute: async (input) => {
|
|
1587
|
-
const key =
|
|
1378
|
+
const key = ensureApiKey()
|
|
1588
1379
|
const params = parseToolInput(input)
|
|
1589
1380
|
return callSuperagnt(key, 'POST', '/v2/notes', undefined, params)
|
|
1590
1381
|
},
|
|
@@ -1593,7 +1384,7 @@ export default async function register(api) {
|
|
|
1593
1384
|
api.registerTool({
|
|
1594
1385
|
name: 'superagnt_connection_attio_get_v2_notes__note_id_',
|
|
1595
1386
|
description: "Get a note",
|
|
1596
|
-
|
|
1387
|
+
parameters: {
|
|
1597
1388
|
"type": "object",
|
|
1598
1389
|
"properties": {
|
|
1599
1390
|
"note_id": {
|
|
@@ -1606,7 +1397,7 @@ export default async function register(api) {
|
|
|
1606
1397
|
]
|
|
1607
1398
|
},
|
|
1608
1399
|
execute: async (input) => {
|
|
1609
|
-
const key =
|
|
1400
|
+
const key = ensureApiKey()
|
|
1610
1401
|
const params = parseToolInput(input)
|
|
1611
1402
|
return callSuperagnt(key, 'GET', '/v2/notes/{note_id}', params)
|
|
1612
1403
|
},
|
|
@@ -1615,7 +1406,7 @@ export default async function register(api) {
|
|
|
1615
1406
|
api.registerTool({
|
|
1616
1407
|
name: 'superagnt_connection_attio_delete_v2_notes__note_id_',
|
|
1617
1408
|
description: "Delete a note",
|
|
1618
|
-
|
|
1409
|
+
parameters: {
|
|
1619
1410
|
"type": "object",
|
|
1620
1411
|
"properties": {
|
|
1621
1412
|
"note_id": {
|
|
@@ -1628,7 +1419,7 @@ export default async function register(api) {
|
|
|
1628
1419
|
]
|
|
1629
1420
|
},
|
|
1630
1421
|
execute: async (input) => {
|
|
1631
|
-
const key =
|
|
1422
|
+
const key = ensureApiKey()
|
|
1632
1423
|
const params = parseToolInput(input)
|
|
1633
1424
|
return callSuperagnt(key, 'DELETE', '/v2/notes/{note_id}', undefined, params)
|
|
1634
1425
|
},
|
|
@@ -1637,7 +1428,7 @@ export default async function register(api) {
|
|
|
1637
1428
|
api.registerTool({
|
|
1638
1429
|
name: 'superagnt_connection_attio_get_v2_tasks',
|
|
1639
1430
|
description: "List tasks",
|
|
1640
|
-
|
|
1431
|
+
parameters: {
|
|
1641
1432
|
"type": "object",
|
|
1642
1433
|
"properties": {
|
|
1643
1434
|
"limit": {
|
|
@@ -1674,7 +1465,7 @@ export default async function register(api) {
|
|
|
1674
1465
|
}
|
|
1675
1466
|
},
|
|
1676
1467
|
execute: async (input) => {
|
|
1677
|
-
const key =
|
|
1468
|
+
const key = ensureApiKey()
|
|
1678
1469
|
const params = parseToolInput(input)
|
|
1679
1470
|
return callSuperagnt(key, 'GET', '/v2/tasks', params)
|
|
1680
1471
|
},
|
|
@@ -1683,7 +1474,7 @@ export default async function register(api) {
|
|
|
1683
1474
|
api.registerTool({
|
|
1684
1475
|
name: 'superagnt_connection_attio_post_v2_tasks',
|
|
1685
1476
|
description: "Create a task",
|
|
1686
|
-
|
|
1477
|
+
parameters: {
|
|
1687
1478
|
"type": "object",
|
|
1688
1479
|
"properties": {
|
|
1689
1480
|
"data": {
|
|
@@ -1696,7 +1487,7 @@ export default async function register(api) {
|
|
|
1696
1487
|
]
|
|
1697
1488
|
},
|
|
1698
1489
|
execute: async (input) => {
|
|
1699
|
-
const key =
|
|
1490
|
+
const key = ensureApiKey()
|
|
1700
1491
|
const params = parseToolInput(input)
|
|
1701
1492
|
return callSuperagnt(key, 'POST', '/v2/tasks', undefined, params)
|
|
1702
1493
|
},
|
|
@@ -1705,7 +1496,7 @@ export default async function register(api) {
|
|
|
1705
1496
|
api.registerTool({
|
|
1706
1497
|
name: 'superagnt_connection_attio_get_v2_tasks__task_id_',
|
|
1707
1498
|
description: "Get a task",
|
|
1708
|
-
|
|
1499
|
+
parameters: {
|
|
1709
1500
|
"type": "object",
|
|
1710
1501
|
"properties": {
|
|
1711
1502
|
"task_id": {
|
|
@@ -1718,7 +1509,7 @@ export default async function register(api) {
|
|
|
1718
1509
|
]
|
|
1719
1510
|
},
|
|
1720
1511
|
execute: async (input) => {
|
|
1721
|
-
const key =
|
|
1512
|
+
const key = ensureApiKey()
|
|
1722
1513
|
const params = parseToolInput(input)
|
|
1723
1514
|
return callSuperagnt(key, 'GET', '/v2/tasks/{task_id}', params)
|
|
1724
1515
|
},
|
|
@@ -1727,7 +1518,7 @@ export default async function register(api) {
|
|
|
1727
1518
|
api.registerTool({
|
|
1728
1519
|
name: 'superagnt_connection_attio_patch_v2_tasks__task_id_',
|
|
1729
1520
|
description: "Update a task",
|
|
1730
|
-
|
|
1521
|
+
parameters: {
|
|
1731
1522
|
"type": "object",
|
|
1732
1523
|
"properties": {
|
|
1733
1524
|
"task_id": {
|
|
@@ -1745,7 +1536,7 @@ export default async function register(api) {
|
|
|
1745
1536
|
]
|
|
1746
1537
|
},
|
|
1747
1538
|
execute: async (input) => {
|
|
1748
|
-
const key =
|
|
1539
|
+
const key = ensureApiKey()
|
|
1749
1540
|
const params = parseToolInput(input)
|
|
1750
1541
|
return callSuperagnt(key, 'PATCH', '/v2/tasks/{task_id}', undefined, params)
|
|
1751
1542
|
},
|
|
@@ -1754,7 +1545,7 @@ export default async function register(api) {
|
|
|
1754
1545
|
api.registerTool({
|
|
1755
1546
|
name: 'superagnt_connection_attio_delete_v2_tasks__task_id_',
|
|
1756
1547
|
description: "Delete a task",
|
|
1757
|
-
|
|
1548
|
+
parameters: {
|
|
1758
1549
|
"type": "object",
|
|
1759
1550
|
"properties": {
|
|
1760
1551
|
"task_id": {
|
|
@@ -1767,7 +1558,7 @@ export default async function register(api) {
|
|
|
1767
1558
|
]
|
|
1768
1559
|
},
|
|
1769
1560
|
execute: async (input) => {
|
|
1770
|
-
const key =
|
|
1561
|
+
const key = ensureApiKey()
|
|
1771
1562
|
const params = parseToolInput(input)
|
|
1772
1563
|
return callSuperagnt(key, 'DELETE', '/v2/tasks/{task_id}', undefined, params)
|
|
1773
1564
|
},
|
|
@@ -1776,7 +1567,7 @@ export default async function register(api) {
|
|
|
1776
1567
|
api.registerTool({
|
|
1777
1568
|
name: 'superagnt_connection_attio_get_v2_threads',
|
|
1778
1569
|
description: "List threads",
|
|
1779
|
-
|
|
1570
|
+
parameters: {
|
|
1780
1571
|
"type": "object",
|
|
1781
1572
|
"properties": {
|
|
1782
1573
|
"record_id": {
|
|
@@ -1806,7 +1597,7 @@ export default async function register(api) {
|
|
|
1806
1597
|
}
|
|
1807
1598
|
},
|
|
1808
1599
|
execute: async (input) => {
|
|
1809
|
-
const key =
|
|
1600
|
+
const key = ensureApiKey()
|
|
1810
1601
|
const params = parseToolInput(input)
|
|
1811
1602
|
return callSuperagnt(key, 'GET', '/v2/threads', params)
|
|
1812
1603
|
},
|
|
@@ -1815,7 +1606,7 @@ export default async function register(api) {
|
|
|
1815
1606
|
api.registerTool({
|
|
1816
1607
|
name: 'superagnt_connection_attio_get_v2_threads__thread_id_',
|
|
1817
1608
|
description: "Get a thread",
|
|
1818
|
-
|
|
1609
|
+
parameters: {
|
|
1819
1610
|
"type": "object",
|
|
1820
1611
|
"properties": {
|
|
1821
1612
|
"thread_id": {
|
|
@@ -1828,7 +1619,7 @@ export default async function register(api) {
|
|
|
1828
1619
|
]
|
|
1829
1620
|
},
|
|
1830
1621
|
execute: async (input) => {
|
|
1831
|
-
const key =
|
|
1622
|
+
const key = ensureApiKey()
|
|
1832
1623
|
const params = parseToolInput(input)
|
|
1833
1624
|
return callSuperagnt(key, 'GET', '/v2/threads/{thread_id}', params)
|
|
1834
1625
|
},
|
|
@@ -1837,7 +1628,7 @@ export default async function register(api) {
|
|
|
1837
1628
|
api.registerTool({
|
|
1838
1629
|
name: 'superagnt_connection_attio_post_v2_comments',
|
|
1839
1630
|
description: "Create a comment",
|
|
1840
|
-
|
|
1631
|
+
parameters: {
|
|
1841
1632
|
"type": "object",
|
|
1842
1633
|
"properties": {
|
|
1843
1634
|
"data": {
|
|
@@ -1850,7 +1641,7 @@ export default async function register(api) {
|
|
|
1850
1641
|
]
|
|
1851
1642
|
},
|
|
1852
1643
|
execute: async (input) => {
|
|
1853
|
-
const key =
|
|
1644
|
+
const key = ensureApiKey()
|
|
1854
1645
|
const params = parseToolInput(input)
|
|
1855
1646
|
return callSuperagnt(key, 'POST', '/v2/comments', undefined, params)
|
|
1856
1647
|
},
|
|
@@ -1859,7 +1650,7 @@ export default async function register(api) {
|
|
|
1859
1650
|
api.registerTool({
|
|
1860
1651
|
name: 'superagnt_connection_attio_get_v2_comments__comment_id_',
|
|
1861
1652
|
description: "Get a comment",
|
|
1862
|
-
|
|
1653
|
+
parameters: {
|
|
1863
1654
|
"type": "object",
|
|
1864
1655
|
"properties": {
|
|
1865
1656
|
"comment_id": {
|
|
@@ -1872,7 +1663,7 @@ export default async function register(api) {
|
|
|
1872
1663
|
]
|
|
1873
1664
|
},
|
|
1874
1665
|
execute: async (input) => {
|
|
1875
|
-
const key =
|
|
1666
|
+
const key = ensureApiKey()
|
|
1876
1667
|
const params = parseToolInput(input)
|
|
1877
1668
|
return callSuperagnt(key, 'GET', '/v2/comments/{comment_id}', params)
|
|
1878
1669
|
},
|
|
@@ -1881,7 +1672,7 @@ export default async function register(api) {
|
|
|
1881
1672
|
api.registerTool({
|
|
1882
1673
|
name: 'superagnt_connection_attio_delete_v2_comments__comment_id_',
|
|
1883
1674
|
description: "Delete a comment",
|
|
1884
|
-
|
|
1675
|
+
parameters: {
|
|
1885
1676
|
"type": "object",
|
|
1886
1677
|
"properties": {
|
|
1887
1678
|
"comment_id": {
|
|
@@ -1894,7 +1685,7 @@ export default async function register(api) {
|
|
|
1894
1685
|
]
|
|
1895
1686
|
},
|
|
1896
1687
|
execute: async (input) => {
|
|
1897
|
-
const key =
|
|
1688
|
+
const key = ensureApiKey()
|
|
1898
1689
|
const params = parseToolInput(input)
|
|
1899
1690
|
return callSuperagnt(key, 'DELETE', '/v2/comments/{comment_id}', undefined, params)
|
|
1900
1691
|
},
|
|
@@ -1903,7 +1694,7 @@ export default async function register(api) {
|
|
|
1903
1694
|
api.registerTool({
|
|
1904
1695
|
name: 'superagnt_connection_attio_get_v2_meetings',
|
|
1905
1696
|
description: "List meetings",
|
|
1906
|
-
|
|
1697
|
+
parameters: {
|
|
1907
1698
|
"type": "object",
|
|
1908
1699
|
"properties": {
|
|
1909
1700
|
"limit": {
|
|
@@ -1951,7 +1742,7 @@ export default async function register(api) {
|
|
|
1951
1742
|
}
|
|
1952
1743
|
},
|
|
1953
1744
|
execute: async (input) => {
|
|
1954
|
-
const key =
|
|
1745
|
+
const key = ensureApiKey()
|
|
1955
1746
|
const params = parseToolInput(input)
|
|
1956
1747
|
return callSuperagnt(key, 'GET', '/v2/meetings', params)
|
|
1957
1748
|
},
|
|
@@ -1960,7 +1751,7 @@ export default async function register(api) {
|
|
|
1960
1751
|
api.registerTool({
|
|
1961
1752
|
name: 'superagnt_connection_attio_post_v2_meetings',
|
|
1962
1753
|
description: "Find or create a meeting",
|
|
1963
|
-
|
|
1754
|
+
parameters: {
|
|
1964
1755
|
"type": "object",
|
|
1965
1756
|
"properties": {
|
|
1966
1757
|
"data": {
|
|
@@ -1973,7 +1764,7 @@ export default async function register(api) {
|
|
|
1973
1764
|
]
|
|
1974
1765
|
},
|
|
1975
1766
|
execute: async (input) => {
|
|
1976
|
-
const key =
|
|
1767
|
+
const key = ensureApiKey()
|
|
1977
1768
|
const params = parseToolInput(input)
|
|
1978
1769
|
return callSuperagnt(key, 'POST', '/v2/meetings', undefined, params)
|
|
1979
1770
|
},
|
|
@@ -1982,7 +1773,7 @@ export default async function register(api) {
|
|
|
1982
1773
|
api.registerTool({
|
|
1983
1774
|
name: 'superagnt_connection_attio_get_v2_meetings__meeting_id_',
|
|
1984
1775
|
description: "Get a meeting",
|
|
1985
|
-
|
|
1776
|
+
parameters: {
|
|
1986
1777
|
"type": "object",
|
|
1987
1778
|
"properties": {
|
|
1988
1779
|
"meeting_id": {
|
|
@@ -1995,7 +1786,7 @@ export default async function register(api) {
|
|
|
1995
1786
|
]
|
|
1996
1787
|
},
|
|
1997
1788
|
execute: async (input) => {
|
|
1998
|
-
const key =
|
|
1789
|
+
const key = ensureApiKey()
|
|
1999
1790
|
const params = parseToolInput(input)
|
|
2000
1791
|
return callSuperagnt(key, 'GET', '/v2/meetings/{meeting_id}', params)
|
|
2001
1792
|
},
|
|
@@ -2004,7 +1795,7 @@ export default async function register(api) {
|
|
|
2004
1795
|
api.registerTool({
|
|
2005
1796
|
name: 'superagnt_connection_attio_list_call_recordings',
|
|
2006
1797
|
description: "List call recordings",
|
|
2007
|
-
|
|
1798
|
+
parameters: {
|
|
2008
1799
|
"type": "object",
|
|
2009
1800
|
"properties": {
|
|
2010
1801
|
"meeting_id": {
|
|
@@ -2025,7 +1816,7 @@ export default async function register(api) {
|
|
|
2025
1816
|
]
|
|
2026
1817
|
},
|
|
2027
1818
|
execute: async (input) => {
|
|
2028
|
-
const key =
|
|
1819
|
+
const key = ensureApiKey()
|
|
2029
1820
|
const params = parseToolInput(input)
|
|
2030
1821
|
return callSuperagnt(key, 'GET', '/v2/meetings/{meeting_id}/call_recordings', params)
|
|
2031
1822
|
},
|
|
@@ -2034,7 +1825,7 @@ export default async function register(api) {
|
|
|
2034
1825
|
api.registerTool({
|
|
2035
1826
|
name: 'superagnt_connection_attio_create_call_recording',
|
|
2036
1827
|
description: "Create call recording",
|
|
2037
|
-
|
|
1828
|
+
parameters: {
|
|
2038
1829
|
"type": "object",
|
|
2039
1830
|
"properties": {
|
|
2040
1831
|
"meeting_id": {
|
|
@@ -2052,7 +1843,7 @@ export default async function register(api) {
|
|
|
2052
1843
|
]
|
|
2053
1844
|
},
|
|
2054
1845
|
execute: async (input) => {
|
|
2055
|
-
const key =
|
|
1846
|
+
const key = ensureApiKey()
|
|
2056
1847
|
const params = parseToolInput(input)
|
|
2057
1848
|
return callSuperagnt(key, 'POST', '/v2/meetings/{meeting_id}/call_recordings', undefined, params)
|
|
2058
1849
|
},
|
|
@@ -2061,7 +1852,7 @@ export default async function register(api) {
|
|
|
2061
1852
|
api.registerTool({
|
|
2062
1853
|
name: 'superagnt_connection_attio_get_call_recording',
|
|
2063
1854
|
description: "Get call recording",
|
|
2064
|
-
|
|
1855
|
+
parameters: {
|
|
2065
1856
|
"type": "object",
|
|
2066
1857
|
"properties": {
|
|
2067
1858
|
"meeting_id": {
|
|
@@ -2079,7 +1870,7 @@ export default async function register(api) {
|
|
|
2079
1870
|
]
|
|
2080
1871
|
},
|
|
2081
1872
|
execute: async (input) => {
|
|
2082
|
-
const key =
|
|
1873
|
+
const key = ensureApiKey()
|
|
2083
1874
|
const params = parseToolInput(input)
|
|
2084
1875
|
return callSuperagnt(key, 'GET', '/v2/meetings/{meeting_id}/call_recordings/{call_recording_id}', params)
|
|
2085
1876
|
},
|
|
@@ -2088,7 +1879,7 @@ export default async function register(api) {
|
|
|
2088
1879
|
api.registerTool({
|
|
2089
1880
|
name: 'superagnt_connection_attio_delete_call_recording',
|
|
2090
1881
|
description: "Delete call recording",
|
|
2091
|
-
|
|
1882
|
+
parameters: {
|
|
2092
1883
|
"type": "object",
|
|
2093
1884
|
"properties": {
|
|
2094
1885
|
"meeting_id": {
|
|
@@ -2106,7 +1897,7 @@ export default async function register(api) {
|
|
|
2106
1897
|
]
|
|
2107
1898
|
},
|
|
2108
1899
|
execute: async (input) => {
|
|
2109
|
-
const key =
|
|
1900
|
+
const key = ensureApiKey()
|
|
2110
1901
|
const params = parseToolInput(input)
|
|
2111
1902
|
return callSuperagnt(key, 'DELETE', '/v2/meetings/{meeting_id}/call_recordings/{call_recording_id}', undefined, params)
|
|
2112
1903
|
},
|
|
@@ -2115,7 +1906,7 @@ export default async function register(api) {
|
|
|
2115
1906
|
api.registerTool({
|
|
2116
1907
|
name: 'superagnt_connection_attio_get_call_recording_transcript',
|
|
2117
1908
|
description: "Get call transcript",
|
|
2118
|
-
|
|
1909
|
+
parameters: {
|
|
2119
1910
|
"type": "object",
|
|
2120
1911
|
"properties": {
|
|
2121
1912
|
"meeting_id": {
|
|
@@ -2137,7 +1928,7 @@ export default async function register(api) {
|
|
|
2137
1928
|
]
|
|
2138
1929
|
},
|
|
2139
1930
|
execute: async (input) => {
|
|
2140
|
-
const key =
|
|
1931
|
+
const key = ensureApiKey()
|
|
2141
1932
|
const params = parseToolInput(input)
|
|
2142
1933
|
return callSuperagnt(key, 'GET', '/v2/meetings/{meeting_id}/call_recordings/{call_recording_id}/transcript', params)
|
|
2143
1934
|
},
|
|
@@ -2146,7 +1937,7 @@ export default async function register(api) {
|
|
|
2146
1937
|
api.registerTool({
|
|
2147
1938
|
name: 'superagnt_connection_attio_get_v2_files',
|
|
2148
1939
|
description: "List files",
|
|
2149
|
-
|
|
1940
|
+
parameters: {
|
|
2150
1941
|
"type": "object",
|
|
2151
1942
|
"properties": {
|
|
2152
1943
|
"object": {
|
|
@@ -2180,7 +1971,7 @@ export default async function register(api) {
|
|
|
2180
1971
|
]
|
|
2181
1972
|
},
|
|
2182
1973
|
execute: async (input) => {
|
|
2183
|
-
const key =
|
|
1974
|
+
const key = ensureApiKey()
|
|
2184
1975
|
const params = parseToolInput(input)
|
|
2185
1976
|
return callSuperagnt(key, 'GET', '/v2/files', params)
|
|
2186
1977
|
},
|
|
@@ -2189,12 +1980,12 @@ export default async function register(api) {
|
|
|
2189
1980
|
api.registerTool({
|
|
2190
1981
|
name: 'superagnt_connection_attio_post_v2_files',
|
|
2191
1982
|
description: "Create a folder",
|
|
2192
|
-
|
|
1983
|
+
parameters: {
|
|
2193
1984
|
"type": "object",
|
|
2194
1985
|
"properties": {}
|
|
2195
1986
|
},
|
|
2196
1987
|
execute: async (input) => {
|
|
2197
|
-
const key =
|
|
1988
|
+
const key = ensureApiKey()
|
|
2198
1989
|
const params = parseToolInput(input)
|
|
2199
1990
|
return callSuperagnt(key, 'POST', '/v2/files', undefined, params)
|
|
2200
1991
|
},
|
|
@@ -2203,12 +1994,12 @@ export default async function register(api) {
|
|
|
2203
1994
|
api.registerTool({
|
|
2204
1995
|
name: 'superagnt_connection_attio_post_v2_files_upload',
|
|
2205
1996
|
description: "Upload a file",
|
|
2206
|
-
|
|
1997
|
+
parameters: {
|
|
2207
1998
|
"type": "object",
|
|
2208
1999
|
"properties": {}
|
|
2209
2000
|
},
|
|
2210
2001
|
execute: async (input) => {
|
|
2211
|
-
const key =
|
|
2002
|
+
const key = ensureApiKey()
|
|
2212
2003
|
const params = parseToolInput(input)
|
|
2213
2004
|
return callSuperagnt(key, 'POST', '/v2/files/upload', undefined, params)
|
|
2214
2005
|
},
|
|
@@ -2217,7 +2008,7 @@ export default async function register(api) {
|
|
|
2217
2008
|
api.registerTool({
|
|
2218
2009
|
name: 'superagnt_connection_attio_get_v2_files__file_id_',
|
|
2219
2010
|
description: "Get a file",
|
|
2220
|
-
|
|
2011
|
+
parameters: {
|
|
2221
2012
|
"type": "object",
|
|
2222
2013
|
"properties": {
|
|
2223
2014
|
"file_id": {
|
|
@@ -2230,7 +2021,7 @@ export default async function register(api) {
|
|
|
2230
2021
|
]
|
|
2231
2022
|
},
|
|
2232
2023
|
execute: async (input) => {
|
|
2233
|
-
const key =
|
|
2024
|
+
const key = ensureApiKey()
|
|
2234
2025
|
const params = parseToolInput(input)
|
|
2235
2026
|
return callSuperagnt(key, 'GET', '/v2/files/{file_id}', params)
|
|
2236
2027
|
},
|
|
@@ -2239,7 +2030,7 @@ export default async function register(api) {
|
|
|
2239
2030
|
api.registerTool({
|
|
2240
2031
|
name: 'superagnt_connection_attio_delete_v2_files__file_id_',
|
|
2241
2032
|
description: "Delete a file",
|
|
2242
|
-
|
|
2033
|
+
parameters: {
|
|
2243
2034
|
"type": "object",
|
|
2244
2035
|
"properties": {
|
|
2245
2036
|
"file_id": {
|
|
@@ -2252,7 +2043,7 @@ export default async function register(api) {
|
|
|
2252
2043
|
]
|
|
2253
2044
|
},
|
|
2254
2045
|
execute: async (input) => {
|
|
2255
|
-
const key =
|
|
2046
|
+
const key = ensureApiKey()
|
|
2256
2047
|
const params = parseToolInput(input)
|
|
2257
2048
|
return callSuperagnt(key, 'DELETE', '/v2/files/{file_id}', undefined, params)
|
|
2258
2049
|
},
|
|
@@ -2261,7 +2052,7 @@ export default async function register(api) {
|
|
|
2261
2052
|
api.registerTool({
|
|
2262
2053
|
name: 'superagnt_connection_attio_get_v2_files__file_id__download',
|
|
2263
2054
|
description: "Download a file",
|
|
2264
|
-
|
|
2055
|
+
parameters: {
|
|
2265
2056
|
"type": "object",
|
|
2266
2057
|
"properties": {
|
|
2267
2058
|
"file_id": {
|
|
@@ -2274,7 +2065,7 @@ export default async function register(api) {
|
|
|
2274
2065
|
]
|
|
2275
2066
|
},
|
|
2276
2067
|
execute: async (input) => {
|
|
2277
|
-
const key =
|
|
2068
|
+
const key = ensureApiKey()
|
|
2278
2069
|
const params = parseToolInput(input)
|
|
2279
2070
|
return callSuperagnt(key, 'GET', '/v2/files/{file_id}/download', params)
|
|
2280
2071
|
},
|
|
@@ -2283,12 +2074,12 @@ export default async function register(api) {
|
|
|
2283
2074
|
api.registerTool({
|
|
2284
2075
|
name: 'superagnt_connection_attio_get_scim_v2_Schemas',
|
|
2285
2076
|
description: "List SCIM schemas",
|
|
2286
|
-
|
|
2077
|
+
parameters: {
|
|
2287
2078
|
"type": "object",
|
|
2288
2079
|
"properties": {}
|
|
2289
2080
|
},
|
|
2290
2081
|
execute: async (input) => {
|
|
2291
|
-
const key =
|
|
2082
|
+
const key = ensureApiKey()
|
|
2292
2083
|
const params = parseToolInput(input)
|
|
2293
2084
|
return callSuperagnt(key, 'GET', '/scim/v2/Schemas', params)
|
|
2294
2085
|
},
|
|
@@ -2297,12 +2088,12 @@ export default async function register(api) {
|
|
|
2297
2088
|
api.registerTool({
|
|
2298
2089
|
name: 'superagnt_connection_attio_get_scim_v2_Users',
|
|
2299
2090
|
description: "List SCIM users",
|
|
2300
|
-
|
|
2091
|
+
parameters: {
|
|
2301
2092
|
"type": "object",
|
|
2302
2093
|
"properties": {}
|
|
2303
2094
|
},
|
|
2304
2095
|
execute: async (input) => {
|
|
2305
|
-
const key =
|
|
2096
|
+
const key = ensureApiKey()
|
|
2306
2097
|
const params = parseToolInput(input)
|
|
2307
2098
|
return callSuperagnt(key, 'GET', '/scim/v2/Users', params)
|
|
2308
2099
|
},
|
|
@@ -2311,12 +2102,12 @@ export default async function register(api) {
|
|
|
2311
2102
|
api.registerTool({
|
|
2312
2103
|
name: 'superagnt_connection_attio_post_scim_v2_Users',
|
|
2313
2104
|
description: "Create SCIM user",
|
|
2314
|
-
|
|
2105
|
+
parameters: {
|
|
2315
2106
|
"type": "object",
|
|
2316
2107
|
"properties": {}
|
|
2317
2108
|
},
|
|
2318
2109
|
execute: async (input) => {
|
|
2319
|
-
const key =
|
|
2110
|
+
const key = ensureApiKey()
|
|
2320
2111
|
const params = parseToolInput(input)
|
|
2321
2112
|
return callSuperagnt(key, 'POST', '/scim/v2/Users', undefined, params)
|
|
2322
2113
|
},
|
|
@@ -2325,12 +2116,12 @@ export default async function register(api) {
|
|
|
2325
2116
|
api.registerTool({
|
|
2326
2117
|
name: 'superagnt_connection_attio_get_scim_v2_Groups',
|
|
2327
2118
|
description: "List SCIM groups",
|
|
2328
|
-
|
|
2119
|
+
parameters: {
|
|
2329
2120
|
"type": "object",
|
|
2330
2121
|
"properties": {}
|
|
2331
2122
|
},
|
|
2332
2123
|
execute: async (input) => {
|
|
2333
|
-
const key =
|
|
2124
|
+
const key = ensureApiKey()
|
|
2334
2125
|
const params = parseToolInput(input)
|
|
2335
2126
|
return callSuperagnt(key, 'GET', '/scim/v2/Groups', params)
|
|
2336
2127
|
},
|
|
@@ -2339,12 +2130,12 @@ export default async function register(api) {
|
|
|
2339
2130
|
api.registerTool({
|
|
2340
2131
|
name: 'superagnt_connection_attio_post_scim_v2_Groups',
|
|
2341
2132
|
description: "Create SCIM group",
|
|
2342
|
-
|
|
2133
|
+
parameters: {
|
|
2343
2134
|
"type": "object",
|
|
2344
2135
|
"properties": {}
|
|
2345
2136
|
},
|
|
2346
2137
|
execute: async (input) => {
|
|
2347
|
-
const key =
|
|
2138
|
+
const key = ensureApiKey()
|
|
2348
2139
|
const params = parseToolInput(input)
|
|
2349
2140
|
return callSuperagnt(key, 'POST', '/scim/v2/Groups', undefined, params)
|
|
2350
2141
|
},
|
|
@@ -2353,12 +2144,12 @@ export default async function register(api) {
|
|
|
2353
2144
|
api.registerTool({
|
|
2354
2145
|
name: 'superagnt_connection_attio_get_scim_v2_Users__user_id_',
|
|
2355
2146
|
description: "Get SCIM user",
|
|
2356
|
-
|
|
2147
|
+
parameters: {
|
|
2357
2148
|
"type": "object",
|
|
2358
2149
|
"properties": {}
|
|
2359
2150
|
},
|
|
2360
2151
|
execute: async (input) => {
|
|
2361
|
-
const key =
|
|
2152
|
+
const key = ensureApiKey()
|
|
2362
2153
|
const params = parseToolInput(input)
|
|
2363
2154
|
return callSuperagnt(key, 'GET', '/scim/v2/Users/{user_id}', params)
|
|
2364
2155
|
},
|
|
@@ -2367,12 +2158,12 @@ export default async function register(api) {
|
|
|
2367
2158
|
api.registerTool({
|
|
2368
2159
|
name: 'superagnt_connection_attio_put_scim_v2_Users__user_id_',
|
|
2369
2160
|
description: "Update SCIM user",
|
|
2370
|
-
|
|
2161
|
+
parameters: {
|
|
2371
2162
|
"type": "object",
|
|
2372
2163
|
"properties": {}
|
|
2373
2164
|
},
|
|
2374
2165
|
execute: async (input) => {
|
|
2375
|
-
const key =
|
|
2166
|
+
const key = ensureApiKey()
|
|
2376
2167
|
const params = parseToolInput(input)
|
|
2377
2168
|
return callSuperagnt(key, 'PUT', '/scim/v2/Users/{user_id}', undefined, params)
|
|
2378
2169
|
},
|
|
@@ -2381,12 +2172,12 @@ export default async function register(api) {
|
|
|
2381
2172
|
api.registerTool({
|
|
2382
2173
|
name: 'superagnt_connection_attio_patch_scim_v2_Users__user_id_',
|
|
2383
2174
|
description: "Patch SCIM user",
|
|
2384
|
-
|
|
2175
|
+
parameters: {
|
|
2385
2176
|
"type": "object",
|
|
2386
2177
|
"properties": {}
|
|
2387
2178
|
},
|
|
2388
2179
|
execute: async (input) => {
|
|
2389
|
-
const key =
|
|
2180
|
+
const key = ensureApiKey()
|
|
2390
2181
|
const params = parseToolInput(input)
|
|
2391
2182
|
return callSuperagnt(key, 'PATCH', '/scim/v2/Users/{user_id}', undefined, params)
|
|
2392
2183
|
},
|
|
@@ -2395,12 +2186,12 @@ export default async function register(api) {
|
|
|
2395
2186
|
api.registerTool({
|
|
2396
2187
|
name: 'superagnt_connection_attio_delete_scim_v2_Users__user_id_',
|
|
2397
2188
|
description: "Delete SCIM user",
|
|
2398
|
-
|
|
2189
|
+
parameters: {
|
|
2399
2190
|
"type": "object",
|
|
2400
2191
|
"properties": {}
|
|
2401
2192
|
},
|
|
2402
2193
|
execute: async (input) => {
|
|
2403
|
-
const key =
|
|
2194
|
+
const key = ensureApiKey()
|
|
2404
2195
|
const params = parseToolInput(input)
|
|
2405
2196
|
return callSuperagnt(key, 'DELETE', '/scim/v2/Users/{user_id}', undefined, params)
|
|
2406
2197
|
},
|
|
@@ -2409,12 +2200,12 @@ export default async function register(api) {
|
|
|
2409
2200
|
api.registerTool({
|
|
2410
2201
|
name: 'superagnt_connection_attio_scim_get_group',
|
|
2411
2202
|
description: "Get SCIM group",
|
|
2412
|
-
|
|
2203
|
+
parameters: {
|
|
2413
2204
|
"type": "object",
|
|
2414
2205
|
"properties": {}
|
|
2415
2206
|
},
|
|
2416
2207
|
execute: async (input) => {
|
|
2417
|
-
const key =
|
|
2208
|
+
const key = ensureApiKey()
|
|
2418
2209
|
const params = parseToolInput(input)
|
|
2419
2210
|
return callSuperagnt(key, 'GET', '/scim/v2/Groups/{workspace_team_id}', params)
|
|
2420
2211
|
},
|
|
@@ -2423,12 +2214,12 @@ export default async function register(api) {
|
|
|
2423
2214
|
api.registerTool({
|
|
2424
2215
|
name: 'superagnt_connection_attio_scim_replace_group',
|
|
2425
2216
|
description: "Update SCIM group",
|
|
2426
|
-
|
|
2217
|
+
parameters: {
|
|
2427
2218
|
"type": "object",
|
|
2428
2219
|
"properties": {}
|
|
2429
2220
|
},
|
|
2430
2221
|
execute: async (input) => {
|
|
2431
|
-
const key =
|
|
2222
|
+
const key = ensureApiKey()
|
|
2432
2223
|
const params = parseToolInput(input)
|
|
2433
2224
|
return callSuperagnt(key, 'PUT', '/scim/v2/Groups/{workspace_team_id}', undefined, params)
|
|
2434
2225
|
},
|
|
@@ -2437,12 +2228,12 @@ export default async function register(api) {
|
|
|
2437
2228
|
api.registerTool({
|
|
2438
2229
|
name: 'superagnt_connection_attio_scim_patch_group',
|
|
2439
2230
|
description: "Patch SCIM group",
|
|
2440
|
-
|
|
2231
|
+
parameters: {
|
|
2441
2232
|
"type": "object",
|
|
2442
2233
|
"properties": {}
|
|
2443
2234
|
},
|
|
2444
2235
|
execute: async (input) => {
|
|
2445
|
-
const key =
|
|
2236
|
+
const key = ensureApiKey()
|
|
2446
2237
|
const params = parseToolInput(input)
|
|
2447
2238
|
return callSuperagnt(key, 'PATCH', '/scim/v2/Groups/{workspace_team_id}', undefined, params)
|
|
2448
2239
|
},
|
|
@@ -2451,12 +2242,12 @@ export default async function register(api) {
|
|
|
2451
2242
|
api.registerTool({
|
|
2452
2243
|
name: 'superagnt_connection_attio_scim_delete_group',
|
|
2453
2244
|
description: "Delete SCIM group",
|
|
2454
|
-
|
|
2245
|
+
parameters: {
|
|
2455
2246
|
"type": "object",
|
|
2456
2247
|
"properties": {}
|
|
2457
2248
|
},
|
|
2458
2249
|
execute: async (input) => {
|
|
2459
|
-
const key =
|
|
2250
|
+
const key = ensureApiKey()
|
|
2460
2251
|
const params = parseToolInput(input)
|
|
2461
2252
|
return callSuperagnt(key, 'DELETE', '/scim/v2/Groups/{workspace_team_id}', undefined, params)
|
|
2462
2253
|
},
|
|
@@ -2465,7 +2256,7 @@ export default async function register(api) {
|
|
|
2465
2256
|
api.registerTool({
|
|
2466
2257
|
name: 'superagnt_connection_attio_get_v2_webhooks',
|
|
2467
2258
|
description: "List webhooks",
|
|
2468
|
-
|
|
2259
|
+
parameters: {
|
|
2469
2260
|
"type": "object",
|
|
2470
2261
|
"properties": {
|
|
2471
2262
|
"limit": {
|
|
@@ -2479,7 +2270,7 @@ export default async function register(api) {
|
|
|
2479
2270
|
}
|
|
2480
2271
|
},
|
|
2481
2272
|
execute: async (input) => {
|
|
2482
|
-
const key =
|
|
2273
|
+
const key = ensureApiKey()
|
|
2483
2274
|
const params = parseToolInput(input)
|
|
2484
2275
|
return callSuperagnt(key, 'GET', '/v2/webhooks', params)
|
|
2485
2276
|
},
|
|
@@ -2488,7 +2279,7 @@ export default async function register(api) {
|
|
|
2488
2279
|
api.registerTool({
|
|
2489
2280
|
name: 'superagnt_connection_attio_post_v2_webhooks',
|
|
2490
2281
|
description: "Create a webhook",
|
|
2491
|
-
|
|
2282
|
+
parameters: {
|
|
2492
2283
|
"type": "object",
|
|
2493
2284
|
"properties": {
|
|
2494
2285
|
"data": {
|
|
@@ -2501,7 +2292,7 @@ export default async function register(api) {
|
|
|
2501
2292
|
]
|
|
2502
2293
|
},
|
|
2503
2294
|
execute: async (input) => {
|
|
2504
|
-
const key =
|
|
2295
|
+
const key = ensureApiKey()
|
|
2505
2296
|
const params = parseToolInput(input)
|
|
2506
2297
|
return callSuperagnt(key, 'POST', '/v2/webhooks', undefined, params)
|
|
2507
2298
|
},
|
|
@@ -2510,7 +2301,7 @@ export default async function register(api) {
|
|
|
2510
2301
|
api.registerTool({
|
|
2511
2302
|
name: 'superagnt_connection_attio_get_v2_webhooks__webhook_id_',
|
|
2512
2303
|
description: "Get a webhook",
|
|
2513
|
-
|
|
2304
|
+
parameters: {
|
|
2514
2305
|
"type": "object",
|
|
2515
2306
|
"properties": {
|
|
2516
2307
|
"webhook_id": {
|
|
@@ -2523,7 +2314,7 @@ export default async function register(api) {
|
|
|
2523
2314
|
]
|
|
2524
2315
|
},
|
|
2525
2316
|
execute: async (input) => {
|
|
2526
|
-
const key =
|
|
2317
|
+
const key = ensureApiKey()
|
|
2527
2318
|
const params = parseToolInput(input)
|
|
2528
2319
|
return callSuperagnt(key, 'GET', '/v2/webhooks/{webhook_id}', params)
|
|
2529
2320
|
},
|
|
@@ -2532,7 +2323,7 @@ export default async function register(api) {
|
|
|
2532
2323
|
api.registerTool({
|
|
2533
2324
|
name: 'superagnt_connection_attio_patch_v2_webhooks__webhook_id_',
|
|
2534
2325
|
description: "Update a webhook",
|
|
2535
|
-
|
|
2326
|
+
parameters: {
|
|
2536
2327
|
"type": "object",
|
|
2537
2328
|
"properties": {
|
|
2538
2329
|
"webhook_id": {
|
|
@@ -2550,7 +2341,7 @@ export default async function register(api) {
|
|
|
2550
2341
|
]
|
|
2551
2342
|
},
|
|
2552
2343
|
execute: async (input) => {
|
|
2553
|
-
const key =
|
|
2344
|
+
const key = ensureApiKey()
|
|
2554
2345
|
const params = parseToolInput(input)
|
|
2555
2346
|
return callSuperagnt(key, 'PATCH', '/v2/webhooks/{webhook_id}', undefined, params)
|
|
2556
2347
|
},
|
|
@@ -2559,7 +2350,7 @@ export default async function register(api) {
|
|
|
2559
2350
|
api.registerTool({
|
|
2560
2351
|
name: 'superagnt_connection_attio_delete_v2_webhooks__webhook_id_',
|
|
2561
2352
|
description: "Delete a webhook",
|
|
2562
|
-
|
|
2353
|
+
parameters: {
|
|
2563
2354
|
"type": "object",
|
|
2564
2355
|
"properties": {
|
|
2565
2356
|
"webhook_id": {
|
|
@@ -2572,7 +2363,7 @@ export default async function register(api) {
|
|
|
2572
2363
|
]
|
|
2573
2364
|
},
|
|
2574
2365
|
execute: async (input) => {
|
|
2575
|
-
const key =
|
|
2366
|
+
const key = ensureApiKey()
|
|
2576
2367
|
const params = parseToolInput(input)
|
|
2577
2368
|
return callSuperagnt(key, 'DELETE', '/v2/webhooks/{webhook_id}', undefined, params)
|
|
2578
2369
|
},
|
|
@@ -2581,17 +2372,14 @@ export default async function register(api) {
|
|
|
2581
2372
|
api.registerTool({
|
|
2582
2373
|
name: 'superagnt_connection_attio_get_v2_self',
|
|
2583
2374
|
description: "Identify",
|
|
2584
|
-
|
|
2375
|
+
parameters: {
|
|
2585
2376
|
"type": "object",
|
|
2586
2377
|
"properties": {}
|
|
2587
2378
|
},
|
|
2588
2379
|
execute: async (input) => {
|
|
2589
|
-
const key =
|
|
2380
|
+
const key = ensureApiKey()
|
|
2590
2381
|
const params = parseToolInput(input)
|
|
2591
2382
|
return callSuperagnt(key, 'GET', '/v2/self', params)
|
|
2592
2383
|
},
|
|
2593
2384
|
})
|
|
2594
|
-
|
|
2595
|
-
promptState.toolCount = 87
|
|
2596
|
-
promptState.ready = true
|
|
2597
2385
|
}
|