1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-19 00:15:43 +01:00
unleash.unleash/frontend/src/openapi/models/roleWithPermissionsSchema.ts
2023-12-04 21:49:49 +02:00

23 lines
793 B
TypeScript

/**
* 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 {
/** A more detailed description of the role and what use it's intended for */
description?: string;
/** The role id */
id: number;
/** The name of the role */
name: string;
/** A list of permissions assigned to this role */
permissions: AdminPermissionSchema[];
/** 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;
}