Skip to content

Commit

Permalink
feat(tem): add dmarc validation status to DomainLastStatus (#1981)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot committed Jan 25, 2024
1 parent 009352e commit 2ed7c55
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions api/tem/v1alpha1/tem_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,19 @@ type DomainLastStatusDkimRecord struct {
Error *string `json:"error"`
}

// DomainLastStatusDmarcRecord: domain last status dmarc record.
type DomainLastStatusDmarcRecord struct {
// Status: status of the DMARC record's configuration.
// Default value: unknown_record_status
Status DomainLastStatusRecordStatus `json:"status"`

// LastValidAt: time and date the DMARC record was last valid.
LastValidAt *time.Time `json:"last_valid_at"`

// Error: an error text displays in case the record is not valid.
Error *string `json:"error"`
}

// DomainLastStatusSpfRecord: domain last status spf record.
type DomainLastStatusSpfRecord struct {
// Status: status of the SPF record's configuration.
Expand Down Expand Up @@ -618,6 +631,9 @@ type DomainLastStatus struct {

// DkimRecord: the DKIM record verification data.
DkimRecord *DomainLastStatusDkimRecord `json:"dkim_record"`

// DmarcRecord: the DMARC record verification data.
DmarcRecord *DomainLastStatusDmarcRecord `json:"dmarc_record"`
}

// GetDomainLastStatusRequest: get domain last status request.
Expand Down

0 comments on commit 2ed7c55

Please sign in to comment.