/** * Generated by Orval * Do not edit manually. * See `gen:api` script in package.json */ import type { AdminPermissionSchema } from './adminPermissionSchema'; /** * A read model for the role and permissions to allow Unleash to decide what actions a role holder is allowed to perform */ export interface RoleWithPermissionsSchema { /** The role id */ id: number; /** A role can either be a global `root` role, or a `project` role or a `custom` project role or a custom global `root-custom` role */ type: string; /** The name of the role */ name: string; /** A more detailed description of the role and what use it's intended for */ description?: string; /** A list of permissions assigned to this role */ permissions: AdminPermissionSchema[]; }