@frogbotai/piece-microsoft-outlook 0.0.0-stage → 0.40.0

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.
Files changed (123) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +80 -2
  3. package/dist/actions/categories.d.ts +82 -0
  4. package/dist/actions/categories.d.ts.map +1 -0
  5. package/dist/actions/categories.js +54 -0
  6. package/dist/actions/categories.js.map +1 -0
  7. package/dist/actions/createDraftEmail.d.ts +154 -0
  8. package/dist/actions/createDraftEmail.d.ts.map +1 -0
  9. package/dist/actions/createDraftEmail.js +24 -0
  10. package/dist/actions/createDraftEmail.js.map +1 -0
  11. package/dist/actions/createEvent.d.ts +109 -0
  12. package/dist/actions/createEvent.d.ts.map +1 -0
  13. package/dist/actions/createEvent.js +68 -0
  14. package/dist/actions/createEvent.js.map +1 -0
  15. package/dist/actions/customApiCall.d.ts +30 -0
  16. package/dist/actions/customApiCall.d.ts.map +1 -0
  17. package/dist/actions/customApiCall.js +9 -0
  18. package/dist/actions/customApiCall.js.map +1 -0
  19. package/dist/actions/deleteEvent.d.ts +41 -0
  20. package/dist/actions/deleteEvent.d.ts.map +1 -0
  21. package/dist/actions/deleteEvent.js +38 -0
  22. package/dist/actions/deleteEvent.js.map +1 -0
  23. package/dist/actions/downloadAttachment.d.ts +50 -0
  24. package/dist/actions/downloadAttachment.d.ts.map +1 -0
  25. package/dist/actions/downloadAttachment.js +51 -0
  26. package/dist/actions/downloadAttachment.js.map +1 -0
  27. package/dist/actions/findFreeBusyPeriods.d.ts +83 -0
  28. package/dist/actions/findFreeBusyPeriods.d.ts.map +1 -0
  29. package/dist/actions/findFreeBusyPeriods.js +66 -0
  30. package/dist/actions/findFreeBusyPeriods.js.map +1 -0
  31. package/dist/actions/forwardEmail.d.ts +43 -0
  32. package/dist/actions/forwardEmail.d.ts.map +1 -0
  33. package/dist/actions/forwardEmail.js +35 -0
  34. package/dist/actions/forwardEmail.js.map +1 -0
  35. package/dist/actions/listCalendars.d.ts +52 -0
  36. package/dist/actions/listCalendars.d.ts.map +1 -0
  37. package/dist/actions/listCalendars.js +27 -0
  38. package/dist/actions/listCalendars.js.map +1 -0
  39. package/dist/actions/listContacts.d.ts +81 -0
  40. package/dist/actions/listContacts.d.ts.map +1 -0
  41. package/dist/actions/listContacts.js +36 -0
  42. package/dist/actions/listContacts.js.map +1 -0
  43. package/dist/actions/listEmails.d.ts +161 -0
  44. package/dist/actions/listEmails.d.ts.map +1 -0
  45. package/dist/actions/listEmails.js +35 -0
  46. package/dist/actions/listEmails.js.map +1 -0
  47. package/dist/actions/listEvents.d.ts +118 -0
  48. package/dist/actions/listEvents.d.ts.map +1 -0
  49. package/dist/actions/listEvents.js +42 -0
  50. package/dist/actions/listEvents.js.map +1 -0
  51. package/dist/actions/listMailFolders.d.ts +68 -0
  52. package/dist/actions/listMailFolders.d.ts.map +1 -0
  53. package/dist/actions/listMailFolders.js +35 -0
  54. package/dist/actions/listMailFolders.js.map +1 -0
  55. package/dist/actions/moveEmail.d.ts +143 -0
  56. package/dist/actions/moveEmail.d.ts.map +1 -0
  57. package/dist/actions/moveEmail.js +28 -0
  58. package/dist/actions/moveEmail.js.map +1 -0
  59. package/dist/actions/replyToEmail.d.ts +157 -0
  60. package/dist/actions/replyToEmail.d.ts.map +1 -0
  61. package/dist/actions/replyToEmail.js +57 -0
  62. package/dist/actions/replyToEmail.js.map +1 -0
  63. package/dist/actions/searchEmails.d.ts +144 -0
  64. package/dist/actions/searchEmails.d.ts.map +1 -0
  65. package/dist/actions/searchEmails.js +31 -0
  66. package/dist/actions/searchEmails.js.map +1 -0
  67. package/dist/actions/sendDraft.d.ts +41 -0
  68. package/dist/actions/sendDraft.d.ts.map +1 -0
  69. package/dist/actions/sendDraft.js +31 -0
  70. package/dist/actions/sendDraft.js.map +1 -0
  71. package/dist/actions/sendEmail.d.ts +51 -0
  72. package/dist/actions/sendEmail.d.ts.map +1 -0
  73. package/dist/actions/sendEmail.js +32 -0
  74. package/dist/actions/sendEmail.js.map +1 -0
  75. package/dist/calendar.d.ts +39 -0
  76. package/dist/calendar.d.ts.map +1 -0
  77. package/dist/calendar.js +51 -0
  78. package/dist/calendar.js.map +1 -0
  79. package/dist/client.d.ts +39 -0
  80. package/dist/client.d.ts.map +1 -0
  81. package/dist/client.js +208 -0
  82. package/dist/client.js.map +1 -0
  83. package/dist/config.d.ts +33 -0
  84. package/dist/config.d.ts.map +1 -0
  85. package/dist/config.js +47 -0
  86. package/dist/config.js.map +1 -0
  87. package/dist/define.d.ts +220 -0
  88. package/dist/define.d.ts.map +1 -0
  89. package/dist/define.js +4 -0
  90. package/dist/define.js.map +1 -0
  91. package/dist/files.d.ts +27 -0
  92. package/dist/files.d.ts.map +1 -0
  93. package/dist/files.js +89 -0
  94. package/dist/files.js.map +1 -0
  95. package/dist/index.d.ts +4646 -0
  96. package/dist/index.d.ts.map +1 -0
  97. package/dist/index.js +130 -0
  98. package/dist/index.js.map +1 -0
  99. package/dist/mail.d.ts +124 -0
  100. package/dist/mail.d.ts.map +1 -0
  101. package/dist/mail.js +79 -0
  102. package/dist/mail.js.map +1 -0
  103. package/dist/pagination.d.ts +33 -0
  104. package/dist/pagination.d.ts.map +1 -0
  105. package/dist/pagination.js +39 -0
  106. package/dist/pagination.js.map +1 -0
  107. package/dist/triggers/newAttachment.d.ts +243 -0
  108. package/dist/triggers/newAttachment.d.ts.map +1 -0
  109. package/dist/triggers/newAttachment.js +64 -0
  110. package/dist/triggers/newAttachment.js.map +1 -0
  111. package/dist/triggers/newEmail.d.ts +221 -0
  112. package/dist/triggers/newEmail.d.ts.map +1 -0
  113. package/dist/triggers/newEmail.js +33 -0
  114. package/dist/triggers/newEmail.js.map +1 -0
  115. package/dist/triggers/newEmailInFolder.d.ts +219 -0
  116. package/dist/triggers/newEmailInFolder.d.ts.map +1 -0
  117. package/dist/triggers/newEmailInFolder.js +31 -0
  118. package/dist/triggers/newEmailInFolder.js.map +1 -0
  119. package/dist/triggers/poll.d.ts +28 -0
  120. package/dist/triggers/poll.d.ts.map +1 -0
  121. package/dist/triggers/poll.js +70 -0
  122. package/dist/triggers/poll.js.map +1 -0
  123. package/package.json +42 -3
@@ -0,0 +1,4646 @@
1
+ import { type MicrosoftEnvironment } from '@frogbotai/piece-microsoft';
2
+ import { z } from 'zod';
3
+ import { microsoftOutlookScopes } from './config.js';
4
+ export declare const microsoftOutlookActions: readonly ["sendEmail", "replyToEmail", "forwardEmail", "createDraftEmail", "sendDraft", "moveEmail", "addCategory", "removeCategory", "searchEmails", "downloadAttachment", "createEvent", "deleteEvent", "listCalendars", "findFreeBusyPeriods", "listMailFolders", "listEmails", "listEvents", "listContacts", "customApiCall"];
5
+ export declare const microsoftOutlookTriggers: readonly ["newEmail", "newEmailInFolder", "newAttachment"];
6
+ export { microsoftOutlookScopes };
7
+ export { MicrosoftGraphError } from './client.js';
8
+ export declare function defineMicrosoftOutlook(environment?: MicrosoftEnvironment): import("frogbot/pieces").PieceFactory<{
9
+ readonly slug: "microsoft-outlook";
10
+ readonly label: "Microsoft Outlook";
11
+ readonly admin: {
12
+ readonly description: "Send, file and search Outlook mail, and manage calendar events";
13
+ readonly group: "Communication";
14
+ };
15
+ readonly auth: z.ZodObject<{
16
+ accessToken: z.ZodOptional<z.ZodString>;
17
+ refreshToken: z.ZodOptional<z.ZodString>;
18
+ clientId: z.ZodOptional<z.ZodString>;
19
+ clientSecret: z.ZodOptional<z.ZodString>;
20
+ mailbox: z.ZodOptional<z.ZodString>;
21
+ cloud: z.ZodDefault<z.ZodLiteral<"login.microsoftonline.com" | "login.microsoftonline.us">>;
22
+ tenantId: z.ZodDefault<z.ZodString>;
23
+ }, z.core.$strip>;
24
+ readonly client: ({ auth }: {
25
+ auth: unknown;
26
+ }) => {
27
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
28
+ mailbox: string;
29
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
30
+ method?: string;
31
+ body?: unknown;
32
+ headers?: Record<string, string>;
33
+ query?: Record<string, string | number | undefined>;
34
+ signal?: AbortSignal;
35
+ }) => Promise<T>;
36
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
37
+ method?: string;
38
+ body?: unknown;
39
+ headers?: Record<string, string>;
40
+ query?: Record<string, string | number | undefined>;
41
+ signal?: AbortSignal;
42
+ }) => Promise<{
43
+ value: T[];
44
+ nextLink: string | null;
45
+ }>;
46
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
47
+ method?: string;
48
+ body?: unknown;
49
+ headers?: Record<string, string>;
50
+ query?: Record<string, string | number | undefined>;
51
+ signal?: AbortSignal;
52
+ }) => Promise<T[]>;
53
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
54
+ };
55
+ readonly oauth: {
56
+ readonly scopes: {
57
+ readonly catalog: {
58
+ readonly 'Mail.Read': "Mail.Read";
59
+ readonly 'Mail.ReadWrite': "Mail.ReadWrite";
60
+ readonly 'Mail.Send': "Mail.Send";
61
+ readonly 'Calendars.Read': "Calendars.Read";
62
+ readonly 'Calendars.ReadWrite': "Calendars.ReadWrite";
63
+ readonly 'Contacts.Read': "Contacts.Read";
64
+ readonly openid: "openid";
65
+ readonly email: "email";
66
+ readonly profile: "profile";
67
+ readonly offline_access: "offline_access";
68
+ readonly 'User.Read': "User.Read";
69
+ };
70
+ readonly defaults: readonly ["Mail.ReadWrite", "Mail.Send", "Calendars.ReadWrite", "Contacts.Read"];
71
+ readonly required: readonly ["offline_access", "User.Read", "openid", "email", "profile"];
72
+ };
73
+ readonly toAuth: ({ tokens }: {
74
+ tokens: import("frogbot/pieces").OAuthTokens;
75
+ }) => {
76
+ accessToken: string;
77
+ refreshToken: string | undefined;
78
+ cloud: "login.microsoftonline.com" | "login.microsoftonline.us";
79
+ tenantId: string;
80
+ };
81
+ readonly authorizationUrl: string;
82
+ readonly tokenUrl: string;
83
+ readonly params: {
84
+ prompt: string;
85
+ };
86
+ readonly account: ({ tokens, req }: {
87
+ tokens: import("frogbot/pieces").OAuthTokens;
88
+ client: unknown;
89
+ req: import("frogbot/pieces").FrogBotRequest;
90
+ }) => Promise<{
91
+ id: string;
92
+ label: string;
93
+ email: string;
94
+ }>;
95
+ };
96
+ readonly actions: readonly [import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
97
+ body: z.ZodString;
98
+ bodyType: z.ZodDefault<z.ZodEnum<{
99
+ text: "text";
100
+ html: "html";
101
+ }>>;
102
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
103
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
104
+ name: z.ZodOptional<z.ZodString>;
105
+ }, z.core.$strip>>>;
106
+ subject: z.ZodString;
107
+ to: z.ZodArray<z.ZodEmail>;
108
+ cc: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
109
+ bcc: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
110
+ }, z.core.$strip>, z.ZodObject<{
111
+ sent: z.ZodLiteral<true>;
112
+ }, z.core.$strip>, Record<string, never>, {
113
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
114
+ mailbox: string;
115
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
116
+ method?: string;
117
+ body?: unknown;
118
+ headers?: Record<string, string>;
119
+ query?: Record<string, string | number | undefined>;
120
+ signal?: AbortSignal;
121
+ }) => Promise<T>;
122
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
123
+ method?: string;
124
+ body?: unknown;
125
+ headers?: Record<string, string>;
126
+ query?: Record<string, string | number | undefined>;
127
+ signal?: AbortSignal;
128
+ }) => Promise<{
129
+ value: T[];
130
+ nextLink: string | null;
131
+ }>;
132
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
133
+ method?: string;
134
+ body?: unknown;
135
+ headers?: Record<string, string>;
136
+ query?: Record<string, string | number | undefined>;
137
+ signal?: AbortSignal;
138
+ }) => Promise<T[]>;
139
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
140
+ }, {
141
+ sent: true;
142
+ }> & {
143
+ slug: "sendEmail";
144
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
145
+ messageId: z.ZodString;
146
+ body: z.ZodString;
147
+ replyAll: z.ZodDefault<z.ZodBoolean>;
148
+ cc: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
149
+ bcc: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
150
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
151
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
152
+ name: z.ZodOptional<z.ZodString>;
153
+ }, z.core.$strip>>>;
154
+ draft: z.ZodDefault<z.ZodBoolean>;
155
+ }, z.core.$strip>, z.ZodObject<{
156
+ draft: z.ZodObject<{
157
+ id: z.ZodString;
158
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
159
+ from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
160
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
161
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
163
+ }, z.core.$strip>>>;
164
+ }, z.core.$strip>>>;
165
+ sender: z.ZodOptional<z.ZodNullable<z.ZodObject<{
166
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
167
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
168
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
169
+ }, z.core.$strip>>>;
170
+ }, z.core.$strip>>>;
171
+ toRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
172
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
173
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
174
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
175
+ }, z.core.$strip>>>;
176
+ }, z.core.$strip>>>>;
177
+ ccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
178
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
179
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
180
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
181
+ }, z.core.$strip>>>;
182
+ }, z.core.$strip>>>>;
183
+ bccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
184
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
185
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
186
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
187
+ }, z.core.$strip>>>;
188
+ }, z.core.$strip>>>>;
189
+ replyTo: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
190
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
191
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
192
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
193
+ }, z.core.$strip>>>;
194
+ }, z.core.$strip>>>>;
195
+ receivedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
196
+ sentDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
197
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
198
+ parentFolderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
199
+ bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
200
+ body: z.ZodOptional<z.ZodNullable<z.ZodObject<{
201
+ contentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
202
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
203
+ }, z.core.$strip>>>;
204
+ categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
205
+ hasAttachments: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
206
+ isRead: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
207
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
208
+ webLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
209
+ }, z.core.$loose>;
210
+ sent: z.ZodBoolean;
211
+ }, z.core.$strip>, Record<string, never>, {
212
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
213
+ mailbox: string;
214
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
215
+ method?: string;
216
+ body?: unknown;
217
+ headers?: Record<string, string>;
218
+ query?: Record<string, string | number | undefined>;
219
+ signal?: AbortSignal;
220
+ }) => Promise<T>;
221
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
222
+ method?: string;
223
+ body?: unknown;
224
+ headers?: Record<string, string>;
225
+ query?: Record<string, string | number | undefined>;
226
+ signal?: AbortSignal;
227
+ }) => Promise<{
228
+ value: T[];
229
+ nextLink: string | null;
230
+ }>;
231
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
232
+ method?: string;
233
+ body?: unknown;
234
+ headers?: Record<string, string>;
235
+ query?: Record<string, string | number | undefined>;
236
+ signal?: AbortSignal;
237
+ }) => Promise<T[]>;
238
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
239
+ }, {
240
+ draft: {
241
+ [x: string]: unknown;
242
+ id: string;
243
+ subject?: string | null | undefined;
244
+ from?: {
245
+ emailAddress?: {
246
+ name?: string | null | undefined;
247
+ address?: string | null | undefined;
248
+ } | null | undefined;
249
+ } | null | undefined;
250
+ sender?: {
251
+ emailAddress?: {
252
+ name?: string | null | undefined;
253
+ address?: string | null | undefined;
254
+ } | null | undefined;
255
+ } | null | undefined;
256
+ toRecipients?: {
257
+ emailAddress?: {
258
+ name?: string | null | undefined;
259
+ address?: string | null | undefined;
260
+ } | null | undefined;
261
+ }[] | null | undefined;
262
+ ccRecipients?: {
263
+ emailAddress?: {
264
+ name?: string | null | undefined;
265
+ address?: string | null | undefined;
266
+ } | null | undefined;
267
+ }[] | null | undefined;
268
+ bccRecipients?: {
269
+ emailAddress?: {
270
+ name?: string | null | undefined;
271
+ address?: string | null | undefined;
272
+ } | null | undefined;
273
+ }[] | null | undefined;
274
+ replyTo?: {
275
+ emailAddress?: {
276
+ name?: string | null | undefined;
277
+ address?: string | null | undefined;
278
+ } | null | undefined;
279
+ }[] | null | undefined;
280
+ receivedDateTime?: string | null | undefined;
281
+ sentDateTime?: string | null | undefined;
282
+ conversationId?: string | null | undefined;
283
+ parentFolderId?: string | null | undefined;
284
+ bodyPreview?: string | null | undefined;
285
+ body?: {
286
+ contentType?: string | null | undefined;
287
+ content?: string | null | undefined;
288
+ } | null | undefined;
289
+ categories?: string[] | null | undefined;
290
+ hasAttachments?: boolean | null | undefined;
291
+ isRead?: boolean | null | undefined;
292
+ isDraft?: boolean | null | undefined;
293
+ webLink?: string | null | undefined;
294
+ };
295
+ sent: boolean;
296
+ }> & {
297
+ slug: "replyToEmail";
298
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
299
+ messageId: z.ZodString;
300
+ to: z.ZodArray<z.ZodEmail>;
301
+ comment: z.ZodOptional<z.ZodString>;
302
+ }, z.core.$strip>, z.ZodObject<{
303
+ messageId: z.ZodString;
304
+ forwarded: z.ZodLiteral<true>;
305
+ }, z.core.$strip>, Record<string, never>, {
306
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
307
+ mailbox: string;
308
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
309
+ method?: string;
310
+ body?: unknown;
311
+ headers?: Record<string, string>;
312
+ query?: Record<string, string | number | undefined>;
313
+ signal?: AbortSignal;
314
+ }) => Promise<T>;
315
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
316
+ method?: string;
317
+ body?: unknown;
318
+ headers?: Record<string, string>;
319
+ query?: Record<string, string | number | undefined>;
320
+ signal?: AbortSignal;
321
+ }) => Promise<{
322
+ value: T[];
323
+ nextLink: string | null;
324
+ }>;
325
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
326
+ method?: string;
327
+ body?: unknown;
328
+ headers?: Record<string, string>;
329
+ query?: Record<string, string | number | undefined>;
330
+ signal?: AbortSignal;
331
+ }) => Promise<T[]>;
332
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
333
+ }, {
334
+ messageId: string;
335
+ forwarded: true;
336
+ }> & {
337
+ slug: "forwardEmail";
338
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
339
+ body: z.ZodString;
340
+ bodyType: z.ZodDefault<z.ZodEnum<{
341
+ text: "text";
342
+ html: "html";
343
+ }>>;
344
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
345
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
346
+ name: z.ZodOptional<z.ZodString>;
347
+ }, z.core.$strip>>>;
348
+ subject: z.ZodString;
349
+ to: z.ZodArray<z.ZodEmail>;
350
+ cc: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
351
+ bcc: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
352
+ }, z.core.$strip>, z.ZodObject<{
353
+ id: z.ZodString;
354
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
355
+ from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
356
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
357
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
358
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
359
+ }, z.core.$strip>>>;
360
+ }, z.core.$strip>>>;
361
+ sender: z.ZodOptional<z.ZodNullable<z.ZodObject<{
362
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
363
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
364
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
365
+ }, z.core.$strip>>>;
366
+ }, z.core.$strip>>>;
367
+ toRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
368
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
369
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
370
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
371
+ }, z.core.$strip>>>;
372
+ }, z.core.$strip>>>>;
373
+ ccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
374
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
375
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
376
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
377
+ }, z.core.$strip>>>;
378
+ }, z.core.$strip>>>>;
379
+ bccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
380
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
381
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
382
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
383
+ }, z.core.$strip>>>;
384
+ }, z.core.$strip>>>>;
385
+ replyTo: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
386
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
387
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
388
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
389
+ }, z.core.$strip>>>;
390
+ }, z.core.$strip>>>>;
391
+ receivedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
392
+ sentDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
393
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
394
+ parentFolderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
395
+ bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
396
+ body: z.ZodOptional<z.ZodNullable<z.ZodObject<{
397
+ contentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
398
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
399
+ }, z.core.$strip>>>;
400
+ categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
401
+ hasAttachments: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
402
+ isRead: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
403
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
404
+ webLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
405
+ }, z.core.$loose>, Record<string, never>, {
406
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
407
+ mailbox: string;
408
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
409
+ method?: string;
410
+ body?: unknown;
411
+ headers?: Record<string, string>;
412
+ query?: Record<string, string | number | undefined>;
413
+ signal?: AbortSignal;
414
+ }) => Promise<T>;
415
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
416
+ method?: string;
417
+ body?: unknown;
418
+ headers?: Record<string, string>;
419
+ query?: Record<string, string | number | undefined>;
420
+ signal?: AbortSignal;
421
+ }) => Promise<{
422
+ value: T[];
423
+ nextLink: string | null;
424
+ }>;
425
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
426
+ method?: string;
427
+ body?: unknown;
428
+ headers?: Record<string, string>;
429
+ query?: Record<string, string | number | undefined>;
430
+ signal?: AbortSignal;
431
+ }) => Promise<T[]>;
432
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
433
+ }, {
434
+ [x: string]: unknown;
435
+ id: string;
436
+ subject?: string | null | undefined;
437
+ from?: {
438
+ emailAddress?: {
439
+ name?: string | null | undefined;
440
+ address?: string | null | undefined;
441
+ } | null | undefined;
442
+ } | null | undefined;
443
+ sender?: {
444
+ emailAddress?: {
445
+ name?: string | null | undefined;
446
+ address?: string | null | undefined;
447
+ } | null | undefined;
448
+ } | null | undefined;
449
+ toRecipients?: {
450
+ emailAddress?: {
451
+ name?: string | null | undefined;
452
+ address?: string | null | undefined;
453
+ } | null | undefined;
454
+ }[] | null | undefined;
455
+ ccRecipients?: {
456
+ emailAddress?: {
457
+ name?: string | null | undefined;
458
+ address?: string | null | undefined;
459
+ } | null | undefined;
460
+ }[] | null | undefined;
461
+ bccRecipients?: {
462
+ emailAddress?: {
463
+ name?: string | null | undefined;
464
+ address?: string | null | undefined;
465
+ } | null | undefined;
466
+ }[] | null | undefined;
467
+ replyTo?: {
468
+ emailAddress?: {
469
+ name?: string | null | undefined;
470
+ address?: string | null | undefined;
471
+ } | null | undefined;
472
+ }[] | null | undefined;
473
+ receivedDateTime?: string | null | undefined;
474
+ sentDateTime?: string | null | undefined;
475
+ conversationId?: string | null | undefined;
476
+ parentFolderId?: string | null | undefined;
477
+ bodyPreview?: string | null | undefined;
478
+ body?: {
479
+ contentType?: string | null | undefined;
480
+ content?: string | null | undefined;
481
+ } | null | undefined;
482
+ categories?: string[] | null | undefined;
483
+ hasAttachments?: boolean | null | undefined;
484
+ isRead?: boolean | null | undefined;
485
+ isDraft?: boolean | null | undefined;
486
+ webLink?: string | null | undefined;
487
+ }> & {
488
+ slug: "createDraftEmail";
489
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
490
+ messageId: z.ZodString;
491
+ }, z.core.$strip>, z.ZodObject<{
492
+ messageId: z.ZodString;
493
+ sent: z.ZodLiteral<true>;
494
+ }, z.core.$strip>, Record<string, never>, {
495
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
496
+ mailbox: string;
497
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
498
+ method?: string;
499
+ body?: unknown;
500
+ headers?: Record<string, string>;
501
+ query?: Record<string, string | number | undefined>;
502
+ signal?: AbortSignal;
503
+ }) => Promise<T>;
504
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
505
+ method?: string;
506
+ body?: unknown;
507
+ headers?: Record<string, string>;
508
+ query?: Record<string, string | number | undefined>;
509
+ signal?: AbortSignal;
510
+ }) => Promise<{
511
+ value: T[];
512
+ nextLink: string | null;
513
+ }>;
514
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
515
+ method?: string;
516
+ body?: unknown;
517
+ headers?: Record<string, string>;
518
+ query?: Record<string, string | number | undefined>;
519
+ signal?: AbortSignal;
520
+ }) => Promise<T[]>;
521
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
522
+ }, {
523
+ messageId: string;
524
+ sent: true;
525
+ }> & {
526
+ slug: "sendDraft";
527
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
528
+ messageId: z.ZodString;
529
+ folderId: z.ZodString;
530
+ }, z.core.$strip>, z.ZodObject<{
531
+ id: z.ZodString;
532
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
533
+ from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
534
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
535
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
536
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
537
+ }, z.core.$strip>>>;
538
+ }, z.core.$strip>>>;
539
+ sender: z.ZodOptional<z.ZodNullable<z.ZodObject<{
540
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
541
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
542
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
543
+ }, z.core.$strip>>>;
544
+ }, z.core.$strip>>>;
545
+ toRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
546
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
547
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
548
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
549
+ }, z.core.$strip>>>;
550
+ }, z.core.$strip>>>>;
551
+ ccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
552
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
553
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
554
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
555
+ }, z.core.$strip>>>;
556
+ }, z.core.$strip>>>>;
557
+ bccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
558
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
559
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
560
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
561
+ }, z.core.$strip>>>;
562
+ }, z.core.$strip>>>>;
563
+ replyTo: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
564
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
565
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
566
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
567
+ }, z.core.$strip>>>;
568
+ }, z.core.$strip>>>>;
569
+ receivedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
570
+ sentDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
571
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
572
+ parentFolderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
573
+ bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
574
+ body: z.ZodOptional<z.ZodNullable<z.ZodObject<{
575
+ contentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
576
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
577
+ }, z.core.$strip>>>;
578
+ categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
579
+ hasAttachments: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
580
+ isRead: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
581
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
582
+ webLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
583
+ }, z.core.$loose>, Record<string, never>, {
584
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
585
+ mailbox: string;
586
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
587
+ method?: string;
588
+ body?: unknown;
589
+ headers?: Record<string, string>;
590
+ query?: Record<string, string | number | undefined>;
591
+ signal?: AbortSignal;
592
+ }) => Promise<T>;
593
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
594
+ method?: string;
595
+ body?: unknown;
596
+ headers?: Record<string, string>;
597
+ query?: Record<string, string | number | undefined>;
598
+ signal?: AbortSignal;
599
+ }) => Promise<{
600
+ value: T[];
601
+ nextLink: string | null;
602
+ }>;
603
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
604
+ method?: string;
605
+ body?: unknown;
606
+ headers?: Record<string, string>;
607
+ query?: Record<string, string | number | undefined>;
608
+ signal?: AbortSignal;
609
+ }) => Promise<T[]>;
610
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
611
+ }, {
612
+ [x: string]: unknown;
613
+ id: string;
614
+ subject?: string | null | undefined;
615
+ from?: {
616
+ emailAddress?: {
617
+ name?: string | null | undefined;
618
+ address?: string | null | undefined;
619
+ } | null | undefined;
620
+ } | null | undefined;
621
+ sender?: {
622
+ emailAddress?: {
623
+ name?: string | null | undefined;
624
+ address?: string | null | undefined;
625
+ } | null | undefined;
626
+ } | null | undefined;
627
+ toRecipients?: {
628
+ emailAddress?: {
629
+ name?: string | null | undefined;
630
+ address?: string | null | undefined;
631
+ } | null | undefined;
632
+ }[] | null | undefined;
633
+ ccRecipients?: {
634
+ emailAddress?: {
635
+ name?: string | null | undefined;
636
+ address?: string | null | undefined;
637
+ } | null | undefined;
638
+ }[] | null | undefined;
639
+ bccRecipients?: {
640
+ emailAddress?: {
641
+ name?: string | null | undefined;
642
+ address?: string | null | undefined;
643
+ } | null | undefined;
644
+ }[] | null | undefined;
645
+ replyTo?: {
646
+ emailAddress?: {
647
+ name?: string | null | undefined;
648
+ address?: string | null | undefined;
649
+ } | null | undefined;
650
+ }[] | null | undefined;
651
+ receivedDateTime?: string | null | undefined;
652
+ sentDateTime?: string | null | undefined;
653
+ conversationId?: string | null | undefined;
654
+ parentFolderId?: string | null | undefined;
655
+ bodyPreview?: string | null | undefined;
656
+ body?: {
657
+ contentType?: string | null | undefined;
658
+ content?: string | null | undefined;
659
+ } | null | undefined;
660
+ categories?: string[] | null | undefined;
661
+ hasAttachments?: boolean | null | undefined;
662
+ isRead?: boolean | null | undefined;
663
+ isDraft?: boolean | null | undefined;
664
+ webLink?: string | null | undefined;
665
+ }> & {
666
+ slug: "moveEmail";
667
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
668
+ messageId: z.ZodString;
669
+ categories: z.ZodArray<z.ZodString>;
670
+ }, z.core.$strip>, z.ZodObject<{
671
+ id: z.ZodString;
672
+ categories: z.ZodArray<z.ZodString>;
673
+ }, z.core.$strip>, Record<string, never>, {
674
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
675
+ mailbox: string;
676
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
677
+ method?: string;
678
+ body?: unknown;
679
+ headers?: Record<string, string>;
680
+ query?: Record<string, string | number | undefined>;
681
+ signal?: AbortSignal;
682
+ }) => Promise<T>;
683
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
684
+ method?: string;
685
+ body?: unknown;
686
+ headers?: Record<string, string>;
687
+ query?: Record<string, string | number | undefined>;
688
+ signal?: AbortSignal;
689
+ }) => Promise<{
690
+ value: T[];
691
+ nextLink: string | null;
692
+ }>;
693
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
694
+ method?: string;
695
+ body?: unknown;
696
+ headers?: Record<string, string>;
697
+ query?: Record<string, string | number | undefined>;
698
+ signal?: AbortSignal;
699
+ }) => Promise<T[]>;
700
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
701
+ }, {
702
+ id: string;
703
+ categories: string[];
704
+ }> & {
705
+ slug: "addCategory";
706
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
707
+ messageId: z.ZodString;
708
+ categories: z.ZodArray<z.ZodString>;
709
+ }, z.core.$strip>, z.ZodObject<{
710
+ id: z.ZodString;
711
+ categories: z.ZodArray<z.ZodString>;
712
+ }, z.core.$strip>, Record<string, never>, {
713
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
714
+ mailbox: string;
715
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
716
+ method?: string;
717
+ body?: unknown;
718
+ headers?: Record<string, string>;
719
+ query?: Record<string, string | number | undefined>;
720
+ signal?: AbortSignal;
721
+ }) => Promise<T>;
722
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
723
+ method?: string;
724
+ body?: unknown;
725
+ headers?: Record<string, string>;
726
+ query?: Record<string, string | number | undefined>;
727
+ signal?: AbortSignal;
728
+ }) => Promise<{
729
+ value: T[];
730
+ nextLink: string | null;
731
+ }>;
732
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
733
+ method?: string;
734
+ body?: unknown;
735
+ headers?: Record<string, string>;
736
+ query?: Record<string, string | number | undefined>;
737
+ signal?: AbortSignal;
738
+ }) => Promise<T[]>;
739
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
740
+ }, {
741
+ id: string;
742
+ categories: string[];
743
+ }> & {
744
+ slug: "removeCategory";
745
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
746
+ query: z.ZodString;
747
+ folderId: z.ZodOptional<z.ZodString>;
748
+ limit: z.ZodDefault<z.ZodNumber>;
749
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
750
+ id: z.ZodString;
751
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
752
+ from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
753
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
754
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
755
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
756
+ }, z.core.$strip>>>;
757
+ }, z.core.$strip>>>;
758
+ sender: z.ZodOptional<z.ZodNullable<z.ZodObject<{
759
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
760
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
761
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
762
+ }, z.core.$strip>>>;
763
+ }, z.core.$strip>>>;
764
+ toRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
765
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
766
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
767
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
768
+ }, z.core.$strip>>>;
769
+ }, z.core.$strip>>>>;
770
+ ccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
771
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
772
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
773
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
774
+ }, z.core.$strip>>>;
775
+ }, z.core.$strip>>>>;
776
+ bccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
777
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
778
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
779
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
780
+ }, z.core.$strip>>>;
781
+ }, z.core.$strip>>>>;
782
+ replyTo: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
783
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
784
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
785
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
786
+ }, z.core.$strip>>>;
787
+ }, z.core.$strip>>>>;
788
+ receivedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
789
+ sentDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
790
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
791
+ parentFolderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
792
+ bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
793
+ body: z.ZodOptional<z.ZodNullable<z.ZodObject<{
794
+ contentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
795
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
796
+ }, z.core.$strip>>>;
797
+ categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
798
+ hasAttachments: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
799
+ isRead: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
800
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
801
+ webLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
802
+ }, z.core.$loose>>, Record<string, never>, {
803
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
804
+ mailbox: string;
805
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
806
+ method?: string;
807
+ body?: unknown;
808
+ headers?: Record<string, string>;
809
+ query?: Record<string, string | number | undefined>;
810
+ signal?: AbortSignal;
811
+ }) => Promise<T>;
812
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
813
+ method?: string;
814
+ body?: unknown;
815
+ headers?: Record<string, string>;
816
+ query?: Record<string, string | number | undefined>;
817
+ signal?: AbortSignal;
818
+ }) => Promise<{
819
+ value: T[];
820
+ nextLink: string | null;
821
+ }>;
822
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
823
+ method?: string;
824
+ body?: unknown;
825
+ headers?: Record<string, string>;
826
+ query?: Record<string, string | number | undefined>;
827
+ signal?: AbortSignal;
828
+ }) => Promise<T[]>;
829
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
830
+ }, {
831
+ [x: string]: unknown;
832
+ id: string;
833
+ subject?: string | null | undefined;
834
+ from?: {
835
+ emailAddress?: {
836
+ name?: string | null | undefined;
837
+ address?: string | null | undefined;
838
+ } | null | undefined;
839
+ } | null | undefined;
840
+ sender?: {
841
+ emailAddress?: {
842
+ name?: string | null | undefined;
843
+ address?: string | null | undefined;
844
+ } | null | undefined;
845
+ } | null | undefined;
846
+ toRecipients?: {
847
+ emailAddress?: {
848
+ name?: string | null | undefined;
849
+ address?: string | null | undefined;
850
+ } | null | undefined;
851
+ }[] | null | undefined;
852
+ ccRecipients?: {
853
+ emailAddress?: {
854
+ name?: string | null | undefined;
855
+ address?: string | null | undefined;
856
+ } | null | undefined;
857
+ }[] | null | undefined;
858
+ bccRecipients?: {
859
+ emailAddress?: {
860
+ name?: string | null | undefined;
861
+ address?: string | null | undefined;
862
+ } | null | undefined;
863
+ }[] | null | undefined;
864
+ replyTo?: {
865
+ emailAddress?: {
866
+ name?: string | null | undefined;
867
+ address?: string | null | undefined;
868
+ } | null | undefined;
869
+ }[] | null | undefined;
870
+ receivedDateTime?: string | null | undefined;
871
+ sentDateTime?: string | null | undefined;
872
+ conversationId?: string | null | undefined;
873
+ parentFolderId?: string | null | undefined;
874
+ bodyPreview?: string | null | undefined;
875
+ body?: {
876
+ contentType?: string | null | undefined;
877
+ content?: string | null | undefined;
878
+ } | null | undefined;
879
+ categories?: string[] | null | undefined;
880
+ hasAttachments?: boolean | null | undefined;
881
+ isRead?: boolean | null | undefined;
882
+ isDraft?: boolean | null | undefined;
883
+ webLink?: string | null | undefined;
884
+ }[]> & {
885
+ slug: "searchEmails";
886
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
887
+ messageId: z.ZodString;
888
+ attachmentId: z.ZodOptional<z.ZodString>;
889
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
890
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
891
+ name: z.ZodString;
892
+ mimeType: z.ZodString;
893
+ size: z.ZodNumber;
894
+ url: z.ZodNullable<z.ZodString>;
895
+ attachmentId: z.ZodString;
896
+ }, z.core.$strip>>, Record<string, never>, {
897
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
898
+ mailbox: string;
899
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
900
+ method?: string;
901
+ body?: unknown;
902
+ headers?: Record<string, string>;
903
+ query?: Record<string, string | number | undefined>;
904
+ signal?: AbortSignal;
905
+ }) => Promise<T>;
906
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
907
+ method?: string;
908
+ body?: unknown;
909
+ headers?: Record<string, string>;
910
+ query?: Record<string, string | number | undefined>;
911
+ signal?: AbortSignal;
912
+ }) => Promise<{
913
+ value: T[];
914
+ nextLink: string | null;
915
+ }>;
916
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
917
+ method?: string;
918
+ body?: unknown;
919
+ headers?: Record<string, string>;
920
+ query?: Record<string, string | number | undefined>;
921
+ signal?: AbortSignal;
922
+ }) => Promise<T[]>;
923
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
924
+ }, {
925
+ fileId: string | number;
926
+ name: string;
927
+ mimeType: string;
928
+ size: number;
929
+ url: string | null;
930
+ attachmentId: string;
931
+ }[]> & {
932
+ slug: "downloadAttachment";
933
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
934
+ calendarId: z.ZodOptional<z.ZodString>;
935
+ subject: z.ZodString;
936
+ start: z.ZodISODateTime;
937
+ end: z.ZodOptional<z.ZodISODateTime>;
938
+ timeZone: z.ZodDefault<z.ZodString>;
939
+ location: z.ZodOptional<z.ZodString>;
940
+ body: z.ZodOptional<z.ZodString>;
941
+ bodyType: z.ZodDefault<z.ZodEnum<{
942
+ text: "text";
943
+ html: "html";
944
+ }>>;
945
+ attendees: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
946
+ }, z.core.$strip>, z.ZodObject<{
947
+ id: z.ZodString;
948
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
949
+ start: z.ZodOptional<z.ZodNullable<z.ZodObject<{
950
+ dateTime: z.ZodString;
951
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
952
+ }, z.core.$strip>>>;
953
+ end: z.ZodOptional<z.ZodNullable<z.ZodObject<{
954
+ dateTime: z.ZodString;
955
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
956
+ }, z.core.$strip>>>;
957
+ isAllDay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
958
+ location: z.ZodOptional<z.ZodNullable<z.ZodObject<{
959
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
960
+ }, z.core.$loose>>>;
961
+ organizer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
962
+ emailAddress: z.ZodObject<{
963
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
964
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
965
+ }, z.core.$strip>;
966
+ }, z.core.$strip>>>;
967
+ attendees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$loose>>>>;
968
+ bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
969
+ webLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
970
+ onlineMeeting: z.ZodOptional<z.ZodNullable<z.ZodObject<{
971
+ joinUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
972
+ }, z.core.$loose>>>;
973
+ seriesMasterId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
974
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
975
+ }, z.core.$loose>, Record<string, never>, {
976
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
977
+ mailbox: string;
978
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
979
+ method?: string;
980
+ body?: unknown;
981
+ headers?: Record<string, string>;
982
+ query?: Record<string, string | number | undefined>;
983
+ signal?: AbortSignal;
984
+ }) => Promise<T>;
985
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
986
+ method?: string;
987
+ body?: unknown;
988
+ headers?: Record<string, string>;
989
+ query?: Record<string, string | number | undefined>;
990
+ signal?: AbortSignal;
991
+ }) => Promise<{
992
+ value: T[];
993
+ nextLink: string | null;
994
+ }>;
995
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
996
+ method?: string;
997
+ body?: unknown;
998
+ headers?: Record<string, string>;
999
+ query?: Record<string, string | number | undefined>;
1000
+ signal?: AbortSignal;
1001
+ }) => Promise<T[]>;
1002
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
1003
+ }, {
1004
+ [x: string]: unknown;
1005
+ id: string;
1006
+ subject?: string | null | undefined;
1007
+ start?: {
1008
+ dateTime: string;
1009
+ timeZone?: string | null | undefined;
1010
+ } | null | undefined;
1011
+ end?: {
1012
+ dateTime: string;
1013
+ timeZone?: string | null | undefined;
1014
+ } | null | undefined;
1015
+ isAllDay?: boolean | null | undefined;
1016
+ location?: {
1017
+ [x: string]: unknown;
1018
+ displayName?: string | null | undefined;
1019
+ } | null | undefined;
1020
+ organizer?: {
1021
+ emailAddress: {
1022
+ name?: string | null | undefined;
1023
+ address?: string | null | undefined;
1024
+ };
1025
+ } | null | undefined;
1026
+ attendees?: {
1027
+ [x: string]: unknown;
1028
+ }[] | null | undefined;
1029
+ bodyPreview?: string | null | undefined;
1030
+ webLink?: string | null | undefined;
1031
+ onlineMeeting?: {
1032
+ [x: string]: unknown;
1033
+ joinUrl?: string | null | undefined;
1034
+ } | null | undefined;
1035
+ seriesMasterId?: string | null | undefined;
1036
+ type?: string | null | undefined;
1037
+ }> & {
1038
+ slug: "createEvent";
1039
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1040
+ eventId: z.ZodString;
1041
+ }, z.core.$strip>, z.ZodObject<{
1042
+ eventId: z.ZodString;
1043
+ found: z.ZodBoolean;
1044
+ }, z.core.$strip>, Record<string, never>, {
1045
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1046
+ mailbox: string;
1047
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1048
+ method?: string;
1049
+ body?: unknown;
1050
+ headers?: Record<string, string>;
1051
+ query?: Record<string, string | number | undefined>;
1052
+ signal?: AbortSignal;
1053
+ }) => Promise<T>;
1054
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
1055
+ method?: string;
1056
+ body?: unknown;
1057
+ headers?: Record<string, string>;
1058
+ query?: Record<string, string | number | undefined>;
1059
+ signal?: AbortSignal;
1060
+ }) => Promise<{
1061
+ value: T[];
1062
+ nextLink: string | null;
1063
+ }>;
1064
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
1065
+ method?: string;
1066
+ body?: unknown;
1067
+ headers?: Record<string, string>;
1068
+ query?: Record<string, string | number | undefined>;
1069
+ signal?: AbortSignal;
1070
+ }) => Promise<T[]>;
1071
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
1072
+ }, {
1073
+ eventId: string;
1074
+ found: boolean;
1075
+ }> & {
1076
+ slug: "deleteEvent";
1077
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodObject<{
1078
+ id: z.ZodString;
1079
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1080
+ isDefaultCalendar: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1081
+ canEdit: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1082
+ owner: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1083
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1084
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1085
+ }, z.core.$strip>>>;
1086
+ }, z.core.$loose>>, Record<string, never>, {
1087
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1088
+ mailbox: string;
1089
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1090
+ method?: string;
1091
+ body?: unknown;
1092
+ headers?: Record<string, string>;
1093
+ query?: Record<string, string | number | undefined>;
1094
+ signal?: AbortSignal;
1095
+ }) => Promise<T>;
1096
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
1097
+ method?: string;
1098
+ body?: unknown;
1099
+ headers?: Record<string, string>;
1100
+ query?: Record<string, string | number | undefined>;
1101
+ signal?: AbortSignal;
1102
+ }) => Promise<{
1103
+ value: T[];
1104
+ nextLink: string | null;
1105
+ }>;
1106
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
1107
+ method?: string;
1108
+ body?: unknown;
1109
+ headers?: Record<string, string>;
1110
+ query?: Record<string, string | number | undefined>;
1111
+ signal?: AbortSignal;
1112
+ }) => Promise<T[]>;
1113
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
1114
+ }, {
1115
+ [x: string]: unknown;
1116
+ id: string;
1117
+ name?: string | null | undefined;
1118
+ isDefaultCalendar?: boolean | null | undefined;
1119
+ canEdit?: boolean | null | undefined;
1120
+ owner?: {
1121
+ name?: string | null | undefined;
1122
+ address?: string | null | undefined;
1123
+ } | null | undefined;
1124
+ }[]> & {
1125
+ slug: "listCalendars";
1126
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1127
+ emails: z.ZodArray<z.ZodEmail>;
1128
+ start: z.ZodISODateTime;
1129
+ end: z.ZodISODateTime;
1130
+ timeZone: z.ZodDefault<z.ZodString>;
1131
+ intervalMinutes: z.ZodDefault<z.ZodNumber>;
1132
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
1133
+ scheduleId: z.ZodString;
1134
+ availabilityView: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1135
+ scheduleItems: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1136
+ status: z.ZodString;
1137
+ start: z.ZodObject<{
1138
+ dateTime: z.ZodString;
1139
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1140
+ }, z.core.$strip>;
1141
+ end: z.ZodObject<{
1142
+ dateTime: z.ZodString;
1143
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1144
+ }, z.core.$strip>;
1145
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1146
+ }, z.core.$loose>>>>;
1147
+ workingHours: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$loose>>>;
1148
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1149
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1150
+ responseCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1151
+ }, z.core.$strip>>>;
1152
+ }, z.core.$loose>>, Record<string, never>, {
1153
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1154
+ mailbox: string;
1155
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1156
+ method?: string;
1157
+ body?: unknown;
1158
+ headers?: Record<string, string>;
1159
+ query?: Record<string, string | number | undefined>;
1160
+ signal?: AbortSignal;
1161
+ }) => Promise<T>;
1162
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
1163
+ method?: string;
1164
+ body?: unknown;
1165
+ headers?: Record<string, string>;
1166
+ query?: Record<string, string | number | undefined>;
1167
+ signal?: AbortSignal;
1168
+ }) => Promise<{
1169
+ value: T[];
1170
+ nextLink: string | null;
1171
+ }>;
1172
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
1173
+ method?: string;
1174
+ body?: unknown;
1175
+ headers?: Record<string, string>;
1176
+ query?: Record<string, string | number | undefined>;
1177
+ signal?: AbortSignal;
1178
+ }) => Promise<T[]>;
1179
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
1180
+ }, {
1181
+ [x: string]: unknown;
1182
+ scheduleId: string;
1183
+ availabilityView?: string | null | undefined;
1184
+ scheduleItems?: {
1185
+ [x: string]: unknown;
1186
+ status: string;
1187
+ start: {
1188
+ dateTime: string;
1189
+ timeZone?: string | null | undefined;
1190
+ };
1191
+ end: {
1192
+ dateTime: string;
1193
+ timeZone?: string | null | undefined;
1194
+ };
1195
+ subject?: string | null | undefined;
1196
+ }[] | null | undefined;
1197
+ workingHours?: {
1198
+ [x: string]: unknown;
1199
+ } | null | undefined;
1200
+ error?: {
1201
+ message?: string | null | undefined;
1202
+ responseCode?: string | null | undefined;
1203
+ } | null | undefined;
1204
+ }[]> & {
1205
+ slug: "findFreeBusyPeriods";
1206
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1207
+ limit: z.ZodDefault<z.ZodNumber>;
1208
+ cursor: z.ZodOptional<z.ZodString>;
1209
+ parentFolderId: z.ZodOptional<z.ZodString>;
1210
+ }, z.core.$strip>, z.ZodObject<{
1211
+ data: z.ZodArray<z.ZodObject<{
1212
+ id: z.ZodString;
1213
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1214
+ parentFolderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1215
+ childFolderCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1216
+ totalItemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1217
+ unreadItemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1218
+ }, z.core.$loose>>;
1219
+ pagination: z.ZodObject<{
1220
+ count: z.ZodNumber;
1221
+ hasMore: z.ZodBoolean;
1222
+ nextCursor: z.ZodNullable<z.ZodString>;
1223
+ limit: z.ZodNumber;
1224
+ }, z.core.$strip>;
1225
+ }, z.core.$strip>, Record<string, never>, {
1226
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1227
+ mailbox: string;
1228
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1229
+ method?: string;
1230
+ body?: unknown;
1231
+ headers?: Record<string, string>;
1232
+ query?: Record<string, string | number | undefined>;
1233
+ signal?: AbortSignal;
1234
+ }) => Promise<T>;
1235
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
1236
+ method?: string;
1237
+ body?: unknown;
1238
+ headers?: Record<string, string>;
1239
+ query?: Record<string, string | number | undefined>;
1240
+ signal?: AbortSignal;
1241
+ }) => Promise<{
1242
+ value: T[];
1243
+ nextLink: string | null;
1244
+ }>;
1245
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
1246
+ method?: string;
1247
+ body?: unknown;
1248
+ headers?: Record<string, string>;
1249
+ query?: Record<string, string | number | undefined>;
1250
+ signal?: AbortSignal;
1251
+ }) => Promise<T[]>;
1252
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
1253
+ }, {
1254
+ data: {
1255
+ [x: string]: unknown;
1256
+ id: string;
1257
+ displayName?: string | null | undefined;
1258
+ parentFolderId?: string | null | undefined;
1259
+ childFolderCount?: number | null | undefined;
1260
+ totalItemCount?: number | null | undefined;
1261
+ unreadItemCount?: number | null | undefined;
1262
+ }[];
1263
+ pagination: {
1264
+ count: number;
1265
+ hasMore: boolean;
1266
+ nextCursor: string | null;
1267
+ limit: number;
1268
+ };
1269
+ }> & {
1270
+ slug: "listMailFolders";
1271
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1272
+ limit: z.ZodDefault<z.ZodNumber>;
1273
+ cursor: z.ZodOptional<z.ZodString>;
1274
+ folderId: z.ZodDefault<z.ZodString>;
1275
+ receivedAfter: z.ZodOptional<z.ZodISODateTime>;
1276
+ }, z.core.$strip>, z.ZodObject<{
1277
+ data: z.ZodArray<z.ZodObject<{
1278
+ id: z.ZodString;
1279
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1280
+ from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1281
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1282
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1283
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1284
+ }, z.core.$strip>>>;
1285
+ }, z.core.$strip>>>;
1286
+ sender: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1287
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1288
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1289
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1290
+ }, z.core.$strip>>>;
1291
+ }, z.core.$strip>>>;
1292
+ toRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1293
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1294
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1295
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1296
+ }, z.core.$strip>>>;
1297
+ }, z.core.$strip>>>>;
1298
+ ccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1299
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1300
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1301
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1302
+ }, z.core.$strip>>>;
1303
+ }, z.core.$strip>>>>;
1304
+ bccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1305
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1306
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1307
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1308
+ }, z.core.$strip>>>;
1309
+ }, z.core.$strip>>>>;
1310
+ replyTo: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1311
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1312
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1313
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1314
+ }, z.core.$strip>>>;
1315
+ }, z.core.$strip>>>>;
1316
+ receivedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1317
+ sentDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1318
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1319
+ parentFolderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1320
+ bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1321
+ body: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1322
+ contentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1323
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1324
+ }, z.core.$strip>>>;
1325
+ categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1326
+ hasAttachments: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1327
+ isRead: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1328
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1329
+ webLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1330
+ }, z.core.$loose>>;
1331
+ pagination: z.ZodObject<{
1332
+ count: z.ZodNumber;
1333
+ hasMore: z.ZodBoolean;
1334
+ nextCursor: z.ZodNullable<z.ZodString>;
1335
+ limit: z.ZodNumber;
1336
+ }, z.core.$strip>;
1337
+ }, z.core.$strip>, Record<string, never>, {
1338
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1339
+ mailbox: string;
1340
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1341
+ method?: string;
1342
+ body?: unknown;
1343
+ headers?: Record<string, string>;
1344
+ query?: Record<string, string | number | undefined>;
1345
+ signal?: AbortSignal;
1346
+ }) => Promise<T>;
1347
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
1348
+ method?: string;
1349
+ body?: unknown;
1350
+ headers?: Record<string, string>;
1351
+ query?: Record<string, string | number | undefined>;
1352
+ signal?: AbortSignal;
1353
+ }) => Promise<{
1354
+ value: T[];
1355
+ nextLink: string | null;
1356
+ }>;
1357
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
1358
+ method?: string;
1359
+ body?: unknown;
1360
+ headers?: Record<string, string>;
1361
+ query?: Record<string, string | number | undefined>;
1362
+ signal?: AbortSignal;
1363
+ }) => Promise<T[]>;
1364
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
1365
+ }, {
1366
+ data: {
1367
+ [x: string]: unknown;
1368
+ id: string;
1369
+ subject?: string | null | undefined;
1370
+ from?: {
1371
+ emailAddress?: {
1372
+ name?: string | null | undefined;
1373
+ address?: string | null | undefined;
1374
+ } | null | undefined;
1375
+ } | null | undefined;
1376
+ sender?: {
1377
+ emailAddress?: {
1378
+ name?: string | null | undefined;
1379
+ address?: string | null | undefined;
1380
+ } | null | undefined;
1381
+ } | null | undefined;
1382
+ toRecipients?: {
1383
+ emailAddress?: {
1384
+ name?: string | null | undefined;
1385
+ address?: string | null | undefined;
1386
+ } | null | undefined;
1387
+ }[] | null | undefined;
1388
+ ccRecipients?: {
1389
+ emailAddress?: {
1390
+ name?: string | null | undefined;
1391
+ address?: string | null | undefined;
1392
+ } | null | undefined;
1393
+ }[] | null | undefined;
1394
+ bccRecipients?: {
1395
+ emailAddress?: {
1396
+ name?: string | null | undefined;
1397
+ address?: string | null | undefined;
1398
+ } | null | undefined;
1399
+ }[] | null | undefined;
1400
+ replyTo?: {
1401
+ emailAddress?: {
1402
+ name?: string | null | undefined;
1403
+ address?: string | null | undefined;
1404
+ } | null | undefined;
1405
+ }[] | null | undefined;
1406
+ receivedDateTime?: string | null | undefined;
1407
+ sentDateTime?: string | null | undefined;
1408
+ conversationId?: string | null | undefined;
1409
+ parentFolderId?: string | null | undefined;
1410
+ bodyPreview?: string | null | undefined;
1411
+ body?: {
1412
+ contentType?: string | null | undefined;
1413
+ content?: string | null | undefined;
1414
+ } | null | undefined;
1415
+ categories?: string[] | null | undefined;
1416
+ hasAttachments?: boolean | null | undefined;
1417
+ isRead?: boolean | null | undefined;
1418
+ isDraft?: boolean | null | undefined;
1419
+ webLink?: string | null | undefined;
1420
+ }[];
1421
+ pagination: {
1422
+ count: number;
1423
+ hasMore: boolean;
1424
+ nextCursor: string | null;
1425
+ limit: number;
1426
+ };
1427
+ }> & {
1428
+ slug: "listEmails";
1429
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1430
+ limit: z.ZodDefault<z.ZodNumber>;
1431
+ cursor: z.ZodOptional<z.ZodString>;
1432
+ calendarId: z.ZodOptional<z.ZodString>;
1433
+ start: z.ZodISODateTime;
1434
+ end: z.ZodISODateTime;
1435
+ }, z.core.$strip>, z.ZodObject<{
1436
+ data: z.ZodArray<z.ZodObject<{
1437
+ id: z.ZodString;
1438
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1439
+ start: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1440
+ dateTime: z.ZodString;
1441
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1442
+ }, z.core.$strip>>>;
1443
+ end: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1444
+ dateTime: z.ZodString;
1445
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1446
+ }, z.core.$strip>>>;
1447
+ isAllDay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1448
+ location: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1449
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1450
+ }, z.core.$loose>>>;
1451
+ organizer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1452
+ emailAddress: z.ZodObject<{
1453
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1454
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1455
+ }, z.core.$strip>;
1456
+ }, z.core.$strip>>>;
1457
+ attendees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$loose>>>>;
1458
+ bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1459
+ webLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1460
+ onlineMeeting: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1461
+ joinUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1462
+ }, z.core.$loose>>>;
1463
+ seriesMasterId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1464
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1465
+ }, z.core.$loose>>;
1466
+ pagination: z.ZodObject<{
1467
+ count: z.ZodNumber;
1468
+ hasMore: z.ZodBoolean;
1469
+ nextCursor: z.ZodNullable<z.ZodString>;
1470
+ limit: z.ZodNumber;
1471
+ }, z.core.$strip>;
1472
+ }, z.core.$strip>, Record<string, never>, {
1473
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1474
+ mailbox: string;
1475
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1476
+ method?: string;
1477
+ body?: unknown;
1478
+ headers?: Record<string, string>;
1479
+ query?: Record<string, string | number | undefined>;
1480
+ signal?: AbortSignal;
1481
+ }) => Promise<T>;
1482
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
1483
+ method?: string;
1484
+ body?: unknown;
1485
+ headers?: Record<string, string>;
1486
+ query?: Record<string, string | number | undefined>;
1487
+ signal?: AbortSignal;
1488
+ }) => Promise<{
1489
+ value: T[];
1490
+ nextLink: string | null;
1491
+ }>;
1492
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
1493
+ method?: string;
1494
+ body?: unknown;
1495
+ headers?: Record<string, string>;
1496
+ query?: Record<string, string | number | undefined>;
1497
+ signal?: AbortSignal;
1498
+ }) => Promise<T[]>;
1499
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
1500
+ }, {
1501
+ data: {
1502
+ [x: string]: unknown;
1503
+ id: string;
1504
+ subject?: string | null | undefined;
1505
+ start?: {
1506
+ dateTime: string;
1507
+ timeZone?: string | null | undefined;
1508
+ } | null | undefined;
1509
+ end?: {
1510
+ dateTime: string;
1511
+ timeZone?: string | null | undefined;
1512
+ } | null | undefined;
1513
+ isAllDay?: boolean | null | undefined;
1514
+ location?: {
1515
+ [x: string]: unknown;
1516
+ displayName?: string | null | undefined;
1517
+ } | null | undefined;
1518
+ organizer?: {
1519
+ emailAddress: {
1520
+ name?: string | null | undefined;
1521
+ address?: string | null | undefined;
1522
+ };
1523
+ } | null | undefined;
1524
+ attendees?: {
1525
+ [x: string]: unknown;
1526
+ }[] | null | undefined;
1527
+ bodyPreview?: string | null | undefined;
1528
+ webLink?: string | null | undefined;
1529
+ onlineMeeting?: {
1530
+ [x: string]: unknown;
1531
+ joinUrl?: string | null | undefined;
1532
+ } | null | undefined;
1533
+ seriesMasterId?: string | null | undefined;
1534
+ type?: string | null | undefined;
1535
+ }[];
1536
+ pagination: {
1537
+ count: number;
1538
+ hasMore: boolean;
1539
+ nextCursor: string | null;
1540
+ limit: number;
1541
+ };
1542
+ }> & {
1543
+ slug: "listEvents";
1544
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1545
+ limit: z.ZodDefault<z.ZodNumber>;
1546
+ cursor: z.ZodOptional<z.ZodString>;
1547
+ }, z.core.$strip>, z.ZodObject<{
1548
+ data: z.ZodArray<z.ZodObject<{
1549
+ id: z.ZodString;
1550
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1551
+ givenName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1552
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1553
+ emailAddresses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1554
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1555
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1556
+ }, z.core.$strip>>>>;
1557
+ businessPhones: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1558
+ mobilePhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1559
+ companyName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1560
+ jobTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1561
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1562
+ }, z.core.$loose>>;
1563
+ pagination: z.ZodObject<{
1564
+ count: z.ZodNumber;
1565
+ hasMore: z.ZodBoolean;
1566
+ nextCursor: z.ZodNullable<z.ZodString>;
1567
+ limit: z.ZodNumber;
1568
+ }, z.core.$strip>;
1569
+ }, z.core.$strip>, Record<string, never>, {
1570
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1571
+ mailbox: string;
1572
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1573
+ method?: string;
1574
+ body?: unknown;
1575
+ headers?: Record<string, string>;
1576
+ query?: Record<string, string | number | undefined>;
1577
+ signal?: AbortSignal;
1578
+ }) => Promise<T>;
1579
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
1580
+ method?: string;
1581
+ body?: unknown;
1582
+ headers?: Record<string, string>;
1583
+ query?: Record<string, string | number | undefined>;
1584
+ signal?: AbortSignal;
1585
+ }) => Promise<{
1586
+ value: T[];
1587
+ nextLink: string | null;
1588
+ }>;
1589
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
1590
+ method?: string;
1591
+ body?: unknown;
1592
+ headers?: Record<string, string>;
1593
+ query?: Record<string, string | number | undefined>;
1594
+ signal?: AbortSignal;
1595
+ }) => Promise<T[]>;
1596
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
1597
+ }, {
1598
+ data: {
1599
+ [x: string]: unknown;
1600
+ id: string;
1601
+ displayName?: string | null | undefined;
1602
+ givenName?: string | null | undefined;
1603
+ surname?: string | null | undefined;
1604
+ emailAddresses?: {
1605
+ name?: string | null | undefined;
1606
+ address?: string | null | undefined;
1607
+ }[] | null | undefined;
1608
+ businessPhones?: string[] | null | undefined;
1609
+ mobilePhone?: string | null | undefined;
1610
+ companyName?: string | null | undefined;
1611
+ jobTitle?: string | null | undefined;
1612
+ lastModifiedDateTime?: string | null | undefined;
1613
+ }[];
1614
+ pagination: {
1615
+ count: number;
1616
+ hasMore: boolean;
1617
+ nextCursor: string | null;
1618
+ limit: number;
1619
+ };
1620
+ }> & {
1621
+ slug: "listContacts";
1622
+ }, import("frogbot/pieces").CustomApiCallAction<Record<string, never>, {
1623
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1624
+ mailbox: string;
1625
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1626
+ method?: string;
1627
+ body?: unknown;
1628
+ headers?: Record<string, string>;
1629
+ query?: Record<string, string | number | undefined>;
1630
+ signal?: AbortSignal;
1631
+ }) => Promise<T>;
1632
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
1633
+ method?: string;
1634
+ body?: unknown;
1635
+ headers?: Record<string, string>;
1636
+ query?: Record<string, string | number | undefined>;
1637
+ signal?: AbortSignal;
1638
+ }) => Promise<{
1639
+ value: T[];
1640
+ nextLink: string | null;
1641
+ }>;
1642
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
1643
+ method?: string;
1644
+ body?: unknown;
1645
+ headers?: Record<string, string>;
1646
+ query?: Record<string, string | number | undefined>;
1647
+ signal?: AbortSignal;
1648
+ }) => Promise<T[]>;
1649
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
1650
+ }>];
1651
+ readonly triggers: readonly [{
1652
+ slug: string;
1653
+ label?: string;
1654
+ description: string;
1655
+ input: z.ZodObject<{
1656
+ from: z.ZodOptional<z.ZodEmail>;
1657
+ to: z.ZodOptional<z.ZodEmail>;
1658
+ }, z.core.$strip>;
1659
+ output?: z.ZodObject<{
1660
+ id: z.ZodString;
1661
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1662
+ from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1663
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1664
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1665
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1666
+ }, z.core.$strip>>>;
1667
+ }, z.core.$strip>>>;
1668
+ sender: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1669
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1670
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1671
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1672
+ }, z.core.$strip>>>;
1673
+ }, z.core.$strip>>>;
1674
+ toRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1675
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1676
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1677
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1678
+ }, z.core.$strip>>>;
1679
+ }, z.core.$strip>>>>;
1680
+ ccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1681
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1682
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1683
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1684
+ }, z.core.$strip>>>;
1685
+ }, z.core.$strip>>>>;
1686
+ bccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1687
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1688
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1689
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1690
+ }, z.core.$strip>>>;
1691
+ }, z.core.$strip>>>>;
1692
+ replyTo: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1693
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1694
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1695
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1696
+ }, z.core.$strip>>>;
1697
+ }, z.core.$strip>>>>;
1698
+ receivedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1699
+ sentDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1700
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1701
+ parentFolderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1702
+ bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1703
+ body: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1704
+ contentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1705
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1706
+ }, z.core.$strip>>>;
1707
+ categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1708
+ hasAttachments: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1709
+ isRead: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1710
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1711
+ webLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1712
+ }, z.core.$loose> | undefined;
1713
+ sample?: {
1714
+ [x: string]: unknown;
1715
+ id: string;
1716
+ subject?: string | null | undefined;
1717
+ from?: {
1718
+ emailAddress?: {
1719
+ name?: string | null | undefined;
1720
+ address?: string | null | undefined;
1721
+ } | null | undefined;
1722
+ } | null | undefined;
1723
+ sender?: {
1724
+ emailAddress?: {
1725
+ name?: string | null | undefined;
1726
+ address?: string | null | undefined;
1727
+ } | null | undefined;
1728
+ } | null | undefined;
1729
+ toRecipients?: {
1730
+ emailAddress?: {
1731
+ name?: string | null | undefined;
1732
+ address?: string | null | undefined;
1733
+ } | null | undefined;
1734
+ }[] | null | undefined;
1735
+ ccRecipients?: {
1736
+ emailAddress?: {
1737
+ name?: string | null | undefined;
1738
+ address?: string | null | undefined;
1739
+ } | null | undefined;
1740
+ }[] | null | undefined;
1741
+ bccRecipients?: {
1742
+ emailAddress?: {
1743
+ name?: string | null | undefined;
1744
+ address?: string | null | undefined;
1745
+ } | null | undefined;
1746
+ }[] | null | undefined;
1747
+ replyTo?: {
1748
+ emailAddress?: {
1749
+ name?: string | null | undefined;
1750
+ address?: string | null | undefined;
1751
+ } | null | undefined;
1752
+ }[] | null | undefined;
1753
+ receivedDateTime?: string | null | undefined;
1754
+ sentDateTime?: string | null | undefined;
1755
+ conversationId?: string | null | undefined;
1756
+ parentFolderId?: string | null | undefined;
1757
+ bodyPreview?: string | null | undefined;
1758
+ body?: {
1759
+ contentType?: string | null | undefined;
1760
+ content?: string | null | undefined;
1761
+ } | null | undefined;
1762
+ categories?: string[] | null | undefined;
1763
+ hasAttachments?: boolean | null | undefined;
1764
+ isRead?: boolean | null | undefined;
1765
+ isDraft?: boolean | null | undefined;
1766
+ webLink?: string | null | undefined;
1767
+ } | undefined;
1768
+ } & {
1769
+ type: "polling";
1770
+ schedule?: string;
1771
+ run(args: {
1772
+ input: {
1773
+ from?: string | undefined;
1774
+ to?: string | undefined;
1775
+ };
1776
+ options: Record<string, never>;
1777
+ client: {
1778
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1779
+ mailbox: string;
1780
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1781
+ method?: string;
1782
+ body?: unknown;
1783
+ headers?: Record<string, string>;
1784
+ query?: Record<string, string | number | undefined>;
1785
+ signal?: AbortSignal;
1786
+ }) => Promise<T>;
1787
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
1788
+ method?: string;
1789
+ body?: unknown;
1790
+ headers?: Record<string, string>;
1791
+ query?: Record<string, string | number | undefined>;
1792
+ signal?: AbortSignal;
1793
+ }) => Promise<{
1794
+ value: T[];
1795
+ nextLink: string | null;
1796
+ }>;
1797
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
1798
+ method?: string;
1799
+ body?: unknown;
1800
+ headers?: Record<string, string>;
1801
+ query?: Record<string, string | number | undefined>;
1802
+ signal?: AbortSignal;
1803
+ }) => Promise<T[]>;
1804
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
1805
+ };
1806
+ req: import("frogbot/pieces").FrogBotRequest;
1807
+ } & {
1808
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
1809
+ }): Promise<{
1810
+ events: {
1811
+ [x: string]: unknown;
1812
+ id: string;
1813
+ subject?: string | null | undefined;
1814
+ from?: {
1815
+ emailAddress?: {
1816
+ name?: string | null | undefined;
1817
+ address?: string | null | undefined;
1818
+ } | null | undefined;
1819
+ } | null | undefined;
1820
+ sender?: {
1821
+ emailAddress?: {
1822
+ name?: string | null | undefined;
1823
+ address?: string | null | undefined;
1824
+ } | null | undefined;
1825
+ } | null | undefined;
1826
+ toRecipients?: {
1827
+ emailAddress?: {
1828
+ name?: string | null | undefined;
1829
+ address?: string | null | undefined;
1830
+ } | null | undefined;
1831
+ }[] | null | undefined;
1832
+ ccRecipients?: {
1833
+ emailAddress?: {
1834
+ name?: string | null | undefined;
1835
+ address?: string | null | undefined;
1836
+ } | null | undefined;
1837
+ }[] | null | undefined;
1838
+ bccRecipients?: {
1839
+ emailAddress?: {
1840
+ name?: string | null | undefined;
1841
+ address?: string | null | undefined;
1842
+ } | null | undefined;
1843
+ }[] | null | undefined;
1844
+ replyTo?: {
1845
+ emailAddress?: {
1846
+ name?: string | null | undefined;
1847
+ address?: string | null | undefined;
1848
+ } | null | undefined;
1849
+ }[] | null | undefined;
1850
+ receivedDateTime?: string | null | undefined;
1851
+ sentDateTime?: string | null | undefined;
1852
+ conversationId?: string | null | undefined;
1853
+ parentFolderId?: string | null | undefined;
1854
+ bodyPreview?: string | null | undefined;
1855
+ body?: {
1856
+ contentType?: string | null | undefined;
1857
+ content?: string | null | undefined;
1858
+ } | null | undefined;
1859
+ categories?: string[] | null | undefined;
1860
+ hasAttachments?: boolean | null | undefined;
1861
+ isRead?: boolean | null | undefined;
1862
+ isDraft?: boolean | null | undefined;
1863
+ webLink?: string | null | undefined;
1864
+ }[];
1865
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
1866
+ }>;
1867
+ } & {
1868
+ slug: "newEmail";
1869
+ }, {
1870
+ slug: string;
1871
+ label?: string;
1872
+ description: string;
1873
+ input: z.ZodObject<{
1874
+ folderId: z.ZodString;
1875
+ }, z.core.$strip>;
1876
+ output?: z.ZodObject<{
1877
+ id: z.ZodString;
1878
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1879
+ from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1880
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1881
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1882
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1883
+ }, z.core.$strip>>>;
1884
+ }, z.core.$strip>>>;
1885
+ sender: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1886
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1887
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1888
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1889
+ }, z.core.$strip>>>;
1890
+ }, z.core.$strip>>>;
1891
+ toRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1892
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1893
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1894
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1895
+ }, z.core.$strip>>>;
1896
+ }, z.core.$strip>>>>;
1897
+ ccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1898
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1899
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1900
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1901
+ }, z.core.$strip>>>;
1902
+ }, z.core.$strip>>>>;
1903
+ bccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1904
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1905
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1906
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1907
+ }, z.core.$strip>>>;
1908
+ }, z.core.$strip>>>>;
1909
+ replyTo: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1910
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1911
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1912
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1913
+ }, z.core.$strip>>>;
1914
+ }, z.core.$strip>>>>;
1915
+ receivedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1916
+ sentDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1917
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1918
+ parentFolderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1919
+ bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1920
+ body: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1921
+ contentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1922
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1923
+ }, z.core.$strip>>>;
1924
+ categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1925
+ hasAttachments: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1926
+ isRead: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1927
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1928
+ webLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1929
+ }, z.core.$loose> | undefined;
1930
+ sample?: {
1931
+ [x: string]: unknown;
1932
+ id: string;
1933
+ subject?: string | null | undefined;
1934
+ from?: {
1935
+ emailAddress?: {
1936
+ name?: string | null | undefined;
1937
+ address?: string | null | undefined;
1938
+ } | null | undefined;
1939
+ } | null | undefined;
1940
+ sender?: {
1941
+ emailAddress?: {
1942
+ name?: string | null | undefined;
1943
+ address?: string | null | undefined;
1944
+ } | null | undefined;
1945
+ } | null | undefined;
1946
+ toRecipients?: {
1947
+ emailAddress?: {
1948
+ name?: string | null | undefined;
1949
+ address?: string | null | undefined;
1950
+ } | null | undefined;
1951
+ }[] | null | undefined;
1952
+ ccRecipients?: {
1953
+ emailAddress?: {
1954
+ name?: string | null | undefined;
1955
+ address?: string | null | undefined;
1956
+ } | null | undefined;
1957
+ }[] | null | undefined;
1958
+ bccRecipients?: {
1959
+ emailAddress?: {
1960
+ name?: string | null | undefined;
1961
+ address?: string | null | undefined;
1962
+ } | null | undefined;
1963
+ }[] | null | undefined;
1964
+ replyTo?: {
1965
+ emailAddress?: {
1966
+ name?: string | null | undefined;
1967
+ address?: string | null | undefined;
1968
+ } | null | undefined;
1969
+ }[] | null | undefined;
1970
+ receivedDateTime?: string | null | undefined;
1971
+ sentDateTime?: string | null | undefined;
1972
+ conversationId?: string | null | undefined;
1973
+ parentFolderId?: string | null | undefined;
1974
+ bodyPreview?: string | null | undefined;
1975
+ body?: {
1976
+ contentType?: string | null | undefined;
1977
+ content?: string | null | undefined;
1978
+ } | null | undefined;
1979
+ categories?: string[] | null | undefined;
1980
+ hasAttachments?: boolean | null | undefined;
1981
+ isRead?: boolean | null | undefined;
1982
+ isDraft?: boolean | null | undefined;
1983
+ webLink?: string | null | undefined;
1984
+ } | undefined;
1985
+ } & {
1986
+ type: "polling";
1987
+ schedule?: string;
1988
+ run(args: {
1989
+ input: {
1990
+ folderId: string;
1991
+ };
1992
+ options: Record<string, never>;
1993
+ client: {
1994
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1995
+ mailbox: string;
1996
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1997
+ method?: string;
1998
+ body?: unknown;
1999
+ headers?: Record<string, string>;
2000
+ query?: Record<string, string | number | undefined>;
2001
+ signal?: AbortSignal;
2002
+ }) => Promise<T>;
2003
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
2004
+ method?: string;
2005
+ body?: unknown;
2006
+ headers?: Record<string, string>;
2007
+ query?: Record<string, string | number | undefined>;
2008
+ signal?: AbortSignal;
2009
+ }) => Promise<{
2010
+ value: T[];
2011
+ nextLink: string | null;
2012
+ }>;
2013
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
2014
+ method?: string;
2015
+ body?: unknown;
2016
+ headers?: Record<string, string>;
2017
+ query?: Record<string, string | number | undefined>;
2018
+ signal?: AbortSignal;
2019
+ }) => Promise<T[]>;
2020
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
2021
+ };
2022
+ req: import("frogbot/pieces").FrogBotRequest;
2023
+ } & {
2024
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2025
+ }): Promise<{
2026
+ events: {
2027
+ [x: string]: unknown;
2028
+ id: string;
2029
+ subject?: string | null | undefined;
2030
+ from?: {
2031
+ emailAddress?: {
2032
+ name?: string | null | undefined;
2033
+ address?: string | null | undefined;
2034
+ } | null | undefined;
2035
+ } | null | undefined;
2036
+ sender?: {
2037
+ emailAddress?: {
2038
+ name?: string | null | undefined;
2039
+ address?: string | null | undefined;
2040
+ } | null | undefined;
2041
+ } | null | undefined;
2042
+ toRecipients?: {
2043
+ emailAddress?: {
2044
+ name?: string | null | undefined;
2045
+ address?: string | null | undefined;
2046
+ } | null | undefined;
2047
+ }[] | null | undefined;
2048
+ ccRecipients?: {
2049
+ emailAddress?: {
2050
+ name?: string | null | undefined;
2051
+ address?: string | null | undefined;
2052
+ } | null | undefined;
2053
+ }[] | null | undefined;
2054
+ bccRecipients?: {
2055
+ emailAddress?: {
2056
+ name?: string | null | undefined;
2057
+ address?: string | null | undefined;
2058
+ } | null | undefined;
2059
+ }[] | null | undefined;
2060
+ replyTo?: {
2061
+ emailAddress?: {
2062
+ name?: string | null | undefined;
2063
+ address?: string | null | undefined;
2064
+ } | null | undefined;
2065
+ }[] | null | undefined;
2066
+ receivedDateTime?: string | null | undefined;
2067
+ sentDateTime?: string | null | undefined;
2068
+ conversationId?: string | null | undefined;
2069
+ parentFolderId?: string | null | undefined;
2070
+ bodyPreview?: string | null | undefined;
2071
+ body?: {
2072
+ contentType?: string | null | undefined;
2073
+ content?: string | null | undefined;
2074
+ } | null | undefined;
2075
+ categories?: string[] | null | undefined;
2076
+ hasAttachments?: boolean | null | undefined;
2077
+ isRead?: boolean | null | undefined;
2078
+ isDraft?: boolean | null | undefined;
2079
+ webLink?: string | null | undefined;
2080
+ }[];
2081
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2082
+ }>;
2083
+ } & {
2084
+ slug: "newEmailInFolder";
2085
+ }, {
2086
+ slug: string;
2087
+ label?: string;
2088
+ description: string;
2089
+ input: z.ZodObject<{
2090
+ folderId: z.ZodDefault<z.ZodString>;
2091
+ }, z.core.$strip>;
2092
+ output?: z.ZodObject<{
2093
+ id: z.ZodString;
2094
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2095
+ from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2096
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2097
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2098
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2099
+ }, z.core.$strip>>>;
2100
+ }, z.core.$strip>>>;
2101
+ sender: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2102
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2103
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2104
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2105
+ }, z.core.$strip>>>;
2106
+ }, z.core.$strip>>>;
2107
+ toRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2108
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2109
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2110
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2111
+ }, z.core.$strip>>>;
2112
+ }, z.core.$strip>>>>;
2113
+ ccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2114
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2115
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2116
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2117
+ }, z.core.$strip>>>;
2118
+ }, z.core.$strip>>>>;
2119
+ bccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2120
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2121
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2122
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2123
+ }, z.core.$strip>>>;
2124
+ }, z.core.$strip>>>>;
2125
+ replyTo: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2126
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2127
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2128
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2129
+ }, z.core.$strip>>>;
2130
+ }, z.core.$strip>>>>;
2131
+ receivedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2132
+ sentDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2133
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2134
+ parentFolderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2135
+ bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2136
+ body: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2137
+ contentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2138
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2139
+ }, z.core.$strip>>>;
2140
+ categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2141
+ hasAttachments: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2142
+ isRead: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2143
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2144
+ webLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2145
+ attachments: z.ZodArray<z.ZodObject<{
2146
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
2147
+ name: z.ZodString;
2148
+ mimeType: z.ZodString;
2149
+ size: z.ZodNumber;
2150
+ url: z.ZodNullable<z.ZodString>;
2151
+ attachmentId: z.ZodString;
2152
+ }, z.core.$strip>>;
2153
+ }, z.core.$loose> | undefined;
2154
+ sample?: {
2155
+ [x: string]: unknown;
2156
+ id: string;
2157
+ attachments: {
2158
+ fileId: string | number;
2159
+ name: string;
2160
+ mimeType: string;
2161
+ size: number;
2162
+ url: string | null;
2163
+ attachmentId: string;
2164
+ }[];
2165
+ subject?: string | null | undefined;
2166
+ from?: {
2167
+ emailAddress?: {
2168
+ name?: string | null | undefined;
2169
+ address?: string | null | undefined;
2170
+ } | null | undefined;
2171
+ } | null | undefined;
2172
+ sender?: {
2173
+ emailAddress?: {
2174
+ name?: string | null | undefined;
2175
+ address?: string | null | undefined;
2176
+ } | null | undefined;
2177
+ } | null | undefined;
2178
+ toRecipients?: {
2179
+ emailAddress?: {
2180
+ name?: string | null | undefined;
2181
+ address?: string | null | undefined;
2182
+ } | null | undefined;
2183
+ }[] | null | undefined;
2184
+ ccRecipients?: {
2185
+ emailAddress?: {
2186
+ name?: string | null | undefined;
2187
+ address?: string | null | undefined;
2188
+ } | null | undefined;
2189
+ }[] | null | undefined;
2190
+ bccRecipients?: {
2191
+ emailAddress?: {
2192
+ name?: string | null | undefined;
2193
+ address?: string | null | undefined;
2194
+ } | null | undefined;
2195
+ }[] | null | undefined;
2196
+ replyTo?: {
2197
+ emailAddress?: {
2198
+ name?: string | null | undefined;
2199
+ address?: string | null | undefined;
2200
+ } | null | undefined;
2201
+ }[] | null | undefined;
2202
+ receivedDateTime?: string | null | undefined;
2203
+ sentDateTime?: string | null | undefined;
2204
+ conversationId?: string | null | undefined;
2205
+ parentFolderId?: string | null | undefined;
2206
+ bodyPreview?: string | null | undefined;
2207
+ body?: {
2208
+ contentType?: string | null | undefined;
2209
+ content?: string | null | undefined;
2210
+ } | null | undefined;
2211
+ categories?: string[] | null | undefined;
2212
+ hasAttachments?: boolean | null | undefined;
2213
+ isRead?: boolean | null | undefined;
2214
+ isDraft?: boolean | null | undefined;
2215
+ webLink?: string | null | undefined;
2216
+ } | undefined;
2217
+ } & {
2218
+ type: "polling";
2219
+ schedule?: string;
2220
+ run(args: {
2221
+ input: {
2222
+ folderId: string;
2223
+ };
2224
+ options: Record<string, never>;
2225
+ client: {
2226
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2227
+ mailbox: string;
2228
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2229
+ method?: string;
2230
+ body?: unknown;
2231
+ headers?: Record<string, string>;
2232
+ query?: Record<string, string | number | undefined>;
2233
+ signal?: AbortSignal;
2234
+ }) => Promise<T>;
2235
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
2236
+ method?: string;
2237
+ body?: unknown;
2238
+ headers?: Record<string, string>;
2239
+ query?: Record<string, string | number | undefined>;
2240
+ signal?: AbortSignal;
2241
+ }) => Promise<{
2242
+ value: T[];
2243
+ nextLink: string | null;
2244
+ }>;
2245
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
2246
+ method?: string;
2247
+ body?: unknown;
2248
+ headers?: Record<string, string>;
2249
+ query?: Record<string, string | number | undefined>;
2250
+ signal?: AbortSignal;
2251
+ }) => Promise<T[]>;
2252
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
2253
+ };
2254
+ req: import("frogbot/pieces").FrogBotRequest;
2255
+ } & {
2256
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2257
+ }): Promise<{
2258
+ events: {
2259
+ [x: string]: unknown;
2260
+ id: string;
2261
+ attachments: {
2262
+ fileId: string | number;
2263
+ name: string;
2264
+ mimeType: string;
2265
+ size: number;
2266
+ url: string | null;
2267
+ attachmentId: string;
2268
+ }[];
2269
+ subject?: string | null | undefined;
2270
+ from?: {
2271
+ emailAddress?: {
2272
+ name?: string | null | undefined;
2273
+ address?: string | null | undefined;
2274
+ } | null | undefined;
2275
+ } | null | undefined;
2276
+ sender?: {
2277
+ emailAddress?: {
2278
+ name?: string | null | undefined;
2279
+ address?: string | null | undefined;
2280
+ } | null | undefined;
2281
+ } | null | undefined;
2282
+ toRecipients?: {
2283
+ emailAddress?: {
2284
+ name?: string | null | undefined;
2285
+ address?: string | null | undefined;
2286
+ } | null | undefined;
2287
+ }[] | null | undefined;
2288
+ ccRecipients?: {
2289
+ emailAddress?: {
2290
+ name?: string | null | undefined;
2291
+ address?: string | null | undefined;
2292
+ } | null | undefined;
2293
+ }[] | null | undefined;
2294
+ bccRecipients?: {
2295
+ emailAddress?: {
2296
+ name?: string | null | undefined;
2297
+ address?: string | null | undefined;
2298
+ } | null | undefined;
2299
+ }[] | null | undefined;
2300
+ replyTo?: {
2301
+ emailAddress?: {
2302
+ name?: string | null | undefined;
2303
+ address?: string | null | undefined;
2304
+ } | null | undefined;
2305
+ }[] | null | undefined;
2306
+ receivedDateTime?: string | null | undefined;
2307
+ sentDateTime?: string | null | undefined;
2308
+ conversationId?: string | null | undefined;
2309
+ parentFolderId?: string | null | undefined;
2310
+ bodyPreview?: string | null | undefined;
2311
+ body?: {
2312
+ contentType?: string | null | undefined;
2313
+ content?: string | null | undefined;
2314
+ } | null | undefined;
2315
+ categories?: string[] | null | undefined;
2316
+ hasAttachments?: boolean | null | undefined;
2317
+ isRead?: boolean | null | undefined;
2318
+ isDraft?: boolean | null | undefined;
2319
+ webLink?: string | null | undefined;
2320
+ }[];
2321
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2322
+ }>;
2323
+ } & {
2324
+ slug: "newAttachment";
2325
+ }];
2326
+ }>;
2327
+ export declare const createMicrosoftOutlook: import("frogbot/pieces").PieceFactory<{
2328
+ readonly slug: "microsoft-outlook";
2329
+ readonly label: "Microsoft Outlook";
2330
+ readonly admin: {
2331
+ readonly description: "Send, file and search Outlook mail, and manage calendar events";
2332
+ readonly group: "Communication";
2333
+ };
2334
+ readonly auth: z.ZodObject<{
2335
+ accessToken: z.ZodOptional<z.ZodString>;
2336
+ refreshToken: z.ZodOptional<z.ZodString>;
2337
+ clientId: z.ZodOptional<z.ZodString>;
2338
+ clientSecret: z.ZodOptional<z.ZodString>;
2339
+ mailbox: z.ZodOptional<z.ZodString>;
2340
+ cloud: z.ZodDefault<z.ZodLiteral<"login.microsoftonline.com" | "login.microsoftonline.us">>;
2341
+ tenantId: z.ZodDefault<z.ZodString>;
2342
+ }, z.core.$strip>;
2343
+ readonly client: ({ auth }: {
2344
+ auth: unknown;
2345
+ }) => {
2346
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2347
+ mailbox: string;
2348
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2349
+ method?: string;
2350
+ body?: unknown;
2351
+ headers?: Record<string, string>;
2352
+ query?: Record<string, string | number | undefined>;
2353
+ signal?: AbortSignal;
2354
+ }) => Promise<T>;
2355
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
2356
+ method?: string;
2357
+ body?: unknown;
2358
+ headers?: Record<string, string>;
2359
+ query?: Record<string, string | number | undefined>;
2360
+ signal?: AbortSignal;
2361
+ }) => Promise<{
2362
+ value: T[];
2363
+ nextLink: string | null;
2364
+ }>;
2365
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
2366
+ method?: string;
2367
+ body?: unknown;
2368
+ headers?: Record<string, string>;
2369
+ query?: Record<string, string | number | undefined>;
2370
+ signal?: AbortSignal;
2371
+ }) => Promise<T[]>;
2372
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
2373
+ };
2374
+ readonly oauth: {
2375
+ readonly scopes: {
2376
+ readonly catalog: {
2377
+ readonly 'Mail.Read': "Mail.Read";
2378
+ readonly 'Mail.ReadWrite': "Mail.ReadWrite";
2379
+ readonly 'Mail.Send': "Mail.Send";
2380
+ readonly 'Calendars.Read': "Calendars.Read";
2381
+ readonly 'Calendars.ReadWrite': "Calendars.ReadWrite";
2382
+ readonly 'Contacts.Read': "Contacts.Read";
2383
+ readonly openid: "openid";
2384
+ readonly email: "email";
2385
+ readonly profile: "profile";
2386
+ readonly offline_access: "offline_access";
2387
+ readonly 'User.Read': "User.Read";
2388
+ };
2389
+ readonly defaults: readonly ["Mail.ReadWrite", "Mail.Send", "Calendars.ReadWrite", "Contacts.Read"];
2390
+ readonly required: readonly ["offline_access", "User.Read", "openid", "email", "profile"];
2391
+ };
2392
+ readonly toAuth: ({ tokens }: {
2393
+ tokens: import("frogbot/pieces").OAuthTokens;
2394
+ }) => {
2395
+ accessToken: string;
2396
+ refreshToken: string | undefined;
2397
+ cloud: "login.microsoftonline.com" | "login.microsoftonline.us";
2398
+ tenantId: string;
2399
+ };
2400
+ readonly authorizationUrl: string;
2401
+ readonly tokenUrl: string;
2402
+ readonly params: {
2403
+ prompt: string;
2404
+ };
2405
+ readonly account: ({ tokens, req }: {
2406
+ tokens: import("frogbot/pieces").OAuthTokens;
2407
+ client: unknown;
2408
+ req: import("frogbot/pieces").FrogBotRequest;
2409
+ }) => Promise<{
2410
+ id: string;
2411
+ label: string;
2412
+ email: string;
2413
+ }>;
2414
+ };
2415
+ readonly actions: readonly [import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
2416
+ body: z.ZodString;
2417
+ bodyType: z.ZodDefault<z.ZodEnum<{
2418
+ text: "text";
2419
+ html: "html";
2420
+ }>>;
2421
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2422
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
2423
+ name: z.ZodOptional<z.ZodString>;
2424
+ }, z.core.$strip>>>;
2425
+ subject: z.ZodString;
2426
+ to: z.ZodArray<z.ZodEmail>;
2427
+ cc: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
2428
+ bcc: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
2429
+ }, z.core.$strip>, z.ZodObject<{
2430
+ sent: z.ZodLiteral<true>;
2431
+ }, z.core.$strip>, Record<string, never>, {
2432
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2433
+ mailbox: string;
2434
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2435
+ method?: string;
2436
+ body?: unknown;
2437
+ headers?: Record<string, string>;
2438
+ query?: Record<string, string | number | undefined>;
2439
+ signal?: AbortSignal;
2440
+ }) => Promise<T>;
2441
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
2442
+ method?: string;
2443
+ body?: unknown;
2444
+ headers?: Record<string, string>;
2445
+ query?: Record<string, string | number | undefined>;
2446
+ signal?: AbortSignal;
2447
+ }) => Promise<{
2448
+ value: T[];
2449
+ nextLink: string | null;
2450
+ }>;
2451
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
2452
+ method?: string;
2453
+ body?: unknown;
2454
+ headers?: Record<string, string>;
2455
+ query?: Record<string, string | number | undefined>;
2456
+ signal?: AbortSignal;
2457
+ }) => Promise<T[]>;
2458
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
2459
+ }, {
2460
+ sent: true;
2461
+ }> & {
2462
+ slug: "sendEmail";
2463
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
2464
+ messageId: z.ZodString;
2465
+ body: z.ZodString;
2466
+ replyAll: z.ZodDefault<z.ZodBoolean>;
2467
+ cc: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
2468
+ bcc: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
2469
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2470
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
2471
+ name: z.ZodOptional<z.ZodString>;
2472
+ }, z.core.$strip>>>;
2473
+ draft: z.ZodDefault<z.ZodBoolean>;
2474
+ }, z.core.$strip>, z.ZodObject<{
2475
+ draft: z.ZodObject<{
2476
+ id: z.ZodString;
2477
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2478
+ from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2479
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2480
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2481
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2482
+ }, z.core.$strip>>>;
2483
+ }, z.core.$strip>>>;
2484
+ sender: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2485
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2486
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2487
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2488
+ }, z.core.$strip>>>;
2489
+ }, z.core.$strip>>>;
2490
+ toRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2491
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2492
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2493
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2494
+ }, z.core.$strip>>>;
2495
+ }, z.core.$strip>>>>;
2496
+ ccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2497
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2498
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2499
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2500
+ }, z.core.$strip>>>;
2501
+ }, z.core.$strip>>>>;
2502
+ bccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2503
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2504
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2505
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2506
+ }, z.core.$strip>>>;
2507
+ }, z.core.$strip>>>>;
2508
+ replyTo: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2509
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2510
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2511
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2512
+ }, z.core.$strip>>>;
2513
+ }, z.core.$strip>>>>;
2514
+ receivedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2515
+ sentDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2516
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2517
+ parentFolderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2518
+ bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2519
+ body: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2520
+ contentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2521
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2522
+ }, z.core.$strip>>>;
2523
+ categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2524
+ hasAttachments: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2525
+ isRead: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2526
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2527
+ webLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2528
+ }, z.core.$loose>;
2529
+ sent: z.ZodBoolean;
2530
+ }, z.core.$strip>, Record<string, never>, {
2531
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2532
+ mailbox: string;
2533
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2534
+ method?: string;
2535
+ body?: unknown;
2536
+ headers?: Record<string, string>;
2537
+ query?: Record<string, string | number | undefined>;
2538
+ signal?: AbortSignal;
2539
+ }) => Promise<T>;
2540
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
2541
+ method?: string;
2542
+ body?: unknown;
2543
+ headers?: Record<string, string>;
2544
+ query?: Record<string, string | number | undefined>;
2545
+ signal?: AbortSignal;
2546
+ }) => Promise<{
2547
+ value: T[];
2548
+ nextLink: string | null;
2549
+ }>;
2550
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
2551
+ method?: string;
2552
+ body?: unknown;
2553
+ headers?: Record<string, string>;
2554
+ query?: Record<string, string | number | undefined>;
2555
+ signal?: AbortSignal;
2556
+ }) => Promise<T[]>;
2557
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
2558
+ }, {
2559
+ draft: {
2560
+ [x: string]: unknown;
2561
+ id: string;
2562
+ subject?: string | null | undefined;
2563
+ from?: {
2564
+ emailAddress?: {
2565
+ name?: string | null | undefined;
2566
+ address?: string | null | undefined;
2567
+ } | null | undefined;
2568
+ } | null | undefined;
2569
+ sender?: {
2570
+ emailAddress?: {
2571
+ name?: string | null | undefined;
2572
+ address?: string | null | undefined;
2573
+ } | null | undefined;
2574
+ } | null | undefined;
2575
+ toRecipients?: {
2576
+ emailAddress?: {
2577
+ name?: string | null | undefined;
2578
+ address?: string | null | undefined;
2579
+ } | null | undefined;
2580
+ }[] | null | undefined;
2581
+ ccRecipients?: {
2582
+ emailAddress?: {
2583
+ name?: string | null | undefined;
2584
+ address?: string | null | undefined;
2585
+ } | null | undefined;
2586
+ }[] | null | undefined;
2587
+ bccRecipients?: {
2588
+ emailAddress?: {
2589
+ name?: string | null | undefined;
2590
+ address?: string | null | undefined;
2591
+ } | null | undefined;
2592
+ }[] | null | undefined;
2593
+ replyTo?: {
2594
+ emailAddress?: {
2595
+ name?: string | null | undefined;
2596
+ address?: string | null | undefined;
2597
+ } | null | undefined;
2598
+ }[] | null | undefined;
2599
+ receivedDateTime?: string | null | undefined;
2600
+ sentDateTime?: string | null | undefined;
2601
+ conversationId?: string | null | undefined;
2602
+ parentFolderId?: string | null | undefined;
2603
+ bodyPreview?: string | null | undefined;
2604
+ body?: {
2605
+ contentType?: string | null | undefined;
2606
+ content?: string | null | undefined;
2607
+ } | null | undefined;
2608
+ categories?: string[] | null | undefined;
2609
+ hasAttachments?: boolean | null | undefined;
2610
+ isRead?: boolean | null | undefined;
2611
+ isDraft?: boolean | null | undefined;
2612
+ webLink?: string | null | undefined;
2613
+ };
2614
+ sent: boolean;
2615
+ }> & {
2616
+ slug: "replyToEmail";
2617
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
2618
+ messageId: z.ZodString;
2619
+ to: z.ZodArray<z.ZodEmail>;
2620
+ comment: z.ZodOptional<z.ZodString>;
2621
+ }, z.core.$strip>, z.ZodObject<{
2622
+ messageId: z.ZodString;
2623
+ forwarded: z.ZodLiteral<true>;
2624
+ }, z.core.$strip>, Record<string, never>, {
2625
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2626
+ mailbox: string;
2627
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2628
+ method?: string;
2629
+ body?: unknown;
2630
+ headers?: Record<string, string>;
2631
+ query?: Record<string, string | number | undefined>;
2632
+ signal?: AbortSignal;
2633
+ }) => Promise<T>;
2634
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
2635
+ method?: string;
2636
+ body?: unknown;
2637
+ headers?: Record<string, string>;
2638
+ query?: Record<string, string | number | undefined>;
2639
+ signal?: AbortSignal;
2640
+ }) => Promise<{
2641
+ value: T[];
2642
+ nextLink: string | null;
2643
+ }>;
2644
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
2645
+ method?: string;
2646
+ body?: unknown;
2647
+ headers?: Record<string, string>;
2648
+ query?: Record<string, string | number | undefined>;
2649
+ signal?: AbortSignal;
2650
+ }) => Promise<T[]>;
2651
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
2652
+ }, {
2653
+ messageId: string;
2654
+ forwarded: true;
2655
+ }> & {
2656
+ slug: "forwardEmail";
2657
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
2658
+ body: z.ZodString;
2659
+ bodyType: z.ZodDefault<z.ZodEnum<{
2660
+ text: "text";
2661
+ html: "html";
2662
+ }>>;
2663
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2664
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
2665
+ name: z.ZodOptional<z.ZodString>;
2666
+ }, z.core.$strip>>>;
2667
+ subject: z.ZodString;
2668
+ to: z.ZodArray<z.ZodEmail>;
2669
+ cc: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
2670
+ bcc: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
2671
+ }, z.core.$strip>, z.ZodObject<{
2672
+ id: z.ZodString;
2673
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2674
+ from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2675
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2676
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2677
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2678
+ }, z.core.$strip>>>;
2679
+ }, z.core.$strip>>>;
2680
+ sender: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2681
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2682
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2683
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2684
+ }, z.core.$strip>>>;
2685
+ }, z.core.$strip>>>;
2686
+ toRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2687
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2688
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2689
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2690
+ }, z.core.$strip>>>;
2691
+ }, z.core.$strip>>>>;
2692
+ ccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2693
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2694
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2695
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2696
+ }, z.core.$strip>>>;
2697
+ }, z.core.$strip>>>>;
2698
+ bccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2699
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2700
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2701
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2702
+ }, z.core.$strip>>>;
2703
+ }, z.core.$strip>>>>;
2704
+ replyTo: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2705
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2706
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2707
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2708
+ }, z.core.$strip>>>;
2709
+ }, z.core.$strip>>>>;
2710
+ receivedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2711
+ sentDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2712
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2713
+ parentFolderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2714
+ bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2715
+ body: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2716
+ contentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2717
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2718
+ }, z.core.$strip>>>;
2719
+ categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2720
+ hasAttachments: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2721
+ isRead: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2722
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2723
+ webLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2724
+ }, z.core.$loose>, Record<string, never>, {
2725
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2726
+ mailbox: string;
2727
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2728
+ method?: string;
2729
+ body?: unknown;
2730
+ headers?: Record<string, string>;
2731
+ query?: Record<string, string | number | undefined>;
2732
+ signal?: AbortSignal;
2733
+ }) => Promise<T>;
2734
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
2735
+ method?: string;
2736
+ body?: unknown;
2737
+ headers?: Record<string, string>;
2738
+ query?: Record<string, string | number | undefined>;
2739
+ signal?: AbortSignal;
2740
+ }) => Promise<{
2741
+ value: T[];
2742
+ nextLink: string | null;
2743
+ }>;
2744
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
2745
+ method?: string;
2746
+ body?: unknown;
2747
+ headers?: Record<string, string>;
2748
+ query?: Record<string, string | number | undefined>;
2749
+ signal?: AbortSignal;
2750
+ }) => Promise<T[]>;
2751
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
2752
+ }, {
2753
+ [x: string]: unknown;
2754
+ id: string;
2755
+ subject?: string | null | undefined;
2756
+ from?: {
2757
+ emailAddress?: {
2758
+ name?: string | null | undefined;
2759
+ address?: string | null | undefined;
2760
+ } | null | undefined;
2761
+ } | null | undefined;
2762
+ sender?: {
2763
+ emailAddress?: {
2764
+ name?: string | null | undefined;
2765
+ address?: string | null | undefined;
2766
+ } | null | undefined;
2767
+ } | null | undefined;
2768
+ toRecipients?: {
2769
+ emailAddress?: {
2770
+ name?: string | null | undefined;
2771
+ address?: string | null | undefined;
2772
+ } | null | undefined;
2773
+ }[] | null | undefined;
2774
+ ccRecipients?: {
2775
+ emailAddress?: {
2776
+ name?: string | null | undefined;
2777
+ address?: string | null | undefined;
2778
+ } | null | undefined;
2779
+ }[] | null | undefined;
2780
+ bccRecipients?: {
2781
+ emailAddress?: {
2782
+ name?: string | null | undefined;
2783
+ address?: string | null | undefined;
2784
+ } | null | undefined;
2785
+ }[] | null | undefined;
2786
+ replyTo?: {
2787
+ emailAddress?: {
2788
+ name?: string | null | undefined;
2789
+ address?: string | null | undefined;
2790
+ } | null | undefined;
2791
+ }[] | null | undefined;
2792
+ receivedDateTime?: string | null | undefined;
2793
+ sentDateTime?: string | null | undefined;
2794
+ conversationId?: string | null | undefined;
2795
+ parentFolderId?: string | null | undefined;
2796
+ bodyPreview?: string | null | undefined;
2797
+ body?: {
2798
+ contentType?: string | null | undefined;
2799
+ content?: string | null | undefined;
2800
+ } | null | undefined;
2801
+ categories?: string[] | null | undefined;
2802
+ hasAttachments?: boolean | null | undefined;
2803
+ isRead?: boolean | null | undefined;
2804
+ isDraft?: boolean | null | undefined;
2805
+ webLink?: string | null | undefined;
2806
+ }> & {
2807
+ slug: "createDraftEmail";
2808
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
2809
+ messageId: z.ZodString;
2810
+ }, z.core.$strip>, z.ZodObject<{
2811
+ messageId: z.ZodString;
2812
+ sent: z.ZodLiteral<true>;
2813
+ }, z.core.$strip>, Record<string, never>, {
2814
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2815
+ mailbox: string;
2816
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2817
+ method?: string;
2818
+ body?: unknown;
2819
+ headers?: Record<string, string>;
2820
+ query?: Record<string, string | number | undefined>;
2821
+ signal?: AbortSignal;
2822
+ }) => Promise<T>;
2823
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
2824
+ method?: string;
2825
+ body?: unknown;
2826
+ headers?: Record<string, string>;
2827
+ query?: Record<string, string | number | undefined>;
2828
+ signal?: AbortSignal;
2829
+ }) => Promise<{
2830
+ value: T[];
2831
+ nextLink: string | null;
2832
+ }>;
2833
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
2834
+ method?: string;
2835
+ body?: unknown;
2836
+ headers?: Record<string, string>;
2837
+ query?: Record<string, string | number | undefined>;
2838
+ signal?: AbortSignal;
2839
+ }) => Promise<T[]>;
2840
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
2841
+ }, {
2842
+ messageId: string;
2843
+ sent: true;
2844
+ }> & {
2845
+ slug: "sendDraft";
2846
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
2847
+ messageId: z.ZodString;
2848
+ folderId: z.ZodString;
2849
+ }, z.core.$strip>, z.ZodObject<{
2850
+ id: z.ZodString;
2851
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2852
+ from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2853
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2854
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2855
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2856
+ }, z.core.$strip>>>;
2857
+ }, z.core.$strip>>>;
2858
+ sender: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2859
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2860
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2861
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2862
+ }, z.core.$strip>>>;
2863
+ }, z.core.$strip>>>;
2864
+ toRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2865
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2866
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2867
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2868
+ }, z.core.$strip>>>;
2869
+ }, z.core.$strip>>>>;
2870
+ ccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2871
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2872
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2873
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2874
+ }, z.core.$strip>>>;
2875
+ }, z.core.$strip>>>>;
2876
+ bccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2877
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2878
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2879
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2880
+ }, z.core.$strip>>>;
2881
+ }, z.core.$strip>>>>;
2882
+ replyTo: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2883
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2884
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2885
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2886
+ }, z.core.$strip>>>;
2887
+ }, z.core.$strip>>>>;
2888
+ receivedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2889
+ sentDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2890
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2891
+ parentFolderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2892
+ bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2893
+ body: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2894
+ contentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2895
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2896
+ }, z.core.$strip>>>;
2897
+ categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2898
+ hasAttachments: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2899
+ isRead: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2900
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2901
+ webLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2902
+ }, z.core.$loose>, Record<string, never>, {
2903
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2904
+ mailbox: string;
2905
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2906
+ method?: string;
2907
+ body?: unknown;
2908
+ headers?: Record<string, string>;
2909
+ query?: Record<string, string | number | undefined>;
2910
+ signal?: AbortSignal;
2911
+ }) => Promise<T>;
2912
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
2913
+ method?: string;
2914
+ body?: unknown;
2915
+ headers?: Record<string, string>;
2916
+ query?: Record<string, string | number | undefined>;
2917
+ signal?: AbortSignal;
2918
+ }) => Promise<{
2919
+ value: T[];
2920
+ nextLink: string | null;
2921
+ }>;
2922
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
2923
+ method?: string;
2924
+ body?: unknown;
2925
+ headers?: Record<string, string>;
2926
+ query?: Record<string, string | number | undefined>;
2927
+ signal?: AbortSignal;
2928
+ }) => Promise<T[]>;
2929
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
2930
+ }, {
2931
+ [x: string]: unknown;
2932
+ id: string;
2933
+ subject?: string | null | undefined;
2934
+ from?: {
2935
+ emailAddress?: {
2936
+ name?: string | null | undefined;
2937
+ address?: string | null | undefined;
2938
+ } | null | undefined;
2939
+ } | null | undefined;
2940
+ sender?: {
2941
+ emailAddress?: {
2942
+ name?: string | null | undefined;
2943
+ address?: string | null | undefined;
2944
+ } | null | undefined;
2945
+ } | null | undefined;
2946
+ toRecipients?: {
2947
+ emailAddress?: {
2948
+ name?: string | null | undefined;
2949
+ address?: string | null | undefined;
2950
+ } | null | undefined;
2951
+ }[] | null | undefined;
2952
+ ccRecipients?: {
2953
+ emailAddress?: {
2954
+ name?: string | null | undefined;
2955
+ address?: string | null | undefined;
2956
+ } | null | undefined;
2957
+ }[] | null | undefined;
2958
+ bccRecipients?: {
2959
+ emailAddress?: {
2960
+ name?: string | null | undefined;
2961
+ address?: string | null | undefined;
2962
+ } | null | undefined;
2963
+ }[] | null | undefined;
2964
+ replyTo?: {
2965
+ emailAddress?: {
2966
+ name?: string | null | undefined;
2967
+ address?: string | null | undefined;
2968
+ } | null | undefined;
2969
+ }[] | null | undefined;
2970
+ receivedDateTime?: string | null | undefined;
2971
+ sentDateTime?: string | null | undefined;
2972
+ conversationId?: string | null | undefined;
2973
+ parentFolderId?: string | null | undefined;
2974
+ bodyPreview?: string | null | undefined;
2975
+ body?: {
2976
+ contentType?: string | null | undefined;
2977
+ content?: string | null | undefined;
2978
+ } | null | undefined;
2979
+ categories?: string[] | null | undefined;
2980
+ hasAttachments?: boolean | null | undefined;
2981
+ isRead?: boolean | null | undefined;
2982
+ isDraft?: boolean | null | undefined;
2983
+ webLink?: string | null | undefined;
2984
+ }> & {
2985
+ slug: "moveEmail";
2986
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
2987
+ messageId: z.ZodString;
2988
+ categories: z.ZodArray<z.ZodString>;
2989
+ }, z.core.$strip>, z.ZodObject<{
2990
+ id: z.ZodString;
2991
+ categories: z.ZodArray<z.ZodString>;
2992
+ }, z.core.$strip>, Record<string, never>, {
2993
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2994
+ mailbox: string;
2995
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2996
+ method?: string;
2997
+ body?: unknown;
2998
+ headers?: Record<string, string>;
2999
+ query?: Record<string, string | number | undefined>;
3000
+ signal?: AbortSignal;
3001
+ }) => Promise<T>;
3002
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
3003
+ method?: string;
3004
+ body?: unknown;
3005
+ headers?: Record<string, string>;
3006
+ query?: Record<string, string | number | undefined>;
3007
+ signal?: AbortSignal;
3008
+ }) => Promise<{
3009
+ value: T[];
3010
+ nextLink: string | null;
3011
+ }>;
3012
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
3013
+ method?: string;
3014
+ body?: unknown;
3015
+ headers?: Record<string, string>;
3016
+ query?: Record<string, string | number | undefined>;
3017
+ signal?: AbortSignal;
3018
+ }) => Promise<T[]>;
3019
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
3020
+ }, {
3021
+ id: string;
3022
+ categories: string[];
3023
+ }> & {
3024
+ slug: "addCategory";
3025
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
3026
+ messageId: z.ZodString;
3027
+ categories: z.ZodArray<z.ZodString>;
3028
+ }, z.core.$strip>, z.ZodObject<{
3029
+ id: z.ZodString;
3030
+ categories: z.ZodArray<z.ZodString>;
3031
+ }, z.core.$strip>, Record<string, never>, {
3032
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
3033
+ mailbox: string;
3034
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
3035
+ method?: string;
3036
+ body?: unknown;
3037
+ headers?: Record<string, string>;
3038
+ query?: Record<string, string | number | undefined>;
3039
+ signal?: AbortSignal;
3040
+ }) => Promise<T>;
3041
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
3042
+ method?: string;
3043
+ body?: unknown;
3044
+ headers?: Record<string, string>;
3045
+ query?: Record<string, string | number | undefined>;
3046
+ signal?: AbortSignal;
3047
+ }) => Promise<{
3048
+ value: T[];
3049
+ nextLink: string | null;
3050
+ }>;
3051
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
3052
+ method?: string;
3053
+ body?: unknown;
3054
+ headers?: Record<string, string>;
3055
+ query?: Record<string, string | number | undefined>;
3056
+ signal?: AbortSignal;
3057
+ }) => Promise<T[]>;
3058
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
3059
+ }, {
3060
+ id: string;
3061
+ categories: string[];
3062
+ }> & {
3063
+ slug: "removeCategory";
3064
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
3065
+ query: z.ZodString;
3066
+ folderId: z.ZodOptional<z.ZodString>;
3067
+ limit: z.ZodDefault<z.ZodNumber>;
3068
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
3069
+ id: z.ZodString;
3070
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3071
+ from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3072
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3073
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3074
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3075
+ }, z.core.$strip>>>;
3076
+ }, z.core.$strip>>>;
3077
+ sender: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3078
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3079
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3080
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3081
+ }, z.core.$strip>>>;
3082
+ }, z.core.$strip>>>;
3083
+ toRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3084
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3085
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3086
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3087
+ }, z.core.$strip>>>;
3088
+ }, z.core.$strip>>>>;
3089
+ ccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3090
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3091
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3092
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3093
+ }, z.core.$strip>>>;
3094
+ }, z.core.$strip>>>>;
3095
+ bccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3096
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3097
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3098
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3099
+ }, z.core.$strip>>>;
3100
+ }, z.core.$strip>>>>;
3101
+ replyTo: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3102
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3103
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3104
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3105
+ }, z.core.$strip>>>;
3106
+ }, z.core.$strip>>>>;
3107
+ receivedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3108
+ sentDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3109
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3110
+ parentFolderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3111
+ bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3112
+ body: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3113
+ contentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3114
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3115
+ }, z.core.$strip>>>;
3116
+ categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3117
+ hasAttachments: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3118
+ isRead: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3119
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3120
+ webLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3121
+ }, z.core.$loose>>, Record<string, never>, {
3122
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
3123
+ mailbox: string;
3124
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
3125
+ method?: string;
3126
+ body?: unknown;
3127
+ headers?: Record<string, string>;
3128
+ query?: Record<string, string | number | undefined>;
3129
+ signal?: AbortSignal;
3130
+ }) => Promise<T>;
3131
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
3132
+ method?: string;
3133
+ body?: unknown;
3134
+ headers?: Record<string, string>;
3135
+ query?: Record<string, string | number | undefined>;
3136
+ signal?: AbortSignal;
3137
+ }) => Promise<{
3138
+ value: T[];
3139
+ nextLink: string | null;
3140
+ }>;
3141
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
3142
+ method?: string;
3143
+ body?: unknown;
3144
+ headers?: Record<string, string>;
3145
+ query?: Record<string, string | number | undefined>;
3146
+ signal?: AbortSignal;
3147
+ }) => Promise<T[]>;
3148
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
3149
+ }, {
3150
+ [x: string]: unknown;
3151
+ id: string;
3152
+ subject?: string | null | undefined;
3153
+ from?: {
3154
+ emailAddress?: {
3155
+ name?: string | null | undefined;
3156
+ address?: string | null | undefined;
3157
+ } | null | undefined;
3158
+ } | null | undefined;
3159
+ sender?: {
3160
+ emailAddress?: {
3161
+ name?: string | null | undefined;
3162
+ address?: string | null | undefined;
3163
+ } | null | undefined;
3164
+ } | null | undefined;
3165
+ toRecipients?: {
3166
+ emailAddress?: {
3167
+ name?: string | null | undefined;
3168
+ address?: string | null | undefined;
3169
+ } | null | undefined;
3170
+ }[] | null | undefined;
3171
+ ccRecipients?: {
3172
+ emailAddress?: {
3173
+ name?: string | null | undefined;
3174
+ address?: string | null | undefined;
3175
+ } | null | undefined;
3176
+ }[] | null | undefined;
3177
+ bccRecipients?: {
3178
+ emailAddress?: {
3179
+ name?: string | null | undefined;
3180
+ address?: string | null | undefined;
3181
+ } | null | undefined;
3182
+ }[] | null | undefined;
3183
+ replyTo?: {
3184
+ emailAddress?: {
3185
+ name?: string | null | undefined;
3186
+ address?: string | null | undefined;
3187
+ } | null | undefined;
3188
+ }[] | null | undefined;
3189
+ receivedDateTime?: string | null | undefined;
3190
+ sentDateTime?: string | null | undefined;
3191
+ conversationId?: string | null | undefined;
3192
+ parentFolderId?: string | null | undefined;
3193
+ bodyPreview?: string | null | undefined;
3194
+ body?: {
3195
+ contentType?: string | null | undefined;
3196
+ content?: string | null | undefined;
3197
+ } | null | undefined;
3198
+ categories?: string[] | null | undefined;
3199
+ hasAttachments?: boolean | null | undefined;
3200
+ isRead?: boolean | null | undefined;
3201
+ isDraft?: boolean | null | undefined;
3202
+ webLink?: string | null | undefined;
3203
+ }[]> & {
3204
+ slug: "searchEmails";
3205
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
3206
+ messageId: z.ZodString;
3207
+ attachmentId: z.ZodOptional<z.ZodString>;
3208
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
3209
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
3210
+ name: z.ZodString;
3211
+ mimeType: z.ZodString;
3212
+ size: z.ZodNumber;
3213
+ url: z.ZodNullable<z.ZodString>;
3214
+ attachmentId: z.ZodString;
3215
+ }, z.core.$strip>>, Record<string, never>, {
3216
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
3217
+ mailbox: string;
3218
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
3219
+ method?: string;
3220
+ body?: unknown;
3221
+ headers?: Record<string, string>;
3222
+ query?: Record<string, string | number | undefined>;
3223
+ signal?: AbortSignal;
3224
+ }) => Promise<T>;
3225
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
3226
+ method?: string;
3227
+ body?: unknown;
3228
+ headers?: Record<string, string>;
3229
+ query?: Record<string, string | number | undefined>;
3230
+ signal?: AbortSignal;
3231
+ }) => Promise<{
3232
+ value: T[];
3233
+ nextLink: string | null;
3234
+ }>;
3235
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
3236
+ method?: string;
3237
+ body?: unknown;
3238
+ headers?: Record<string, string>;
3239
+ query?: Record<string, string | number | undefined>;
3240
+ signal?: AbortSignal;
3241
+ }) => Promise<T[]>;
3242
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
3243
+ }, {
3244
+ fileId: string | number;
3245
+ name: string;
3246
+ mimeType: string;
3247
+ size: number;
3248
+ url: string | null;
3249
+ attachmentId: string;
3250
+ }[]> & {
3251
+ slug: "downloadAttachment";
3252
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
3253
+ calendarId: z.ZodOptional<z.ZodString>;
3254
+ subject: z.ZodString;
3255
+ start: z.ZodISODateTime;
3256
+ end: z.ZodOptional<z.ZodISODateTime>;
3257
+ timeZone: z.ZodDefault<z.ZodString>;
3258
+ location: z.ZodOptional<z.ZodString>;
3259
+ body: z.ZodOptional<z.ZodString>;
3260
+ bodyType: z.ZodDefault<z.ZodEnum<{
3261
+ text: "text";
3262
+ html: "html";
3263
+ }>>;
3264
+ attendees: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
3265
+ }, z.core.$strip>, z.ZodObject<{
3266
+ id: z.ZodString;
3267
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3268
+ start: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3269
+ dateTime: z.ZodString;
3270
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3271
+ }, z.core.$strip>>>;
3272
+ end: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3273
+ dateTime: z.ZodString;
3274
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3275
+ }, z.core.$strip>>>;
3276
+ isAllDay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3277
+ location: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3278
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3279
+ }, z.core.$loose>>>;
3280
+ organizer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3281
+ emailAddress: z.ZodObject<{
3282
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3283
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3284
+ }, z.core.$strip>;
3285
+ }, z.core.$strip>>>;
3286
+ attendees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$loose>>>>;
3287
+ bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3288
+ webLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3289
+ onlineMeeting: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3290
+ joinUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3291
+ }, z.core.$loose>>>;
3292
+ seriesMasterId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3293
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3294
+ }, z.core.$loose>, Record<string, never>, {
3295
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
3296
+ mailbox: string;
3297
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
3298
+ method?: string;
3299
+ body?: unknown;
3300
+ headers?: Record<string, string>;
3301
+ query?: Record<string, string | number | undefined>;
3302
+ signal?: AbortSignal;
3303
+ }) => Promise<T>;
3304
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
3305
+ method?: string;
3306
+ body?: unknown;
3307
+ headers?: Record<string, string>;
3308
+ query?: Record<string, string | number | undefined>;
3309
+ signal?: AbortSignal;
3310
+ }) => Promise<{
3311
+ value: T[];
3312
+ nextLink: string | null;
3313
+ }>;
3314
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
3315
+ method?: string;
3316
+ body?: unknown;
3317
+ headers?: Record<string, string>;
3318
+ query?: Record<string, string | number | undefined>;
3319
+ signal?: AbortSignal;
3320
+ }) => Promise<T[]>;
3321
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
3322
+ }, {
3323
+ [x: string]: unknown;
3324
+ id: string;
3325
+ subject?: string | null | undefined;
3326
+ start?: {
3327
+ dateTime: string;
3328
+ timeZone?: string | null | undefined;
3329
+ } | null | undefined;
3330
+ end?: {
3331
+ dateTime: string;
3332
+ timeZone?: string | null | undefined;
3333
+ } | null | undefined;
3334
+ isAllDay?: boolean | null | undefined;
3335
+ location?: {
3336
+ [x: string]: unknown;
3337
+ displayName?: string | null | undefined;
3338
+ } | null | undefined;
3339
+ organizer?: {
3340
+ emailAddress: {
3341
+ name?: string | null | undefined;
3342
+ address?: string | null | undefined;
3343
+ };
3344
+ } | null | undefined;
3345
+ attendees?: {
3346
+ [x: string]: unknown;
3347
+ }[] | null | undefined;
3348
+ bodyPreview?: string | null | undefined;
3349
+ webLink?: string | null | undefined;
3350
+ onlineMeeting?: {
3351
+ [x: string]: unknown;
3352
+ joinUrl?: string | null | undefined;
3353
+ } | null | undefined;
3354
+ seriesMasterId?: string | null | undefined;
3355
+ type?: string | null | undefined;
3356
+ }> & {
3357
+ slug: "createEvent";
3358
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
3359
+ eventId: z.ZodString;
3360
+ }, z.core.$strip>, z.ZodObject<{
3361
+ eventId: z.ZodString;
3362
+ found: z.ZodBoolean;
3363
+ }, z.core.$strip>, Record<string, never>, {
3364
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
3365
+ mailbox: string;
3366
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
3367
+ method?: string;
3368
+ body?: unknown;
3369
+ headers?: Record<string, string>;
3370
+ query?: Record<string, string | number | undefined>;
3371
+ signal?: AbortSignal;
3372
+ }) => Promise<T>;
3373
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
3374
+ method?: string;
3375
+ body?: unknown;
3376
+ headers?: Record<string, string>;
3377
+ query?: Record<string, string | number | undefined>;
3378
+ signal?: AbortSignal;
3379
+ }) => Promise<{
3380
+ value: T[];
3381
+ nextLink: string | null;
3382
+ }>;
3383
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
3384
+ method?: string;
3385
+ body?: unknown;
3386
+ headers?: Record<string, string>;
3387
+ query?: Record<string, string | number | undefined>;
3388
+ signal?: AbortSignal;
3389
+ }) => Promise<T[]>;
3390
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
3391
+ }, {
3392
+ eventId: string;
3393
+ found: boolean;
3394
+ }> & {
3395
+ slug: "deleteEvent";
3396
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodObject<{
3397
+ id: z.ZodString;
3398
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3399
+ isDefaultCalendar: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3400
+ canEdit: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3401
+ owner: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3402
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3403
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3404
+ }, z.core.$strip>>>;
3405
+ }, z.core.$loose>>, Record<string, never>, {
3406
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
3407
+ mailbox: string;
3408
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
3409
+ method?: string;
3410
+ body?: unknown;
3411
+ headers?: Record<string, string>;
3412
+ query?: Record<string, string | number | undefined>;
3413
+ signal?: AbortSignal;
3414
+ }) => Promise<T>;
3415
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
3416
+ method?: string;
3417
+ body?: unknown;
3418
+ headers?: Record<string, string>;
3419
+ query?: Record<string, string | number | undefined>;
3420
+ signal?: AbortSignal;
3421
+ }) => Promise<{
3422
+ value: T[];
3423
+ nextLink: string | null;
3424
+ }>;
3425
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
3426
+ method?: string;
3427
+ body?: unknown;
3428
+ headers?: Record<string, string>;
3429
+ query?: Record<string, string | number | undefined>;
3430
+ signal?: AbortSignal;
3431
+ }) => Promise<T[]>;
3432
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
3433
+ }, {
3434
+ [x: string]: unknown;
3435
+ id: string;
3436
+ name?: string | null | undefined;
3437
+ isDefaultCalendar?: boolean | null | undefined;
3438
+ canEdit?: boolean | null | undefined;
3439
+ owner?: {
3440
+ name?: string | null | undefined;
3441
+ address?: string | null | undefined;
3442
+ } | null | undefined;
3443
+ }[]> & {
3444
+ slug: "listCalendars";
3445
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
3446
+ emails: z.ZodArray<z.ZodEmail>;
3447
+ start: z.ZodISODateTime;
3448
+ end: z.ZodISODateTime;
3449
+ timeZone: z.ZodDefault<z.ZodString>;
3450
+ intervalMinutes: z.ZodDefault<z.ZodNumber>;
3451
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
3452
+ scheduleId: z.ZodString;
3453
+ availabilityView: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3454
+ scheduleItems: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3455
+ status: z.ZodString;
3456
+ start: z.ZodObject<{
3457
+ dateTime: z.ZodString;
3458
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3459
+ }, z.core.$strip>;
3460
+ end: z.ZodObject<{
3461
+ dateTime: z.ZodString;
3462
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3463
+ }, z.core.$strip>;
3464
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3465
+ }, z.core.$loose>>>>;
3466
+ workingHours: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$loose>>>;
3467
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3468
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3469
+ responseCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3470
+ }, z.core.$strip>>>;
3471
+ }, z.core.$loose>>, Record<string, never>, {
3472
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
3473
+ mailbox: string;
3474
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
3475
+ method?: string;
3476
+ body?: unknown;
3477
+ headers?: Record<string, string>;
3478
+ query?: Record<string, string | number | undefined>;
3479
+ signal?: AbortSignal;
3480
+ }) => Promise<T>;
3481
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
3482
+ method?: string;
3483
+ body?: unknown;
3484
+ headers?: Record<string, string>;
3485
+ query?: Record<string, string | number | undefined>;
3486
+ signal?: AbortSignal;
3487
+ }) => Promise<{
3488
+ value: T[];
3489
+ nextLink: string | null;
3490
+ }>;
3491
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
3492
+ method?: string;
3493
+ body?: unknown;
3494
+ headers?: Record<string, string>;
3495
+ query?: Record<string, string | number | undefined>;
3496
+ signal?: AbortSignal;
3497
+ }) => Promise<T[]>;
3498
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
3499
+ }, {
3500
+ [x: string]: unknown;
3501
+ scheduleId: string;
3502
+ availabilityView?: string | null | undefined;
3503
+ scheduleItems?: {
3504
+ [x: string]: unknown;
3505
+ status: string;
3506
+ start: {
3507
+ dateTime: string;
3508
+ timeZone?: string | null | undefined;
3509
+ };
3510
+ end: {
3511
+ dateTime: string;
3512
+ timeZone?: string | null | undefined;
3513
+ };
3514
+ subject?: string | null | undefined;
3515
+ }[] | null | undefined;
3516
+ workingHours?: {
3517
+ [x: string]: unknown;
3518
+ } | null | undefined;
3519
+ error?: {
3520
+ message?: string | null | undefined;
3521
+ responseCode?: string | null | undefined;
3522
+ } | null | undefined;
3523
+ }[]> & {
3524
+ slug: "findFreeBusyPeriods";
3525
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
3526
+ limit: z.ZodDefault<z.ZodNumber>;
3527
+ cursor: z.ZodOptional<z.ZodString>;
3528
+ parentFolderId: z.ZodOptional<z.ZodString>;
3529
+ }, z.core.$strip>, z.ZodObject<{
3530
+ data: z.ZodArray<z.ZodObject<{
3531
+ id: z.ZodString;
3532
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3533
+ parentFolderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3534
+ childFolderCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3535
+ totalItemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3536
+ unreadItemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3537
+ }, z.core.$loose>>;
3538
+ pagination: z.ZodObject<{
3539
+ count: z.ZodNumber;
3540
+ hasMore: z.ZodBoolean;
3541
+ nextCursor: z.ZodNullable<z.ZodString>;
3542
+ limit: z.ZodNumber;
3543
+ }, z.core.$strip>;
3544
+ }, z.core.$strip>, Record<string, never>, {
3545
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
3546
+ mailbox: string;
3547
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
3548
+ method?: string;
3549
+ body?: unknown;
3550
+ headers?: Record<string, string>;
3551
+ query?: Record<string, string | number | undefined>;
3552
+ signal?: AbortSignal;
3553
+ }) => Promise<T>;
3554
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
3555
+ method?: string;
3556
+ body?: unknown;
3557
+ headers?: Record<string, string>;
3558
+ query?: Record<string, string | number | undefined>;
3559
+ signal?: AbortSignal;
3560
+ }) => Promise<{
3561
+ value: T[];
3562
+ nextLink: string | null;
3563
+ }>;
3564
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
3565
+ method?: string;
3566
+ body?: unknown;
3567
+ headers?: Record<string, string>;
3568
+ query?: Record<string, string | number | undefined>;
3569
+ signal?: AbortSignal;
3570
+ }) => Promise<T[]>;
3571
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
3572
+ }, {
3573
+ data: {
3574
+ [x: string]: unknown;
3575
+ id: string;
3576
+ displayName?: string | null | undefined;
3577
+ parentFolderId?: string | null | undefined;
3578
+ childFolderCount?: number | null | undefined;
3579
+ totalItemCount?: number | null | undefined;
3580
+ unreadItemCount?: number | null | undefined;
3581
+ }[];
3582
+ pagination: {
3583
+ count: number;
3584
+ hasMore: boolean;
3585
+ nextCursor: string | null;
3586
+ limit: number;
3587
+ };
3588
+ }> & {
3589
+ slug: "listMailFolders";
3590
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
3591
+ limit: z.ZodDefault<z.ZodNumber>;
3592
+ cursor: z.ZodOptional<z.ZodString>;
3593
+ folderId: z.ZodDefault<z.ZodString>;
3594
+ receivedAfter: z.ZodOptional<z.ZodISODateTime>;
3595
+ }, z.core.$strip>, z.ZodObject<{
3596
+ data: z.ZodArray<z.ZodObject<{
3597
+ id: z.ZodString;
3598
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3599
+ from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3600
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3601
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3602
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3603
+ }, z.core.$strip>>>;
3604
+ }, z.core.$strip>>>;
3605
+ sender: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3606
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3607
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3608
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3609
+ }, z.core.$strip>>>;
3610
+ }, z.core.$strip>>>;
3611
+ toRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3612
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3613
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3614
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3615
+ }, z.core.$strip>>>;
3616
+ }, z.core.$strip>>>>;
3617
+ ccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3618
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3619
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3620
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3621
+ }, z.core.$strip>>>;
3622
+ }, z.core.$strip>>>>;
3623
+ bccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3624
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3625
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3626
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3627
+ }, z.core.$strip>>>;
3628
+ }, z.core.$strip>>>>;
3629
+ replyTo: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3630
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3631
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3632
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3633
+ }, z.core.$strip>>>;
3634
+ }, z.core.$strip>>>>;
3635
+ receivedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3636
+ sentDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3637
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3638
+ parentFolderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3639
+ bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3640
+ body: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3641
+ contentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3642
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3643
+ }, z.core.$strip>>>;
3644
+ categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3645
+ hasAttachments: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3646
+ isRead: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3647
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3648
+ webLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3649
+ }, z.core.$loose>>;
3650
+ pagination: z.ZodObject<{
3651
+ count: z.ZodNumber;
3652
+ hasMore: z.ZodBoolean;
3653
+ nextCursor: z.ZodNullable<z.ZodString>;
3654
+ limit: z.ZodNumber;
3655
+ }, z.core.$strip>;
3656
+ }, z.core.$strip>, Record<string, never>, {
3657
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
3658
+ mailbox: string;
3659
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
3660
+ method?: string;
3661
+ body?: unknown;
3662
+ headers?: Record<string, string>;
3663
+ query?: Record<string, string | number | undefined>;
3664
+ signal?: AbortSignal;
3665
+ }) => Promise<T>;
3666
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
3667
+ method?: string;
3668
+ body?: unknown;
3669
+ headers?: Record<string, string>;
3670
+ query?: Record<string, string | number | undefined>;
3671
+ signal?: AbortSignal;
3672
+ }) => Promise<{
3673
+ value: T[];
3674
+ nextLink: string | null;
3675
+ }>;
3676
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
3677
+ method?: string;
3678
+ body?: unknown;
3679
+ headers?: Record<string, string>;
3680
+ query?: Record<string, string | number | undefined>;
3681
+ signal?: AbortSignal;
3682
+ }) => Promise<T[]>;
3683
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
3684
+ }, {
3685
+ data: {
3686
+ [x: string]: unknown;
3687
+ id: string;
3688
+ subject?: string | null | undefined;
3689
+ from?: {
3690
+ emailAddress?: {
3691
+ name?: string | null | undefined;
3692
+ address?: string | null | undefined;
3693
+ } | null | undefined;
3694
+ } | null | undefined;
3695
+ sender?: {
3696
+ emailAddress?: {
3697
+ name?: string | null | undefined;
3698
+ address?: string | null | undefined;
3699
+ } | null | undefined;
3700
+ } | null | undefined;
3701
+ toRecipients?: {
3702
+ emailAddress?: {
3703
+ name?: string | null | undefined;
3704
+ address?: string | null | undefined;
3705
+ } | null | undefined;
3706
+ }[] | null | undefined;
3707
+ ccRecipients?: {
3708
+ emailAddress?: {
3709
+ name?: string | null | undefined;
3710
+ address?: string | null | undefined;
3711
+ } | null | undefined;
3712
+ }[] | null | undefined;
3713
+ bccRecipients?: {
3714
+ emailAddress?: {
3715
+ name?: string | null | undefined;
3716
+ address?: string | null | undefined;
3717
+ } | null | undefined;
3718
+ }[] | null | undefined;
3719
+ replyTo?: {
3720
+ emailAddress?: {
3721
+ name?: string | null | undefined;
3722
+ address?: string | null | undefined;
3723
+ } | null | undefined;
3724
+ }[] | null | undefined;
3725
+ receivedDateTime?: string | null | undefined;
3726
+ sentDateTime?: string | null | undefined;
3727
+ conversationId?: string | null | undefined;
3728
+ parentFolderId?: string | null | undefined;
3729
+ bodyPreview?: string | null | undefined;
3730
+ body?: {
3731
+ contentType?: string | null | undefined;
3732
+ content?: string | null | undefined;
3733
+ } | null | undefined;
3734
+ categories?: string[] | null | undefined;
3735
+ hasAttachments?: boolean | null | undefined;
3736
+ isRead?: boolean | null | undefined;
3737
+ isDraft?: boolean | null | undefined;
3738
+ webLink?: string | null | undefined;
3739
+ }[];
3740
+ pagination: {
3741
+ count: number;
3742
+ hasMore: boolean;
3743
+ nextCursor: string | null;
3744
+ limit: number;
3745
+ };
3746
+ }> & {
3747
+ slug: "listEmails";
3748
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
3749
+ limit: z.ZodDefault<z.ZodNumber>;
3750
+ cursor: z.ZodOptional<z.ZodString>;
3751
+ calendarId: z.ZodOptional<z.ZodString>;
3752
+ start: z.ZodISODateTime;
3753
+ end: z.ZodISODateTime;
3754
+ }, z.core.$strip>, z.ZodObject<{
3755
+ data: z.ZodArray<z.ZodObject<{
3756
+ id: z.ZodString;
3757
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3758
+ start: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3759
+ dateTime: z.ZodString;
3760
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3761
+ }, z.core.$strip>>>;
3762
+ end: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3763
+ dateTime: z.ZodString;
3764
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3765
+ }, z.core.$strip>>>;
3766
+ isAllDay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3767
+ location: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3768
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3769
+ }, z.core.$loose>>>;
3770
+ organizer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3771
+ emailAddress: z.ZodObject<{
3772
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3773
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3774
+ }, z.core.$strip>;
3775
+ }, z.core.$strip>>>;
3776
+ attendees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$loose>>>>;
3777
+ bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3778
+ webLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3779
+ onlineMeeting: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3780
+ joinUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3781
+ }, z.core.$loose>>>;
3782
+ seriesMasterId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3783
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3784
+ }, z.core.$loose>>;
3785
+ pagination: z.ZodObject<{
3786
+ count: z.ZodNumber;
3787
+ hasMore: z.ZodBoolean;
3788
+ nextCursor: z.ZodNullable<z.ZodString>;
3789
+ limit: z.ZodNumber;
3790
+ }, z.core.$strip>;
3791
+ }, z.core.$strip>, Record<string, never>, {
3792
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
3793
+ mailbox: string;
3794
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
3795
+ method?: string;
3796
+ body?: unknown;
3797
+ headers?: Record<string, string>;
3798
+ query?: Record<string, string | number | undefined>;
3799
+ signal?: AbortSignal;
3800
+ }) => Promise<T>;
3801
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
3802
+ method?: string;
3803
+ body?: unknown;
3804
+ headers?: Record<string, string>;
3805
+ query?: Record<string, string | number | undefined>;
3806
+ signal?: AbortSignal;
3807
+ }) => Promise<{
3808
+ value: T[];
3809
+ nextLink: string | null;
3810
+ }>;
3811
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
3812
+ method?: string;
3813
+ body?: unknown;
3814
+ headers?: Record<string, string>;
3815
+ query?: Record<string, string | number | undefined>;
3816
+ signal?: AbortSignal;
3817
+ }) => Promise<T[]>;
3818
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
3819
+ }, {
3820
+ data: {
3821
+ [x: string]: unknown;
3822
+ id: string;
3823
+ subject?: string | null | undefined;
3824
+ start?: {
3825
+ dateTime: string;
3826
+ timeZone?: string | null | undefined;
3827
+ } | null | undefined;
3828
+ end?: {
3829
+ dateTime: string;
3830
+ timeZone?: string | null | undefined;
3831
+ } | null | undefined;
3832
+ isAllDay?: boolean | null | undefined;
3833
+ location?: {
3834
+ [x: string]: unknown;
3835
+ displayName?: string | null | undefined;
3836
+ } | null | undefined;
3837
+ organizer?: {
3838
+ emailAddress: {
3839
+ name?: string | null | undefined;
3840
+ address?: string | null | undefined;
3841
+ };
3842
+ } | null | undefined;
3843
+ attendees?: {
3844
+ [x: string]: unknown;
3845
+ }[] | null | undefined;
3846
+ bodyPreview?: string | null | undefined;
3847
+ webLink?: string | null | undefined;
3848
+ onlineMeeting?: {
3849
+ [x: string]: unknown;
3850
+ joinUrl?: string | null | undefined;
3851
+ } | null | undefined;
3852
+ seriesMasterId?: string | null | undefined;
3853
+ type?: string | null | undefined;
3854
+ }[];
3855
+ pagination: {
3856
+ count: number;
3857
+ hasMore: boolean;
3858
+ nextCursor: string | null;
3859
+ limit: number;
3860
+ };
3861
+ }> & {
3862
+ slug: "listEvents";
3863
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
3864
+ limit: z.ZodDefault<z.ZodNumber>;
3865
+ cursor: z.ZodOptional<z.ZodString>;
3866
+ }, z.core.$strip>, z.ZodObject<{
3867
+ data: z.ZodArray<z.ZodObject<{
3868
+ id: z.ZodString;
3869
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3870
+ givenName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3871
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3872
+ emailAddresses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3873
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3874
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3875
+ }, z.core.$strip>>>>;
3876
+ businessPhones: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3877
+ mobilePhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3878
+ companyName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3879
+ jobTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3880
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3881
+ }, z.core.$loose>>;
3882
+ pagination: z.ZodObject<{
3883
+ count: z.ZodNumber;
3884
+ hasMore: z.ZodBoolean;
3885
+ nextCursor: z.ZodNullable<z.ZodString>;
3886
+ limit: z.ZodNumber;
3887
+ }, z.core.$strip>;
3888
+ }, z.core.$strip>, Record<string, never>, {
3889
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
3890
+ mailbox: string;
3891
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
3892
+ method?: string;
3893
+ body?: unknown;
3894
+ headers?: Record<string, string>;
3895
+ query?: Record<string, string | number | undefined>;
3896
+ signal?: AbortSignal;
3897
+ }) => Promise<T>;
3898
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
3899
+ method?: string;
3900
+ body?: unknown;
3901
+ headers?: Record<string, string>;
3902
+ query?: Record<string, string | number | undefined>;
3903
+ signal?: AbortSignal;
3904
+ }) => Promise<{
3905
+ value: T[];
3906
+ nextLink: string | null;
3907
+ }>;
3908
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
3909
+ method?: string;
3910
+ body?: unknown;
3911
+ headers?: Record<string, string>;
3912
+ query?: Record<string, string | number | undefined>;
3913
+ signal?: AbortSignal;
3914
+ }) => Promise<T[]>;
3915
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
3916
+ }, {
3917
+ data: {
3918
+ [x: string]: unknown;
3919
+ id: string;
3920
+ displayName?: string | null | undefined;
3921
+ givenName?: string | null | undefined;
3922
+ surname?: string | null | undefined;
3923
+ emailAddresses?: {
3924
+ name?: string | null | undefined;
3925
+ address?: string | null | undefined;
3926
+ }[] | null | undefined;
3927
+ businessPhones?: string[] | null | undefined;
3928
+ mobilePhone?: string | null | undefined;
3929
+ companyName?: string | null | undefined;
3930
+ jobTitle?: string | null | undefined;
3931
+ lastModifiedDateTime?: string | null | undefined;
3932
+ }[];
3933
+ pagination: {
3934
+ count: number;
3935
+ hasMore: boolean;
3936
+ nextCursor: string | null;
3937
+ limit: number;
3938
+ };
3939
+ }> & {
3940
+ slug: "listContacts";
3941
+ }, import("frogbot/pieces").CustomApiCallAction<Record<string, never>, {
3942
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
3943
+ mailbox: string;
3944
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
3945
+ method?: string;
3946
+ body?: unknown;
3947
+ headers?: Record<string, string>;
3948
+ query?: Record<string, string | number | undefined>;
3949
+ signal?: AbortSignal;
3950
+ }) => Promise<T>;
3951
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
3952
+ method?: string;
3953
+ body?: unknown;
3954
+ headers?: Record<string, string>;
3955
+ query?: Record<string, string | number | undefined>;
3956
+ signal?: AbortSignal;
3957
+ }) => Promise<{
3958
+ value: T[];
3959
+ nextLink: string | null;
3960
+ }>;
3961
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
3962
+ method?: string;
3963
+ body?: unknown;
3964
+ headers?: Record<string, string>;
3965
+ query?: Record<string, string | number | undefined>;
3966
+ signal?: AbortSignal;
3967
+ }) => Promise<T[]>;
3968
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
3969
+ }>];
3970
+ readonly triggers: readonly [{
3971
+ slug: string;
3972
+ label?: string;
3973
+ description: string;
3974
+ input: z.ZodObject<{
3975
+ from: z.ZodOptional<z.ZodEmail>;
3976
+ to: z.ZodOptional<z.ZodEmail>;
3977
+ }, z.core.$strip>;
3978
+ output?: z.ZodObject<{
3979
+ id: z.ZodString;
3980
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3981
+ from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3982
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3983
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3984
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3985
+ }, z.core.$strip>>>;
3986
+ }, z.core.$strip>>>;
3987
+ sender: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3988
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3989
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3990
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3991
+ }, z.core.$strip>>>;
3992
+ }, z.core.$strip>>>;
3993
+ toRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3994
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3995
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3996
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3997
+ }, z.core.$strip>>>;
3998
+ }, z.core.$strip>>>>;
3999
+ ccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
4000
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4001
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4002
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4003
+ }, z.core.$strip>>>;
4004
+ }, z.core.$strip>>>>;
4005
+ bccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
4006
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4007
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4008
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4009
+ }, z.core.$strip>>>;
4010
+ }, z.core.$strip>>>>;
4011
+ replyTo: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
4012
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4013
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4014
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4015
+ }, z.core.$strip>>>;
4016
+ }, z.core.$strip>>>>;
4017
+ receivedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4018
+ sentDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4019
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4020
+ parentFolderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4021
+ bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4022
+ body: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4023
+ contentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4024
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4025
+ }, z.core.$strip>>>;
4026
+ categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
4027
+ hasAttachments: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4028
+ isRead: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4029
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4030
+ webLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4031
+ }, z.core.$loose> | undefined;
4032
+ sample?: {
4033
+ [x: string]: unknown;
4034
+ id: string;
4035
+ subject?: string | null | undefined;
4036
+ from?: {
4037
+ emailAddress?: {
4038
+ name?: string | null | undefined;
4039
+ address?: string | null | undefined;
4040
+ } | null | undefined;
4041
+ } | null | undefined;
4042
+ sender?: {
4043
+ emailAddress?: {
4044
+ name?: string | null | undefined;
4045
+ address?: string | null | undefined;
4046
+ } | null | undefined;
4047
+ } | null | undefined;
4048
+ toRecipients?: {
4049
+ emailAddress?: {
4050
+ name?: string | null | undefined;
4051
+ address?: string | null | undefined;
4052
+ } | null | undefined;
4053
+ }[] | null | undefined;
4054
+ ccRecipients?: {
4055
+ emailAddress?: {
4056
+ name?: string | null | undefined;
4057
+ address?: string | null | undefined;
4058
+ } | null | undefined;
4059
+ }[] | null | undefined;
4060
+ bccRecipients?: {
4061
+ emailAddress?: {
4062
+ name?: string | null | undefined;
4063
+ address?: string | null | undefined;
4064
+ } | null | undefined;
4065
+ }[] | null | undefined;
4066
+ replyTo?: {
4067
+ emailAddress?: {
4068
+ name?: string | null | undefined;
4069
+ address?: string | null | undefined;
4070
+ } | null | undefined;
4071
+ }[] | null | undefined;
4072
+ receivedDateTime?: string | null | undefined;
4073
+ sentDateTime?: string | null | undefined;
4074
+ conversationId?: string | null | undefined;
4075
+ parentFolderId?: string | null | undefined;
4076
+ bodyPreview?: string | null | undefined;
4077
+ body?: {
4078
+ contentType?: string | null | undefined;
4079
+ content?: string | null | undefined;
4080
+ } | null | undefined;
4081
+ categories?: string[] | null | undefined;
4082
+ hasAttachments?: boolean | null | undefined;
4083
+ isRead?: boolean | null | undefined;
4084
+ isDraft?: boolean | null | undefined;
4085
+ webLink?: string | null | undefined;
4086
+ } | undefined;
4087
+ } & {
4088
+ type: "polling";
4089
+ schedule?: string;
4090
+ run(args: {
4091
+ input: {
4092
+ from?: string | undefined;
4093
+ to?: string | undefined;
4094
+ };
4095
+ options: Record<string, never>;
4096
+ client: {
4097
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
4098
+ mailbox: string;
4099
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
4100
+ method?: string;
4101
+ body?: unknown;
4102
+ headers?: Record<string, string>;
4103
+ query?: Record<string, string | number | undefined>;
4104
+ signal?: AbortSignal;
4105
+ }) => Promise<T>;
4106
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
4107
+ method?: string;
4108
+ body?: unknown;
4109
+ headers?: Record<string, string>;
4110
+ query?: Record<string, string | number | undefined>;
4111
+ signal?: AbortSignal;
4112
+ }) => Promise<{
4113
+ value: T[];
4114
+ nextLink: string | null;
4115
+ }>;
4116
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
4117
+ method?: string;
4118
+ body?: unknown;
4119
+ headers?: Record<string, string>;
4120
+ query?: Record<string, string | number | undefined>;
4121
+ signal?: AbortSignal;
4122
+ }) => Promise<T[]>;
4123
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
4124
+ };
4125
+ req: import("frogbot/pieces").FrogBotRequest;
4126
+ } & {
4127
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
4128
+ }): Promise<{
4129
+ events: {
4130
+ [x: string]: unknown;
4131
+ id: string;
4132
+ subject?: string | null | undefined;
4133
+ from?: {
4134
+ emailAddress?: {
4135
+ name?: string | null | undefined;
4136
+ address?: string | null | undefined;
4137
+ } | null | undefined;
4138
+ } | null | undefined;
4139
+ sender?: {
4140
+ emailAddress?: {
4141
+ name?: string | null | undefined;
4142
+ address?: string | null | undefined;
4143
+ } | null | undefined;
4144
+ } | null | undefined;
4145
+ toRecipients?: {
4146
+ emailAddress?: {
4147
+ name?: string | null | undefined;
4148
+ address?: string | null | undefined;
4149
+ } | null | undefined;
4150
+ }[] | null | undefined;
4151
+ ccRecipients?: {
4152
+ emailAddress?: {
4153
+ name?: string | null | undefined;
4154
+ address?: string | null | undefined;
4155
+ } | null | undefined;
4156
+ }[] | null | undefined;
4157
+ bccRecipients?: {
4158
+ emailAddress?: {
4159
+ name?: string | null | undefined;
4160
+ address?: string | null | undefined;
4161
+ } | null | undefined;
4162
+ }[] | null | undefined;
4163
+ replyTo?: {
4164
+ emailAddress?: {
4165
+ name?: string | null | undefined;
4166
+ address?: string | null | undefined;
4167
+ } | null | undefined;
4168
+ }[] | null | undefined;
4169
+ receivedDateTime?: string | null | undefined;
4170
+ sentDateTime?: string | null | undefined;
4171
+ conversationId?: string | null | undefined;
4172
+ parentFolderId?: string | null | undefined;
4173
+ bodyPreview?: string | null | undefined;
4174
+ body?: {
4175
+ contentType?: string | null | undefined;
4176
+ content?: string | null | undefined;
4177
+ } | null | undefined;
4178
+ categories?: string[] | null | undefined;
4179
+ hasAttachments?: boolean | null | undefined;
4180
+ isRead?: boolean | null | undefined;
4181
+ isDraft?: boolean | null | undefined;
4182
+ webLink?: string | null | undefined;
4183
+ }[];
4184
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
4185
+ }>;
4186
+ } & {
4187
+ slug: "newEmail";
4188
+ }, {
4189
+ slug: string;
4190
+ label?: string;
4191
+ description: string;
4192
+ input: z.ZodObject<{
4193
+ folderId: z.ZodString;
4194
+ }, z.core.$strip>;
4195
+ output?: z.ZodObject<{
4196
+ id: z.ZodString;
4197
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4198
+ from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4199
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4200
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4201
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4202
+ }, z.core.$strip>>>;
4203
+ }, z.core.$strip>>>;
4204
+ sender: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4205
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4206
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4207
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4208
+ }, z.core.$strip>>>;
4209
+ }, z.core.$strip>>>;
4210
+ toRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
4211
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4212
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4213
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4214
+ }, z.core.$strip>>>;
4215
+ }, z.core.$strip>>>>;
4216
+ ccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
4217
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4218
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4219
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4220
+ }, z.core.$strip>>>;
4221
+ }, z.core.$strip>>>>;
4222
+ bccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
4223
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4224
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4225
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4226
+ }, z.core.$strip>>>;
4227
+ }, z.core.$strip>>>>;
4228
+ replyTo: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
4229
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4230
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4231
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4232
+ }, z.core.$strip>>>;
4233
+ }, z.core.$strip>>>>;
4234
+ receivedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4235
+ sentDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4236
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4237
+ parentFolderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4238
+ bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4239
+ body: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4240
+ contentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4241
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4242
+ }, z.core.$strip>>>;
4243
+ categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
4244
+ hasAttachments: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4245
+ isRead: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4246
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4247
+ webLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4248
+ }, z.core.$loose> | undefined;
4249
+ sample?: {
4250
+ [x: string]: unknown;
4251
+ id: string;
4252
+ subject?: string | null | undefined;
4253
+ from?: {
4254
+ emailAddress?: {
4255
+ name?: string | null | undefined;
4256
+ address?: string | null | undefined;
4257
+ } | null | undefined;
4258
+ } | null | undefined;
4259
+ sender?: {
4260
+ emailAddress?: {
4261
+ name?: string | null | undefined;
4262
+ address?: string | null | undefined;
4263
+ } | null | undefined;
4264
+ } | null | undefined;
4265
+ toRecipients?: {
4266
+ emailAddress?: {
4267
+ name?: string | null | undefined;
4268
+ address?: string | null | undefined;
4269
+ } | null | undefined;
4270
+ }[] | null | undefined;
4271
+ ccRecipients?: {
4272
+ emailAddress?: {
4273
+ name?: string | null | undefined;
4274
+ address?: string | null | undefined;
4275
+ } | null | undefined;
4276
+ }[] | null | undefined;
4277
+ bccRecipients?: {
4278
+ emailAddress?: {
4279
+ name?: string | null | undefined;
4280
+ address?: string | null | undefined;
4281
+ } | null | undefined;
4282
+ }[] | null | undefined;
4283
+ replyTo?: {
4284
+ emailAddress?: {
4285
+ name?: string | null | undefined;
4286
+ address?: string | null | undefined;
4287
+ } | null | undefined;
4288
+ }[] | null | undefined;
4289
+ receivedDateTime?: string | null | undefined;
4290
+ sentDateTime?: string | null | undefined;
4291
+ conversationId?: string | null | undefined;
4292
+ parentFolderId?: string | null | undefined;
4293
+ bodyPreview?: string | null | undefined;
4294
+ body?: {
4295
+ contentType?: string | null | undefined;
4296
+ content?: string | null | undefined;
4297
+ } | null | undefined;
4298
+ categories?: string[] | null | undefined;
4299
+ hasAttachments?: boolean | null | undefined;
4300
+ isRead?: boolean | null | undefined;
4301
+ isDraft?: boolean | null | undefined;
4302
+ webLink?: string | null | undefined;
4303
+ } | undefined;
4304
+ } & {
4305
+ type: "polling";
4306
+ schedule?: string;
4307
+ run(args: {
4308
+ input: {
4309
+ folderId: string;
4310
+ };
4311
+ options: Record<string, never>;
4312
+ client: {
4313
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
4314
+ mailbox: string;
4315
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
4316
+ method?: string;
4317
+ body?: unknown;
4318
+ headers?: Record<string, string>;
4319
+ query?: Record<string, string | number | undefined>;
4320
+ signal?: AbortSignal;
4321
+ }) => Promise<T>;
4322
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
4323
+ method?: string;
4324
+ body?: unknown;
4325
+ headers?: Record<string, string>;
4326
+ query?: Record<string, string | number | undefined>;
4327
+ signal?: AbortSignal;
4328
+ }) => Promise<{
4329
+ value: T[];
4330
+ nextLink: string | null;
4331
+ }>;
4332
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
4333
+ method?: string;
4334
+ body?: unknown;
4335
+ headers?: Record<string, string>;
4336
+ query?: Record<string, string | number | undefined>;
4337
+ signal?: AbortSignal;
4338
+ }) => Promise<T[]>;
4339
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
4340
+ };
4341
+ req: import("frogbot/pieces").FrogBotRequest;
4342
+ } & {
4343
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
4344
+ }): Promise<{
4345
+ events: {
4346
+ [x: string]: unknown;
4347
+ id: string;
4348
+ subject?: string | null | undefined;
4349
+ from?: {
4350
+ emailAddress?: {
4351
+ name?: string | null | undefined;
4352
+ address?: string | null | undefined;
4353
+ } | null | undefined;
4354
+ } | null | undefined;
4355
+ sender?: {
4356
+ emailAddress?: {
4357
+ name?: string | null | undefined;
4358
+ address?: string | null | undefined;
4359
+ } | null | undefined;
4360
+ } | null | undefined;
4361
+ toRecipients?: {
4362
+ emailAddress?: {
4363
+ name?: string | null | undefined;
4364
+ address?: string | null | undefined;
4365
+ } | null | undefined;
4366
+ }[] | null | undefined;
4367
+ ccRecipients?: {
4368
+ emailAddress?: {
4369
+ name?: string | null | undefined;
4370
+ address?: string | null | undefined;
4371
+ } | null | undefined;
4372
+ }[] | null | undefined;
4373
+ bccRecipients?: {
4374
+ emailAddress?: {
4375
+ name?: string | null | undefined;
4376
+ address?: string | null | undefined;
4377
+ } | null | undefined;
4378
+ }[] | null | undefined;
4379
+ replyTo?: {
4380
+ emailAddress?: {
4381
+ name?: string | null | undefined;
4382
+ address?: string | null | undefined;
4383
+ } | null | undefined;
4384
+ }[] | null | undefined;
4385
+ receivedDateTime?: string | null | undefined;
4386
+ sentDateTime?: string | null | undefined;
4387
+ conversationId?: string | null | undefined;
4388
+ parentFolderId?: string | null | undefined;
4389
+ bodyPreview?: string | null | undefined;
4390
+ body?: {
4391
+ contentType?: string | null | undefined;
4392
+ content?: string | null | undefined;
4393
+ } | null | undefined;
4394
+ categories?: string[] | null | undefined;
4395
+ hasAttachments?: boolean | null | undefined;
4396
+ isRead?: boolean | null | undefined;
4397
+ isDraft?: boolean | null | undefined;
4398
+ webLink?: string | null | undefined;
4399
+ }[];
4400
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
4401
+ }>;
4402
+ } & {
4403
+ slug: "newEmailInFolder";
4404
+ }, {
4405
+ slug: string;
4406
+ label?: string;
4407
+ description: string;
4408
+ input: z.ZodObject<{
4409
+ folderId: z.ZodDefault<z.ZodString>;
4410
+ }, z.core.$strip>;
4411
+ output?: z.ZodObject<{
4412
+ id: z.ZodString;
4413
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4414
+ from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4415
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4416
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4417
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4418
+ }, z.core.$strip>>>;
4419
+ }, z.core.$strip>>>;
4420
+ sender: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4421
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4422
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4423
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4424
+ }, z.core.$strip>>>;
4425
+ }, z.core.$strip>>>;
4426
+ toRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
4427
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4428
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4429
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4430
+ }, z.core.$strip>>>;
4431
+ }, z.core.$strip>>>>;
4432
+ ccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
4433
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4434
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4435
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4436
+ }, z.core.$strip>>>;
4437
+ }, z.core.$strip>>>>;
4438
+ bccRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
4439
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4440
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4441
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4442
+ }, z.core.$strip>>>;
4443
+ }, z.core.$strip>>>>;
4444
+ replyTo: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
4445
+ emailAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4446
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4447
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4448
+ }, z.core.$strip>>>;
4449
+ }, z.core.$strip>>>>;
4450
+ receivedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4451
+ sentDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4452
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4453
+ parentFolderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4454
+ bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4455
+ body: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4456
+ contentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4457
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4458
+ }, z.core.$strip>>>;
4459
+ categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
4460
+ hasAttachments: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4461
+ isRead: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4462
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4463
+ webLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4464
+ attachments: z.ZodArray<z.ZodObject<{
4465
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
4466
+ name: z.ZodString;
4467
+ mimeType: z.ZodString;
4468
+ size: z.ZodNumber;
4469
+ url: z.ZodNullable<z.ZodString>;
4470
+ attachmentId: z.ZodString;
4471
+ }, z.core.$strip>>;
4472
+ }, z.core.$loose> | undefined;
4473
+ sample?: {
4474
+ [x: string]: unknown;
4475
+ id: string;
4476
+ attachments: {
4477
+ fileId: string | number;
4478
+ name: string;
4479
+ mimeType: string;
4480
+ size: number;
4481
+ url: string | null;
4482
+ attachmentId: string;
4483
+ }[];
4484
+ subject?: string | null | undefined;
4485
+ from?: {
4486
+ emailAddress?: {
4487
+ name?: string | null | undefined;
4488
+ address?: string | null | undefined;
4489
+ } | null | undefined;
4490
+ } | null | undefined;
4491
+ sender?: {
4492
+ emailAddress?: {
4493
+ name?: string | null | undefined;
4494
+ address?: string | null | undefined;
4495
+ } | null | undefined;
4496
+ } | null | undefined;
4497
+ toRecipients?: {
4498
+ emailAddress?: {
4499
+ name?: string | null | undefined;
4500
+ address?: string | null | undefined;
4501
+ } | null | undefined;
4502
+ }[] | null | undefined;
4503
+ ccRecipients?: {
4504
+ emailAddress?: {
4505
+ name?: string | null | undefined;
4506
+ address?: string | null | undefined;
4507
+ } | null | undefined;
4508
+ }[] | null | undefined;
4509
+ bccRecipients?: {
4510
+ emailAddress?: {
4511
+ name?: string | null | undefined;
4512
+ address?: string | null | undefined;
4513
+ } | null | undefined;
4514
+ }[] | null | undefined;
4515
+ replyTo?: {
4516
+ emailAddress?: {
4517
+ name?: string | null | undefined;
4518
+ address?: string | null | undefined;
4519
+ } | null | undefined;
4520
+ }[] | null | undefined;
4521
+ receivedDateTime?: string | null | undefined;
4522
+ sentDateTime?: string | null | undefined;
4523
+ conversationId?: string | null | undefined;
4524
+ parentFolderId?: string | null | undefined;
4525
+ bodyPreview?: string | null | undefined;
4526
+ body?: {
4527
+ contentType?: string | null | undefined;
4528
+ content?: string | null | undefined;
4529
+ } | null | undefined;
4530
+ categories?: string[] | null | undefined;
4531
+ hasAttachments?: boolean | null | undefined;
4532
+ isRead?: boolean | null | undefined;
4533
+ isDraft?: boolean | null | undefined;
4534
+ webLink?: string | null | undefined;
4535
+ } | undefined;
4536
+ } & {
4537
+ type: "polling";
4538
+ schedule?: string;
4539
+ run(args: {
4540
+ input: {
4541
+ folderId: string;
4542
+ };
4543
+ options: Record<string, never>;
4544
+ client: {
4545
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
4546
+ mailbox: string;
4547
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
4548
+ method?: string;
4549
+ body?: unknown;
4550
+ headers?: Record<string, string>;
4551
+ query?: Record<string, string | number | undefined>;
4552
+ signal?: AbortSignal;
4553
+ }) => Promise<T>;
4554
+ page: <T>(pathOrNextLink: string, item: z.ZodType<T>, options?: {
4555
+ method?: string;
4556
+ body?: unknown;
4557
+ headers?: Record<string, string>;
4558
+ query?: Record<string, string | number | undefined>;
4559
+ signal?: AbortSignal;
4560
+ }) => Promise<{
4561
+ value: T[];
4562
+ nextLink: string | null;
4563
+ }>;
4564
+ list: <T>(path: string, item: z.ZodType<T>, options?: {
4565
+ method?: string;
4566
+ body?: unknown;
4567
+ headers?: Record<string, string>;
4568
+ query?: Record<string, string | number | undefined>;
4569
+ signal?: AbortSignal;
4570
+ }) => Promise<T[]>;
4571
+ authorize(target: URL, headers: Headers, signal?: AbortSignal): Promise<void>;
4572
+ };
4573
+ req: import("frogbot/pieces").FrogBotRequest;
4574
+ } & {
4575
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
4576
+ }): Promise<{
4577
+ events: {
4578
+ [x: string]: unknown;
4579
+ id: string;
4580
+ attachments: {
4581
+ fileId: string | number;
4582
+ name: string;
4583
+ mimeType: string;
4584
+ size: number;
4585
+ url: string | null;
4586
+ attachmentId: string;
4587
+ }[];
4588
+ subject?: string | null | undefined;
4589
+ from?: {
4590
+ emailAddress?: {
4591
+ name?: string | null | undefined;
4592
+ address?: string | null | undefined;
4593
+ } | null | undefined;
4594
+ } | null | undefined;
4595
+ sender?: {
4596
+ emailAddress?: {
4597
+ name?: string | null | undefined;
4598
+ address?: string | null | undefined;
4599
+ } | null | undefined;
4600
+ } | null | undefined;
4601
+ toRecipients?: {
4602
+ emailAddress?: {
4603
+ name?: string | null | undefined;
4604
+ address?: string | null | undefined;
4605
+ } | null | undefined;
4606
+ }[] | null | undefined;
4607
+ ccRecipients?: {
4608
+ emailAddress?: {
4609
+ name?: string | null | undefined;
4610
+ address?: string | null | undefined;
4611
+ } | null | undefined;
4612
+ }[] | null | undefined;
4613
+ bccRecipients?: {
4614
+ emailAddress?: {
4615
+ name?: string | null | undefined;
4616
+ address?: string | null | undefined;
4617
+ } | null | undefined;
4618
+ }[] | null | undefined;
4619
+ replyTo?: {
4620
+ emailAddress?: {
4621
+ name?: string | null | undefined;
4622
+ address?: string | null | undefined;
4623
+ } | null | undefined;
4624
+ }[] | null | undefined;
4625
+ receivedDateTime?: string | null | undefined;
4626
+ sentDateTime?: string | null | undefined;
4627
+ conversationId?: string | null | undefined;
4628
+ parentFolderId?: string | null | undefined;
4629
+ bodyPreview?: string | null | undefined;
4630
+ body?: {
4631
+ contentType?: string | null | undefined;
4632
+ content?: string | null | undefined;
4633
+ } | null | undefined;
4634
+ categories?: string[] | null | undefined;
4635
+ hasAttachments?: boolean | null | undefined;
4636
+ isRead?: boolean | null | undefined;
4637
+ isDraft?: boolean | null | undefined;
4638
+ webLink?: string | null | undefined;
4639
+ }[];
4640
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
4641
+ }>;
4642
+ } & {
4643
+ slug: "newAttachment";
4644
+ }];
4645
+ }>;
4646
+ //# sourceMappingURL=index.d.ts.map