ExistProfile (schema/database.ts)

corsair · packages/exist/schema/database.ts · typescript · Apache-2.0
database, tag:embed-classified

Zod schemas defining Exist API entities like profiles, attributes, averages, correlations, and insights for local storage.

// Source: https://github.com/corsairdev/corsair | 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.
import { z } from 'zod';

/**
 * Locally stored Exist entities.
 *
 * Exist models everything as an *attribute* (a named daily metric) plus the
 * derived objects it computes from them — averages, correlations and insights.
 * Those four, along with the account profile, are the objects worth keeping
 * locally: they change at most daily, are expensive to page through, and every
 * one of them is looked up by a stable natural key.
 *
 * @see https://developer.exist.io/reference/object_types/
 */

/** The authenticated user, keyed by Exist username. */
export const ExistProfile = z.objec

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key