forked from clerk/clerk-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
instance_settings.go
25 lines (23 loc) · 1.07 KB
/
instance_settings.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package clerk
type InstanceRestrictions struct {
APIResource
Object string `json:"object"`
Allowlist bool `json:"allowlist"`
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"`
}
type OrganizationSettings struct {
APIResource
Object string `json:"object"`
Enabled bool `json:"enabled"`
MaxAllowedMemberships int64 `json:"max_allowed_memberships"`
MaxAllowedRoles int64 `json:"max_allowed_roles"`
MaxAllowedPermissions int64 `json:"max_allowed_permissions"`
CreatorRole string `json:"creator_role"`
AdminDeleteEnabled bool `json:"admin_delete_enabled"`
DomainsEnabled bool `json:"domains_enabled"`
DomainsEnrollmentModes []string `json:"domains_enrollment_modes"`
DomainsDefaultRole string `json:"domains_default_role"`
}