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

23 lines
793 B
TypeScript
Raw Normal View History

2023-01-05 11:57:53 +01:00
/**
2023-03-15 13:30:07 +01:00
* Generated by Orval
2023-01-05 11:57:53 +01:00
* Do not edit manually.
2023-03-15 13:30:07 +01:00
* See `gen:api` script in package.json
2023-01-05 11:57:53 +01:00
*/
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
*/
2023-01-05 11:57:53 +01:00
export interface RoleWithPermissionsSchema {
/** The role id */
2023-01-05 11:57:53 +01:00
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 */
2023-01-05 11:57:53 +01:00
type: string;
/** The name of the role */
2023-01-05 11:57:53 +01:00
name: string;
/** A more detailed description of the role and what use it's intended for */
2023-01-05 11:57:53 +01:00
description?: string;
/** A list of permissions assigned to this role */
2023-01-05 11:57:53 +01:00
permissions: AdminPermissionSchema[];
}