@directus/api
Version:
Directus is a real-time API and App dashboard for managing SQL database content
20 lines (19 loc) • 635 B
TypeScript
import type { PrimaryKey } from '@directus/types';
import type { Knex } from 'knex';
export interface AccessLookup {
role: string | null;
user: string | null;
app_access: boolean | number;
admin_access: boolean | number;
user_status: 'active' | string;
user_role: string | null;
}
export interface FetchAccessLookupOptions {
excludeAccessRows?: PrimaryKey[];
excludePolicies?: PrimaryKey[];
excludeUsers?: PrimaryKey[];
excludeRoles?: PrimaryKey[];
adminOnly?: boolean;
knex: Knex;
}
export declare function fetchAccessLookup(options: FetchAccessLookupOptions): Promise<AccessLookup[]>;