TypeScript SDKTypeScript signatures
client.billing
TypeScript client.billing signature, generated from CerealClient.
This is the TypeScript interface. See client setup and behavior.
interface ClientSurface {
readonly billing: {
get(): Promise<import("./types.js").BillingStatus>;
usage(input?: {
readonly cursor?: string;
}): Promise<import("./types.js").BillingUsage>;
activateTrial(input: {
readonly policyVersion: "2026-09-12";
readonly acceptsDeletion?: boolean;
}): Promise<void>;
checkout(input: {
readonly idempotencyKey: string;
readonly purchase: "credits_20" | "credits_50" | "credits_100" | "production";
readonly acceptsDeletion?: boolean;
readonly policyVersion: "2026-09-12";
}): Promise<{
readonly url: string | null;
}>;
portal(): Promise<{
readonly url: string | null;
}>;
updateAutoRecharge(input: import("./types.js").BillingAutoRecharge): Promise<void>;
};
}For the wire contract, use HTTP reference. Composite helpers are explained in the API/SDK map.