TypeScript SDKTypeScript signatures
client.usage
TypeScript client.usage signature, generated from CerealClient.
This is the TypeScript interface. See client setup and behavior.
interface ClientSurface {
readonly usage: {
environment(input: {
readonly period: Period;
readonly groupBy?: UsageGroupBy;
}): Promise<UsageSummary>;
keys(input: {
readonly period: Period;
}): Promise<ReadonlyArray<KeyUsage>>;
session(input: {
readonly id: string;
}): Promise<SessionUsage>;
};
}For the wire contract, use HTTP reference. Composite helpers are explained in the API/SDK map.