@agentapps/app.twilio 2.0.1 → 3.0.0
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/agentapp.json +1 -1
- package/dist/app.js +105 -27
- package/package.json +1 -1
package/agentapp.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agentapps.dev/schemas/app-manifest.json",
|
|
3
3
|
"id": "app.twilio",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.0",
|
|
5
5
|
"name": "Twilio",
|
|
6
6
|
"description": "Twilio communications — send SMS, make calls, manage phone numbers, and check message status.",
|
|
7
7
|
"tagline": "Send SMS, make calls, and manage communications with Twilio",
|
package/dist/app.js
CHANGED
|
@@ -22997,13 +22997,19 @@ async function twilioLookupRequest(phoneNumber, params, ctx) {
|
|
|
22997
22997
|
|
|
22998
22998
|
// apps/twilio/src/tools/get-account.ts
|
|
22999
22999
|
function registerGetAccountTool(app) {
|
|
23000
|
-
app.tool("
|
|
23000
|
+
app.tool("get-account", {
|
|
23001
23001
|
description: "Get information about your Twilio account, including SID, friendly name, status, and type.",
|
|
23002
23002
|
parameters: {
|
|
23003
23003
|
type: "object",
|
|
23004
23004
|
properties: {}
|
|
23005
23005
|
},
|
|
23006
|
-
annotations: {
|
|
23006
|
+
annotations: {
|
|
23007
|
+
readOnlyHint: true,
|
|
23008
|
+
destructiveHint: false,
|
|
23009
|
+
idempotentHint: true,
|
|
23010
|
+
openWorldHint: true,
|
|
23011
|
+
sensitive: false
|
|
23012
|
+
},
|
|
23007
23013
|
handler: async (_args, ctx) => {
|
|
23008
23014
|
return await twilioRequest("GET", "", null, ctx);
|
|
23009
23015
|
}
|
|
@@ -23012,7 +23018,7 @@ function registerGetAccountTool(app) {
|
|
|
23012
23018
|
|
|
23013
23019
|
// apps/twilio/src/tools/get-call.ts
|
|
23014
23020
|
function registerGetCallTool(app) {
|
|
23015
|
-
app.tool("
|
|
23021
|
+
app.tool("get-call", {
|
|
23016
23022
|
description: "Get detailed information about a specific Twilio call by its SID.",
|
|
23017
23023
|
parameters: {
|
|
23018
23024
|
type: "object",
|
|
@@ -23024,7 +23030,13 @@ function registerGetCallTool(app) {
|
|
|
23024
23030
|
},
|
|
23025
23031
|
required: ["callSid"]
|
|
23026
23032
|
},
|
|
23027
|
-
annotations: {
|
|
23033
|
+
annotations: {
|
|
23034
|
+
readOnlyHint: true,
|
|
23035
|
+
destructiveHint: false,
|
|
23036
|
+
idempotentHint: true,
|
|
23037
|
+
openWorldHint: true,
|
|
23038
|
+
sensitive: false
|
|
23039
|
+
},
|
|
23028
23040
|
handler: async (args, ctx) => {
|
|
23029
23041
|
const callSid = args.callSid;
|
|
23030
23042
|
return await twilioRequest("GET", `/Calls/${callSid}`, null, ctx);
|
|
@@ -23034,7 +23046,7 @@ function registerGetCallTool(app) {
|
|
|
23034
23046
|
|
|
23035
23047
|
// apps/twilio/src/tools/get-message.ts
|
|
23036
23048
|
function registerGetMessageTool(app) {
|
|
23037
|
-
app.tool("
|
|
23049
|
+
app.tool("get-message", {
|
|
23038
23050
|
description: "Get detailed information about a specific Twilio message by its SID.",
|
|
23039
23051
|
parameters: {
|
|
23040
23052
|
type: "object",
|
|
@@ -23046,7 +23058,13 @@ function registerGetMessageTool(app) {
|
|
|
23046
23058
|
},
|
|
23047
23059
|
required: ["messageSid"]
|
|
23048
23060
|
},
|
|
23049
|
-
annotations: {
|
|
23061
|
+
annotations: {
|
|
23062
|
+
readOnlyHint: true,
|
|
23063
|
+
destructiveHint: false,
|
|
23064
|
+
idempotentHint: true,
|
|
23065
|
+
openWorldHint: true,
|
|
23066
|
+
sensitive: false
|
|
23067
|
+
},
|
|
23050
23068
|
handler: async (args, ctx) => {
|
|
23051
23069
|
const messageSid = args.messageSid;
|
|
23052
23070
|
return await twilioRequest("GET", `/Messages/${messageSid}`, null, ctx);
|
|
@@ -23056,7 +23074,7 @@ function registerGetMessageTool(app) {
|
|
|
23056
23074
|
|
|
23057
23075
|
// apps/twilio/src/tools/get-recording.ts
|
|
23058
23076
|
function registerGetRecordingTool(app) {
|
|
23059
|
-
app.tool("
|
|
23077
|
+
app.tool("get-recording", {
|
|
23060
23078
|
description: "Get detailed information about a specific Twilio recording by its SID, including duration, channels, and media URL.",
|
|
23061
23079
|
parameters: {
|
|
23062
23080
|
type: "object",
|
|
@@ -23068,7 +23086,13 @@ function registerGetRecordingTool(app) {
|
|
|
23068
23086
|
},
|
|
23069
23087
|
required: ["recordingSid"]
|
|
23070
23088
|
},
|
|
23071
|
-
annotations: {
|
|
23089
|
+
annotations: {
|
|
23090
|
+
readOnlyHint: true,
|
|
23091
|
+
destructiveHint: false,
|
|
23092
|
+
idempotentHint: true,
|
|
23093
|
+
openWorldHint: true,
|
|
23094
|
+
sensitive: false
|
|
23095
|
+
},
|
|
23072
23096
|
handler: async (args, ctx) => {
|
|
23073
23097
|
const recordingSid = args.recordingSid;
|
|
23074
23098
|
return await twilioRequest("GET", `/Recordings/${recordingSid}`, null, ctx);
|
|
@@ -23078,7 +23102,7 @@ function registerGetRecordingTool(app) {
|
|
|
23078
23102
|
|
|
23079
23103
|
// apps/twilio/src/tools/list-available-numbers.ts
|
|
23080
23104
|
function registerListAvailableNumbersTool(app) {
|
|
23081
|
-
app.tool("
|
|
23105
|
+
app.tool("list-available-numbers", {
|
|
23082
23106
|
description: "Search for available local phone numbers that can be purchased. Filter by area code, region, or capabilities.",
|
|
23083
23107
|
parameters: {
|
|
23084
23108
|
type: "object",
|
|
@@ -23118,7 +23142,13 @@ function registerListAvailableNumbersTool(app) {
|
|
|
23118
23142
|
},
|
|
23119
23143
|
required: ["countryCode"]
|
|
23120
23144
|
},
|
|
23121
|
-
annotations: {
|
|
23145
|
+
annotations: {
|
|
23146
|
+
readOnlyHint: true,
|
|
23147
|
+
destructiveHint: false,
|
|
23148
|
+
idempotentHint: true,
|
|
23149
|
+
openWorldHint: true,
|
|
23150
|
+
sensitive: false
|
|
23151
|
+
},
|
|
23122
23152
|
handler: async (args, ctx) => {
|
|
23123
23153
|
const countryCode = args.countryCode;
|
|
23124
23154
|
const params = {
|
|
@@ -23146,7 +23176,7 @@ function registerListAvailableNumbersTool(app) {
|
|
|
23146
23176
|
|
|
23147
23177
|
// apps/twilio/src/tools/list-calls.ts
|
|
23148
23178
|
function registerListCallsTool(app) {
|
|
23149
|
-
app.tool("
|
|
23179
|
+
app.tool("list-calls", {
|
|
23150
23180
|
description: "List calls from your Twilio account. Supports filtering by phone number and call status.",
|
|
23151
23181
|
parameters: {
|
|
23152
23182
|
type: "object",
|
|
@@ -23179,7 +23209,13 @@ function registerListCallsTool(app) {
|
|
|
23179
23209
|
}
|
|
23180
23210
|
}
|
|
23181
23211
|
},
|
|
23182
|
-
annotations: {
|
|
23212
|
+
annotations: {
|
|
23213
|
+
readOnlyHint: true,
|
|
23214
|
+
destructiveHint: false,
|
|
23215
|
+
idempotentHint: true,
|
|
23216
|
+
openWorldHint: true,
|
|
23217
|
+
sensitive: false
|
|
23218
|
+
},
|
|
23183
23219
|
handler: async (args, ctx) => {
|
|
23184
23220
|
const params = {
|
|
23185
23221
|
PageSize: args.pageSize || 20
|
|
@@ -23202,7 +23238,7 @@ function registerListCallsTool(app) {
|
|
|
23202
23238
|
|
|
23203
23239
|
// apps/twilio/src/tools/list-messages.ts
|
|
23204
23240
|
function registerListMessagesTool(app) {
|
|
23205
|
-
app.tool("
|
|
23241
|
+
app.tool("list-messages", {
|
|
23206
23242
|
description: "List SMS messages from your Twilio account. Supports filtering by sender, recipient, and date.",
|
|
23207
23243
|
parameters: {
|
|
23208
23244
|
type: "object",
|
|
@@ -23225,7 +23261,13 @@ function registerListMessagesTool(app) {
|
|
|
23225
23261
|
}
|
|
23226
23262
|
}
|
|
23227
23263
|
},
|
|
23228
|
-
annotations: {
|
|
23264
|
+
annotations: {
|
|
23265
|
+
readOnlyHint: true,
|
|
23266
|
+
destructiveHint: false,
|
|
23267
|
+
idempotentHint: true,
|
|
23268
|
+
openWorldHint: true,
|
|
23269
|
+
sensitive: false
|
|
23270
|
+
},
|
|
23229
23271
|
handler: async (args, ctx) => {
|
|
23230
23272
|
const params = {
|
|
23231
23273
|
PageSize: args.pageSize || 20
|
|
@@ -23248,7 +23290,7 @@ function registerListMessagesTool(app) {
|
|
|
23248
23290
|
|
|
23249
23291
|
// apps/twilio/src/tools/list-phone-numbers.ts
|
|
23250
23292
|
function registerListPhoneNumbersTool(app) {
|
|
23251
|
-
app.tool("
|
|
23293
|
+
app.tool("list-phone-numbers", {
|
|
23252
23294
|
description: "List incoming phone numbers on your Twilio account. Optionally filter by phone number.",
|
|
23253
23295
|
parameters: {
|
|
23254
23296
|
type: "object",
|
|
@@ -23263,7 +23305,13 @@ function registerListPhoneNumbersTool(app) {
|
|
|
23263
23305
|
}
|
|
23264
23306
|
}
|
|
23265
23307
|
},
|
|
23266
|
-
annotations: {
|
|
23308
|
+
annotations: {
|
|
23309
|
+
readOnlyHint: true,
|
|
23310
|
+
destructiveHint: false,
|
|
23311
|
+
idempotentHint: true,
|
|
23312
|
+
openWorldHint: true,
|
|
23313
|
+
sensitive: false
|
|
23314
|
+
},
|
|
23267
23315
|
handler: async (args, ctx) => {
|
|
23268
23316
|
const params = {
|
|
23269
23317
|
PageSize: args.pageSize || 20
|
|
@@ -23280,7 +23328,7 @@ function registerListPhoneNumbersTool(app) {
|
|
|
23280
23328
|
|
|
23281
23329
|
// apps/twilio/src/tools/list-recordings.ts
|
|
23282
23330
|
function registerListRecordingsTool(app) {
|
|
23283
|
-
app.tool("
|
|
23331
|
+
app.tool("list-recordings", {
|
|
23284
23332
|
description: "List recordings from your Twilio account. Supports filtering by date and call SID.",
|
|
23285
23333
|
parameters: {
|
|
23286
23334
|
type: "object",
|
|
@@ -23299,7 +23347,13 @@ function registerListRecordingsTool(app) {
|
|
|
23299
23347
|
}
|
|
23300
23348
|
}
|
|
23301
23349
|
},
|
|
23302
|
-
annotations: {
|
|
23350
|
+
annotations: {
|
|
23351
|
+
readOnlyHint: true,
|
|
23352
|
+
destructiveHint: false,
|
|
23353
|
+
idempotentHint: true,
|
|
23354
|
+
openWorldHint: true,
|
|
23355
|
+
sensitive: false
|
|
23356
|
+
},
|
|
23303
23357
|
handler: async (args, ctx) => {
|
|
23304
23358
|
const params = {
|
|
23305
23359
|
PageSize: args.pageSize || 20
|
|
@@ -23320,7 +23374,7 @@ function registerListRecordingsTool(app) {
|
|
|
23320
23374
|
|
|
23321
23375
|
// apps/twilio/src/tools/lookup-phone.ts
|
|
23322
23376
|
function registerLookupPhoneTool(app) {
|
|
23323
|
-
app.tool("
|
|
23377
|
+
app.tool("lookup-phone", {
|
|
23324
23378
|
description: "Look up information about a phone number using the Twilio Lookups API. Returns carrier, caller name, and formatting details.",
|
|
23325
23379
|
parameters: {
|
|
23326
23380
|
type: "object",
|
|
@@ -23340,7 +23394,13 @@ function registerLookupPhoneTool(app) {
|
|
|
23340
23394
|
},
|
|
23341
23395
|
required: ["phoneNumber"]
|
|
23342
23396
|
},
|
|
23343
|
-
annotations: {
|
|
23397
|
+
annotations: {
|
|
23398
|
+
readOnlyHint: true,
|
|
23399
|
+
destructiveHint: false,
|
|
23400
|
+
idempotentHint: true,
|
|
23401
|
+
openWorldHint: true,
|
|
23402
|
+
sensitive: false
|
|
23403
|
+
},
|
|
23344
23404
|
handler: async (args, ctx) => {
|
|
23345
23405
|
const phoneNumber = args.phoneNumber;
|
|
23346
23406
|
const params = {};
|
|
@@ -23355,7 +23415,7 @@ function registerLookupPhoneTool(app) {
|
|
|
23355
23415
|
|
|
23356
23416
|
// apps/twilio/src/tools/make-call.ts
|
|
23357
23417
|
function registerMakeCallTool(app) {
|
|
23358
|
-
app.tool("
|
|
23418
|
+
app.tool("make-call", {
|
|
23359
23419
|
description: "Initiate a phone call via Twilio. Provide either a TwiML URL or inline TwiML markup to control call behavior. Returns the call object.",
|
|
23360
23420
|
parameters: {
|
|
23361
23421
|
type: "object",
|
|
@@ -23383,7 +23443,13 @@ function registerMakeCallTool(app) {
|
|
|
23383
23443
|
},
|
|
23384
23444
|
required: ["to", "from"]
|
|
23385
23445
|
},
|
|
23386
|
-
annotations: {
|
|
23446
|
+
annotations: {
|
|
23447
|
+
readOnlyHint: false,
|
|
23448
|
+
destructiveHint: true,
|
|
23449
|
+
idempotentHint: false,
|
|
23450
|
+
openWorldHint: true,
|
|
23451
|
+
sensitive: true
|
|
23452
|
+
},
|
|
23387
23453
|
handler: async (args, ctx) => {
|
|
23388
23454
|
if (!args.url && !args.twiml) {
|
|
23389
23455
|
throw new Error('Either "url" or "twiml" must be provided.');
|
|
@@ -23405,7 +23471,7 @@ function registerMakeCallTool(app) {
|
|
|
23405
23471
|
|
|
23406
23472
|
// apps/twilio/src/tools/send-sms.ts
|
|
23407
23473
|
function registerSendSmsTool(app) {
|
|
23408
|
-
app.tool("
|
|
23474
|
+
app.tool("send-sms", {
|
|
23409
23475
|
description: "Send an SMS message via Twilio. Returns the message object with sid, status, and delivery details.",
|
|
23410
23476
|
parameters: {
|
|
23411
23477
|
type: "object",
|
|
@@ -23429,7 +23495,13 @@ function registerSendSmsTool(app) {
|
|
|
23429
23495
|
},
|
|
23430
23496
|
required: ["to", "from", "body"]
|
|
23431
23497
|
},
|
|
23432
|
-
annotations: {
|
|
23498
|
+
annotations: {
|
|
23499
|
+
readOnlyHint: false,
|
|
23500
|
+
destructiveHint: true,
|
|
23501
|
+
idempotentHint: false,
|
|
23502
|
+
openWorldHint: true,
|
|
23503
|
+
sensitive: true
|
|
23504
|
+
},
|
|
23433
23505
|
handler: async (args, ctx) => {
|
|
23434
23506
|
const params = {
|
|
23435
23507
|
To: args.to,
|
|
@@ -23445,7 +23517,7 @@ function registerSendSmsTool(app) {
|
|
|
23445
23517
|
|
|
23446
23518
|
// apps/twilio/src/tools/send-whatsapp.ts
|
|
23447
23519
|
function registerSendWhatsappTool(app) {
|
|
23448
|
-
app.tool("
|
|
23520
|
+
app.tool("send-whatsapp", {
|
|
23449
23521
|
description: "Send a WhatsApp message via Twilio. The sender must be a Twilio WhatsApp-enabled number or sandbox number. Returns the message object with sid and status.",
|
|
23450
23522
|
parameters: {
|
|
23451
23523
|
type: "object",
|
|
@@ -23473,7 +23545,13 @@ function registerSendWhatsappTool(app) {
|
|
|
23473
23545
|
},
|
|
23474
23546
|
required: ["to", "from", "body"]
|
|
23475
23547
|
},
|
|
23476
|
-
annotations: {
|
|
23548
|
+
annotations: {
|
|
23549
|
+
readOnlyHint: false,
|
|
23550
|
+
destructiveHint: true,
|
|
23551
|
+
idempotentHint: false,
|
|
23552
|
+
openWorldHint: true,
|
|
23553
|
+
sensitive: true
|
|
23554
|
+
},
|
|
23477
23555
|
handler: async (args, ctx) => {
|
|
23478
23556
|
const to = args.to;
|
|
23479
23557
|
const from = args.from;
|
|
@@ -23511,7 +23589,7 @@ function registerTools(app) {
|
|
|
23511
23589
|
// apps/twilio/src/app.ts
|
|
23512
23590
|
var app = createApp({
|
|
23513
23591
|
id: "app.twilio",
|
|
23514
|
-
version: "
|
|
23592
|
+
version: "3.0.0",
|
|
23515
23593
|
name: "Twilio",
|
|
23516
23594
|
description: "Twilio communications — send SMS, make calls, manage phone numbers, and check message status.",
|
|
23517
23595
|
author: { name: "Pablo López Torres", email: "pablolopeztorres@gmail.com" },
|
package/package.json
CHANGED