import { NonNullablePaths } from '@wix/sdk-types'; /** * Default privacy defines the initial privacy status assigned to new members when they join a site. * This setting determines whether new members start with public or private profiles by default. */ interface DefaultPrivacy { /** * Privacy ID. * @format GUID * @readonly */ _id?: string | null; /** Default privacy status for a new member. */ defaultPrivacy?: PrivacyWithLiterals; /** Revision number, which increments by 1 each time the default privacy is updated. To prevent conflicting changes, the existing revision must be used when updating default privacy. */ revision?: string | null; } declare enum Privacy { /** Default privacy status is private. All members have private profiles with no option to make them public. */ PRIVATE = "PRIVATE", /** Default privacy status is public. All members can make their profile public. */ PUBLIC = "PUBLIC" } /** @enumType */ type PrivacyWithLiterals = Privacy | 'PRIVATE' | 'PUBLIC'; interface GetDefaultPrivacyStatusRequest { } interface GetDefaultPrivacyStatusResponse { /** Retrieved default privacy settings. */ defaultPrivacy?: DefaultPrivacy; } interface SetDefaultPrivacyStatusRequest { /** Default privacy settings to set. */ defaultPrivacy: DefaultPrivacy; } interface SetDefaultPrivacyStatusResponse { /** Default privacy settings. */ defaultPrivacy?: DefaultPrivacy; } /** * Retrieves the default privacy status of a site. * @public * @documentationMaturity preview * @permissionId MEMBERS.DEFAULT_PRIVACY_STATUS_READ * @applicableIdentity APP * @fqn com.wixpress.members.defaultprivacy.DefaultPrivacyStatus.GetDefaultPrivacyStatus */ declare function getDefaultPrivacyStatus(): Promise>; /** * Sets the default privacy status of a site. * @param defaultPrivacy - Default privacy settings to set. * @public * @documentationMaturity preview * @requiredField defaultPrivacy * @requiredField defaultPrivacy.revision * @permissionId MEMBERS.DEFAULT_PRIVACY_STATUS_WRITE * @applicableIdentity APP * @fqn com.wixpress.members.defaultprivacy.DefaultPrivacyStatus.SetDefaultPrivacyStatus */ declare function setDefaultPrivacyStatus(defaultPrivacy: NonNullablePaths): Promise>; export { type DefaultPrivacy, type GetDefaultPrivacyStatusRequest, type GetDefaultPrivacyStatusResponse, Privacy, type PrivacyWithLiterals, type SetDefaultPrivacyStatusRequest, type SetDefaultPrivacyStatusResponse, getDefaultPrivacyStatus, setDefaultPrivacyStatus };