Call a catalog method by name — invoke('spaces:invite', { spaceId, login, role }). A thin generic over the host protocol: the host validates params and gates the call (an un-granted method → forbidden, even if you name it directly). For a STREAMING method (ApiMethod.stream), use invokeStream.

  • Type Parameters

    • T = unknown

    Parameters

    • name: string
    • params: Record<string, unknown> = {}

    Returns Promise<T>