agentmail-toolkit 0.1.23 → 0.1.25
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 +85 -11
- 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-EZFSHUCP.mjs +71 -0
- package/dist/chunk-EZFSHUCP.mjs.map +1 -0
- package/dist/chunk-HKK5SMM3.mjs +197 -0
- package/dist/chunk-HKK5SMM3.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 +97 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -1
- package/dist/langchain.js +85 -11
- package/dist/langchain.js.map +1 -1
- package/dist/langchain.mjs +2 -2
- package/dist/mcp.js +85 -11
- package/dist/mcp.js.map +1 -1
- package/dist/mcp.mjs +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,203 @@
|
|
|
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: "list_all_messages",
|
|
125
|
+
method: "messages.list",
|
|
126
|
+
description: "List messages in all inboxes",
|
|
127
|
+
schema: ListInboxItemsParams
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: "get_message",
|
|
131
|
+
method: "messages.get",
|
|
132
|
+
description: "Get message",
|
|
133
|
+
schema: GetMessageParams
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: "send_message",
|
|
137
|
+
method: "inboxes.messages.send",
|
|
138
|
+
description: "Send message",
|
|
139
|
+
schema: SendMessageParams
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
name: "reply_to_message",
|
|
143
|
+
method: "inboxes.messages.reply",
|
|
144
|
+
description: "Reply to message",
|
|
145
|
+
schema: ReplyToMessageParams
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: "update_message",
|
|
149
|
+
method: "inboxes.messages.update",
|
|
150
|
+
description: "Update message",
|
|
151
|
+
schema: UpdateMessageParams
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: "list_drafts",
|
|
155
|
+
method: "inboxes.drafts.list",
|
|
156
|
+
description: "List drafts in inbox",
|
|
157
|
+
schema: ListDraftsParams
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
name: "list_all_drafts",
|
|
161
|
+
method: "drafts.list",
|
|
162
|
+
description: "List drafts in all inboxes",
|
|
163
|
+
schema: ListInboxItemsParams
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: "get_draft",
|
|
167
|
+
method: "drafts.get",
|
|
168
|
+
description: "Get draft",
|
|
169
|
+
schema: GetDraftParams
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
name: "create_draft",
|
|
173
|
+
method: "inboxes.drafts.create",
|
|
174
|
+
description: "Create draft",
|
|
175
|
+
schema: CreateDraftParams
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
name: "send_draft",
|
|
179
|
+
method: "inboxes.drafts.send",
|
|
180
|
+
description: "Send draft",
|
|
181
|
+
schema: SendDraftParams
|
|
182
|
+
}
|
|
183
|
+
];
|
|
184
|
+
|
|
185
|
+
export {
|
|
186
|
+
ListItemsParams,
|
|
187
|
+
ListInboxItemsParams,
|
|
188
|
+
GetInboxParams,
|
|
189
|
+
CreateInboxParams,
|
|
190
|
+
ListThreadsParams,
|
|
191
|
+
GetThreadParams,
|
|
192
|
+
ListMessagesParams,
|
|
193
|
+
GetMessageParams,
|
|
194
|
+
SendMessageParams,
|
|
195
|
+
ReplyToMessageParams,
|
|
196
|
+
UpdateMessageParams,
|
|
197
|
+
ListDraftsParams,
|
|
198
|
+
GetDraftParams,
|
|
199
|
+
CreateDraftParams,
|
|
200
|
+
SendDraftParams,
|
|
201
|
+
tools
|
|
202
|
+
};
|
|
203
|
+
//# sourceMappingURL=chunk-VRB6MXGP.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
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: '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 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;A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,IACN,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,QAAQ;AAAA,EACZ;AACJ;","names":[]}
|
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 };
|