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

    Interface EffectiveAccessClient

    Typed client over the gateway's self-scoped effective-access surface.

    interface EffectiveAccessClient {
        batchCan(
            request: EffectiveAccessRequest & { items: EffectiveAccessBatchItem[] },
        ): Promise<EffectiveAccessBatchResult[]>;
        can(request: EffectiveAccessRequest): Promise<EffectiveAccessDecision>;
        summary(companyId?: string): Promise<EffectiveAccessSummary>;
    }
    Index
    • GET /api/auth/effective-access/summary[?companyId=] — the caller's own EffectiveAccessSummary (apiVersion 1): featureKeys/roleBindings/objectAccess for shell nav/feature gating. kcSub is gateway-injected from the bearer; there is no way to ask for anyone else's summary through this client. companyId is optional — omit for the global-scope-only fields.

      Parameters

      • OptionalcompanyId: string

      Returns Promise<EffectiveAccessSummary>