/** * This enum represent al possible user permission ids */ export declare enum UserPermissionIds { MANAGE_CONTENT_REPOSITORY = "manage_content_repository", MANAGE_CONTENT = "manage_content", MANAGE_DEFINITIONS = "manage_definition", MANAGE_LIVE_PUBLISHING = "manage_live_publishing", MANAGE_MEDIA_GALLERY = "manage_media_gallery", MANAGE_PUBLISHING_CHANNELS = "manage_publishing_channels", MANAGE_SPACE_BILLING = "manage_space_billing", MANAGE_SPACE_PROFILES = "manage_space_profiles", MANAGE_SPACE_WEBHOOKS = "manage_space_webhooks", READ_SPACE = "read_space" } /** * This enum represent al possible user profile ids */ export declare enum UserProfileIds { SPACE_MANAGER = "space_manager", SPACE_PROFILES_MANAGER = "space_profiles_manager", SPACE_BILLING_MANAGER = "space_billing_manager", CONTENT_DESIGNER = "content_designer", POWER_USER = "power_user", CONTENT_EDITOR = "content_editor", REPOSITORY_MANAGER = "repository_manager", LIVE_PUBLISHING_MANAGER = "live_publishing_manager" } /** * This type represent the model of a user permission */ export type UserPermission = { /** * The space id of the permissions */ spaceId: string; /** * The list of user permission */ permissions: UserPermissionIds[]; /** * The space name of the permissions */ spaceName: string; /** * The list of user profiles related to the permissions */ profiles: UserProfileIds[]; }; /** * This type represent the data needed to make a change space profile for user API request */ export type ChangeSpaceProfileForUserRequest = { /** * The user sub (the unique user id) */ sub: string; /** * The profiles ids to give at the selected user */ profiles: string[]; }; /** * This type represent the response of a change space profile for user API request */ export type ChangeSpaceProfileForUserResponse = boolean;