@primitivedotdev/sdk 1.3.0 → 1.5.0

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.
@@ -32,9 +32,17 @@ interface EmailReceivedEvent$1 {
32
32
  */
33
33
  id: string;
34
34
  /**
35
- * Event type identifier. Always `"email.received"` for this event type.
35
+ * Event type identifier.
36
+ *
37
+ * - `email.received` - A normal inbound email.
38
+ * - `email.bounced` - A delivery status notification (DSN) reporting that a message delivery failed. Carries `email.analysis.bounce`.
39
+ * - `email.tls_report` - An SMTP TLS report (RFC 8460). Carries `email.analysis.tls_report`.
40
+ * - `email.dmarc_report` - A DMARC aggregate report (RFC 7489). Carries `email.analysis.dmarc_report`.
41
+ * - `email.dmarc_failure` - A DMARC failure (forensic) report.
42
+ *
43
+ * Machine-generated mail (bounces and the report types above) is delivered under its own event type rather than `email.received`, so an endpoint subscribed only to `email.received` receives just normal inbound mail. The payload shape is otherwise identical across event types; the type-specific details live under `email.analysis`.
36
44
  */
37
- event: "email.received";
45
+ event: ("email.received" | "email.bounced" | "email.tls_report" | "email.dmarc_report" | "email.dmarc_failure");
38
46
  /**
39
47
  * API version in date format (YYYY-MM-DD). Use this to detect version mismatches between webhook and SDK.
40
48
  */
@@ -414,6 +422,9 @@ interface EmailAnalysis$1 {
414
422
  score: number;
415
423
  };
416
424
  forward?: ForwardAnalysis$1;
425
+ bounce?: BounceAnalysis$1;
426
+ tls_report?: TlsReportAnalysis$1;
427
+ dmarc_report?: DmarcReportAnalysis$1;
417
428
  }
418
429
  /**
419
430
  * Forward detection and analysis results.
@@ -589,6 +600,192 @@ interface ForwardResultAttachmentSkipped$1 {
589
600
  */
590
601
  summary: string;
591
602
  }
603
+ /**
604
+ * Bounce (delivery status notification) analysis.
605
+ *
606
+ * Present on `email.bounced` events: the parsed DSN reporting that a message you sent could not be delivered. Absent on all other event types.
607
+ */
608
+ interface BounceAnalysis$1 {
609
+ /**
610
+ * Always `true` on a parsed bounce.
611
+ */
612
+ is_bounce: true;
613
+ /**
614
+ * The machine-mail kind. Always `dsn` for a bounce.
615
+ */
616
+ kind: "dsn";
617
+ /**
618
+ * Whether the failure is permanent (hard bounce), transient (soft bounce, may be retried), or undetermined.
619
+ */
620
+ type: ("permanent" | "transient" | "undetermined");
621
+ /**
622
+ * Best-effort reason category for the failure.
623
+ */
624
+ category: ("mailbox_does_not_exist" | "domain_does_not_exist" | "domain_not_accepting_mail" | "mailbox_full" | "mailbox_inactive" | "message_too_large" | "content_rejected" | "policy_blocked" | "auth_failure" | "relay_denied" | "rate_limited" | "network_error" | "recipient_moved" | "expired" | "undetermined");
625
+ /**
626
+ * Which signal produced `category` (for transparency and debugging).
627
+ */
628
+ classified_by: ("status_code" | "smtp_code" | "pattern" | "provider" | "none");
629
+ /**
630
+ * The recipient address that failed, if the report identifies one.
631
+ */
632
+ failed_recipient: (string | null);
633
+ /**
634
+ * SMTP reply code (e.g. `550`), if reported.
635
+ */
636
+ smtp_code: (number | null);
637
+ /**
638
+ * Enhanced mail system status code (RFC 3463, e.g. `5.1.1`), if reported.
639
+ */
640
+ status_code: (string | null);
641
+ /**
642
+ * Raw diagnostic text from the reporting MTA, if present.
643
+ */
644
+ diagnostic_code: (string | null);
645
+ /**
646
+ * The MTA that generated the report, if identifiable.
647
+ */
648
+ reported_by_mta: (string | null);
649
+ /**
650
+ * Message-ID of the original message that bounced, if recoverable. Match this against the `message_id` of a message you sent to correlate the bounce.
651
+ */
652
+ original_message_id: (string | null);
653
+ /**
654
+ * Human-readable reason strings extracted from the report.
655
+ */
656
+ reasons: string[];
657
+ }
658
+ /**
659
+ * SMTP TLS report analysis (RFC 8460).
660
+ *
661
+ * Present on `email.tls_report` events: a remote MTA's report of TLS negotiation results for mail sent to your domain. Absent on all other event types.
662
+ */
663
+ interface TlsReportAnalysis$1 {
664
+ kind: "tls_report";
665
+ /**
666
+ * Reporting organization name.
667
+ */
668
+ organization: (string | null);
669
+ report_id: (string | null);
670
+ /**
671
+ * Reporter contact, if provided.
672
+ */
673
+ contact: (string | null);
674
+ date_range: {
675
+ /**
676
+ * ISO 8601 start of the reporting window.
677
+ */
678
+ start: (string | null);
679
+ /**
680
+ * ISO 8601 end of the reporting window.
681
+ */
682
+ end: (string | null);
683
+ };
684
+ total_successful_sessions: number;
685
+ total_failed_sessions: number;
686
+ policies: TlsReportPolicy[];
687
+ }
688
+ /**
689
+ * This interface was referenced by `EmailReceivedEvent`'s JSON-Schema
690
+ * via the `definition` "TlsReportPolicy".
691
+ */
692
+ interface TlsReportPolicy {
693
+ policy_domain: (string | null);
694
+ /**
695
+ * Policy type the sessions were evaluated against (e.g. `sts`, `tlsa`, `no-policy-found`).
696
+ */
697
+ policy_type: (string | null);
698
+ successful_sessions: number;
699
+ failed_sessions: number;
700
+ failures: TlsReportFailure[];
701
+ }
702
+ /**
703
+ * This interface was referenced by `EmailReceivedEvent`'s JSON-Schema
704
+ * via the `definition` "TlsReportFailure".
705
+ */
706
+ interface TlsReportFailure {
707
+ /**
708
+ * Failure result type (e.g. `certificate-expired`, `starttls-not-supported`).
709
+ */
710
+ result_type: (string | null);
711
+ /**
712
+ * Number of sessions that hit this failure.
713
+ */
714
+ count: number;
715
+ sending_mta_ip: (string | null);
716
+ receiving_mx_hostname: (string | null);
717
+ }
718
+ /**
719
+ * DMARC aggregate report analysis (RFC 7489).
720
+ *
721
+ * Present on `email.dmarc_report` events: a receiver's periodic aggregate report of DMARC authentication results for your domain. Absent on all other event types.
722
+ */
723
+ interface DmarcReportAnalysis$1 {
724
+ kind: "dmarc_report";
725
+ organization: (string | null);
726
+ report_id: (string | null);
727
+ date_range: {
728
+ /**
729
+ * ISO 8601 start of the reporting window.
730
+ */
731
+ start: (string | null);
732
+ /**
733
+ * ISO 8601 end of the reporting window.
734
+ */
735
+ end: (string | null);
736
+ };
737
+ policy_published: {
738
+ domain: (string | null);
739
+ /**
740
+ * Published domain policy: `none`, `quarantine`, or `reject`.
741
+ */
742
+ p: (string | null);
743
+ /**
744
+ * Published subdomain policy.
745
+ */
746
+ sp: (string | null);
747
+ /**
748
+ * Percentage of messages the policy is applied to.
749
+ */
750
+ pct: (number | null);
751
+ /**
752
+ * DKIM alignment mode: `r` (relaxed) or `s` (strict).
753
+ */
754
+ adkim: (string | null);
755
+ /**
756
+ * SPF alignment mode: `r` (relaxed) or `s` (strict).
757
+ */
758
+ aspf: (string | null);
759
+ };
760
+ /**
761
+ * Total messages covered by the report.
762
+ */
763
+ total_count: number;
764
+ dkim_pass_count: number;
765
+ spf_pass_count: number;
766
+ records: DmarcRecord[];
767
+ }
768
+ /**
769
+ * This interface was referenced by `EmailReceivedEvent`'s JSON-Schema
770
+ * via the `definition` "DmarcRecord".
771
+ */
772
+ interface DmarcRecord {
773
+ source_ip: (string | null);
774
+ count: number;
775
+ /**
776
+ * Disposition applied by the receiver: `none`, `quarantine`, or `reject`.
777
+ */
778
+ disposition: (string | null);
779
+ /**
780
+ * DKIM alignment result: `pass` or `fail`.
781
+ */
782
+ dkim: (string | null);
783
+ /**
784
+ * SPF alignment result: `pass` or `fail`.
785
+ */
786
+ spf: (string | null);
787
+ header_from: (string | null);
788
+ }
592
789
  /**
593
790
  * Email authentication results (SPF, DKIM, DMARC).
594
791
  */
@@ -705,6 +902,10 @@ type EmailReceivedEvent = EmailReceivedEvent$1;
705
902
  type EventType = EmailReceivedEvent["event"];
706
903
  declare const EventType: {
707
904
  readonly EmailReceived: "email.received";
905
+ readonly EmailBounced: "email.bounced";
906
+ readonly EmailTlsReport: "email.tls_report";
907
+ readonly EmailDmarcReport: "email.dmarc_report";
908
+ readonly EmailDmarcFailure: "email.dmarc_failure";
708
909
  };
709
910
  type RawContent = EmailReceivedEvent["email"]["content"]["raw"];
710
911
  type RawContentInline = Extract<RawContent, {
@@ -731,6 +932,9 @@ type WebhookAttachment = ParsedDataComplete["attachments"][number];
731
932
  type EmailAnalysis = EmailReceivedEvent["email"]["analysis"];
732
933
  type ForwardAnalysis = NonNullable<EmailAnalysis["forward"]>;
733
934
  type ForwardResult = ForwardAnalysis["results"][number];
935
+ type BounceAnalysis = NonNullable<EmailAnalysis["bounce"]>;
936
+ type TlsReportAnalysis = NonNullable<EmailAnalysis["tls_report"]>;
937
+ type DmarcReportAnalysis = NonNullable<EmailAnalysis["dmarc_report"]>;
734
938
  type ForwardResultInline = Extract<ForwardResult, {
735
939
  type: "inline";
736
940
  }>;
@@ -812,4 +1016,4 @@ interface UnknownEvent {
812
1016
  type KnownWebhookEvent = EmailReceivedEvent;
813
1017
  type WebhookEvent = KnownWebhookEvent | UnknownEvent;
814
1018
  //#endregion
815
- export { UnknownEvent as A, ParsedDataFailed as C, RawContentDownloadOnly as D, RawContent as E, WebhookAttachment as M, WebhookEvent as N, RawContentInline as O, ParsedDataComplete as S, ParsedStatus as T, ForwardResultInline as _, DmarcPolicy as a, KnownWebhookEvent as b, EmailAnalysis as c, EventType as d, ForwardAnalysis as f, ForwardResultAttachmentSkipped as g, ForwardResultAttachmentAnalyzed as h, DkimSignature as i, ValidateEmailAuthResult as j, SpfResult as k, EmailAuth as l, ForwardResult as m, AuthVerdict as n, DmarcResult as o, ForwardOriginalSender as p, DkimResult as r, EmailAddress as s, AuthConfidence as t, EmailReceivedEvent as u, ForwardVerdict as v, ParsedError as w, ParsedData as x, ForwardVerification as y };
1019
+ export { RawContentInline as A, ParsedData as C, ParsedStatus as D, ParsedError as E, WebhookAttachment as F, WebhookEvent as I, TlsReportAnalysis as M, UnknownEvent as N, RawContent as O, ValidateEmailAuthResult as P, KnownWebhookEvent as S, ParsedDataFailed as T, ForwardResultAttachmentAnalyzed as _, DkimSignature as a, ForwardVerdict as b, DmarcResult as c, EmailAuth as d, EmailReceivedEvent as f, ForwardResult as g, ForwardOriginalSender as h, DkimResult as i, SpfResult as j, RawContentDownloadOnly as k, EmailAddress as l, ForwardAnalysis as m, AuthVerdict as n, DmarcPolicy as o, EventType as p, BounceAnalysis as r, DmarcReportAnalysis as s, AuthConfidence as t, EmailAnalysis as u, ForwardResultAttachmentSkipped as v, ParsedDataComplete as w, ForwardVerification as x, ForwardResultInline as y };
@@ -1,4 +1,4 @@
1
- import { A as UnknownEvent, C as ParsedDataFailed, D as RawContentDownloadOnly, E as RawContent, M as WebhookAttachment, N as WebhookEvent, O as RawContentInline, S as ParsedDataComplete, T as ParsedStatus, _ as ForwardResultInline, a as DmarcPolicy, b as KnownWebhookEvent, c as EmailAnalysis, d as EventType, f as ForwardAnalysis, g as ForwardResultAttachmentSkipped, h as ForwardResultAttachmentAnalyzed, i as DkimSignature, j as ValidateEmailAuthResult, k as SpfResult, l as EmailAuth, m as ForwardResult, n as AuthVerdict, o as DmarcResult, p as ForwardOriginalSender, r as DkimResult, s as EmailAddress, t as AuthConfidence, u as EmailReceivedEvent, v as ForwardVerdict, w as ParsedError, x as ParsedData, y as ForwardVerification } from "../types-yNU-Oiea.js";
2
- import { _ as buildForwardSubject, a as RawEmailDecodeErrorCode, b as normalizeReceivedEmail, c as WebhookPayloadError, d as WebhookValidationErrorCode, f as WebhookVerificationError, g as ReceivedEmailThread, h as ReceivedEmailAddress, i as RawEmailDecodeError, l as WebhookPayloadErrorCode, m as ReceivedEmail, n as PrimitiveWebhookError, o as VERIFICATION_ERRORS, p as WebhookVerificationErrorCode, r as RAW_EMAIL_ERRORS, s as WebhookErrorCode, t as PAYLOAD_ERRORS, u as WebhookValidationError, v as buildReplySubject, x as parseHeaderAddress, y as formatAddress } from "../errors-7E9sW9eX.js";
3
- import { A as VerifyOptions, C as signStandardWebhooksPayload, D as PRIMITIVE_CONFIRMED_HEADER, E as LEGACY_SIGNATURE_HEADER, F as VerifyDownloadTokenResult, I as generateDownloadToken, L as verifyDownloadToken, M as verifyWebhookSignature, N as GenerateDownloadTokenOptions, O as PRIMITIVE_SIGNATURE_HEADER, P as VerifyDownloadTokenOptions, R as safeValidateEmailReceivedEvent, S as StandardWebhooksVerifyOptions, T as LEGACY_CONFIRMED_HEADER, _ as emailReceivedEventJsonSchema, a as confirmedHeaders, b as STANDARD_WEBHOOK_TIMESTAMP_HEADER, c as handleWebhook, d as isRawIncluded, f as parseWebhookEvent, g as validateEmailAuth, h as WEBHOOK_VERSION, i as WebhookHeaders, j as signWebhookPayload, k as SignResult, l as isDownloadExpired, m as verifyRawEmailDownload, n as HandleWebhookOptions, o as decodeRawEmail, p as receive, r as ReceiveRequestOptions, s as getDownloadTimeRemaining, t as DecodeRawEmailOptions, u as isEmailReceivedEvent, v as STANDARD_WEBHOOK_ID_HEADER, w as verifyStandardWebhooksSignature, x as StandardWebhooksSignResult, y as STANDARD_WEBHOOK_SIGNATURE_HEADER, z as validateEmailReceivedEvent } from "../index-DR978rq5.js";
4
- export { AuthConfidence, AuthVerdict, DecodeRawEmailOptions, DkimResult, DkimSignature, DmarcPolicy, DmarcResult, EmailAddress, EmailAnalysis, EmailAuth, EmailReceivedEvent, EventType, ForwardAnalysis, ForwardOriginalSender, ForwardResult, ForwardResultAttachmentAnalyzed, ForwardResultAttachmentSkipped, ForwardResultInline, ForwardVerdict, ForwardVerification, GenerateDownloadTokenOptions, HandleWebhookOptions, KnownWebhookEvent, LEGACY_CONFIRMED_HEADER, LEGACY_SIGNATURE_HEADER, PAYLOAD_ERRORS, PRIMITIVE_CONFIRMED_HEADER, PRIMITIVE_SIGNATURE_HEADER, ParsedData, ParsedDataComplete, ParsedDataFailed, ParsedError, ParsedStatus, PrimitiveWebhookError, RAW_EMAIL_ERRORS, RawContent, RawContentDownloadOnly, RawContentInline, RawEmailDecodeError, RawEmailDecodeErrorCode, ReceiveRequestOptions, ReceivedEmail, ReceivedEmailAddress, ReceivedEmailThread, STANDARD_WEBHOOK_ID_HEADER, STANDARD_WEBHOOK_SIGNATURE_HEADER, STANDARD_WEBHOOK_TIMESTAMP_HEADER, SignResult, SpfResult, StandardWebhooksSignResult, StandardWebhooksVerifyOptions, UnknownEvent, VERIFICATION_ERRORS, ValidateEmailAuthResult, VerifyDownloadTokenOptions, VerifyDownloadTokenResult, VerifyOptions, WEBHOOK_VERSION, WebhookAttachment, WebhookErrorCode, WebhookEvent, WebhookHeaders, WebhookPayloadError, WebhookPayloadErrorCode, WebhookValidationError, WebhookValidationErrorCode, WebhookVerificationError, WebhookVerificationErrorCode, buildForwardSubject, buildReplySubject, confirmedHeaders, decodeRawEmail, emailReceivedEventJsonSchema, formatAddress, generateDownloadToken, getDownloadTimeRemaining, handleWebhook, isDownloadExpired, isEmailReceivedEvent, isRawIncluded, normalizeReceivedEmail, parseHeaderAddress, parseWebhookEvent, receive, safeValidateEmailReceivedEvent, signStandardWebhooksPayload, signWebhookPayload, validateEmailAuth, validateEmailReceivedEvent, verifyDownloadToken, verifyRawEmailDownload, verifyStandardWebhooksSignature, verifyWebhookSignature };
1
+ import { A as RawContentInline, C as ParsedData, D as ParsedStatus, E as ParsedError, F as WebhookAttachment, I as WebhookEvent, M as TlsReportAnalysis, N as UnknownEvent, O as RawContent, P as ValidateEmailAuthResult, S as KnownWebhookEvent, T as ParsedDataFailed, _ as ForwardResultAttachmentAnalyzed, a as DkimSignature, b as ForwardVerdict, c as DmarcResult, d as EmailAuth, f as EmailReceivedEvent, g as ForwardResult, h as ForwardOriginalSender, i as DkimResult, j as SpfResult, k as RawContentDownloadOnly, l as EmailAddress, m as ForwardAnalysis, n as AuthVerdict, o as DmarcPolicy, p as EventType, r as BounceAnalysis, s as DmarcReportAnalysis, t as AuthConfidence, u as EmailAnalysis, v as ForwardResultAttachmentSkipped, w as ParsedDataComplete, x as ForwardVerification, y as ForwardResultInline } from "../types-QT2ss9ho.js";
2
+ import { _ as buildForwardSubject, a as RawEmailDecodeErrorCode, b as normalizeReceivedEmail, c as WebhookPayloadError, d as WebhookValidationErrorCode, f as WebhookVerificationError, g as ReceivedEmailThread, h as ReceivedEmailAddress, i as RawEmailDecodeError, l as WebhookPayloadErrorCode, m as ReceivedEmail, n as PrimitiveWebhookError, o as VERIFICATION_ERRORS, p as WebhookVerificationErrorCode, r as RAW_EMAIL_ERRORS, s as WebhookErrorCode, t as PAYLOAD_ERRORS, u as WebhookValidationError, v as buildReplySubject, x as parseHeaderAddress, y as formatAddress } from "../errors-DyuAXctD.js";
3
+ import { A as VerifyOptions, C as signStandardWebhooksPayload, D as PRIMITIVE_CONFIRMED_HEADER, E as LEGACY_SIGNATURE_HEADER, F as VerifyDownloadTokenResult, I as generateDownloadToken, L as verifyDownloadToken, M as verifyWebhookSignature, N as GenerateDownloadTokenOptions, O as PRIMITIVE_SIGNATURE_HEADER, P as VerifyDownloadTokenOptions, R as safeValidateEmailReceivedEvent, S as StandardWebhooksVerifyOptions, T as LEGACY_CONFIRMED_HEADER, _ as emailReceivedEventJsonSchema, a as confirmedHeaders, b as STANDARD_WEBHOOK_TIMESTAMP_HEADER, c as handleWebhook, d as isRawIncluded, f as parseWebhookEvent, g as validateEmailAuth, h as WEBHOOK_VERSION, i as WebhookHeaders, j as signWebhookPayload, k as SignResult, l as isDownloadExpired, m as verifyRawEmailDownload, n as HandleWebhookOptions, o as decodeRawEmail, p as receive, r as ReceiveRequestOptions, s as getDownloadTimeRemaining, t as DecodeRawEmailOptions, u as isEmailReceivedEvent, v as STANDARD_WEBHOOK_ID_HEADER, w as verifyStandardWebhooksSignature, x as StandardWebhooksSignResult, y as STANDARD_WEBHOOK_SIGNATURE_HEADER, z as validateEmailReceivedEvent } from "../index-iZWfb98V.js";
4
+ export { AuthConfidence, AuthVerdict, BounceAnalysis, DecodeRawEmailOptions, DkimResult, DkimSignature, DmarcPolicy, DmarcReportAnalysis, DmarcResult, EmailAddress, EmailAnalysis, EmailAuth, EmailReceivedEvent, EventType, ForwardAnalysis, ForwardOriginalSender, ForwardResult, ForwardResultAttachmentAnalyzed, ForwardResultAttachmentSkipped, ForwardResultInline, ForwardVerdict, ForwardVerification, GenerateDownloadTokenOptions, HandleWebhookOptions, KnownWebhookEvent, LEGACY_CONFIRMED_HEADER, LEGACY_SIGNATURE_HEADER, PAYLOAD_ERRORS, PRIMITIVE_CONFIRMED_HEADER, PRIMITIVE_SIGNATURE_HEADER, ParsedData, ParsedDataComplete, ParsedDataFailed, ParsedError, ParsedStatus, PrimitiveWebhookError, RAW_EMAIL_ERRORS, RawContent, RawContentDownloadOnly, RawContentInline, RawEmailDecodeError, RawEmailDecodeErrorCode, ReceiveRequestOptions, ReceivedEmail, ReceivedEmailAddress, ReceivedEmailThread, STANDARD_WEBHOOK_ID_HEADER, STANDARD_WEBHOOK_SIGNATURE_HEADER, STANDARD_WEBHOOK_TIMESTAMP_HEADER, SignResult, SpfResult, StandardWebhooksSignResult, StandardWebhooksVerifyOptions, TlsReportAnalysis, UnknownEvent, VERIFICATION_ERRORS, ValidateEmailAuthResult, VerifyDownloadTokenOptions, VerifyDownloadTokenResult, VerifyOptions, WEBHOOK_VERSION, WebhookAttachment, WebhookErrorCode, WebhookEvent, WebhookHeaders, WebhookPayloadError, WebhookPayloadErrorCode, WebhookValidationError, WebhookValidationErrorCode, WebhookVerificationError, WebhookVerificationErrorCode, buildForwardSubject, buildReplySubject, confirmedHeaders, decodeRawEmail, emailReceivedEventJsonSchema, formatAddress, generateDownloadToken, getDownloadTimeRemaining, handleWebhook, isDownloadExpired, isEmailReceivedEvent, isRawIncluded, normalizeReceivedEmail, parseHeaderAddress, parseWebhookEvent, receive, safeValidateEmailReceivedEvent, signStandardWebhooksPayload, signWebhookPayload, validateEmailAuth, validateEmailReceivedEvent, verifyDownloadToken, verifyRawEmailDownload, verifyStandardWebhooksSignature, verifyWebhookSignature };
@@ -1,3 +1,3 @@
1
1
  import { a as VERIFICATION_ERRORS, c as WebhookVerificationError, d as formatAddress, f as normalizeReceivedEmail, i as RawEmailDecodeError, l as buildForwardSubject, n as PrimitiveWebhookError, o as WebhookPayloadError, p as parseHeaderAddress, r as RAW_EMAIL_ERRORS, s as WebhookValidationError, t as PAYLOAD_ERRORS, u as buildReplySubject } from "../errors-BPJGp9I6.js";
2
- import { A as PRIMITIVE_CONFIRMED_HEADER, C as STANDARD_WEBHOOK_ID_HEADER, D as verifyStandardWebhooksSignature, E as signStandardWebhooksPayload, F as verifyDownloadToken, I as safeValidateEmailReceivedEvent, L as validateEmailReceivedEvent, M as signWebhookPayload, N as verifyWebhookSignature, O as LEGACY_CONFIRMED_HEADER, P as generateDownloadToken, S as emailReceivedEventJsonSchema, T as STANDARD_WEBHOOK_TIMESTAMP_HEADER, _ as DmarcResult, a as isDownloadExpired, b as ParsedStatus, c as parseWebhookEvent, d as WEBHOOK_VERSION, f as validateEmailAuth, g as DmarcPolicy, h as DkimResult, i as handleWebhook, j as PRIMITIVE_SIGNATURE_HEADER, k as LEGACY_SIGNATURE_HEADER, l as receive, m as AuthVerdict, n as decodeRawEmail, o as isEmailReceivedEvent, p as AuthConfidence, r as getDownloadTimeRemaining, s as isRawIncluded, t as confirmedHeaders, u as verifyRawEmailDownload, v as EventType, w as STANDARD_WEBHOOK_SIGNATURE_HEADER, x as SpfResult, y as ForwardVerdict } from "../webhook-BAwK8EOG.js";
2
+ import { A as PRIMITIVE_CONFIRMED_HEADER, C as STANDARD_WEBHOOK_ID_HEADER, D as verifyStandardWebhooksSignature, E as signStandardWebhooksPayload, F as verifyDownloadToken, I as safeValidateEmailReceivedEvent, L as validateEmailReceivedEvent, M as signWebhookPayload, N as verifyWebhookSignature, O as LEGACY_CONFIRMED_HEADER, P as generateDownloadToken, S as emailReceivedEventJsonSchema, T as STANDARD_WEBHOOK_TIMESTAMP_HEADER, _ as DmarcResult, a as isDownloadExpired, b as ParsedStatus, c as parseWebhookEvent, d as WEBHOOK_VERSION, f as validateEmailAuth, g as DmarcPolicy, h as DkimResult, i as handleWebhook, j as PRIMITIVE_SIGNATURE_HEADER, k as LEGACY_SIGNATURE_HEADER, l as receive, m as AuthVerdict, n as decodeRawEmail, o as isEmailReceivedEvent, p as AuthConfidence, r as getDownloadTimeRemaining, s as isRawIncluded, t as confirmedHeaders, u as verifyRawEmailDownload, v as EventType, w as STANDARD_WEBHOOK_SIGNATURE_HEADER, x as SpfResult, y as ForwardVerdict } from "../webhook-CwjCyFv-.js";
3
3
  export { AuthConfidence, AuthVerdict, DkimResult, DmarcPolicy, DmarcResult, EventType, ForwardVerdict, LEGACY_CONFIRMED_HEADER, LEGACY_SIGNATURE_HEADER, PAYLOAD_ERRORS, PRIMITIVE_CONFIRMED_HEADER, PRIMITIVE_SIGNATURE_HEADER, ParsedStatus, PrimitiveWebhookError, RAW_EMAIL_ERRORS, RawEmailDecodeError, STANDARD_WEBHOOK_ID_HEADER, STANDARD_WEBHOOK_SIGNATURE_HEADER, STANDARD_WEBHOOK_TIMESTAMP_HEADER, SpfResult, VERIFICATION_ERRORS, WEBHOOK_VERSION, WebhookPayloadError, WebhookValidationError, WebhookVerificationError, buildForwardSubject, buildReplySubject, confirmedHeaders, decodeRawEmail, emailReceivedEventJsonSchema, formatAddress, generateDownloadToken, getDownloadTimeRemaining, handleWebhook, isDownloadExpired, isEmailReceivedEvent, isRawIncluded, normalizeReceivedEmail, parseHeaderAddress, parseWebhookEvent, receive, safeValidateEmailReceivedEvent, signStandardWebhooksPayload, signWebhookPayload, validateEmailAuth, validateEmailReceivedEvent, verifyDownloadToken, verifyRawEmailDownload, verifyStandardWebhooksSignature, verifyWebhookSignature };