Open Policy Agent TypeScript Packages
    Preparing search index...

    Abstracts the methods that are used from OPAClient of @open-policy-agent/opa.

    interface OPAClient {
        evaluate<In extends Input | ToInput, Res>(
            path: string,
            input?: In,
            opts?: RequestOptions<Res>,
        ): Promise<Res>;
        evaluateBatch<In extends Input | ToInput, Res>(
            path: string,
            inputs: { [k: string]: In },
            opts?: BatchRequestOptions<Res>,
        ): Promise<{ [k: string]: ServerErrorWithStatusCode | Res }>;
        evaluateDefault<In extends Input | ToInput, Res>(
            input?: In,
            opts?: RequestOptions<Res>,
        ): Promise<Res>;
    }
    Index

    Methods