@avallon-labs/mcp 14.4.0 → 15.1.0-staging.358
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
|
@@ -956,22 +956,6 @@ var getExtractorJob = async (id, options) => {
|
|
|
956
956
|
headers: res.headers
|
|
957
957
|
};
|
|
958
958
|
};
|
|
959
|
-
var getCancelExtractorJobUrl = (id) => {
|
|
960
|
-
return `/v1/extractor-jobs/${id}/cancel`;
|
|
961
|
-
};
|
|
962
|
-
var cancelExtractorJob = async (id, options) => {
|
|
963
|
-
const res = await fetch(getCancelExtractorJobUrl(id), {
|
|
964
|
-
...options,
|
|
965
|
-
method: "POST"
|
|
966
|
-
});
|
|
967
|
-
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
968
|
-
const data = body ? JSON.parse(body) : {};
|
|
969
|
-
return {
|
|
970
|
-
data,
|
|
971
|
-
status: res.status,
|
|
972
|
-
headers: res.headers
|
|
973
|
-
};
|
|
974
|
-
};
|
|
975
959
|
var getUpdateExtractorJobScopeUrl = (id) => {
|
|
976
960
|
return `/v1/extractor-jobs/${id}/scope`;
|
|
977
961
|
};
|
|
@@ -2152,17 +2136,6 @@ var getExtractorJobHandler = async (args) => {
|
|
|
2152
2136
|
]
|
|
2153
2137
|
};
|
|
2154
2138
|
};
|
|
2155
|
-
var cancelExtractorJobHandler = async (args) => {
|
|
2156
|
-
const res = await cancelExtractorJob(args.pathParams.id);
|
|
2157
|
-
return {
|
|
2158
|
-
content: [
|
|
2159
|
-
{
|
|
2160
|
-
type: "text",
|
|
2161
|
-
text: JSON.stringify(res)
|
|
2162
|
-
}
|
|
2163
|
-
]
|
|
2164
|
-
};
|
|
2165
|
-
};
|
|
2166
2139
|
var updateExtractorJobScopeHandler = async (args) => {
|
|
2167
2140
|
const res = await updateExtractorJobScope(
|
|
2168
2141
|
args.pathParams.id,
|
|
@@ -3564,7 +3537,11 @@ var createInboxBodyNameMax = 256;
|
|
|
3564
3537
|
var createInboxBodyAttachmentPasswordOneMax = 2048;
|
|
3565
3538
|
var CreateInboxBody = zod.object({
|
|
3566
3539
|
name: zod.string().min(1).max(createInboxBodyNameMax),
|
|
3567
|
-
extractor_id: zod.string().uuid(),
|
|
3540
|
+
extractor_id: zod.string().uuid().optional().describe("Deprecated. Use processor_id instead."),
|
|
3541
|
+
processor_id: zod.string().uuid().optional().describe("ID of the processor (extractor or worker) to use."),
|
|
3542
|
+
processor_type: zod.enum(["extractor", "worker"]).optional().describe(
|
|
3543
|
+
"Type of processor. Defaults to 'extractor' when extractor_id is used."
|
|
3544
|
+
),
|
|
3568
3545
|
attachment_password: zod.union([
|
|
3569
3546
|
zod.string().max(createInboxBodyAttachmentPasswordOneMax),
|
|
3570
3547
|
zod.null()
|
|
@@ -3579,7 +3556,9 @@ var CreateInboxResponse = zod.object({
|
|
|
3579
3556
|
id: zod.string(),
|
|
3580
3557
|
name: zod.string(),
|
|
3581
3558
|
email_address: zod.string(),
|
|
3582
|
-
extractor_id: zod.string(),
|
|
3559
|
+
extractor_id: zod.string().describe("Deprecated. Use processor_id instead."),
|
|
3560
|
+
processor_id: zod.string(),
|
|
3561
|
+
processor_type: zod.enum(["extractor", "worker"]),
|
|
3583
3562
|
has_password: zod.boolean(),
|
|
3584
3563
|
pdf_splitting_enabled: zod.boolean(),
|
|
3585
3564
|
allowed_sender_domains: zod.union([zod.array(zod.string()), zod.null()]),
|
|
@@ -3602,7 +3581,9 @@ var ListInboxesResponseItem = zod.object({
|
|
|
3602
3581
|
id: zod.string(),
|
|
3603
3582
|
name: zod.string(),
|
|
3604
3583
|
email_address: zod.string(),
|
|
3605
|
-
extractor_id: zod.string(),
|
|
3584
|
+
extractor_id: zod.string().describe("Deprecated. Use processor_id instead."),
|
|
3585
|
+
processor_id: zod.string(),
|
|
3586
|
+
processor_type: zod.enum(["extractor", "worker"]),
|
|
3606
3587
|
has_password: zod.boolean(),
|
|
3607
3588
|
pdf_splitting_enabled: zod.boolean(),
|
|
3608
3589
|
allowed_sender_domains: zod.union([zod.array(zod.string()), zod.null()]),
|
|
@@ -3623,7 +3604,9 @@ var UpdateInboxResponse = zod.object({
|
|
|
3623
3604
|
id: zod.string(),
|
|
3624
3605
|
name: zod.string(),
|
|
3625
3606
|
email_address: zod.string(),
|
|
3626
|
-
extractor_id: zod.string(),
|
|
3607
|
+
extractor_id: zod.string().describe("Deprecated. Use processor_id instead."),
|
|
3608
|
+
processor_id: zod.string(),
|
|
3609
|
+
processor_type: zod.enum(["extractor", "worker"]),
|
|
3627
3610
|
has_password: zod.boolean(),
|
|
3628
3611
|
pdf_splitting_enabled: zod.boolean(),
|
|
3629
3612
|
allowed_sender_domains: zod.union([zod.array(zod.string()), zod.null()]),
|
|
@@ -3723,7 +3706,6 @@ var ListExtractorJobsQueryParams = zod.object({
|
|
|
3723
3706
|
sort_by: zod.enum(["created_at", "started_at", "completed_at"]).default(listExtractorJobsQuerySortByDefault).describe("Field to sort by"),
|
|
3724
3707
|
sort_order: zod.enum(["asc", "desc"]).default(listExtractorJobsQuerySortOrderDefault).describe("Sort direction"),
|
|
3725
3708
|
status: zod.enum(["queued", "in_progress", "completed", "failed", "canceled"]).optional().describe("Filter by job status"),
|
|
3726
|
-
extractor_type: zod.enum(["basic", "agentic"]).optional().describe("Filter by extractor type"),
|
|
3727
3709
|
extractor_id: zod.string().uuid().optional().describe("Filter by extractor ID"),
|
|
3728
3710
|
created_after: zod.string().datetime({}).optional().describe("Filter jobs created after this date (ISO 8601)"),
|
|
3729
3711
|
created_before: zod.string().datetime({}).optional().describe("Filter jobs created before this date (ISO 8601)"),
|
|
@@ -3738,7 +3720,6 @@ var ListExtractorJobsResponseItem = zod.object({
|
|
|
3738
3720
|
extractor_id: zod.string().describe("ID of the extractor that created this job"),
|
|
3739
3721
|
extractor_version: zod.number().min(listExtractorJobsResponseExtractorVersionMin).max(listExtractorJobsResponseExtractorVersionMax).describe("Version of the extractor at job creation time"),
|
|
3740
3722
|
extractor_name: zod.string().describe("Name of the extractor"),
|
|
3741
|
-
extractor_type: zod.enum(["basic", "agentic"]).describe("Type of extractor"),
|
|
3742
3723
|
status: zod.string().describe("Current job status"),
|
|
3743
3724
|
scope: zod.record(zod.string(), zod.unknown()).describe("Job scope metadata (e.g. claim_id, email_id)"),
|
|
3744
3725
|
created_at: zod.string().describe("ISO 8601 timestamp when the job was created"),
|
|
@@ -3751,10 +3732,8 @@ var ListExtractorJobsResponseItem = zod.object({
|
|
|
3751
3732
|
var ListExtractorJobsResponse = zod.array(
|
|
3752
3733
|
ListExtractorJobsResponseItem
|
|
3753
3734
|
);
|
|
3754
|
-
var createExtractorJobBodyExtractorTypeDefault = `basic`;
|
|
3755
3735
|
var CreateExtractorJobBody = zod.object({
|
|
3756
3736
|
extractor_id: zod.string().uuid(),
|
|
3757
|
-
extractor_type: zod.enum(["basic", "agentic"]).default(createExtractorJobBodyExtractorTypeDefault),
|
|
3758
3737
|
scope: zod.record(
|
|
3759
3738
|
zod.string(),
|
|
3760
3739
|
zod.union([zod.string(), zod.number(), zod.boolean(), zod.null()])
|
|
@@ -3787,23 +3766,6 @@ var GetExtractorJobResponse = zod.object({
|
|
|
3787
3766
|
error: zod.union([zod.string(), zod.null()])
|
|
3788
3767
|
})
|
|
3789
3768
|
});
|
|
3790
|
-
var CancelExtractorJobParams = zod.object({
|
|
3791
|
-
id: zod.string().uuid()
|
|
3792
|
-
});
|
|
3793
|
-
var CancelExtractorJobResponse = zod.object({
|
|
3794
|
-
id: zod.string(),
|
|
3795
|
-
extractor_id: zod.string(),
|
|
3796
|
-
extractor_version: zod.number(),
|
|
3797
|
-
extractor_name: zod.string(),
|
|
3798
|
-
status: zod.string(),
|
|
3799
|
-
scope: zod.record(zod.string(), zod.unknown()),
|
|
3800
|
-
created_at: zod.string().datetime({}),
|
|
3801
|
-
started_at: zod.union([zod.string().datetime({}), zod.null()]),
|
|
3802
|
-
completed_at: zod.union([zod.string(), zod.null()]),
|
|
3803
|
-
processing_duration_ms: zod.union([zod.number(), zod.null()]),
|
|
3804
|
-
extract_id: zod.union([zod.string(), zod.null()]),
|
|
3805
|
-
error: zod.union([zod.string(), zod.null()])
|
|
3806
|
-
});
|
|
3807
3769
|
var UpdateExtractorJobScopeParams = zod.object({
|
|
3808
3770
|
id: zod.string().uuid()
|
|
3809
3771
|
});
|
|
@@ -4148,6 +4110,7 @@ var GetProfileResponse = zod.object({
|
|
|
4148
4110
|
last_name: zod.union([zod.string(), zod.null()]),
|
|
4149
4111
|
email: zod.string(),
|
|
4150
4112
|
role: zod.enum(["admin", "member"]),
|
|
4113
|
+
permissions: zod.array(zod.enum(["voice-agents:write"])),
|
|
4151
4114
|
tenants: zod.object({
|
|
4152
4115
|
active: zod.object({
|
|
4153
4116
|
id: zod.string(),
|
|
@@ -4900,14 +4863,6 @@ server.tool(
|
|
|
4900
4863
|
},
|
|
4901
4864
|
getExtractorJobHandler
|
|
4902
4865
|
);
|
|
4903
|
-
server.tool(
|
|
4904
|
-
"cancelExtractorJob",
|
|
4905
|
-
"Cancel extractor job (deprecated)",
|
|
4906
|
-
{
|
|
4907
|
-
pathParams: CancelExtractorJobParams
|
|
4908
|
-
},
|
|
4909
|
-
cancelExtractorJobHandler
|
|
4910
|
-
);
|
|
4911
4866
|
server.tool(
|
|
4912
4867
|
"updateExtractorJobScope",
|
|
4913
4868
|
"Update extractor job scope (deprecated)",
|
|
@@ -5187,4 +5142,4 @@ var transport = new StdioServerTransport();
|
|
|
5187
5142
|
server.connect(transport).then(() => {
|
|
5188
5143
|
console.error("MCP server running on stdio");
|
|
5189
5144
|
}).catch(console.error);
|
|
5190
|
-
//# sourceMappingURL=server-
|
|
5145
|
+
//# sourceMappingURL=server-NQ2JD2QW.js.map
|