Cereal docs
TypeScript SDKTypeScript signatures

client.environments

TypeScript client.environments signature, generated from CerealClient.

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

interface ClientSurface {
readonly environments: {
    list(): Promise<ReadonlyArray<Environment>>;
    get(input: {
        readonly slug: string;
    }): Promise<Environment>;
    create(input: {
        readonly environment: EnvironmentCreate;
    }): Promise<Environment>;
    update(input: {
        readonly update: EnvironmentUpdate;
    }): Promise<Environment>;
    archive(input: {
        readonly slug: string;
    }): Promise<Environment>;
};
}

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