@vista.io/vista-api-client
Version:
NodeJS implementation of the Vista API.
10 lines (9 loc) • 942 B
TypeScript
import { ApiResource } from '../ApiResource';
declare class Grants extends ApiResource {
list: (userId: string | null, action: string | null, resourceId: string | null, resourceType: string | null, attribute: string | null, orgId: string | null, startTime: Date | null, endTime: Date | null) => Promise<any>;
expand: (userId: string) => Promise<any>;
grant: (userId: string, subjectType: string, relation: string, relationType: string, resourceId: string, resourceType: string, attribute: string) => Promise<any>;
revoke: (userId: string, subjectType: string, relation: string, relationType: string, resourceId: string, resourceType: string, attribute: string) => Promise<any>;
listUnflattened: (usersetId: string | null, relation: string | null, relationType: string | null, resourceId: string | null, resourceType: string | null, attribute: string | null, orgId: string | null) => Promise<any>;
}
export default Grants;