/** * The Jira Cloud platform REST API * Jira Cloud platform REST API documentation * * The version of the OpenAPI document: 1001.0.0-SNAPSHOT * Contact: ecosystem@atlassian.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Details of a permission and its availability to a user. * @export * @interface UserPermission */ export interface UserPermission { [key: string]: object | any; /** * The ID of the permission. Either `id` or `key` must be specified. Use [Get all permissions](#api-rest-api-3-permissions-get) to get the list of permissions. * @type {string} * @memberof UserPermission */ id?: string; /** * Indicates whether the permission is available to the user in the queried context. * @type {boolean} * @memberof UserPermission */ havePermission?: boolean; /** * The key of the permission. Either `id` or `key` must be specified. Use [Get all permissions](#api-rest-api-3-permissions-get) to get the list of permissions. * @type {string} * @memberof UserPermission */ key?: string; /** * The description of the permission. * @type {string} * @memberof UserPermission */ description?: string; /** * The name of the permission. * @type {string} * @memberof UserPermission */ name?: string; /** * Indicate whether the permission key is deprecated. Note that deprecated keys cannot be used in the `permissions parameter of Get my permissions. Deprecated keys are not returned by Get all permissions.` * @type {boolean} * @memberof UserPermission */ deprecatedKey?: boolean; /** * The type of the permission. * @type {string} * @memberof UserPermission */ type?: UserPermissionTypeEnum; } export declare function UserPermissionFromJSON(json: any): UserPermission; export declare function UserPermissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPermission; export declare function UserPermissionToJSON(value?: UserPermission): any; /** * @export * @enum {string} */ export declare enum UserPermissionTypeEnum { GLOBAL = "GLOBAL", PROJECT = "PROJECT" }