instancesettings

package
v2.0.2-beta.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 3 Imported by: 3

Documentation

Overview

Code generated by "gen"; DO NOT EDIT. This file is meant to be re-generated in place and/or deleted at any time.

Package instancesettings provides the Instance Settings API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Update

func Update(ctx context.Context, params *UpdateParams) error

Update updates the instance's settings.

func UpdateOrganizationSettings

func UpdateOrganizationSettings(ctx context.Context, params *UpdateOrganizationSettingsParams) (*clerk.OrganizationSettings, error)

UpdateOrganizationSettings updates the organization settings of the instance.

func UpdateRestrictions

func UpdateRestrictions(ctx context.Context, params *UpdateRestrictionsParams) (*clerk.InstanceRestrictions, error)

UpdateRestrictions updates the restriction settings of the instance.

Types

type Client

type Client struct {
	Backend clerk.Backend
}

Client is used to invoke the Instance Settings API.

func NewClient

func NewClient(config *clerk.ClientConfig) *Client

func (*Client) Update

func (c *Client) Update(ctx context.Context, params *UpdateParams) error

Update updates the instance's settings.

func (*Client) UpdateOrganizationSettings

func (c *Client) UpdateOrganizationSettings(ctx context.Context, params *UpdateOrganizationSettingsParams) (*clerk.OrganizationSettings, error)

UpdateOrganizationSettings updates the organization settings of the instance.

func (*Client) UpdateRestrictions

func (c *Client) UpdateRestrictions(ctx context.Context, params *UpdateRestrictionsParams) (*clerk.InstanceRestrictions, error)

UpdateRestrictions updates the restriction settings of the instance.

type UpdateOrganizationSettingsParams

type UpdateOrganizationSettingsParams struct {
	clerk.APIParams
	Enabled                *bool     `json:"enabled,omitempty"`
	MaxAllowedMemberships  *int64    `json:"max_allowed_memberships,omitempty"`
	CreatorRoleID          *string   `json:"creator_role_id,omitempty"`
	AdminDeleteEnabled     *bool     `json:"admin_delete_enabled,omitempty"`
	DomainsEnabled         *bool     `json:"domains_enabled,omitempty"`
	DomainsEnrollmentModes *[]string `json:"domains_enrollment_modes,omitempty"`
	DomainsDefaultRoleID   *string   `json:"domains_default_role_id,omitempty"`
}

type UpdateParams

type UpdateParams struct {
	clerk.APIParams
	// TestMode can be used to toggle test mode for this instance.
	// Defaults to true for development instances.
	TestMode *bool `json:"test_mode,omitempty"`

	// HIBP is used to configure whether Clerk should use the
	// "Have I Been Pawned" service to check passwords against
	// known security breaches.
	// By default, this is enabled in all instances.
	HIBP *bool `json:"hibp,omitempty"`

	// EnhancedEmailDeliverability controls how Clerk delivers emails.
	// Specifically, when set to true, if the instance is a production
	// instance, OTP verification emails are sent by the Clerk's shared
	// domain via Postmark.
	EnhancedEmailDeliverability *bool `json:"enhanced_email_deliverability,omitempty"`

	// SupportEmail is the contact email address that will be displayed
	// on the frontend, in case your instance users need support.
	// If the empty string is provided, the support email that is currently
	// configured in the instance will be removed.
	SupportEmail *string `json:"support_email,omitempty"`

	// ClerkJSVersion allows you to request a specific Clerk JS version on the Clerk Hosted Account pages.
	// If an empty string is provided, the stored version will be removed.
	// If an explicit version is not set, the Clerk JS version will be automatically be resolved.
	ClerkJSVersion *string `json:"clerk_js_version,omitempty"`

	// CookielessDev can be used to enable the new mode in which no third-party
	// cookies are used in development instances. Make sure to also enable the
	// setting in Clerk.js
	//
	// Deprecated: Use URLBasedSessionSyncing instead
	CookielessDev *bool `json:"cookieless_dev,omitempty"`

	// URLBasedSessionSyncing can be used to enable the new mode in which no third-party
	// cookies are used in development instances. Make sure to also enable the
	// setting in Clerk.js
	URLBasedSessionSyncing *bool `json:"url_based_session_syncing,omitempty"`

	// URL that is going to be used in development instances in order to create custom redirects
	// and fix the third-party cookies issues.
	DevelopmentOrigin *string `json:"development_origin,omitempty"`
}

type UpdateRestrictionsParams

type UpdateRestrictionsParams struct {
	clerk.APIParams
	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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL