Skip to content

Commit

Permalink
feat: add IgnoreDotsForGmailAddresses restriction on sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasLopes7 committed May 2, 2024
1 parent 767757c commit cb34d29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clerk/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,15 @@ type InstanceRestrictionsResponse struct {
Blocklist bool `json:"blocklist"`
BlockEmailSubaddresses bool `json:"block_email_subaddresses"`
BlockDisposableEmailDomains bool `json:"block_disposable_email_domains"`
IgnoreDotsForGmailAddresses *bool `json:"ignore_dots_for_gmail_addresses,omitempty"`
}

type UpdateRestrictionsParams struct {
Allowlist *bool `json:"allowlist,omitempty"`
Blocklist *bool `json:"blocklist,omitempty"`
BlockEmailSubaddresses *bool `json:"block_email_subaddresses,omitempty"`
BlockDisposableEmailDomains *bool `json:"block_disposable_email_domains,omitempty"`
IgnoreDotsForGmailAddresses *bool `json:"ignore_dots_for_gmail_addresses,omitempty"`
}

func (s *InstanceService) UpdateRestrictions(params UpdateRestrictionsParams) (*InstanceRestrictionsResponse, error) {
Expand Down

0 comments on commit cb34d29

Please sign in to comment.