@avallon-labs/mcp 27.5.0-staging.779 → 27.6.0-staging.780

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-6GQVMXJU.js");
57
+ await import("./server-U62TTJ4P.js");
58
58
  //# sourceMappingURL=index.js.map
@@ -1134,6 +1134,22 @@ var getEmail = async (emailId, options) => {
1134
1134
  const data = body ? JSON.parse(body) : {};
1135
1135
  return { data, status: res.status, headers: res.headers };
1136
1136
  };
1137
+ var getDeleteEmailUrl = (emailId) => {
1138
+ return `/v1/emails/${emailId}`;
1139
+ };
1140
+ var deleteEmail = async (emailId, options) => {
1141
+ const res = await fetch(getDeleteEmailUrl(emailId), {
1142
+ ...options,
1143
+ method: "DELETE"
1144
+ });
1145
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1146
+ const data = body ? JSON.parse(body) : {};
1147
+ return {
1148
+ data,
1149
+ status: res.status,
1150
+ headers: res.headers
1151
+ };
1152
+ };
1137
1153
  var getListEmailThreadsUrl = (params) => {
1138
1154
  const normalizedParams = new URLSearchParams();
1139
1155
  Object.entries(params || {}).forEach(([key, value]) => {
@@ -3055,6 +3071,17 @@ var getEmailHandler = async (args) => {
3055
3071
  ]
3056
3072
  };
3057
3073
  };
3074
+ var deleteEmailHandler = async (args) => {
3075
+ const res = await deleteEmail(args.pathParams.emailId);
3076
+ return {
3077
+ content: [
3078
+ {
3079
+ type: "text",
3080
+ text: JSON.stringify(res)
3081
+ }
3082
+ ]
3083
+ };
3084
+ };
3058
3085
  var listEmailThreadsHandler = async (args) => {
3059
3086
  const res = await listEmailThreads(args.queryParams);
3060
3087
  return {
@@ -5851,6 +5878,10 @@ var GetEmailResponse = zod.object({
5851
5878
  received_at: zod.string(),
5852
5879
  created_at: zod.string().datetime({})
5853
5880
  });
5881
+ var DeleteEmailParams = zod.object({
5882
+ emailId: zod.string().min(1)
5883
+ });
5884
+ var DeleteEmailResponse = zod.object({});
5854
5885
  var listEmailThreadsQueryCountDefault = 50;
5855
5886
  var listEmailThreadsQueryCountMax = 100;
5856
5887
  var listEmailThreadsQueryOffsetDefault = 0;
@@ -7601,6 +7632,14 @@ server.tool(
7601
7632
  },
7602
7633
  getEmailHandler
7603
7634
  );
7635
+ server.tool(
7636
+ "deleteEmail",
7637
+ "Delete email",
7638
+ {
7639
+ pathParams: DeleteEmailParams
7640
+ },
7641
+ deleteEmailHandler
7642
+ );
7604
7643
  server.tool(
7605
7644
  "listEmailThreads",
7606
7645
  "List email threads",
@@ -8139,4 +8178,4 @@ var transport = new StdioServerTransport();
8139
8178
  server.connect(transport).then(() => {
8140
8179
  console.error("MCP server running on stdio");
8141
8180
  }).catch(console.error);
8142
- //# sourceMappingURL=server-6GQVMXJU.js.map
8181
+ //# sourceMappingURL=server-U62TTJ4P.js.map