agentmail 0.5.46 → 0.5.48

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.
Files changed (201) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/agent/client/Client.d.ts +3 -1
  3. package/dist/cjs/api/resources/agent/client/Client.js +3 -1
  4. package/dist/cjs/api/resources/apiKeys/types/ApiKeyPermissions.d.ts +4 -4
  5. package/dist/cjs/api/resources/calendar/types/IanaTimezone.d.ts +5 -3
  6. package/dist/cjs/api/resources/domains/types/Domain.d.ts +11 -4
  7. package/dist/cjs/api/resources/domains/types/RecordType.d.ts +1 -0
  8. package/dist/cjs/api/resources/domains/types/RecordType.js +1 -0
  9. package/dist/cjs/api/resources/domains/types/TrackingEnabled.d.ts +4 -3
  10. package/dist/cjs/api/resources/domains/types/TrackingStatus.d.ts +10 -0
  11. package/dist/cjs/api/resources/domains/types/TrackingStatus.js +3 -0
  12. package/dist/cjs/api/resources/domains/types/UpdateDomainRequest.d.ts +2 -1
  13. package/dist/cjs/api/resources/domains/types/VerificationRecord.d.ts +1 -1
  14. package/dist/cjs/api/resources/domains/types/index.d.ts +1 -0
  15. package/dist/cjs/api/resources/domains/types/index.js +1 -0
  16. package/dist/cjs/api/resources/events/types/EventId.d.ts +3 -1
  17. package/dist/cjs/api/resources/events/types/InboxIds.d.ts +1 -1
  18. package/dist/cjs/api/resources/events/types/MessageReceivedEvent.d.ts +1 -1
  19. package/dist/cjs/api/resources/events/types/PodIds.d.ts +1 -1
  20. package/dist/cjs/api/resources/events/types/ReceivedMessage.d.ts +18 -0
  21. package/dist/cjs/api/resources/events/types/ReceivedMessage.js +3 -0
  22. package/dist/cjs/api/resources/events/types/index.d.ts +1 -0
  23. package/dist/cjs/api/resources/events/types/index.js +1 -0
  24. package/dist/cjs/api/resources/inboxes/client/Client.d.ts +2 -1
  25. package/dist/cjs/api/resources/inboxes/client/Client.js +2 -1
  26. package/dist/cjs/api/resources/inboxes/resources/calendar/client/Client.d.ts +20 -21
  27. package/dist/cjs/api/resources/inboxes/resources/calendar/client/Client.js +20 -21
  28. package/dist/cjs/api/resources/inboxes/types/CreateInboxRequest.d.ts +2 -0
  29. package/dist/cjs/api/resources/inboxes/types/Inbox.d.ts +5 -0
  30. package/dist/cjs/api/resources/inboxes/types/PauseAt.d.ts +7 -0
  31. package/dist/cjs/api/resources/inboxes/types/PauseAt.js +3 -0
  32. package/dist/cjs/api/resources/inboxes/types/UpdateInboxRequest.d.ts +7 -1
  33. package/dist/cjs/api/resources/inboxes/types/index.d.ts +1 -0
  34. package/dist/cjs/api/resources/inboxes/types/index.js +1 -0
  35. package/dist/cjs/api/resources/messages/types/Message.d.ts +1 -0
  36. package/dist/cjs/api/resources/messages/types/MessageAuthenticationDomain.d.ts +5 -0
  37. package/dist/cjs/api/resources/messages/types/MessageAuthenticationDomain.js +3 -0
  38. package/dist/cjs/api/resources/messages/types/MessageAuthenticationResults.d.ts +56 -0
  39. package/dist/cjs/api/resources/messages/types/MessageAuthenticationResults.js +3 -0
  40. package/dist/cjs/api/resources/messages/types/MessageAuthenticationVerdict.d.ts +16 -0
  41. package/dist/cjs/api/resources/messages/types/MessageAuthenticationVerdict.js +19 -0
  42. package/dist/cjs/api/resources/messages/types/MessageCalendarEventId.d.ts +3 -2
  43. package/dist/cjs/api/resources/messages/types/MessageHeaders.d.ts +4 -1
  44. package/dist/cjs/api/resources/messages/types/MessageItem.d.ts +1 -0
  45. package/dist/cjs/api/resources/messages/types/index.d.ts +3 -0
  46. package/dist/cjs/api/resources/messages/types/index.js +3 -0
  47. package/dist/cjs/api/resources/metrics/client/Client.d.ts +3 -4
  48. package/dist/cjs/api/resources/metrics/client/Client.js +3 -4
  49. package/dist/cjs/api/resources/organizations/client/Client.d.ts +1 -1
  50. package/dist/cjs/api/resources/organizations/client/Client.js +1 -1
  51. package/dist/cjs/api/resources/organizations/types/Organization.d.ts +12 -0
  52. package/dist/cjs/api/resources/webhooks/types/CreatePodWebhookRequest.d.ts +4 -0
  53. package/dist/cjs/api/resources/webhooks/types/CreateWebhookEventTypes.d.ts +3 -2
  54. package/dist/cjs/api/resources/webhooks/types/CreateWebhookRequest.d.ts +3 -2
  55. package/dist/cjs/api/resources/webhooks/types/UpdateInboxWebhookRequest.d.ts +6 -4
  56. package/dist/cjs/api/resources/webhooks/types/UpdatePodWebhookRequest.d.ts +2 -1
  57. package/dist/cjs/api/resources/webhooks/types/UpdateWebhookEventTypes.d.ts +2 -2
  58. package/dist/cjs/api/resources/webhooks/types/UpdateWebhookRequest.d.ts +4 -1
  59. package/dist/cjs/api/resources/webhooks/types/Webhook.d.ts +5 -1
  60. package/dist/cjs/serialization/resources/domains/types/Domain.d.ts +3 -0
  61. package/dist/cjs/serialization/resources/domains/types/Domain.js +3 -0
  62. package/dist/cjs/serialization/resources/domains/types/RecordType.d.ts +1 -1
  63. package/dist/cjs/serialization/resources/domains/types/RecordType.js +1 -1
  64. package/dist/cjs/serialization/resources/domains/types/TrackingStatus.d.ts +8 -0
  65. package/dist/cjs/serialization/resources/domains/types/TrackingStatus.js +6 -0
  66. package/dist/cjs/serialization/resources/domains/types/index.d.ts +1 -0
  67. package/dist/cjs/serialization/resources/domains/types/index.js +1 -0
  68. package/dist/cjs/serialization/resources/events/types/MessageReceivedEvent.d.ts +2 -2
  69. package/dist/cjs/serialization/resources/events/types/MessageReceivedEvent.js +2 -2
  70. package/dist/cjs/serialization/resources/events/types/ReceivedMessage.d.ts +11 -0
  71. package/dist/cjs/serialization/resources/events/types/ReceivedMessage.js +45 -0
  72. package/dist/cjs/serialization/resources/events/types/index.d.ts +1 -0
  73. package/dist/cjs/serialization/resources/events/types/index.js +1 -0
  74. package/dist/cjs/serialization/resources/inboxes/types/CreateInboxRequest.d.ts +2 -0
  75. package/dist/cjs/serialization/resources/inboxes/types/CreateInboxRequest.js +2 -0
  76. package/dist/cjs/serialization/resources/inboxes/types/Inbox.d.ts +2 -0
  77. package/dist/cjs/serialization/resources/inboxes/types/Inbox.js +2 -0
  78. package/dist/cjs/serialization/resources/inboxes/types/PauseAt.d.ts +7 -0
  79. package/dist/cjs/serialization/resources/inboxes/types/PauseAt.js +39 -0
  80. package/dist/cjs/serialization/resources/inboxes/types/UpdateInboxRequest.d.ts +2 -0
  81. package/dist/cjs/serialization/resources/inboxes/types/UpdateInboxRequest.js +2 -0
  82. package/dist/cjs/serialization/resources/inboxes/types/index.d.ts +1 -0
  83. package/dist/cjs/serialization/resources/inboxes/types/index.js +1 -0
  84. package/dist/cjs/serialization/resources/messages/types/Message.d.ts +2 -0
  85. package/dist/cjs/serialization/resources/messages/types/Message.js +2 -0
  86. package/dist/cjs/serialization/resources/messages/types/MessageAuthenticationDomain.d.ts +7 -0
  87. package/dist/cjs/serialization/resources/messages/types/MessageAuthenticationDomain.js +39 -0
  88. package/dist/cjs/serialization/resources/messages/types/MessageAuthenticationResults.d.ts +17 -0
  89. package/dist/cjs/serialization/resources/messages/types/MessageAuthenticationResults.js +49 -0
  90. package/dist/cjs/serialization/resources/messages/types/MessageAuthenticationVerdict.d.ts +7 -0
  91. package/dist/cjs/serialization/resources/messages/types/MessageAuthenticationVerdict.js +39 -0
  92. package/dist/cjs/serialization/resources/messages/types/MessageItem.d.ts +2 -0
  93. package/dist/cjs/serialization/resources/messages/types/MessageItem.js +2 -0
  94. package/dist/cjs/serialization/resources/messages/types/index.d.ts +3 -0
  95. package/dist/cjs/serialization/resources/messages/types/index.js +3 -0
  96. package/dist/cjs/serialization/resources/organizations/types/Organization.d.ts +2 -0
  97. package/dist/cjs/serialization/resources/organizations/types/Organization.js +2 -0
  98. package/dist/cjs/version.d.ts +1 -1
  99. package/dist/cjs/version.js +1 -1
  100. package/dist/esm/BaseClient.mjs +2 -2
  101. package/dist/esm/api/resources/agent/client/Client.d.mts +3 -1
  102. package/dist/esm/api/resources/agent/client/Client.mjs +3 -1
  103. package/dist/esm/api/resources/apiKeys/types/ApiKeyPermissions.d.mts +4 -4
  104. package/dist/esm/api/resources/calendar/types/IanaTimezone.d.mts +5 -3
  105. package/dist/esm/api/resources/domains/types/Domain.d.mts +11 -4
  106. package/dist/esm/api/resources/domains/types/RecordType.d.mts +1 -0
  107. package/dist/esm/api/resources/domains/types/RecordType.mjs +1 -0
  108. package/dist/esm/api/resources/domains/types/TrackingEnabled.d.mts +4 -3
  109. package/dist/esm/api/resources/domains/types/TrackingStatus.d.mts +10 -0
  110. package/dist/esm/api/resources/domains/types/TrackingStatus.mjs +2 -0
  111. package/dist/esm/api/resources/domains/types/UpdateDomainRequest.d.mts +2 -1
  112. package/dist/esm/api/resources/domains/types/VerificationRecord.d.mts +1 -1
  113. package/dist/esm/api/resources/domains/types/index.d.mts +1 -0
  114. package/dist/esm/api/resources/domains/types/index.mjs +1 -0
  115. package/dist/esm/api/resources/events/types/EventId.d.mts +3 -1
  116. package/dist/esm/api/resources/events/types/InboxIds.d.mts +1 -1
  117. package/dist/esm/api/resources/events/types/MessageReceivedEvent.d.mts +1 -1
  118. package/dist/esm/api/resources/events/types/PodIds.d.mts +1 -1
  119. package/dist/esm/api/resources/events/types/ReceivedMessage.d.mts +18 -0
  120. package/dist/esm/api/resources/events/types/ReceivedMessage.mjs +2 -0
  121. package/dist/esm/api/resources/events/types/index.d.mts +1 -0
  122. package/dist/esm/api/resources/events/types/index.mjs +1 -0
  123. package/dist/esm/api/resources/inboxes/client/Client.d.mts +2 -1
  124. package/dist/esm/api/resources/inboxes/client/Client.mjs +2 -1
  125. package/dist/esm/api/resources/inboxes/resources/calendar/client/Client.d.mts +20 -21
  126. package/dist/esm/api/resources/inboxes/resources/calendar/client/Client.mjs +20 -21
  127. package/dist/esm/api/resources/inboxes/types/CreateInboxRequest.d.mts +2 -0
  128. package/dist/esm/api/resources/inboxes/types/Inbox.d.mts +5 -0
  129. package/dist/esm/api/resources/inboxes/types/PauseAt.d.mts +7 -0
  130. package/dist/esm/api/resources/inboxes/types/PauseAt.mjs +2 -0
  131. package/dist/esm/api/resources/inboxes/types/UpdateInboxRequest.d.mts +7 -1
  132. package/dist/esm/api/resources/inboxes/types/index.d.mts +1 -0
  133. package/dist/esm/api/resources/inboxes/types/index.mjs +1 -0
  134. package/dist/esm/api/resources/messages/types/Message.d.mts +1 -0
  135. package/dist/esm/api/resources/messages/types/MessageAuthenticationDomain.d.mts +5 -0
  136. package/dist/esm/api/resources/messages/types/MessageAuthenticationDomain.mjs +2 -0
  137. package/dist/esm/api/resources/messages/types/MessageAuthenticationResults.d.mts +56 -0
  138. package/dist/esm/api/resources/messages/types/MessageAuthenticationResults.mjs +2 -0
  139. package/dist/esm/api/resources/messages/types/MessageAuthenticationVerdict.d.mts +16 -0
  140. package/dist/esm/api/resources/messages/types/MessageAuthenticationVerdict.mjs +16 -0
  141. package/dist/esm/api/resources/messages/types/MessageCalendarEventId.d.mts +3 -2
  142. package/dist/esm/api/resources/messages/types/MessageHeaders.d.mts +4 -1
  143. package/dist/esm/api/resources/messages/types/MessageItem.d.mts +1 -0
  144. package/dist/esm/api/resources/messages/types/index.d.mts +3 -0
  145. package/dist/esm/api/resources/messages/types/index.mjs +3 -0
  146. package/dist/esm/api/resources/metrics/client/Client.d.mts +3 -4
  147. package/dist/esm/api/resources/metrics/client/Client.mjs +3 -4
  148. package/dist/esm/api/resources/organizations/client/Client.d.mts +1 -1
  149. package/dist/esm/api/resources/organizations/client/Client.mjs +1 -1
  150. package/dist/esm/api/resources/organizations/types/Organization.d.mts +12 -0
  151. package/dist/esm/api/resources/webhooks/types/CreatePodWebhookRequest.d.mts +4 -0
  152. package/dist/esm/api/resources/webhooks/types/CreateWebhookEventTypes.d.mts +3 -2
  153. package/dist/esm/api/resources/webhooks/types/CreateWebhookRequest.d.mts +3 -2
  154. package/dist/esm/api/resources/webhooks/types/UpdateInboxWebhookRequest.d.mts +6 -4
  155. package/dist/esm/api/resources/webhooks/types/UpdatePodWebhookRequest.d.mts +2 -1
  156. package/dist/esm/api/resources/webhooks/types/UpdateWebhookEventTypes.d.mts +2 -2
  157. package/dist/esm/api/resources/webhooks/types/UpdateWebhookRequest.d.mts +4 -1
  158. package/dist/esm/api/resources/webhooks/types/Webhook.d.mts +5 -1
  159. package/dist/esm/serialization/resources/domains/types/Domain.d.mts +3 -0
  160. package/dist/esm/serialization/resources/domains/types/Domain.mjs +3 -0
  161. package/dist/esm/serialization/resources/domains/types/RecordType.d.mts +1 -1
  162. package/dist/esm/serialization/resources/domains/types/RecordType.mjs +1 -1
  163. package/dist/esm/serialization/resources/domains/types/TrackingStatus.d.mts +8 -0
  164. package/dist/esm/serialization/resources/domains/types/TrackingStatus.mjs +3 -0
  165. package/dist/esm/serialization/resources/domains/types/index.d.mts +1 -0
  166. package/dist/esm/serialization/resources/domains/types/index.mjs +1 -0
  167. package/dist/esm/serialization/resources/events/types/MessageReceivedEvent.d.mts +2 -2
  168. package/dist/esm/serialization/resources/events/types/MessageReceivedEvent.mjs +2 -2
  169. package/dist/esm/serialization/resources/events/types/ReceivedMessage.d.mts +11 -0
  170. package/dist/esm/serialization/resources/events/types/ReceivedMessage.mjs +9 -0
  171. package/dist/esm/serialization/resources/events/types/index.d.mts +1 -0
  172. package/dist/esm/serialization/resources/events/types/index.mjs +1 -0
  173. package/dist/esm/serialization/resources/inboxes/types/CreateInboxRequest.d.mts +2 -0
  174. package/dist/esm/serialization/resources/inboxes/types/CreateInboxRequest.mjs +2 -0
  175. package/dist/esm/serialization/resources/inboxes/types/Inbox.d.mts +2 -0
  176. package/dist/esm/serialization/resources/inboxes/types/Inbox.mjs +2 -0
  177. package/dist/esm/serialization/resources/inboxes/types/PauseAt.d.mts +7 -0
  178. package/dist/esm/serialization/resources/inboxes/types/PauseAt.mjs +3 -0
  179. package/dist/esm/serialization/resources/inboxes/types/UpdateInboxRequest.d.mts +2 -0
  180. package/dist/esm/serialization/resources/inboxes/types/UpdateInboxRequest.mjs +2 -0
  181. package/dist/esm/serialization/resources/inboxes/types/index.d.mts +1 -0
  182. package/dist/esm/serialization/resources/inboxes/types/index.mjs +1 -0
  183. package/dist/esm/serialization/resources/messages/types/Message.d.mts +2 -0
  184. package/dist/esm/serialization/resources/messages/types/Message.mjs +2 -0
  185. package/dist/esm/serialization/resources/messages/types/MessageAuthenticationDomain.d.mts +7 -0
  186. package/dist/esm/serialization/resources/messages/types/MessageAuthenticationDomain.mjs +3 -0
  187. package/dist/esm/serialization/resources/messages/types/MessageAuthenticationResults.d.mts +17 -0
  188. package/dist/esm/serialization/resources/messages/types/MessageAuthenticationResults.mjs +13 -0
  189. package/dist/esm/serialization/resources/messages/types/MessageAuthenticationVerdict.d.mts +7 -0
  190. package/dist/esm/serialization/resources/messages/types/MessageAuthenticationVerdict.mjs +3 -0
  191. package/dist/esm/serialization/resources/messages/types/MessageItem.d.mts +2 -0
  192. package/dist/esm/serialization/resources/messages/types/MessageItem.mjs +2 -0
  193. package/dist/esm/serialization/resources/messages/types/index.d.mts +3 -0
  194. package/dist/esm/serialization/resources/messages/types/index.mjs +3 -0
  195. package/dist/esm/serialization/resources/organizations/types/Organization.d.mts +2 -0
  196. package/dist/esm/serialization/resources/organizations/types/Organization.mjs +2 -0
  197. package/dist/esm/version.d.mts +1 -1
  198. package/dist/esm/version.mjs +1 -1
  199. package/dist/llms.txt +20 -2
  200. package/package.json +3 -2
  201. package/reference.md +29 -28
@@ -0,0 +1,56 @@
1
+ import type * as AgentMail from "../../../index.js";
2
+ /**
3
+ * Per-mechanism SPF, DKIM, and DMARC verdicts for a received message, each with the domain it
4
+ * is about, kept only where they speak for the sender's From identity. A verdict that could
5
+ * not be computed is absent, so the field can be `{}`. The field is absent on sent messages
6
+ * and on messages received before 2026-09-09; the `*_domain` and `arc_sealer` keys appear on
7
+ * messages received after they were introduced.
8
+ *
9
+ * The verdicts are the ones Amazon SES computed when the message reached AgentMail, with one
10
+ * exception. Forwarded mail fails DMARC at the receiving hop by construction. When AgentMail
11
+ * delivers a forwarded message as authenticated because a trusted forwarder (such as Google or
12
+ * Microsoft) sealed a valid ARC chain vouching for the original, the field reports the
13
+ * verdicts that forwarder recorded for the original message, and `arc_sealer` names it.
14
+ *
15
+ * - `spf` is about the envelope MAIL FROM (Return-Path) domain, named in `spf_domain`. It is
16
+ * present only when that domain is aligned with the sender's domain (the From mailbox, or
17
+ * the Sender header when From spans domains), meaning the two share an organizational
18
+ * domain: `mail.example.com` is aligned with `example.com`. An unaligned SPF result is
19
+ * withheld whatever its value.
20
+ * - `dkim` is the DKIM verdict, and `dkim_domain` the signing domain (the `d=` tag). On
21
+ * directly received mail the domain is named only when every DKIM signature on the message
22
+ * is from the same domain; a message signed by more than one domain (a sender and its email
23
+ * provider, for instance) keeps the verdict and omits the domain. `dkim_domain` is the
24
+ * signing domain as written, so compare it with the From domain before relying on it.
25
+ * - `dmarc` is the DMARC verdict for the From domain, named in `dmarc_domain`.
26
+ * - `dkim` and `dmarc` are withheld when the From list spans more than one domain or could not
27
+ * be fully parsed.
28
+ * - On forwarded mail each sealed verdict is reported only when the domain the forwarder
29
+ * recorded it for matches the message's current From domain. If the forwarder rewrote From,
30
+ * or vouched for nothing, the field is `{}`.
31
+ *
32
+ * The `unauthenticated` label, not this field, is AgentMail's acceptance decision, and it uses
33
+ * a looser rule, so the two can disagree: a single-From message whose only pass is an
34
+ * unaligned envelope SPF is delivered without the label while this field shows no pass. Use
35
+ * the label to tell whether AgentMail accepted the message as legitimate, and this field to
36
+ * see which domain each mechanism authenticated. Do not reject mail on `dmarc: fail` alone.
37
+ */
38
+ export interface MessageAuthenticationResults {
39
+ spf?: AgentMail.MessageAuthenticationVerdict;
40
+ dkim?: AgentMail.MessageAuthenticationVerdict;
41
+ dmarc?: AgentMail.MessageAuthenticationVerdict;
42
+ /** Envelope MAIL FROM domain the `spf` verdict is about (`smtp.mailfrom`). */
43
+ spfDomain?: AgentMail.MessageAuthenticationDomain;
44
+ /**
45
+ * Signing domain the `dkim` verdict is about (`header.d`). Present only when `dkim` is
46
+ * `pass` or `fail`.
47
+ */
48
+ dkimDomain?: AgentMail.MessageAuthenticationDomain;
49
+ /** From domain the `dmarc` verdict is about (`header.from`). */
50
+ dmarcDomain?: AgentMail.MessageAuthenticationDomain;
51
+ /**
52
+ * Domain of the trusted forwarder whose ARC seal the verdicts were taken from, such as
53
+ * `google.com`. Present only on forwarded mail, and only beside at least one verdict.
54
+ */
55
+ arcSealer?: AgentMail.MessageAuthenticationDomain;
56
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Result of one email authentication mechanism, in the vocabulary of the
3
+ * `Authentication-Results` header (RFC 8601). `none` means there was nothing to evaluate
4
+ * (Amazon SES calls this GRAY): no SPF record for the envelope MAIL FROM domain, no DKIM
5
+ * signature to check, or no DMARC record for the From domain.
6
+ */
7
+ export declare const MessageAuthenticationVerdict: {
8
+ readonly Pass: "pass";
9
+ readonly Fail: "fail";
10
+ readonly None: "none";
11
+ readonly Neutral: "neutral";
12
+ readonly Softfail: "softfail";
13
+ readonly Temperror: "temperror";
14
+ readonly Permerror: "permerror";
15
+ };
16
+ export type MessageAuthenticationVerdict = (typeof MessageAuthenticationVerdict)[keyof typeof MessageAuthenticationVerdict];
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.MessageAuthenticationVerdict = void 0;
5
+ /**
6
+ * Result of one email authentication mechanism, in the vocabulary of the
7
+ * `Authentication-Results` header (RFC 8601). `none` means there was nothing to evaluate
8
+ * (Amazon SES calls this GRAY): no SPF record for the envelope MAIL FROM domain, no DKIM
9
+ * signature to check, or no DMARC record for the From domain.
10
+ */
11
+ exports.MessageAuthenticationVerdict = {
12
+ Pass: "pass",
13
+ Fail: "fail",
14
+ None: "none",
15
+ Neutral: "neutral",
16
+ Softfail: "softfail",
17
+ Temperror: "temperror",
18
+ Permerror: "permerror",
19
+ };
@@ -2,7 +2,8 @@
2
2
  * The calendar event this email's invitation was applied to: set when the email's calendar
3
3
  * invitation, update, cancellation or attendee reply changed the inbox's calendar, a few seconds
4
4
  * after the email arrives. For an email about one date of a recurring event, it is that date's
5
- * event ID. Absent on other emails, and on invitations that were not imported. Calendar is in
6
- * AgentMail Labs.
5
+ * event ID. Absent on other emails, and on invitations that were not imported. The
6
+ * `message.received` event for an email with a calendar attachment waits until this is set, at
7
+ * most 20 seconds, so it usually arrives with it. Calendar is available in US production.
7
8
  */
8
9
  export type MessageCalendarEventId = string;
@@ -1,4 +1,7 @@
1
1
  /**
2
- * Headers in message.
2
+ * Headers in message. `Authentication-Results` is never included, on received or sent
3
+ * messages: the header is unsigned, so a sender can plant a forged copy. Read
4
+ * `authentication_results` for the verdicts instead. Get Raw Message still returns every copy
5
+ * of the header.
3
6
  */
4
7
  export type MessageHeaders = Record<string, string>;
@@ -16,6 +16,7 @@ export interface MessageItem {
16
16
  calendarEventId?: AgentMail.MessageCalendarEventId;
17
17
  references?: AgentMail.MessageReferences;
18
18
  headers?: AgentMail.MessageHeaders;
19
+ authenticationResults?: AgentMail.MessageAuthenticationResults;
19
20
  agentArmor?: AgentMail.AgentArmorResult;
20
21
  size: AgentMail.MessageSize;
21
22
  updatedAt: AgentMail.MessageUpdatedAt;
@@ -8,6 +8,9 @@ export * from "./BatchUpdateMessagesResponse.js";
8
8
  export * from "./ListMessagesResponse.js";
9
9
  export * from "./Message.js";
10
10
  export * from "./MessageAttachments.js";
11
+ export * from "./MessageAuthenticationDomain.js";
12
+ export * from "./MessageAuthenticationResults.js";
13
+ export * from "./MessageAuthenticationVerdict.js";
11
14
  export * from "./MessageBcc.js";
12
15
  export * from "./MessageCalendarEventId.js";
13
16
  export * from "./MessageCc.js";
@@ -24,6 +24,9 @@ __exportStar(require("./BatchUpdateMessagesResponse.js"), exports);
24
24
  __exportStar(require("./ListMessagesResponse.js"), exports);
25
25
  __exportStar(require("./Message.js"), exports);
26
26
  __exportStar(require("./MessageAttachments.js"), exports);
27
+ __exportStar(require("./MessageAuthenticationDomain.js"), exports);
28
+ __exportStar(require("./MessageAuthenticationResults.js"), exports);
29
+ __exportStar(require("./MessageAuthenticationVerdict.js"), exports);
27
30
  __exportStar(require("./MessageBcc.js"), exports);
28
31
  __exportStar(require("./MessageCalendarEventId.js"), exports);
29
32
  __exportStar(require("./MessageCc.js"), exports);
@@ -54,10 +54,9 @@ export declare class MetricsClient {
54
54
  * `period` grid point, the bounced (or complained) messages over the
55
55
  * preceding `window` divided by the messages sent over the same window,
56
56
  * with the send count alongside so you can see the volume behind
57
- * it. This is the number AgentMail's account moderation acts on: a
58
- * warning at a 5% bounce rate and suspension at 10%, evaluated over a
59
- * rolling 24 hours once at least 1,000 messages were sent in that
60
- * window. Defaults to the rolling 24-hour rate sampled hourly over the
57
+ * it. AgentMail weighs bounce and complaint signals when deciding
58
+ * whether to suspend an account's sending, so keep both rates low.
59
+ * Defaults to the rolling 24-hour rate sampled hourly over the
61
60
  * last day; `start` must be within the last 90 days, `window` must be a
62
61
  * whole multiple of `period`, and the range plus window divided by
63
62
  * `period` must not exceed 1000 buckets.
@@ -239,10 +239,9 @@ class MetricsClient {
239
239
  * `period` grid point, the bounced (or complained) messages over the
240
240
  * preceding `window` divided by the messages sent over the same window,
241
241
  * with the send count alongside so you can see the volume behind
242
- * it. This is the number AgentMail's account moderation acts on: a
243
- * warning at a 5% bounce rate and suspension at 10%, evaluated over a
244
- * rolling 24 hours once at least 1,000 messages were sent in that
245
- * window. Defaults to the rolling 24-hour rate sampled hourly over the
242
+ * it. AgentMail weighs bounce and complaint signals when deciding
243
+ * whether to suspend an account's sending, so keep both rates low.
244
+ * Defaults to the rolling 24-hour rate sampled hourly over the
246
245
  * last day; `start` must be within the last 90 days, `window` must be a
247
246
  * whole multiple of `period`, and the range plus window divided by
248
247
  * `period` must not exceed 1000 buckets.
@@ -26,7 +26,7 @@ export declare class OrganizationsClient {
26
26
  get(requestOptions?: OrganizationsClient.RequestOptions): core.HttpResponsePromise<AgentMail.Organization>;
27
27
  private __get;
28
28
  /**
29
- * Returns whether the organization is in [AgentMail Labs](https://docs.agentmail.to/calendar), which turns on features that are still in preview, such as calendar. Requires an organization-scoped API key.
29
+ * Returns whether the organization is in AgentMail Labs, which turns on features that are still in preview, such as [Agent Armor](https://docs.agentmail.to/agent-armor). Requires an organization-scoped API key.
30
30
  *
31
31
  * **CLI:**
32
32
  * ```bash
@@ -112,7 +112,7 @@ class OrganizationsClient {
112
112
  });
113
113
  }
114
114
  /**
115
- * Returns whether the organization is in [AgentMail Labs](https://docs.agentmail.to/calendar), which turns on features that are still in preview, such as calendar. Requires an organization-scoped API key.
115
+ * Returns whether the organization is in AgentMail Labs, which turns on features that are still in preview, such as [Agent Armor](https://docs.agentmail.to/agent-armor). Requires an organization-scoped API key.
116
116
  *
117
117
  * **CLI:**
118
118
  * ```bash
@@ -22,6 +22,18 @@ export interface Organization {
22
22
  authenticationId?: string;
23
23
  /** Authentication provider type. */
24
24
  authenticationType?: string;
25
+ /**
26
+ * Time at which the organization was suspended. Absent when it is not suspended. A suspended
27
+ * organization cannot send, but it still receives mail, its webhooks and WebSocket events still
28
+ * fire, and API reads keep working. See [account_suspended](https://docs.agentmail.to/errors#account_suspended).
29
+ */
30
+ suspendedAt?: Date;
31
+ /**
32
+ * Why the organization is suspended, in a short machine-readable form such as `message.bounced`
33
+ * or `message.complained`. Absent when it is not suspended. Email support@agentmail.cc to resolve
34
+ * a suspension.
35
+ */
36
+ suspendedReason?: string;
25
37
  /** Time at which organization was last updated. */
26
38
  updatedAt: Date;
27
39
  /** Time at which organization was created. */
@@ -5,5 +5,9 @@ import type * as AgentMail from "../../../index.js";
5
5
  * receive events for the whole pod.
6
6
  */
7
7
  export interface CreatePodWebhookRequest extends AgentMail.webhooks.CreateInboxWebhookRequest {
8
+ /**
9
+ * Inboxes for which to send events. A webhook can list at most 10 inboxes and pods combined;
10
+ * more returns `403` with `limit_exceeded`.
11
+ */
8
12
  inboxIds?: AgentMail.InboxIds;
9
13
  }
@@ -1,7 +1,8 @@
1
1
  import type * as AgentMail from "../../../index.js";
2
2
  /**
3
- * Full list of event types this webhook should receive. At least one type is required. Send every type you
4
- * want in this array (not incremental). See [Webhooks overview](https://docs.agentmail.to/webhooks-overview)
3
+ * Full list of event types this webhook should receive. Required: omitting it or sending an empty array
4
+ * returns a `400`, and there is no "all events" default. Send every type you want in this array (not
5
+ * incremental). See [Webhooks overview](https://docs.agentmail.to/webhooks-overview)
5
6
  * for spam, blocked, and unauthenticated events and required permissions.
6
7
  */
7
8
  export type CreateWebhookEventTypes = AgentMail.EventTypes;
@@ -1,8 +1,9 @@
1
1
  import type * as AgentMail from "../../../index.js";
2
2
  export interface CreateWebhookRequest extends AgentMail.webhooks.CreatePodWebhookRequest {
3
3
  /**
4
- * Pods for which to send events. Maximum 10 per webhook. The webhook receives an event that matches
5
- * any listed pod or inbox, so a listed pod already covers every inbox in it.
4
+ * Pods for which to send events. A webhook can list at most 10 pods and inboxes combined; more returns
5
+ * `403` with `limit_exceeded`. The webhook receives an event that matches any listed pod or inbox, so a
6
+ * listed pod already covers every inbox in it.
6
7
  */
7
8
  podIds?: AgentMail.PodIds;
8
9
  }
@@ -7,10 +7,12 @@ export interface UpdateInboxWebhookRequest {
7
7
  eventTypes?: AgentMail.webhooks.UpdateWebhookEventTypes;
8
8
  /**
9
9
  * Set to true to re-enable a webhook that was disabled after repeated failed deliveries, or false
10
- * to disable it. Events that occurred while the webhook was disabled are not redelivered.
11
- * Re-enabling a webhook subscribed to `message.received.spam`, `message.received.blocked`, or
12
- * `message.received.unauthenticated` (or to every event type, with no filter) requires the
13
- * matching label permissions on the API key.
10
+ * to disable it. AgentMail does not notify you when a webhook is disabled automatically; check this
11
+ * field when you get or list webhooks. Events that occurred while the webhook was disabled are not
12
+ * redelivered. Re-enabling requires the read permission for every restricted event type the webhook
13
+ * subscribes to: `label_spam_read`, `label_blocked_read`, or `label_unauthenticated_read` for the
14
+ * received variants, `message_read` for `message.security.*`, and `calendar_event_read` for
15
+ * `calendar.event.*`. A webhook with no event type filter is checked against all of them.
14
16
  */
15
17
  enabled?: boolean;
16
18
  }
@@ -7,7 +7,8 @@ export interface UpdatePodWebhookRequest extends AgentMail.webhooks.UpdateInboxW
7
7
  /**
8
8
  * Inbox IDs to subscribe to the webhook. This only adds to what the webhook receives: on a webhook
9
9
  * that covers its whole pod, it changes nothing. To receive only specific inboxes, create a webhook
10
- * with `inbox_ids` instead.
10
+ * with `inbox_ids` instead. The webhook can list at most 10 inboxes and pods combined after the
11
+ * update.
11
12
  */
12
13
  addInboxIds?: AgentMail.InboxIds;
13
14
  /** Inbox IDs to unsubscribe from the webhook. */
@@ -3,8 +3,8 @@ import type * as AgentMail from "../../../index.js";
3
3
  * When you send a non-empty list, it replaces the webhook's subscribed event types in full (the same
4
4
  * "set the list" behavior as create). It is not a merge or diff: include every event type you want after
5
5
  * the update. Sending a one-element array means the webhook will only receive that one type afterward.
6
- * Omit this field or send an empty array to leave event types unchanged. Clearing all types with an empty
7
- * list is not supported. Subscribing to `message.received.spam`, `message.received.blocked`, or
6
+ * Omit this field to leave event types unchanged. An empty array is rejected with a `400`: a webhook
7
+ * always has at least one event type. Subscribing to `message.received.spam`, `message.received.blocked`, or
8
8
  * `message.received.unauthenticated` requires the matching label permission on the API key.
9
9
  */
10
10
  export type UpdateWebhookEventTypes = AgentMail.EventTypes;
@@ -1,6 +1,9 @@
1
1
  import type * as AgentMail from "../../../index.js";
2
2
  export interface UpdateWebhookRequest extends AgentMail.webhooks.UpdatePodWebhookRequest {
3
- /** Pod IDs to subscribe to the webhook. */
3
+ /**
4
+ * Pod IDs to subscribe to the webhook. The webhook can list at most 10 pods and inboxes combined
5
+ * after the update.
6
+ */
4
7
  addPodIds?: AgentMail.PodIds;
5
8
  /** Pod IDs to unsubscribe from the webhook. */
6
9
  removePodIds?: AgentMail.PodIds;
@@ -18,7 +18,11 @@ export interface Webhook {
18
18
  inboxId?: string;
19
19
  /** Secret for webhook signature verification. */
20
20
  secret: string;
21
- /** Webhook is enabled. */
21
+ /**
22
+ * Whether the webhook is enabled. It becomes false when you disable it, and also when deliveries to
23
+ * the URL have failed for 5 days, in which case AgentMail sends no notification. Re-enable it with
24
+ * update and `enabled` set to true.
25
+ */
22
26
  enabled: boolean;
23
27
  /** Time at which webhook was last updated. */
24
28
  updatedAt: Date;
@@ -10,6 +10,7 @@ import { InboundEnabled } from "./InboundEnabled.js";
10
10
  import { Status } from "./Status.js";
11
11
  import { SubdomainsEnabled } from "./SubdomainsEnabled.js";
12
12
  import { TrackingEnabled } from "./TrackingEnabled.js";
13
+ import { TrackingStatus } from "./TrackingStatus.js";
13
14
  import { VerificationRecord } from "./VerificationRecord.js";
14
15
  export declare const Domain: core.serialization.ObjectSchema<serializers.Domain.Raw, AgentMail.Domain>;
15
16
  export declare namespace Domain {
@@ -23,6 +24,8 @@ export declare namespace Domain {
23
24
  inbound_enabled?: InboundEnabled.Raw | null;
24
25
  subdomains_enabled: SubdomainsEnabled.Raw;
25
26
  tracking_enabled: TrackingEnabled.Raw;
27
+ tracking_status?: TrackingStatus.Raw | null;
28
+ tracking_reason?: string | null;
26
29
  records: VerificationRecord.Raw[];
27
30
  client_id?: ClientId.Raw | null;
28
31
  updated_at: string;
@@ -45,6 +45,7 @@ const InboundEnabled_js_1 = require("./InboundEnabled.js");
45
45
  const Status_js_1 = require("./Status.js");
46
46
  const SubdomainsEnabled_js_1 = require("./SubdomainsEnabled.js");
47
47
  const TrackingEnabled_js_1 = require("./TrackingEnabled.js");
48
+ const TrackingStatus_js_1 = require("./TrackingStatus.js");
48
49
  const VerificationRecord_js_1 = require("./VerificationRecord.js");
49
50
  exports.Domain = core.serialization.object({
50
51
  podId: core.serialization.property("pod_id", PodId_js_1.PodId.optional()),
@@ -56,6 +57,8 @@ exports.Domain = core.serialization.object({
56
57
  inboundEnabled: core.serialization.property("inbound_enabled", InboundEnabled_js_1.InboundEnabled.optional()),
57
58
  subdomainsEnabled: core.serialization.property("subdomains_enabled", SubdomainsEnabled_js_1.SubdomainsEnabled),
58
59
  trackingEnabled: core.serialization.property("tracking_enabled", TrackingEnabled_js_1.TrackingEnabled),
60
+ trackingStatus: core.serialization.property("tracking_status", TrackingStatus_js_1.TrackingStatus.optional()),
61
+ trackingReason: core.serialization.property("tracking_reason", core.serialization.string().optional()),
59
62
  records: core.serialization.list(VerificationRecord_js_1.VerificationRecord),
60
63
  clientId: core.serialization.property("client_id", ClientId_js_1.ClientId.optional()),
61
64
  updatedAt: core.serialization.property("updated_at", core.serialization.date()),
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.js";
3
3
  import type * as serializers from "../../../index.js";
4
4
  export declare const RecordType: core.serialization.Schema<serializers.RecordType.Raw, AgentMail.RecordType>;
5
5
  export declare namespace RecordType {
6
- type Raw = "TXT" | "CNAME" | "MX";
6
+ type Raw = "TXT" | "CNAME" | "MX" | "CAA";
7
7
  }
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.RecordType = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
- exports.RecordType = core.serialization.enum_(["TXT", "CNAME", "MX"]);
39
+ exports.RecordType = core.serialization.enum_(["TXT", "CNAME", "MX", "CAA"]);
@@ -0,0 +1,8 @@
1
+ import type * as AgentMail from "../../../../api/index.js";
2
+ import type * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ import { VerificationStatus } from "./VerificationStatus.js";
5
+ export declare const TrackingStatus: core.serialization.Schema<serializers.TrackingStatus.Raw, AgentMail.TrackingStatus>;
6
+ export declare namespace TrackingStatus {
7
+ type Raw = VerificationStatus.Raw;
8
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.TrackingStatus = void 0;
5
+ const VerificationStatus_js_1 = require("./VerificationStatus.js");
6
+ exports.TrackingStatus = VerificationStatus_js_1.VerificationStatus;
@@ -13,6 +13,7 @@ export * from "./RecordType.js";
13
13
  export * from "./Status.js";
14
14
  export * from "./SubdomainsEnabled.js";
15
15
  export * from "./TrackingEnabled.js";
16
+ export * from "./TrackingStatus.js";
16
17
  export * from "./UpdateDomainRequest.js";
17
18
  export * from "./VerificationRecord.js";
18
19
  export * from "./VerificationStatus.js";
@@ -29,6 +29,7 @@ __exportStar(require("./RecordType.js"), exports);
29
29
  __exportStar(require("./Status.js"), exports);
30
30
  __exportStar(require("./SubdomainsEnabled.js"), exports);
31
31
  __exportStar(require("./TrackingEnabled.js"), exports);
32
+ __exportStar(require("./TrackingStatus.js"), exports);
32
33
  __exportStar(require("./UpdateDomainRequest.js"), exports);
33
34
  __exportStar(require("./VerificationRecord.js"), exports);
34
35
  __exportStar(require("./VerificationStatus.js"), exports);
@@ -1,17 +1,17 @@
1
1
  import type * as AgentMail from "../../../../api/index.js";
2
2
  import * as core from "../../../../core/index.js";
3
3
  import type * as serializers from "../../../index.js";
4
- import { Message } from "../../messages/types/Message.js";
5
4
  import { ThreadItem } from "../../threads/types/ThreadItem.js";
6
5
  import { EventId } from "./EventId.js";
7
6
  import { MessageReceivedEventType } from "./MessageReceivedEventType.js";
7
+ import { ReceivedMessage } from "./ReceivedMessage.js";
8
8
  export declare const MessageReceivedEvent: core.serialization.ObjectSchema<serializers.MessageReceivedEvent.Raw, AgentMail.MessageReceivedEvent>;
9
9
  export declare namespace MessageReceivedEvent {
10
10
  interface Raw {
11
11
  type: "event";
12
12
  event_type: MessageReceivedEventType.Raw;
13
13
  event_id: EventId.Raw;
14
- message: Message.Raw;
14
+ message: ReceivedMessage.Raw;
15
15
  thread: ThreadItem.Raw;
16
16
  }
17
17
  }
@@ -36,14 +36,14 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.MessageReceivedEvent = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
- const Message_js_1 = require("../../messages/types/Message.js");
40
39
  const ThreadItem_js_1 = require("../../threads/types/ThreadItem.js");
41
40
  const EventId_js_1 = require("./EventId.js");
42
41
  const MessageReceivedEventType_js_1 = require("./MessageReceivedEventType.js");
42
+ const ReceivedMessage_js_1 = require("./ReceivedMessage.js");
43
43
  exports.MessageReceivedEvent = core.serialization.object({
44
44
  type: core.serialization.stringLiteral("event"),
45
45
  eventType: core.serialization.property("event_type", MessageReceivedEventType_js_1.MessageReceivedEventType),
46
46
  eventId: core.serialization.property("event_id", EventId_js_1.EventId),
47
- message: Message_js_1.Message,
47
+ message: ReceivedMessage_js_1.ReceivedMessage,
48
48
  thread: ThreadItem_js_1.ThreadItem,
49
49
  });
@@ -0,0 +1,11 @@
1
+ import type * as AgentMail from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ import { Message } from "../../messages/types/Message.js";
5
+ export declare const ReceivedMessage: core.serialization.ObjectSchema<serializers.ReceivedMessage.Raw, AgentMail.ReceivedMessage>;
6
+ export declare namespace ReceivedMessage {
7
+ interface Raw extends Message.Raw {
8
+ body_url?: string | null;
9
+ body_expires_at?: string | null;
10
+ }
11
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.ReceivedMessage = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ const Message_js_1 = require("../../messages/types/Message.js");
40
+ exports.ReceivedMessage = core.serialization
41
+ .object({
42
+ bodyUrl: core.serialization.property("body_url", core.serialization.string().optional()),
43
+ bodyExpiresAt: core.serialization.property("body_expires_at", core.serialization.date().optional()),
44
+ })
45
+ .extend(Message_js_1.Message);
@@ -28,6 +28,7 @@ export * from "./MessageSecurityReviewEvent.js";
28
28
  export * from "./MessageSentEvent.js";
29
29
  export * from "./Open.js";
30
30
  export * from "./PodIds.js";
31
+ export * from "./ReceivedMessage.js";
31
32
  export * from "./Recipient.js";
32
33
  export * from "./Reject.js";
33
34
  export * from "./Send.js";
@@ -44,6 +44,7 @@ __exportStar(require("./MessageSecurityReviewEvent.js"), exports);
44
44
  __exportStar(require("./MessageSentEvent.js"), exports);
45
45
  __exportStar(require("./Open.js"), exports);
46
46
  __exportStar(require("./PodIds.js"), exports);
47
+ __exportStar(require("./ReceivedMessage.js"), exports);
47
48
  __exportStar(require("./Recipient.js"), exports);
48
49
  __exportStar(require("./Reject.js"), exports);
49
50
  __exportStar(require("./Send.js"), exports);
@@ -5,6 +5,7 @@ import { ClientId } from "./ClientId.js";
5
5
  import { DisplayName } from "./DisplayName.js";
6
6
  import { InboxStatus } from "./InboxStatus.js";
7
7
  import { Metadata } from "./Metadata.js";
8
+ import { PauseAt } from "./PauseAt.js";
8
9
  export declare const CreateInboxRequest: core.serialization.ObjectSchema<serializers.inboxes.CreateInboxRequest.Raw, AgentMail.inboxes.CreateInboxRequest>;
9
10
  export declare namespace CreateInboxRequest {
10
11
  interface Raw {
@@ -13,6 +14,7 @@ export declare namespace CreateInboxRequest {
13
14
  display_name?: DisplayName.Raw | null;
14
15
  client_id?: ClientId.Raw | null;
15
16
  status?: InboxStatus.Raw | null;
17
+ pause_at?: PauseAt.Raw | null;
16
18
  metadata?: Metadata.Raw | null;
17
19
  }
18
20
  }
@@ -40,11 +40,13 @@ const ClientId_js_1 = require("./ClientId.js");
40
40
  const DisplayName_js_1 = require("./DisplayName.js");
41
41
  const InboxStatus_js_1 = require("./InboxStatus.js");
42
42
  const Metadata_js_1 = require("./Metadata.js");
43
+ const PauseAt_js_1 = require("./PauseAt.js");
43
44
  exports.CreateInboxRequest = core.serialization.object({
44
45
  username: core.serialization.string().optional(),
45
46
  domain: core.serialization.string().optional(),
46
47
  displayName: core.serialization.property("display_name", DisplayName_js_1.DisplayName.optional()),
47
48
  clientId: core.serialization.property("client_id", ClientId_js_1.ClientId.optional()),
48
49
  status: InboxStatus_js_1.InboxStatus.optional(),
50
+ pauseAt: core.serialization.property("pause_at", PauseAt_js_1.PauseAt.optional()),
49
51
  metadata: Metadata_js_1.Metadata.optional(),
50
52
  });
@@ -8,6 +8,7 @@ import { Email } from "./Email.js";
8
8
  import { InboxId } from "./InboxId.js";
9
9
  import { InboxStatus } from "./InboxStatus.js";
10
10
  import { Metadata } from "./Metadata.js";
11
+ import { PauseAt } from "./PauseAt.js";
11
12
  export declare const Inbox: core.serialization.ObjectSchema<serializers.inboxes.Inbox.Raw, AgentMail.inboxes.Inbox>;
12
13
  export declare namespace Inbox {
13
14
  interface Raw {
@@ -17,6 +18,7 @@ export declare namespace Inbox {
17
18
  display_name?: DisplayName.Raw | null;
18
19
  client_id?: ClientId.Raw | null;
19
20
  status?: InboxStatus.Raw | null;
21
+ pause_at?: PauseAt.Raw | null;
20
22
  metadata?: Metadata.Raw | null;
21
23
  updated_at: string;
22
24
  created_at: string;
@@ -43,6 +43,7 @@ const Email_js_1 = require("./Email.js");
43
43
  const InboxId_js_1 = require("./InboxId.js");
44
44
  const InboxStatus_js_1 = require("./InboxStatus.js");
45
45
  const Metadata_js_1 = require("./Metadata.js");
46
+ const PauseAt_js_1 = require("./PauseAt.js");
46
47
  exports.Inbox = core.serialization.object({
47
48
  podId: core.serialization.property("pod_id", PodId_js_1.PodId),
48
49
  inboxId: core.serialization.property("inbox_id", InboxId_js_1.InboxId),
@@ -50,6 +51,7 @@ exports.Inbox = core.serialization.object({
50
51
  displayName: core.serialization.property("display_name", DisplayName_js_1.DisplayName.optional()),
51
52
  clientId: core.serialization.property("client_id", ClientId_js_1.ClientId.optional()),
52
53
  status: InboxStatus_js_1.InboxStatus.optional(),
54
+ pauseAt: core.serialization.property("pause_at", PauseAt_js_1.PauseAt.optional()),
53
55
  metadata: Metadata_js_1.Metadata.optional(),
54
56
  updatedAt: core.serialization.property("updated_at", core.serialization.date()),
55
57
  createdAt: core.serialization.property("created_at", core.serialization.date()),
@@ -0,0 +1,7 @@
1
+ import type * as AgentMail from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ export declare const PauseAt: core.serialization.Schema<serializers.inboxes.PauseAt.Raw, AgentMail.inboxes.PauseAt>;
5
+ export declare namespace PauseAt {
6
+ type Raw = string;
7
+ }