@repa/mail 0.1.0-alpha.22 → 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 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.20** on the `alpha` channel (first publication
9
- under this name). This source is the **0.1.0-alpha.22** candidate, not yet published;
10
- new-text reads below arrive in 0.1.0-alpha.21. Pin the exact version; a matching mail service
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.20
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 count5 = 0, bytes2 = 0;
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 || ++count5 > 1e4) return false;
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 + count5 > 1e4) return false;
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,
@@ -697,7 +703,11 @@ var recipientDelivery = z.object({
697
703
  diagnostic: text2(1e3),
698
704
  updatedAt: time,
699
705
  deliveredAt: time.nullable(),
700
- 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)
701
711
  }).strict();
702
712
  var deliveryEvent = z.object({
703
713
  at: time,
@@ -712,7 +722,9 @@ var sentDeliveryStatus = z.object({
712
722
  heldReasons: z.array(heldReason).max(16),
713
723
  recipients: z.array(recipientDelivery).min(1).max(100),
714
724
  timeline: z.array(deliveryEvent).max(50),
715
- timelineComplete: z.boolean()
725
+ timelineComplete: z.boolean(),
726
+ /** Lowercase envelope sender (Return-Path) domain the sending service used (EMAIL-D262). */
727
+ envelopeDomain: text2(253)
716
728
  }).strict();
717
729
  var sentDeliveryLocation = z.object({ accountId: uuid7, folderId: uuid7, uidValidity: uint4, uid: uint4 }).strict();
718
730
  var sentDelivery = z.object({ status: sentDeliveryStatus.nullable() }).strict();
@@ -968,7 +980,9 @@ var account3 = z.object({ accountId: z.uuid() }).strict();
968
980
  var inboxWaitInput = account3.extend({ after: z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER), timeoutMs: z.number().int().min(1).max(25e3) }).strict();
969
981
  var inboxPosition = z.object({ position: z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER) }).strict();
970
982
  var inboxCountsInput = account3.extend({ folderIds: z.array(z.uuid()).min(1).max(200).refine((ids) => new Set(ids).size === ids.length) }).strict();
971
- var inboxFolderCount = z.object({ folderId: z.uuid(), unseen: z.number().int().nonnegative(), total: z.number().int().nonnegative(), uidNext: z.number().int().min(1).max(4294967295), uidValidity: z.number().int().min(1).max(4294967295) }).strict();
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();
972
986
  var inboxCounts = inboxPosition.extend({ folders: z.array(inboxFolderCount).max(200) }).strict();
973
987
 
974
988
  // src/contracts/reply-recipients.ts
@@ -1031,4 +1045,4 @@ function addressHeader(recipients) {
1031
1045
  return recipients.map((recipient) => recipient.address).join(", ");
1032
1046
  }
1033
1047
 
1034
- 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, 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, 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 };
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 };
@@ -1,5 +1,5 @@
1
- import { C as ComposeNode } from './operations-g1slmaT3.js';
2
- export { a1 as AccountStorage, _ as Change, an as Conversation, al as ConversationLocation, am as ConversationMessage, ak as ConversationPage, aj as ConversationRow, Z as ConversationTarget, D as DraftAction, a as DraftInput, b as DraftResult, U as Entry, P as Folder, F as FolderInput, H as HeadlessInput, aS as HeadlessOperation, d as HeadlessResult, T as Inbox, X as Location, aA as MAXIMUM_RULE_CONDITIONS, az as MAXIMUM_RULE_ITEMS, aB as MAXIMUM_RULE_PROBLEMS, ay as MAXIMUM_RULE_SCRIPT_BYTES, $ as MailError, c as MailTransport, O as Mailbox, k as MailboxRules, M as Message, Y as MessageLocation, s as NewTextConfidence, p as NewTextInfo, N as NewTextMessage, r as NewTextOutcome, q as NewTextRemoved, t as NewTextSignatureReason, ai as Participant, aP as RULES_REQUEST_BYTES, aQ as RULES_RESPONSE_BYTES, u as ReadContent, V 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, a9 as SavedDraft, Q as Sender, S as Submission, a0 as accountStorage, a2 as accountStorageMaximumBytes, G as attachment, J as changed, af as chatText, aV as composeFormat, ah as conversation, aa as conversationCursor, ae as conversationLocation, ag as conversationMessage, ad as conversationPage, ac as conversationRow, K as download, a4 as draftContent, a8 as draftInputs, a6 as draftList, a7 as draftLocation, W as draftSchemas, E as entries, B as entry, x as folder, aR as headlessOperations, A as inbox, v as mailbox, w as mailboxPage, aK as mailboxRules, I as message, aq as newTextConfidence, av as newTextInfo, ax as newTextMessage, ap as newTextOutcome, au as newTextReason, at as newTextRemoved, as as newTextRemovedKind, ar as newTextSignatureReason, ab as participant, ao as readContent, L as receipt, y as renamedFolder, aE as rule, aD as ruleActions, aC as ruleCondition, aG as ruleForward, aH as ruleItem, aI as ruleItemInput, aF as ruleVacation, aM as rulesChecked, aO as rulesInputs, aJ as rulesNotice, aL as rulesProblem, aN as rulesSaved, aT as safeComposeLink, a5 as savedDraft, z as sender, a3 as serviceAccountStorage, aw as unreadNewText, aU as validComposeFormat } from './operations-g1slmaT3.js';
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
5
  /** An integration's received-message subscriptions are bounded like its mailbox grants. */
@@ -43,11 +43,16 @@ declare const receivedMessage: z.ZodObject<{
43
43
  html: z.ZodString;
44
44
  attachments: z.ZodArray<z.ZodObject<{
45
45
  contentId: z.ZodOptional<z.ZodString>;
46
+ disposition: z.ZodOptional<z.ZodEnum<{
47
+ inline: "inline";
48
+ attachment: "attachment";
49
+ }>>;
46
50
  part: z.ZodString;
47
51
  name: z.ZodString;
48
52
  type: z.ZodString;
49
53
  octets: z.ZodNumber;
50
54
  }, z.core.$strict>>;
55
+ inlineParts: z.ZodOptional<z.ZodArray<z.ZodString>>;
51
56
  warnings: z.ZodArray<z.ZodEnum<{
52
57
  incomplete_scan: "incomplete_scan";
53
58
  hosted_domain_unaligned: "hosted_domain_unaligned";
@@ -98,6 +103,10 @@ declare const receivedNewTextMessage: z.ZodObject<{
98
103
  signature: z.ZodString;
99
104
  attachments: z.ZodArray<z.ZodObject<{
100
105
  contentId: z.ZodOptional<z.ZodString>;
106
+ disposition: z.ZodOptional<z.ZodEnum<{
107
+ inline: "inline";
108
+ attachment: "attachment";
109
+ }>>;
101
110
  part: z.ZodString;
102
111
  name: z.ZodString;
103
112
  type: z.ZodString;
@@ -235,11 +244,16 @@ declare const platformOperations: {
235
244
  html: z.ZodString;
236
245
  attachments: z.ZodArray<z.ZodObject<{
237
246
  contentId: z.ZodOptional<z.ZodString>;
247
+ disposition: z.ZodOptional<z.ZodEnum<{
248
+ inline: "inline";
249
+ attachment: "attachment";
250
+ }>>;
238
251
  part: z.ZodString;
239
252
  name: z.ZodString;
240
253
  type: z.ZodString;
241
254
  octets: z.ZodNumber;
242
255
  }, z.core.$strict>>;
256
+ inlineParts: z.ZodOptional<z.ZodArray<z.ZodString>>;
243
257
  warnings: z.ZodArray<z.ZodEnum<{
244
258
  incomplete_scan: "incomplete_scan";
245
259
  hosted_domain_unaligned: "hosted_domain_unaligned";
@@ -288,6 +302,10 @@ declare const platformOperations: {
288
302
  signature: z.ZodString;
289
303
  attachments: z.ZodArray<z.ZodObject<{
290
304
  contentId: z.ZodOptional<z.ZodString>;
305
+ disposition: z.ZodOptional<z.ZodEnum<{
306
+ inline: "inline";
307
+ attachment: "attachment";
308
+ }>>;
291
309
  part: z.ZodString;
292
310
  name: z.ZodString;
293
311
  type: z.ZodString;
@@ -522,6 +540,8 @@ declare const recipientDelivery: z.ZodObject<{
522
540
  updatedAt: z.ZodString;
523
541
  deliveredAt: z.ZodNullable<z.ZodString>;
524
542
  nextAttemptAt: z.ZodNullable<z.ZodString>;
543
+ remoteMtaIp: z.ZodNullable<z.ZodString>;
544
+ reportingMta: z.ZodNullable<z.ZodString>;
525
545
  }, z.core.$strict>;
526
546
  /** `recipient` indexes `recipients`; null is the whole message. */
527
547
  declare const deliveryEvent: z.ZodObject<{
@@ -627,6 +647,8 @@ declare const sentDeliveryStatus: z.ZodObject<{
627
647
  updatedAt: z.ZodString;
628
648
  deliveredAt: z.ZodNullable<z.ZodString>;
629
649
  nextAttemptAt: z.ZodNullable<z.ZodString>;
650
+ remoteMtaIp: z.ZodNullable<z.ZodString>;
651
+ reportingMta: z.ZodNullable<z.ZodString>;
630
652
  }, z.core.$strict>>;
631
653
  timeline: z.ZodArray<z.ZodObject<{
632
654
  at: z.ZodString;
@@ -647,6 +669,7 @@ declare const sentDeliveryStatus: z.ZodObject<{
647
669
  diagnostic: z.ZodNullable<z.ZodString>;
648
670
  }, z.core.$strict>>;
649
671
  timelineComplete: z.ZodBoolean;
672
+ envelopeDomain: z.ZodNullable<z.ZodString>;
650
673
  }, z.core.$strict>;
651
674
  /** `messages/delivery` input. */
652
675
  declare const sentDeliveryLocation: z.ZodObject<{
@@ -743,6 +766,8 @@ declare const sentDelivery: z.ZodObject<{
743
766
  updatedAt: z.ZodString;
744
767
  deliveredAt: z.ZodNullable<z.ZodString>;
745
768
  nextAttemptAt: z.ZodNullable<z.ZodString>;
769
+ remoteMtaIp: z.ZodNullable<z.ZodString>;
770
+ reportingMta: z.ZodNullable<z.ZodString>;
746
771
  }, z.core.$strict>>;
747
772
  timeline: z.ZodArray<z.ZodObject<{
748
773
  at: z.ZodString;
@@ -763,6 +788,7 @@ declare const sentDelivery: z.ZodObject<{
763
788
  diagnostic: z.ZodNullable<z.ZodString>;
764
789
  }, z.core.$strict>>;
765
790
  timelineComplete: z.ZodBoolean;
791
+ envelopeDomain: z.ZodNullable<z.ZodString>;
766
792
  }, z.core.$strict>>;
767
793
  }, z.core.$strict>;
768
794
  /** `messages/deliveries` input: 1–50 distinct UIDs of one folder. */
@@ -1513,9 +1539,9 @@ declare const exportStart: z.ZodObject<{
1513
1539
  folderIds: z.ZodNullable<z.ZodArray<z.ZodUUID>>;
1514
1540
  }, z.core.$strict>;
1515
1541
  declare const exportFlag: z.ZodEnum<{
1542
+ flagged: "flagged";
1516
1543
  seen: "seen";
1517
1544
  answered: "answered";
1518
- flagged: "flagged";
1519
1545
  draft: "draft";
1520
1546
  deleted: "deleted";
1521
1547
  }>;
@@ -1525,9 +1551,9 @@ declare const exportManifestMessage: z.ZodObject<{
1525
1551
  sha256: z.ZodString;
1526
1552
  internalDate: z.ZodISODateTime;
1527
1553
  flags: z.ZodArray<z.ZodEnum<{
1554
+ flagged: "flagged";
1528
1555
  seen: "seen";
1529
1556
  answered: "answered";
1530
- flagged: "flagged";
1531
1557
  draft: "draft";
1532
1558
  deleted: "deleted";
1533
1559
  }>>;
@@ -1550,9 +1576,9 @@ declare const exportManifestFolder: z.ZodObject<{
1550
1576
  sha256: z.ZodString;
1551
1577
  internalDate: z.ZodISODateTime;
1552
1578
  flags: z.ZodArray<z.ZodEnum<{
1579
+ flagged: "flagged";
1553
1580
  seen: "seen";
1554
1581
  answered: "answered";
1555
- flagged: "flagged";
1556
1582
  draft: "draft";
1557
1583
  deleted: "deleted";
1558
1584
  }>>;
@@ -1583,9 +1609,9 @@ declare const exportManifest: z.ZodObject<{
1583
1609
  sha256: z.ZodString;
1584
1610
  internalDate: z.ZodISODateTime;
1585
1611
  flags: z.ZodArray<z.ZodEnum<{
1612
+ flagged: "flagged";
1586
1613
  seen: "seen";
1587
1614
  answered: "answered";
1588
- flagged: "flagged";
1589
1615
  draft: "draft";
1590
1616
  deleted: "deleted";
1591
1617
  }>>;
@@ -1640,6 +1666,7 @@ declare const inboxCountsInput: z.ZodObject<{
1640
1666
  declare const inboxFolderCount: z.ZodObject<{
1641
1667
  folderId: z.ZodUUID;
1642
1668
  unseen: z.ZodNumber;
1669
+ flagged: z.ZodNumber;
1643
1670
  total: z.ZodNumber;
1644
1671
  uidNext: z.ZodNumber;
1645
1672
  uidValidity: z.ZodNumber;
@@ -1649,6 +1676,7 @@ declare const inboxCounts: z.ZodObject<{
1649
1676
  folders: z.ZodArray<z.ZodObject<{
1650
1677
  folderId: z.ZodUUID;
1651
1678
  unseen: z.ZodNumber;
1679
+ flagged: z.ZodNumber;
1652
1680
  total: z.ZodNumber;
1653
1681
  uidNext: z.ZodNumber;
1654
1682
  uidValidity: z.ZodNumber;
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_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, 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, 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-C27HOMPC.js';
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-g1slmaT3.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-g1slmaT3.js';
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-C27HOMPC.js';
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 in the folder that existing-mail indexing has
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 { 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 };
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.22",
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.22",
17
+ "coordinatedVersion": "0.1.0-alpha.23",
18
18
  "channel": "alpha",
19
19
  "licenseStatus": "evaluation-only"
20
20
  },