@avallon-labs/mcp 27.5.0-staging.779 → 27.7.0-staging.781

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-EBZUU63J.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]) => {
@@ -1801,6 +1817,22 @@ var updateChatAgent = async (chatAgentId, updateChatAgentRequest, options) => {
1801
1817
  headers: res.headers
1802
1818
  };
1803
1819
  };
1820
+ var getDeleteChatAgentUrl = (chatAgentId) => {
1821
+ return `/v1/chat-agents/${chatAgentId}`;
1822
+ };
1823
+ var deleteChatAgent = async (chatAgentId, options) => {
1824
+ const res = await fetch(getDeleteChatAgentUrl(chatAgentId), {
1825
+ ...options,
1826
+ method: "DELETE"
1827
+ });
1828
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1829
+ const data = body ? JSON.parse(body) : {};
1830
+ return {
1831
+ data,
1832
+ status: res.status,
1833
+ headers: res.headers
1834
+ };
1835
+ };
1804
1836
  var getGetChatAgentPromptUrl = (chatAgentId) => {
1805
1837
  return `/v1/chat-agents/${chatAgentId}/prompt`;
1806
1838
  };
@@ -3055,6 +3087,17 @@ var getEmailHandler = async (args) => {
3055
3087
  ]
3056
3088
  };
3057
3089
  };
3090
+ var deleteEmailHandler = async (args) => {
3091
+ const res = await deleteEmail(args.pathParams.emailId);
3092
+ return {
3093
+ content: [
3094
+ {
3095
+ type: "text",
3096
+ text: JSON.stringify(res)
3097
+ }
3098
+ ]
3099
+ };
3100
+ };
3058
3101
  var listEmailThreadsHandler = async (args) => {
3059
3102
  const res = await listEmailThreads(args.queryParams);
3060
3103
  return {
@@ -3433,6 +3476,17 @@ var updateChatAgentHandler = async (args) => {
3433
3476
  ]
3434
3477
  };
3435
3478
  };
3479
+ var deleteChatAgentHandler = async (args) => {
3480
+ const res = await deleteChatAgent(args.pathParams.chatAgentId);
3481
+ return {
3482
+ content: [
3483
+ {
3484
+ type: "text",
3485
+ text: JSON.stringify(res)
3486
+ }
3487
+ ]
3488
+ };
3489
+ };
3436
3490
  var getChatAgentPromptHandler = async (args) => {
3437
3491
  const res = await getChatAgentPrompt(args.pathParams.chatAgentId);
3438
3492
  return {
@@ -5851,6 +5905,10 @@ var GetEmailResponse = zod.object({
5851
5905
  received_at: zod.string(),
5852
5906
  created_at: zod.string().datetime({})
5853
5907
  });
5908
+ var DeleteEmailParams = zod.object({
5909
+ emailId: zod.string().min(1)
5910
+ });
5911
+ var DeleteEmailResponse = zod.object({});
5854
5912
  var listEmailThreadsQueryCountDefault = 50;
5855
5913
  var listEmailThreadsQueryCountMax = 100;
5856
5914
  var listEmailThreadsQueryOffsetDefault = 0;
@@ -6487,6 +6545,10 @@ var UpdateChatAgentResponse = zod.object({
6487
6545
  created_at: zod.string().datetime({}),
6488
6546
  updated_at: zod.string().datetime({})
6489
6547
  });
6548
+ var DeleteChatAgentParams = zod.object({
6549
+ chatAgentId: zod.string().uuid()
6550
+ });
6551
+ var DeleteChatAgentResponse = zod.object({});
6490
6552
  var GetChatAgentPromptParams = zod.object({
6491
6553
  chatAgentId: zod.string().uuid()
6492
6554
  });
@@ -7601,6 +7663,14 @@ server.tool(
7601
7663
  },
7602
7664
  getEmailHandler
7603
7665
  );
7666
+ server.tool(
7667
+ "deleteEmail",
7668
+ "Delete email",
7669
+ {
7670
+ pathParams: DeleteEmailParams
7671
+ },
7672
+ deleteEmailHandler
7673
+ );
7604
7674
  server.tool(
7605
7675
  "listEmailThreads",
7606
7676
  "List email threads",
@@ -7873,6 +7943,14 @@ server.tool(
7873
7943
  },
7874
7944
  updateChatAgentHandler
7875
7945
  );
7946
+ server.tool(
7947
+ "deleteChatAgent",
7948
+ "Delete chat agent",
7949
+ {
7950
+ pathParams: DeleteChatAgentParams
7951
+ },
7952
+ deleteChatAgentHandler
7953
+ );
7876
7954
  server.tool(
7877
7955
  "getChatAgentPrompt",
7878
7956
  "Get chat agent prompt",
@@ -8139,4 +8217,4 @@ var transport = new StdioServerTransport();
8139
8217
  server.connect(transport).then(() => {
8140
8218
  console.error("MCP server running on stdio");
8141
8219
  }).catch(console.error);
8142
- //# sourceMappingURL=server-6GQVMXJU.js.map
8220
+ //# sourceMappingURL=server-EBZUU63J.js.map