1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-04 11:17:02 +02:00
unleash.unleash/frontend/src/openapi/models/roleWithPermissionsSchema.ts
Gastón Fournier abe160eb7d
feat: Unleash v7 ESM migration (#9877)
We're migrating to ESM, which will allow us to import the latest
versions of our dependencies.

Co-Authored-By: Christopher Kolstad <chriswk@getunleash.io>
2025-05-14 09:47:12 +02:00

23 lines
796 B
TypeScript

/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { AdminPermissionSchema } from './adminPermissionSchema.js';
/**
* 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;
}