agentmail-toolkit 0.1.31 → 0.1.32
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/package.json +1 -1
- package/dist/ai-sdk.d.mts +0 -10
- package/dist/ai-sdk.mjs +0 -18
- package/dist/ai-sdk.mjs.map +0 -1
- package/dist/chunk-2QQE6LPN.mjs +0 -38
- package/dist/chunk-2QQE6LPN.mjs.map +0 -1
- package/dist/chunk-3TR24M4E.mjs +0 -29
- package/dist/chunk-3TR24M4E.mjs.map +0 -1
- package/dist/chunk-4F4JVYOE.mjs +0 -40
- package/dist/chunk-4F4JVYOE.mjs.map +0 -1
- package/dist/chunk-4RC3NT5Y.mjs +0 -71
- package/dist/chunk-4RC3NT5Y.mjs.map +0 -1
- package/dist/chunk-67YFXNRI.js +0 -225
- package/dist/chunk-67YFXNRI.js.map +0 -1
- package/dist/chunk-CIU3KR25.mjs +0 -117
- package/dist/chunk-CIU3KR25.mjs.map +0 -1
- package/dist/chunk-DNXRYZOH.mjs +0 -129
- package/dist/chunk-DNXRYZOH.mjs.map +0 -1
- package/dist/chunk-EZFSHUCP.mjs +0 -71
- package/dist/chunk-EZFSHUCP.mjs.map +0 -1
- package/dist/chunk-F4J6RGW4.mjs +0 -231
- package/dist/chunk-F4J6RGW4.mjs.map +0 -1
- package/dist/chunk-GWFZG2RN.mjs +0 -117
- package/dist/chunk-GWFZG2RN.mjs.map +0 -1
- package/dist/chunk-GZAAHMW6.mjs +0 -145
- package/dist/chunk-GZAAHMW6.mjs.map +0 -1
- package/dist/chunk-H3V5ORVZ.mjs +0 -40
- package/dist/chunk-H3V5ORVZ.mjs.map +0 -1
- package/dist/chunk-HKK5SMM3.mjs +0 -197
- package/dist/chunk-HKK5SMM3.mjs.map +0 -1
- package/dist/chunk-IDOYVQL3.mjs +0 -176
- package/dist/chunk-IDOYVQL3.mjs.map +0 -1
- package/dist/chunk-J3WQCRO3.mjs +0 -226
- package/dist/chunk-J3WQCRO3.mjs.map +0 -1
- package/dist/chunk-NXBM2DQE.mjs +0 -226
- package/dist/chunk-NXBM2DQE.mjs.map +0 -1
- package/dist/chunk-ODPS3RJ3.mjs +0 -71
- package/dist/chunk-ODPS3RJ3.mjs.map +0 -1
- package/dist/chunk-QBOE34GE.mjs +0 -129
- package/dist/chunk-QBOE34GE.mjs.map +0 -1
- package/dist/chunk-SSOWB3VC.js +0 -225
- package/dist/chunk-SSOWB3VC.js.map +0 -1
- package/dist/chunk-UCWHGUXO.mjs +0 -38
- package/dist/chunk-UCWHGUXO.mjs.map +0 -1
- package/dist/chunk-UODX72KA.mjs +0 -40
- package/dist/chunk-UODX72KA.mjs.map +0 -1
- package/dist/chunk-VI3J3SMQ.mjs +0 -71
- package/dist/chunk-VI3J3SMQ.mjs.map +0 -1
- package/dist/chunk-VRB6MXGP.mjs +0 -203
- package/dist/chunk-VRB6MXGP.mjs.map +0 -1
- package/dist/chunk-W2LJOBDV.mjs +0 -71
- package/dist/chunk-W2LJOBDV.mjs.map +0 -1
- package/dist/chunk-WEXYSRNX.mjs +0 -40
- package/dist/chunk-WEXYSRNX.mjs.map +0 -1
- package/dist/chunk-XAJA2AYA.mjs +0 -31
- package/dist/chunk-XAJA2AYA.mjs.map +0 -1
- package/dist/chunk-ZRECFCU2.mjs +0 -137
- package/dist/chunk-ZRECFCU2.mjs.map +0 -1
- package/dist/index.d.mts +0 -20
- package/dist/index.mjs +0 -19
- package/dist/index.mjs.map +0 -1
- package/dist/langchain.d.mts +0 -10
- package/dist/langchain.mjs +0 -19
- package/dist/langchain.mjs.map +0 -1
- package/dist/mcp.d.mts +0 -16
- package/dist/mcp.mjs +0 -22
- package/dist/mcp.mjs.map +0 -1
- package/dist/toolkit-3F468CU6.d.ts +0 -26
- package/dist/toolkit-B8QHBdtC.d.mts +0 -33
- package/dist/toolkit-B8QHBdtC.d.ts +0 -33
- package/dist/toolkit-BLAprE02.d.mts +0 -26
- package/dist/toolkit-BMavPn6k.d.mts +0 -27
- package/dist/toolkit-BkuqrcT_.d.mts +0 -29
- package/dist/toolkit-BkuqrcT_.d.ts +0 -29
- package/dist/toolkit-Cbpp0Kix.d.ts +0 -27
- package/dist/toolkit-DZBT1-DW.d.cts +0 -26
- package/dist/toolkit-DZBT1-DW.d.ts +0 -26
- package/dist/toolkit-DZJYuMdN.d.mts +0 -33
- package/dist/toolkit-DZJYuMdN.d.ts +0 -33
- package/dist/toolkit-Dc7siZcx.d.ts +0 -24
- package/dist/toolkit-DicBg_sN.d.mts +0 -30
- package/dist/toolkit-DicBg_sN.d.ts +0 -30
- package/dist/toolkit-DtDXApKD.d.mts +0 -24
- package/dist/toolkit-oWNeOd1D.d.mts +0 -31
- package/dist/toolkit-oWNeOd1D.d.ts +0 -31
- package/dist/tools-DFoMkoW0.d.mts +0 -11
- package/dist/tools-DFoMkoW0.d.ts +0 -11
- package/dist/tools-Dzp_FZN_.d.mts +0 -11
- package/dist/tools-Dzp_FZN_.d.ts +0 -11
package/dist/chunk-GZAAHMW6.mjs
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
// src/wrapper.ts
|
|
2
|
-
import { AgentMailClient } from "agentmail";
|
|
3
|
-
var Wrapper = class {
|
|
4
|
-
constructor(client) {
|
|
5
|
-
this.client = client;
|
|
6
|
-
if (!this.client) this.client = new AgentMailClient();
|
|
7
|
-
}
|
|
8
|
-
async callMethod(method, args) {
|
|
9
|
-
const parts = method.split(".");
|
|
10
|
-
const methodKey = parts.pop();
|
|
11
|
-
if (!methodKey) throw new Error("Method name empty");
|
|
12
|
-
let parent = this.client;
|
|
13
|
-
for (const part of parts) parent = parent[part];
|
|
14
|
-
return await parent[methodKey].call(parent, args);
|
|
15
|
-
}
|
|
16
|
-
async callMethodAndStringify(method, args) {
|
|
17
|
-
try {
|
|
18
|
-
const result = await this.callMethod(method, args);
|
|
19
|
-
return JSON.stringify(result, null, 2);
|
|
20
|
-
} catch (error) {
|
|
21
|
-
return JSON.stringify(error, null, 2);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
// src/schemas.ts
|
|
27
|
-
import { z } from "zod";
|
|
28
|
-
var ListItemsParams = z.object({
|
|
29
|
-
limit: z.number().optional().describe("The maximum number of items to return"),
|
|
30
|
-
last_key: z.string().optional().describe("The last key to use for pagination")
|
|
31
|
-
});
|
|
32
|
-
var GetInboxParams = z.object({
|
|
33
|
-
inbox_id: z.string().describe("The ID of the inbox to get")
|
|
34
|
-
});
|
|
35
|
-
var CreateInboxParams = z.object({
|
|
36
|
-
username: z.string().optional().describe("The username of the inbox to create"),
|
|
37
|
-
domain: z.string().optional().describe("The domain of the inbox to create"),
|
|
38
|
-
display_name: z.string().optional().describe("The display name of the inbox to create")
|
|
39
|
-
});
|
|
40
|
-
var ListThreadsParams = ListItemsParams.extend({
|
|
41
|
-
inbox_id: z.string().describe("The ID of the inbox to list threads for"),
|
|
42
|
-
labels: z.array(z.string()).optional().describe("The labels to filter threads by")
|
|
43
|
-
});
|
|
44
|
-
var GetThreadParams = z.object({
|
|
45
|
-
inbox_id: z.string().describe("The ID of the inbox to get the thread for"),
|
|
46
|
-
thread_id: z.string().describe("The ID of the thread to get")
|
|
47
|
-
});
|
|
48
|
-
var ListMessagesParams = ListItemsParams.extend({
|
|
49
|
-
inbox_id: z.string().describe("The ID of the inbox to list messages for"),
|
|
50
|
-
labels: z.array(z.string()).optional().describe("The labels to filter messages by")
|
|
51
|
-
});
|
|
52
|
-
var GetMessageParams = z.object({
|
|
53
|
-
inbox_id: z.string().describe("The ID of the inbox to get the message for"),
|
|
54
|
-
message_id: z.string().describe("The ID of the message to get")
|
|
55
|
-
});
|
|
56
|
-
var GetAttachmentParams = z.object({
|
|
57
|
-
inbox_id: z.string().describe("The ID of the inbox to get the attachment for"),
|
|
58
|
-
message_id: z.string().describe("The ID of the message to get the attachment for"),
|
|
59
|
-
attachment_id: z.string().describe("The ID of the attachment to get")
|
|
60
|
-
});
|
|
61
|
-
var SendMessageParams = z.object({
|
|
62
|
-
inbox_id: z.string().describe("The ID of the inbox to send the message from"),
|
|
63
|
-
to: z.array(z.string()).describe("The list of recipients"),
|
|
64
|
-
cc: z.array(z.string()).optional().describe("The list of CC recipients"),
|
|
65
|
-
bcc: z.array(z.string()).optional().describe("The list of BCC recipients"),
|
|
66
|
-
subject: z.string().optional().describe("The subject of the message"),
|
|
67
|
-
text: z.string().optional().describe("The plain text body of the message"),
|
|
68
|
-
html: z.string().optional().describe("The HTML body of the message")
|
|
69
|
-
});
|
|
70
|
-
var ReplyToMessageParams = z.object({
|
|
71
|
-
inbox_id: z.string().describe("The inbox ID of the inbox to reply to the message from"),
|
|
72
|
-
message_id: z.string().describe("The message ID of the message you wish to reply to"),
|
|
73
|
-
text: z.string().optional().describe("The plain text body of the reply"),
|
|
74
|
-
html: z.string().optional().describe("The HTML body of the reply")
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
// src/tools.ts
|
|
78
|
-
var tools = [
|
|
79
|
-
{
|
|
80
|
-
name: "list_inboxes",
|
|
81
|
-
method: "inboxes.list",
|
|
82
|
-
description: "List all inboxes",
|
|
83
|
-
schema: ListItemsParams
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
name: "get_inbox",
|
|
87
|
-
method: "inboxes.get",
|
|
88
|
-
description: "Get an inbox by ID",
|
|
89
|
-
schema: GetInboxParams
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
name: "create_inbox",
|
|
93
|
-
method: "inboxes.create",
|
|
94
|
-
description: "Create a new inbox",
|
|
95
|
-
schema: CreateInboxParams
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
name: "list_threads",
|
|
99
|
-
method: "threads.list",
|
|
100
|
-
description: "List all threads",
|
|
101
|
-
schema: ListThreadsParams
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
name: "get_thread",
|
|
105
|
-
method: "threads.get",
|
|
106
|
-
description: "Get a thread by ID",
|
|
107
|
-
schema: GetThreadParams
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
name: "list_messages",
|
|
111
|
-
method: "messages.list",
|
|
112
|
-
description: "List all messages",
|
|
113
|
-
schema: ListMessagesParams
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
name: "get_message",
|
|
117
|
-
method: "messages.get",
|
|
118
|
-
description: "Get a message by ID",
|
|
119
|
-
schema: GetMessageParams
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
name: "get_attachment",
|
|
123
|
-
method: "attachments.get",
|
|
124
|
-
description: "Get an attachment by ID",
|
|
125
|
-
schema: GetAttachmentParams
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
name: "send_message",
|
|
129
|
-
method: "messages.send",
|
|
130
|
-
description: "Send a message",
|
|
131
|
-
schema: SendMessageParams
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
name: "reply_to_message",
|
|
135
|
-
method: "messages.reply",
|
|
136
|
-
description: "Reply to a message",
|
|
137
|
-
schema: ReplyToMessageParams
|
|
138
|
-
}
|
|
139
|
-
];
|
|
140
|
-
|
|
141
|
-
export {
|
|
142
|
-
Wrapper,
|
|
143
|
-
tools
|
|
144
|
-
};
|
|
145
|
-
//# sourceMappingURL=chunk-GZAAHMW6.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/wrapper.ts","../src/schemas.ts","../src/tools.ts"],"sourcesContent":["import { AgentMailClient } from 'agentmail'\n\nexport class Wrapper {\n constructor(private readonly client?: AgentMailClient) {\n if (!this.client) this.client = new AgentMailClient()\n }\n\n public async callMethod(method: string, args: unknown) {\n const parts = method.split('.')\n const methodKey = parts.pop()\n\n if (!methodKey) throw new Error('Method name empty')\n\n let parent: any = this.client\n for (const part of parts) parent = parent[part]\n\n return await parent[methodKey].call(parent, args)\n }\n\n public async callMethodAndStringify(method: string, args: unknown) {\n try {\n const result = await this.callMethod(method, args)\n return JSON.stringify(result, null, 2)\n } catch (error) {\n return JSON.stringify(error, null, 2)\n }\n }\n}\n","import { z } from 'zod'\n\nexport const ListItemsParams = z.object({\n limit: z.number().optional().describe('The maximum number of items to return'),\n last_key: z.string().optional().describe('The last key to use for pagination'),\n})\n\nexport const GetInboxParams = z.object({\n inbox_id: z.string().describe('The ID of the inbox to get'),\n})\n\nexport const CreateInboxParams = z.object({\n username: z.string().optional().describe('The username of the inbox to create'),\n domain: z.string().optional().describe('The domain of the inbox to create'),\n display_name: z.string().optional().describe('The display name of the inbox to create'),\n})\n\nexport const ListThreadsParams = ListItemsParams.extend({\n inbox_id: z.string().describe('The ID of the inbox to list threads for'),\n labels: z.array(z.string()).optional().describe('The labels to filter threads by'),\n})\n\nexport const GetThreadParams = z.object({\n inbox_id: z.string().describe('The ID of the inbox to get the thread for'),\n thread_id: z.string().describe('The ID of the thread to get'),\n})\n\nexport const ListMessagesParams = ListItemsParams.extend({\n inbox_id: z.string().describe('The ID of the inbox to list messages for'),\n labels: z.array(z.string()).optional().describe('The labels to filter messages by'),\n})\n\nexport const GetMessageParams = z.object({\n inbox_id: z.string().describe('The ID of the inbox to get the message for'),\n message_id: z.string().describe('The ID of the message to get'),\n})\n\nexport const GetAttachmentParams = z.object({\n inbox_id: z.string().describe('The ID of the inbox to get the attachment for'),\n message_id: z.string().describe('The ID of the message to get the attachment for'),\n attachment_id: z.string().describe('The ID of the attachment to get'),\n})\n\nexport const SendMessageParams = z.object({\n inbox_id: z.string().describe('The ID of the inbox to send the message from'),\n to: z.array(z.string()).describe('The list of recipients'),\n cc: z.array(z.string()).optional().describe('The list of CC recipients'),\n bcc: z.array(z.string()).optional().describe('The list of BCC recipients'),\n subject: z.string().optional().describe('The subject of the message'),\n text: z.string().optional().describe('The plain text body of the message'),\n html: z.string().optional().describe('The HTML body of the message'),\n})\n\nexport const ReplyToMessageParams = z.object({\n inbox_id: z.string().describe('The inbox ID of the inbox to reply to the message from'),\n message_id: z.string().describe('The message ID of the message you wish to reply to'),\n text: z.string().optional().describe('The plain text body of the reply'),\n html: z.string().optional().describe('The HTML body of the reply'),\n})\n","import { AnyZodObject } from 'zod'\n\nimport {\n ListItemsParams,\n GetInboxParams,\n CreateInboxParams,\n ListThreadsParams,\n GetThreadParams,\n ListMessagesParams,\n GetMessageParams,\n GetAttachmentParams,\n SendMessageParams,\n ReplyToMessageParams,\n} from './schemas'\n\nexport type Tool = {\n name: string\n method: string\n description: string\n schema: AnyZodObject\n}\n\nexport const tools: Tool[] = [\n {\n name: 'list_inboxes',\n method: 'inboxes.list',\n description: 'List all inboxes',\n schema: ListItemsParams,\n },\n {\n name: 'get_inbox',\n method: 'inboxes.get',\n description: 'Get an inbox by ID',\n schema: GetInboxParams,\n },\n {\n name: 'create_inbox',\n method: 'inboxes.create',\n description: 'Create a new inbox',\n schema: CreateInboxParams,\n },\n {\n name: 'list_threads',\n method: 'threads.list',\n description: 'List all threads',\n schema: ListThreadsParams,\n },\n {\n name: 'get_thread',\n method: 'threads.get',\n description: 'Get a thread by ID',\n schema: GetThreadParams,\n },\n {\n name: 'list_messages',\n method: 'messages.list',\n description: 'List all messages',\n schema: ListMessagesParams,\n },\n {\n name: 'get_message',\n method: 'messages.get',\n description: 'Get a message by ID',\n schema: GetMessageParams,\n },\n {\n name: 'get_attachment',\n method: 'attachments.get',\n description: 'Get an attachment by ID',\n schema: GetAttachmentParams,\n },\n {\n name: 'send_message',\n method: 'messages.send',\n description: 'Send a message',\n schema: SendMessageParams,\n },\n {\n name: 'reply_to_message',\n method: 'messages.reply',\n description: 'Reply to a message',\n schema: ReplyToMessageParams,\n },\n]\n"],"mappings":";AAAA,SAAS,uBAAuB;AAEzB,IAAM,UAAN,MAAc;AAAA,EACjB,YAA6B,QAA0B;AAA1B;AACzB,QAAI,CAAC,KAAK,OAAQ,MAAK,SAAS,IAAI,gBAAgB;AAAA,EACxD;AAAA,EAEA,MAAa,WAAW,QAAgB,MAAe;AACnD,UAAM,QAAQ,OAAO,MAAM,GAAG;AAC9B,UAAM,YAAY,MAAM,IAA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
-
import {
|
|
5
|
-
tools
|
|
6
|
-
} from "./chunk-QBOE34GE.mjs";
|
|
7
|
-
|
|
8
|
-
// src/toolkit.ts
|
|
9
|
-
var ListToolkit = class extends Wrapper {
|
|
10
|
-
tools = [];
|
|
11
|
-
constructor(client) {
|
|
12
|
-
super(client);
|
|
13
|
-
this.tools = tools.map((tool) => this.buildTool(tool));
|
|
14
|
-
}
|
|
15
|
-
getTools() {
|
|
16
|
-
return this.tools;
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
var MapToolkit = class extends Wrapper {
|
|
20
|
-
tools = {};
|
|
21
|
-
constructor(client) {
|
|
22
|
-
super(client);
|
|
23
|
-
this.tools = tools.reduce(
|
|
24
|
-
(acc, tool) => {
|
|
25
|
-
acc[tool.name] = this.buildTool(tool);
|
|
26
|
-
return acc;
|
|
27
|
-
},
|
|
28
|
-
{}
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
getTools() {
|
|
32
|
-
return this.tools;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export {
|
|
37
|
-
ListToolkit,
|
|
38
|
-
MapToolkit
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=chunk-H3V5ORVZ.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/toolkit.ts"],"sourcesContent":["import { AgentMailClient } from 'agentmail'\n\nimport { Wrapper } from './wrapper'\nimport { type Tool, tools } from './tools'\n\nexport abstract class ListToolkit<T> extends Wrapper {\n protected readonly tools: T[] = []\n\n constructor(client?: AgentMailClient) {\n super(client)\n\n this.tools = tools.map((tool) => this.buildTool(tool))\n }\n\n protected abstract buildTool(tool: Tool): T\n\n public getTools() {\n return this.tools\n }\n}\n\nexport abstract class MapToolkit<T> extends Wrapper {\n protected readonly tools: Record<string, T> = {}\n\n constructor(client?: AgentMailClient) {\n super(client)\n\n this.tools = tools.reduce(\n (acc, tool) => {\n acc[tool.name] = this.buildTool(tool)\n return acc\n },\n {} as Record<string, T>\n )\n }\n\n protected abstract buildTool(tool: Tool): T\n\n public getTools() {\n return this.tools\n }\n}\n"],"mappings":";;;;;;;;AAKO,IAAe,cAAf,cAAsC,QAAQ;AAAA,EAC9B,QAAa,CAAC;AAAA,EAEjC,YAAY,QAA0B;AAClC,UAAM,MAAM;AAEZ,SAAK,QAAQ,MAAM,IAAI,CAAC,SAAS,KAAK,UAAU,IAAI,CAAC;AAAA,EACzD;AAAA,EAIO,WAAW;AACd,WAAO,KAAK;AAAA,EAChB;AACJ;AAEO,IAAe,aAAf,cAAqC,QAAQ;AAAA,EAC7B,QAA2B,CAAC;AAAA,EAE/C,YAAY,QAA0B;AAClC,UAAM,MAAM;AAEZ,SAAK,QAAQ,MAAM;AAAA,MACf,CAAC,KAAK,SAAS;AACX,YAAI,KAAK,IAAI,IAAI,KAAK,UAAU,IAAI;AACpC,eAAO;AAAA,MACX;AAAA,MACA,CAAC;AAAA,IACL;AAAA,EACJ;AAAA,EAIO,WAAW;AACd,WAAO,KAAK;AAAA,EAChB;AACJ;","names":[]}
|
package/dist/chunk-HKK5SMM3.mjs
DELETED
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
// src/schemas.ts
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
var ListItemsParams = z.object({
|
|
4
|
-
limit: z.number().optional().describe("Max number of items to return"),
|
|
5
|
-
page_token: z.string().optional().describe("Page token for pagination")
|
|
6
|
-
});
|
|
7
|
-
var ListInboxItemsParams = ListItemsParams.extend({
|
|
8
|
-
labels: z.array(z.string()).optional().describe("Labels to filter items by"),
|
|
9
|
-
ascending: z.boolean().optional().describe("Sort items in ascending order")
|
|
10
|
-
});
|
|
11
|
-
var GetInboxParams = z.object({
|
|
12
|
-
inbox_id: z.string().describe("ID of inbox to get")
|
|
13
|
-
});
|
|
14
|
-
var CreateInboxParams = z.object({
|
|
15
|
-
username: z.string().optional().describe("Username of inbox to create"),
|
|
16
|
-
domain: z.string().optional().describe("Domain of inbox to create"),
|
|
17
|
-
display_name: z.string().optional().describe("Display name of inbox to create")
|
|
18
|
-
});
|
|
19
|
-
var ListThreadsParams = ListInboxItemsParams.extend({
|
|
20
|
-
inbox_id: z.string().describe("ID of inbox to list threads from")
|
|
21
|
-
});
|
|
22
|
-
var GetThreadParams = z.object({
|
|
23
|
-
thread_id: z.string().describe("ID of thread to get")
|
|
24
|
-
});
|
|
25
|
-
var ListMessagesParams = ListInboxItemsParams.extend({
|
|
26
|
-
inbox_id: z.string().describe("ID of inbox to list messages from")
|
|
27
|
-
});
|
|
28
|
-
var GetMessageParams = z.object({
|
|
29
|
-
inbox_id: z.string().describe("ID of inbox to get message from"),
|
|
30
|
-
message_id: z.string().describe("ID of message to get")
|
|
31
|
-
});
|
|
32
|
-
var SendMessageParams = z.object({
|
|
33
|
-
inbox_id: z.string().describe("ID of inbox to send message from"),
|
|
34
|
-
to: z.array(z.string()).describe("Recipients of message"),
|
|
35
|
-
cc: z.array(z.string()).optional().describe("CC recipients of message"),
|
|
36
|
-
bcc: z.array(z.string()).optional().describe("BCC recipients of message"),
|
|
37
|
-
subject: z.string().optional().describe("Subject of message"),
|
|
38
|
-
text: z.string().optional().describe("Plain text body of message"),
|
|
39
|
-
html: z.string().optional().describe("HTML body of message"),
|
|
40
|
-
labels: z.array(z.string()).optional().describe("Labels to add to message")
|
|
41
|
-
});
|
|
42
|
-
var ReplyToMessageParams = z.object({
|
|
43
|
-
inbox_id: z.string().describe("ID of inbox to reply to message from"),
|
|
44
|
-
message_id: z.string().describe("ID of message to reply to"),
|
|
45
|
-
text: z.string().optional().describe("Plain text body of reply"),
|
|
46
|
-
html: z.string().optional().describe("HTML body of reply"),
|
|
47
|
-
labels: z.array(z.string()).optional().describe("Labels to add to reply")
|
|
48
|
-
});
|
|
49
|
-
var UpdateMessageParams = z.object({
|
|
50
|
-
inbox_id: z.string().describe("ID of inbox to update message from"),
|
|
51
|
-
message_id: z.string().describe("ID of message to update"),
|
|
52
|
-
add_labels: z.array(z.string()).optional().describe("Labels to add to message"),
|
|
53
|
-
remove_labels: z.array(z.string()).optional().describe("Labels to remove from message")
|
|
54
|
-
});
|
|
55
|
-
var ListDraftsParams = ListInboxItemsParams.extend({
|
|
56
|
-
inbox_id: z.string().describe("ID of inbox to list drafts from")
|
|
57
|
-
});
|
|
58
|
-
var GetDraftParams = z.object({
|
|
59
|
-
inbox_id: z.string().describe("ID of inbox to get draft from"),
|
|
60
|
-
draft_id: z.string().describe("ID of draft to get")
|
|
61
|
-
});
|
|
62
|
-
var CreateDraftParams = z.object({
|
|
63
|
-
inbox_id: z.string().describe("ID of inbox to create draft from"),
|
|
64
|
-
to: z.array(z.string()).describe("Recipients of draft"),
|
|
65
|
-
cc: z.array(z.string()).optional().describe("CC recipients of draft"),
|
|
66
|
-
bcc: z.array(z.string()).optional().describe("BCC recipients of draft"),
|
|
67
|
-
subject: z.string().optional().describe("Subject of draft"),
|
|
68
|
-
text: z.string().optional().describe("Plain text body of draft"),
|
|
69
|
-
html: z.string().optional().describe("HTML body of draft"),
|
|
70
|
-
labels: z.array(z.string()).optional().describe("Labels to add to draft")
|
|
71
|
-
});
|
|
72
|
-
var SendDraftParams = z.object({
|
|
73
|
-
inbox_id: z.string().describe("ID of inbox to send draft from"),
|
|
74
|
-
draft_id: z.string().describe("ID of draft to send"),
|
|
75
|
-
add_labels: z.array(z.string()).optional().describe("Labels to add to sent message"),
|
|
76
|
-
remove_labels: z.array(z.string()).optional().describe("Labels to remove from sent message")
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
// src/tools.ts
|
|
80
|
-
var tools = [
|
|
81
|
-
{
|
|
82
|
-
name: "list_inboxes",
|
|
83
|
-
method: "inboxes.list",
|
|
84
|
-
description: "List inboxes",
|
|
85
|
-
schema: ListItemsParams
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
name: "get_inbox",
|
|
89
|
-
method: "inboxes.get",
|
|
90
|
-
description: "Get inbox",
|
|
91
|
-
schema: GetInboxParams
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
name: "create_inbox",
|
|
95
|
-
method: "inboxes.create",
|
|
96
|
-
description: "Create inbox",
|
|
97
|
-
schema: CreateInboxParams
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
name: "list_threads",
|
|
101
|
-
method: "inboxes.threads.list",
|
|
102
|
-
description: "List threads in inbox",
|
|
103
|
-
schema: ListThreadsParams
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
name: "list_all_threads",
|
|
107
|
-
method: "threads.list",
|
|
108
|
-
description: "List threads in all inboxes",
|
|
109
|
-
schema: ListInboxItemsParams
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
name: "get_thread",
|
|
113
|
-
method: "threads.get",
|
|
114
|
-
description: "Get thread",
|
|
115
|
-
schema: GetThreadParams
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
name: "list_messages",
|
|
119
|
-
method: "inboxes.messages.list",
|
|
120
|
-
description: "List messages in inbox",
|
|
121
|
-
schema: ListMessagesParams
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
name: "get_message",
|
|
125
|
-
method: "inboxes.messages.get",
|
|
126
|
-
description: "Get message",
|
|
127
|
-
schema: GetMessageParams
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
name: "send_message",
|
|
131
|
-
method: "inboxes.messages.send",
|
|
132
|
-
description: "Send message",
|
|
133
|
-
schema: SendMessageParams
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
name: "reply_to_message",
|
|
137
|
-
method: "inboxes.messages.reply",
|
|
138
|
-
description: "Reply to message",
|
|
139
|
-
schema: ReplyToMessageParams
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
name: "update_message",
|
|
143
|
-
method: "inboxes.messages.update",
|
|
144
|
-
description: "Update message",
|
|
145
|
-
schema: UpdateMessageParams
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
name: "list_drafts",
|
|
149
|
-
method: "inboxes.drafts.list",
|
|
150
|
-
description: "List drafts in inbox",
|
|
151
|
-
schema: ListDraftsParams
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
name: "list_all_drafts",
|
|
155
|
-
method: "drafts.list",
|
|
156
|
-
description: "List drafts in all inboxes",
|
|
157
|
-
schema: ListInboxItemsParams
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
name: "get_draft",
|
|
161
|
-
method: "drafts.get",
|
|
162
|
-
description: "Get draft",
|
|
163
|
-
schema: GetDraftParams
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
name: "create_draft",
|
|
167
|
-
method: "inboxes.drafts.create",
|
|
168
|
-
description: "Create draft",
|
|
169
|
-
schema: CreateDraftParams
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
name: "send_draft",
|
|
173
|
-
method: "inboxes.drafts.send",
|
|
174
|
-
description: "Send draft",
|
|
175
|
-
schema: SendDraftParams
|
|
176
|
-
}
|
|
177
|
-
];
|
|
178
|
-
|
|
179
|
-
export {
|
|
180
|
-
ListItemsParams,
|
|
181
|
-
ListInboxItemsParams,
|
|
182
|
-
GetInboxParams,
|
|
183
|
-
CreateInboxParams,
|
|
184
|
-
ListThreadsParams,
|
|
185
|
-
GetThreadParams,
|
|
186
|
-
ListMessagesParams,
|
|
187
|
-
GetMessageParams,
|
|
188
|
-
SendMessageParams,
|
|
189
|
-
ReplyToMessageParams,
|
|
190
|
-
UpdateMessageParams,
|
|
191
|
-
ListDraftsParams,
|
|
192
|
-
GetDraftParams,
|
|
193
|
-
CreateDraftParams,
|
|
194
|
-
SendDraftParams,
|
|
195
|
-
tools
|
|
196
|
-
};
|
|
197
|
-
//# sourceMappingURL=chunk-HKK5SMM3.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/schemas.ts","../src/tools.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const ListItemsParams = z.object({\n limit: z.number().optional().describe('Max number of items to return'),\n page_token: z.string().optional().describe('Page token for pagination'),\n})\n\nexport const ListInboxItemsParams = ListItemsParams.extend({\n labels: z.array(z.string()).optional().describe('Labels to filter items by'),\n ascending: z.boolean().optional().describe('Sort items in ascending order'),\n})\n\nexport const GetInboxParams = z.object({\n inbox_id: z.string().describe('ID of inbox to get'),\n})\n\nexport const CreateInboxParams = z.object({\n username: z.string().optional().describe('Username of inbox to create'),\n domain: z.string().optional().describe('Domain of inbox to create'),\n display_name: z.string().optional().describe('Display name of inbox to create'),\n})\n\nexport const ListThreadsParams = ListInboxItemsParams.extend({\n inbox_id: z.string().describe('ID of inbox to list threads from'),\n})\n\nexport const GetThreadParams = z.object({\n thread_id: z.string().describe('ID of thread to get'),\n})\n\nexport const ListMessagesParams = ListInboxItemsParams.extend({\n inbox_id: z.string().describe('ID of inbox to list messages from'),\n})\n\nexport const GetMessageParams = z.object({\n inbox_id: z.string().describe('ID of inbox to get message from'),\n message_id: z.string().describe('ID of message to get'),\n})\n\nexport const SendMessageParams = z.object({\n inbox_id: z.string().describe('ID of inbox to send message from'),\n to: z.array(z.string()).describe('Recipients of message'),\n cc: z.array(z.string()).optional().describe('CC recipients of message'),\n bcc: z.array(z.string()).optional().describe('BCC recipients of message'),\n subject: z.string().optional().describe('Subject of message'),\n text: z.string().optional().describe('Plain text body of message'),\n html: z.string().optional().describe('HTML body of message'),\n labels: z.array(z.string()).optional().describe('Labels to add to message'),\n})\n\nexport const ReplyToMessageParams = z.object({\n inbox_id: z.string().describe('ID of inbox to reply to message from'),\n message_id: z.string().describe('ID of message to reply to'),\n text: z.string().optional().describe('Plain text body of reply'),\n html: z.string().optional().describe('HTML body of reply'),\n labels: z.array(z.string()).optional().describe('Labels to add to reply'),\n})\n\nexport const UpdateMessageParams = z.object({\n inbox_id: z.string().describe('ID of inbox to update message from'),\n message_id: z.string().describe('ID of message to update'),\n add_labels: z.array(z.string()).optional().describe('Labels to add to message'),\n remove_labels: z.array(z.string()).optional().describe('Labels to remove from message'),\n})\n\nexport const ListDraftsParams = ListInboxItemsParams.extend({\n inbox_id: z.string().describe('ID of inbox to list drafts from'),\n})\n\nexport const GetDraftParams = z.object({\n inbox_id: z.string().describe('ID of inbox to get draft from'),\n draft_id: z.string().describe('ID of draft to get'),\n})\n\nexport const CreateDraftParams = z.object({\n inbox_id: z.string().describe('ID of inbox to create draft from'),\n to: z.array(z.string()).describe('Recipients of draft'),\n cc: z.array(z.string()).optional().describe('CC recipients of draft'),\n bcc: z.array(z.string()).optional().describe('BCC recipients of draft'),\n subject: z.string().optional().describe('Subject of draft'),\n text: z.string().optional().describe('Plain text body of draft'),\n html: z.string().optional().describe('HTML body of draft'),\n labels: z.array(z.string()).optional().describe('Labels to add to draft'),\n})\n\nexport const SendDraftParams = z.object({\n inbox_id: z.string().describe('ID of inbox to send draft from'),\n draft_id: z.string().describe('ID of draft to send'),\n add_labels: z.array(z.string()).optional().describe('Labels to add to sent message'),\n remove_labels: z.array(z.string()).optional().describe('Labels to remove from sent message'),\n})\n","import { AnyZodObject } from 'zod'\n\nimport {\n ListItemsParams,\n ListInboxItemsParams,\n GetInboxParams,\n CreateInboxParams,\n ListThreadsParams,\n GetThreadParams,\n ListMessagesParams,\n GetMessageParams,\n SendMessageParams,\n ReplyToMessageParams,\n UpdateMessageParams,\n ListDraftsParams,\n GetDraftParams,\n CreateDraftParams,\n SendDraftParams,\n} from './schemas'\n\nexport interface Tool {\n name: string\n method: string\n description: string\n schema: AnyZodObject\n}\n\nexport const tools: Tool[] = [\n {\n name: 'list_inboxes',\n method: 'inboxes.list',\n description: 'List inboxes',\n schema: ListItemsParams,\n },\n {\n name: 'get_inbox',\n method: 'inboxes.get',\n description: 'Get inbox',\n schema: GetInboxParams,\n },\n {\n name: 'create_inbox',\n method: 'inboxes.create',\n description: 'Create inbox',\n schema: CreateInboxParams,\n },\n {\n name: 'list_threads',\n method: 'inboxes.threads.list',\n description: 'List threads in inbox',\n schema: ListThreadsParams,\n },\n {\n name: 'list_all_threads',\n method: 'threads.list',\n description: 'List threads in all inboxes',\n schema: ListInboxItemsParams,\n },\n {\n name: 'get_thread',\n method: 'threads.get',\n description: 'Get thread',\n schema: GetThreadParams,\n },\n {\n name: 'list_messages',\n method: 'inboxes.messages.list',\n description: 'List messages in inbox',\n schema: ListMessagesParams,\n },\n {\n name: 'get_message',\n method: 'inboxes.messages.get',\n description: 'Get message',\n schema: GetMessageParams,\n },\n {\n name: 'send_message',\n method: 'inboxes.messages.send',\n description: 'Send message',\n schema: SendMessageParams,\n },\n {\n name: 'reply_to_message',\n method: 'inboxes.messages.reply',\n description: 'Reply to message',\n schema: ReplyToMessageParams,\n },\n {\n name: 'update_message',\n method: 'inboxes.messages.update',\n description: 'Update message',\n schema: UpdateMessageParams,\n },\n {\n name: 'list_drafts',\n method: 'inboxes.drafts.list',\n description: 'List drafts in inbox',\n schema: ListDraftsParams,\n },\n {\n name: 'list_all_drafts',\n method: 'drafts.list',\n description: 'List drafts in all inboxes',\n schema: ListInboxItemsParams,\n },\n {\n name: 'get_draft',\n method: 'drafts.get',\n description: 'Get draft',\n schema: GetDraftParams,\n },\n {\n name: 'create_draft',\n method: 'inboxes.drafts.create',\n description: 'Create draft',\n schema: CreateDraftParams,\n },\n {\n name: 'send_draft',\n method: 'inboxes.drafts.send',\n description: 'Send draft',\n schema: SendDraftParams,\n },\n]\n"],"mappings":";AAAA,SAAS,SAAS;AAEX,IAAM,kBAAkB,EAAE,OAAO;AAAA,EACpC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,+BAA+B;AAAA,EACrE,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,2BAA2B;AAC1E,CAAC;AAEM,IAAM,uBAAuB,gBAAgB,OAAO;AAAA,EACvD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,SAAS,2BAA2B;AAAA,EAC3E,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,+BAA+B;AAC9E,CAAC;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;AAAA,IACN,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,QAAQ;AAAA,EACZ;AACJ;","names":[]}
|
package/dist/chunk-IDOYVQL3.mjs
DELETED
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
// src/schemas.ts
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
var ListItemsParams = z.object({
|
|
4
|
-
limit: z.number().optional().describe("Max number of items to return"),
|
|
5
|
-
page_token: z.string().optional().describe("Page token for pagination")
|
|
6
|
-
});
|
|
7
|
-
var ListInboxItemsParams = ListItemsParams.extend({
|
|
8
|
-
labels: z.array(z.string()).optional().describe("Labels to filter items by"),
|
|
9
|
-
ascending: z.boolean().optional().describe("Sort items in ascending order")
|
|
10
|
-
});
|
|
11
|
-
var GetInboxParams = z.object({
|
|
12
|
-
inbox_id: z.string().describe("ID of inbox to get")
|
|
13
|
-
});
|
|
14
|
-
var CreateInboxParams = z.object({
|
|
15
|
-
username: z.string().optional().describe("Username of inbox to create"),
|
|
16
|
-
domain: z.string().optional().describe("Domain of inbox to create"),
|
|
17
|
-
display_name: z.string().optional().describe("Display name of inbox to create")
|
|
18
|
-
});
|
|
19
|
-
var ListThreadsParams = ListInboxItemsParams.extend({
|
|
20
|
-
inbox_id: z.string().describe("ID of inbox to list threads from")
|
|
21
|
-
});
|
|
22
|
-
var GetThreadParams = z.object({
|
|
23
|
-
thread_id: z.string().describe("ID of thread to get")
|
|
24
|
-
});
|
|
25
|
-
var SendMessageParams = z.object({
|
|
26
|
-
inbox_id: z.string().describe("ID of inbox to send message from"),
|
|
27
|
-
to: z.array(z.string()).describe("Recipients of message"),
|
|
28
|
-
cc: z.array(z.string()).optional().describe("CC recipients of message"),
|
|
29
|
-
bcc: z.array(z.string()).optional().describe("BCC recipients of message"),
|
|
30
|
-
subject: z.string().optional().describe("Subject of message"),
|
|
31
|
-
text: z.string().optional().describe("Plain text body of message"),
|
|
32
|
-
html: z.string().optional().describe("HTML body of message"),
|
|
33
|
-
labels: z.array(z.string()).optional().describe("Labels to add to message")
|
|
34
|
-
});
|
|
35
|
-
var ReplyToMessageParams = z.object({
|
|
36
|
-
inbox_id: z.string().describe("ID of inbox to reply to message from"),
|
|
37
|
-
message_id: z.string().describe("ID of message to reply to"),
|
|
38
|
-
text: z.string().optional().describe("Plain text body of reply"),
|
|
39
|
-
html: z.string().optional().describe("HTML body of reply"),
|
|
40
|
-
labels: z.array(z.string()).optional().describe("Labels to add to reply")
|
|
41
|
-
});
|
|
42
|
-
var UpdateMessageParams = z.object({
|
|
43
|
-
inbox_id: z.string().describe("ID of inbox to update message from"),
|
|
44
|
-
message_id: z.string().describe("ID of message to update"),
|
|
45
|
-
add_labels: z.array(z.string()).optional().describe("Labels to add to message"),
|
|
46
|
-
remove_labels: z.array(z.string()).optional().describe("Labels to remove from message")
|
|
47
|
-
});
|
|
48
|
-
var ListDraftsParams = ListInboxItemsParams.extend({
|
|
49
|
-
inbox_id: z.string().describe("ID of inbox to list drafts from")
|
|
50
|
-
});
|
|
51
|
-
var GetDraftParams = z.object({
|
|
52
|
-
inbox_id: z.string().describe("ID of inbox to get draft from"),
|
|
53
|
-
draft_id: z.string().describe("ID of draft to get")
|
|
54
|
-
});
|
|
55
|
-
var CreateDraftParams = z.object({
|
|
56
|
-
inbox_id: z.string().describe("ID of inbox to create draft from"),
|
|
57
|
-
to: z.array(z.string()).describe("Recipients of draft"),
|
|
58
|
-
cc: z.array(z.string()).optional().describe("CC recipients of draft"),
|
|
59
|
-
bcc: z.array(z.string()).optional().describe("BCC recipients of draft"),
|
|
60
|
-
subject: z.string().optional().describe("Subject of draft"),
|
|
61
|
-
text: z.string().optional().describe("Plain text body of draft"),
|
|
62
|
-
html: z.string().optional().describe("HTML body of draft"),
|
|
63
|
-
labels: z.array(z.string()).optional().describe("Labels to add to draft")
|
|
64
|
-
});
|
|
65
|
-
var SendDraftParams = z.object({
|
|
66
|
-
inbox_id: z.string().describe("ID of inbox to send draft from"),
|
|
67
|
-
draft_id: z.string().describe("ID of draft to send"),
|
|
68
|
-
add_labels: z.array(z.string()).optional().describe("Labels to add to sent message"),
|
|
69
|
-
remove_labels: z.array(z.string()).optional().describe("Labels to remove from sent message")
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
// src/tools.ts
|
|
73
|
-
var tools = [
|
|
74
|
-
{
|
|
75
|
-
name: "list_inboxes",
|
|
76
|
-
method: "inboxes.list",
|
|
77
|
-
description: "List inboxes",
|
|
78
|
-
schema: ListItemsParams
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
name: "get_inbox",
|
|
82
|
-
method: "inboxes.get",
|
|
83
|
-
description: "Get inbox",
|
|
84
|
-
schema: GetInboxParams
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
name: "create_inbox",
|
|
88
|
-
method: "inboxes.create",
|
|
89
|
-
description: "Create inbox",
|
|
90
|
-
schema: CreateInboxParams
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
name: "list_threads",
|
|
94
|
-
method: "inboxes.threads.list",
|
|
95
|
-
description: "List threads in inbox",
|
|
96
|
-
schema: ListThreadsParams
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
name: "list_all_threads",
|
|
100
|
-
method: "threads.list",
|
|
101
|
-
description: "List threads in all inboxes",
|
|
102
|
-
schema: ListInboxItemsParams
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
name: "get_thread",
|
|
106
|
-
method: "threads.get",
|
|
107
|
-
description: "Get thread",
|
|
108
|
-
schema: GetThreadParams
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
name: "send_message",
|
|
112
|
-
method: "inboxes.messages.send",
|
|
113
|
-
description: "Send message",
|
|
114
|
-
schema: SendMessageParams
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
name: "reply_to_message",
|
|
118
|
-
method: "inboxes.messages.reply",
|
|
119
|
-
description: "Reply to message",
|
|
120
|
-
schema: ReplyToMessageParams
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
name: "update_message",
|
|
124
|
-
method: "inboxes.messages.update",
|
|
125
|
-
description: "Update message",
|
|
126
|
-
schema: UpdateMessageParams
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
name: "list_drafts",
|
|
130
|
-
method: "inboxes.drafts.list",
|
|
131
|
-
description: "List drafts in inbox",
|
|
132
|
-
schema: ListDraftsParams
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
name: "list_all_drafts",
|
|
136
|
-
method: "drafts.list",
|
|
137
|
-
description: "List drafts in all inboxes",
|
|
138
|
-
schema: ListInboxItemsParams
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
name: "get_draft",
|
|
142
|
-
method: "drafts.get",
|
|
143
|
-
description: "Get draft",
|
|
144
|
-
schema: GetDraftParams
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
name: "create_draft",
|
|
148
|
-
method: "inboxes.drafts.create",
|
|
149
|
-
description: "Create draft",
|
|
150
|
-
schema: CreateDraftParams
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
name: "send_draft",
|
|
154
|
-
method: "inboxes.drafts.send",
|
|
155
|
-
description: "Send draft",
|
|
156
|
-
schema: SendDraftParams
|
|
157
|
-
}
|
|
158
|
-
];
|
|
159
|
-
|
|
160
|
-
export {
|
|
161
|
-
ListItemsParams,
|
|
162
|
-
ListInboxItemsParams,
|
|
163
|
-
GetInboxParams,
|
|
164
|
-
CreateInboxParams,
|
|
165
|
-
ListThreadsParams,
|
|
166
|
-
GetThreadParams,
|
|
167
|
-
SendMessageParams,
|
|
168
|
-
ReplyToMessageParams,
|
|
169
|
-
UpdateMessageParams,
|
|
170
|
-
ListDraftsParams,
|
|
171
|
-
GetDraftParams,
|
|
172
|
-
CreateDraftParams,
|
|
173
|
-
SendDraftParams,
|
|
174
|
-
tools
|
|
175
|
-
};
|
|
176
|
-
//# sourceMappingURL=chunk-IDOYVQL3.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/schemas.ts","../src/tools.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const ListItemsParams = z.object({\n limit: z.number().optional().describe('Max number of items to return'),\n page_token: z.string().optional().describe('Page token for pagination'),\n})\n\nexport const ListInboxItemsParams = ListItemsParams.extend({\n labels: z.array(z.string()).optional().describe('Labels to filter items by'),\n ascending: z.boolean().optional().describe('Sort items in ascending order'),\n})\n\nexport const GetInboxParams = z.object({\n inbox_id: z.string().describe('ID of inbox to get'),\n})\n\nexport const CreateInboxParams = z.object({\n username: z.string().optional().describe('Username of inbox to create'),\n domain: z.string().optional().describe('Domain of inbox to create'),\n display_name: z.string().optional().describe('Display name of inbox to create'),\n})\n\nexport const ListThreadsParams = ListInboxItemsParams.extend({\n inbox_id: z.string().describe('ID of inbox to list threads from'),\n})\n\nexport const GetThreadParams = z.object({\n thread_id: z.string().describe('ID of thread to get'),\n})\n\nexport const SendMessageParams = z.object({\n inbox_id: z.string().describe('ID of inbox to send message from'),\n to: z.array(z.string()).describe('Recipients of message'),\n cc: z.array(z.string()).optional().describe('CC recipients of message'),\n bcc: z.array(z.string()).optional().describe('BCC recipients of message'),\n subject: z.string().optional().describe('Subject of message'),\n text: z.string().optional().describe('Plain text body of message'),\n html: z.string().optional().describe('HTML body of message'),\n labels: z.array(z.string()).optional().describe('Labels to add to message'),\n})\n\nexport const ReplyToMessageParams = z.object({\n inbox_id: z.string().describe('ID of inbox to reply to message from'),\n message_id: z.string().describe('ID of message to reply to'),\n text: z.string().optional().describe('Plain text body of reply'),\n html: z.string().optional().describe('HTML body of reply'),\n labels: z.array(z.string()).optional().describe('Labels to add to reply'),\n})\n\nexport const UpdateMessageParams = z.object({\n inbox_id: z.string().describe('ID of inbox to update message from'),\n message_id: z.string().describe('ID of message to update'),\n add_labels: z.array(z.string()).optional().describe('Labels to add to message'),\n remove_labels: z.array(z.string()).optional().describe('Labels to remove from message'),\n})\n\nexport const ListDraftsParams = ListInboxItemsParams.extend({\n inbox_id: z.string().describe('ID of inbox to list drafts from'),\n})\n\nexport const GetDraftParams = z.object({\n inbox_id: z.string().describe('ID of inbox to get draft from'),\n draft_id: z.string().describe('ID of draft to get'),\n})\n\nexport const CreateDraftParams = z.object({\n inbox_id: z.string().describe('ID of inbox to create draft from'),\n to: z.array(z.string()).describe('Recipients of draft'),\n cc: z.array(z.string()).optional().describe('CC recipients of draft'),\n bcc: z.array(z.string()).optional().describe('BCC recipients of draft'),\n subject: z.string().optional().describe('Subject of draft'),\n text: z.string().optional().describe('Plain text body of draft'),\n html: z.string().optional().describe('HTML body of draft'),\n labels: z.array(z.string()).optional().describe('Labels to add to draft'),\n})\n\nexport const SendDraftParams = z.object({\n inbox_id: z.string().describe('ID of inbox to send draft from'),\n draft_id: z.string().describe('ID of draft to send'),\n add_labels: z.array(z.string()).optional().describe('Labels to add to sent message'),\n remove_labels: z.array(z.string()).optional().describe('Labels to remove from sent message'),\n})\n","import { AnyZodObject } from 'zod'\n\nimport {\n ListItemsParams,\n ListInboxItemsParams,\n GetInboxParams,\n CreateInboxParams,\n ListThreadsParams,\n GetThreadParams,\n SendMessageParams,\n ReplyToMessageParams,\n UpdateMessageParams,\n ListDraftsParams,\n GetDraftParams,\n CreateDraftParams,\n SendDraftParams,\n} from './schemas'\n\nexport interface Tool {\n name: string\n method: string\n description: string\n schema: AnyZodObject\n}\n\nexport const tools: Tool[] = [\n {\n name: 'list_inboxes',\n method: 'inboxes.list',\n description: 'List inboxes',\n schema: ListItemsParams,\n },\n {\n name: 'get_inbox',\n method: 'inboxes.get',\n description: 'Get inbox',\n schema: GetInboxParams,\n },\n {\n name: 'create_inbox',\n method: 'inboxes.create',\n description: 'Create inbox',\n schema: CreateInboxParams,\n },\n {\n name: 'list_threads',\n method: 'inboxes.threads.list',\n description: 'List threads in inbox',\n schema: ListThreadsParams,\n },\n {\n name: 'list_all_threads',\n method: 'threads.list',\n description: 'List threads in all inboxes',\n schema: ListInboxItemsParams,\n },\n {\n name: 'get_thread',\n method: 'threads.get',\n description: 'Get thread',\n schema: GetThreadParams,\n },\n {\n name: 'send_message',\n method: 'inboxes.messages.send',\n description: 'Send message',\n schema: SendMessageParams,\n },\n {\n name: 'reply_to_message',\n method: 'inboxes.messages.reply',\n description: 'Reply to message',\n schema: ReplyToMessageParams,\n },\n {\n name: 'update_message',\n method: 'inboxes.messages.update',\n description: 'Update message',\n schema: UpdateMessageParams,\n },\n {\n name: 'list_drafts',\n method: 'inboxes.drafts.list',\n description: 'List drafts in inbox',\n schema: ListDraftsParams,\n },\n {\n name: 'list_all_drafts',\n method: 'drafts.list',\n description: 'List drafts in all inboxes',\n schema: ListInboxItemsParams,\n },\n {\n name: 'get_draft',\n method: 'drafts.get',\n description: 'Get draft',\n schema: GetDraftParams,\n },\n {\n name: 'create_draft',\n method: 'inboxes.drafts.create',\n description: 'Create draft',\n schema: CreateDraftParams,\n },\n {\n name: 'send_draft',\n method: 'inboxes.drafts.send',\n description: 'Send draft',\n schema: SendDraftParams,\n },\n]\n"],"mappings":";AAAA,SAAS,SAAS;AAEX,IAAM,kBAAkB,EAAE,OAAO;AAAA,EACpC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,+BAA+B;AAAA,EACrE,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,2BAA2B;AAC1E,CAAC;AAEM,IAAM,uBAAuB,gBAAgB,OAAO;AAAA,EACvD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,SAAS,2BAA2B;AAAA,EAC3E,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,+BAA+B;AAC9E,CAAC;AAEM,IAAM,iBAAiB,EAAE,OAAO;AAAA,EACnC,UAAU,EAAE,OAAO,EAAE,SAAS,oBAAoB;AACtD,CAAC;AAEM,IAAM,oBAAoB,EAAE,OAAO;AAAA,EACtC,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,6BAA6B;AAAA,EACtE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,2BAA2B;AAAA,EAClE,cAAc,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,iCAAiC;AAClF,CAAC;AAEM,IAAM,oBAAoB,qBAAqB,OAAO;AAAA,EACzD,UAAU,EAAE,OAAO,EAAE,SAAS,kCAAkC;AACpE,CAAC;AAEM,IAAM,kBAAkB,EAAE,OAAO;AAAA,EACpC,WAAW,EAAE,OAAO,EAAE,SAAS,qBAAqB;AACxD,CAA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