Skip to content

Commit 1ecbdb3

Browse files
authored
feat(tem): add dkim, spf and mx records in domain message (scaleway#2731)
1 parent 1ba44cd commit 1ecbdb3

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

api/tem/v1alpha1/tem_sdk.go

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,15 @@ func (enum *WebhookEventType) UnmarshalJSON(data []byte) error {
857857
return nil
858858
}
859859

860+
// DomainRecordsDKIM: domain records dkim.
861+
type DomainRecordsDKIM struct {
862+
// Name: name of the DKIM TXT record.
863+
Name string `json:"name"`
864+
865+
// Value: value of the DKIM TXT record.
866+
Value string `json:"value"`
867+
}
868+
860869
// DomainRecordsDMARC: domain records dmarc.
861870
type DomainRecordsDMARC struct {
862871
// Name: name of the DMARC TXT record.
@@ -866,6 +875,24 @@ type DomainRecordsDMARC struct {
866875
Value string `json:"value"`
867876
}
868877

878+
// DomainRecordsMX: domain records mx.
879+
type DomainRecordsMX struct {
880+
// Name: name of the MX record.
881+
Name string `json:"name"`
882+
883+
// Value: value of the MX record.
884+
Value string `json:"value"`
885+
}
886+
887+
// DomainRecordsSPF: domain records spf.
888+
type DomainRecordsSPF struct {
889+
// Name: name of the SPF TXT record.
890+
Name string `json:"name"`
891+
892+
// Value: value of the SPF TXT record.
893+
Value string `json:"value"`
894+
}
895+
869896
// EmailTry: email try.
870897
type EmailTry struct {
871898
// Rank: rank number of this attempt to send the email.
@@ -885,6 +912,15 @@ type EmailTry struct {
885912
type DomainRecords struct {
886913
// Dmarc: dMARC TXT record specification.
887914
Dmarc *DomainRecordsDMARC `json:"dmarc"`
915+
916+
// Dkim: dKIM TXT record specification.
917+
Dkim *DomainRecordsDKIM `json:"dkim"`
918+
919+
// Spf: sPF TXT record specification.
920+
Spf *DomainRecordsSPF `json:"spf"`
921+
922+
// Mx: mX record specification.
923+
Mx *DomainRecordsMX `json:"mx"`
888924
}
889925

890926
// DomainReputation: domain reputation.

0 commit comments

Comments
 (0)