@rosschiu/kiban-sdk
    Preparing search index...

    Interface CanIParams

    Parameters for the canI recipe — a subset of EffectiveAccessClient.can's request shape, with scope derived from whether companyId is set.

    interface CanIParams {
        companyId?: string;
        featureKey: string;
        moduleKey?: string;
        object?: EffectiveAccessObjectRef;
        relation?: string;
        requiredCompanyRole?: string;
        requiredPlatformRole?: string;
        requiresEligibility?: boolean;
    }
    Index
    companyId?: string

    Omit for a global-scope check (e.g. superadministration); set for a company-scope check.

    featureKey: string
    moduleKey?: string
    relation?: string
    requiredCompanyRole?: string
    requiredPlatformRole?: string
    requiresEligibility?: boolean