@@ -513,6 +513,180 @@ export interface SpamAnalysisResult {
513
513
score ?: number ;
514
514
}
515
515
516
+ /**
517
+ * The results of deliverability report performed by Mailosaur.
518
+ */
519
+ export interface DeliverabilityReport {
520
+ /**
521
+ * The result of checking for SPF issues
522
+ */
523
+ spf ?: EmailAuthenticationResult ;
524
+ /**
525
+ * The result of checking for DKIM issues
526
+ */
527
+ dkim ?: EmailAuthenticationResult [ ] ;
528
+ /**
529
+ * The result of checking for DMARC issues
530
+ */
531
+ dmarc ?: EmailAuthenticationResult ;
532
+ /**
533
+ * The result of each blocklist that was checked
534
+ */
535
+ blockLists ?: BlockListResult [ ] ;
536
+ /**
537
+ * The result of content checks made on the email
538
+ */
539
+ content ?: Content ;
540
+ /**
541
+ * The DNS records checks made against the sender's domain
542
+ */
543
+ dnsRecords ?: DnsRecords ;
544
+ /**
545
+ * The result of spam analysis performed by Mailosaur
546
+ */
547
+ spamAssassin ?: SpamAssassinResult ;
548
+ }
549
+
550
+ /**
551
+ * The result of an email domain check
552
+ */
553
+ export interface EmailAuthenticationResult {
554
+ /**
555
+ * The result of the check
556
+ */
557
+ result ?: ResultEnum ;
558
+ /**
559
+ * A description of any issue/notes found
560
+ */
561
+ description ?: string ;
562
+ /**
563
+ * The raw values returned from the check
564
+ */
565
+ rawValue ?: string ;
566
+ /**
567
+ * The seperated tags returned from the check
568
+ */
569
+ tags ?: { [ key : string ] : string } ;
570
+ }
571
+
572
+ /**
573
+ * The result of an domain check against a blocklist checker
574
+ */
575
+ export interface BlockListResult {
576
+ /**
577
+ * The identifier of the blocklist
578
+ */
579
+ id : string ;
580
+ /**
581
+ * The name of the blocklist
582
+ */
583
+ name : string ;
584
+ /**
585
+ * The result of the blocklist check
586
+ */
587
+ result : ResultEnum ;
588
+ }
589
+
590
+ /**
591
+ * The results of email content analysis
592
+ */
593
+ export interface Content {
594
+ /**
595
+ * The content contained embed tags
596
+ */
597
+ embed : boolean ;
598
+ /**
599
+ * The content contained Iframe tags
600
+ */
601
+ iframe : boolean ;
602
+ /**
603
+ * The content contained object tags
604
+ */
605
+ object : boolean ;
606
+ /**
607
+ * The content contained script tags
608
+ */
609
+ script : boolean ;
610
+ /**
611
+ * The content contained URL's that have been shortened
612
+ */
613
+ shortUrls : boolean ;
614
+ /**
615
+ * The length of all text that the content contained
616
+ */
617
+ textSize : number ;
618
+ /**
619
+ * The length of all HTML that the content contained
620
+ */
621
+ totalSize : number ;
622
+ /**
623
+ * Image(s) were missing "alt" properties
624
+ */
625
+ missingAlt : boolean ;
626
+ /**
627
+ * The message is missing a "List-Unsubscribe" header
628
+ */
629
+ missingListUnsubscribe : boolean ;
630
+ }
631
+
632
+ /**
633
+ * The records found when checking DNS records of an email sender's domain
634
+ */
635
+ export interface DnsRecords {
636
+ /**
637
+ * The A Records of the sender's domain
638
+ */
639
+ a ?: string [ ] ;
640
+ /**
641
+ * The MX Records of the sender's domain
642
+ */
643
+ mx ?: string [ ] ;
644
+ /**
645
+ * The PTR Record of the sender's domain
646
+ */
647
+ ptr ?: string [ ] ;
648
+ }
649
+
650
+ /**
651
+ * The results of spam assassin check performed by Mailosaur.
652
+ */
653
+ export interface SpamAssassinResult {
654
+ /**
655
+ * Overall Mailosaur spam score.
656
+ */
657
+ score : number ;
658
+ /**
659
+ * The result of the spam check
660
+ */
661
+ result : ResultEnum ;
662
+ /**
663
+ * Spam Assassin filter rules.
664
+ */
665
+ rules : SpamAssassinRule [ ] ;
666
+ }
667
+
668
+ /**
669
+ * The result of a deliverability check
670
+ */
671
+ export enum ResultEnum {
672
+ /**
673
+ * The check had a positive result
674
+ */
675
+ Pass ,
676
+ /**
677
+ * The check was acceptable but could be improved
678
+ */
679
+ Warning ,
680
+ /**
681
+ * The check had a negative result
682
+ */
683
+ Fail ,
684
+ /**
685
+ * The check was inconclusive due to a timeout
686
+ */
687
+ Timeout
688
+ }
689
+
516
690
/**
517
691
* The detail of an individual account limit.
518
692
*/
@@ -1023,7 +1197,17 @@ declare global {
1023
1197
* The identifier of the message to be analyzed.
1024
1198
*/
1025
1199
messageId : string
1026
- ) : Chainable < SpamAnalysisResult > ;
1200
+ ) : Cypress . Chainable < SpamAnalysisResult > ;
1201
+
1202
+ /**
1203
+ * Perform a deliverability report of an email.
1204
+ */
1205
+ mailosaurGetDeliverabilityReport (
1206
+ /**
1207
+ * The identifier of the message to be analyzed.
1208
+ */
1209
+ messageId : string
1210
+ ) : Cypress . Chainable < DeliverabilityReport > ;
1027
1211
1028
1212
/**
1029
1213
* Generates a random email address by appending a random string in front of the server's
0 commit comments