//#region src/oura/collections.d.ts /** * Descriptor table for every Oura API v2 `usercollection` endpoint. * * Source of truth: https://cloud.ouraring.com/v2/static/json/openapi-1.35.json * (parsed at build time; keep in sync when Oura publishes a newer spec version). * * The shape of each collection drives request building and parameter validation: * * - `daily` -> list endpoint keyed by calendar day (`start_date`/`end_date`), * paginated via `next_token`, with a `/{document_id}` detail route. * - `datetime` -> list endpoint keyed by instant (`start_datetime`/`end_datetime`), * supports `latest`, has NO detail route. * - `listOnly` -> paginated list with no date filter, with a detail route. * - `singleton` -> a single document, no parameters, no detail route. */ type CollectionKind = "daily" | "datetime" | "listOnly" | "singleton"; type CollectionDescriptor = { /** Path segment after `usercollection/`, and the tool's `collection` enum value. */ readonly name: string; readonly kind: CollectionKind; /** Whether `usercollection//{document_id}` exists. */ readonly byId: boolean; /** Whether the endpoint accepts `latest=true` (datetime collections only). */ readonly latest: boolean; /** One-line description surfaced to the LLM in the tool schema. */ readonly description: string; }; declare const COLLECTIONS: readonly CollectionDescriptor[]; declare const COLLECTION_NAMES: [string, ...string[]]; declare const getCollection: (name: string) => CollectionDescriptor | undefined; //#endregion export { COLLECTIONS, COLLECTION_NAMES, CollectionDescriptor, CollectionKind, getCollection }; //# sourceMappingURL=collections.d.ts.map