@automate.ax/integration-contracts 0.55.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.
- package/dist/airtable/api.d.ts +19 -0
- package/dist/airtable/api.js +44 -0
- package/dist/airtable/index.d.ts +353 -0
- package/dist/airtable/index.js +32 -0
- package/dist/airtable/schemas.d.ts +716 -0
- package/dist/airtable/schemas.js +184 -0
- package/dist/asana/api.d.ts +70 -0
- package/dist/asana/api.js +119 -0
- package/dist/asana/index.d.ts +384 -0
- package/dist/asana/index.js +38 -0
- package/dist/asana/schemas.d.ts +1060 -0
- package/dist/asana/schemas.js +512 -0
- package/dist/brevo/api.d.ts +31 -0
- package/dist/brevo/api.js +64 -0
- package/dist/brevo/index.d.ts +822 -0
- package/dist/brevo/index.js +51 -0
- package/dist/brevo/schemas.d.ts +1217 -0
- package/dist/brevo/schemas.js +332 -0
- package/dist/github/index.d.ts +37 -0
- package/dist/github/index.js +106 -0
- package/dist/github/schemas.d.ts +8014 -0
- package/dist/github/schemas.js +113 -0
- package/dist/gmail/gmail.d.ts +172 -0
- package/dist/gmail/gmail.js +405 -0
- package/dist/gmail/index.d.ts +262 -0
- package/dist/gmail/index.js +23 -0
- package/dist/gmail/schemas.d.ts +444 -0
- package/dist/gmail/schemas.js +242 -0
- package/dist/google-calendar/event-schemas.d.ts +117 -0
- package/dist/google-calendar/event-schemas.js +13 -0
- package/dist/google-calendar/google-calendar.d.ts +147 -0
- package/dist/google-calendar/google-calendar.js +583 -0
- package/dist/google-calendar/index.d.ts +365 -0
- package/dist/google-calendar/index.js +24 -0
- package/dist/google-calendar/schemas.d.ts +592 -0
- package/dist/google-calendar/schemas.js +379 -0
- package/dist/google-forms/event-schemas.d.ts +105 -0
- package/dist/google-forms/event-schemas.js +20 -0
- package/dist/google-forms/google-forms.d.ts +243 -0
- package/dist/google-forms/google-forms.js +581 -0
- package/dist/google-forms/index.d.ts +141 -0
- package/dist/google-forms/index.js +20 -0
- package/dist/google-forms/schemas.d.ts +618 -0
- package/dist/google-forms/schemas.js +383 -0
- package/dist/linear/api.d.ts +63 -0
- package/dist/linear/api.js +88 -0
- package/dist/linear/index.d.ts +1338 -0
- package/dist/linear/index.js +55 -0
- package/dist/linear/schemas.d.ts +1795 -0
- package/dist/linear/schemas.js +760 -0
- package/dist/outlook/graph.d.ts +34 -0
- package/dist/outlook/graph.js +98 -0
- package/dist/outlook/index.d.ts +115 -0
- package/dist/outlook/index.js +11 -0
- package/dist/outlook/schemas.d.ts +529 -0
- package/dist/outlook/schemas.js +312 -0
- package/dist/resend/index.d.ts +707 -0
- package/dist/resend/index.js +54 -0
- package/dist/resend/schemas.d.ts +1033 -0
- package/dist/resend/schemas.js +377 -0
- package/dist/slack/index.d.ts +151 -0
- package/dist/slack/index.js +22 -0
- package/dist/slack/schemas.d.ts +641 -0
- package/dist/slack/schemas.js +581 -0
- package/dist/teams/graph.d.ts +33 -0
- package/dist/teams/graph.js +95 -0
- package/dist/teams/index.d.ts +164 -0
- package/dist/teams/index.js +21 -0
- package/dist/teams/schemas.d.ts +675 -0
- package/dist/teams/schemas.js +365 -0
- package/dist/trello/api.d.ts +69 -0
- package/dist/trello/api.js +140 -0
- package/dist/trello/event-schemas.d.ts +1101 -0
- package/dist/trello/event-schemas.js +233 -0
- package/dist/trello/index.d.ts +721 -0
- package/dist/trello/index.js +35 -0
- package/dist/trello/schemas.d.ts +283 -0
- package/dist/trello/schemas.js +401 -0
- package/dist/triggers.d.ts +26 -0
- package/dist/triggers.js +33 -0
- package/dist/vercel/index.d.ts +1065 -0
- package/dist/vercel/index.js +114 -0
- package/dist/vercel/schemas.d.ts +1518 -0
- package/dist/vercel/schemas.js +335 -0
- package/dist/whatsapp/api.d.ts +62 -0
- package/dist/whatsapp/api.js +121 -0
- package/dist/whatsapp/index.d.ts +614 -0
- package/dist/whatsapp/index.js +35 -0
- package/dist/whatsapp/schemas.d.ts +926 -0
- package/dist/whatsapp/schemas.js +326 -0
- package/package.json +169 -0
- package/src/airtable/api.ts +66 -0
- package/src/airtable/index.ts +41 -0
- package/src/airtable/schemas.ts +231 -0
- package/src/asana/api.ts +171 -0
- package/src/asana/index.ts +49 -0
- package/src/asana/schemas.ts +655 -0
- package/src/brevo/api.ts +89 -0
- package/src/brevo/index.ts +66 -0
- package/src/brevo/schemas.ts +449 -0
- package/src/github/index.ts +217 -0
- package/src/github/schemas.ts +435 -0
- package/src/gmail/gmail.ts +577 -0
- package/src/gmail/index.ts +26 -0
- package/src/gmail/schemas.ts +327 -0
- package/src/google-calendar/event-schemas.ts +16 -0
- package/src/google-calendar/google-calendar.ts +727 -0
- package/src/google-calendar/index.ts +27 -0
- package/src/google-calendar/schemas.ts +529 -0
- package/src/google-forms/event-schemas.ts +26 -0
- package/src/google-forms/google-forms.ts +683 -0
- package/src/google-forms/index.ts +23 -0
- package/src/google-forms/schemas.ts +499 -0
- package/src/linear/api.ts +141 -0
- package/src/linear/index.ts +71 -0
- package/src/linear/schemas.ts +1060 -0
- package/src/outlook/graph.ts +132 -0
- package/src/outlook/index.ts +14 -0
- package/src/outlook/schemas.ts +388 -0
- package/src/resend/index.ts +70 -0
- package/src/resend/schemas.ts +462 -0
- package/src/slack/index.ts +29 -0
- package/src/slack/schemas.ts +737 -0
- package/src/teams/graph.ts +130 -0
- package/src/teams/index.ts +27 -0
- package/src/teams/schemas.ts +463 -0
- package/src/trello/api.ts +190 -0
- package/src/trello/event-schemas.ts +290 -0
- package/src/trello/index.ts +45 -0
- package/src/trello/schemas.ts +507 -0
- package/src/triggers.ts +68 -0
- package/src/vercel/index.ts +147 -0
- package/src/vercel/schemas.ts +594 -0
- package/src/whatsapp/api.ts +171 -0
- package/src/whatsapp/index.ts +46 -0
- package/src/whatsapp/schemas.ts +341 -0
|
@@ -0,0 +1,529 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const OUTLOOK_BODY_TYPE_SCHEMA: z.ZodEnum<{
|
|
3
|
+
text: "text";
|
|
4
|
+
html: "html";
|
|
5
|
+
}>;
|
|
6
|
+
export declare const OUTLOOK_IMPORTANCE_SCHEMA: z.ZodEnum<{
|
|
7
|
+
high: "high";
|
|
8
|
+
normal: "normal";
|
|
9
|
+
low: "low";
|
|
10
|
+
}>;
|
|
11
|
+
export declare const OUTLOOK_FLAG_STATUS_SCHEMA: z.ZodEnum<{
|
|
12
|
+
notFlagged: "notFlagged";
|
|
13
|
+
complete: "complete";
|
|
14
|
+
flagged: "flagged";
|
|
15
|
+
}>;
|
|
16
|
+
export declare const OUTLOOK_EMAIL_ADDRESS_SCHEMA: z.ZodObject<{
|
|
17
|
+
address: z.ZodString;
|
|
18
|
+
name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export declare const OUTLOOK_RECIPIENT_SCHEMA: z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
|
|
21
|
+
address: z.ZodString;
|
|
22
|
+
name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
23
|
+
}, z.core.$strip>]>;
|
|
24
|
+
export declare const OUTLOOK_RECIPIENTS_SCHEMA: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
|
|
25
|
+
address: z.ZodString;
|
|
26
|
+
name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
27
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
|
|
28
|
+
address: z.ZodString;
|
|
29
|
+
name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
30
|
+
}, z.core.$strip>]>>]>;
|
|
31
|
+
export declare const OUTLOOK_BODY_SCHEMA: z.ZodObject<{
|
|
32
|
+
content: z.ZodString;
|
|
33
|
+
contentType: z.ZodPipe<z.ZodUnion<[z.ZodEnum<{
|
|
34
|
+
text: "text";
|
|
35
|
+
html: "html";
|
|
36
|
+
}>, z.ZodEnum<{
|
|
37
|
+
Text: "Text";
|
|
38
|
+
HTML: "HTML";
|
|
39
|
+
}>]>, z.ZodTransform<"text" | "html", "text" | "html" | "Text" | "HTML">>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export declare const OUTLOOK_MESSAGE_SCHEMA: z.ZodObject<{
|
|
42
|
+
categories: z.ZodPrefault<z.ZodArray<z.ZodString>>;
|
|
43
|
+
conversationId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
44
|
+
createdAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>>>, z.ZodTransform<Date | undefined, Date | null | undefined>>;
|
|
45
|
+
flag: z.ZodOptional<z.ZodObject<{
|
|
46
|
+
completedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
47
|
+
dateTime: z.ZodString;
|
|
48
|
+
timeZone: z.ZodString;
|
|
49
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
50
|
+
dateTime: string;
|
|
51
|
+
timeZone: string;
|
|
52
|
+
} | undefined, {
|
|
53
|
+
dateTime: string;
|
|
54
|
+
timeZone: string;
|
|
55
|
+
} | null | undefined>>;
|
|
56
|
+
dueAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
57
|
+
dateTime: z.ZodString;
|
|
58
|
+
timeZone: z.ZodString;
|
|
59
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
60
|
+
dateTime: string;
|
|
61
|
+
timeZone: string;
|
|
62
|
+
} | undefined, {
|
|
63
|
+
dateTime: string;
|
|
64
|
+
timeZone: string;
|
|
65
|
+
} | null | undefined>>;
|
|
66
|
+
status: z.ZodEnum<{
|
|
67
|
+
notFlagged: "notFlagged";
|
|
68
|
+
complete: "complete";
|
|
69
|
+
flagged: "flagged";
|
|
70
|
+
}>;
|
|
71
|
+
}, z.core.$strip>>;
|
|
72
|
+
from: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
73
|
+
address: z.ZodString;
|
|
74
|
+
name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
75
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
76
|
+
address: string;
|
|
77
|
+
name: string | undefined;
|
|
78
|
+
} | undefined, {
|
|
79
|
+
address: string;
|
|
80
|
+
name: string | undefined;
|
|
81
|
+
} | null | undefined>>;
|
|
82
|
+
hasAttachments: z.ZodPrefault<z.ZodBoolean>;
|
|
83
|
+
messageId: z.ZodString;
|
|
84
|
+
internetMessageId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
85
|
+
importance: z.ZodPrefault<z.ZodEnum<{
|
|
86
|
+
high: "high";
|
|
87
|
+
normal: "normal";
|
|
88
|
+
low: "low";
|
|
89
|
+
}>>;
|
|
90
|
+
inferenceClassification: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
91
|
+
focused: "focused";
|
|
92
|
+
other: "other";
|
|
93
|
+
}>>>, z.ZodTransform<"focused" | "other" | undefined, "focused" | "other" | null | undefined>>;
|
|
94
|
+
isDraft: z.ZodPrefault<z.ZodBoolean>;
|
|
95
|
+
isRead: z.ZodPrefault<z.ZodBoolean>;
|
|
96
|
+
modifiedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>>>, z.ZodTransform<Date | undefined, Date | null | undefined>>;
|
|
97
|
+
parentFolderId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
98
|
+
preview: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
99
|
+
receivedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>>>, z.ZodTransform<Date | undefined, Date | null | undefined>>;
|
|
100
|
+
replyTo: z.ZodPrefault<z.ZodArray<z.ZodObject<{
|
|
101
|
+
address: z.ZodString;
|
|
102
|
+
name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
103
|
+
}, z.core.$strip>>>;
|
|
104
|
+
sender: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
105
|
+
address: z.ZodString;
|
|
106
|
+
name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
107
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
108
|
+
address: string;
|
|
109
|
+
name: string | undefined;
|
|
110
|
+
} | undefined, {
|
|
111
|
+
address: string;
|
|
112
|
+
name: string | undefined;
|
|
113
|
+
} | null | undefined>>;
|
|
114
|
+
sentAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>>>, z.ZodTransform<Date | undefined, Date | null | undefined>>;
|
|
115
|
+
subject: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string | null | undefined>>;
|
|
116
|
+
to: z.ZodPrefault<z.ZodArray<z.ZodObject<{
|
|
117
|
+
address: z.ZodString;
|
|
118
|
+
name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
119
|
+
}, z.core.$strip>>>;
|
|
120
|
+
cc: z.ZodPrefault<z.ZodArray<z.ZodObject<{
|
|
121
|
+
address: z.ZodString;
|
|
122
|
+
name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
123
|
+
}, z.core.$strip>>>;
|
|
124
|
+
bcc: z.ZodPrefault<z.ZodArray<z.ZodObject<{
|
|
125
|
+
address: z.ZodString;
|
|
126
|
+
name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
127
|
+
}, z.core.$strip>>>;
|
|
128
|
+
webLink: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
129
|
+
body: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
130
|
+
content: z.ZodString;
|
|
131
|
+
contentType: z.ZodPipe<z.ZodUnion<[z.ZodEnum<{
|
|
132
|
+
text: "text";
|
|
133
|
+
html: "html";
|
|
134
|
+
}>, z.ZodEnum<{
|
|
135
|
+
Text: "Text";
|
|
136
|
+
HTML: "HTML";
|
|
137
|
+
}>]>, z.ZodTransform<"text" | "html", "text" | "html" | "Text" | "HTML">>;
|
|
138
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
139
|
+
content: string;
|
|
140
|
+
contentType: "text" | "html";
|
|
141
|
+
} | undefined, {
|
|
142
|
+
content: string;
|
|
143
|
+
contentType: "text" | "html";
|
|
144
|
+
} | null | undefined>>;
|
|
145
|
+
etag: z.ZodOptional<z.ZodString>;
|
|
146
|
+
}, z.core.$strip>;
|
|
147
|
+
export declare const GRAPH_MESSAGE_SCHEMA: z.ZodPipe<z.ZodObject<{
|
|
148
|
+
"@odata.etag": z.ZodOptional<z.ZodString>;
|
|
149
|
+
bccRecipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
150
|
+
emailAddress: z.ZodObject<{
|
|
151
|
+
address: z.ZodString;
|
|
152
|
+
name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
}, z.core.$strip>>>;
|
|
155
|
+
body: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
156
|
+
content: z.ZodString;
|
|
157
|
+
contentType: z.ZodPipe<z.ZodUnion<[z.ZodEnum<{
|
|
158
|
+
text: "text";
|
|
159
|
+
html: "html";
|
|
160
|
+
}>, z.ZodEnum<{
|
|
161
|
+
Text: "Text";
|
|
162
|
+
HTML: "HTML";
|
|
163
|
+
}>]>, z.ZodTransform<"text" | "html", "text" | "html" | "Text" | "HTML">>;
|
|
164
|
+
}, z.core.$strip>>>;
|
|
165
|
+
bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
166
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
167
|
+
ccRecipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
168
|
+
emailAddress: z.ZodObject<{
|
|
169
|
+
address: z.ZodString;
|
|
170
|
+
name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
171
|
+
}, z.core.$strip>;
|
|
172
|
+
}, z.core.$strip>>>;
|
|
173
|
+
conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
174
|
+
createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
175
|
+
flag: z.ZodOptional<z.ZodObject<{
|
|
176
|
+
completedDateTime: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
177
|
+
dateTime: z.ZodString;
|
|
178
|
+
timeZone: z.ZodString;
|
|
179
|
+
}, z.core.$strip>>>;
|
|
180
|
+
dueDateTime: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
181
|
+
dateTime: z.ZodString;
|
|
182
|
+
timeZone: z.ZodString;
|
|
183
|
+
}, z.core.$strip>>>;
|
|
184
|
+
flagStatus: z.ZodEnum<{
|
|
185
|
+
notFlagged: "notFlagged";
|
|
186
|
+
complete: "complete";
|
|
187
|
+
flagged: "flagged";
|
|
188
|
+
}>;
|
|
189
|
+
}, z.core.$strip>>;
|
|
190
|
+
from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
191
|
+
emailAddress: z.ZodObject<{
|
|
192
|
+
address: z.ZodString;
|
|
193
|
+
name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
194
|
+
}, z.core.$strip>;
|
|
195
|
+
}, z.core.$strip>>>;
|
|
196
|
+
hasAttachments: z.ZodOptional<z.ZodBoolean>;
|
|
197
|
+
id: z.ZodString;
|
|
198
|
+
importance: z.ZodOptional<z.ZodEnum<{
|
|
199
|
+
high: "high";
|
|
200
|
+
normal: "normal";
|
|
201
|
+
low: "low";
|
|
202
|
+
}>>;
|
|
203
|
+
inferenceClassification: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
204
|
+
focused: "focused";
|
|
205
|
+
other: "other";
|
|
206
|
+
}>>>;
|
|
207
|
+
internetMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
208
|
+
isDraft: z.ZodOptional<z.ZodBoolean>;
|
|
209
|
+
isRead: z.ZodOptional<z.ZodBoolean>;
|
|
210
|
+
lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
211
|
+
parentFolderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
212
|
+
receivedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
213
|
+
replyTo: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
214
|
+
emailAddress: z.ZodObject<{
|
|
215
|
+
address: z.ZodString;
|
|
216
|
+
name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
217
|
+
}, z.core.$strip>;
|
|
218
|
+
}, z.core.$strip>>>;
|
|
219
|
+
sender: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
220
|
+
emailAddress: z.ZodObject<{
|
|
221
|
+
address: z.ZodString;
|
|
222
|
+
name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
223
|
+
}, z.core.$strip>;
|
|
224
|
+
}, z.core.$strip>>>;
|
|
225
|
+
sentDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
226
|
+
subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
227
|
+
toRecipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
228
|
+
emailAddress: z.ZodObject<{
|
|
229
|
+
address: z.ZodString;
|
|
230
|
+
name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
231
|
+
}, z.core.$strip>;
|
|
232
|
+
}, z.core.$strip>>>;
|
|
233
|
+
webLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
234
|
+
}, z.core.$loose>, z.ZodTransform<{
|
|
235
|
+
categories: string[];
|
|
236
|
+
conversationId: string | undefined;
|
|
237
|
+
createdAt: Date | undefined;
|
|
238
|
+
from: {
|
|
239
|
+
address: string;
|
|
240
|
+
name: string | undefined;
|
|
241
|
+
} | undefined;
|
|
242
|
+
hasAttachments: boolean;
|
|
243
|
+
messageId: string;
|
|
244
|
+
internetMessageId: string | undefined;
|
|
245
|
+
importance: "high" | "normal" | "low";
|
|
246
|
+
inferenceClassification: "focused" | "other" | undefined;
|
|
247
|
+
isDraft: boolean;
|
|
248
|
+
isRead: boolean;
|
|
249
|
+
modifiedAt: Date | undefined;
|
|
250
|
+
parentFolderId: string | undefined;
|
|
251
|
+
preview: string | undefined;
|
|
252
|
+
receivedAt: Date | undefined;
|
|
253
|
+
replyTo: {
|
|
254
|
+
address: string;
|
|
255
|
+
name: string | undefined;
|
|
256
|
+
}[];
|
|
257
|
+
sender: {
|
|
258
|
+
address: string;
|
|
259
|
+
name: string | undefined;
|
|
260
|
+
} | undefined;
|
|
261
|
+
sentAt: Date | undefined;
|
|
262
|
+
subject: string;
|
|
263
|
+
to: {
|
|
264
|
+
address: string;
|
|
265
|
+
name: string | undefined;
|
|
266
|
+
}[];
|
|
267
|
+
cc: {
|
|
268
|
+
address: string;
|
|
269
|
+
name: string | undefined;
|
|
270
|
+
}[];
|
|
271
|
+
bcc: {
|
|
272
|
+
address: string;
|
|
273
|
+
name: string | undefined;
|
|
274
|
+
}[];
|
|
275
|
+
webLink: string | undefined;
|
|
276
|
+
body: {
|
|
277
|
+
content: string;
|
|
278
|
+
contentType: "text" | "html";
|
|
279
|
+
} | undefined;
|
|
280
|
+
flag?: {
|
|
281
|
+
completedAt: {
|
|
282
|
+
dateTime: string;
|
|
283
|
+
timeZone: string;
|
|
284
|
+
} | undefined;
|
|
285
|
+
dueAt: {
|
|
286
|
+
dateTime: string;
|
|
287
|
+
timeZone: string;
|
|
288
|
+
} | undefined;
|
|
289
|
+
status: "notFlagged" | "complete" | "flagged";
|
|
290
|
+
} | undefined;
|
|
291
|
+
etag?: string | undefined;
|
|
292
|
+
}, {
|
|
293
|
+
[x: string]: unknown;
|
|
294
|
+
id: string;
|
|
295
|
+
"@odata.etag"?: string | undefined;
|
|
296
|
+
bccRecipients?: {
|
|
297
|
+
emailAddress: {
|
|
298
|
+
address: string;
|
|
299
|
+
name: string | undefined;
|
|
300
|
+
};
|
|
301
|
+
}[] | undefined;
|
|
302
|
+
body?: {
|
|
303
|
+
content: string;
|
|
304
|
+
contentType: "text" | "html";
|
|
305
|
+
} | null | undefined;
|
|
306
|
+
bodyPreview?: string | null | undefined;
|
|
307
|
+
categories?: string[] | undefined;
|
|
308
|
+
ccRecipients?: {
|
|
309
|
+
emailAddress: {
|
|
310
|
+
address: string;
|
|
311
|
+
name: string | undefined;
|
|
312
|
+
};
|
|
313
|
+
}[] | undefined;
|
|
314
|
+
conversationId?: string | null | undefined;
|
|
315
|
+
createdDateTime?: string | null | undefined;
|
|
316
|
+
flag?: {
|
|
317
|
+
flagStatus: "notFlagged" | "complete" | "flagged";
|
|
318
|
+
completedDateTime?: {
|
|
319
|
+
dateTime: string;
|
|
320
|
+
timeZone: string;
|
|
321
|
+
} | null | undefined;
|
|
322
|
+
dueDateTime?: {
|
|
323
|
+
dateTime: string;
|
|
324
|
+
timeZone: string;
|
|
325
|
+
} | null | undefined;
|
|
326
|
+
} | undefined;
|
|
327
|
+
from?: {
|
|
328
|
+
emailAddress: {
|
|
329
|
+
address: string;
|
|
330
|
+
name: string | undefined;
|
|
331
|
+
};
|
|
332
|
+
} | null | undefined;
|
|
333
|
+
hasAttachments?: boolean | undefined;
|
|
334
|
+
importance?: "high" | "normal" | "low" | undefined;
|
|
335
|
+
inferenceClassification?: "focused" | "other" | null | undefined;
|
|
336
|
+
internetMessageId?: string | null | undefined;
|
|
337
|
+
isDraft?: boolean | undefined;
|
|
338
|
+
isRead?: boolean | undefined;
|
|
339
|
+
lastModifiedDateTime?: string | null | undefined;
|
|
340
|
+
parentFolderId?: string | null | undefined;
|
|
341
|
+
receivedDateTime?: string | null | undefined;
|
|
342
|
+
replyTo?: {
|
|
343
|
+
emailAddress: {
|
|
344
|
+
address: string;
|
|
345
|
+
name: string | undefined;
|
|
346
|
+
};
|
|
347
|
+
}[] | undefined;
|
|
348
|
+
sender?: {
|
|
349
|
+
emailAddress: {
|
|
350
|
+
address: string;
|
|
351
|
+
name: string | undefined;
|
|
352
|
+
};
|
|
353
|
+
} | null | undefined;
|
|
354
|
+
sentDateTime?: string | null | undefined;
|
|
355
|
+
subject?: string | null | undefined;
|
|
356
|
+
toRecipients?: {
|
|
357
|
+
emailAddress: {
|
|
358
|
+
address: string;
|
|
359
|
+
name: string | undefined;
|
|
360
|
+
};
|
|
361
|
+
}[] | undefined;
|
|
362
|
+
webLink?: string | null | undefined;
|
|
363
|
+
}>>;
|
|
364
|
+
/**
|
|
365
|
+
* Normalizes an untrusted Microsoft Graph message payload.
|
|
366
|
+
*
|
|
367
|
+
* @param payload - Provider message payload.
|
|
368
|
+
*/
|
|
369
|
+
export declare function normalizeOutlookMessage(payload: unknown): {
|
|
370
|
+
categories: string[];
|
|
371
|
+
conversationId: string | undefined;
|
|
372
|
+
createdAt: Date | undefined;
|
|
373
|
+
from: {
|
|
374
|
+
address: string;
|
|
375
|
+
name: string | undefined;
|
|
376
|
+
} | undefined;
|
|
377
|
+
hasAttachments: boolean;
|
|
378
|
+
messageId: string;
|
|
379
|
+
internetMessageId: string | undefined;
|
|
380
|
+
importance: "high" | "normal" | "low";
|
|
381
|
+
inferenceClassification: "focused" | "other" | undefined;
|
|
382
|
+
isDraft: boolean;
|
|
383
|
+
isRead: boolean;
|
|
384
|
+
modifiedAt: Date | undefined;
|
|
385
|
+
parentFolderId: string | undefined;
|
|
386
|
+
preview: string | undefined;
|
|
387
|
+
receivedAt: Date | undefined;
|
|
388
|
+
replyTo: {
|
|
389
|
+
address: string;
|
|
390
|
+
name: string | undefined;
|
|
391
|
+
}[];
|
|
392
|
+
sender: {
|
|
393
|
+
address: string;
|
|
394
|
+
name: string | undefined;
|
|
395
|
+
} | undefined;
|
|
396
|
+
sentAt: Date | undefined;
|
|
397
|
+
subject: string;
|
|
398
|
+
to: {
|
|
399
|
+
address: string;
|
|
400
|
+
name: string | undefined;
|
|
401
|
+
}[];
|
|
402
|
+
cc: {
|
|
403
|
+
address: string;
|
|
404
|
+
name: string | undefined;
|
|
405
|
+
}[];
|
|
406
|
+
bcc: {
|
|
407
|
+
address: string;
|
|
408
|
+
name: string | undefined;
|
|
409
|
+
}[];
|
|
410
|
+
webLink: string | undefined;
|
|
411
|
+
body: {
|
|
412
|
+
content: string;
|
|
413
|
+
contentType: "text" | "html";
|
|
414
|
+
} | undefined;
|
|
415
|
+
flag?: {
|
|
416
|
+
completedAt: {
|
|
417
|
+
dateTime: string;
|
|
418
|
+
timeZone: string;
|
|
419
|
+
} | undefined;
|
|
420
|
+
dueAt: {
|
|
421
|
+
dateTime: string;
|
|
422
|
+
timeZone: string;
|
|
423
|
+
} | undefined;
|
|
424
|
+
status: "notFlagged" | "complete" | "flagged";
|
|
425
|
+
} | undefined;
|
|
426
|
+
etag?: string | undefined;
|
|
427
|
+
};
|
|
428
|
+
export declare const OUTLOOK_MAIL_FOLDER_SCHEMA: z.ZodObject<{
|
|
429
|
+
childFolderCount: z.ZodPrefault<z.ZodNumber>;
|
|
430
|
+
displayName: z.ZodString;
|
|
431
|
+
isHidden: z.ZodPrefault<z.ZodBoolean>;
|
|
432
|
+
folderId: z.ZodString;
|
|
433
|
+
totalItemCount: z.ZodPrefault<z.ZodNumber>;
|
|
434
|
+
unreadItemCount: z.ZodPrefault<z.ZodNumber>;
|
|
435
|
+
}, z.core.$strip>;
|
|
436
|
+
export declare const GRAPH_MAIL_FOLDER_SCHEMA: z.ZodPipe<z.ZodObject<{
|
|
437
|
+
childFolderCount: z.ZodOptional<z.ZodNumber>;
|
|
438
|
+
displayName: z.ZodString;
|
|
439
|
+
id: z.ZodString;
|
|
440
|
+
isHidden: z.ZodOptional<z.ZodBoolean>;
|
|
441
|
+
totalItemCount: z.ZodOptional<z.ZodNumber>;
|
|
442
|
+
unreadItemCount: z.ZodOptional<z.ZodNumber>;
|
|
443
|
+
}, z.core.$loose>, z.ZodTransform<{
|
|
444
|
+
childFolderCount: number;
|
|
445
|
+
displayName: string;
|
|
446
|
+
isHidden: boolean;
|
|
447
|
+
folderId: string;
|
|
448
|
+
totalItemCount: number;
|
|
449
|
+
unreadItemCount: number;
|
|
450
|
+
}, {
|
|
451
|
+
[x: string]: unknown;
|
|
452
|
+
displayName: string;
|
|
453
|
+
id: string;
|
|
454
|
+
childFolderCount?: number | undefined;
|
|
455
|
+
isHidden?: boolean | undefined;
|
|
456
|
+
totalItemCount?: number | undefined;
|
|
457
|
+
unreadItemCount?: number | undefined;
|
|
458
|
+
}>>;
|
|
459
|
+
export declare const OUTLOOK_PROFILE_SCHEMA: z.ZodObject<{
|
|
460
|
+
email: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
461
|
+
displayName: z.ZodString;
|
|
462
|
+
userId: z.ZodString;
|
|
463
|
+
userPrincipalName: z.ZodString;
|
|
464
|
+
}, z.core.$strip>;
|
|
465
|
+
export declare const GRAPH_PROFILE_SCHEMA: z.ZodPipe<z.ZodObject<{
|
|
466
|
+
displayName: z.ZodString;
|
|
467
|
+
id: z.ZodString;
|
|
468
|
+
mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
469
|
+
userPrincipalName: z.ZodString;
|
|
470
|
+
}, z.core.$loose>, z.ZodTransform<{
|
|
471
|
+
email: string | undefined;
|
|
472
|
+
displayName: string;
|
|
473
|
+
userId: string;
|
|
474
|
+
userPrincipalName: string;
|
|
475
|
+
}, {
|
|
476
|
+
[x: string]: unknown;
|
|
477
|
+
displayName: string;
|
|
478
|
+
id: string;
|
|
479
|
+
userPrincipalName: string;
|
|
480
|
+
mail?: string | null | undefined;
|
|
481
|
+
}>>;
|
|
482
|
+
export declare const OUTLOOK_ATTACHMENT_SCHEMA: z.ZodObject<{
|
|
483
|
+
contentId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
484
|
+
contentLocation: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
485
|
+
contentType: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
486
|
+
file: z.ZodOptional<z.ZodCustom<File, File>>;
|
|
487
|
+
attachmentId: z.ZodString;
|
|
488
|
+
isInline: z.ZodPrefault<z.ZodBoolean>;
|
|
489
|
+
name: z.ZodString;
|
|
490
|
+
size: z.ZodPrefault<z.ZodNumber>;
|
|
491
|
+
type: z.ZodEnum<{
|
|
492
|
+
unknown: "unknown";
|
|
493
|
+
file: "file";
|
|
494
|
+
item: "item";
|
|
495
|
+
reference: "reference";
|
|
496
|
+
}>;
|
|
497
|
+
}, z.core.$strip>;
|
|
498
|
+
export declare const GRAPH_ATTACHMENT_SCHEMA: z.ZodPipe<z.ZodObject<{
|
|
499
|
+
"@odata.type": z.ZodOptional<z.ZodString>;
|
|
500
|
+
contentBytes: z.ZodOptional<z.ZodString>;
|
|
501
|
+
contentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
502
|
+
contentLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
503
|
+
contentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
504
|
+
id: z.ZodString;
|
|
505
|
+
isInline: z.ZodOptional<z.ZodBoolean>;
|
|
506
|
+
name: z.ZodString;
|
|
507
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
508
|
+
}, z.core.$loose>, z.ZodTransform<{
|
|
509
|
+
contentId: string | undefined;
|
|
510
|
+
contentLocation: string | undefined;
|
|
511
|
+
contentType: string | undefined;
|
|
512
|
+
attachmentId: string;
|
|
513
|
+
isInline: boolean;
|
|
514
|
+
name: string;
|
|
515
|
+
size: number;
|
|
516
|
+
type: "unknown" | "file" | "item" | "reference";
|
|
517
|
+
file?: File | undefined;
|
|
518
|
+
}, {
|
|
519
|
+
[x: string]: unknown;
|
|
520
|
+
id: string;
|
|
521
|
+
name: string;
|
|
522
|
+
"@odata.type"?: string | undefined;
|
|
523
|
+
contentBytes?: string | undefined;
|
|
524
|
+
contentId?: string | null | undefined;
|
|
525
|
+
contentLocation?: string | null | undefined;
|
|
526
|
+
contentType?: string | null | undefined;
|
|
527
|
+
isInline?: boolean | undefined;
|
|
528
|
+
size?: number | undefined;
|
|
529
|
+
}>>;
|