agentmail-toolkit 0.1.23 → 0.1.24
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/ai-sdk.js +92 -12
- package/dist/ai-sdk.js.map +1 -1
- package/dist/ai-sdk.mjs +2 -2
- package/dist/chunk-4RC3NT5Y.mjs +71 -0
- package/dist/chunk-4RC3NT5Y.mjs.map +1 -0
- package/dist/chunk-VRB6MXGP.mjs +203 -0
- package/dist/chunk-VRB6MXGP.mjs.map +1 -0
- package/dist/index.d.mts +125 -6
- package/dist/index.d.ts +125 -6
- package/dist/index.js +104 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -1
- package/dist/langchain.js +92 -12
- package/dist/langchain.js.map +1 -1
- package/dist/langchain.mjs +2 -2
- package/dist/mcp.js +92 -12
- package/dist/mcp.js.map +1 -1
- package/dist/mcp.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -11,6 +11,23 @@ declare const ListItemsParams: z.ZodObject<{
|
|
|
11
11
|
limit?: number | undefined;
|
|
12
12
|
page_token?: string | undefined;
|
|
13
13
|
}>;
|
|
14
|
+
declare const ListInboxItemsParams: z.ZodObject<{
|
|
15
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
page_token: z.ZodOptional<z.ZodString>;
|
|
17
|
+
} & {
|
|
18
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
19
|
+
ascending: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
limit?: number | undefined;
|
|
22
|
+
page_token?: string | undefined;
|
|
23
|
+
labels?: string[] | undefined;
|
|
24
|
+
ascending?: boolean | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
limit?: number | undefined;
|
|
27
|
+
page_token?: string | undefined;
|
|
28
|
+
labels?: string[] | undefined;
|
|
29
|
+
ascending?: boolean | undefined;
|
|
30
|
+
}>;
|
|
14
31
|
declare const GetInboxParams: z.ZodObject<{
|
|
15
32
|
inbox_id: z.ZodString;
|
|
16
33
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -35,45 +52,50 @@ declare const ListThreadsParams: z.ZodObject<{
|
|
|
35
52
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
36
53
|
page_token: z.ZodOptional<z.ZodString>;
|
|
37
54
|
} & {
|
|
38
|
-
inbox_id: z.ZodString;
|
|
39
55
|
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
56
|
+
ascending: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
+
} & {
|
|
58
|
+
inbox_id: z.ZodString;
|
|
40
59
|
}, "strip", z.ZodTypeAny, {
|
|
41
60
|
inbox_id: string;
|
|
42
61
|
limit?: number | undefined;
|
|
43
62
|
page_token?: string | undefined;
|
|
44
63
|
labels?: string[] | undefined;
|
|
64
|
+
ascending?: boolean | undefined;
|
|
45
65
|
}, {
|
|
46
66
|
inbox_id: string;
|
|
47
67
|
limit?: number | undefined;
|
|
48
68
|
page_token?: string | undefined;
|
|
49
69
|
labels?: string[] | undefined;
|
|
70
|
+
ascending?: boolean | undefined;
|
|
50
71
|
}>;
|
|
51
72
|
declare const GetThreadParams: z.ZodObject<{
|
|
52
|
-
inbox_id: z.ZodString;
|
|
53
73
|
thread_id: z.ZodString;
|
|
54
74
|
}, "strip", z.ZodTypeAny, {
|
|
55
|
-
inbox_id: string;
|
|
56
75
|
thread_id: string;
|
|
57
76
|
}, {
|
|
58
|
-
inbox_id: string;
|
|
59
77
|
thread_id: string;
|
|
60
78
|
}>;
|
|
61
79
|
declare const ListMessagesParams: z.ZodObject<{
|
|
62
80
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
63
81
|
page_token: z.ZodOptional<z.ZodString>;
|
|
64
82
|
} & {
|
|
65
|
-
inbox_id: z.ZodString;
|
|
66
83
|
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
84
|
+
ascending: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
} & {
|
|
86
|
+
inbox_id: z.ZodString;
|
|
67
87
|
}, "strip", z.ZodTypeAny, {
|
|
68
88
|
inbox_id: string;
|
|
69
89
|
limit?: number | undefined;
|
|
70
90
|
page_token?: string | undefined;
|
|
71
91
|
labels?: string[] | undefined;
|
|
92
|
+
ascending?: boolean | undefined;
|
|
72
93
|
}, {
|
|
73
94
|
inbox_id: string;
|
|
74
95
|
limit?: number | undefined;
|
|
75
96
|
page_token?: string | undefined;
|
|
76
97
|
labels?: string[] | undefined;
|
|
98
|
+
ascending?: boolean | undefined;
|
|
77
99
|
}>;
|
|
78
100
|
declare const GetMessageParams: z.ZodObject<{
|
|
79
101
|
inbox_id: z.ZodString;
|
|
@@ -93,9 +115,11 @@ declare const SendMessageParams: z.ZodObject<{
|
|
|
93
115
|
subject: z.ZodOptional<z.ZodString>;
|
|
94
116
|
text: z.ZodOptional<z.ZodString>;
|
|
95
117
|
html: z.ZodOptional<z.ZodString>;
|
|
118
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
96
119
|
}, "strip", z.ZodTypeAny, {
|
|
97
120
|
inbox_id: string;
|
|
98
121
|
to: string[];
|
|
122
|
+
labels?: string[] | undefined;
|
|
99
123
|
cc?: string[] | undefined;
|
|
100
124
|
bcc?: string[] | undefined;
|
|
101
125
|
subject?: string | undefined;
|
|
@@ -104,6 +128,7 @@ declare const SendMessageParams: z.ZodObject<{
|
|
|
104
128
|
}, {
|
|
105
129
|
inbox_id: string;
|
|
106
130
|
to: string[];
|
|
131
|
+
labels?: string[] | undefined;
|
|
107
132
|
cc?: string[] | undefined;
|
|
108
133
|
bcc?: string[] | undefined;
|
|
109
134
|
subject?: string | undefined;
|
|
@@ -115,16 +140,110 @@ declare const ReplyToMessageParams: z.ZodObject<{
|
|
|
115
140
|
message_id: z.ZodString;
|
|
116
141
|
text: z.ZodOptional<z.ZodString>;
|
|
117
142
|
html: z.ZodOptional<z.ZodString>;
|
|
143
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
118
144
|
}, "strip", z.ZodTypeAny, {
|
|
119
145
|
inbox_id: string;
|
|
120
146
|
message_id: string;
|
|
147
|
+
labels?: string[] | undefined;
|
|
121
148
|
text?: string | undefined;
|
|
122
149
|
html?: string | undefined;
|
|
123
150
|
}, {
|
|
124
151
|
inbox_id: string;
|
|
125
152
|
message_id: string;
|
|
153
|
+
labels?: string[] | undefined;
|
|
126
154
|
text?: string | undefined;
|
|
127
155
|
html?: string | undefined;
|
|
128
156
|
}>;
|
|
157
|
+
declare const UpdateMessageParams: z.ZodObject<{
|
|
158
|
+
inbox_id: z.ZodString;
|
|
159
|
+
message_id: z.ZodString;
|
|
160
|
+
add_labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
161
|
+
remove_labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
162
|
+
}, "strip", z.ZodTypeAny, {
|
|
163
|
+
inbox_id: string;
|
|
164
|
+
message_id: string;
|
|
165
|
+
add_labels?: string[] | undefined;
|
|
166
|
+
remove_labels?: string[] | undefined;
|
|
167
|
+
}, {
|
|
168
|
+
inbox_id: string;
|
|
169
|
+
message_id: string;
|
|
170
|
+
add_labels?: string[] | undefined;
|
|
171
|
+
remove_labels?: string[] | undefined;
|
|
172
|
+
}>;
|
|
173
|
+
declare const ListDraftsParams: z.ZodObject<{
|
|
174
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
175
|
+
page_token: z.ZodOptional<z.ZodString>;
|
|
176
|
+
} & {
|
|
177
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
178
|
+
ascending: z.ZodOptional<z.ZodBoolean>;
|
|
179
|
+
} & {
|
|
180
|
+
inbox_id: z.ZodString;
|
|
181
|
+
}, "strip", z.ZodTypeAny, {
|
|
182
|
+
inbox_id: string;
|
|
183
|
+
limit?: number | undefined;
|
|
184
|
+
page_token?: string | undefined;
|
|
185
|
+
labels?: string[] | undefined;
|
|
186
|
+
ascending?: boolean | undefined;
|
|
187
|
+
}, {
|
|
188
|
+
inbox_id: string;
|
|
189
|
+
limit?: number | undefined;
|
|
190
|
+
page_token?: string | undefined;
|
|
191
|
+
labels?: string[] | undefined;
|
|
192
|
+
ascending?: boolean | undefined;
|
|
193
|
+
}>;
|
|
194
|
+
declare const GetDraftParams: z.ZodObject<{
|
|
195
|
+
inbox_id: z.ZodString;
|
|
196
|
+
draft_id: z.ZodString;
|
|
197
|
+
}, "strip", z.ZodTypeAny, {
|
|
198
|
+
inbox_id: string;
|
|
199
|
+
draft_id: string;
|
|
200
|
+
}, {
|
|
201
|
+
inbox_id: string;
|
|
202
|
+
draft_id: string;
|
|
203
|
+
}>;
|
|
204
|
+
declare const CreateDraftParams: z.ZodObject<{
|
|
205
|
+
inbox_id: z.ZodString;
|
|
206
|
+
to: z.ZodArray<z.ZodString, "many">;
|
|
207
|
+
cc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
208
|
+
bcc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
209
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
210
|
+
text: z.ZodOptional<z.ZodString>;
|
|
211
|
+
html: z.ZodOptional<z.ZodString>;
|
|
212
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
213
|
+
}, "strip", z.ZodTypeAny, {
|
|
214
|
+
inbox_id: string;
|
|
215
|
+
to: string[];
|
|
216
|
+
labels?: string[] | undefined;
|
|
217
|
+
cc?: string[] | undefined;
|
|
218
|
+
bcc?: string[] | undefined;
|
|
219
|
+
subject?: string | undefined;
|
|
220
|
+
text?: string | undefined;
|
|
221
|
+
html?: string | undefined;
|
|
222
|
+
}, {
|
|
223
|
+
inbox_id: string;
|
|
224
|
+
to: string[];
|
|
225
|
+
labels?: string[] | undefined;
|
|
226
|
+
cc?: string[] | undefined;
|
|
227
|
+
bcc?: string[] | undefined;
|
|
228
|
+
subject?: string | undefined;
|
|
229
|
+
text?: string | undefined;
|
|
230
|
+
html?: string | undefined;
|
|
231
|
+
}>;
|
|
232
|
+
declare const SendDraftParams: z.ZodObject<{
|
|
233
|
+
inbox_id: z.ZodString;
|
|
234
|
+
draft_id: z.ZodString;
|
|
235
|
+
add_labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
236
|
+
remove_labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
237
|
+
}, "strip", z.ZodTypeAny, {
|
|
238
|
+
inbox_id: string;
|
|
239
|
+
draft_id: string;
|
|
240
|
+
add_labels?: string[] | undefined;
|
|
241
|
+
remove_labels?: string[] | undefined;
|
|
242
|
+
}, {
|
|
243
|
+
inbox_id: string;
|
|
244
|
+
draft_id: string;
|
|
245
|
+
add_labels?: string[] | undefined;
|
|
246
|
+
remove_labels?: string[] | undefined;
|
|
247
|
+
}>;
|
|
129
248
|
|
|
130
|
-
export { CreateInboxParams, GetInboxParams, GetMessageParams, GetThreadParams, ListItemsParams, ListMessagesParams, ListThreadsParams, ReplyToMessageParams, SendMessageParams };
|
|
249
|
+
export { CreateDraftParams, CreateInboxParams, GetDraftParams, GetInboxParams, GetMessageParams, GetThreadParams, ListDraftsParams, ListInboxItemsParams, ListItemsParams, ListMessagesParams, ListThreadsParams, ReplyToMessageParams, SendDraftParams, SendMessageParams, UpdateMessageParams };
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,23 @@ declare const ListItemsParams: z.ZodObject<{
|
|
|
11
11
|
limit?: number | undefined;
|
|
12
12
|
page_token?: string | undefined;
|
|
13
13
|
}>;
|
|
14
|
+
declare const ListInboxItemsParams: z.ZodObject<{
|
|
15
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
page_token: z.ZodOptional<z.ZodString>;
|
|
17
|
+
} & {
|
|
18
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
19
|
+
ascending: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
limit?: number | undefined;
|
|
22
|
+
page_token?: string | undefined;
|
|
23
|
+
labels?: string[] | undefined;
|
|
24
|
+
ascending?: boolean | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
limit?: number | undefined;
|
|
27
|
+
page_token?: string | undefined;
|
|
28
|
+
labels?: string[] | undefined;
|
|
29
|
+
ascending?: boolean | undefined;
|
|
30
|
+
}>;
|
|
14
31
|
declare const GetInboxParams: z.ZodObject<{
|
|
15
32
|
inbox_id: z.ZodString;
|
|
16
33
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -35,45 +52,50 @@ declare const ListThreadsParams: z.ZodObject<{
|
|
|
35
52
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
36
53
|
page_token: z.ZodOptional<z.ZodString>;
|
|
37
54
|
} & {
|
|
38
|
-
inbox_id: z.ZodString;
|
|
39
55
|
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
56
|
+
ascending: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
+
} & {
|
|
58
|
+
inbox_id: z.ZodString;
|
|
40
59
|
}, "strip", z.ZodTypeAny, {
|
|
41
60
|
inbox_id: string;
|
|
42
61
|
limit?: number | undefined;
|
|
43
62
|
page_token?: string | undefined;
|
|
44
63
|
labels?: string[] | undefined;
|
|
64
|
+
ascending?: boolean | undefined;
|
|
45
65
|
}, {
|
|
46
66
|
inbox_id: string;
|
|
47
67
|
limit?: number | undefined;
|
|
48
68
|
page_token?: string | undefined;
|
|
49
69
|
labels?: string[] | undefined;
|
|
70
|
+
ascending?: boolean | undefined;
|
|
50
71
|
}>;
|
|
51
72
|
declare const GetThreadParams: z.ZodObject<{
|
|
52
|
-
inbox_id: z.ZodString;
|
|
53
73
|
thread_id: z.ZodString;
|
|
54
74
|
}, "strip", z.ZodTypeAny, {
|
|
55
|
-
inbox_id: string;
|
|
56
75
|
thread_id: string;
|
|
57
76
|
}, {
|
|
58
|
-
inbox_id: string;
|
|
59
77
|
thread_id: string;
|
|
60
78
|
}>;
|
|
61
79
|
declare const ListMessagesParams: z.ZodObject<{
|
|
62
80
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
63
81
|
page_token: z.ZodOptional<z.ZodString>;
|
|
64
82
|
} & {
|
|
65
|
-
inbox_id: z.ZodString;
|
|
66
83
|
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
84
|
+
ascending: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
} & {
|
|
86
|
+
inbox_id: z.ZodString;
|
|
67
87
|
}, "strip", z.ZodTypeAny, {
|
|
68
88
|
inbox_id: string;
|
|
69
89
|
limit?: number | undefined;
|
|
70
90
|
page_token?: string | undefined;
|
|
71
91
|
labels?: string[] | undefined;
|
|
92
|
+
ascending?: boolean | undefined;
|
|
72
93
|
}, {
|
|
73
94
|
inbox_id: string;
|
|
74
95
|
limit?: number | undefined;
|
|
75
96
|
page_token?: string | undefined;
|
|
76
97
|
labels?: string[] | undefined;
|
|
98
|
+
ascending?: boolean | undefined;
|
|
77
99
|
}>;
|
|
78
100
|
declare const GetMessageParams: z.ZodObject<{
|
|
79
101
|
inbox_id: z.ZodString;
|
|
@@ -93,9 +115,11 @@ declare const SendMessageParams: z.ZodObject<{
|
|
|
93
115
|
subject: z.ZodOptional<z.ZodString>;
|
|
94
116
|
text: z.ZodOptional<z.ZodString>;
|
|
95
117
|
html: z.ZodOptional<z.ZodString>;
|
|
118
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
96
119
|
}, "strip", z.ZodTypeAny, {
|
|
97
120
|
inbox_id: string;
|
|
98
121
|
to: string[];
|
|
122
|
+
labels?: string[] | undefined;
|
|
99
123
|
cc?: string[] | undefined;
|
|
100
124
|
bcc?: string[] | undefined;
|
|
101
125
|
subject?: string | undefined;
|
|
@@ -104,6 +128,7 @@ declare const SendMessageParams: z.ZodObject<{
|
|
|
104
128
|
}, {
|
|
105
129
|
inbox_id: string;
|
|
106
130
|
to: string[];
|
|
131
|
+
labels?: string[] | undefined;
|
|
107
132
|
cc?: string[] | undefined;
|
|
108
133
|
bcc?: string[] | undefined;
|
|
109
134
|
subject?: string | undefined;
|
|
@@ -115,16 +140,110 @@ declare const ReplyToMessageParams: z.ZodObject<{
|
|
|
115
140
|
message_id: z.ZodString;
|
|
116
141
|
text: z.ZodOptional<z.ZodString>;
|
|
117
142
|
html: z.ZodOptional<z.ZodString>;
|
|
143
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
118
144
|
}, "strip", z.ZodTypeAny, {
|
|
119
145
|
inbox_id: string;
|
|
120
146
|
message_id: string;
|
|
147
|
+
labels?: string[] | undefined;
|
|
121
148
|
text?: string | undefined;
|
|
122
149
|
html?: string | undefined;
|
|
123
150
|
}, {
|
|
124
151
|
inbox_id: string;
|
|
125
152
|
message_id: string;
|
|
153
|
+
labels?: string[] | undefined;
|
|
126
154
|
text?: string | undefined;
|
|
127
155
|
html?: string | undefined;
|
|
128
156
|
}>;
|
|
157
|
+
declare const UpdateMessageParams: z.ZodObject<{
|
|
158
|
+
inbox_id: z.ZodString;
|
|
159
|
+
message_id: z.ZodString;
|
|
160
|
+
add_labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
161
|
+
remove_labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
162
|
+
}, "strip", z.ZodTypeAny, {
|
|
163
|
+
inbox_id: string;
|
|
164
|
+
message_id: string;
|
|
165
|
+
add_labels?: string[] | undefined;
|
|
166
|
+
remove_labels?: string[] | undefined;
|
|
167
|
+
}, {
|
|
168
|
+
inbox_id: string;
|
|
169
|
+
message_id: string;
|
|
170
|
+
add_labels?: string[] | undefined;
|
|
171
|
+
remove_labels?: string[] | undefined;
|
|
172
|
+
}>;
|
|
173
|
+
declare const ListDraftsParams: z.ZodObject<{
|
|
174
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
175
|
+
page_token: z.ZodOptional<z.ZodString>;
|
|
176
|
+
} & {
|
|
177
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
178
|
+
ascending: z.ZodOptional<z.ZodBoolean>;
|
|
179
|
+
} & {
|
|
180
|
+
inbox_id: z.ZodString;
|
|
181
|
+
}, "strip", z.ZodTypeAny, {
|
|
182
|
+
inbox_id: string;
|
|
183
|
+
limit?: number | undefined;
|
|
184
|
+
page_token?: string | undefined;
|
|
185
|
+
labels?: string[] | undefined;
|
|
186
|
+
ascending?: boolean | undefined;
|
|
187
|
+
}, {
|
|
188
|
+
inbox_id: string;
|
|
189
|
+
limit?: number | undefined;
|
|
190
|
+
page_token?: string | undefined;
|
|
191
|
+
labels?: string[] | undefined;
|
|
192
|
+
ascending?: boolean | undefined;
|
|
193
|
+
}>;
|
|
194
|
+
declare const GetDraftParams: z.ZodObject<{
|
|
195
|
+
inbox_id: z.ZodString;
|
|
196
|
+
draft_id: z.ZodString;
|
|
197
|
+
}, "strip", z.ZodTypeAny, {
|
|
198
|
+
inbox_id: string;
|
|
199
|
+
draft_id: string;
|
|
200
|
+
}, {
|
|
201
|
+
inbox_id: string;
|
|
202
|
+
draft_id: string;
|
|
203
|
+
}>;
|
|
204
|
+
declare const CreateDraftParams: z.ZodObject<{
|
|
205
|
+
inbox_id: z.ZodString;
|
|
206
|
+
to: z.ZodArray<z.ZodString, "many">;
|
|
207
|
+
cc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
208
|
+
bcc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
209
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
210
|
+
text: z.ZodOptional<z.ZodString>;
|
|
211
|
+
html: z.ZodOptional<z.ZodString>;
|
|
212
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
213
|
+
}, "strip", z.ZodTypeAny, {
|
|
214
|
+
inbox_id: string;
|
|
215
|
+
to: string[];
|
|
216
|
+
labels?: string[] | undefined;
|
|
217
|
+
cc?: string[] | undefined;
|
|
218
|
+
bcc?: string[] | undefined;
|
|
219
|
+
subject?: string | undefined;
|
|
220
|
+
text?: string | undefined;
|
|
221
|
+
html?: string | undefined;
|
|
222
|
+
}, {
|
|
223
|
+
inbox_id: string;
|
|
224
|
+
to: string[];
|
|
225
|
+
labels?: string[] | undefined;
|
|
226
|
+
cc?: string[] | undefined;
|
|
227
|
+
bcc?: string[] | undefined;
|
|
228
|
+
subject?: string | undefined;
|
|
229
|
+
text?: string | undefined;
|
|
230
|
+
html?: string | undefined;
|
|
231
|
+
}>;
|
|
232
|
+
declare const SendDraftParams: z.ZodObject<{
|
|
233
|
+
inbox_id: z.ZodString;
|
|
234
|
+
draft_id: z.ZodString;
|
|
235
|
+
add_labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
236
|
+
remove_labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
237
|
+
}, "strip", z.ZodTypeAny, {
|
|
238
|
+
inbox_id: string;
|
|
239
|
+
draft_id: string;
|
|
240
|
+
add_labels?: string[] | undefined;
|
|
241
|
+
remove_labels?: string[] | undefined;
|
|
242
|
+
}, {
|
|
243
|
+
inbox_id: string;
|
|
244
|
+
draft_id: string;
|
|
245
|
+
add_labels?: string[] | undefined;
|
|
246
|
+
remove_labels?: string[] | undefined;
|
|
247
|
+
}>;
|
|
129
248
|
|
|
130
|
-
export { CreateInboxParams, GetInboxParams, GetMessageParams, GetThreadParams, ListItemsParams, ListMessagesParams, ListThreadsParams, ReplyToMessageParams, SendMessageParams };
|
|
249
|
+
export { CreateDraftParams, CreateInboxParams, GetDraftParams, GetInboxParams, GetMessageParams, GetThreadParams, ListDraftsParams, ListInboxItemsParams, ListItemsParams, ListMessagesParams, ListThreadsParams, ReplyToMessageParams, SendDraftParams, SendMessageParams, UpdateMessageParams };
|
package/dist/index.js
CHANGED
|
@@ -20,15 +20,21 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
+
CreateDraftParams: () => CreateDraftParams,
|
|
23
24
|
CreateInboxParams: () => CreateInboxParams,
|
|
25
|
+
GetDraftParams: () => GetDraftParams,
|
|
24
26
|
GetInboxParams: () => GetInboxParams,
|
|
25
27
|
GetMessageParams: () => GetMessageParams,
|
|
26
28
|
GetThreadParams: () => GetThreadParams,
|
|
29
|
+
ListDraftsParams: () => ListDraftsParams,
|
|
30
|
+
ListInboxItemsParams: () => ListInboxItemsParams,
|
|
27
31
|
ListItemsParams: () => ListItemsParams,
|
|
28
32
|
ListMessagesParams: () => ListMessagesParams,
|
|
29
33
|
ListThreadsParams: () => ListThreadsParams,
|
|
30
34
|
ReplyToMessageParams: () => ReplyToMessageParams,
|
|
35
|
+
SendDraftParams: () => SendDraftParams,
|
|
31
36
|
SendMessageParams: () => SendMessageParams,
|
|
37
|
+
UpdateMessageParams: () => UpdateMessageParams,
|
|
32
38
|
tools: () => tools
|
|
33
39
|
});
|
|
34
40
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -39,6 +45,10 @@ var ListItemsParams = import_zod.z.object({
|
|
|
39
45
|
limit: import_zod.z.number().optional().describe("Max number of items to return"),
|
|
40
46
|
page_token: import_zod.z.string().optional().describe("Page token for pagination")
|
|
41
47
|
});
|
|
48
|
+
var ListInboxItemsParams = ListItemsParams.extend({
|
|
49
|
+
labels: import_zod.z.array(import_zod.z.string()).optional().describe("Labels to filter items by"),
|
|
50
|
+
ascending: import_zod.z.boolean().optional().describe("Sort items in ascending order")
|
|
51
|
+
});
|
|
42
52
|
var GetInboxParams = import_zod.z.object({
|
|
43
53
|
inbox_id: import_zod.z.string().describe("ID of inbox to get")
|
|
44
54
|
});
|
|
@@ -47,17 +57,14 @@ var CreateInboxParams = import_zod.z.object({
|
|
|
47
57
|
domain: import_zod.z.string().optional().describe("Domain of inbox to create"),
|
|
48
58
|
display_name: import_zod.z.string().optional().describe("Display name of inbox to create")
|
|
49
59
|
});
|
|
50
|
-
var ListThreadsParams =
|
|
51
|
-
inbox_id: import_zod.z.string().describe("ID of inbox to list threads from")
|
|
52
|
-
labels: import_zod.z.array(import_zod.z.string()).optional().describe("Labels to filter threads by")
|
|
60
|
+
var ListThreadsParams = ListInboxItemsParams.extend({
|
|
61
|
+
inbox_id: import_zod.z.string().describe("ID of inbox to list threads from")
|
|
53
62
|
});
|
|
54
63
|
var GetThreadParams = import_zod.z.object({
|
|
55
|
-
inbox_id: import_zod.z.string().describe("ID of inbox to get thread from"),
|
|
56
64
|
thread_id: import_zod.z.string().describe("ID of thread to get")
|
|
57
65
|
});
|
|
58
|
-
var ListMessagesParams =
|
|
59
|
-
inbox_id: import_zod.z.string().describe("ID of inbox to list messages from")
|
|
60
|
-
labels: import_zod.z.array(import_zod.z.string()).optional().describe("Labels to filter messages by")
|
|
66
|
+
var ListMessagesParams = ListInboxItemsParams.extend({
|
|
67
|
+
inbox_id: import_zod.z.string().describe("ID of inbox to list messages from")
|
|
61
68
|
});
|
|
62
69
|
var GetMessageParams = import_zod.z.object({
|
|
63
70
|
inbox_id: import_zod.z.string().describe("ID of inbox to get message from"),
|
|
@@ -70,13 +77,44 @@ var SendMessageParams = import_zod.z.object({
|
|
|
70
77
|
bcc: import_zod.z.array(import_zod.z.string()).optional().describe("BCC recipients of message"),
|
|
71
78
|
subject: import_zod.z.string().optional().describe("Subject of message"),
|
|
72
79
|
text: import_zod.z.string().optional().describe("Plain text body of message"),
|
|
73
|
-
html: import_zod.z.string().optional().describe("HTML body of message")
|
|
80
|
+
html: import_zod.z.string().optional().describe("HTML body of message"),
|
|
81
|
+
labels: import_zod.z.array(import_zod.z.string()).optional().describe("Labels to add to message")
|
|
74
82
|
});
|
|
75
83
|
var ReplyToMessageParams = import_zod.z.object({
|
|
76
84
|
inbox_id: import_zod.z.string().describe("ID of inbox to reply to message from"),
|
|
77
85
|
message_id: import_zod.z.string().describe("ID of message to reply to"),
|
|
78
86
|
text: import_zod.z.string().optional().describe("Plain text body of reply"),
|
|
79
|
-
html: import_zod.z.string().optional().describe("HTML body of reply")
|
|
87
|
+
html: import_zod.z.string().optional().describe("HTML body of reply"),
|
|
88
|
+
labels: import_zod.z.array(import_zod.z.string()).optional().describe("Labels to add to reply")
|
|
89
|
+
});
|
|
90
|
+
var UpdateMessageParams = import_zod.z.object({
|
|
91
|
+
inbox_id: import_zod.z.string().describe("ID of inbox to update message from"),
|
|
92
|
+
message_id: import_zod.z.string().describe("ID of message to update"),
|
|
93
|
+
add_labels: import_zod.z.array(import_zod.z.string()).optional().describe("Labels to add to message"),
|
|
94
|
+
remove_labels: import_zod.z.array(import_zod.z.string()).optional().describe("Labels to remove from message")
|
|
95
|
+
});
|
|
96
|
+
var ListDraftsParams = ListInboxItemsParams.extend({
|
|
97
|
+
inbox_id: import_zod.z.string().describe("ID of inbox to list drafts from")
|
|
98
|
+
});
|
|
99
|
+
var GetDraftParams = import_zod.z.object({
|
|
100
|
+
inbox_id: import_zod.z.string().describe("ID of inbox to get draft from"),
|
|
101
|
+
draft_id: import_zod.z.string().describe("ID of draft to get")
|
|
102
|
+
});
|
|
103
|
+
var CreateDraftParams = import_zod.z.object({
|
|
104
|
+
inbox_id: import_zod.z.string().describe("ID of inbox to create draft from"),
|
|
105
|
+
to: import_zod.z.array(import_zod.z.string()).describe("Recipients of draft"),
|
|
106
|
+
cc: import_zod.z.array(import_zod.z.string()).optional().describe("CC recipients of draft"),
|
|
107
|
+
bcc: import_zod.z.array(import_zod.z.string()).optional().describe("BCC recipients of draft"),
|
|
108
|
+
subject: import_zod.z.string().optional().describe("Subject of draft"),
|
|
109
|
+
text: import_zod.z.string().optional().describe("Plain text body of draft"),
|
|
110
|
+
html: import_zod.z.string().optional().describe("HTML body of draft"),
|
|
111
|
+
labels: import_zod.z.array(import_zod.z.string()).optional().describe("Labels to add to draft")
|
|
112
|
+
});
|
|
113
|
+
var SendDraftParams = import_zod.z.object({
|
|
114
|
+
inbox_id: import_zod.z.string().describe("ID of inbox to send draft from"),
|
|
115
|
+
draft_id: import_zod.z.string().describe("ID of draft to send"),
|
|
116
|
+
add_labels: import_zod.z.array(import_zod.z.string()).optional().describe("Labels to add to sent message"),
|
|
117
|
+
remove_labels: import_zod.z.array(import_zod.z.string()).optional().describe("Labels to remove from sent message")
|
|
80
118
|
});
|
|
81
119
|
|
|
82
120
|
// src/tools.ts
|
|
@@ -96,7 +134,7 @@ var tools = [
|
|
|
96
134
|
{
|
|
97
135
|
name: "create_inbox",
|
|
98
136
|
method: "inboxes.create",
|
|
99
|
-
description: "Create inbox
|
|
137
|
+
description: "Create inbox",
|
|
100
138
|
schema: CreateInboxParams
|
|
101
139
|
},
|
|
102
140
|
{
|
|
@@ -105,9 +143,15 @@ var tools = [
|
|
|
105
143
|
description: "List threads in inbox",
|
|
106
144
|
schema: ListThreadsParams
|
|
107
145
|
},
|
|
146
|
+
{
|
|
147
|
+
name: "list_all_threads",
|
|
148
|
+
method: "threads.list",
|
|
149
|
+
description: "List threads in all inboxes",
|
|
150
|
+
schema: ListInboxItemsParams
|
|
151
|
+
},
|
|
108
152
|
{
|
|
109
153
|
name: "get_thread",
|
|
110
|
-
method: "
|
|
154
|
+
method: "threads.get",
|
|
111
155
|
description: "Get thread",
|
|
112
156
|
schema: GetThreadParams
|
|
113
157
|
},
|
|
@@ -117,9 +161,15 @@ var tools = [
|
|
|
117
161
|
description: "List messages in inbox",
|
|
118
162
|
schema: ListMessagesParams
|
|
119
163
|
},
|
|
164
|
+
{
|
|
165
|
+
name: "list_all_messages",
|
|
166
|
+
method: "messages.list",
|
|
167
|
+
description: "List messages in all inboxes",
|
|
168
|
+
schema: ListInboxItemsParams
|
|
169
|
+
},
|
|
120
170
|
{
|
|
121
171
|
name: "get_message",
|
|
122
|
-
method: "
|
|
172
|
+
method: "messages.get",
|
|
123
173
|
description: "Get message",
|
|
124
174
|
schema: GetMessageParams
|
|
125
175
|
},
|
|
@@ -134,19 +184,61 @@ var tools = [
|
|
|
134
184
|
method: "inboxes.messages.reply",
|
|
135
185
|
description: "Reply to message",
|
|
136
186
|
schema: ReplyToMessageParams
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
name: "update_message",
|
|
190
|
+
method: "inboxes.messages.update",
|
|
191
|
+
description: "Update message",
|
|
192
|
+
schema: UpdateMessageParams
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
name: "list_drafts",
|
|
196
|
+
method: "inboxes.drafts.list",
|
|
197
|
+
description: "List drafts in inbox",
|
|
198
|
+
schema: ListDraftsParams
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
name: "list_all_drafts",
|
|
202
|
+
method: "drafts.list",
|
|
203
|
+
description: "List drafts in all inboxes",
|
|
204
|
+
schema: ListInboxItemsParams
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: "get_draft",
|
|
208
|
+
method: "drafts.get",
|
|
209
|
+
description: "Get draft",
|
|
210
|
+
schema: GetDraftParams
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: "create_draft",
|
|
214
|
+
method: "inboxes.drafts.create",
|
|
215
|
+
description: "Create draft",
|
|
216
|
+
schema: CreateDraftParams
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
name: "send_draft",
|
|
220
|
+
method: "inboxes.drafts.send",
|
|
221
|
+
description: "Send draft",
|
|
222
|
+
schema: SendDraftParams
|
|
137
223
|
}
|
|
138
224
|
];
|
|
139
225
|
// Annotate the CommonJS export names for ESM import in node:
|
|
140
226
|
0 && (module.exports = {
|
|
227
|
+
CreateDraftParams,
|
|
141
228
|
CreateInboxParams,
|
|
229
|
+
GetDraftParams,
|
|
142
230
|
GetInboxParams,
|
|
143
231
|
GetMessageParams,
|
|
144
232
|
GetThreadParams,
|
|
233
|
+
ListDraftsParams,
|
|
234
|
+
ListInboxItemsParams,
|
|
145
235
|
ListItemsParams,
|
|
146
236
|
ListMessagesParams,
|
|
147
237
|
ListThreadsParams,
|
|
148
238
|
ReplyToMessageParams,
|
|
239
|
+
SendDraftParams,
|
|
149
240
|
SendMessageParams,
|
|
241
|
+
UpdateMessageParams,
|
|
150
242
|
tools
|
|
151
243
|
});
|
|
152
244
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/schemas.ts","../src/tools.ts"],"sourcesContent":["export * from './schemas'\nexport * from './tools'\n","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 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 = ListItemsParams.extend({\n inbox_id: z.string().describe('ID of inbox to list threads from'),\n labels: z.array(z.string()).optional().describe('Labels to filter threads by'),\n})\n\nexport const GetThreadParams = z.object({\n inbox_id: z.string().describe('ID of inbox to get thread from'),\n thread_id: z.string().describe('ID of thread to get'),\n})\n\nexport const ListMessagesParams = ListItemsParams.extend({\n inbox_id: z.string().describe('ID of inbox to list messages from'),\n labels: z.array(z.string()).optional().describe('Labels to filter messages by'),\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})\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})\n","import { AnyZodObject } from 'zod'\n\nimport {\n ListItemsParams,\n GetInboxParams,\n CreateInboxParams,\n ListThreadsParams,\n GetThreadParams,\n ListMessagesParams,\n GetMessageParams,\n SendMessageParams,\n ReplyToMessageParams,\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. Use default username, domain, and display name unless otherwise specified.',\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: 'get_thread',\n method: 'inboxes.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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,iBAAkB;AAEX,IAAM,kBAAkB,aAAE,OAAO;AAAA,EACpC,OAAO,aAAE,OAAO,EAAE,SAAS,EAA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,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":[]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/schemas.ts","../src/tools.ts"],"sourcesContent":["export * from './schemas'\nexport * from './tools'\n","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: 'list_all_messages',\n method: 'messages.list',\n description: 'List messages in all inboxes',\n schema: ListInboxItemsParams,\n },\n {\n name: 'get_message',\n method: '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 sch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