@repa/mail 0.0.0-stage → 0.1.0-alpha.20
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/LICENSE +36 -0
- package/README.md +172 -2
- package/dist/browser-denied.d.ts +7 -0
- package/dist/browser-denied.js +14 -0
- package/dist/chunk-CXNVFCRT.js +879 -0
- package/dist/chunk-XW4CRZRY.js +47 -0
- package/dist/contracts.d.ts +1278 -0
- package/dist/contracts.js +1 -0
- package/dist/errors-B_W1C1Hu.d.ts +115 -0
- package/dist/index.d.ts +947 -0
- package/dist/index.js +275 -0
- package/dist/operations-14iYfteB.d.ts +3699 -0
- package/package.json +57 -3
|
@@ -0,0 +1,1278 @@
|
|
|
1
|
+
import { C as ComposeNode } from './operations-14iYfteB.js';
|
|
2
|
+
export { W as AccountStorage, T as Change, ag as Conversation, ae as ConversationLocation, af as ConversationMessage, ad as ConversationPage, ac as ConversationRow, Q as ConversationTarget, D as DraftAction, a as DraftInput, b as DraftResult, J as Entry, E as Folder, F as FolderInput, H as HeadlessInput, aB as HeadlessOperation, c as HeadlessResult, I as Inbox, O as Location, aj as MAXIMUM_RULE_CONDITIONS, ai as MAXIMUM_RULE_ITEMS, ak as MAXIMUM_RULE_PROBLEMS, ah as MAXIMUM_RULE_SCRIPT_BYTES, U as MailError, M as MailTransport, B as Mailbox, j as MailboxRules, K as Message, P as MessageLocation, ab as Participant, ay as RULES_REQUEST_BYTES, az as RULES_RESPONSE_BYTES, L as Receipt, R as Rule, d as RuleActions, e as RuleCondition, f as RuleForward, g as RuleItem, h as RuleItemInput, i as RuleVacation, k as RulesChecked, l as RulesNotice, m as RulesProblem, n as RulesSaved, a2 as SavedDraft, G as Sender, S as Submission, V as accountStorage, X as accountStorageMaximumBytes, w as attachment, y as changed, a8 as chatText, aE as composeFormat, aa as conversation, a3 as conversationCursor, a7 as conversationLocation, a9 as conversationMessage, a6 as conversationPage, a5 as conversationRow, z as download, Z as draftContent, a1 as draftInputs, $ as draftList, a0 as draftLocation, N as draftSchemas, v as entries, u as entry, q as folder, aA as headlessOperations, t as inbox, o as mailbox, p as mailboxPage, at as mailboxRules, x as message, a4 as participant, A as receipt, r as renamedFolder, an as rule, am as ruleActions, al as ruleCondition, ap as ruleForward, aq as ruleItem, ar as ruleItemInput, ao as ruleVacation, av as rulesChecked, ax as rulesInputs, as as rulesNotice, au as rulesProblem, aw as rulesSaved, aC as safeComposeLink, _ as savedDraft, s as sender, Y as serviceAccountStorage, aD as validComposeFormat } from './operations-14iYfteB.js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
|
|
5
|
+
declare const MAXIMUM_DELIVERY_BATCH = 50;
|
|
6
|
+
declare const deliveryStates: readonly ["sending", "held", "sent", "unconfirmed", "delivered", "delayed", "bounced", "failed", "complained"];
|
|
7
|
+
declare const deliveryState: z.ZodEnum<{
|
|
8
|
+
sending: "sending";
|
|
9
|
+
held: "held";
|
|
10
|
+
sent: "sent";
|
|
11
|
+
unconfirmed: "unconfirmed";
|
|
12
|
+
delivered: "delivered";
|
|
13
|
+
delayed: "delayed";
|
|
14
|
+
bounced: "bounced";
|
|
15
|
+
failed: "failed";
|
|
16
|
+
complained: "complained";
|
|
17
|
+
}>;
|
|
18
|
+
/** `held`: content_review | sending_paused. `failed`: gave_up | expired |
|
|
19
|
+
* held_expired | rejected | rendering_failure | blocked |
|
|
20
|
+
* sender_not_permitted | suppressed. */
|
|
21
|
+
declare const deliveryReason: z.ZodEnum<{
|
|
22
|
+
rejected: "rejected";
|
|
23
|
+
content_review: "content_review";
|
|
24
|
+
sending_paused: "sending_paused";
|
|
25
|
+
gave_up: "gave_up";
|
|
26
|
+
expired: "expired";
|
|
27
|
+
held_expired: "held_expired";
|
|
28
|
+
rendering_failure: "rendering_failure";
|
|
29
|
+
blocked: "blocked";
|
|
30
|
+
sender_not_permitted: "sender_not_permitted";
|
|
31
|
+
suppressed: "suppressed";
|
|
32
|
+
}>;
|
|
33
|
+
/** Closed outbound screening codes; never message text. */
|
|
34
|
+
declare const heldReason: z.ZodEnum<{
|
|
35
|
+
link_text_mismatch: "link_text_mismatch";
|
|
36
|
+
lookalike_brand: "lookalike_brand";
|
|
37
|
+
lookalike_tenant: "lookalike_tenant";
|
|
38
|
+
homograph_domain: "homograph_domain";
|
|
39
|
+
credential_form: "credential_form";
|
|
40
|
+
dangerous_attachment: "dangerous_attachment";
|
|
41
|
+
encrypted_archive: "encrypted_archive";
|
|
42
|
+
scanner_reject: "scanner_reject";
|
|
43
|
+
scanner_spam: "scanner_spam";
|
|
44
|
+
scanner_phishing: "scanner_phishing";
|
|
45
|
+
scanner_malware: "scanner_malware";
|
|
46
|
+
scanner_url_blocklisted: "scanner_url_blocklisted";
|
|
47
|
+
scanner_incomplete: "scanner_incomplete";
|
|
48
|
+
}>;
|
|
49
|
+
/** Plain category of the enhanced status code (RFC 3463). */
|
|
50
|
+
declare const deliveryMeaning: z.ZodEnum<{
|
|
51
|
+
address_unknown: "address_unknown";
|
|
52
|
+
domain_unknown: "domain_unknown";
|
|
53
|
+
mailbox_full: "mailbox_full";
|
|
54
|
+
mailbox_disabled: "mailbox_disabled";
|
|
55
|
+
too_large: "too_large";
|
|
56
|
+
timed_out: "timed_out";
|
|
57
|
+
network: "network";
|
|
58
|
+
authentication: "authentication";
|
|
59
|
+
refused_by_policy: "refused_by_policy";
|
|
60
|
+
other: "other";
|
|
61
|
+
}>;
|
|
62
|
+
declare const deliveryEventName: z.ZodEnum<{
|
|
63
|
+
accepted: "accepted";
|
|
64
|
+
held: "held";
|
|
65
|
+
unconfirmed: "unconfirmed";
|
|
66
|
+
delivered: "delivered";
|
|
67
|
+
delayed: "delayed";
|
|
68
|
+
bounced: "bounced";
|
|
69
|
+
failed: "failed";
|
|
70
|
+
complained: "complained";
|
|
71
|
+
released: "released";
|
|
72
|
+
handed_off: "handed_off";
|
|
73
|
+
}>;
|
|
74
|
+
/** The most important recipient state and how many recipients are in each. */
|
|
75
|
+
declare const deliverySummary: z.ZodObject<{
|
|
76
|
+
state: z.ZodEnum<{
|
|
77
|
+
sending: "sending";
|
|
78
|
+
held: "held";
|
|
79
|
+
sent: "sent";
|
|
80
|
+
unconfirmed: "unconfirmed";
|
|
81
|
+
delivered: "delivered";
|
|
82
|
+
delayed: "delayed";
|
|
83
|
+
bounced: "bounced";
|
|
84
|
+
failed: "failed";
|
|
85
|
+
complained: "complained";
|
|
86
|
+
}>;
|
|
87
|
+
recipients: z.ZodNumber;
|
|
88
|
+
counts: z.ZodObject<{
|
|
89
|
+
sending: z.ZodNumber;
|
|
90
|
+
held: z.ZodNumber;
|
|
91
|
+
sent: z.ZodNumber;
|
|
92
|
+
unconfirmed: z.ZodNumber;
|
|
93
|
+
delivered: z.ZodNumber;
|
|
94
|
+
delayed: z.ZodNumber;
|
|
95
|
+
bounced: z.ZodNumber;
|
|
96
|
+
failed: z.ZodNumber;
|
|
97
|
+
complained: z.ZodNumber;
|
|
98
|
+
}, z.core.$strict>;
|
|
99
|
+
}, z.core.$strict>;
|
|
100
|
+
declare const recipientDelivery: z.ZodObject<{
|
|
101
|
+
address: z.ZodString;
|
|
102
|
+
blind: z.ZodBoolean;
|
|
103
|
+
state: z.ZodEnum<{
|
|
104
|
+
sending: "sending";
|
|
105
|
+
held: "held";
|
|
106
|
+
sent: "sent";
|
|
107
|
+
unconfirmed: "unconfirmed";
|
|
108
|
+
delivered: "delivered";
|
|
109
|
+
delayed: "delayed";
|
|
110
|
+
bounced: "bounced";
|
|
111
|
+
failed: "failed";
|
|
112
|
+
complained: "complained";
|
|
113
|
+
}>;
|
|
114
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
115
|
+
rejected: "rejected";
|
|
116
|
+
content_review: "content_review";
|
|
117
|
+
sending_paused: "sending_paused";
|
|
118
|
+
gave_up: "gave_up";
|
|
119
|
+
expired: "expired";
|
|
120
|
+
held_expired: "held_expired";
|
|
121
|
+
rendering_failure: "rendering_failure";
|
|
122
|
+
blocked: "blocked";
|
|
123
|
+
sender_not_permitted: "sender_not_permitted";
|
|
124
|
+
suppressed: "suppressed";
|
|
125
|
+
}>>;
|
|
126
|
+
status: z.ZodNullable<z.ZodString>;
|
|
127
|
+
meaning: z.ZodNullable<z.ZodEnum<{
|
|
128
|
+
address_unknown: "address_unknown";
|
|
129
|
+
domain_unknown: "domain_unknown";
|
|
130
|
+
mailbox_full: "mailbox_full";
|
|
131
|
+
mailbox_disabled: "mailbox_disabled";
|
|
132
|
+
too_large: "too_large";
|
|
133
|
+
timed_out: "timed_out";
|
|
134
|
+
network: "network";
|
|
135
|
+
authentication: "authentication";
|
|
136
|
+
refused_by_policy: "refused_by_policy";
|
|
137
|
+
other: "other";
|
|
138
|
+
}>>;
|
|
139
|
+
diagnostic: z.ZodNullable<z.ZodString>;
|
|
140
|
+
updatedAt: z.ZodString;
|
|
141
|
+
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
142
|
+
nextAttemptAt: z.ZodNullable<z.ZodString>;
|
|
143
|
+
}, z.core.$strict>;
|
|
144
|
+
/** `recipient` indexes `recipients`; null is the whole message. */
|
|
145
|
+
declare const deliveryEvent: z.ZodObject<{
|
|
146
|
+
at: z.ZodString;
|
|
147
|
+
event: z.ZodEnum<{
|
|
148
|
+
accepted: "accepted";
|
|
149
|
+
held: "held";
|
|
150
|
+
unconfirmed: "unconfirmed";
|
|
151
|
+
delivered: "delivered";
|
|
152
|
+
delayed: "delayed";
|
|
153
|
+
bounced: "bounced";
|
|
154
|
+
failed: "failed";
|
|
155
|
+
complained: "complained";
|
|
156
|
+
released: "released";
|
|
157
|
+
handed_off: "handed_off";
|
|
158
|
+
}>;
|
|
159
|
+
recipient: z.ZodNullable<z.ZodNumber>;
|
|
160
|
+
status: z.ZodNullable<z.ZodString>;
|
|
161
|
+
diagnostic: z.ZodNullable<z.ZodString>;
|
|
162
|
+
}, z.core.$strict>;
|
|
163
|
+
declare const sentDeliveryStatus: z.ZodObject<{
|
|
164
|
+
submittedAt: z.ZodString;
|
|
165
|
+
summary: z.ZodObject<{
|
|
166
|
+
state: z.ZodEnum<{
|
|
167
|
+
sending: "sending";
|
|
168
|
+
held: "held";
|
|
169
|
+
sent: "sent";
|
|
170
|
+
unconfirmed: "unconfirmed";
|
|
171
|
+
delivered: "delivered";
|
|
172
|
+
delayed: "delayed";
|
|
173
|
+
bounced: "bounced";
|
|
174
|
+
failed: "failed";
|
|
175
|
+
complained: "complained";
|
|
176
|
+
}>;
|
|
177
|
+
recipients: z.ZodNumber;
|
|
178
|
+
counts: z.ZodObject<{
|
|
179
|
+
sending: z.ZodNumber;
|
|
180
|
+
held: z.ZodNumber;
|
|
181
|
+
sent: z.ZodNumber;
|
|
182
|
+
unconfirmed: z.ZodNumber;
|
|
183
|
+
delivered: z.ZodNumber;
|
|
184
|
+
delayed: z.ZodNumber;
|
|
185
|
+
bounced: z.ZodNumber;
|
|
186
|
+
failed: z.ZodNumber;
|
|
187
|
+
complained: z.ZodNumber;
|
|
188
|
+
}, z.core.$strict>;
|
|
189
|
+
}, z.core.$strict>;
|
|
190
|
+
heldReasons: z.ZodArray<z.ZodEnum<{
|
|
191
|
+
link_text_mismatch: "link_text_mismatch";
|
|
192
|
+
lookalike_brand: "lookalike_brand";
|
|
193
|
+
lookalike_tenant: "lookalike_tenant";
|
|
194
|
+
homograph_domain: "homograph_domain";
|
|
195
|
+
credential_form: "credential_form";
|
|
196
|
+
dangerous_attachment: "dangerous_attachment";
|
|
197
|
+
encrypted_archive: "encrypted_archive";
|
|
198
|
+
scanner_reject: "scanner_reject";
|
|
199
|
+
scanner_spam: "scanner_spam";
|
|
200
|
+
scanner_phishing: "scanner_phishing";
|
|
201
|
+
scanner_malware: "scanner_malware";
|
|
202
|
+
scanner_url_blocklisted: "scanner_url_blocklisted";
|
|
203
|
+
scanner_incomplete: "scanner_incomplete";
|
|
204
|
+
}>>;
|
|
205
|
+
recipients: z.ZodArray<z.ZodObject<{
|
|
206
|
+
address: z.ZodString;
|
|
207
|
+
blind: z.ZodBoolean;
|
|
208
|
+
state: z.ZodEnum<{
|
|
209
|
+
sending: "sending";
|
|
210
|
+
held: "held";
|
|
211
|
+
sent: "sent";
|
|
212
|
+
unconfirmed: "unconfirmed";
|
|
213
|
+
delivered: "delivered";
|
|
214
|
+
delayed: "delayed";
|
|
215
|
+
bounced: "bounced";
|
|
216
|
+
failed: "failed";
|
|
217
|
+
complained: "complained";
|
|
218
|
+
}>;
|
|
219
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
220
|
+
rejected: "rejected";
|
|
221
|
+
content_review: "content_review";
|
|
222
|
+
sending_paused: "sending_paused";
|
|
223
|
+
gave_up: "gave_up";
|
|
224
|
+
expired: "expired";
|
|
225
|
+
held_expired: "held_expired";
|
|
226
|
+
rendering_failure: "rendering_failure";
|
|
227
|
+
blocked: "blocked";
|
|
228
|
+
sender_not_permitted: "sender_not_permitted";
|
|
229
|
+
suppressed: "suppressed";
|
|
230
|
+
}>>;
|
|
231
|
+
status: z.ZodNullable<z.ZodString>;
|
|
232
|
+
meaning: z.ZodNullable<z.ZodEnum<{
|
|
233
|
+
address_unknown: "address_unknown";
|
|
234
|
+
domain_unknown: "domain_unknown";
|
|
235
|
+
mailbox_full: "mailbox_full";
|
|
236
|
+
mailbox_disabled: "mailbox_disabled";
|
|
237
|
+
too_large: "too_large";
|
|
238
|
+
timed_out: "timed_out";
|
|
239
|
+
network: "network";
|
|
240
|
+
authentication: "authentication";
|
|
241
|
+
refused_by_policy: "refused_by_policy";
|
|
242
|
+
other: "other";
|
|
243
|
+
}>>;
|
|
244
|
+
diagnostic: z.ZodNullable<z.ZodString>;
|
|
245
|
+
updatedAt: z.ZodString;
|
|
246
|
+
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
247
|
+
nextAttemptAt: z.ZodNullable<z.ZodString>;
|
|
248
|
+
}, z.core.$strict>>;
|
|
249
|
+
timeline: z.ZodArray<z.ZodObject<{
|
|
250
|
+
at: z.ZodString;
|
|
251
|
+
event: z.ZodEnum<{
|
|
252
|
+
accepted: "accepted";
|
|
253
|
+
held: "held";
|
|
254
|
+
unconfirmed: "unconfirmed";
|
|
255
|
+
delivered: "delivered";
|
|
256
|
+
delayed: "delayed";
|
|
257
|
+
bounced: "bounced";
|
|
258
|
+
failed: "failed";
|
|
259
|
+
complained: "complained";
|
|
260
|
+
released: "released";
|
|
261
|
+
handed_off: "handed_off";
|
|
262
|
+
}>;
|
|
263
|
+
recipient: z.ZodNullable<z.ZodNumber>;
|
|
264
|
+
status: z.ZodNullable<z.ZodString>;
|
|
265
|
+
diagnostic: z.ZodNullable<z.ZodString>;
|
|
266
|
+
}, z.core.$strict>>;
|
|
267
|
+
timelineComplete: z.ZodBoolean;
|
|
268
|
+
}, z.core.$strict>;
|
|
269
|
+
/** `messages/delivery` input. */
|
|
270
|
+
declare const sentDeliveryLocation: z.ZodObject<{
|
|
271
|
+
accountId: z.ZodString;
|
|
272
|
+
folderId: z.ZodString;
|
|
273
|
+
uidValidity: z.ZodNumber;
|
|
274
|
+
uid: z.ZodNumber;
|
|
275
|
+
}, z.core.$strict>;
|
|
276
|
+
/** `messages/delivery` result; `status` is null for a message that was not
|
|
277
|
+
* sent from this mailbox through Repa. */
|
|
278
|
+
declare const sentDelivery: z.ZodObject<{
|
|
279
|
+
status: z.ZodNullable<z.ZodObject<{
|
|
280
|
+
submittedAt: z.ZodString;
|
|
281
|
+
summary: z.ZodObject<{
|
|
282
|
+
state: z.ZodEnum<{
|
|
283
|
+
sending: "sending";
|
|
284
|
+
held: "held";
|
|
285
|
+
sent: "sent";
|
|
286
|
+
unconfirmed: "unconfirmed";
|
|
287
|
+
delivered: "delivered";
|
|
288
|
+
delayed: "delayed";
|
|
289
|
+
bounced: "bounced";
|
|
290
|
+
failed: "failed";
|
|
291
|
+
complained: "complained";
|
|
292
|
+
}>;
|
|
293
|
+
recipients: z.ZodNumber;
|
|
294
|
+
counts: z.ZodObject<{
|
|
295
|
+
sending: z.ZodNumber;
|
|
296
|
+
held: z.ZodNumber;
|
|
297
|
+
sent: z.ZodNumber;
|
|
298
|
+
unconfirmed: z.ZodNumber;
|
|
299
|
+
delivered: z.ZodNumber;
|
|
300
|
+
delayed: z.ZodNumber;
|
|
301
|
+
bounced: z.ZodNumber;
|
|
302
|
+
failed: z.ZodNumber;
|
|
303
|
+
complained: z.ZodNumber;
|
|
304
|
+
}, z.core.$strict>;
|
|
305
|
+
}, z.core.$strict>;
|
|
306
|
+
heldReasons: z.ZodArray<z.ZodEnum<{
|
|
307
|
+
link_text_mismatch: "link_text_mismatch";
|
|
308
|
+
lookalike_brand: "lookalike_brand";
|
|
309
|
+
lookalike_tenant: "lookalike_tenant";
|
|
310
|
+
homograph_domain: "homograph_domain";
|
|
311
|
+
credential_form: "credential_form";
|
|
312
|
+
dangerous_attachment: "dangerous_attachment";
|
|
313
|
+
encrypted_archive: "encrypted_archive";
|
|
314
|
+
scanner_reject: "scanner_reject";
|
|
315
|
+
scanner_spam: "scanner_spam";
|
|
316
|
+
scanner_phishing: "scanner_phishing";
|
|
317
|
+
scanner_malware: "scanner_malware";
|
|
318
|
+
scanner_url_blocklisted: "scanner_url_blocklisted";
|
|
319
|
+
scanner_incomplete: "scanner_incomplete";
|
|
320
|
+
}>>;
|
|
321
|
+
recipients: z.ZodArray<z.ZodObject<{
|
|
322
|
+
address: z.ZodString;
|
|
323
|
+
blind: z.ZodBoolean;
|
|
324
|
+
state: z.ZodEnum<{
|
|
325
|
+
sending: "sending";
|
|
326
|
+
held: "held";
|
|
327
|
+
sent: "sent";
|
|
328
|
+
unconfirmed: "unconfirmed";
|
|
329
|
+
delivered: "delivered";
|
|
330
|
+
delayed: "delayed";
|
|
331
|
+
bounced: "bounced";
|
|
332
|
+
failed: "failed";
|
|
333
|
+
complained: "complained";
|
|
334
|
+
}>;
|
|
335
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
336
|
+
rejected: "rejected";
|
|
337
|
+
content_review: "content_review";
|
|
338
|
+
sending_paused: "sending_paused";
|
|
339
|
+
gave_up: "gave_up";
|
|
340
|
+
expired: "expired";
|
|
341
|
+
held_expired: "held_expired";
|
|
342
|
+
rendering_failure: "rendering_failure";
|
|
343
|
+
blocked: "blocked";
|
|
344
|
+
sender_not_permitted: "sender_not_permitted";
|
|
345
|
+
suppressed: "suppressed";
|
|
346
|
+
}>>;
|
|
347
|
+
status: z.ZodNullable<z.ZodString>;
|
|
348
|
+
meaning: z.ZodNullable<z.ZodEnum<{
|
|
349
|
+
address_unknown: "address_unknown";
|
|
350
|
+
domain_unknown: "domain_unknown";
|
|
351
|
+
mailbox_full: "mailbox_full";
|
|
352
|
+
mailbox_disabled: "mailbox_disabled";
|
|
353
|
+
too_large: "too_large";
|
|
354
|
+
timed_out: "timed_out";
|
|
355
|
+
network: "network";
|
|
356
|
+
authentication: "authentication";
|
|
357
|
+
refused_by_policy: "refused_by_policy";
|
|
358
|
+
other: "other";
|
|
359
|
+
}>>;
|
|
360
|
+
diagnostic: z.ZodNullable<z.ZodString>;
|
|
361
|
+
updatedAt: z.ZodString;
|
|
362
|
+
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
363
|
+
nextAttemptAt: z.ZodNullable<z.ZodString>;
|
|
364
|
+
}, z.core.$strict>>;
|
|
365
|
+
timeline: z.ZodArray<z.ZodObject<{
|
|
366
|
+
at: z.ZodString;
|
|
367
|
+
event: z.ZodEnum<{
|
|
368
|
+
accepted: "accepted";
|
|
369
|
+
held: "held";
|
|
370
|
+
unconfirmed: "unconfirmed";
|
|
371
|
+
delivered: "delivered";
|
|
372
|
+
delayed: "delayed";
|
|
373
|
+
bounced: "bounced";
|
|
374
|
+
failed: "failed";
|
|
375
|
+
complained: "complained";
|
|
376
|
+
released: "released";
|
|
377
|
+
handed_off: "handed_off";
|
|
378
|
+
}>;
|
|
379
|
+
recipient: z.ZodNullable<z.ZodNumber>;
|
|
380
|
+
status: z.ZodNullable<z.ZodString>;
|
|
381
|
+
diagnostic: z.ZodNullable<z.ZodString>;
|
|
382
|
+
}, z.core.$strict>>;
|
|
383
|
+
timelineComplete: z.ZodBoolean;
|
|
384
|
+
}, z.core.$strict>>;
|
|
385
|
+
}, z.core.$strict>;
|
|
386
|
+
/** `messages/deliveries` input: 1–50 distinct UIDs of one folder. */
|
|
387
|
+
declare const sentDeliveriesLocation: z.ZodObject<{
|
|
388
|
+
accountId: z.ZodString;
|
|
389
|
+
folderId: z.ZodString;
|
|
390
|
+
uidValidity: z.ZodNumber;
|
|
391
|
+
uids: z.ZodArray<z.ZodNumber>;
|
|
392
|
+
}, z.core.$strict>;
|
|
393
|
+
/** `messages/deliveries` result in request order; UIDs no longer in the
|
|
394
|
+
* folder are left out. */
|
|
395
|
+
declare const sentDeliveries: z.ZodObject<{
|
|
396
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
397
|
+
uid: z.ZodNumber;
|
|
398
|
+
summary: z.ZodNullable<z.ZodObject<{
|
|
399
|
+
state: z.ZodEnum<{
|
|
400
|
+
sending: "sending";
|
|
401
|
+
held: "held";
|
|
402
|
+
sent: "sent";
|
|
403
|
+
unconfirmed: "unconfirmed";
|
|
404
|
+
delivered: "delivered";
|
|
405
|
+
delayed: "delayed";
|
|
406
|
+
bounced: "bounced";
|
|
407
|
+
failed: "failed";
|
|
408
|
+
complained: "complained";
|
|
409
|
+
}>;
|
|
410
|
+
recipients: z.ZodNumber;
|
|
411
|
+
counts: z.ZodObject<{
|
|
412
|
+
sending: z.ZodNumber;
|
|
413
|
+
held: z.ZodNumber;
|
|
414
|
+
sent: z.ZodNumber;
|
|
415
|
+
unconfirmed: z.ZodNumber;
|
|
416
|
+
delivered: z.ZodNumber;
|
|
417
|
+
delayed: z.ZodNumber;
|
|
418
|
+
bounced: z.ZodNumber;
|
|
419
|
+
failed: z.ZodNumber;
|
|
420
|
+
complained: z.ZodNumber;
|
|
421
|
+
}, z.core.$strict>;
|
|
422
|
+
}, z.core.$strict>>;
|
|
423
|
+
}, z.core.$strict>>;
|
|
424
|
+
}, z.core.$strict>;
|
|
425
|
+
type DeliveryState = z.infer<typeof deliveryState>;
|
|
426
|
+
type DeliveryReason = z.infer<typeof deliveryReason>;
|
|
427
|
+
type HeldReason = z.infer<typeof heldReason>;
|
|
428
|
+
type DeliveryMeaning = z.infer<typeof deliveryMeaning>;
|
|
429
|
+
type DeliveryEventName = z.infer<typeof deliveryEventName>;
|
|
430
|
+
type DeliverySummary = z.infer<typeof deliverySummary>;
|
|
431
|
+
type RecipientDelivery = z.infer<typeof recipientDelivery>;
|
|
432
|
+
type DeliveryEvent = z.infer<typeof deliveryEvent>;
|
|
433
|
+
type SentDeliveryStatus = z.infer<typeof sentDeliveryStatus>;
|
|
434
|
+
type SentDeliveryLocation = z.infer<typeof sentDeliveryLocation>;
|
|
435
|
+
type SentDelivery = z.infer<typeof sentDelivery>;
|
|
436
|
+
type SentDeliveriesLocation = z.infer<typeof sentDeliveriesLocation>;
|
|
437
|
+
type SentDeliveries = z.infer<typeof sentDeliveries>;
|
|
438
|
+
|
|
439
|
+
declare const MAXIMUM_SIGNATURES = 100;
|
|
440
|
+
declare const MAXIMUM_SIGNATURE_BYTES = 2048;
|
|
441
|
+
declare const MAXIMUM_SIGNATURE_LINES = 12;
|
|
442
|
+
declare const signaturePlacement: z.ZodEnum<{
|
|
443
|
+
above: "above";
|
|
444
|
+
below: "below";
|
|
445
|
+
}>;
|
|
446
|
+
/** `revision` 0 with empty `text`: none saved for this address. */
|
|
447
|
+
declare const signature: z.ZodObject<{
|
|
448
|
+
addressId: z.ZodString;
|
|
449
|
+
address: z.ZodString;
|
|
450
|
+
text: z.ZodString;
|
|
451
|
+
format: z.ZodOptional<z.ZodCustom<ComposeNode[], ComposeNode[]>>;
|
|
452
|
+
placement: z.ZodEnum<{
|
|
453
|
+
above: "above";
|
|
454
|
+
below: "below";
|
|
455
|
+
}>;
|
|
456
|
+
revision: z.ZodNumber;
|
|
457
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
458
|
+
}, z.core.$strict>;
|
|
459
|
+
/** `signatures/get`: every address the person may send as now. */
|
|
460
|
+
declare const signaturePage: z.ZodObject<{
|
|
461
|
+
signatures: z.ZodArray<z.ZodObject<{
|
|
462
|
+
addressId: z.ZodString;
|
|
463
|
+
address: z.ZodString;
|
|
464
|
+
text: z.ZodString;
|
|
465
|
+
format: z.ZodOptional<z.ZodCustom<ComposeNode[], ComposeNode[]>>;
|
|
466
|
+
placement: z.ZodEnum<{
|
|
467
|
+
above: "above";
|
|
468
|
+
below: "below";
|
|
469
|
+
}>;
|
|
470
|
+
revision: z.ZodNumber;
|
|
471
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
472
|
+
}, z.core.$strict>>;
|
|
473
|
+
complete: z.ZodBoolean;
|
|
474
|
+
}, z.core.$strict>;
|
|
475
|
+
/** `signatures/save` input: empty `text` removes; `expectedRevision` is the
|
|
476
|
+
* revision read (0: none). The server counts the 2 KB in UTF-8 bytes and
|
|
477
|
+
* accepts at most 12 lines. */
|
|
478
|
+
declare const signatureSave: z.ZodObject<{
|
|
479
|
+
operationId: z.ZodString;
|
|
480
|
+
addressId: z.ZodString;
|
|
481
|
+
text: z.ZodString;
|
|
482
|
+
format: z.ZodOptional<z.ZodCustom<ComposeNode[], ComposeNode[]>>;
|
|
483
|
+
placement: z.ZodEnum<{
|
|
484
|
+
above: "above";
|
|
485
|
+
below: "below";
|
|
486
|
+
}>;
|
|
487
|
+
expectedRevision: z.ZodNumber;
|
|
488
|
+
}, z.core.$strict>;
|
|
489
|
+
declare const signatureSaved: z.ZodObject<{
|
|
490
|
+
signature: z.ZodObject<{
|
|
491
|
+
addressId: z.ZodString;
|
|
492
|
+
address: z.ZodString;
|
|
493
|
+
text: z.ZodString;
|
|
494
|
+
format: z.ZodOptional<z.ZodCustom<ComposeNode[], ComposeNode[]>>;
|
|
495
|
+
placement: z.ZodEnum<{
|
|
496
|
+
above: "above";
|
|
497
|
+
below: "below";
|
|
498
|
+
}>;
|
|
499
|
+
revision: z.ZodNumber;
|
|
500
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
501
|
+
}, z.core.$strict>;
|
|
502
|
+
}, z.core.$strict>;
|
|
503
|
+
type SignaturePlacement = z.infer<typeof signaturePlacement>;
|
|
504
|
+
type Signature = z.infer<typeof signature>;
|
|
505
|
+
type SignaturePage = z.infer<typeof signaturePage>;
|
|
506
|
+
type SignatureSave = z.infer<typeof signatureSave>;
|
|
507
|
+
type SignatureSaved = z.infer<typeof signatureSaved>;
|
|
508
|
+
|
|
509
|
+
declare const MAXIMUM_HEADER_SAMPLE = 400;
|
|
510
|
+
/** Without `folderId` and `uidValidity`: the whole mailbox except Sent,
|
|
511
|
+
* Drafts, Junk and Trash. */
|
|
512
|
+
declare const headerSampleInput: z.ZodObject<{
|
|
513
|
+
accountId: z.ZodString;
|
|
514
|
+
folderId: z.ZodOptional<z.ZodString>;
|
|
515
|
+
uidValidity: z.ZodOptional<z.ZodNumber>;
|
|
516
|
+
limit: z.ZodNumber;
|
|
517
|
+
}, z.core.$strict>;
|
|
518
|
+
declare const headerSampleMessage: z.ZodObject<{
|
|
519
|
+
from: z.ZodNullable<z.ZodObject<{
|
|
520
|
+
address: z.ZodString;
|
|
521
|
+
name: z.ZodNullable<z.ZodString>;
|
|
522
|
+
}, z.core.$strict>>;
|
|
523
|
+
to: z.ZodArray<z.ZodString>;
|
|
524
|
+
cc: z.ZodArray<z.ZodString>;
|
|
525
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
526
|
+
listId: z.ZodNullable<z.ZodString>;
|
|
527
|
+
bulk: z.ZodObject<{
|
|
528
|
+
listUnsubscribe: z.ZodBoolean;
|
|
529
|
+
precedence: z.ZodNullable<z.ZodString>;
|
|
530
|
+
autoSubmitted: z.ZodNullable<z.ZodString>;
|
|
531
|
+
}, z.core.$strict>;
|
|
532
|
+
folder: z.ZodString;
|
|
533
|
+
date: z.ZodNullable<z.ZodString>;
|
|
534
|
+
}, z.core.$strict>;
|
|
535
|
+
/** Newest first; `hasMore`: older messages were left out. */
|
|
536
|
+
declare const headerSample: z.ZodObject<{
|
|
537
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
538
|
+
from: z.ZodNullable<z.ZodObject<{
|
|
539
|
+
address: z.ZodString;
|
|
540
|
+
name: z.ZodNullable<z.ZodString>;
|
|
541
|
+
}, z.core.$strict>>;
|
|
542
|
+
to: z.ZodArray<z.ZodString>;
|
|
543
|
+
cc: z.ZodArray<z.ZodString>;
|
|
544
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
545
|
+
listId: z.ZodNullable<z.ZodString>;
|
|
546
|
+
bulk: z.ZodObject<{
|
|
547
|
+
listUnsubscribe: z.ZodBoolean;
|
|
548
|
+
precedence: z.ZodNullable<z.ZodString>;
|
|
549
|
+
autoSubmitted: z.ZodNullable<z.ZodString>;
|
|
550
|
+
}, z.core.$strict>;
|
|
551
|
+
folder: z.ZodString;
|
|
552
|
+
date: z.ZodNullable<z.ZodString>;
|
|
553
|
+
}, z.core.$strict>>;
|
|
554
|
+
hasMore: z.ZodBoolean;
|
|
555
|
+
}, z.core.$strict>;
|
|
556
|
+
type HeaderSampleInput = z.infer<typeof headerSampleInput>;
|
|
557
|
+
type HeaderSampleMessage = z.infer<typeof headerSampleMessage>;
|
|
558
|
+
type HeaderSample = z.infer<typeof headerSample>;
|
|
559
|
+
|
|
560
|
+
declare const MAXIMUM_IMPORT_FOLDERS = 1024;
|
|
561
|
+
declare const MAXIMUM_IMPORT_FAILURES_SHOWN = 100;
|
|
562
|
+
declare const MAXIMUM_IMPORTS_KEPT = 20;
|
|
563
|
+
/** One uploaded file: 256 MB. */
|
|
564
|
+
declare const MAXIMUM_IMPORT_UPLOAD_BYTES: number;
|
|
565
|
+
/** Uploaded bytes per workspace per UTC day: 1,024 MB. */
|
|
566
|
+
declare const MAXIMUM_IMPORT_UPLOAD_DAY_BYTES: number;
|
|
567
|
+
/** An upload is sent in parts of at most 8 MB, in order from part 0. */
|
|
568
|
+
declare const IMPORT_UPLOAD_PART_BYTES: number;
|
|
569
|
+
/** A message over 32 MB is listed as a failure and the import continues. */
|
|
570
|
+
declare const MAXIMUM_IMPORT_MESSAGE_BYTES: number;
|
|
571
|
+
declare const importKind: z.ZodEnum<{
|
|
572
|
+
upload: "upload";
|
|
573
|
+
imap: "imap";
|
|
574
|
+
}>;
|
|
575
|
+
declare const importSecurity: z.ZodEnum<{
|
|
576
|
+
tls: "tls";
|
|
577
|
+
starttls: "starttls";
|
|
578
|
+
}>;
|
|
579
|
+
declare const importFileFormat: z.ZodEnum<{
|
|
580
|
+
mbox: "mbox";
|
|
581
|
+
eml: "eml";
|
|
582
|
+
zip: "zip";
|
|
583
|
+
}>;
|
|
584
|
+
declare const importSpecialUse: z.ZodEnum<{
|
|
585
|
+
drafts: "drafts";
|
|
586
|
+
sent: "sent";
|
|
587
|
+
inbox: "inbox";
|
|
588
|
+
junk: "junk";
|
|
589
|
+
trash: "trash";
|
|
590
|
+
archive: "archive";
|
|
591
|
+
}>;
|
|
592
|
+
declare const importStates: readonly ["checking", "ready", "uploading", "queued", "running", "waiting", "completed", "cancelled", "failed"];
|
|
593
|
+
declare const importState: z.ZodEnum<{
|
|
594
|
+
queued: "queued";
|
|
595
|
+
failed: "failed";
|
|
596
|
+
checking: "checking";
|
|
597
|
+
ready: "ready";
|
|
598
|
+
uploading: "uploading";
|
|
599
|
+
running: "running";
|
|
600
|
+
waiting: "waiting";
|
|
601
|
+
completed: "completed";
|
|
602
|
+
cancelled: "cancelled";
|
|
603
|
+
}>;
|
|
604
|
+
declare const finishedImportStates: readonly ImportState[];
|
|
605
|
+
declare const importWaitReason: z.ZodEnum<{
|
|
606
|
+
source_dropped: "source_dropped";
|
|
607
|
+
source_busy: "source_busy";
|
|
608
|
+
scanner_unavailable: "scanner_unavailable";
|
|
609
|
+
}>;
|
|
610
|
+
declare const importFailureReason: z.ZodEnum<{
|
|
611
|
+
expired: "expired";
|
|
612
|
+
mailbox_full: "mailbox_full";
|
|
613
|
+
authentication: "authentication";
|
|
614
|
+
tls: "tls";
|
|
615
|
+
source_unreachable: "source_unreachable";
|
|
616
|
+
address_not_allowed: "address_not_allowed";
|
|
617
|
+
source_refused: "source_refused";
|
|
618
|
+
access: "access";
|
|
619
|
+
unreadable_file: "unreadable_file";
|
|
620
|
+
upload_lost: "upload_lost";
|
|
621
|
+
folder_missing: "folder_missing";
|
|
622
|
+
}>;
|
|
623
|
+
declare const importMessageFailure: z.ZodEnum<{
|
|
624
|
+
too_large: "too_large";
|
|
625
|
+
empty: "empty";
|
|
626
|
+
unreadable: "unreadable";
|
|
627
|
+
fetch_refused: "fetch_refused";
|
|
628
|
+
malware: "malware";
|
|
629
|
+
}>;
|
|
630
|
+
declare const importSourceInput: z.ZodObject<{
|
|
631
|
+
host: z.ZodString;
|
|
632
|
+
port: z.ZodNumber;
|
|
633
|
+
security: z.ZodEnum<{
|
|
634
|
+
tls: "tls";
|
|
635
|
+
starttls: "starttls";
|
|
636
|
+
}>;
|
|
637
|
+
username: z.ZodString;
|
|
638
|
+
password: z.ZodString;
|
|
639
|
+
}, z.core.$strict>;
|
|
640
|
+
declare const importBegin: z.ZodObject<{
|
|
641
|
+
operationId: z.ZodUUID;
|
|
642
|
+
accountId: z.ZodUUID;
|
|
643
|
+
source: z.ZodObject<{
|
|
644
|
+
host: z.ZodString;
|
|
645
|
+
port: z.ZodNumber;
|
|
646
|
+
security: z.ZodEnum<{
|
|
647
|
+
tls: "tls";
|
|
648
|
+
starttls: "starttls";
|
|
649
|
+
}>;
|
|
650
|
+
username: z.ZodString;
|
|
651
|
+
password: z.ZodString;
|
|
652
|
+
}, z.core.$strict>;
|
|
653
|
+
}, z.core.$strict>;
|
|
654
|
+
declare const importRef: z.ZodObject<{
|
|
655
|
+
accountId: z.ZodUUID;
|
|
656
|
+
importId: z.ZodUUID;
|
|
657
|
+
}, z.core.$strict>;
|
|
658
|
+
declare const importList: z.ZodObject<{
|
|
659
|
+
accountId: z.ZodUUID;
|
|
660
|
+
}, z.core.$strict>;
|
|
661
|
+
declare const importFolderChoice: z.ZodObject<{
|
|
662
|
+
ordinal: z.ZodNumber;
|
|
663
|
+
include: z.ZodBoolean;
|
|
664
|
+
targetName: z.ZodString;
|
|
665
|
+
}, z.core.$strict>;
|
|
666
|
+
/** Every folder of the plan, each exactly once. */
|
|
667
|
+
declare const importConfirm: z.ZodObject<{
|
|
668
|
+
accountId: z.ZodUUID;
|
|
669
|
+
importId: z.ZodUUID;
|
|
670
|
+
folders: z.ZodArray<z.ZodObject<{
|
|
671
|
+
ordinal: z.ZodNumber;
|
|
672
|
+
include: z.ZodBoolean;
|
|
673
|
+
targetName: z.ZodString;
|
|
674
|
+
}, z.core.$strict>>;
|
|
675
|
+
}, z.core.$strict>;
|
|
676
|
+
declare const importUploadBegin: z.ZodObject<{
|
|
677
|
+
operationId: z.ZodUUID;
|
|
678
|
+
accountId: z.ZodUUID;
|
|
679
|
+
folderId: z.ZodUUID;
|
|
680
|
+
fileName: z.ZodString;
|
|
681
|
+
format: z.ZodEnum<{
|
|
682
|
+
mbox: "mbox";
|
|
683
|
+
eml: "eml";
|
|
684
|
+
zip: "zip";
|
|
685
|
+
}>;
|
|
686
|
+
bytes: z.ZodNumber;
|
|
687
|
+
}, z.core.$strict>;
|
|
688
|
+
/** `data` is standard base64 of at most IMPORT_UPLOAD_PART_BYTES; every part but the last is exactly that size. */
|
|
689
|
+
declare const importUploadPart: z.ZodObject<{
|
|
690
|
+
accountId: z.ZodUUID;
|
|
691
|
+
importId: z.ZodUUID;
|
|
692
|
+
part: z.ZodNumber;
|
|
693
|
+
data: z.ZodString;
|
|
694
|
+
}, z.core.$strict>;
|
|
695
|
+
declare const importProgress: z.ZodObject<{
|
|
696
|
+
copied: z.ZodNumber;
|
|
697
|
+
skipped: z.ZodNumber;
|
|
698
|
+
failed: z.ZodNumber;
|
|
699
|
+
copiedBytes: z.ZodNumber;
|
|
700
|
+
plannedMessages: z.ZodNullable<z.ZodNumber>;
|
|
701
|
+
plannedBytes: z.ZodNullable<z.ZodNumber>;
|
|
702
|
+
}, z.core.$strict>;
|
|
703
|
+
declare const importSource: z.ZodObject<{
|
|
704
|
+
host: z.ZodString;
|
|
705
|
+
port: z.ZodNumber;
|
|
706
|
+
security: z.ZodEnum<{
|
|
707
|
+
tls: "tls";
|
|
708
|
+
starttls: "starttls";
|
|
709
|
+
}>;
|
|
710
|
+
username: z.ZodString;
|
|
711
|
+
}, z.core.$strict>;
|
|
712
|
+
declare const importFile: z.ZodObject<{
|
|
713
|
+
name: z.ZodString;
|
|
714
|
+
format: z.ZodEnum<{
|
|
715
|
+
mbox: "mbox";
|
|
716
|
+
eml: "eml";
|
|
717
|
+
zip: "zip";
|
|
718
|
+
}>;
|
|
719
|
+
bytes: z.ZodNumber;
|
|
720
|
+
receivedBytes: z.ZodNumber;
|
|
721
|
+
}, z.core.$strict>;
|
|
722
|
+
declare const importSummary: z.ZodObject<{
|
|
723
|
+
id: z.ZodUUID;
|
|
724
|
+
accountId: z.ZodUUID;
|
|
725
|
+
kind: z.ZodEnum<{
|
|
726
|
+
upload: "upload";
|
|
727
|
+
imap: "imap";
|
|
728
|
+
}>;
|
|
729
|
+
state: z.ZodEnum<{
|
|
730
|
+
queued: "queued";
|
|
731
|
+
failed: "failed";
|
|
732
|
+
checking: "checking";
|
|
733
|
+
ready: "ready";
|
|
734
|
+
uploading: "uploading";
|
|
735
|
+
running: "running";
|
|
736
|
+
waiting: "waiting";
|
|
737
|
+
completed: "completed";
|
|
738
|
+
cancelled: "cancelled";
|
|
739
|
+
}>;
|
|
740
|
+
source: z.ZodNullable<z.ZodObject<{
|
|
741
|
+
host: z.ZodString;
|
|
742
|
+
port: z.ZodNumber;
|
|
743
|
+
security: z.ZodEnum<{
|
|
744
|
+
tls: "tls";
|
|
745
|
+
starttls: "starttls";
|
|
746
|
+
}>;
|
|
747
|
+
username: z.ZodString;
|
|
748
|
+
}, z.core.$strict>>;
|
|
749
|
+
file: z.ZodNullable<z.ZodObject<{
|
|
750
|
+
name: z.ZodString;
|
|
751
|
+
format: z.ZodEnum<{
|
|
752
|
+
mbox: "mbox";
|
|
753
|
+
eml: "eml";
|
|
754
|
+
zip: "zip";
|
|
755
|
+
}>;
|
|
756
|
+
bytes: z.ZodNumber;
|
|
757
|
+
receivedBytes: z.ZodNumber;
|
|
758
|
+
}, z.core.$strict>>;
|
|
759
|
+
folderId: z.ZodNullable<z.ZodUUID>;
|
|
760
|
+
createdAt: z.ZodISODateTime;
|
|
761
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
762
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
763
|
+
progress: z.ZodObject<{
|
|
764
|
+
copied: z.ZodNumber;
|
|
765
|
+
skipped: z.ZodNumber;
|
|
766
|
+
failed: z.ZodNumber;
|
|
767
|
+
copiedBytes: z.ZodNumber;
|
|
768
|
+
plannedMessages: z.ZodNullable<z.ZodNumber>;
|
|
769
|
+
plannedBytes: z.ZodNullable<z.ZodNumber>;
|
|
770
|
+
}, z.core.$strict>;
|
|
771
|
+
wait: z.ZodNullable<z.ZodObject<{
|
|
772
|
+
reason: z.ZodEnum<{
|
|
773
|
+
source_dropped: "source_dropped";
|
|
774
|
+
source_busy: "source_busy";
|
|
775
|
+
scanner_unavailable: "scanner_unavailable";
|
|
776
|
+
}>;
|
|
777
|
+
until: z.ZodISODateTime;
|
|
778
|
+
}, z.core.$strict>>;
|
|
779
|
+
failure: z.ZodNullable<z.ZodEnum<{
|
|
780
|
+
expired: "expired";
|
|
781
|
+
mailbox_full: "mailbox_full";
|
|
782
|
+
authentication: "authentication";
|
|
783
|
+
tls: "tls";
|
|
784
|
+
source_unreachable: "source_unreachable";
|
|
785
|
+
address_not_allowed: "address_not_allowed";
|
|
786
|
+
source_refused: "source_refused";
|
|
787
|
+
access: "access";
|
|
788
|
+
unreadable_file: "unreadable_file";
|
|
789
|
+
upload_lost: "upload_lost";
|
|
790
|
+
folder_missing: "folder_missing";
|
|
791
|
+
}>>;
|
|
792
|
+
}, z.core.$strict>;
|
|
793
|
+
declare const importPlanFolder: z.ZodObject<{
|
|
794
|
+
ordinal: z.ZodNumber;
|
|
795
|
+
sourceName: z.ZodString;
|
|
796
|
+
specialUse: z.ZodNullable<z.ZodEnum<{
|
|
797
|
+
drafts: "drafts";
|
|
798
|
+
sent: "sent";
|
|
799
|
+
inbox: "inbox";
|
|
800
|
+
junk: "junk";
|
|
801
|
+
trash: "trash";
|
|
802
|
+
archive: "archive";
|
|
803
|
+
}>>;
|
|
804
|
+
targetName: z.ZodString;
|
|
805
|
+
include: z.ZodBoolean;
|
|
806
|
+
messages: z.ZodNumber;
|
|
807
|
+
bytes: z.ZodNullable<z.ZodNumber>;
|
|
808
|
+
copied: z.ZodNumber;
|
|
809
|
+
skipped: z.ZodNumber;
|
|
810
|
+
failed: z.ZodNumber;
|
|
811
|
+
done: z.ZodBoolean;
|
|
812
|
+
}, z.core.$strict>;
|
|
813
|
+
declare const importDetail: z.ZodObject<{
|
|
814
|
+
id: z.ZodUUID;
|
|
815
|
+
accountId: z.ZodUUID;
|
|
816
|
+
kind: z.ZodEnum<{
|
|
817
|
+
upload: "upload";
|
|
818
|
+
imap: "imap";
|
|
819
|
+
}>;
|
|
820
|
+
state: z.ZodEnum<{
|
|
821
|
+
queued: "queued";
|
|
822
|
+
failed: "failed";
|
|
823
|
+
checking: "checking";
|
|
824
|
+
ready: "ready";
|
|
825
|
+
uploading: "uploading";
|
|
826
|
+
running: "running";
|
|
827
|
+
waiting: "waiting";
|
|
828
|
+
completed: "completed";
|
|
829
|
+
cancelled: "cancelled";
|
|
830
|
+
}>;
|
|
831
|
+
source: z.ZodNullable<z.ZodObject<{
|
|
832
|
+
host: z.ZodString;
|
|
833
|
+
port: z.ZodNumber;
|
|
834
|
+
security: z.ZodEnum<{
|
|
835
|
+
tls: "tls";
|
|
836
|
+
starttls: "starttls";
|
|
837
|
+
}>;
|
|
838
|
+
username: z.ZodString;
|
|
839
|
+
}, z.core.$strict>>;
|
|
840
|
+
file: z.ZodNullable<z.ZodObject<{
|
|
841
|
+
name: z.ZodString;
|
|
842
|
+
format: z.ZodEnum<{
|
|
843
|
+
mbox: "mbox";
|
|
844
|
+
eml: "eml";
|
|
845
|
+
zip: "zip";
|
|
846
|
+
}>;
|
|
847
|
+
bytes: z.ZodNumber;
|
|
848
|
+
receivedBytes: z.ZodNumber;
|
|
849
|
+
}, z.core.$strict>>;
|
|
850
|
+
folderId: z.ZodNullable<z.ZodUUID>;
|
|
851
|
+
createdAt: z.ZodISODateTime;
|
|
852
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
853
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
854
|
+
progress: z.ZodObject<{
|
|
855
|
+
copied: z.ZodNumber;
|
|
856
|
+
skipped: z.ZodNumber;
|
|
857
|
+
failed: z.ZodNumber;
|
|
858
|
+
copiedBytes: z.ZodNumber;
|
|
859
|
+
plannedMessages: z.ZodNullable<z.ZodNumber>;
|
|
860
|
+
plannedBytes: z.ZodNullable<z.ZodNumber>;
|
|
861
|
+
}, z.core.$strict>;
|
|
862
|
+
wait: z.ZodNullable<z.ZodObject<{
|
|
863
|
+
reason: z.ZodEnum<{
|
|
864
|
+
source_dropped: "source_dropped";
|
|
865
|
+
source_busy: "source_busy";
|
|
866
|
+
scanner_unavailable: "scanner_unavailable";
|
|
867
|
+
}>;
|
|
868
|
+
until: z.ZodISODateTime;
|
|
869
|
+
}, z.core.$strict>>;
|
|
870
|
+
failure: z.ZodNullable<z.ZodEnum<{
|
|
871
|
+
expired: "expired";
|
|
872
|
+
mailbox_full: "mailbox_full";
|
|
873
|
+
authentication: "authentication";
|
|
874
|
+
tls: "tls";
|
|
875
|
+
source_unreachable: "source_unreachable";
|
|
876
|
+
address_not_allowed: "address_not_allowed";
|
|
877
|
+
source_refused: "source_refused";
|
|
878
|
+
access: "access";
|
|
879
|
+
unreadable_file: "unreadable_file";
|
|
880
|
+
upload_lost: "upload_lost";
|
|
881
|
+
folder_missing: "folder_missing";
|
|
882
|
+
}>>;
|
|
883
|
+
folders: z.ZodArray<z.ZodObject<{
|
|
884
|
+
ordinal: z.ZodNumber;
|
|
885
|
+
sourceName: z.ZodString;
|
|
886
|
+
specialUse: z.ZodNullable<z.ZodEnum<{
|
|
887
|
+
drafts: "drafts";
|
|
888
|
+
sent: "sent";
|
|
889
|
+
inbox: "inbox";
|
|
890
|
+
junk: "junk";
|
|
891
|
+
trash: "trash";
|
|
892
|
+
archive: "archive";
|
|
893
|
+
}>>;
|
|
894
|
+
targetName: z.ZodString;
|
|
895
|
+
include: z.ZodBoolean;
|
|
896
|
+
messages: z.ZodNumber;
|
|
897
|
+
bytes: z.ZodNullable<z.ZodNumber>;
|
|
898
|
+
copied: z.ZodNumber;
|
|
899
|
+
skipped: z.ZodNumber;
|
|
900
|
+
failed: z.ZodNumber;
|
|
901
|
+
done: z.ZodBoolean;
|
|
902
|
+
}, z.core.$strict>>;
|
|
903
|
+
failures: z.ZodArray<z.ZodObject<{
|
|
904
|
+
folder: z.ZodString;
|
|
905
|
+
itemKind: z.ZodEnum<{
|
|
906
|
+
message: "message";
|
|
907
|
+
file: "file";
|
|
908
|
+
uid: "uid";
|
|
909
|
+
folder: "folder";
|
|
910
|
+
}>;
|
|
911
|
+
item: z.ZodString;
|
|
912
|
+
reason: z.ZodEnum<{
|
|
913
|
+
too_large: "too_large";
|
|
914
|
+
empty: "empty";
|
|
915
|
+
unreadable: "unreadable";
|
|
916
|
+
fetch_refused: "fetch_refused";
|
|
917
|
+
malware: "malware";
|
|
918
|
+
}>;
|
|
919
|
+
}, z.core.$strict>>;
|
|
920
|
+
failureCount: z.ZodNumber;
|
|
921
|
+
freeBytes: z.ZodNumber;
|
|
922
|
+
}, z.core.$strict>;
|
|
923
|
+
declare const importAnswer: z.ZodObject<{
|
|
924
|
+
import: z.ZodObject<{
|
|
925
|
+
id: z.ZodUUID;
|
|
926
|
+
accountId: z.ZodUUID;
|
|
927
|
+
kind: z.ZodEnum<{
|
|
928
|
+
upload: "upload";
|
|
929
|
+
imap: "imap";
|
|
930
|
+
}>;
|
|
931
|
+
state: z.ZodEnum<{
|
|
932
|
+
queued: "queued";
|
|
933
|
+
failed: "failed";
|
|
934
|
+
checking: "checking";
|
|
935
|
+
ready: "ready";
|
|
936
|
+
uploading: "uploading";
|
|
937
|
+
running: "running";
|
|
938
|
+
waiting: "waiting";
|
|
939
|
+
completed: "completed";
|
|
940
|
+
cancelled: "cancelled";
|
|
941
|
+
}>;
|
|
942
|
+
source: z.ZodNullable<z.ZodObject<{
|
|
943
|
+
host: z.ZodString;
|
|
944
|
+
port: z.ZodNumber;
|
|
945
|
+
security: z.ZodEnum<{
|
|
946
|
+
tls: "tls";
|
|
947
|
+
starttls: "starttls";
|
|
948
|
+
}>;
|
|
949
|
+
username: z.ZodString;
|
|
950
|
+
}, z.core.$strict>>;
|
|
951
|
+
file: z.ZodNullable<z.ZodObject<{
|
|
952
|
+
name: z.ZodString;
|
|
953
|
+
format: z.ZodEnum<{
|
|
954
|
+
mbox: "mbox";
|
|
955
|
+
eml: "eml";
|
|
956
|
+
zip: "zip";
|
|
957
|
+
}>;
|
|
958
|
+
bytes: z.ZodNumber;
|
|
959
|
+
receivedBytes: z.ZodNumber;
|
|
960
|
+
}, z.core.$strict>>;
|
|
961
|
+
folderId: z.ZodNullable<z.ZodUUID>;
|
|
962
|
+
createdAt: z.ZodISODateTime;
|
|
963
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
964
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
965
|
+
progress: z.ZodObject<{
|
|
966
|
+
copied: z.ZodNumber;
|
|
967
|
+
skipped: z.ZodNumber;
|
|
968
|
+
failed: z.ZodNumber;
|
|
969
|
+
copiedBytes: z.ZodNumber;
|
|
970
|
+
plannedMessages: z.ZodNullable<z.ZodNumber>;
|
|
971
|
+
plannedBytes: z.ZodNullable<z.ZodNumber>;
|
|
972
|
+
}, z.core.$strict>;
|
|
973
|
+
wait: z.ZodNullable<z.ZodObject<{
|
|
974
|
+
reason: z.ZodEnum<{
|
|
975
|
+
source_dropped: "source_dropped";
|
|
976
|
+
source_busy: "source_busy";
|
|
977
|
+
scanner_unavailable: "scanner_unavailable";
|
|
978
|
+
}>;
|
|
979
|
+
until: z.ZodISODateTime;
|
|
980
|
+
}, z.core.$strict>>;
|
|
981
|
+
failure: z.ZodNullable<z.ZodEnum<{
|
|
982
|
+
expired: "expired";
|
|
983
|
+
mailbox_full: "mailbox_full";
|
|
984
|
+
authentication: "authentication";
|
|
985
|
+
tls: "tls";
|
|
986
|
+
source_unreachable: "source_unreachable";
|
|
987
|
+
address_not_allowed: "address_not_allowed";
|
|
988
|
+
source_refused: "source_refused";
|
|
989
|
+
access: "access";
|
|
990
|
+
unreadable_file: "unreadable_file";
|
|
991
|
+
upload_lost: "upload_lost";
|
|
992
|
+
folder_missing: "folder_missing";
|
|
993
|
+
}>>;
|
|
994
|
+
folders: z.ZodArray<z.ZodObject<{
|
|
995
|
+
ordinal: z.ZodNumber;
|
|
996
|
+
sourceName: z.ZodString;
|
|
997
|
+
specialUse: z.ZodNullable<z.ZodEnum<{
|
|
998
|
+
drafts: "drafts";
|
|
999
|
+
sent: "sent";
|
|
1000
|
+
inbox: "inbox";
|
|
1001
|
+
junk: "junk";
|
|
1002
|
+
trash: "trash";
|
|
1003
|
+
archive: "archive";
|
|
1004
|
+
}>>;
|
|
1005
|
+
targetName: z.ZodString;
|
|
1006
|
+
include: z.ZodBoolean;
|
|
1007
|
+
messages: z.ZodNumber;
|
|
1008
|
+
bytes: z.ZodNullable<z.ZodNumber>;
|
|
1009
|
+
copied: z.ZodNumber;
|
|
1010
|
+
skipped: z.ZodNumber;
|
|
1011
|
+
failed: z.ZodNumber;
|
|
1012
|
+
done: z.ZodBoolean;
|
|
1013
|
+
}, z.core.$strict>>;
|
|
1014
|
+
failures: z.ZodArray<z.ZodObject<{
|
|
1015
|
+
folder: z.ZodString;
|
|
1016
|
+
itemKind: z.ZodEnum<{
|
|
1017
|
+
message: "message";
|
|
1018
|
+
file: "file";
|
|
1019
|
+
uid: "uid";
|
|
1020
|
+
folder: "folder";
|
|
1021
|
+
}>;
|
|
1022
|
+
item: z.ZodString;
|
|
1023
|
+
reason: z.ZodEnum<{
|
|
1024
|
+
too_large: "too_large";
|
|
1025
|
+
empty: "empty";
|
|
1026
|
+
unreadable: "unreadable";
|
|
1027
|
+
fetch_refused: "fetch_refused";
|
|
1028
|
+
malware: "malware";
|
|
1029
|
+
}>;
|
|
1030
|
+
}, z.core.$strict>>;
|
|
1031
|
+
failureCount: z.ZodNumber;
|
|
1032
|
+
freeBytes: z.ZodNumber;
|
|
1033
|
+
}, z.core.$strict>;
|
|
1034
|
+
}, z.core.$strict>;
|
|
1035
|
+
declare const importListAnswer: z.ZodObject<{
|
|
1036
|
+
imports: z.ZodArray<z.ZodObject<{
|
|
1037
|
+
id: z.ZodUUID;
|
|
1038
|
+
accountId: z.ZodUUID;
|
|
1039
|
+
kind: z.ZodEnum<{
|
|
1040
|
+
upload: "upload";
|
|
1041
|
+
imap: "imap";
|
|
1042
|
+
}>;
|
|
1043
|
+
state: z.ZodEnum<{
|
|
1044
|
+
queued: "queued";
|
|
1045
|
+
failed: "failed";
|
|
1046
|
+
checking: "checking";
|
|
1047
|
+
ready: "ready";
|
|
1048
|
+
uploading: "uploading";
|
|
1049
|
+
running: "running";
|
|
1050
|
+
waiting: "waiting";
|
|
1051
|
+
completed: "completed";
|
|
1052
|
+
cancelled: "cancelled";
|
|
1053
|
+
}>;
|
|
1054
|
+
source: z.ZodNullable<z.ZodObject<{
|
|
1055
|
+
host: z.ZodString;
|
|
1056
|
+
port: z.ZodNumber;
|
|
1057
|
+
security: z.ZodEnum<{
|
|
1058
|
+
tls: "tls";
|
|
1059
|
+
starttls: "starttls";
|
|
1060
|
+
}>;
|
|
1061
|
+
username: z.ZodString;
|
|
1062
|
+
}, z.core.$strict>>;
|
|
1063
|
+
file: z.ZodNullable<z.ZodObject<{
|
|
1064
|
+
name: z.ZodString;
|
|
1065
|
+
format: z.ZodEnum<{
|
|
1066
|
+
mbox: "mbox";
|
|
1067
|
+
eml: "eml";
|
|
1068
|
+
zip: "zip";
|
|
1069
|
+
}>;
|
|
1070
|
+
bytes: z.ZodNumber;
|
|
1071
|
+
receivedBytes: z.ZodNumber;
|
|
1072
|
+
}, z.core.$strict>>;
|
|
1073
|
+
folderId: z.ZodNullable<z.ZodUUID>;
|
|
1074
|
+
createdAt: z.ZodISODateTime;
|
|
1075
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1076
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1077
|
+
progress: z.ZodObject<{
|
|
1078
|
+
copied: z.ZodNumber;
|
|
1079
|
+
skipped: z.ZodNumber;
|
|
1080
|
+
failed: z.ZodNumber;
|
|
1081
|
+
copiedBytes: z.ZodNumber;
|
|
1082
|
+
plannedMessages: z.ZodNullable<z.ZodNumber>;
|
|
1083
|
+
plannedBytes: z.ZodNullable<z.ZodNumber>;
|
|
1084
|
+
}, z.core.$strict>;
|
|
1085
|
+
wait: z.ZodNullable<z.ZodObject<{
|
|
1086
|
+
reason: z.ZodEnum<{
|
|
1087
|
+
source_dropped: "source_dropped";
|
|
1088
|
+
source_busy: "source_busy";
|
|
1089
|
+
scanner_unavailable: "scanner_unavailable";
|
|
1090
|
+
}>;
|
|
1091
|
+
until: z.ZodISODateTime;
|
|
1092
|
+
}, z.core.$strict>>;
|
|
1093
|
+
failure: z.ZodNullable<z.ZodEnum<{
|
|
1094
|
+
expired: "expired";
|
|
1095
|
+
mailbox_full: "mailbox_full";
|
|
1096
|
+
authentication: "authentication";
|
|
1097
|
+
tls: "tls";
|
|
1098
|
+
source_unreachable: "source_unreachable";
|
|
1099
|
+
address_not_allowed: "address_not_allowed";
|
|
1100
|
+
source_refused: "source_refused";
|
|
1101
|
+
access: "access";
|
|
1102
|
+
unreadable_file: "unreadable_file";
|
|
1103
|
+
upload_lost: "upload_lost";
|
|
1104
|
+
folder_missing: "folder_missing";
|
|
1105
|
+
}>>;
|
|
1106
|
+
}, z.core.$strict>>;
|
|
1107
|
+
imapAvailable: z.ZodBoolean;
|
|
1108
|
+
uploadDayUsedBytes: z.ZodNumber;
|
|
1109
|
+
}, z.core.$strict>;
|
|
1110
|
+
/** Closed error codes beside the usual INVALID_REQUEST, DENIED, NOT_FOUND, CONFLICT and UNAVAILABLE. */
|
|
1111
|
+
declare const importErrorCode: z.ZodEnum<{
|
|
1112
|
+
IMPORT_ACTIVE: "IMPORT_ACTIVE";
|
|
1113
|
+
IMPORT_LIMIT: "IMPORT_LIMIT";
|
|
1114
|
+
IMPORT_UNAVAILABLE: "IMPORT_UNAVAILABLE";
|
|
1115
|
+
UPLOAD_TOO_LARGE: "UPLOAD_TOO_LARGE";
|
|
1116
|
+
UPLOAD_DAY_LIMIT: "UPLOAD_DAY_LIMIT";
|
|
1117
|
+
}>;
|
|
1118
|
+
type ImportBegin = z.infer<typeof importBegin>;
|
|
1119
|
+
type ImportConfirm = z.infer<typeof importConfirm>;
|
|
1120
|
+
type ImportUploadBegin = z.infer<typeof importUploadBegin>;
|
|
1121
|
+
type ImportUploadPart = z.infer<typeof importUploadPart>;
|
|
1122
|
+
type ImportDetail = z.infer<typeof importDetail>;
|
|
1123
|
+
type ImportSummary = z.infer<typeof importSummary>;
|
|
1124
|
+
type ImportState = z.infer<typeof importState>;
|
|
1125
|
+
type ImportListAnswer = z.infer<typeof importListAnswer>;
|
|
1126
|
+
|
|
1127
|
+
declare const MAXIMUM_EXPORT_FOLDERS = 1024;
|
|
1128
|
+
declare const EXPORT_MANIFEST_NAME = "manifest.json";
|
|
1129
|
+
declare const exportStart: z.ZodObject<{
|
|
1130
|
+
accountId: z.ZodUUID;
|
|
1131
|
+
folderIds: z.ZodNullable<z.ZodArray<z.ZodUUID>>;
|
|
1132
|
+
}, z.core.$strict>;
|
|
1133
|
+
declare const exportFlag: z.ZodEnum<{
|
|
1134
|
+
seen: "seen";
|
|
1135
|
+
answered: "answered";
|
|
1136
|
+
flagged: "flagged";
|
|
1137
|
+
draft: "draft";
|
|
1138
|
+
deleted: "deleted";
|
|
1139
|
+
}>;
|
|
1140
|
+
declare const exportManifestMessage: z.ZodObject<{
|
|
1141
|
+
offset: z.ZodNumber;
|
|
1142
|
+
octets: z.ZodNumber;
|
|
1143
|
+
sha256: z.ZodString;
|
|
1144
|
+
internalDate: z.ZodISODateTime;
|
|
1145
|
+
flags: z.ZodArray<z.ZodEnum<{
|
|
1146
|
+
seen: "seen";
|
|
1147
|
+
answered: "answered";
|
|
1148
|
+
flagged: "flagged";
|
|
1149
|
+
draft: "draft";
|
|
1150
|
+
deleted: "deleted";
|
|
1151
|
+
}>>;
|
|
1152
|
+
keywords: z.ZodArray<z.ZodString>;
|
|
1153
|
+
}, z.core.$strict>;
|
|
1154
|
+
declare const exportManifestFolder: z.ZodObject<{
|
|
1155
|
+
name: z.ZodString;
|
|
1156
|
+
file: z.ZodString;
|
|
1157
|
+
specialUse: z.ZodNullable<z.ZodEnum<{
|
|
1158
|
+
drafts: "drafts";
|
|
1159
|
+
sent: "sent";
|
|
1160
|
+
inbox: "inbox";
|
|
1161
|
+
junk: "junk";
|
|
1162
|
+
trash: "trash";
|
|
1163
|
+
archive: "archive";
|
|
1164
|
+
}>>;
|
|
1165
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
1166
|
+
offset: z.ZodNumber;
|
|
1167
|
+
octets: z.ZodNumber;
|
|
1168
|
+
sha256: z.ZodString;
|
|
1169
|
+
internalDate: z.ZodISODateTime;
|
|
1170
|
+
flags: z.ZodArray<z.ZodEnum<{
|
|
1171
|
+
seen: "seen";
|
|
1172
|
+
answered: "answered";
|
|
1173
|
+
flagged: "flagged";
|
|
1174
|
+
draft: "draft";
|
|
1175
|
+
deleted: "deleted";
|
|
1176
|
+
}>>;
|
|
1177
|
+
keywords: z.ZodArray<z.ZodString>;
|
|
1178
|
+
}, z.core.$strict>>;
|
|
1179
|
+
}, z.core.$strict>;
|
|
1180
|
+
declare const exportManifest: z.ZodObject<{
|
|
1181
|
+
version: z.ZodLiteral<1>;
|
|
1182
|
+
mailbox: z.ZodObject<{
|
|
1183
|
+
accountId: z.ZodUUID;
|
|
1184
|
+
address: z.ZodNullable<z.ZodString>;
|
|
1185
|
+
}, z.core.$strict>;
|
|
1186
|
+
exportedAt: z.ZodISODateTime;
|
|
1187
|
+
folders: z.ZodArray<z.ZodObject<{
|
|
1188
|
+
name: z.ZodString;
|
|
1189
|
+
file: z.ZodString;
|
|
1190
|
+
specialUse: z.ZodNullable<z.ZodEnum<{
|
|
1191
|
+
drafts: "drafts";
|
|
1192
|
+
sent: "sent";
|
|
1193
|
+
inbox: "inbox";
|
|
1194
|
+
junk: "junk";
|
|
1195
|
+
trash: "trash";
|
|
1196
|
+
archive: "archive";
|
|
1197
|
+
}>>;
|
|
1198
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
1199
|
+
offset: z.ZodNumber;
|
|
1200
|
+
octets: z.ZodNumber;
|
|
1201
|
+
sha256: z.ZodString;
|
|
1202
|
+
internalDate: z.ZodISODateTime;
|
|
1203
|
+
flags: z.ZodArray<z.ZodEnum<{
|
|
1204
|
+
seen: "seen";
|
|
1205
|
+
answered: "answered";
|
|
1206
|
+
flagged: "flagged";
|
|
1207
|
+
draft: "draft";
|
|
1208
|
+
deleted: "deleted";
|
|
1209
|
+
}>>;
|
|
1210
|
+
keywords: z.ZodArray<z.ZodString>;
|
|
1211
|
+
}, z.core.$strict>>;
|
|
1212
|
+
}, z.core.$strict>>;
|
|
1213
|
+
}, z.core.$strict>;
|
|
1214
|
+
type ExportStart = z.infer<typeof exportStart>;
|
|
1215
|
+
type ExportManifest = z.infer<typeof exportManifest>;
|
|
1216
|
+
|
|
1217
|
+
/** Whole encoded outgoing message, including MIME headers and transfer encoding (EMAIL-D119). */
|
|
1218
|
+
declare const MAXIMUM_SEND_BYTES: number;
|
|
1219
|
+
/** Canonical base64 JSON transport plus the existing 16 KiB metadata envelope. */
|
|
1220
|
+
declare const MAXIMUM_SEND_BASE64_BYTES: number;
|
|
1221
|
+
declare const MAXIMUM_SEND_BODY_BYTES: number;
|
|
1222
|
+
|
|
1223
|
+
declare const cleanupInput: z.ZodUnion<readonly [z.ZodObject<{
|
|
1224
|
+
accountId: z.ZodUUID;
|
|
1225
|
+
folderId: z.ZodUUID;
|
|
1226
|
+
uidValidity: z.ZodNumber;
|
|
1227
|
+
operationId: z.ZodUUID;
|
|
1228
|
+
empty: z.ZodLiteral<true>;
|
|
1229
|
+
beforeUid: z.ZodOptional<z.ZodNumber>;
|
|
1230
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1231
|
+
accountId: z.ZodUUID;
|
|
1232
|
+
folderId: z.ZodUUID;
|
|
1233
|
+
uidValidity: z.ZodNumber;
|
|
1234
|
+
operationId: z.ZodUUID;
|
|
1235
|
+
empty: z.ZodLiteral<false>;
|
|
1236
|
+
uids: z.ZodArray<z.ZodNumber>;
|
|
1237
|
+
}, z.core.$strict>]>;
|
|
1238
|
+
declare const cleanupResult: z.ZodObject<{
|
|
1239
|
+
operationId: z.ZodUUID;
|
|
1240
|
+
removed: z.ZodNumber;
|
|
1241
|
+
beforeUid: z.ZodNumber;
|
|
1242
|
+
more: z.ZodBoolean;
|
|
1243
|
+
}, z.core.$strict>;
|
|
1244
|
+
type CleanupInput = z.infer<typeof cleanupInput>;
|
|
1245
|
+
|
|
1246
|
+
declare const inboxWaitInput: z.ZodObject<{
|
|
1247
|
+
accountId: z.ZodUUID;
|
|
1248
|
+
after: z.ZodNumber;
|
|
1249
|
+
timeoutMs: z.ZodNumber;
|
|
1250
|
+
}, z.core.$strict>;
|
|
1251
|
+
declare const inboxPosition: z.ZodObject<{
|
|
1252
|
+
position: z.ZodNumber;
|
|
1253
|
+
}, z.core.$strict>;
|
|
1254
|
+
declare const inboxCountsInput: z.ZodObject<{
|
|
1255
|
+
accountId: z.ZodUUID;
|
|
1256
|
+
folderIds: z.ZodArray<z.ZodUUID>;
|
|
1257
|
+
}, z.core.$strict>;
|
|
1258
|
+
declare const inboxFolderCount: z.ZodObject<{
|
|
1259
|
+
folderId: z.ZodUUID;
|
|
1260
|
+
unseen: z.ZodNumber;
|
|
1261
|
+
total: z.ZodNumber;
|
|
1262
|
+
uidNext: z.ZodNumber;
|
|
1263
|
+
uidValidity: z.ZodNumber;
|
|
1264
|
+
}, z.core.$strict>;
|
|
1265
|
+
declare const inboxCounts: z.ZodObject<{
|
|
1266
|
+
position: z.ZodNumber;
|
|
1267
|
+
folders: z.ZodArray<z.ZodObject<{
|
|
1268
|
+
folderId: z.ZodUUID;
|
|
1269
|
+
unseen: z.ZodNumber;
|
|
1270
|
+
total: z.ZodNumber;
|
|
1271
|
+
uidNext: z.ZodNumber;
|
|
1272
|
+
uidValidity: z.ZodNumber;
|
|
1273
|
+
}, z.core.$strict>>;
|
|
1274
|
+
}, z.core.$strict>;
|
|
1275
|
+
type InboxFolderCount = z.infer<typeof inboxFolderCount>;
|
|
1276
|
+
type InboxCounts = z.infer<typeof inboxCounts>;
|
|
1277
|
+
|
|
1278
|
+
export { type CleanupInput, ComposeNode, type DeliveryEvent, type DeliveryEventName, type DeliveryMeaning, type DeliveryReason, type DeliveryState, type DeliverySummary, EXPORT_MANIFEST_NAME, type ExportManifest, type ExportStart, type HeaderSample, type HeaderSampleInput, type HeaderSampleMessage, type HeldReason, IMPORT_UPLOAD_PART_BYTES, type ImportBegin, type ImportConfirm, type ImportDetail, type ImportListAnswer, type ImportState, type ImportSummary, type ImportUploadBegin, type ImportUploadPart, type InboxCounts, type InboxFolderCount, MAXIMUM_DELIVERY_BATCH, MAXIMUM_EXPORT_FOLDERS, MAXIMUM_HEADER_SAMPLE, MAXIMUM_IMPORTS_KEPT, MAXIMUM_IMPORT_FAILURES_SHOWN, MAXIMUM_IMPORT_FOLDERS, MAXIMUM_IMPORT_MESSAGE_BYTES, MAXIMUM_IMPORT_UPLOAD_BYTES, MAXIMUM_IMPORT_UPLOAD_DAY_BYTES, MAXIMUM_SEND_BASE64_BYTES, MAXIMUM_SEND_BODY_BYTES, MAXIMUM_SEND_BYTES, MAXIMUM_SIGNATURES, MAXIMUM_SIGNATURE_BYTES, MAXIMUM_SIGNATURE_LINES, type RecipientDelivery, type SentDeliveries, type SentDeliveriesLocation, type SentDelivery, type SentDeliveryLocation, type SentDeliveryStatus, type Signature, type SignaturePage, type SignaturePlacement, type SignatureSave, type SignatureSaved, cleanupInput, cleanupResult, deliveryEvent, deliveryEventName, deliveryMeaning, deliveryReason, deliveryState, deliveryStates, deliverySummary, exportFlag, exportManifest, exportManifestFolder, exportManifestMessage, exportStart, finishedImportStates, headerSample, headerSampleInput, headerSampleMessage, heldReason, importAnswer, importBegin, importConfirm, importDetail, importErrorCode, importFailureReason, importFile, importFileFormat, importFolderChoice, importKind, importList, importListAnswer, importMessageFailure, importPlanFolder, importProgress, importRef, importSecurity, importSource, importSourceInput, importSpecialUse, importState, importStates, importSummary, importUploadBegin, importUploadPart, importWaitReason, inboxCounts, inboxCountsInput, inboxFolderCount, inboxPosition, inboxWaitInput, recipientDelivery, sentDeliveries, sentDeliveriesLocation, sentDelivery, sentDeliveryLocation, sentDeliveryStatus, signature, signaturePage, signaturePlacement, signatureSave, signatureSaved };
|