Skip to content

feat(tem): add domain records and DMARC configuration #2022

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions api/tem/v1alpha1/tem_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,15 @@ func (enum *ListEmailsRequestOrderBy) UnmarshalJSON(data []byte) error {
return nil
}

// DomainRecordsDMARC: domain records dmarc.
type DomainRecordsDMARC struct {
// Name: name of the DMARC TXT record.
Name string `json:"name"`

// Value: value of the DMARC TXT record.
Value string `json:"value"`
}

// EmailTry: email try.
type EmailTry struct {
// Rank: rank number of this attempt to send the email.
Expand All @@ -342,6 +351,12 @@ type EmailTry struct {
Message string `json:"message"`
}

// DomainRecords: domain records.
type DomainRecords struct {
// Dmarc: dMARC TXT record specification.
Dmarc *DomainRecordsDMARC `json:"dmarc"`
}

// DomainReputation: domain reputation.
type DomainReputation struct {
// Status: status of your domain's reputation.
Expand Down Expand Up @@ -536,6 +551,9 @@ type Domain struct {
// Reputation: the domain's reputation is available when your domain is checked and has sent enough emails.
Reputation *DomainReputation `json:"reputation"`

// Records: list of records to configure to validate a domain.
Records *DomainRecords `json:"records"`

// Region: region to target. If none is passed will use default region from the config.
Region scw.Region `json:"region"`
}
Expand Down