@repa/mail 0.1.0-alpha.20 → 0.1.0-alpha.22

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.
@@ -101,13 +101,65 @@ declare const conversationLocation: z.ZodObject<{
101
101
  uid: z.ZodNumber;
102
102
  flags: z.ZodNumber;
103
103
  }, z.core.$strict>;
104
- /** Chat text is the message's new text when a quote or signature boundary was
105
- * proven, otherwise its whole text; `quoted` says history was hidden. */
104
+ /** Chat text is the message's new text (EMAIL-D240): what the sender wrote,
105
+ * without quoted earlier messages and without the signature. `quoted` says
106
+ * quoted history was cut, `truncated` that the text was cut at 16 KiB, and
107
+ * `newText` says what was removed and how sure the cut is, exactly as
108
+ * `readMessage({..., content: "new"})` returns it (all empty when the message
109
+ * content was not read on this page). */
106
110
  declare const chatText: z.ZodObject<{
107
111
  text: z.ZodString;
108
112
  quoted: z.ZodBoolean;
109
113
  signature: z.ZodString;
110
114
  truncated: z.ZodBoolean;
115
+ newText: z.ZodUnion<readonly [z.ZodObject<{
116
+ outcome: z.ZodEnum<{
117
+ cut: "cut";
118
+ whole: "whole";
119
+ unreadable: "unreadable";
120
+ }>;
121
+ confidence: z.ZodEnum<{
122
+ proven: "proven";
123
+ structural: "structural";
124
+ none: "none";
125
+ }>;
126
+ reason: z.ZodString;
127
+ extractorVersion: z.ZodNumber;
128
+ fullTextBytes: z.ZodNumber;
129
+ signatureReason: z.ZodEnum<{
130
+ "": "";
131
+ rfc3676_delimiter: "rfc3676_delimiter";
132
+ html_signature: "html_signature";
133
+ sender_learned: "sender_learned";
134
+ }>;
135
+ removed: z.ZodArray<z.ZodObject<{
136
+ kind: z.ZodEnum<{
137
+ quote: "quote";
138
+ forward_header: "forward_header";
139
+ signature: "signature";
140
+ }>;
141
+ messageId: z.ZodNullable<z.ZodUUID>;
142
+ headerId: z.ZodNullable<z.ZodString>;
143
+ bytes: z.ZodNumber;
144
+ }, z.core.$strict>>;
145
+ }, z.core.$strict>, z.ZodObject<{
146
+ outcome: z.ZodLiteral<"">;
147
+ confidence: z.ZodLiteral<"">;
148
+ reason: z.ZodLiteral<"">;
149
+ extractorVersion: z.ZodLiteral<0>;
150
+ fullTextBytes: z.ZodLiteral<0>;
151
+ signatureReason: z.ZodLiteral<"">;
152
+ removed: z.ZodArray<z.ZodObject<{
153
+ kind: z.ZodEnum<{
154
+ quote: "quote";
155
+ forward_header: "forward_header";
156
+ signature: "signature";
157
+ }>;
158
+ messageId: z.ZodNullable<z.ZodUUID>;
159
+ headerId: z.ZodNullable<z.ZodString>;
160
+ bytes: z.ZodNumber;
161
+ }, z.core.$strict>>;
162
+ }, z.core.$strict>]>;
111
163
  }, z.core.$strict>;
112
164
  declare const conversationMessage: z.ZodObject<{
113
165
  id: z.ZodString;
@@ -133,6 +185,54 @@ declare const conversationMessage: z.ZodObject<{
133
185
  quoted: z.ZodBoolean;
134
186
  signature: z.ZodString;
135
187
  truncated: z.ZodBoolean;
188
+ newText: z.ZodUnion<readonly [z.ZodObject<{
189
+ outcome: z.ZodEnum<{
190
+ cut: "cut";
191
+ whole: "whole";
192
+ unreadable: "unreadable";
193
+ }>;
194
+ confidence: z.ZodEnum<{
195
+ proven: "proven";
196
+ structural: "structural";
197
+ none: "none";
198
+ }>;
199
+ reason: z.ZodString;
200
+ extractorVersion: z.ZodNumber;
201
+ fullTextBytes: z.ZodNumber;
202
+ signatureReason: z.ZodEnum<{
203
+ "": "";
204
+ rfc3676_delimiter: "rfc3676_delimiter";
205
+ html_signature: "html_signature";
206
+ sender_learned: "sender_learned";
207
+ }>;
208
+ removed: z.ZodArray<z.ZodObject<{
209
+ kind: z.ZodEnum<{
210
+ quote: "quote";
211
+ forward_header: "forward_header";
212
+ signature: "signature";
213
+ }>;
214
+ messageId: z.ZodNullable<z.ZodUUID>;
215
+ headerId: z.ZodNullable<z.ZodString>;
216
+ bytes: z.ZodNumber;
217
+ }, z.core.$strict>>;
218
+ }, z.core.$strict>, z.ZodObject<{
219
+ outcome: z.ZodLiteral<"">;
220
+ confidence: z.ZodLiteral<"">;
221
+ reason: z.ZodLiteral<"">;
222
+ extractorVersion: z.ZodLiteral<0>;
223
+ fullTextBytes: z.ZodLiteral<0>;
224
+ signatureReason: z.ZodLiteral<"">;
225
+ removed: z.ZodArray<z.ZodObject<{
226
+ kind: z.ZodEnum<{
227
+ quote: "quote";
228
+ forward_header: "forward_header";
229
+ signature: "signature";
230
+ }>;
231
+ messageId: z.ZodNullable<z.ZodUUID>;
232
+ headerId: z.ZodNullable<z.ZodString>;
233
+ bytes: z.ZodNumber;
234
+ }, z.core.$strict>>;
235
+ }, z.core.$strict>]>;
136
236
  }, z.core.$strict>;
137
237
  hasHTML: z.ZodBoolean;
138
238
  attachments: z.ZodArray<z.ZodObject<{
@@ -182,6 +282,54 @@ declare const conversation: z.ZodObject<{
182
282
  quoted: z.ZodBoolean;
183
283
  signature: z.ZodString;
184
284
  truncated: z.ZodBoolean;
285
+ newText: z.ZodUnion<readonly [z.ZodObject<{
286
+ outcome: z.ZodEnum<{
287
+ cut: "cut";
288
+ whole: "whole";
289
+ unreadable: "unreadable";
290
+ }>;
291
+ confidence: z.ZodEnum<{
292
+ proven: "proven";
293
+ structural: "structural";
294
+ none: "none";
295
+ }>;
296
+ reason: z.ZodString;
297
+ extractorVersion: z.ZodNumber;
298
+ fullTextBytes: z.ZodNumber;
299
+ signatureReason: z.ZodEnum<{
300
+ "": "";
301
+ rfc3676_delimiter: "rfc3676_delimiter";
302
+ html_signature: "html_signature";
303
+ sender_learned: "sender_learned";
304
+ }>;
305
+ removed: z.ZodArray<z.ZodObject<{
306
+ kind: z.ZodEnum<{
307
+ quote: "quote";
308
+ forward_header: "forward_header";
309
+ signature: "signature";
310
+ }>;
311
+ messageId: z.ZodNullable<z.ZodUUID>;
312
+ headerId: z.ZodNullable<z.ZodString>;
313
+ bytes: z.ZodNumber;
314
+ }, z.core.$strict>>;
315
+ }, z.core.$strict>, z.ZodObject<{
316
+ outcome: z.ZodLiteral<"">;
317
+ confidence: z.ZodLiteral<"">;
318
+ reason: z.ZodLiteral<"">;
319
+ extractorVersion: z.ZodLiteral<0>;
320
+ fullTextBytes: z.ZodLiteral<0>;
321
+ signatureReason: z.ZodLiteral<"">;
322
+ removed: z.ZodArray<z.ZodObject<{
323
+ kind: z.ZodEnum<{
324
+ quote: "quote";
325
+ forward_header: "forward_header";
326
+ signature: "signature";
327
+ }>;
328
+ messageId: z.ZodNullable<z.ZodUUID>;
329
+ headerId: z.ZodNullable<z.ZodString>;
330
+ bytes: z.ZodNumber;
331
+ }, z.core.$strict>>;
332
+ }, z.core.$strict>]>;
185
333
  }, z.core.$strict>;
186
334
  hasHTML: z.ZodBoolean;
187
335
  attachments: z.ZodArray<z.ZodObject<{
@@ -649,6 +797,228 @@ declare class MailError extends Error {
649
797
  constructor(code: string);
650
798
  }
651
799
 
800
+ /**
801
+ * What a message read returns (EMAIL-D240). `full` (the default) is the whole
802
+ * message as it was sent. `new` is only what the sender wrote in this message:
803
+ * the quoted earlier messages are left out and the signature comes separately.
804
+ * The stored message never changes; a `full` read always returns it whole.
805
+ */
806
+ declare const readContent: z.ZodEnum<{
807
+ full: "full";
808
+ new: "new";
809
+ }>;
810
+ /**
811
+ * `cut`: quoted earlier text was removed. `whole`: nothing was removed, the text
812
+ * is the whole message (a signature may still come separately). `unreadable`:
813
+ * no readable text could be derived, the text is empty.
814
+ */
815
+ declare const newTextOutcome: z.ZodEnum<{
816
+ cut: "cut";
817
+ whole: "whole";
818
+ unreadable: "unreadable";
819
+ }>;
820
+ /**
821
+ * `proven`: the removed text repeats an earlier message of the same
822
+ * conversation in this mailbox. `structural`: the sender's mail program marked
823
+ * it as a quote, but no earlier message was found to compare it with. `none`:
824
+ * nothing was removed.
825
+ */
826
+ declare const newTextConfidence: z.ZodEnum<{
827
+ proven: "proven";
828
+ structural: "structural";
829
+ none: "none";
830
+ }>;
831
+ /**
832
+ * How the signature was found. `rfc3676_delimiter`: the standard `-- ` line;
833
+ * `html_signature`: the mail program's signature block; `sender_learned`: the
834
+ * same closing lines end at least two earlier messages from this sender. Empty
835
+ * when no signature was separated.
836
+ */
837
+ declare const newTextSignatureReason: z.ZodEnum<{
838
+ "": "";
839
+ rfc3676_delimiter: "rfc3676_delimiter";
840
+ html_signature: "html_signature";
841
+ sender_learned: "sender_learned";
842
+ }>;
843
+ /** `quote`: quoted earlier text; `forward_header`: the From/Sent/To/Subject
844
+ * block that introduces such a quote; `signature`: the separated signature. */
845
+ declare const newTextRemovedKind: z.ZodEnum<{
846
+ quote: "quote";
847
+ forward_header: "forward_header";
848
+ signature: "signature";
849
+ }>;
850
+ /**
851
+ * One removed region. `messageId` is the earlier message the quote repeats,
852
+ * given only when you may read it in this mailbox (else null); it is the `id`
853
+ * of that message in `readConversation`. `headerId` is its Message-ID header,
854
+ * null when the quote is not proven. `bytes` is the size of the removed text.
855
+ */
856
+ declare const newTextRemoved: z.ZodObject<{
857
+ kind: z.ZodEnum<{
858
+ quote: "quote";
859
+ forward_header: "forward_header";
860
+ signature: "signature";
861
+ }>;
862
+ messageId: z.ZodNullable<z.ZodUUID>;
863
+ headerId: z.ZodNullable<z.ZodString>;
864
+ bytes: z.ZodNumber;
865
+ }, z.core.$strict>;
866
+ /**
867
+ * Why the text was cut or kept. Cuts: `gmail_quote`, `blockquote_cite`,
868
+ * `outlook_separator`, `apple_cite`, `moz_cite_prefix`, `yahoo_quoted`,
869
+ * `proton_quote`, `text_attribution` (an "On … wrote:" line), `text_quote_block`
870
+ * (`>` lines), `proven_repeat`. Kept whole: `no_quote`, `interleaved` (answers
871
+ * between quoted lines), `forward`, `empty_remainder` (nothing would be left),
872
+ * `too_large`, `budget`, `no_text`, `invitation`, `report`, `encrypted`. A newer
873
+ * extractor may add reasons; treat an unknown one like the outcome it comes with.
874
+ */
875
+ declare const newTextReason: z.ZodString;
876
+ /**
877
+ * What a new-text read removed and how sure it is. `fullTextBytes` is the size
878
+ * of the whole readable text, `extractorVersion` the version of the extractor
879
+ * that derived it. No word the sender wrote is ever dropped: when a cut is not
880
+ * safe the whole text is kept.
881
+ */
882
+ declare const newTextInfo: z.ZodObject<{
883
+ outcome: z.ZodEnum<{
884
+ cut: "cut";
885
+ whole: "whole";
886
+ unreadable: "unreadable";
887
+ }>;
888
+ confidence: z.ZodEnum<{
889
+ proven: "proven";
890
+ structural: "structural";
891
+ none: "none";
892
+ }>;
893
+ reason: z.ZodString;
894
+ extractorVersion: z.ZodNumber;
895
+ fullTextBytes: z.ZodNumber;
896
+ signatureReason: z.ZodEnum<{
897
+ "": "";
898
+ rfc3676_delimiter: "rfc3676_delimiter";
899
+ html_signature: "html_signature";
900
+ sender_learned: "sender_learned";
901
+ }>;
902
+ removed: z.ZodArray<z.ZodObject<{
903
+ kind: z.ZodEnum<{
904
+ quote: "quote";
905
+ forward_header: "forward_header";
906
+ signature: "signature";
907
+ }>;
908
+ messageId: z.ZodNullable<z.ZodUUID>;
909
+ headerId: z.ZodNullable<z.ZodString>;
910
+ bytes: z.ZodNumber;
911
+ }, z.core.$strict>>;
912
+ }, z.core.$strict>;
913
+ /** The form a conversation message carries when its content was not read on
914
+ * this page (it is then `incomplete`): every field empty or zero. */
915
+ declare const unreadNewText: z.ZodObject<{
916
+ outcome: z.ZodLiteral<"">;
917
+ confidence: z.ZodLiteral<"">;
918
+ reason: z.ZodLiteral<"">;
919
+ extractorVersion: z.ZodLiteral<0>;
920
+ fullTextBytes: z.ZodLiteral<0>;
921
+ signatureReason: z.ZodLiteral<"">;
922
+ removed: z.ZodArray<z.ZodObject<{
923
+ kind: z.ZodEnum<{
924
+ quote: "quote";
925
+ forward_header: "forward_header";
926
+ signature: "signature";
927
+ }>;
928
+ messageId: z.ZodNullable<z.ZodUUID>;
929
+ headerId: z.ZodNullable<z.ZodString>;
930
+ bytes: z.ZodNumber;
931
+ }, z.core.$strict>>;
932
+ }, z.core.$strict>;
933
+ /**
934
+ * `readMessage({..., content: "new"})`: `text` is what the sender wrote (the
935
+ * whole text when nothing could be cut safely), `signature` the separated
936
+ * signature (at most 1 KiB), attachments and warnings as in a full read, and
937
+ * no `html`.
938
+ */
939
+ declare const newTextMessage: z.ZodObject<{
940
+ entry: z.ZodObject<{
941
+ uid: z.ZodNumber;
942
+ id: z.ZodString;
943
+ flags: z.ZodNumber;
944
+ date: z.ZodString;
945
+ octets: z.ZodNumber;
946
+ preview: z.ZodString;
947
+ hasAttachment: z.ZodBoolean;
948
+ subject: z.ZodString;
949
+ from: z.ZodString;
950
+ to: z.ZodString;
951
+ }, z.core.$strict>;
952
+ headers: z.ZodObject<{
953
+ subject: z.ZodString;
954
+ from: z.ZodString;
955
+ to: z.ZodString;
956
+ cc: z.ZodString;
957
+ replyTo: z.ZodString;
958
+ messageId: z.ZodString;
959
+ unsubscribe: z.ZodOptional<z.ZodString>;
960
+ }, z.core.$strict>;
961
+ text: z.ZodString;
962
+ signature: z.ZodString;
963
+ attachments: z.ZodArray<z.ZodObject<{
964
+ contentId: z.ZodOptional<z.ZodString>;
965
+ part: z.ZodString;
966
+ name: z.ZodString;
967
+ type: z.ZodString;
968
+ octets: z.ZodNumber;
969
+ }, z.core.$strict>>;
970
+ warnings: z.ZodArray<z.ZodEnum<{
971
+ incomplete_scan: "incomplete_scan";
972
+ hosted_domain_unaligned: "hosted_domain_unaligned";
973
+ link_text_mismatch: "link_text_mismatch";
974
+ lookalike_brand: "lookalike_brand";
975
+ lookalike_tenant: "lookalike_tenant";
976
+ homograph_domain: "homograph_domain";
977
+ credential_form: "credential_form";
978
+ dangerous_attachment: "dangerous_attachment";
979
+ encrypted_archive: "encrypted_archive";
980
+ }>>;
981
+ incomplete: z.ZodBoolean;
982
+ newText: z.ZodObject<{
983
+ outcome: z.ZodEnum<{
984
+ cut: "cut";
985
+ whole: "whole";
986
+ unreadable: "unreadable";
987
+ }>;
988
+ confidence: z.ZodEnum<{
989
+ proven: "proven";
990
+ structural: "structural";
991
+ none: "none";
992
+ }>;
993
+ reason: z.ZodString;
994
+ extractorVersion: z.ZodNumber;
995
+ fullTextBytes: z.ZodNumber;
996
+ signatureReason: z.ZodEnum<{
997
+ "": "";
998
+ rfc3676_delimiter: "rfc3676_delimiter";
999
+ html_signature: "html_signature";
1000
+ sender_learned: "sender_learned";
1001
+ }>;
1002
+ removed: z.ZodArray<z.ZodObject<{
1003
+ kind: z.ZodEnum<{
1004
+ quote: "quote";
1005
+ forward_header: "forward_header";
1006
+ signature: "signature";
1007
+ }>;
1008
+ messageId: z.ZodNullable<z.ZodUUID>;
1009
+ headerId: z.ZodNullable<z.ZodString>;
1010
+ bytes: z.ZodNumber;
1011
+ }, z.core.$strict>>;
1012
+ }, z.core.$strict>;
1013
+ }, z.core.$strict>;
1014
+ type ReadContent = z.infer<typeof readContent>;
1015
+ type NewTextOutcome = z.infer<typeof newTextOutcome>;
1016
+ type NewTextConfidence = z.infer<typeof newTextConfidence>;
1017
+ type NewTextSignatureReason = z.infer<typeof newTextSignatureReason>;
1018
+ type NewTextRemoved = z.infer<typeof newTextRemoved>;
1019
+ type NewTextInfo = z.infer<typeof newTextInfo>;
1020
+ type NewTextMessage = z.infer<typeof newTextMessage>;
1021
+
652
1022
  /**
653
1023
  * Mailbox rules (Sieve filtering) for integrations holding the "Read and organize" mailbox level or higher
654
1024
  * (EMAIL-D100). The mailbox's active script is read as ordered items; writes are compare-and-swap on the revision
@@ -1408,6 +1778,7 @@ declare const headlessOperations: {
1408
1778
  key: "id" | "operationId" | undefined;
1409
1779
  revision: boolean;
1410
1780
  };
1781
+ /** `content: 'new'` answers what the sender wrote without the quoted chain (EMAIL-D240); default `full`. */
1411
1782
  readonly read: {
1412
1783
  path: string;
1413
1784
  internal: string;
@@ -1416,8 +1787,12 @@ declare const headlessOperations: {
1416
1787
  folderId: z.ZodUUID;
1417
1788
  uidValidity: z.ZodNumber;
1418
1789
  uid: z.ZodNumber;
1790
+ content: z.ZodOptional<z.ZodEnum<{
1791
+ full: "full";
1792
+ new: "new";
1793
+ }>>;
1419
1794
  }, z.core.$strict>;
1420
- output: z.ZodObject<{
1795
+ output: z.ZodUnion<readonly [z.ZodObject<{
1421
1796
  entry: z.ZodObject<{
1422
1797
  uid: z.ZodNumber;
1423
1798
  id: z.ZodString;
@@ -1460,9 +1835,83 @@ declare const headlessOperations: {
1460
1835
  encrypted_archive: "encrypted_archive";
1461
1836
  }>>;
1462
1837
  incomplete: z.ZodBoolean;
1463
- }, z.core.$strict>;
1838
+ }, z.core.$strict>, z.ZodObject<{
1839
+ entry: z.ZodObject<{
1840
+ uid: z.ZodNumber;
1841
+ id: z.ZodString;
1842
+ flags: z.ZodNumber;
1843
+ date: z.ZodString;
1844
+ octets: z.ZodNumber;
1845
+ preview: z.ZodString;
1846
+ hasAttachment: z.ZodBoolean;
1847
+ subject: z.ZodString;
1848
+ from: z.ZodString;
1849
+ to: z.ZodString;
1850
+ }, z.core.$strict>;
1851
+ headers: z.ZodObject<{
1852
+ subject: z.ZodString;
1853
+ from: z.ZodString;
1854
+ to: z.ZodString;
1855
+ cc: z.ZodString;
1856
+ replyTo: z.ZodString;
1857
+ messageId: z.ZodString;
1858
+ unsubscribe: z.ZodOptional<z.ZodString>;
1859
+ }, z.core.$strict>;
1860
+ text: z.ZodString;
1861
+ signature: z.ZodString;
1862
+ attachments: z.ZodArray<z.ZodObject<{
1863
+ contentId: z.ZodOptional<z.ZodString>;
1864
+ part: z.ZodString;
1865
+ name: z.ZodString;
1866
+ type: z.ZodString;
1867
+ octets: z.ZodNumber;
1868
+ }, z.core.$strict>>;
1869
+ warnings: z.ZodArray<z.ZodEnum<{
1870
+ incomplete_scan: "incomplete_scan";
1871
+ hosted_domain_unaligned: "hosted_domain_unaligned";
1872
+ link_text_mismatch: "link_text_mismatch";
1873
+ lookalike_brand: "lookalike_brand";
1874
+ lookalike_tenant: "lookalike_tenant";
1875
+ homograph_domain: "homograph_domain";
1876
+ credential_form: "credential_form";
1877
+ dangerous_attachment: "dangerous_attachment";
1878
+ encrypted_archive: "encrypted_archive";
1879
+ }>>;
1880
+ incomplete: z.ZodBoolean;
1881
+ newText: z.ZodObject<{
1882
+ outcome: z.ZodEnum<{
1883
+ cut: "cut";
1884
+ whole: "whole";
1885
+ unreadable: "unreadable";
1886
+ }>;
1887
+ confidence: z.ZodEnum<{
1888
+ proven: "proven";
1889
+ structural: "structural";
1890
+ none: "none";
1891
+ }>;
1892
+ reason: z.ZodString;
1893
+ extractorVersion: z.ZodNumber;
1894
+ fullTextBytes: z.ZodNumber;
1895
+ signatureReason: z.ZodEnum<{
1896
+ "": "";
1897
+ rfc3676_delimiter: "rfc3676_delimiter";
1898
+ html_signature: "html_signature";
1899
+ sender_learned: "sender_learned";
1900
+ }>;
1901
+ removed: z.ZodArray<z.ZodObject<{
1902
+ kind: z.ZodEnum<{
1903
+ quote: "quote";
1904
+ forward_header: "forward_header";
1905
+ signature: "signature";
1906
+ }>;
1907
+ messageId: z.ZodNullable<z.ZodUUID>;
1908
+ headerId: z.ZodNullable<z.ZodString>;
1909
+ bytes: z.ZodNumber;
1910
+ }, z.core.$strict>>;
1911
+ }, z.core.$strict>;
1912
+ }, z.core.$strict>]>;
1464
1913
  envelope: z.ZodObject<{
1465
- data: z.ZodObject<{
1914
+ data: z.ZodUnion<readonly [z.ZodObject<{
1466
1915
  entry: z.ZodObject<{
1467
1916
  uid: z.ZodNumber;
1468
1917
  id: z.ZodString;
@@ -1505,7 +1954,81 @@ declare const headlessOperations: {
1505
1954
  encrypted_archive: "encrypted_archive";
1506
1955
  }>>;
1507
1956
  incomplete: z.ZodBoolean;
1508
- }, z.core.$strict>;
1957
+ }, z.core.$strict>, z.ZodObject<{
1958
+ entry: z.ZodObject<{
1959
+ uid: z.ZodNumber;
1960
+ id: z.ZodString;
1961
+ flags: z.ZodNumber;
1962
+ date: z.ZodString;
1963
+ octets: z.ZodNumber;
1964
+ preview: z.ZodString;
1965
+ hasAttachment: z.ZodBoolean;
1966
+ subject: z.ZodString;
1967
+ from: z.ZodString;
1968
+ to: z.ZodString;
1969
+ }, z.core.$strict>;
1970
+ headers: z.ZodObject<{
1971
+ subject: z.ZodString;
1972
+ from: z.ZodString;
1973
+ to: z.ZodString;
1974
+ cc: z.ZodString;
1975
+ replyTo: z.ZodString;
1976
+ messageId: z.ZodString;
1977
+ unsubscribe: z.ZodOptional<z.ZodString>;
1978
+ }, z.core.$strict>;
1979
+ text: z.ZodString;
1980
+ signature: z.ZodString;
1981
+ attachments: z.ZodArray<z.ZodObject<{
1982
+ contentId: z.ZodOptional<z.ZodString>;
1983
+ part: z.ZodString;
1984
+ name: z.ZodString;
1985
+ type: z.ZodString;
1986
+ octets: z.ZodNumber;
1987
+ }, z.core.$strict>>;
1988
+ warnings: z.ZodArray<z.ZodEnum<{
1989
+ incomplete_scan: "incomplete_scan";
1990
+ hosted_domain_unaligned: "hosted_domain_unaligned";
1991
+ link_text_mismatch: "link_text_mismatch";
1992
+ lookalike_brand: "lookalike_brand";
1993
+ lookalike_tenant: "lookalike_tenant";
1994
+ homograph_domain: "homograph_domain";
1995
+ credential_form: "credential_form";
1996
+ dangerous_attachment: "dangerous_attachment";
1997
+ encrypted_archive: "encrypted_archive";
1998
+ }>>;
1999
+ incomplete: z.ZodBoolean;
2000
+ newText: z.ZodObject<{
2001
+ outcome: z.ZodEnum<{
2002
+ cut: "cut";
2003
+ whole: "whole";
2004
+ unreadable: "unreadable";
2005
+ }>;
2006
+ confidence: z.ZodEnum<{
2007
+ proven: "proven";
2008
+ structural: "structural";
2009
+ none: "none";
2010
+ }>;
2011
+ reason: z.ZodString;
2012
+ extractorVersion: z.ZodNumber;
2013
+ fullTextBytes: z.ZodNumber;
2014
+ signatureReason: z.ZodEnum<{
2015
+ "": "";
2016
+ rfc3676_delimiter: "rfc3676_delimiter";
2017
+ html_signature: "html_signature";
2018
+ sender_learned: "sender_learned";
2019
+ }>;
2020
+ removed: z.ZodArray<z.ZodObject<{
2021
+ kind: z.ZodEnum<{
2022
+ quote: "quote";
2023
+ forward_header: "forward_header";
2024
+ signature: "signature";
2025
+ }>;
2026
+ messageId: z.ZodNullable<z.ZodUUID>;
2027
+ headerId: z.ZodNullable<z.ZodString>;
2028
+ bytes: z.ZodNumber;
2029
+ }, z.core.$strict>>;
2030
+ }, z.core.$strict>;
2031
+ }, z.core.$strict>]>;
1509
2032
  }, z.core.$strict>;
1510
2033
  requestBytes: number;
1511
2034
  responseBytes: number;
@@ -1631,6 +2154,54 @@ declare const headlessOperations: {
1631
2154
  quoted: z.ZodBoolean;
1632
2155
  signature: z.ZodString;
1633
2156
  truncated: z.ZodBoolean;
2157
+ newText: z.ZodUnion<readonly [z.ZodObject<{
2158
+ outcome: z.ZodEnum<{
2159
+ cut: "cut";
2160
+ whole: "whole";
2161
+ unreadable: "unreadable";
2162
+ }>;
2163
+ confidence: z.ZodEnum<{
2164
+ proven: "proven";
2165
+ structural: "structural";
2166
+ none: "none";
2167
+ }>;
2168
+ reason: z.ZodString;
2169
+ extractorVersion: z.ZodNumber;
2170
+ fullTextBytes: z.ZodNumber;
2171
+ signatureReason: z.ZodEnum<{
2172
+ "": "";
2173
+ rfc3676_delimiter: "rfc3676_delimiter";
2174
+ html_signature: "html_signature";
2175
+ sender_learned: "sender_learned";
2176
+ }>;
2177
+ removed: z.ZodArray<z.ZodObject<{
2178
+ kind: z.ZodEnum<{
2179
+ quote: "quote";
2180
+ forward_header: "forward_header";
2181
+ signature: "signature";
2182
+ }>;
2183
+ messageId: z.ZodNullable<z.ZodUUID>;
2184
+ headerId: z.ZodNullable<z.ZodString>;
2185
+ bytes: z.ZodNumber;
2186
+ }, z.core.$strict>>;
2187
+ }, z.core.$strict>, z.ZodObject<{
2188
+ outcome: z.ZodLiteral<"">;
2189
+ confidence: z.ZodLiteral<"">;
2190
+ reason: z.ZodLiteral<"">;
2191
+ extractorVersion: z.ZodLiteral<0>;
2192
+ fullTextBytes: z.ZodLiteral<0>;
2193
+ signatureReason: z.ZodLiteral<"">;
2194
+ removed: z.ZodArray<z.ZodObject<{
2195
+ kind: z.ZodEnum<{
2196
+ quote: "quote";
2197
+ forward_header: "forward_header";
2198
+ signature: "signature";
2199
+ }>;
2200
+ messageId: z.ZodNullable<z.ZodUUID>;
2201
+ headerId: z.ZodNullable<z.ZodString>;
2202
+ bytes: z.ZodNumber;
2203
+ }, z.core.$strict>>;
2204
+ }, z.core.$strict>]>;
1634
2205
  }, z.core.$strict>;
1635
2206
  hasHTML: z.ZodBoolean;
1636
2207
  attachments: z.ZodArray<z.ZodObject<{
@@ -1683,6 +2254,54 @@ declare const headlessOperations: {
1683
2254
  quoted: z.ZodBoolean;
1684
2255
  signature: z.ZodString;
1685
2256
  truncated: z.ZodBoolean;
2257
+ newText: z.ZodUnion<readonly [z.ZodObject<{
2258
+ outcome: z.ZodEnum<{
2259
+ cut: "cut";
2260
+ whole: "whole";
2261
+ unreadable: "unreadable";
2262
+ }>;
2263
+ confidence: z.ZodEnum<{
2264
+ proven: "proven";
2265
+ structural: "structural";
2266
+ none: "none";
2267
+ }>;
2268
+ reason: z.ZodString;
2269
+ extractorVersion: z.ZodNumber;
2270
+ fullTextBytes: z.ZodNumber;
2271
+ signatureReason: z.ZodEnum<{
2272
+ "": "";
2273
+ rfc3676_delimiter: "rfc3676_delimiter";
2274
+ html_signature: "html_signature";
2275
+ sender_learned: "sender_learned";
2276
+ }>;
2277
+ removed: z.ZodArray<z.ZodObject<{
2278
+ kind: z.ZodEnum<{
2279
+ quote: "quote";
2280
+ forward_header: "forward_header";
2281
+ signature: "signature";
2282
+ }>;
2283
+ messageId: z.ZodNullable<z.ZodUUID>;
2284
+ headerId: z.ZodNullable<z.ZodString>;
2285
+ bytes: z.ZodNumber;
2286
+ }, z.core.$strict>>;
2287
+ }, z.core.$strict>, z.ZodObject<{
2288
+ outcome: z.ZodLiteral<"">;
2289
+ confidence: z.ZodLiteral<"">;
2290
+ reason: z.ZodLiteral<"">;
2291
+ extractorVersion: z.ZodLiteral<0>;
2292
+ fullTextBytes: z.ZodLiteral<0>;
2293
+ signatureReason: z.ZodLiteral<"">;
2294
+ removed: z.ZodArray<z.ZodObject<{
2295
+ kind: z.ZodEnum<{
2296
+ quote: "quote";
2297
+ forward_header: "forward_header";
2298
+ signature: "signature";
2299
+ }>;
2300
+ messageId: z.ZodNullable<z.ZodUUID>;
2301
+ headerId: z.ZodNullable<z.ZodString>;
2302
+ bytes: z.ZodNumber;
2303
+ }, z.core.$strict>>;
2304
+ }, z.core.$strict>]>;
1686
2305
  }, z.core.$strict>;
1687
2306
  hasHTML: z.ZodBoolean;
1688
2307
  attachments: z.ZodArray<z.ZodObject<{
@@ -3696,4 +4315,4 @@ type HeadlessOperation = keyof typeof headlessOperations;
3696
4315
  type HeadlessInput<K extends HeadlessOperation> = z.infer<(typeof headlessOperations)[K]['input']>;
3697
4316
  type HeadlessResult<K extends HeadlessOperation> = z.infer<(typeof headlessOperations)[K]['output']>;
3698
4317
 
3699
- export { draftList as $, receipt as A, type Mailbox as B, type ComposeNode as C, type DraftAction as D, type Folder as E, type FolderInput as F, type Sender as G, type HeadlessInput as H, type Inbox as I, type Entry as J, type Message as K, type Receipt as L, type MailTransport as M, draftSchemas as N, type Location as O, type MessageLocation as P, type ConversationTarget as Q, type Rule as R, type Submission as S, type Change as T, MailError as U, accountStorage as V, type AccountStorage as W, accountStorageMaximumBytes as X, serviceAccountStorage as Y, draftContent as Z, savedDraft as _, type DraftInput as a, draftLocation as a0, draftInputs as a1, type SavedDraft as a2, conversationCursor as a3, participant as a4, conversationRow as a5, conversationPage as a6, conversationLocation as a7, chatText as a8, conversationMessage as a9, headlessOperations as aA, type HeadlessOperation as aB, safeComposeLink as aC, validComposeFormat as aD, composeFormat as aE, conversation as aa, type Participant as ab, type ConversationRow as ac, type ConversationPage as ad, type ConversationLocation as ae, type ConversationMessage as af, type Conversation as ag, MAXIMUM_RULE_SCRIPT_BYTES as ah, MAXIMUM_RULE_ITEMS as ai, MAXIMUM_RULE_CONDITIONS as aj, MAXIMUM_RULE_PROBLEMS as ak, ruleCondition as al, ruleActions as am, rule as an, ruleVacation as ao, ruleForward as ap, ruleItem as aq, ruleItemInput as ar, rulesNotice as as, mailboxRules as at, rulesProblem as au, rulesChecked as av, rulesSaved as aw, rulesInputs as ax, RULES_REQUEST_BYTES as ay, RULES_RESPONSE_BYTES as az, type DraftResult as b, type HeadlessResult as c, type RuleActions as d, type RuleCondition as e, type RuleForward as f, type RuleItem as g, type RuleItemInput as h, type RuleVacation as i, type MailboxRules as j, type RulesChecked as k, type RulesNotice as l, type RulesProblem as m, type RulesSaved as n, mailbox as o, mailboxPage as p, folder as q, renamedFolder as r, sender as s, inbox as t, entry as u, entries as v, attachment as w, message as x, changed as y, download as z };
4318
+ export { MailError as $, inbox as A, entry as B, type ComposeNode as C, type DraftAction as D, entries as E, type FolderInput as F, attachment as G, type HeadlessInput as H, message as I, changed as J, download as K, receipt as L, type Message as M, type NewTextMessage as N, type Mailbox as O, type Folder as P, type Sender as Q, type Rule as R, type Submission as S, type Inbox as T, type Entry as U, type Receipt as V, draftSchemas as W, type Location as X, type MessageLocation as Y, type ConversationTarget as Z, type Change as _, type DraftInput as a, accountStorage as a0, type AccountStorage as a1, accountStorageMaximumBytes as a2, serviceAccountStorage as a3, draftContent as a4, savedDraft as a5, draftList as a6, draftLocation as a7, draftInputs as a8, type SavedDraft as a9, MAXIMUM_RULE_CONDITIONS as aA, MAXIMUM_RULE_PROBLEMS as aB, ruleCondition as aC, ruleActions as aD, rule as aE, ruleVacation as aF, ruleForward as aG, ruleItem as aH, ruleItemInput as aI, rulesNotice as aJ, mailboxRules as aK, rulesProblem as aL, rulesChecked as aM, rulesSaved as aN, rulesInputs as aO, RULES_REQUEST_BYTES as aP, RULES_RESPONSE_BYTES as aQ, headlessOperations as aR, type HeadlessOperation as aS, safeComposeLink as aT, validComposeFormat as aU, composeFormat as aV, conversationCursor as aa, participant as ab, conversationRow as ac, conversationPage as ad, conversationLocation as ae, chatText as af, conversationMessage as ag, conversation as ah, type Participant as ai, type ConversationRow as aj, type ConversationPage as ak, type ConversationLocation as al, type ConversationMessage as am, type Conversation as an, readContent as ao, newTextOutcome as ap, newTextConfidence as aq, newTextSignatureReason as ar, newTextRemovedKind as as, newTextRemoved as at, newTextReason as au, newTextInfo as av, unreadNewText as aw, newTextMessage as ax, MAXIMUM_RULE_SCRIPT_BYTES as ay, MAXIMUM_RULE_ITEMS as az, type DraftResult as b, type MailTransport as c, type HeadlessResult as d, type RuleActions as e, type RuleCondition as f, type RuleForward as g, type RuleItem as h, type RuleItemInput as i, type RuleVacation as j, type MailboxRules as k, type RulesChecked as l, type RulesNotice as m, type RulesProblem as n, type RulesSaved as o, type NewTextInfo as p, type NewTextRemoved as q, type NewTextOutcome as r, type NewTextConfidence as s, type NewTextSignatureReason as t, type ReadContent as u, mailbox as v, mailboxPage as w, folder as x, renamedFolder as y, sender as z };