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

    Interface ApiClient

    The SDK's shared, envelope-aware fetch wrapper — every typed client (org, capabilities, effectiveAccess, superadmin, module clients) is built on top of one ApiClient instance.

    interface ApiClient {
        baseUrl: string;
        request<T>(path: string, options?: RequestOptions): Promise<T>;
    }
    Index
    baseUrl: string
    • Issues one request: attaches the bearer + correlation id, JSON-encodes options.body, unwraps the {data}/{error} envelope, retries once on 401 via refreshAccessToken.

      Type Parameters

      • T

      Parameters

      Returns Promise<T>