@avallon-labs/mcp 54.6.0-staging.1253 → 54.7.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/dist/index.js
CHANGED
|
@@ -3101,6 +3101,21 @@ var getInformationRequest = async (informationRequestId, options) => {
|
|
|
3101
3101
|
const data = body ? JSON.parse(body) : {};
|
|
3102
3102
|
return { data, status: res.status, headers: res.headers };
|
|
3103
3103
|
};
|
|
3104
|
+
var getDeleteInformationRequestUrl = (informationRequestId) => {
|
|
3105
|
+
return `/v1/information-requests/${informationRequestId}`;
|
|
3106
|
+
};
|
|
3107
|
+
var deleteInformationRequest = async (informationRequestId, options) => {
|
|
3108
|
+
const res = await fetch(
|
|
3109
|
+
getDeleteInformationRequestUrl(informationRequestId),
|
|
3110
|
+
{
|
|
3111
|
+
...options,
|
|
3112
|
+
method: "DELETE"
|
|
3113
|
+
}
|
|
3114
|
+
);
|
|
3115
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
3116
|
+
const data = body ? JSON.parse(body) : {};
|
|
3117
|
+
return { data, status: res.status, headers: res.headers };
|
|
3118
|
+
};
|
|
3104
3119
|
var getResolveInformationRequestUrl = (informationRequestId) => {
|
|
3105
3120
|
return `/v1/information-requests/${informationRequestId}/resolve`;
|
|
3106
3121
|
};
|
|
@@ -7179,6 +7194,29 @@ var getInformationRequestHandler = async (args, options) => {
|
|
|
7179
7194
|
structuredContent: res.data
|
|
7180
7195
|
};
|
|
7181
7196
|
};
|
|
7197
|
+
var deleteInformationRequestHandler = async (args, options) => {
|
|
7198
|
+
const res = await deleteInformationRequest(args.pathParams.informationRequestId, options);
|
|
7199
|
+
if (res.status >= 400) {
|
|
7200
|
+
return {
|
|
7201
|
+
content: [
|
|
7202
|
+
{
|
|
7203
|
+
type: "text",
|
|
7204
|
+
text: JSON.stringify(res.data ?? null)
|
|
7205
|
+
}
|
|
7206
|
+
],
|
|
7207
|
+
isError: true
|
|
7208
|
+
};
|
|
7209
|
+
}
|
|
7210
|
+
return {
|
|
7211
|
+
content: [
|
|
7212
|
+
{
|
|
7213
|
+
type: "text",
|
|
7214
|
+
text: JSON.stringify(res.data ?? null)
|
|
7215
|
+
}
|
|
7216
|
+
],
|
|
7217
|
+
structuredContent: res.data
|
|
7218
|
+
};
|
|
7219
|
+
};
|
|
7182
7220
|
var resolveInformationRequestHandler = async (args, options) => {
|
|
7183
7221
|
const res = await resolveInformationRequest(args.pathParams.informationRequestId, args.bodyParams, options);
|
|
7184
7222
|
if (res.status >= 400) {
|
|
@@ -11393,7 +11431,7 @@ var GetProfileResponse = zod.object({
|
|
|
11393
11431
|
"last_name": zod.union([zod.string(), zod.null()]),
|
|
11394
11432
|
"email": zod.string(),
|
|
11395
11433
|
"role": zod.enum(["admin", "avallon_admin", "member"]),
|
|
11396
|
-
"permissions": zod.array(zod.enum(["voice-agents:write", "voice-agents:promote", "tools:write", "tools:execute", "tools:promote", "extractors:write", "inboxes:write", "inboxes:send", "artifacts:write", "api-keys:write", "teams:write", "cases:write", "cases:delete", "information-requests:write", "information-requests:resolve", "feedback:write", "outbound-jobs:write", "outbound-jobs:schedule", "calls:monitor", "workers:read", "workers:create", "workers:write", "workers:execute", "workers:write-mcp", "workers:run", "workers:promote", "chat-agents:write", "notifications:write", "prompts:read", "prompts:write", "secrets:read", "secrets:write", "schedules:read", "schedules:write", "tenants:write"])),
|
|
11434
|
+
"permissions": zod.array(zod.enum(["voice-agents:write", "voice-agents:promote", "tools:write", "tools:execute", "tools:promote", "extractors:write", "inboxes:write", "inboxes:send", "artifacts:write", "api-keys:write", "teams:write", "cases:write", "cases:delete", "information-requests:write", "information-requests:resolve", "information-requests:delete", "feedback:write", "outbound-jobs:write", "outbound-jobs:schedule", "calls:monitor", "workers:read", "workers:create", "workers:write", "workers:execute", "workers:write-mcp", "workers:run", "workers:promote", "chat-agents:write", "notifications:write", "prompts:read", "prompts:write", "secrets:read", "secrets:write", "schedules:read", "schedules:write", "tenants:write"])),
|
|
11397
11435
|
"tenants": zod.object({
|
|
11398
11436
|
"active": zod.object({
|
|
11399
11437
|
"id": zod.string(),
|
|
@@ -12031,6 +12069,13 @@ var GetInformationRequestResponse = zod.object({
|
|
|
12031
12069
|
}),
|
|
12032
12070
|
"message": zod.string()
|
|
12033
12071
|
});
|
|
12072
|
+
var DeleteInformationRequestParams = zod.object({
|
|
12073
|
+
"informationRequestId": zod.string().uuid()
|
|
12074
|
+
});
|
|
12075
|
+
var DeleteInformationRequestResponse = zod.object({
|
|
12076
|
+
"data": zod.object({}),
|
|
12077
|
+
"message": zod.string()
|
|
12078
|
+
});
|
|
12034
12079
|
var ResolveInformationRequestParams = zod.object({
|
|
12035
12080
|
"informationRequestId": zod.string().uuid()
|
|
12036
12081
|
});
|
|
@@ -15237,6 +15282,22 @@ var createMcpServer = (options) => {
|
|
|
15237
15282
|
signal: options?.signal ? AbortSignal.any([options.signal, ctx.signal]) : ctx.signal
|
|
15238
15283
|
})
|
|
15239
15284
|
);
|
|
15285
|
+
tools.deleteInformationRequest = server2.registerTool(
|
|
15286
|
+
"deleteInformationRequest",
|
|
15287
|
+
{
|
|
15288
|
+
title: "Delete information request",
|
|
15289
|
+
description: "Delete an information request, open or resolved..",
|
|
15290
|
+
inputSchema: {
|
|
15291
|
+
pathParams: DeleteInformationRequestParams
|
|
15292
|
+
},
|
|
15293
|
+
outputSchema: DeleteInformationRequestResponse,
|
|
15294
|
+
annotations: { destructiveHint: true, idempotentHint: true }
|
|
15295
|
+
},
|
|
15296
|
+
(args, ctx) => deleteInformationRequestHandler(args, {
|
|
15297
|
+
...options,
|
|
15298
|
+
signal: options?.signal ? AbortSignal.any([options.signal, ctx.signal]) : ctx.signal
|
|
15299
|
+
})
|
|
15300
|
+
);
|
|
15240
15301
|
tools.resolveInformationRequest = server2.registerTool(
|
|
15241
15302
|
"resolveInformationRequest",
|
|
15242
15303
|
{
|
|
@@ -15723,4 +15784,4 @@ var transport = new StdioServerTransport();
|
|
|
15723
15784
|
server.connect(transport).then(() => {
|
|
15724
15785
|
console.error("MCP server running on stdio");
|
|
15725
15786
|
}).catch(console.error);
|
|
15726
|
-
//# sourceMappingURL=server-
|
|
15787
|
+
//# sourceMappingURL=server-DKJW6HMW.js.map
|