import { ObjectType } from '../../utils/status'; import type { ILiftStatusAuth, ILiftStatusSessionPermissions } from '../../utils/types'; export interface IAuthTarget { objectType: ObjectType; objectId: string; esNumber?: string; permissions: ILiftStatusSessionPermissions; hasResetContactCapability: boolean; isAdmin: boolean; /** The controller type, which is also the prefix of its status codes. */ liftController?: string; } /** * Resolves the object the data endpoints address from an auth response. * * Both token types name their object and capabilities in `target` when the API * could look it up. Without it (older API versions, system tokens): * - a Sense JWT (`sensecloud`) names its object in `tokenData`; * - a LiftStatus Classic session (`liftstatus`, the `env|sessionID|liftId` * string, internal only) is addressed as `external/liftstatus--` * without capabilities, so reset contact is unavailable. * * Either way the token itself is passed on to the API unchanged. */ export declare const getAuthTarget: (auth: ILiftStatusAuth) => IAuthTarget;