@repa/mail 0.1.0-alpha.21 → 0.1.0-alpha.23
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/README.md +4 -5
- package/dist/{chunk-RQOWWVHG.js → chunk-2PCN5OUE.js} +151 -32
- package/dist/contracts.d.ts +463 -7
- package/dist/contracts.js +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +1 -1
- package/dist/{operations-g1slmaT3.d.ts → operations-CkX-JbWP.d.ts} +90 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -5,13 +5,12 @@ Node 22 and Node 24. Root exports reject browsers/workers. `/contracts` is
|
|
|
5
5
|
browser-safe. This package uses the repa evaluation licence; no public
|
|
6
6
|
production SLA or stable production-use terms are promised.
|
|
7
7
|
|
|
8
|
-
Published on npm: **0.1.0-alpha.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
deployment is qualified separately.
|
|
8
|
+
Published on npm: **0.1.0-alpha.22** on the `alpha` channel. This source is the
|
|
9
|
+
**0.1.0-alpha.23** candidate, not yet published; new-text reads below arrived in 0.1.0-alpha.21.
|
|
10
|
+
Pin the exact version; a matching mail service deployment is qualified separately.
|
|
12
11
|
|
|
13
12
|
```sh
|
|
14
|
-
npm install @repa/mail@0.1.0-alpha.
|
|
13
|
+
npm install @repa/mail@0.1.0-alpha.22
|
|
15
14
|
```
|
|
16
15
|
|
|
17
16
|
This package was named `@repa/email-server` until 0.1.0-alpha.17 (EMAIL-D226).
|
|
@@ -36,10 +36,10 @@ function safeComposeLink(value) {
|
|
|
36
36
|
function validComposeFormat(input) {
|
|
37
37
|
if (!Array.isArray(input) || input.length > 1e4) return false;
|
|
38
38
|
const pending = input.map((node) => ({ node, depth: 0 }));
|
|
39
|
-
let
|
|
39
|
+
let count6 = 0, bytes2 = 0;
|
|
40
40
|
while (pending.length) {
|
|
41
41
|
const { node, depth } = pending.pop();
|
|
42
|
-
if (!node || typeof node !== "object" || Array.isArray(node) || depth > 16 || ++
|
|
42
|
+
if (!node || typeof node !== "object" || Array.isArray(node) || depth > 16 || ++count6 > 1e4) return false;
|
|
43
43
|
if (Object.keys(node).some((key) => !["kind", "text", "href", "children"].includes(key)) || !kinds.has(node.kind)) return false;
|
|
44
44
|
if (node.kind === "text") {
|
|
45
45
|
if (typeof node.text !== "string" || node.children !== void 0 || node.href !== void 0) return false;
|
|
@@ -50,7 +50,7 @@ function validComposeFormat(input) {
|
|
|
50
50
|
if (!Array.isArray(node.children) || node.text !== void 0) return false;
|
|
51
51
|
if (node.kind === "a" ? typeof node.href !== "string" || !safeComposeLink(node.href) : node.href !== void 0) return false;
|
|
52
52
|
bytes2 += node.href?.length ?? 0;
|
|
53
|
-
if (node.children.length + pending.length +
|
|
53
|
+
if (node.children.length + pending.length + count6 > 1e4) return false;
|
|
54
54
|
for (const child of node.children) pending.push({ node: child, depth: depth + 1 });
|
|
55
55
|
}
|
|
56
56
|
if (bytes2 > 1024 * 1024) return false;
|
|
@@ -155,9 +155,11 @@ var entries = z.object({
|
|
|
155
155
|
hasMore: z.boolean(),
|
|
156
156
|
count: z.number().int().nonnegative()
|
|
157
157
|
}).strict();
|
|
158
|
+
var messageListFilter = z.enum(["unseen", "flagged"]);
|
|
158
159
|
var header = z.string().max(16384);
|
|
159
160
|
var attachment = z.object({
|
|
160
161
|
contentId: z.string().max(998).optional(),
|
|
162
|
+
disposition: z.enum(["inline", "attachment"]).optional(),
|
|
161
163
|
part: z.string().max(256),
|
|
162
164
|
name: z.string().max(1024),
|
|
163
165
|
type: z.string().max(1024),
|
|
@@ -177,6 +179,8 @@ var message = z.object({
|
|
|
177
179
|
text: z.string().max(1024 * 1024),
|
|
178
180
|
html: z.string().max(1024 * 1024),
|
|
179
181
|
attachments: z.array(attachment).max(1e3),
|
|
182
|
+
// Supplied by the web reader after sanitizing the HTML. The mailbox service returns the original body.
|
|
183
|
+
inlineParts: z.array(attachment.shape.part).max(1e3).optional(),
|
|
180
184
|
warnings: z.array(z.enum(["incomplete_scan", "hosted_domain_unaligned", "link_text_mismatch", "lookalike_brand", "lookalike_tenant", "homograph_domain", "credential_form", "dangerous_attachment", "encrypted_archive"])).max(16),
|
|
181
185
|
incomplete: z.boolean()
|
|
182
186
|
}).strict();
|
|
@@ -261,6 +265,7 @@ var count = z.number().int().nonnegative();
|
|
|
261
265
|
var header2 = z.string().max(16384);
|
|
262
266
|
var messageId = z.string().min(3).max(998);
|
|
263
267
|
var conversationCursor = z.string().max(64);
|
|
268
|
+
var conversationFilter = z.enum(["unread", "starred"]);
|
|
264
269
|
var participant = z.object({ address: z.string().max(320), name: z.string().max(1024) }).strict();
|
|
265
270
|
var conversationRow = z.object({
|
|
266
271
|
id: uuid3,
|
|
@@ -277,6 +282,7 @@ var conversationPage = z.object({
|
|
|
277
282
|
hasMore: z.boolean(),
|
|
278
283
|
unindexed: count
|
|
279
284
|
}).strict();
|
|
285
|
+
var inboxConversationPage = conversationPage.extend({ matching: count });
|
|
280
286
|
var conversationLocation = z.object({
|
|
281
287
|
folderId: uuid3,
|
|
282
288
|
uidValidity: uint2,
|
|
@@ -556,7 +562,52 @@ var headlessOperations = {
|
|
|
556
562
|
{ requestBytes: RULES_REQUEST_BYTES, responseBytes: RULES_RESPONSE_BYTES, revision: true }
|
|
557
563
|
)
|
|
558
564
|
};
|
|
559
|
-
var
|
|
565
|
+
var MiB2 = 1024 * 1024;
|
|
566
|
+
var NIL_UUID = "00000000-0000-0000-0000-000000000000";
|
|
567
|
+
var uuid6 = z.uuid().refine((value) => value !== NIL_UUID);
|
|
568
|
+
var MAXIMUM_RECEIVED_SUBSCRIPTIONS = 100;
|
|
569
|
+
var accountIds = z.array(uuid6).min(1).max(MAXIMUM_RECEIVED_SUBSCRIPTIONS).refine((ids) => new Set(ids.map((id) => id.toLowerCase())).size === ids.length, { message: "accountIds must be distinct" });
|
|
570
|
+
var receivedSubscriptions = z.object({ accountIds: z.array(z.uuid()).max(MAXIMUM_RECEIVED_SUBSCRIPTIONS) }).strict();
|
|
571
|
+
var receivedHeaders = message.shape.headers.extend({
|
|
572
|
+
date: z.string().max(512).optional(),
|
|
573
|
+
listId: z.string().max(2048).optional(),
|
|
574
|
+
autoSubmitted: z.string().max(512).optional(),
|
|
575
|
+
/** `X-Repa-Flow-Run`: the flow run that sent the message (FLOWS-D005 loop guard). */
|
|
576
|
+
repaFlowRun: z.string().max(512).optional()
|
|
577
|
+
}).strict();
|
|
578
|
+
var receivedMessage = message.extend({ headers: receivedHeaders, location: conversationLocation }).strict();
|
|
579
|
+
var receivedNewTextMessage = newTextMessage.extend({ headers: receivedHeaders, location: conversationLocation }).strict();
|
|
580
|
+
var actorId = z.string().min(1).max(256).regex(/^[^\u0000-\u001f\u007f]+$/);
|
|
581
|
+
var personMailboxAccess = z.object({ readable: z.array(uuid6).max(MAXIMUM_RECEIVED_SUBSCRIPTIONS) }).strict();
|
|
582
|
+
function platformOperation(internal, input, output, responseBytes = MiB2) {
|
|
583
|
+
return { internal, input, output, responseBytes };
|
|
584
|
+
}
|
|
585
|
+
var platformOperations = {
|
|
586
|
+
/**
|
|
587
|
+
* Adds mailboxes; each needs a current read grant, all or nothing. A mailbox without one, removed or unknown answers
|
|
588
|
+
* the same DENIED as a refused or unconfirmed admission (mail never says whether a mailbox exists). More than 100
|
|
589
|
+
* in all is LIMIT.
|
|
590
|
+
*/
|
|
591
|
+
receivedSubscribe: platformOperation("received-subscribe", z.object({ accountIds }).strict(), receivedSubscriptions),
|
|
592
|
+
/** Lists the subscribed mailboxes; it needs admission only, so DENIED here is an admission answer. */
|
|
593
|
+
receivedSubscriptions: platformOperation("received-subscriptions", z.object({}).strict(), receivedSubscriptions),
|
|
594
|
+
/** Removes mailboxes; needs no grant, and removing an absent subscription changes nothing. */
|
|
595
|
+
receivedUnsubscribe: platformOperation("received-unsubscribe", z.object({ accountIds }).strict(), receivedSubscriptions),
|
|
596
|
+
/** Reads a message by `{accountId, messageId}` under the read grant; it never downloads a part. Default `full`. */
|
|
597
|
+
receivedRead: platformOperation(
|
|
598
|
+
"read",
|
|
599
|
+
z.object({ accountId: uuid6, messageId: uuid6, content: readContent.optional() }).strict(),
|
|
600
|
+
z.union([receivedMessage, receivedNewTextMessage]),
|
|
601
|
+
14 * MiB2
|
|
602
|
+
),
|
|
603
|
+
/**
|
|
604
|
+
* Which of 1–100 mailboxes a named person may read now (EMAIL-D250): their current Read right, answered only within
|
|
605
|
+
* mailboxes the integration itself may read, so any other mailbox, removed or unknown, reads as not readable. It
|
|
606
|
+
* answers a question about the person and never acts as them (EMAIL-D080 stands); DENIED is an admission answer.
|
|
607
|
+
*/
|
|
608
|
+
personMailboxAccess: platformOperation("person-mailbox-access", z.object({ actorId, accountIds }).strict(), personMailboxAccess)
|
|
609
|
+
};
|
|
610
|
+
var uuid7 = z.string().uuid();
|
|
560
611
|
var uint4 = z.number().int().min(1).max(4294967295);
|
|
561
612
|
var count2 = z.number().int().nonnegative();
|
|
562
613
|
var time = z.string();
|
|
@@ -652,7 +703,11 @@ var recipientDelivery = z.object({
|
|
|
652
703
|
diagnostic: text2(1e3),
|
|
653
704
|
updatedAt: time,
|
|
654
705
|
deliveredAt: time.nullable(),
|
|
655
|
-
nextAttemptAt: time.nullable()
|
|
706
|
+
nextAttemptAt: time.nullable(),
|
|
707
|
+
/** The receiving mail server the message was handed to, IPv4 or IPv6 (EMAIL-D262). */
|
|
708
|
+
remoteMtaIp: text2(45),
|
|
709
|
+
/** Lowercase host name of the sending service's server that reported it (EMAIL-D262). */
|
|
710
|
+
reportingMta: text2(253)
|
|
656
711
|
}).strict();
|
|
657
712
|
var deliveryEvent = z.object({
|
|
658
713
|
at: time,
|
|
@@ -667,26 +722,28 @@ var sentDeliveryStatus = z.object({
|
|
|
667
722
|
heldReasons: z.array(heldReason).max(16),
|
|
668
723
|
recipients: z.array(recipientDelivery).min(1).max(100),
|
|
669
724
|
timeline: z.array(deliveryEvent).max(50),
|
|
670
|
-
timelineComplete: z.boolean()
|
|
725
|
+
timelineComplete: z.boolean(),
|
|
726
|
+
/** Lowercase envelope sender (Return-Path) domain the sending service used (EMAIL-D262). */
|
|
727
|
+
envelopeDomain: text2(253)
|
|
671
728
|
}).strict();
|
|
672
|
-
var sentDeliveryLocation = z.object({ accountId:
|
|
729
|
+
var sentDeliveryLocation = z.object({ accountId: uuid7, folderId: uuid7, uidValidity: uint4, uid: uint4 }).strict();
|
|
673
730
|
var sentDelivery = z.object({ status: sentDeliveryStatus.nullable() }).strict();
|
|
674
731
|
var sentDeliveriesLocation = z.object({
|
|
675
|
-
accountId:
|
|
676
|
-
folderId:
|
|
732
|
+
accountId: uuid7,
|
|
733
|
+
folderId: uuid7,
|
|
677
734
|
uidValidity: uint4,
|
|
678
735
|
uids: z.array(uint4).min(1).max(MAXIMUM_DELIVERY_BATCH)
|
|
679
736
|
}).strict();
|
|
680
737
|
var sentDeliveries = z.object({
|
|
681
738
|
messages: z.array(z.object({ uid: uint4, summary: deliverySummary.nullable() }).strict()).max(MAXIMUM_DELIVERY_BATCH)
|
|
682
739
|
}).strict();
|
|
683
|
-
var
|
|
740
|
+
var uuid8 = z.string().uuid();
|
|
684
741
|
var MAXIMUM_SIGNATURES = 100;
|
|
685
742
|
var MAXIMUM_SIGNATURE_BYTES = 2048;
|
|
686
743
|
var MAXIMUM_SIGNATURE_LINES = 12;
|
|
687
744
|
var signaturePlacement = z.enum(["above", "below"]);
|
|
688
745
|
var signature = z.object({
|
|
689
|
-
addressId:
|
|
746
|
+
addressId: uuid8,
|
|
690
747
|
address: z.string().max(320),
|
|
691
748
|
text: z.string().max(MAXIMUM_SIGNATURE_BYTES),
|
|
692
749
|
format: composeFormat.refine((value) => new TextEncoder().encode(JSON.stringify(value)).length <= 16384).optional(),
|
|
@@ -696,21 +753,21 @@ var signature = z.object({
|
|
|
696
753
|
}).strict();
|
|
697
754
|
var signaturePage = z.object({ signatures: z.array(signature).max(MAXIMUM_SIGNATURES), complete: z.boolean() }).strict();
|
|
698
755
|
var signatureSave = z.object({
|
|
699
|
-
operationId:
|
|
700
|
-
addressId:
|
|
756
|
+
operationId: uuid8,
|
|
757
|
+
addressId: uuid8,
|
|
701
758
|
text: z.string().max(MAXIMUM_SIGNATURE_BYTES),
|
|
702
759
|
format: composeFormat.refine((value) => new TextEncoder().encode(JSON.stringify(value)).length <= 16384).optional(),
|
|
703
760
|
placement: signaturePlacement,
|
|
704
761
|
expectedRevision: z.number().int().nonnegative()
|
|
705
762
|
}).strict();
|
|
706
763
|
var signatureSaved = z.object({ signature }).strict();
|
|
707
|
-
var
|
|
764
|
+
var uuid9 = z.string().uuid();
|
|
708
765
|
var uint5 = z.number().int().min(1).max(4294967295);
|
|
709
766
|
var address = z.string().min(1).max(320);
|
|
710
767
|
var MAXIMUM_HEADER_SAMPLE = 400;
|
|
711
768
|
var headerSampleInput = z.object({
|
|
712
|
-
accountId:
|
|
713
|
-
folderId:
|
|
769
|
+
accountId: uuid9,
|
|
770
|
+
folderId: uuid9.optional(),
|
|
714
771
|
uidValidity: uint5.optional(),
|
|
715
772
|
limit: z.number().int().min(1).max(MAXIMUM_HEADER_SAMPLE)
|
|
716
773
|
}).strict().refine((input) => input.folderId === void 0 === (input.uidValidity === void 0), {
|
|
@@ -731,7 +788,7 @@ var headerSampleMessage = z.object({
|
|
|
731
788
|
date: z.string().max(40).nullable()
|
|
732
789
|
}).strict();
|
|
733
790
|
var headerSample = z.object({ messages: z.array(headerSampleMessage).max(MAXIMUM_HEADER_SAMPLE), hasMore: z.boolean() }).strict();
|
|
734
|
-
var
|
|
791
|
+
var uuid10 = z.uuid();
|
|
735
792
|
var time2 = z.iso.datetime({ offset: true });
|
|
736
793
|
var count3 = z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER);
|
|
737
794
|
var folderName2 = z.string().min(1).max(1024);
|
|
@@ -782,9 +839,9 @@ var importSourceInput = z.object({
|
|
|
782
839
|
username: z.string().min(1).max(320),
|
|
783
840
|
password: z.string().min(1).max(1024)
|
|
784
841
|
}).strict();
|
|
785
|
-
var importBegin = z.object({ operationId:
|
|
786
|
-
var importRef = z.object({ accountId:
|
|
787
|
-
var importList = z.object({ accountId:
|
|
842
|
+
var importBegin = z.object({ operationId: uuid10, accountId: uuid10, source: importSourceInput }).strict();
|
|
843
|
+
var importRef = z.object({ accountId: uuid10, importId: uuid10 }).strict();
|
|
844
|
+
var importList = z.object({ accountId: uuid10 }).strict();
|
|
788
845
|
var importFolderChoice = z.object({
|
|
789
846
|
ordinal: z.number().int().min(0).max(MAXIMUM_IMPORT_FOLDERS - 1),
|
|
790
847
|
include: z.boolean(),
|
|
@@ -794,9 +851,9 @@ var importConfirm = importRef.extend({
|
|
|
794
851
|
folders: z.array(importFolderChoice).min(1).max(MAXIMUM_IMPORT_FOLDERS)
|
|
795
852
|
}).strict();
|
|
796
853
|
var importUploadBegin = z.object({
|
|
797
|
-
operationId:
|
|
798
|
-
accountId:
|
|
799
|
-
folderId:
|
|
854
|
+
operationId: uuid10,
|
|
855
|
+
accountId: uuid10,
|
|
856
|
+
folderId: uuid10,
|
|
800
857
|
fileName: z.string().min(1).max(255),
|
|
801
858
|
format: importFileFormat,
|
|
802
859
|
bytes: z.number().int().min(1).max(MAXIMUM_IMPORT_UPLOAD_BYTES)
|
|
@@ -826,14 +883,14 @@ var importFile = z.object({
|
|
|
826
883
|
receivedBytes: count3
|
|
827
884
|
}).strict();
|
|
828
885
|
var importSummary = z.object({
|
|
829
|
-
id:
|
|
830
|
-
accountId:
|
|
886
|
+
id: uuid10,
|
|
887
|
+
accountId: uuid10,
|
|
831
888
|
kind: importKind,
|
|
832
889
|
state: importState,
|
|
833
890
|
source: importSource.nullable(),
|
|
834
891
|
file: importFile.nullable(),
|
|
835
892
|
/** The destination folder of an upload. */
|
|
836
|
-
folderId:
|
|
893
|
+
folderId: uuid10.nullable(),
|
|
837
894
|
createdAt: time2,
|
|
838
895
|
startedAt: time2.nullable(),
|
|
839
896
|
finishedAt: time2.nullable(),
|
|
@@ -880,15 +937,15 @@ var importErrorCode = z.enum([
|
|
|
880
937
|
"UPLOAD_TOO_LARGE",
|
|
881
938
|
"UPLOAD_DAY_LIMIT"
|
|
882
939
|
]);
|
|
883
|
-
var
|
|
940
|
+
var uuid11 = z.uuid();
|
|
884
941
|
var time3 = z.iso.datetime({ offset: true });
|
|
885
942
|
var count4 = z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER);
|
|
886
943
|
var MAXIMUM_EXPORT_FOLDERS = 1024;
|
|
887
944
|
var EXPORT_MANIFEST_NAME = "manifest.json";
|
|
888
945
|
var exportStart = z.object({
|
|
889
|
-
accountId:
|
|
946
|
+
accountId: uuid11,
|
|
890
947
|
/** null exports every folder the person may read. */
|
|
891
|
-
folderIds: z.array(
|
|
948
|
+
folderIds: z.array(uuid11).min(1).max(MAXIMUM_EXPORT_FOLDERS).nullable()
|
|
892
949
|
}).strict();
|
|
893
950
|
var exportFlag = z.enum(["seen", "answered", "flagged", "draft", "deleted"]);
|
|
894
951
|
var exportManifestMessage = z.object({
|
|
@@ -908,7 +965,7 @@ var exportManifestFolder = z.object({
|
|
|
908
965
|
}).strict();
|
|
909
966
|
var exportManifest = z.object({
|
|
910
967
|
version: z.literal(1),
|
|
911
|
-
mailbox: z.object({ accountId:
|
|
968
|
+
mailbox: z.object({ accountId: uuid11, address: z.string().min(1).max(320).nullable() }).strict(),
|
|
912
969
|
exportedAt: time3,
|
|
913
970
|
folders: z.array(exportManifestFolder).max(MAXIMUM_EXPORT_FOLDERS)
|
|
914
971
|
}).strict();
|
|
@@ -923,7 +980,69 @@ var account3 = z.object({ accountId: z.uuid() }).strict();
|
|
|
923
980
|
var inboxWaitInput = account3.extend({ after: z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER), timeoutMs: z.number().int().min(1).max(25e3) }).strict();
|
|
924
981
|
var inboxPosition = z.object({ position: z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER) }).strict();
|
|
925
982
|
var inboxCountsInput = account3.extend({ folderIds: z.array(z.uuid()).min(1).max(200).refine((ids) => new Set(ids).size === ids.length) }).strict();
|
|
926
|
-
var
|
|
983
|
+
var count5 = z.number().int().nonnegative();
|
|
984
|
+
var uid = z.number().int().min(1).max(4294967295);
|
|
985
|
+
var inboxFolderCount = z.object({ folderId: z.uuid(), unseen: count5, flagged: count5, total: count5, uidNext: uid, uidValidity: uid }).strict();
|
|
927
986
|
var inboxCounts = inboxPosition.extend({ folders: z.array(inboxFolderCount).max(200) }).strict();
|
|
928
987
|
|
|
929
|
-
|
|
988
|
+
// src/contracts/reply-recipients.ts
|
|
989
|
+
function addressList(header3) {
|
|
990
|
+
const text3 = typeof header3 === "string" ? header3 : header3.join(", ");
|
|
991
|
+
const items2 = [];
|
|
992
|
+
let current = "", quoted = false, angle = false, comment = 0;
|
|
993
|
+
for (let index2 = 0; index2 < text3.length; index2++) {
|
|
994
|
+
const char = text3[index2];
|
|
995
|
+
if (char === "\\" && quoted) {
|
|
996
|
+
current += char + (text3[++index2] ?? "");
|
|
997
|
+
continue;
|
|
998
|
+
}
|
|
999
|
+
if (char === '"' && !angle && !comment) quoted = !quoted;
|
|
1000
|
+
else if (!quoted && char === "(") comment++;
|
|
1001
|
+
else if (!quoted && char === ")" && comment) comment--;
|
|
1002
|
+
else if (!quoted && !comment && char === "<") angle = true;
|
|
1003
|
+
else if (!quoted && !comment && char === ">") angle = false;
|
|
1004
|
+
if (!quoted && !angle && !comment && (char === "," || char === ";")) {
|
|
1005
|
+
items2.push(current);
|
|
1006
|
+
current = "";
|
|
1007
|
+
continue;
|
|
1008
|
+
}
|
|
1009
|
+
if (!quoted && !angle && !comment && char === ":") {
|
|
1010
|
+
current = "";
|
|
1011
|
+
continue;
|
|
1012
|
+
}
|
|
1013
|
+
current += char;
|
|
1014
|
+
}
|
|
1015
|
+
items2.push(current);
|
|
1016
|
+
return items2.map((item) => (/<([^<>]*)>/.exec(item)?.[1] ?? item.replace(/\([^)]*\)/g, "")).trim()).filter((address2) => /^[^@\s]+@[^@\s]+$/.test(address2));
|
|
1017
|
+
}
|
|
1018
|
+
function replyRecipients(original, own, answer) {
|
|
1019
|
+
const mine = new Set(own.map((address2) => address2.toLowerCase()));
|
|
1020
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1021
|
+
const removed = [];
|
|
1022
|
+
const keep = (addresses, reason) => addresses.flatMap((address2) => {
|
|
1023
|
+
const key = address2.toLowerCase();
|
|
1024
|
+
if (mine.has(key)) {
|
|
1025
|
+
removed.push({ address: address2, reason: "own", was: reason });
|
|
1026
|
+
return [];
|
|
1027
|
+
}
|
|
1028
|
+
if (seen.has(key)) {
|
|
1029
|
+
removed.push({ address: address2, reason: "duplicate", was: reason });
|
|
1030
|
+
return [];
|
|
1031
|
+
}
|
|
1032
|
+
seen.add(key);
|
|
1033
|
+
return [{ address: address2, reason }];
|
|
1034
|
+
});
|
|
1035
|
+
const fromHere = addressList(original.from).some((address2) => mine.has(address2.toLowerCase()));
|
|
1036
|
+
const replyTo = original.replyTo ? addressList(original.replyTo) : [];
|
|
1037
|
+
const answerTo = fromHere ? [] : replyTo.length ? keep(replyTo, "reply_to") : keep(addressList(original.from), "from");
|
|
1038
|
+
if (answer === "reply") return { to: fromHere ? keep(addressList(original.to), "to") : answerTo, cc: [], removed };
|
|
1039
|
+
let to = [...answerTo, ...keep(addressList(original.to), "to")];
|
|
1040
|
+
let cc = keep(addressList(original.cc), "cc");
|
|
1041
|
+
if (!to.length) [to, cc] = [cc, []];
|
|
1042
|
+
return { to, cc, removed };
|
|
1043
|
+
}
|
|
1044
|
+
function addressHeader(recipients) {
|
|
1045
|
+
return recipients.map((recipient) => recipient.address).join(", ");
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
export { EXPORT_MANIFEST_NAME, IMPORT_UPLOAD_PART_BYTES, 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_RECEIVED_SUBSCRIPTIONS, MAXIMUM_RULE_CONDITIONS, MAXIMUM_RULE_ITEMS, MAXIMUM_RULE_PROBLEMS, MAXIMUM_RULE_SCRIPT_BYTES, MAXIMUM_SEND_BASE64_BYTES, MAXIMUM_SEND_BODY_BYTES, MAXIMUM_SEND_BYTES, MAXIMUM_SIGNATURES, MAXIMUM_SIGNATURE_BYTES, MAXIMUM_SIGNATURE_LINES, MailError, RULES_REQUEST_BYTES, RULES_RESPONSE_BYTES, accountStorage, accountStorageMaximumBytes, addressHeader, addressList, attachment, changed, chatText, cleanupInput, cleanupResult, composeFormat, conversation, conversationCursor, conversationFilter, conversationLocation, conversationMessage, conversationPage, conversationRow, deliveryEvent, deliveryEventName, deliveryMeaning, deliveryReason, deliveryState, deliveryStates, deliverySummary, download, draftContent, draftInputs, draftList, draftLocation, draftSchemas, entries, entry, exportFlag, exportManifest, exportManifestFolder, exportManifestMessage, exportStart, finishedImportStates, folder, headerSample, headerSampleInput, headerSampleMessage, headlessOperations, 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, inbox, inboxConversationPage, inboxCounts, inboxCountsInput, inboxFolderCount, inboxPosition, inboxWaitInput, mailbox, mailboxPage, mailboxRules, message, messageListFilter, newTextConfidence, newTextInfo, newTextMessage, newTextOutcome, newTextReason, newTextRemoved, newTextRemovedKind, newTextSignatureReason, participant, personMailboxAccess, platformOperations, readContent, receipt, receivedHeaders, receivedMessage, receivedNewTextMessage, receivedSubscriptions, recipientDelivery, renamedFolder, replyRecipients, rule, ruleActions, ruleCondition, ruleForward, ruleItem, ruleItemInput, ruleVacation, rulesChecked, rulesInputs, rulesNotice, rulesProblem, rulesSaved, safeComposeLink, savedDraft, sender, sentDeliveries, sentDeliveriesLocation, sentDelivery, sentDeliveryLocation, sentDeliveryStatus, serviceAccountStorage, signature, signaturePage, signaturePlacement, signatureSave, signatureSaved, unreadNewText, validComposeFormat };
|
package/dist/contracts.d.ts
CHANGED
|
@@ -1,7 +1,407 @@
|
|
|
1
|
-
import { C as ComposeNode } from './operations-
|
|
2
|
-
export {
|
|
1
|
+
import { C as ComposeNode } from './operations-CkX-JbWP.js';
|
|
2
|
+
export { a3 as AccountStorage, a0 as Change, at as Conversation, ae as ConversationFilter, ar as ConversationLocation, as as ConversationMessage, ap as ConversationPage, ao as ConversationRow, $ as ConversationTarget, D as DraftAction, a as DraftInput, b as DraftResult, W as Entry, T as Folder, F as FolderInput, H as HeadlessInput, aY as HeadlessOperation, d as HeadlessResult, V as Inbox, aq as InboxConversationPage, Z as Location, aG as MAXIMUM_RULE_CONDITIONS, aF as MAXIMUM_RULE_ITEMS, aH as MAXIMUM_RULE_PROBLEMS, aE as MAXIMUM_RULE_SCRIPT_BYTES, a1 as MailError, c as MailTransport, Q as Mailbox, k as MailboxRules, M as Message, I as MessageListFilter, _ as MessageLocation, s as NewTextConfidence, p as NewTextInfo, N as NewTextMessage, r as NewTextOutcome, q as NewTextRemoved, t as NewTextSignatureReason, an as Participant, aV as RULES_REQUEST_BYTES, aW as RULES_RESPONSE_BYTES, u as ReadContent, X as Receipt, R as Rule, e as RuleActions, f as RuleCondition, g as RuleForward, h as RuleItem, i as RuleItemInput, j as RuleVacation, l as RulesChecked, m as RulesNotice, n as RulesProblem, o as RulesSaved, ab as SavedDraft, U as Sender, S as Submission, a2 as accountStorage, a4 as accountStorageMaximumBytes, J as attachment, L as changed, ak as chatText, a$ as composeFormat, am as conversation, ac as conversationCursor, ad as conversationFilter, aj as conversationLocation, al as conversationMessage, ah as conversationPage, ag as conversationRow, O as download, a6 as draftContent, aa as draftInputs, a8 as draftList, a9 as draftLocation, Y as draftSchemas, E as entries, B as entry, x as folder, aX as headlessOperations, A as inbox, ai as inboxConversationPage, v as mailbox, w as mailboxPage, aQ as mailboxRules, K as message, G as messageListFilter, aw as newTextConfidence, aB as newTextInfo, aD as newTextMessage, av as newTextOutcome, aA as newTextReason, az as newTextRemoved, ay as newTextRemovedKind, ax as newTextSignatureReason, af as participant, au as readContent, P as receipt, y as renamedFolder, aK as rule, aJ as ruleActions, aI as ruleCondition, aM as ruleForward, aN as ruleItem, aO as ruleItemInput, aL as ruleVacation, aS as rulesChecked, aU as rulesInputs, aP as rulesNotice, aR as rulesProblem, aT as rulesSaved, aZ as safeComposeLink, a7 as savedDraft, z as sender, a5 as serviceAccountStorage, aC as unreadNewText, a_ as validComposeFormat } from './operations-CkX-JbWP.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
|
+
/** An integration's received-message subscriptions are bounded like its mailbox grants. */
|
|
6
|
+
declare const MAXIMUM_RECEIVED_SUBSCRIPTIONS = 100;
|
|
7
|
+
/** The mailboxes whose delivered messages publish `message.received` to the integration; every change answers the whole set. */
|
|
8
|
+
declare const receivedSubscriptions: z.ZodObject<{
|
|
9
|
+
accountIds: z.ZodArray<z.ZodUUID>;
|
|
10
|
+
}, z.core.$strict>;
|
|
11
|
+
/**
|
|
12
|
+
* The trigger headers a read by message identity adds to the display headers; each is omitted when the message has
|
|
13
|
+
* none. The service bounds them in runes (List-Id 1,024, the others 256), at most two UTF-16 units each.
|
|
14
|
+
*/
|
|
15
|
+
declare const receivedHeaders: z.ZodObject<{
|
|
16
|
+
subject: z.ZodString;
|
|
17
|
+
from: z.ZodString;
|
|
18
|
+
to: z.ZodString;
|
|
19
|
+
cc: z.ZodString;
|
|
20
|
+
replyTo: z.ZodString;
|
|
21
|
+
messageId: z.ZodString;
|
|
22
|
+
unsubscribe: z.ZodOptional<z.ZodString>;
|
|
23
|
+
date: z.ZodOptional<z.ZodString>;
|
|
24
|
+
listId: z.ZodOptional<z.ZodString>;
|
|
25
|
+
autoSubmitted: z.ZodOptional<z.ZodString>;
|
|
26
|
+
repaFlowRun: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$strict>;
|
|
28
|
+
/** `content: "full"`: the whole message with the trigger headers and the location of the answered entry. */
|
|
29
|
+
declare const receivedMessage: z.ZodObject<{
|
|
30
|
+
entry: z.ZodObject<{
|
|
31
|
+
uid: z.ZodNumber;
|
|
32
|
+
id: z.ZodString;
|
|
33
|
+
flags: z.ZodNumber;
|
|
34
|
+
date: z.ZodString;
|
|
35
|
+
octets: z.ZodNumber;
|
|
36
|
+
preview: z.ZodString;
|
|
37
|
+
hasAttachment: z.ZodBoolean;
|
|
38
|
+
subject: z.ZodString;
|
|
39
|
+
from: z.ZodString;
|
|
40
|
+
to: z.ZodString;
|
|
41
|
+
}, z.core.$strict>;
|
|
42
|
+
text: z.ZodString;
|
|
43
|
+
html: z.ZodString;
|
|
44
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
45
|
+
contentId: z.ZodOptional<z.ZodString>;
|
|
46
|
+
disposition: z.ZodOptional<z.ZodEnum<{
|
|
47
|
+
inline: "inline";
|
|
48
|
+
attachment: "attachment";
|
|
49
|
+
}>>;
|
|
50
|
+
part: z.ZodString;
|
|
51
|
+
name: z.ZodString;
|
|
52
|
+
type: z.ZodString;
|
|
53
|
+
octets: z.ZodNumber;
|
|
54
|
+
}, z.core.$strict>>;
|
|
55
|
+
inlineParts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
56
|
+
warnings: z.ZodArray<z.ZodEnum<{
|
|
57
|
+
incomplete_scan: "incomplete_scan";
|
|
58
|
+
hosted_domain_unaligned: "hosted_domain_unaligned";
|
|
59
|
+
link_text_mismatch: "link_text_mismatch";
|
|
60
|
+
lookalike_brand: "lookalike_brand";
|
|
61
|
+
lookalike_tenant: "lookalike_tenant";
|
|
62
|
+
homograph_domain: "homograph_domain";
|
|
63
|
+
credential_form: "credential_form";
|
|
64
|
+
dangerous_attachment: "dangerous_attachment";
|
|
65
|
+
encrypted_archive: "encrypted_archive";
|
|
66
|
+
}>>;
|
|
67
|
+
incomplete: z.ZodBoolean;
|
|
68
|
+
headers: z.ZodObject<{
|
|
69
|
+
subject: z.ZodString;
|
|
70
|
+
from: z.ZodString;
|
|
71
|
+
to: z.ZodString;
|
|
72
|
+
cc: z.ZodString;
|
|
73
|
+
replyTo: z.ZodString;
|
|
74
|
+
messageId: z.ZodString;
|
|
75
|
+
unsubscribe: z.ZodOptional<z.ZodString>;
|
|
76
|
+
date: z.ZodOptional<z.ZodString>;
|
|
77
|
+
listId: z.ZodOptional<z.ZodString>;
|
|
78
|
+
autoSubmitted: z.ZodOptional<z.ZodString>;
|
|
79
|
+
repaFlowRun: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, z.core.$strict>;
|
|
81
|
+
location: z.ZodObject<{
|
|
82
|
+
folderId: z.ZodString;
|
|
83
|
+
uidValidity: z.ZodNumber;
|
|
84
|
+
uid: z.ZodNumber;
|
|
85
|
+
flags: z.ZodNumber;
|
|
86
|
+
}, z.core.$strict>;
|
|
87
|
+
}, z.core.$strict>;
|
|
88
|
+
/** `content: "new"`: what the sender wrote (EMAIL-D240) with the trigger headers and the location. */
|
|
89
|
+
declare const receivedNewTextMessage: z.ZodObject<{
|
|
90
|
+
entry: z.ZodObject<{
|
|
91
|
+
uid: z.ZodNumber;
|
|
92
|
+
id: z.ZodString;
|
|
93
|
+
flags: z.ZodNumber;
|
|
94
|
+
date: z.ZodString;
|
|
95
|
+
octets: z.ZodNumber;
|
|
96
|
+
preview: z.ZodString;
|
|
97
|
+
hasAttachment: z.ZodBoolean;
|
|
98
|
+
subject: z.ZodString;
|
|
99
|
+
from: z.ZodString;
|
|
100
|
+
to: z.ZodString;
|
|
101
|
+
}, z.core.$strict>;
|
|
102
|
+
text: z.ZodString;
|
|
103
|
+
signature: z.ZodString;
|
|
104
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
105
|
+
contentId: z.ZodOptional<z.ZodString>;
|
|
106
|
+
disposition: z.ZodOptional<z.ZodEnum<{
|
|
107
|
+
inline: "inline";
|
|
108
|
+
attachment: "attachment";
|
|
109
|
+
}>>;
|
|
110
|
+
part: z.ZodString;
|
|
111
|
+
name: z.ZodString;
|
|
112
|
+
type: z.ZodString;
|
|
113
|
+
octets: z.ZodNumber;
|
|
114
|
+
}, z.core.$strict>>;
|
|
115
|
+
warnings: z.ZodArray<z.ZodEnum<{
|
|
116
|
+
incomplete_scan: "incomplete_scan";
|
|
117
|
+
hosted_domain_unaligned: "hosted_domain_unaligned";
|
|
118
|
+
link_text_mismatch: "link_text_mismatch";
|
|
119
|
+
lookalike_brand: "lookalike_brand";
|
|
120
|
+
lookalike_tenant: "lookalike_tenant";
|
|
121
|
+
homograph_domain: "homograph_domain";
|
|
122
|
+
credential_form: "credential_form";
|
|
123
|
+
dangerous_attachment: "dangerous_attachment";
|
|
124
|
+
encrypted_archive: "encrypted_archive";
|
|
125
|
+
}>>;
|
|
126
|
+
incomplete: z.ZodBoolean;
|
|
127
|
+
newText: z.ZodObject<{
|
|
128
|
+
outcome: z.ZodEnum<{
|
|
129
|
+
cut: "cut";
|
|
130
|
+
whole: "whole";
|
|
131
|
+
unreadable: "unreadable";
|
|
132
|
+
}>;
|
|
133
|
+
confidence: z.ZodEnum<{
|
|
134
|
+
proven: "proven";
|
|
135
|
+
structural: "structural";
|
|
136
|
+
none: "none";
|
|
137
|
+
}>;
|
|
138
|
+
reason: z.ZodString;
|
|
139
|
+
extractorVersion: z.ZodNumber;
|
|
140
|
+
fullTextBytes: z.ZodNumber;
|
|
141
|
+
signatureReason: z.ZodEnum<{
|
|
142
|
+
"": "";
|
|
143
|
+
rfc3676_delimiter: "rfc3676_delimiter";
|
|
144
|
+
html_signature: "html_signature";
|
|
145
|
+
sender_learned: "sender_learned";
|
|
146
|
+
}>;
|
|
147
|
+
removed: z.ZodArray<z.ZodObject<{
|
|
148
|
+
kind: z.ZodEnum<{
|
|
149
|
+
quote: "quote";
|
|
150
|
+
forward_header: "forward_header";
|
|
151
|
+
signature: "signature";
|
|
152
|
+
}>;
|
|
153
|
+
messageId: z.ZodNullable<z.ZodUUID>;
|
|
154
|
+
headerId: z.ZodNullable<z.ZodString>;
|
|
155
|
+
bytes: z.ZodNumber;
|
|
156
|
+
}, z.core.$strict>>;
|
|
157
|
+
}, z.core.$strict>;
|
|
158
|
+
headers: z.ZodObject<{
|
|
159
|
+
subject: z.ZodString;
|
|
160
|
+
from: z.ZodString;
|
|
161
|
+
to: z.ZodString;
|
|
162
|
+
cc: z.ZodString;
|
|
163
|
+
replyTo: z.ZodString;
|
|
164
|
+
messageId: z.ZodString;
|
|
165
|
+
unsubscribe: z.ZodOptional<z.ZodString>;
|
|
166
|
+
date: z.ZodOptional<z.ZodString>;
|
|
167
|
+
listId: z.ZodOptional<z.ZodString>;
|
|
168
|
+
autoSubmitted: z.ZodOptional<z.ZodString>;
|
|
169
|
+
repaFlowRun: z.ZodOptional<z.ZodString>;
|
|
170
|
+
}, z.core.$strict>;
|
|
171
|
+
location: z.ZodObject<{
|
|
172
|
+
folderId: z.ZodString;
|
|
173
|
+
uidValidity: z.ZodNumber;
|
|
174
|
+
uid: z.ZodNumber;
|
|
175
|
+
flags: z.ZodNumber;
|
|
176
|
+
}, z.core.$strict>;
|
|
177
|
+
}, z.core.$strict>;
|
|
178
|
+
/** The asked mailboxes the person may read now; a subset of the input, in its order. */
|
|
179
|
+
declare const personMailboxAccess: z.ZodObject<{
|
|
180
|
+
readable: z.ZodArray<z.ZodUUID>;
|
|
181
|
+
}, z.core.$strict>;
|
|
182
|
+
/** Exact private operation names and bounds; the integration transport allows exactly these besides the headless set. */
|
|
183
|
+
declare const platformOperations: {
|
|
184
|
+
/**
|
|
185
|
+
* Adds mailboxes; each needs a current read grant, all or nothing. A mailbox without one, removed or unknown answers
|
|
186
|
+
* the same DENIED as a refused or unconfirmed admission (mail never says whether a mailbox exists). More than 100
|
|
187
|
+
* in all is LIMIT.
|
|
188
|
+
*/
|
|
189
|
+
readonly receivedSubscribe: {
|
|
190
|
+
readonly internal: string;
|
|
191
|
+
readonly input: z.ZodObject<{
|
|
192
|
+
accountIds: z.ZodArray<z.ZodUUID>;
|
|
193
|
+
}, z.core.$strict>;
|
|
194
|
+
readonly output: z.ZodObject<{
|
|
195
|
+
accountIds: z.ZodArray<z.ZodUUID>;
|
|
196
|
+
}, z.core.$strict>;
|
|
197
|
+
readonly responseBytes: number;
|
|
198
|
+
};
|
|
199
|
+
/** Lists the subscribed mailboxes; it needs admission only, so DENIED here is an admission answer. */
|
|
200
|
+
readonly receivedSubscriptions: {
|
|
201
|
+
readonly internal: string;
|
|
202
|
+
readonly input: z.ZodObject<{}, z.core.$strict>;
|
|
203
|
+
readonly output: z.ZodObject<{
|
|
204
|
+
accountIds: z.ZodArray<z.ZodUUID>;
|
|
205
|
+
}, z.core.$strict>;
|
|
206
|
+
readonly responseBytes: number;
|
|
207
|
+
};
|
|
208
|
+
/** Removes mailboxes; needs no grant, and removing an absent subscription changes nothing. */
|
|
209
|
+
readonly receivedUnsubscribe: {
|
|
210
|
+
readonly internal: string;
|
|
211
|
+
readonly input: z.ZodObject<{
|
|
212
|
+
accountIds: z.ZodArray<z.ZodUUID>;
|
|
213
|
+
}, z.core.$strict>;
|
|
214
|
+
readonly output: z.ZodObject<{
|
|
215
|
+
accountIds: z.ZodArray<z.ZodUUID>;
|
|
216
|
+
}, z.core.$strict>;
|
|
217
|
+
readonly responseBytes: number;
|
|
218
|
+
};
|
|
219
|
+
/** Reads a message by `{accountId, messageId}` under the read grant; it never downloads a part. Default `full`. */
|
|
220
|
+
readonly receivedRead: {
|
|
221
|
+
readonly internal: string;
|
|
222
|
+
readonly input: z.ZodObject<{
|
|
223
|
+
accountId: z.ZodUUID;
|
|
224
|
+
messageId: z.ZodUUID;
|
|
225
|
+
content: z.ZodOptional<z.ZodEnum<{
|
|
226
|
+
full: "full";
|
|
227
|
+
new: "new";
|
|
228
|
+
}>>;
|
|
229
|
+
}, z.core.$strict>;
|
|
230
|
+
readonly output: z.ZodUnion<readonly [z.ZodObject<{
|
|
231
|
+
entry: z.ZodObject<{
|
|
232
|
+
uid: z.ZodNumber;
|
|
233
|
+
id: z.ZodString;
|
|
234
|
+
flags: z.ZodNumber;
|
|
235
|
+
date: z.ZodString;
|
|
236
|
+
octets: z.ZodNumber;
|
|
237
|
+
preview: z.ZodString;
|
|
238
|
+
hasAttachment: z.ZodBoolean;
|
|
239
|
+
subject: z.ZodString;
|
|
240
|
+
from: z.ZodString;
|
|
241
|
+
to: z.ZodString;
|
|
242
|
+
}, z.core.$strict>;
|
|
243
|
+
text: z.ZodString;
|
|
244
|
+
html: z.ZodString;
|
|
245
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
246
|
+
contentId: z.ZodOptional<z.ZodString>;
|
|
247
|
+
disposition: z.ZodOptional<z.ZodEnum<{
|
|
248
|
+
inline: "inline";
|
|
249
|
+
attachment: "attachment";
|
|
250
|
+
}>>;
|
|
251
|
+
part: z.ZodString;
|
|
252
|
+
name: z.ZodString;
|
|
253
|
+
type: z.ZodString;
|
|
254
|
+
octets: z.ZodNumber;
|
|
255
|
+
}, z.core.$strict>>;
|
|
256
|
+
inlineParts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
257
|
+
warnings: z.ZodArray<z.ZodEnum<{
|
|
258
|
+
incomplete_scan: "incomplete_scan";
|
|
259
|
+
hosted_domain_unaligned: "hosted_domain_unaligned";
|
|
260
|
+
link_text_mismatch: "link_text_mismatch";
|
|
261
|
+
lookalike_brand: "lookalike_brand";
|
|
262
|
+
lookalike_tenant: "lookalike_tenant";
|
|
263
|
+
homograph_domain: "homograph_domain";
|
|
264
|
+
credential_form: "credential_form";
|
|
265
|
+
dangerous_attachment: "dangerous_attachment";
|
|
266
|
+
encrypted_archive: "encrypted_archive";
|
|
267
|
+
}>>;
|
|
268
|
+
incomplete: z.ZodBoolean;
|
|
269
|
+
headers: z.ZodObject<{
|
|
270
|
+
subject: z.ZodString;
|
|
271
|
+
from: z.ZodString;
|
|
272
|
+
to: z.ZodString;
|
|
273
|
+
cc: z.ZodString;
|
|
274
|
+
replyTo: z.ZodString;
|
|
275
|
+
messageId: z.ZodString;
|
|
276
|
+
unsubscribe: z.ZodOptional<z.ZodString>;
|
|
277
|
+
date: z.ZodOptional<z.ZodString>;
|
|
278
|
+
listId: z.ZodOptional<z.ZodString>;
|
|
279
|
+
autoSubmitted: z.ZodOptional<z.ZodString>;
|
|
280
|
+
repaFlowRun: z.ZodOptional<z.ZodString>;
|
|
281
|
+
}, z.core.$strict>;
|
|
282
|
+
location: z.ZodObject<{
|
|
283
|
+
folderId: z.ZodString;
|
|
284
|
+
uidValidity: z.ZodNumber;
|
|
285
|
+
uid: z.ZodNumber;
|
|
286
|
+
flags: z.ZodNumber;
|
|
287
|
+
}, z.core.$strict>;
|
|
288
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
289
|
+
entry: z.ZodObject<{
|
|
290
|
+
uid: z.ZodNumber;
|
|
291
|
+
id: z.ZodString;
|
|
292
|
+
flags: z.ZodNumber;
|
|
293
|
+
date: z.ZodString;
|
|
294
|
+
octets: z.ZodNumber;
|
|
295
|
+
preview: z.ZodString;
|
|
296
|
+
hasAttachment: z.ZodBoolean;
|
|
297
|
+
subject: z.ZodString;
|
|
298
|
+
from: z.ZodString;
|
|
299
|
+
to: z.ZodString;
|
|
300
|
+
}, z.core.$strict>;
|
|
301
|
+
text: z.ZodString;
|
|
302
|
+
signature: z.ZodString;
|
|
303
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
304
|
+
contentId: z.ZodOptional<z.ZodString>;
|
|
305
|
+
disposition: z.ZodOptional<z.ZodEnum<{
|
|
306
|
+
inline: "inline";
|
|
307
|
+
attachment: "attachment";
|
|
308
|
+
}>>;
|
|
309
|
+
part: z.ZodString;
|
|
310
|
+
name: z.ZodString;
|
|
311
|
+
type: z.ZodString;
|
|
312
|
+
octets: z.ZodNumber;
|
|
313
|
+
}, z.core.$strict>>;
|
|
314
|
+
warnings: z.ZodArray<z.ZodEnum<{
|
|
315
|
+
incomplete_scan: "incomplete_scan";
|
|
316
|
+
hosted_domain_unaligned: "hosted_domain_unaligned";
|
|
317
|
+
link_text_mismatch: "link_text_mismatch";
|
|
318
|
+
lookalike_brand: "lookalike_brand";
|
|
319
|
+
lookalike_tenant: "lookalike_tenant";
|
|
320
|
+
homograph_domain: "homograph_domain";
|
|
321
|
+
credential_form: "credential_form";
|
|
322
|
+
dangerous_attachment: "dangerous_attachment";
|
|
323
|
+
encrypted_archive: "encrypted_archive";
|
|
324
|
+
}>>;
|
|
325
|
+
incomplete: z.ZodBoolean;
|
|
326
|
+
newText: z.ZodObject<{
|
|
327
|
+
outcome: z.ZodEnum<{
|
|
328
|
+
cut: "cut";
|
|
329
|
+
whole: "whole";
|
|
330
|
+
unreadable: "unreadable";
|
|
331
|
+
}>;
|
|
332
|
+
confidence: z.ZodEnum<{
|
|
333
|
+
proven: "proven";
|
|
334
|
+
structural: "structural";
|
|
335
|
+
none: "none";
|
|
336
|
+
}>;
|
|
337
|
+
reason: z.ZodString;
|
|
338
|
+
extractorVersion: z.ZodNumber;
|
|
339
|
+
fullTextBytes: z.ZodNumber;
|
|
340
|
+
signatureReason: z.ZodEnum<{
|
|
341
|
+
"": "";
|
|
342
|
+
rfc3676_delimiter: "rfc3676_delimiter";
|
|
343
|
+
html_signature: "html_signature";
|
|
344
|
+
sender_learned: "sender_learned";
|
|
345
|
+
}>;
|
|
346
|
+
removed: z.ZodArray<z.ZodObject<{
|
|
347
|
+
kind: z.ZodEnum<{
|
|
348
|
+
quote: "quote";
|
|
349
|
+
forward_header: "forward_header";
|
|
350
|
+
signature: "signature";
|
|
351
|
+
}>;
|
|
352
|
+
messageId: z.ZodNullable<z.ZodUUID>;
|
|
353
|
+
headerId: z.ZodNullable<z.ZodString>;
|
|
354
|
+
bytes: z.ZodNumber;
|
|
355
|
+
}, z.core.$strict>>;
|
|
356
|
+
}, z.core.$strict>;
|
|
357
|
+
headers: z.ZodObject<{
|
|
358
|
+
subject: z.ZodString;
|
|
359
|
+
from: z.ZodString;
|
|
360
|
+
to: z.ZodString;
|
|
361
|
+
cc: z.ZodString;
|
|
362
|
+
replyTo: z.ZodString;
|
|
363
|
+
messageId: z.ZodString;
|
|
364
|
+
unsubscribe: z.ZodOptional<z.ZodString>;
|
|
365
|
+
date: z.ZodOptional<z.ZodString>;
|
|
366
|
+
listId: z.ZodOptional<z.ZodString>;
|
|
367
|
+
autoSubmitted: z.ZodOptional<z.ZodString>;
|
|
368
|
+
repaFlowRun: z.ZodOptional<z.ZodString>;
|
|
369
|
+
}, z.core.$strict>;
|
|
370
|
+
location: z.ZodObject<{
|
|
371
|
+
folderId: z.ZodString;
|
|
372
|
+
uidValidity: z.ZodNumber;
|
|
373
|
+
uid: z.ZodNumber;
|
|
374
|
+
flags: z.ZodNumber;
|
|
375
|
+
}, z.core.$strict>;
|
|
376
|
+
}, z.core.$strict>]>;
|
|
377
|
+
readonly responseBytes: number;
|
|
378
|
+
};
|
|
379
|
+
/**
|
|
380
|
+
* Which of 1–100 mailboxes a named person may read now (EMAIL-D250): their current Read right, answered only within
|
|
381
|
+
* mailboxes the integration itself may read, so any other mailbox, removed or unknown, reads as not readable. It
|
|
382
|
+
* answers a question about the person and never acts as them (EMAIL-D080 stands); DENIED is an admission answer.
|
|
383
|
+
*/
|
|
384
|
+
readonly personMailboxAccess: {
|
|
385
|
+
readonly internal: string;
|
|
386
|
+
readonly input: z.ZodObject<{
|
|
387
|
+
actorId: z.ZodString;
|
|
388
|
+
accountIds: z.ZodArray<z.ZodUUID>;
|
|
389
|
+
}, z.core.$strict>;
|
|
390
|
+
readonly output: z.ZodObject<{
|
|
391
|
+
readable: z.ZodArray<z.ZodUUID>;
|
|
392
|
+
}, z.core.$strict>;
|
|
393
|
+
readonly responseBytes: number;
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
type PlatformOperation = keyof typeof platformOperations;
|
|
397
|
+
type PlatformInput<K extends PlatformOperation> = z.infer<(typeof platformOperations)[K]["input"]>;
|
|
398
|
+
type PlatformResult<K extends PlatformOperation> = z.infer<(typeof platformOperations)[K]["output"]>;
|
|
399
|
+
type ReceivedSubscriptions = z.infer<typeof receivedSubscriptions>;
|
|
400
|
+
type PersonMailboxAccess = z.infer<typeof personMailboxAccess>;
|
|
401
|
+
type ReceivedHeaders = z.infer<typeof receivedHeaders>;
|
|
402
|
+
type ReceivedMessage = z.infer<typeof receivedMessage>;
|
|
403
|
+
type ReceivedNewTextMessage = z.infer<typeof receivedNewTextMessage>;
|
|
404
|
+
|
|
5
405
|
declare const MAXIMUM_DELIVERY_BATCH = 50;
|
|
6
406
|
declare const deliveryStates: readonly ["sending", "held", "sent", "unconfirmed", "delivered", "delayed", "bounced", "failed", "complained"];
|
|
7
407
|
declare const deliveryState: z.ZodEnum<{
|
|
@@ -140,6 +540,8 @@ declare const recipientDelivery: z.ZodObject<{
|
|
|
140
540
|
updatedAt: z.ZodString;
|
|
141
541
|
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
142
542
|
nextAttemptAt: z.ZodNullable<z.ZodString>;
|
|
543
|
+
remoteMtaIp: z.ZodNullable<z.ZodString>;
|
|
544
|
+
reportingMta: z.ZodNullable<z.ZodString>;
|
|
143
545
|
}, z.core.$strict>;
|
|
144
546
|
/** `recipient` indexes `recipients`; null is the whole message. */
|
|
145
547
|
declare const deliveryEvent: z.ZodObject<{
|
|
@@ -245,6 +647,8 @@ declare const sentDeliveryStatus: z.ZodObject<{
|
|
|
245
647
|
updatedAt: z.ZodString;
|
|
246
648
|
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
247
649
|
nextAttemptAt: z.ZodNullable<z.ZodString>;
|
|
650
|
+
remoteMtaIp: z.ZodNullable<z.ZodString>;
|
|
651
|
+
reportingMta: z.ZodNullable<z.ZodString>;
|
|
248
652
|
}, z.core.$strict>>;
|
|
249
653
|
timeline: z.ZodArray<z.ZodObject<{
|
|
250
654
|
at: z.ZodString;
|
|
@@ -265,6 +669,7 @@ declare const sentDeliveryStatus: z.ZodObject<{
|
|
|
265
669
|
diagnostic: z.ZodNullable<z.ZodString>;
|
|
266
670
|
}, z.core.$strict>>;
|
|
267
671
|
timelineComplete: z.ZodBoolean;
|
|
672
|
+
envelopeDomain: z.ZodNullable<z.ZodString>;
|
|
268
673
|
}, z.core.$strict>;
|
|
269
674
|
/** `messages/delivery` input. */
|
|
270
675
|
declare const sentDeliveryLocation: z.ZodObject<{
|
|
@@ -361,6 +766,8 @@ declare const sentDelivery: z.ZodObject<{
|
|
|
361
766
|
updatedAt: z.ZodString;
|
|
362
767
|
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
363
768
|
nextAttemptAt: z.ZodNullable<z.ZodString>;
|
|
769
|
+
remoteMtaIp: z.ZodNullable<z.ZodString>;
|
|
770
|
+
reportingMta: z.ZodNullable<z.ZodString>;
|
|
364
771
|
}, z.core.$strict>>;
|
|
365
772
|
timeline: z.ZodArray<z.ZodObject<{
|
|
366
773
|
at: z.ZodString;
|
|
@@ -381,6 +788,7 @@ declare const sentDelivery: z.ZodObject<{
|
|
|
381
788
|
diagnostic: z.ZodNullable<z.ZodString>;
|
|
382
789
|
}, z.core.$strict>>;
|
|
383
790
|
timelineComplete: z.ZodBoolean;
|
|
791
|
+
envelopeDomain: z.ZodNullable<z.ZodString>;
|
|
384
792
|
}, z.core.$strict>>;
|
|
385
793
|
}, z.core.$strict>;
|
|
386
794
|
/** `messages/deliveries` input: 1–50 distinct UIDs of one folder. */
|
|
@@ -1131,9 +1539,9 @@ declare const exportStart: z.ZodObject<{
|
|
|
1131
1539
|
folderIds: z.ZodNullable<z.ZodArray<z.ZodUUID>>;
|
|
1132
1540
|
}, z.core.$strict>;
|
|
1133
1541
|
declare const exportFlag: z.ZodEnum<{
|
|
1542
|
+
flagged: "flagged";
|
|
1134
1543
|
seen: "seen";
|
|
1135
1544
|
answered: "answered";
|
|
1136
|
-
flagged: "flagged";
|
|
1137
1545
|
draft: "draft";
|
|
1138
1546
|
deleted: "deleted";
|
|
1139
1547
|
}>;
|
|
@@ -1143,9 +1551,9 @@ declare const exportManifestMessage: z.ZodObject<{
|
|
|
1143
1551
|
sha256: z.ZodString;
|
|
1144
1552
|
internalDate: z.ZodISODateTime;
|
|
1145
1553
|
flags: z.ZodArray<z.ZodEnum<{
|
|
1554
|
+
flagged: "flagged";
|
|
1146
1555
|
seen: "seen";
|
|
1147
1556
|
answered: "answered";
|
|
1148
|
-
flagged: "flagged";
|
|
1149
1557
|
draft: "draft";
|
|
1150
1558
|
deleted: "deleted";
|
|
1151
1559
|
}>>;
|
|
@@ -1168,9 +1576,9 @@ declare const exportManifestFolder: z.ZodObject<{
|
|
|
1168
1576
|
sha256: z.ZodString;
|
|
1169
1577
|
internalDate: z.ZodISODateTime;
|
|
1170
1578
|
flags: z.ZodArray<z.ZodEnum<{
|
|
1579
|
+
flagged: "flagged";
|
|
1171
1580
|
seen: "seen";
|
|
1172
1581
|
answered: "answered";
|
|
1173
|
-
flagged: "flagged";
|
|
1174
1582
|
draft: "draft";
|
|
1175
1583
|
deleted: "deleted";
|
|
1176
1584
|
}>>;
|
|
@@ -1201,9 +1609,9 @@ declare const exportManifest: z.ZodObject<{
|
|
|
1201
1609
|
sha256: z.ZodString;
|
|
1202
1610
|
internalDate: z.ZodISODateTime;
|
|
1203
1611
|
flags: z.ZodArray<z.ZodEnum<{
|
|
1612
|
+
flagged: "flagged";
|
|
1204
1613
|
seen: "seen";
|
|
1205
1614
|
answered: "answered";
|
|
1206
|
-
flagged: "flagged";
|
|
1207
1615
|
draft: "draft";
|
|
1208
1616
|
deleted: "deleted";
|
|
1209
1617
|
}>>;
|
|
@@ -1258,6 +1666,7 @@ declare const inboxCountsInput: z.ZodObject<{
|
|
|
1258
1666
|
declare const inboxFolderCount: z.ZodObject<{
|
|
1259
1667
|
folderId: z.ZodUUID;
|
|
1260
1668
|
unseen: z.ZodNumber;
|
|
1669
|
+
flagged: z.ZodNumber;
|
|
1261
1670
|
total: z.ZodNumber;
|
|
1262
1671
|
uidNext: z.ZodNumber;
|
|
1263
1672
|
uidValidity: z.ZodNumber;
|
|
@@ -1267,6 +1676,7 @@ declare const inboxCounts: z.ZodObject<{
|
|
|
1267
1676
|
folders: z.ZodArray<z.ZodObject<{
|
|
1268
1677
|
folderId: z.ZodUUID;
|
|
1269
1678
|
unseen: z.ZodNumber;
|
|
1679
|
+
flagged: z.ZodNumber;
|
|
1270
1680
|
total: z.ZodNumber;
|
|
1271
1681
|
uidNext: z.ZodNumber;
|
|
1272
1682
|
uidValidity: z.ZodNumber;
|
|
@@ -1275,4 +1685,50 @@ declare const inboxCounts: z.ZodObject<{
|
|
|
1275
1685
|
type InboxFolderCount = z.infer<typeof inboxFolderCount>;
|
|
1276
1686
|
type InboxCounts = z.infer<typeof inboxCounts>;
|
|
1277
1687
|
|
|
1278
|
-
|
|
1688
|
+
/**
|
|
1689
|
+
* One reply-recipient rule (EMAIL-D251) for web mail, the mail client and integrations such as repa Flows. Pure: no
|
|
1690
|
+
* browser or server dependency, so a preview, a composer and a server compute the same addresses.
|
|
1691
|
+
*
|
|
1692
|
+
* - Reply answers the message's Reply-To when it has one, otherwise its sender. Nobody is copied.
|
|
1693
|
+
* - Reply all answers that address and everyone on the message's To, with its Cc in Cc.
|
|
1694
|
+
* - Both remove your own addresses and repeats. Answering your own message goes to its recipients again.
|
|
1695
|
+
*/
|
|
1696
|
+
/** Why an address is on a reply: the message's Reply-To, its sender, or its To or Cc. */
|
|
1697
|
+
type ReplyRecipientReason = "reply_to" | "from" | "to" | "cc";
|
|
1698
|
+
/** Why an address was left off: it is one of yours, or it is already on the reply. */
|
|
1699
|
+
type ReplyRemovedReason = "own" | "duplicate";
|
|
1700
|
+
interface ReplyRecipient {
|
|
1701
|
+
readonly address: string;
|
|
1702
|
+
readonly reason: ReplyRecipientReason;
|
|
1703
|
+
}
|
|
1704
|
+
interface ReplyRemoved {
|
|
1705
|
+
readonly address: string;
|
|
1706
|
+
readonly reason: ReplyRemovedReason;
|
|
1707
|
+
/** Where on the original message the address was. */
|
|
1708
|
+
readonly was: ReplyRecipientReason;
|
|
1709
|
+
}
|
|
1710
|
+
interface ReplyRecipients {
|
|
1711
|
+
readonly to: readonly ReplyRecipient[];
|
|
1712
|
+
readonly cc: readonly ReplyRecipient[];
|
|
1713
|
+
readonly removed: readonly ReplyRemoved[];
|
|
1714
|
+
}
|
|
1715
|
+
/** An address-list header, or its addresses one by one (as a received-message payload carries them). */
|
|
1716
|
+
type ReplyAddressField = string | readonly string[];
|
|
1717
|
+
interface ReplyOriginal {
|
|
1718
|
+
readonly from: string;
|
|
1719
|
+
readonly replyTo?: string;
|
|
1720
|
+
readonly to: ReplyAddressField;
|
|
1721
|
+
readonly cc: ReplyAddressField;
|
|
1722
|
+
}
|
|
1723
|
+
type ReplyAnswer = "reply" | "reply_all";
|
|
1724
|
+
/**
|
|
1725
|
+
* The addresses of an address-list header (`"Smith, Anna" <anna@x>, bo@y`): commas inside quotes, comments and
|
|
1726
|
+
* angle brackets do not separate, a group's name is dropped, anything without an `@` is not an address.
|
|
1727
|
+
*/
|
|
1728
|
+
declare function addressList(header: ReplyAddressField): string[];
|
|
1729
|
+
/** The recipients of a reply or a reply all to `original`, sent by someone whose own addresses are `own`. */
|
|
1730
|
+
declare function replyRecipients(original: ReplyOriginal, own: readonly string[], answer: ReplyAnswer): ReplyRecipients;
|
|
1731
|
+
/** The addresses of recipients as one address-list header value. */
|
|
1732
|
+
declare function addressHeader(recipients: readonly ReplyRecipient[]): string;
|
|
1733
|
+
|
|
1734
|
+
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_RECEIVED_SUBSCRIPTIONS, MAXIMUM_SEND_BASE64_BYTES, MAXIMUM_SEND_BODY_BYTES, MAXIMUM_SEND_BYTES, MAXIMUM_SIGNATURES, MAXIMUM_SIGNATURE_BYTES, MAXIMUM_SIGNATURE_LINES, type PersonMailboxAccess, type PlatformInput, type PlatformOperation, type PlatformResult, type ReceivedHeaders, type ReceivedMessage, type ReceivedNewTextMessage, type ReceivedSubscriptions, type RecipientDelivery, type ReplyAddressField, type ReplyAnswer, type ReplyOriginal, type ReplyRecipient, type ReplyRecipientReason, type ReplyRecipients, type ReplyRemoved, type ReplyRemovedReason, type SentDeliveries, type SentDeliveriesLocation, type SentDelivery, type SentDeliveryLocation, type SentDeliveryStatus, type Signature, type SignaturePage, type SignaturePlacement, type SignatureSave, type SignatureSaved, addressHeader, addressList, 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, personMailboxAccess, platformOperations, receivedHeaders, receivedMessage, receivedNewTextMessage, receivedSubscriptions, recipientDelivery, replyRecipients, sentDeliveries, sentDeliveriesLocation, sentDelivery, sentDeliveryLocation, sentDeliveryStatus, signature, signaturePage, signaturePlacement, signatureSave, signatureSaved };
|
package/dist/contracts.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { EXPORT_MANIFEST_NAME, IMPORT_UPLOAD_PART_BYTES, 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_RULE_CONDITIONS, MAXIMUM_RULE_ITEMS, MAXIMUM_RULE_PROBLEMS, MAXIMUM_RULE_SCRIPT_BYTES, MAXIMUM_SEND_BASE64_BYTES, MAXIMUM_SEND_BODY_BYTES, MAXIMUM_SEND_BYTES, MAXIMUM_SIGNATURES, MAXIMUM_SIGNATURE_BYTES, MAXIMUM_SIGNATURE_LINES, MailError, RULES_REQUEST_BYTES, RULES_RESPONSE_BYTES, accountStorage, accountStorageMaximumBytes, attachment, changed, chatText, cleanupInput, cleanupResult, composeFormat, conversation, conversationCursor, conversationLocation, conversationMessage, conversationPage, conversationRow, deliveryEvent, deliveryEventName, deliveryMeaning, deliveryReason, deliveryState, deliveryStates, deliverySummary, download, draftContent, draftInputs, draftList, draftLocation, draftSchemas, entries, entry, exportFlag, exportManifest, exportManifestFolder, exportManifestMessage, exportStart, finishedImportStates, folder, headerSample, headerSampleInput, headerSampleMessage, headlessOperations, 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, inbox, inboxCounts, inboxCountsInput, inboxFolderCount, inboxPosition, inboxWaitInput, mailbox, mailboxPage, mailboxRules, message, newTextConfidence, newTextInfo, newTextMessage, newTextOutcome, newTextReason, newTextRemoved, newTextRemovedKind, newTextSignatureReason, participant, readContent, receipt, recipientDelivery, renamedFolder, rule, ruleActions, ruleCondition, ruleForward, ruleItem, ruleItemInput, ruleVacation, rulesChecked, rulesInputs, rulesNotice, rulesProblem, rulesSaved, safeComposeLink, savedDraft, sender, sentDeliveries, sentDeliveriesLocation, sentDelivery, sentDeliveryLocation, sentDeliveryStatus, serviceAccountStorage, signature, signaturePage, signaturePlacement, signatureSave, signatureSaved, unreadNewText, validComposeFormat } from './chunk-
|
|
1
|
+
export { EXPORT_MANIFEST_NAME, IMPORT_UPLOAD_PART_BYTES, 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_RECEIVED_SUBSCRIPTIONS, MAXIMUM_RULE_CONDITIONS, MAXIMUM_RULE_ITEMS, MAXIMUM_RULE_PROBLEMS, MAXIMUM_RULE_SCRIPT_BYTES, MAXIMUM_SEND_BASE64_BYTES, MAXIMUM_SEND_BODY_BYTES, MAXIMUM_SEND_BYTES, MAXIMUM_SIGNATURES, MAXIMUM_SIGNATURE_BYTES, MAXIMUM_SIGNATURE_LINES, MailError, RULES_REQUEST_BYTES, RULES_RESPONSE_BYTES, accountStorage, accountStorageMaximumBytes, addressHeader, addressList, attachment, changed, chatText, cleanupInput, cleanupResult, composeFormat, conversation, conversationCursor, conversationFilter, conversationLocation, conversationMessage, conversationPage, conversationRow, deliveryEvent, deliveryEventName, deliveryMeaning, deliveryReason, deliveryState, deliveryStates, deliverySummary, download, draftContent, draftInputs, draftList, draftLocation, draftSchemas, entries, entry, exportFlag, exportManifest, exportManifestFolder, exportManifestMessage, exportStart, finishedImportStates, folder, headerSample, headerSampleInput, headerSampleMessage, headlessOperations, 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, inbox, inboxConversationPage, inboxCounts, inboxCountsInput, inboxFolderCount, inboxPosition, inboxWaitInput, mailbox, mailboxPage, mailboxRules, message, messageListFilter, newTextConfidence, newTextInfo, newTextMessage, newTextOutcome, newTextReason, newTextRemoved, newTextRemovedKind, newTextSignatureReason, participant, personMailboxAccess, platformOperations, readContent, receipt, receivedHeaders, receivedMessage, receivedNewTextMessage, receivedSubscriptions, recipientDelivery, renamedFolder, replyRecipients, rule, ruleActions, ruleCondition, ruleForward, ruleItem, ruleItemInput, ruleVacation, rulesChecked, rulesInputs, rulesNotice, rulesProblem, rulesSaved, safeComposeLink, savedDraft, sender, sentDeliveries, sentDeliveriesLocation, sentDelivery, sentDeliveryLocation, sentDeliveryStatus, serviceAccountStorage, signature, signaturePage, signaturePlacement, signatureSave, signatureSaved, unreadNewText, validComposeFormat } from './chunk-2PCN5OUE.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HeadlessInput, N as NewTextMessage, M as Message, S as Submission, D as DraftAction, a as DraftInput, b as DraftResult, c as MailTransport } from './operations-
|
|
2
|
-
export { d as HeadlessResult, k as MailboxRules, s as NewTextConfidence, p as NewTextInfo, r as NewTextOutcome, q as NewTextRemoved, t as NewTextSignatureReason, u as ReadContent, R as Rule, e as RuleActions, f as RuleCondition, g as RuleForward, h as RuleItem, i as RuleItemInput, j as RuleVacation, l as RulesChecked, m as RulesNotice, n as RulesProblem, o as RulesSaved } from './operations-
|
|
1
|
+
import { H as HeadlessInput, N as NewTextMessage, M as Message, S as Submission, D as DraftAction, a as DraftInput, b as DraftResult, c as MailTransport } from './operations-CkX-JbWP.js';
|
|
2
|
+
export { d as HeadlessResult, k as MailboxRules, s as NewTextConfidence, p as NewTextInfo, r as NewTextOutcome, q as NewTextRemoved, t as NewTextSignatureReason, u as ReadContent, R as Rule, e as RuleActions, f as RuleCondition, g as RuleForward, h as RuleItem, i as RuleItemInput, j as RuleVacation, l as RulesChecked, m as RulesNotice, n as RulesProblem, o as RulesSaved } from './operations-CkX-JbWP.js';
|
|
3
3
|
import { E as EmailRequestOptions, a as EmailClientOptions, b as EmailSender, c as EmailMessage, d as EmailSendOptions, e as EmailSubmission, f as EmailEventPage, g as EmailWebhookEvent } from './errors-VxeL4C8r.js';
|
|
4
4
|
export { j as EmailAttachment, m as EmailDomainSendScope, l as EmailDomainSender, h as EmailError, i as EmailErrorCode, q as EmailEvent, p as EmailEventType, k as EmailExactSender, o as EmailFeedbackType, n as EmailSubmissionState } from './errors-VxeL4C8r.js';
|
|
5
5
|
import 'zod';
|
|
@@ -150,6 +150,7 @@ declare function headlessMethods(call: HeadlessCaller): {
|
|
|
150
150
|
type: string;
|
|
151
151
|
octets: number;
|
|
152
152
|
contentId?: string | undefined;
|
|
153
|
+
disposition?: "inline" | "attachment" | undefined;
|
|
153
154
|
}[];
|
|
154
155
|
warnings: ("incomplete_scan" | "hosted_domain_unaligned" | "link_text_mismatch" | "lookalike_brand" | "lookalike_tenant" | "homograph_domain" | "credential_form" | "dangerous_attachment" | "encrypted_archive")[];
|
|
155
156
|
incomplete: boolean;
|
|
@@ -614,6 +615,7 @@ declare function createEmailClient(options: EmailClientOptions): Readonly<{
|
|
|
614
615
|
type: string;
|
|
615
616
|
octets: number;
|
|
616
617
|
contentId?: string | undefined;
|
|
618
|
+
disposition?: "inline" | "attachment" | undefined;
|
|
617
619
|
}[];
|
|
618
620
|
warnings: ("incomplete_scan" | "hosted_domain_unaligned" | "link_text_mismatch" | "lookalike_brand" | "lookalike_tenant" | "homograph_domain" | "credential_form" | "dangerous_attachment" | "encrypted_archive")[];
|
|
619
621
|
incomplete: boolean;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MAXIMUM_SEND_BODY_BYTES, MAXIMUM_SEND_BYTES, headlessOperations } from './chunk-
|
|
1
|
+
import { MAXIMUM_SEND_BODY_BYTES, MAXIMUM_SEND_BYTES, headlessOperations } from './chunk-2PCN5OUE.js';
|
|
2
2
|
import { EmailError, publicErrorCodes } from './chunk-XW4CRZRY.js';
|
|
3
3
|
export { EmailError } from './chunk-XW4CRZRY.js';
|
|
4
4
|
import { createHmac, timingSafeEqual } from 'crypto';
|
|
@@ -36,6 +36,11 @@ declare const serviceAccountStorage: z.ZodPipe<z.ZodObject<{
|
|
|
36
36
|
|
|
37
37
|
/** Opaque continuation; the empty string starts and ends a sequence. */
|
|
38
38
|
declare const conversationCursor: z.ZodString;
|
|
39
|
+
declare const conversationFilter: z.ZodEnum<{
|
|
40
|
+
unread: "unread";
|
|
41
|
+
starred: "starred";
|
|
42
|
+
}>;
|
|
43
|
+
type ConversationFilter = z.infer<typeof conversationFilter>;
|
|
39
44
|
declare const participant: z.ZodObject<{
|
|
40
45
|
address: z.ZodString;
|
|
41
46
|
name: z.ZodString;
|
|
@@ -65,8 +70,7 @@ declare const conversationRow: z.ZodObject<{
|
|
|
65
70
|
name: z.ZodString;
|
|
66
71
|
}, z.core.$strict>>;
|
|
67
72
|
}, z.core.$strict>;
|
|
68
|
-
/** `unindexed` counts messages
|
|
69
|
-
* not reached yet; they are in no row until it does. */
|
|
73
|
+
/** `unindexed` counts folder messages awaiting conversation backfill. */
|
|
70
74
|
declare const conversationPage: z.ZodObject<{
|
|
71
75
|
conversations: z.ZodArray<z.ZodObject<{
|
|
72
76
|
id: z.ZodString;
|
|
@@ -95,6 +99,36 @@ declare const conversationPage: z.ZodObject<{
|
|
|
95
99
|
hasMore: z.ZodBoolean;
|
|
96
100
|
unindexed: z.ZodNumber;
|
|
97
101
|
}, z.core.$strict>;
|
|
102
|
+
/** `matching` counts inbox conversations before pagination. */
|
|
103
|
+
declare const inboxConversationPage: z.ZodObject<{
|
|
104
|
+
conversations: z.ZodArray<z.ZodObject<{
|
|
105
|
+
id: z.ZodString;
|
|
106
|
+
latest: z.ZodObject<{
|
|
107
|
+
uid: z.ZodNumber;
|
|
108
|
+
id: z.ZodString;
|
|
109
|
+
flags: z.ZodNumber;
|
|
110
|
+
date: z.ZodString;
|
|
111
|
+
octets: z.ZodNumber;
|
|
112
|
+
preview: z.ZodString;
|
|
113
|
+
hasAttachment: z.ZodBoolean;
|
|
114
|
+
subject: z.ZodString;
|
|
115
|
+
from: z.ZodString;
|
|
116
|
+
to: z.ZodString;
|
|
117
|
+
}, z.core.$strict>;
|
|
118
|
+
messages: z.ZodNumber;
|
|
119
|
+
unread: z.ZodNumber;
|
|
120
|
+
starred: z.ZodBoolean;
|
|
121
|
+
hasAttachment: z.ZodBoolean;
|
|
122
|
+
participants: z.ZodArray<z.ZodObject<{
|
|
123
|
+
address: z.ZodString;
|
|
124
|
+
name: z.ZodString;
|
|
125
|
+
}, z.core.$strict>>;
|
|
126
|
+
}, z.core.$strict>>;
|
|
127
|
+
next: z.ZodString;
|
|
128
|
+
hasMore: z.ZodBoolean;
|
|
129
|
+
unindexed: z.ZodNumber;
|
|
130
|
+
matching: z.ZodNumber;
|
|
131
|
+
}, z.core.$strict>;
|
|
98
132
|
declare const conversationLocation: z.ZodObject<{
|
|
99
133
|
folderId: z.ZodString;
|
|
100
134
|
uidValidity: z.ZodNumber;
|
|
@@ -237,6 +271,10 @@ declare const conversationMessage: z.ZodObject<{
|
|
|
237
271
|
hasHTML: z.ZodBoolean;
|
|
238
272
|
attachments: z.ZodArray<z.ZodObject<{
|
|
239
273
|
contentId: z.ZodOptional<z.ZodString>;
|
|
274
|
+
disposition: z.ZodOptional<z.ZodEnum<{
|
|
275
|
+
inline: "inline";
|
|
276
|
+
attachment: "attachment";
|
|
277
|
+
}>>;
|
|
240
278
|
part: z.ZodString;
|
|
241
279
|
name: z.ZodString;
|
|
242
280
|
type: z.ZodString;
|
|
@@ -334,6 +372,10 @@ declare const conversation: z.ZodObject<{
|
|
|
334
372
|
hasHTML: z.ZodBoolean;
|
|
335
373
|
attachments: z.ZodArray<z.ZodObject<{
|
|
336
374
|
contentId: z.ZodOptional<z.ZodString>;
|
|
375
|
+
disposition: z.ZodOptional<z.ZodEnum<{
|
|
376
|
+
inline: "inline";
|
|
377
|
+
attachment: "attachment";
|
|
378
|
+
}>>;
|
|
337
379
|
part: z.ZodString;
|
|
338
380
|
name: z.ZodString;
|
|
339
381
|
type: z.ZodString;
|
|
@@ -358,6 +400,7 @@ declare const conversation: z.ZodObject<{
|
|
|
358
400
|
type Participant = z.infer<typeof participant>;
|
|
359
401
|
type ConversationRow = z.infer<typeof conversationRow>;
|
|
360
402
|
type ConversationPage = z.infer<typeof conversationPage>;
|
|
403
|
+
type InboxConversationPage = z.infer<typeof inboxConversationPage>;
|
|
361
404
|
type ConversationLocation = z.infer<typeof conversationLocation>;
|
|
362
405
|
type ConversationMessage = z.infer<typeof conversationMessage>;
|
|
363
406
|
type Conversation = z.infer<typeof conversation>;
|
|
@@ -647,8 +690,17 @@ declare const entries: z.ZodObject<{
|
|
|
647
690
|
hasMore: z.ZodBoolean;
|
|
648
691
|
count: z.ZodNumber;
|
|
649
692
|
}, z.core.$strict>;
|
|
693
|
+
declare const messageListFilter: z.ZodEnum<{
|
|
694
|
+
unseen: "unseen";
|
|
695
|
+
flagged: "flagged";
|
|
696
|
+
}>;
|
|
697
|
+
type MessageListFilter = z.infer<typeof messageListFilter>;
|
|
650
698
|
declare const attachment: z.ZodObject<{
|
|
651
699
|
contentId: z.ZodOptional<z.ZodString>;
|
|
700
|
+
disposition: z.ZodOptional<z.ZodEnum<{
|
|
701
|
+
inline: "inline";
|
|
702
|
+
attachment: "attachment";
|
|
703
|
+
}>>;
|
|
652
704
|
part: z.ZodString;
|
|
653
705
|
name: z.ZodString;
|
|
654
706
|
type: z.ZodString;
|
|
@@ -680,11 +732,16 @@ declare const message: z.ZodObject<{
|
|
|
680
732
|
html: z.ZodString;
|
|
681
733
|
attachments: z.ZodArray<z.ZodObject<{
|
|
682
734
|
contentId: z.ZodOptional<z.ZodString>;
|
|
735
|
+
disposition: z.ZodOptional<z.ZodEnum<{
|
|
736
|
+
inline: "inline";
|
|
737
|
+
attachment: "attachment";
|
|
738
|
+
}>>;
|
|
683
739
|
part: z.ZodString;
|
|
684
740
|
name: z.ZodString;
|
|
685
741
|
type: z.ZodString;
|
|
686
742
|
octets: z.ZodNumber;
|
|
687
743
|
}, z.core.$strict>>;
|
|
744
|
+
inlineParts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
688
745
|
warnings: z.ZodArray<z.ZodEnum<{
|
|
689
746
|
incomplete_scan: "incomplete_scan";
|
|
690
747
|
hosted_domain_unaligned: "hosted_domain_unaligned";
|
|
@@ -962,6 +1019,10 @@ declare const newTextMessage: z.ZodObject<{
|
|
|
962
1019
|
signature: z.ZodString;
|
|
963
1020
|
attachments: z.ZodArray<z.ZodObject<{
|
|
964
1021
|
contentId: z.ZodOptional<z.ZodString>;
|
|
1022
|
+
disposition: z.ZodOptional<z.ZodEnum<{
|
|
1023
|
+
inline: "inline";
|
|
1024
|
+
attachment: "attachment";
|
|
1025
|
+
}>>;
|
|
965
1026
|
part: z.ZodString;
|
|
966
1027
|
name: z.ZodString;
|
|
967
1028
|
type: z.ZodString;
|
|
@@ -1818,11 +1879,16 @@ declare const headlessOperations: {
|
|
|
1818
1879
|
html: z.ZodString;
|
|
1819
1880
|
attachments: z.ZodArray<z.ZodObject<{
|
|
1820
1881
|
contentId: z.ZodOptional<z.ZodString>;
|
|
1882
|
+
disposition: z.ZodOptional<z.ZodEnum<{
|
|
1883
|
+
inline: "inline";
|
|
1884
|
+
attachment: "attachment";
|
|
1885
|
+
}>>;
|
|
1821
1886
|
part: z.ZodString;
|
|
1822
1887
|
name: z.ZodString;
|
|
1823
1888
|
type: z.ZodString;
|
|
1824
1889
|
octets: z.ZodNumber;
|
|
1825
1890
|
}, z.core.$strict>>;
|
|
1891
|
+
inlineParts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1826
1892
|
warnings: z.ZodArray<z.ZodEnum<{
|
|
1827
1893
|
incomplete_scan: "incomplete_scan";
|
|
1828
1894
|
hosted_domain_unaligned: "hosted_domain_unaligned";
|
|
@@ -1861,6 +1927,10 @@ declare const headlessOperations: {
|
|
|
1861
1927
|
signature: z.ZodString;
|
|
1862
1928
|
attachments: z.ZodArray<z.ZodObject<{
|
|
1863
1929
|
contentId: z.ZodOptional<z.ZodString>;
|
|
1930
|
+
disposition: z.ZodOptional<z.ZodEnum<{
|
|
1931
|
+
inline: "inline";
|
|
1932
|
+
attachment: "attachment";
|
|
1933
|
+
}>>;
|
|
1864
1934
|
part: z.ZodString;
|
|
1865
1935
|
name: z.ZodString;
|
|
1866
1936
|
type: z.ZodString;
|
|
@@ -1937,11 +2007,16 @@ declare const headlessOperations: {
|
|
|
1937
2007
|
html: z.ZodString;
|
|
1938
2008
|
attachments: z.ZodArray<z.ZodObject<{
|
|
1939
2009
|
contentId: z.ZodOptional<z.ZodString>;
|
|
2010
|
+
disposition: z.ZodOptional<z.ZodEnum<{
|
|
2011
|
+
inline: "inline";
|
|
2012
|
+
attachment: "attachment";
|
|
2013
|
+
}>>;
|
|
1940
2014
|
part: z.ZodString;
|
|
1941
2015
|
name: z.ZodString;
|
|
1942
2016
|
type: z.ZodString;
|
|
1943
2017
|
octets: z.ZodNumber;
|
|
1944
2018
|
}, z.core.$strict>>;
|
|
2019
|
+
inlineParts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1945
2020
|
warnings: z.ZodArray<z.ZodEnum<{
|
|
1946
2021
|
incomplete_scan: "incomplete_scan";
|
|
1947
2022
|
hosted_domain_unaligned: "hosted_domain_unaligned";
|
|
@@ -1980,6 +2055,10 @@ declare const headlessOperations: {
|
|
|
1980
2055
|
signature: z.ZodString;
|
|
1981
2056
|
attachments: z.ZodArray<z.ZodObject<{
|
|
1982
2057
|
contentId: z.ZodOptional<z.ZodString>;
|
|
2058
|
+
disposition: z.ZodOptional<z.ZodEnum<{
|
|
2059
|
+
inline: "inline";
|
|
2060
|
+
attachment: "attachment";
|
|
2061
|
+
}>>;
|
|
1983
2062
|
part: z.ZodString;
|
|
1984
2063
|
name: z.ZodString;
|
|
1985
2064
|
type: z.ZodString;
|
|
@@ -2206,6 +2285,10 @@ declare const headlessOperations: {
|
|
|
2206
2285
|
hasHTML: z.ZodBoolean;
|
|
2207
2286
|
attachments: z.ZodArray<z.ZodObject<{
|
|
2208
2287
|
contentId: z.ZodOptional<z.ZodString>;
|
|
2288
|
+
disposition: z.ZodOptional<z.ZodEnum<{
|
|
2289
|
+
inline: "inline";
|
|
2290
|
+
attachment: "attachment";
|
|
2291
|
+
}>>;
|
|
2209
2292
|
part: z.ZodString;
|
|
2210
2293
|
name: z.ZodString;
|
|
2211
2294
|
type: z.ZodString;
|
|
@@ -2306,6 +2389,10 @@ declare const headlessOperations: {
|
|
|
2306
2389
|
hasHTML: z.ZodBoolean;
|
|
2307
2390
|
attachments: z.ZodArray<z.ZodObject<{
|
|
2308
2391
|
contentId: z.ZodOptional<z.ZodString>;
|
|
2392
|
+
disposition: z.ZodOptional<z.ZodEnum<{
|
|
2393
|
+
inline: "inline";
|
|
2394
|
+
attachment: "attachment";
|
|
2395
|
+
}>>;
|
|
2309
2396
|
part: z.ZodString;
|
|
2310
2397
|
name: z.ZodString;
|
|
2311
2398
|
type: z.ZodString;
|
|
@@ -4315,4 +4402,4 @@ type HeadlessOperation = keyof typeof headlessOperations;
|
|
|
4315
4402
|
type HeadlessInput<K extends HeadlessOperation> = z.infer<(typeof headlessOperations)[K]['input']>;
|
|
4316
4403
|
type HeadlessResult<K extends HeadlessOperation> = z.infer<(typeof headlessOperations)[K]['output']>;
|
|
4317
4404
|
|
|
4318
|
-
export {
|
|
4405
|
+
export { type ConversationTarget as $, inbox as A, entry as B, type ComposeNode as C, type DraftAction as D, entries as E, type FolderInput as F, messageListFilter as G, type HeadlessInput as H, type MessageListFilter as I, attachment as J, message as K, changed as L, type Message as M, type NewTextMessage as N, download as O, receipt as P, type Mailbox as Q, type Rule as R, type Submission as S, type Folder as T, type Sender as U, type Inbox as V, type Entry as W, type Receipt as X, draftSchemas as Y, type Location as Z, type MessageLocation as _, type DraftInput as a, composeFormat as a$, type Change as a0, MailError as a1, accountStorage as a2, type AccountStorage as a3, accountStorageMaximumBytes as a4, serviceAccountStorage as a5, draftContent as a6, savedDraft as a7, draftList as a8, draftLocation as a9, newTextReason as aA, newTextInfo as aB, unreadNewText as aC, newTextMessage as aD, MAXIMUM_RULE_SCRIPT_BYTES as aE, MAXIMUM_RULE_ITEMS as aF, MAXIMUM_RULE_CONDITIONS as aG, MAXIMUM_RULE_PROBLEMS as aH, ruleCondition as aI, ruleActions as aJ, rule as aK, ruleVacation as aL, ruleForward as aM, ruleItem as aN, ruleItemInput as aO, rulesNotice as aP, mailboxRules as aQ, rulesProblem as aR, rulesChecked as aS, rulesSaved as aT, rulesInputs as aU, RULES_REQUEST_BYTES as aV, RULES_RESPONSE_BYTES as aW, headlessOperations as aX, type HeadlessOperation as aY, safeComposeLink as aZ, validComposeFormat as a_, draftInputs as aa, type SavedDraft as ab, conversationCursor as ac, conversationFilter as ad, type ConversationFilter as ae, participant as af, conversationRow as ag, conversationPage as ah, inboxConversationPage as ai, conversationLocation as aj, chatText as ak, conversationMessage as al, conversation as am, type Participant as an, type ConversationRow as ao, type ConversationPage as ap, type InboxConversationPage as aq, type ConversationLocation as ar, type ConversationMessage as as, type Conversation as at, readContent as au, newTextOutcome as av, newTextConfidence as aw, newTextSignatureReason as ax, newTextRemovedKind as ay, newTextRemoved 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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repa/mail",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.23",
|
|
4
4
|
"description": "Server-side client library for the repa mail HTTP API: send, submission status, event history and signed webhook verification.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"repaRelease": {
|
|
16
16
|
"train": "public-sdk",
|
|
17
|
-
"coordinatedVersion": "0.1.0-alpha.
|
|
17
|
+
"coordinatedVersion": "0.1.0-alpha.23",
|
|
18
18
|
"channel": "alpha",
|
|
19
19
|
"licenseStatus": "evaluation-only"
|
|
20
20
|
},
|