@avallon-labs/mcp 11.1.0 → 12.0.0-staging.296
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/dist/index.js
CHANGED
|
@@ -1306,15 +1306,15 @@ var listAgentWebhooks = async (voiceAgentId, options) => {
|
|
|
1306
1306
|
headers: res.headers
|
|
1307
1307
|
};
|
|
1308
1308
|
};
|
|
1309
|
-
var
|
|
1309
|
+
var getCreateInboxWebhookUrl = (inboxId) => {
|
|
1310
1310
|
return `/v1/inboxes/${inboxId}/webhooks`;
|
|
1311
1311
|
};
|
|
1312
|
-
var
|
|
1313
|
-
const res = await fetch(
|
|
1312
|
+
var createInboxWebhook = async (inboxId, createInboxWebhookBody, options) => {
|
|
1313
|
+
const res = await fetch(getCreateInboxWebhookUrl(inboxId), {
|
|
1314
1314
|
...options,
|
|
1315
1315
|
method: "POST",
|
|
1316
1316
|
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
1317
|
-
body: JSON.stringify(
|
|
1317
|
+
body: JSON.stringify(createInboxWebhookBody)
|
|
1318
1318
|
});
|
|
1319
1319
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
1320
1320
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -2181,8 +2181,8 @@ var listAgentWebhooksHandler = async (args) => {
|
|
|
2181
2181
|
]
|
|
2182
2182
|
};
|
|
2183
2183
|
};
|
|
2184
|
-
var
|
|
2185
|
-
const res = await
|
|
2184
|
+
var createInboxWebhookHandler = async (args) => {
|
|
2185
|
+
const res = await createInboxWebhook(
|
|
2186
2186
|
args.pathParams.inboxId,
|
|
2187
2187
|
args.bodyParams
|
|
2188
2188
|
);
|
|
@@ -3371,6 +3371,7 @@ var listEmailsQueryOffsetMin = 0;
|
|
|
3371
3371
|
var listEmailsQuerySortByDefault = `created_at`;
|
|
3372
3372
|
var listEmailsQuerySortOrderDefault = `desc`;
|
|
3373
3373
|
var ListEmailsQueryParams = zod.object({
|
|
3374
|
+
inbox_id: zod.string().uuid().optional(),
|
|
3374
3375
|
agent_id: zod.string().uuid().optional(),
|
|
3375
3376
|
sender: zod.string().email().optional(),
|
|
3376
3377
|
recipient: zod.string().email().optional(),
|
|
@@ -3382,6 +3383,7 @@ var ListEmailsQueryParams = zod.object({
|
|
|
3382
3383
|
});
|
|
3383
3384
|
var ListEmailsResponseItem = zod.object({
|
|
3384
3385
|
id: zod.string(),
|
|
3386
|
+
inbox_id: zod.union([zod.string(), zod.null()]),
|
|
3385
3387
|
email_agent_id: zod.union([zod.string(), zod.null()]),
|
|
3386
3388
|
direction: zod.enum(["inbound", "outbound"]),
|
|
3387
3389
|
from: zod.string(),
|
|
@@ -3397,6 +3399,7 @@ var GetEmailParams = zod.object({
|
|
|
3397
3399
|
});
|
|
3398
3400
|
var GetEmailResponse = zod.object({
|
|
3399
3401
|
id: zod.string(),
|
|
3402
|
+
inbox_id: zod.union([zod.string(), zod.null()]),
|
|
3400
3403
|
email_agent_id: zod.union([zod.string(), zod.null()]),
|
|
3401
3404
|
claim_id: zod.union([zod.string(), zod.null()]),
|
|
3402
3405
|
direction: zod.enum(["inbound", "outbound"]),
|
|
@@ -3812,7 +3815,7 @@ var CreateAgentWebhookResponse = zod.object({
|
|
|
3812
3815
|
call_agent_id: zod.string()
|
|
3813
3816
|
}),
|
|
3814
3817
|
zod.object({
|
|
3815
|
-
|
|
3818
|
+
inbox_id: zod.string()
|
|
3816
3819
|
})
|
|
3817
3820
|
]),
|
|
3818
3821
|
name: zod.string(),
|
|
@@ -3836,7 +3839,7 @@ var ListAgentWebhooksResponseItem = zod.object({
|
|
|
3836
3839
|
call_agent_id: zod.string()
|
|
3837
3840
|
}),
|
|
3838
3841
|
zod.object({
|
|
3839
|
-
|
|
3842
|
+
inbox_id: zod.string()
|
|
3840
3843
|
})
|
|
3841
3844
|
]),
|
|
3842
3845
|
name: zod.string(),
|
|
@@ -3850,27 +3853,27 @@ var ListAgentWebhooksResponseItem = zod.object({
|
|
|
3850
3853
|
var ListAgentWebhooksResponse = zod.array(
|
|
3851
3854
|
ListAgentWebhooksResponseItem
|
|
3852
3855
|
);
|
|
3853
|
-
var
|
|
3856
|
+
var CreateInboxWebhookParams = zod.object({
|
|
3854
3857
|
inboxId: zod.string().min(1)
|
|
3855
3858
|
});
|
|
3856
|
-
var
|
|
3857
|
-
var
|
|
3858
|
-
var
|
|
3859
|
-
var
|
|
3860
|
-
var
|
|
3861
|
-
name: zod.string().min(1).max(
|
|
3862
|
-
url: zod.string().url().max(
|
|
3859
|
+
var createInboxWebhookBodyNameMax = 256;
|
|
3860
|
+
var createInboxWebhookBodyUrlMax = 2048;
|
|
3861
|
+
var createInboxWebhookBodyAuthHeaderNameOneMax = 256;
|
|
3862
|
+
var createInboxWebhookBodyAuthHeaderValueOneMax = 2048;
|
|
3863
|
+
var CreateInboxWebhookBody = zod.object({
|
|
3864
|
+
name: zod.string().min(1).max(createInboxWebhookBodyNameMax),
|
|
3865
|
+
url: zod.string().url().max(createInboxWebhookBodyUrlMax),
|
|
3863
3866
|
auth_header_name: zod.union([
|
|
3864
|
-
zod.string().max(
|
|
3867
|
+
zod.string().max(createInboxWebhookBodyAuthHeaderNameOneMax),
|
|
3865
3868
|
zod.null()
|
|
3866
3869
|
]).optional(),
|
|
3867
3870
|
auth_header_value: zod.union([
|
|
3868
|
-
zod.string().max(
|
|
3871
|
+
zod.string().max(createInboxWebhookBodyAuthHeaderValueOneMax),
|
|
3869
3872
|
zod.null()
|
|
3870
3873
|
]).optional(),
|
|
3871
3874
|
enabled: zod.boolean().optional()
|
|
3872
3875
|
});
|
|
3873
|
-
var
|
|
3876
|
+
var CreateInboxWebhookResponse = zod.object({
|
|
3874
3877
|
id: zod.string(),
|
|
3875
3878
|
scope: zod.union([
|
|
3876
3879
|
zod.object({
|
|
@@ -3880,7 +3883,7 @@ var CreateEmailAgentWebhookResponse = zod.object({
|
|
|
3880
3883
|
call_agent_id: zod.string()
|
|
3881
3884
|
}),
|
|
3882
3885
|
zod.object({
|
|
3883
|
-
|
|
3886
|
+
inbox_id: zod.string()
|
|
3884
3887
|
})
|
|
3885
3888
|
]),
|
|
3886
3889
|
name: zod.string(),
|
|
@@ -3904,7 +3907,7 @@ var ListInboxWebhooksResponseItem = zod.object({
|
|
|
3904
3907
|
call_agent_id: zod.string()
|
|
3905
3908
|
}),
|
|
3906
3909
|
zod.object({
|
|
3907
|
-
|
|
3910
|
+
inbox_id: zod.string()
|
|
3908
3911
|
})
|
|
3909
3912
|
]),
|
|
3910
3913
|
name: zod.string(),
|
|
@@ -3948,7 +3951,7 @@ var CreateExtractorWebhookResponse = zod.object({
|
|
|
3948
3951
|
call_agent_id: zod.string()
|
|
3949
3952
|
}),
|
|
3950
3953
|
zod.object({
|
|
3951
|
-
|
|
3954
|
+
inbox_id: zod.string()
|
|
3952
3955
|
})
|
|
3953
3956
|
]),
|
|
3954
3957
|
name: zod.string(),
|
|
@@ -3972,7 +3975,7 @@ var ListWebhooksResponseItem = zod.object({
|
|
|
3972
3975
|
call_agent_id: zod.string()
|
|
3973
3976
|
}),
|
|
3974
3977
|
zod.object({
|
|
3975
|
-
|
|
3978
|
+
inbox_id: zod.string()
|
|
3976
3979
|
})
|
|
3977
3980
|
]),
|
|
3978
3981
|
name: zod.string(),
|
|
@@ -4001,7 +4004,7 @@ var GetWebhookResponse = zod.object({
|
|
|
4001
4004
|
call_agent_id: zod.string()
|
|
4002
4005
|
}),
|
|
4003
4006
|
zod.object({
|
|
4004
|
-
|
|
4007
|
+
inbox_id: zod.string()
|
|
4005
4008
|
})
|
|
4006
4009
|
]),
|
|
4007
4010
|
name: zod.string(),
|
|
@@ -4568,13 +4571,13 @@ server.tool(
|
|
|
4568
4571
|
listAgentWebhooksHandler
|
|
4569
4572
|
);
|
|
4570
4573
|
server.tool(
|
|
4571
|
-
"
|
|
4574
|
+
"createInboxWebhook",
|
|
4572
4575
|
"Create inbox webhook",
|
|
4573
4576
|
{
|
|
4574
|
-
pathParams:
|
|
4575
|
-
bodyParams:
|
|
4577
|
+
pathParams: CreateInboxWebhookParams,
|
|
4578
|
+
bodyParams: CreateInboxWebhookBody
|
|
4576
4579
|
},
|
|
4577
|
-
|
|
4580
|
+
createInboxWebhookHandler
|
|
4578
4581
|
);
|
|
4579
4582
|
server.tool(
|
|
4580
4583
|
"listInboxWebhooks",
|
|
@@ -4638,4 +4641,4 @@ var transport = new StdioServerTransport();
|
|
|
4638
4641
|
server.connect(transport).then(() => {
|
|
4639
4642
|
console.error("MCP server running on stdio");
|
|
4640
4643
|
}).catch(console.error);
|
|
4641
|
-
//# sourceMappingURL=server-
|
|
4644
|
+
//# sourceMappingURL=server-4JPUZZKB.js.map
|