TypeScript interfaces for cloud user, session, quota, org, recording metadata used by Parley client.
// Source: https://github.com/pathorsAI/parley | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
// Cloud (Parley Cloud) account + session types. The desktop app talks to the
// backend over HTTP only (see ../cloud/client) — it never imports private code.
export interface CloudUser {
id: string;
name: string;
email: string;
image?: string | null;
}
/** The signed-in session held (persisted) in the store. */
export interface CloudAuth {
/** Bearer session token sent as `Authorization: Bearer <token>` to the cloud. */
token: string;
user: CloudUser;
activeOrganizationId: string | null;
}
/**
* The signed-in user's hosted-plan usage for the current billing period, a
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key