Skip to content

Commit 2ed7c55

Browse files
authored
feat(tem): add dmarc validation status to DomainLastStatus (#1981)
1 parent 009352e commit 2ed7c55

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

api/tem/v1alpha1/tem_sdk.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,19 @@ type DomainLastStatusDkimRecord struct {
465465
Error *string `json:"error"`
466466
}
467467

468+
// DomainLastStatusDmarcRecord: domain last status dmarc record.
469+
type DomainLastStatusDmarcRecord struct {
470+
// Status: status of the DMARC record's configuration.
471+
// Default value: unknown_record_status
472+
Status DomainLastStatusRecordStatus `json:"status"`
473+
474+
// LastValidAt: time and date the DMARC record was last valid.
475+
LastValidAt *time.Time `json:"last_valid_at"`
476+
477+
// Error: an error text displays in case the record is not valid.
478+
Error *string `json:"error"`
479+
}
480+
468481
// DomainLastStatusSpfRecord: domain last status spf record.
469482
type DomainLastStatusSpfRecord struct {
470483
// Status: status of the SPF record's configuration.
@@ -618,6 +631,9 @@ type DomainLastStatus struct {
618631

619632
// DkimRecord: the DKIM record verification data.
620633
DkimRecord *DomainLastStatusDkimRecord `json:"dkim_record"`
634+
635+
// DmarcRecord: the DMARC record verification data.
636+
DmarcRecord *DomainLastStatusDmarcRecord `json:"dmarc_record"`
621637
}
622638

623639
// GetDomainLastStatusRequest: get domain last status request.

0 commit comments

Comments
 (0)