@avallon-labs/mcp 23.15.0 → 23.17.0-staging.569

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
@@ -54,5 +54,5 @@ function setupFetch() {
54
54
 
55
55
  // src/index.ts
56
56
  setupFetch();
57
- await import("./server-DJQYJGOT.js");
57
+ await import("./server-MMTKAAEP.js");
58
58
  //# sourceMappingURL=index.js.map
@@ -131,6 +131,25 @@ var getVoiceAgentVersion = async (voiceAgentId, version, options) => {
131
131
  headers: res.headers
132
132
  };
133
133
  };
134
+ var getGetVoiceAgentVersionChangeSummaryUrl = (voiceAgentId, version) => {
135
+ return `/v1/voice-agents/${voiceAgentId}/versions/${version}/change-summary`;
136
+ };
137
+ var getVoiceAgentVersionChangeSummary = async (voiceAgentId, version, options) => {
138
+ const res = await fetch(
139
+ getGetVoiceAgentVersionChangeSummaryUrl(voiceAgentId, version),
140
+ {
141
+ ...options,
142
+ method: "GET"
143
+ }
144
+ );
145
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
146
+ const data = body ? JSON.parse(body) : {};
147
+ return {
148
+ data,
149
+ status: res.status,
150
+ headers: res.headers
151
+ };
152
+ };
134
153
  var getAddToolsToVoiceAgentUrl = (voiceAgentId) => {
135
154
  return `/v1/voice-agents/${voiceAgentId}/tools`;
136
155
  };
@@ -2265,6 +2284,20 @@ var getVoiceAgentVersionHandler = async (args) => {
2265
2284
  ]
2266
2285
  };
2267
2286
  };
2287
+ var getVoiceAgentVersionChangeSummaryHandler = async (args) => {
2288
+ const res = await getVoiceAgentVersionChangeSummary(
2289
+ args.pathParams.voiceAgentId,
2290
+ args.pathParams.version
2291
+ );
2292
+ return {
2293
+ content: [
2294
+ {
2295
+ type: "text",
2296
+ text: JSON.stringify(res)
2297
+ }
2298
+ ]
2299
+ };
2300
+ };
2268
2301
  var addToolsToVoiceAgentHandler = async (args) => {
2269
2302
  const res = await addToolsToVoiceAgent(
2270
2303
  args.pathParams.voiceAgentId,
@@ -4013,6 +4046,15 @@ var GetVoiceAgentVersionResponse = zod.object({
4013
4046
  "Voice agent config field names (matching the keys on the voice agent response) whose values differ from the previous version. Empty for version 1."
4014
4047
  )
4015
4048
  });
4049
+ var GetVoiceAgentVersionChangeSummaryParams = zod.object({
4050
+ voiceAgentId: zod.string().uuid(),
4051
+ version: zod.number()
4052
+ });
4053
+ var GetVoiceAgentVersionChangeSummaryResponse = zod.object({
4054
+ summary: zod.string().describe(
4055
+ "AI-generated summary of what changed between this version and the previous one. Empty string when there is no previous version (version 1)."
4056
+ )
4057
+ });
4016
4058
  var AddToolsToVoiceAgentParams = zod.object({
4017
4059
  voiceAgentId: zod.string().uuid()
4018
4060
  });
@@ -5400,12 +5442,25 @@ var ListEmailThreadsResponse = zod.array(ListEmailThreadsResponseItem);
5400
5442
  var ReplyToEmailParams = zod.object({
5401
5443
  emailId: zod.string().min(1)
5402
5444
  });
5445
+ var replyToEmailBodyAttachmentsItemFilenameMax = 255;
5446
+ var replyToEmailBodyAttachmentsItemContentTypeMax = 255;
5447
+ var replyToEmailBodyAttachmentsMax = 10;
5403
5448
  var ReplyToEmailBody = zod.object({
5404
- body_text: zod.string().min(1)
5449
+ body_text: zod.string().min(1),
5450
+ attachments: zod.array(
5451
+ zod.object({
5452
+ filename: zod.string().min(1).max(replyToEmailBodyAttachmentsItemFilenameMax),
5453
+ content_type: zod.string().min(1).max(replyToEmailBodyAttachmentsItemContentTypeMax),
5454
+ content_base64: zod.string().min(1)
5455
+ })
5456
+ ).max(replyToEmailBodyAttachmentsMax).optional()
5405
5457
  });
5406
5458
  var ReplyToEmailResponse = zod.object({
5407
5459
  sent: zod.boolean()
5408
5460
  });
5461
+ var sendEmailBodyAttachmentsItemFilenameMax = 255;
5462
+ var sendEmailBodyAttachmentsItemContentTypeMax = 255;
5463
+ var sendEmailBodyAttachmentsMax = 10;
5409
5464
  var SendEmailBody = zod.object({
5410
5465
  inbox_id: zod.string().min(1),
5411
5466
  to: zod.array(zod.string().email()).min(1),
@@ -5413,7 +5468,14 @@ var SendEmailBody = zod.object({
5413
5468
  bcc: zod.array(zod.string().email()).optional(),
5414
5469
  subject: zod.string().min(1),
5415
5470
  body_text: zod.string().min(1),
5416
- claim_id: zod.string().min(1).optional()
5471
+ claim_id: zod.string().min(1).optional(),
5472
+ attachments: zod.array(
5473
+ zod.object({
5474
+ filename: zod.string().min(1).max(sendEmailBodyAttachmentsItemFilenameMax),
5475
+ content_type: zod.string().min(1).max(sendEmailBodyAttachmentsItemContentTypeMax),
5476
+ content_base64: zod.string().min(1)
5477
+ })
5478
+ ).max(sendEmailBodyAttachmentsMax).optional()
5417
5479
  });
5418
5480
  var SendEmailResponse = zod.object({
5419
5481
  email_id: zod.string(),
@@ -6621,6 +6683,14 @@ server.tool(
6621
6683
  },
6622
6684
  getVoiceAgentVersionHandler
6623
6685
  );
6686
+ server.tool(
6687
+ "getVoiceAgentVersionChangeSummary",
6688
+ "Get voice agent version change summary",
6689
+ {
6690
+ pathParams: GetVoiceAgentVersionChangeSummaryParams
6691
+ },
6692
+ getVoiceAgentVersionChangeSummaryHandler
6693
+ );
6624
6694
  server.tool(
6625
6695
  "addToolsToVoiceAgent",
6626
6696
  "Add tools to voice agent",
@@ -7452,4 +7522,4 @@ var transport = new StdioServerTransport();
7452
7522
  server.connect(transport).then(() => {
7453
7523
  console.error("MCP server running on stdio");
7454
7524
  }).catch(console.error);
7455
- //# sourceMappingURL=server-DJQYJGOT.js.map
7525
+ //# sourceMappingURL=server-MMTKAAEP.js.map