/************************************************************************* * Copyright 2021 Adobe * All Rights Reserved. * * NOTICE: Adobe permits you to use, modify, and distribute this file in * accordance with the terms of the Adobe license agreement accompanying * it. If you have received this file from a source other than Adobe, * then your use, modification, or distribution of it requires the prior * written permission of Adobe. **************************************************************************/ /** * A map of permissions in the permissions service. */ export interface Permissions { [key: string]: string[]; } /** * The response from the permissions service. */ export interface PermissionsResponse { /** * The map of permissions. */ permissions?: T; /** * The map of resource types. */ resourceTypes?: T; } /** * The input parameters for the permissions API. */ export interface Parameters { /** * List of permissions to get. */ permissions?: string[]; /** * List of resource types to get. */ resourceTypes?: string[]; } /** * APIs to get permissions. An app in unified shell can consume PALM ACL service. */ export interface PermissionsApi { /** * Gets permissions based on the specified parameters. * @param params Parameters used to identify permissions to retrieve. * @returns A promise for the specified permissions. */ get(params: Parameters): Promise>; } declare const permissions: PermissionsApi; export default permissions;