Cereal docs
TypeScript SDKTypeScript signatures

client.providers

TypeScript client.providers signature, generated from CerealClient.

This is the TypeScript interface. See client setup and behavior.

interface ClientSurface {
readonly providers: {
    list(): Promise<ReadonlyArray<Provider>>;
    get(input: {
        readonly id: string;
    }): Promise<Provider>;
    getBySlug(input: {
        readonly slug: string;
    }): Promise<Provider>;
    getByName(input: {
        readonly name: string;
    }): Promise<Provider>;
    create(input: ProviderUpsert): Promise<Provider>;
    upsert(input: ProviderUpsert): Promise<Provider>;
    delete(input: {
        readonly id: string;
    }): Promise<void>;
    models(input: {
        readonly name: string;
    }): Promise<ReadonlyArray<ProviderModel>>;
    test(input: {
        readonly name: string;
    }): Promise<ProviderTestResult>;
};
}

For the wire contract, use HTTP reference. Composite helpers are explained in the API/SDK map.