/** * Hand-maintained PUBLIC facts about realtimeavatar.ai, verified against the * live site on {@link VERIFIED_ON}. Single source for the system-prompt * section, `/rta setup`, the api skill header, README tables and tests. * * Everything in this file is published by realtimeavatar.ai itself (docs, * pricing page, openapi.json). Nothing here may describe private infrastructure. * * @module dsh-realtimeavatar/facts */ export declare const VERIFIED_ON = "2026-09-03"; export declare const URLS: { readonly site: "https://realtimeavatar.ai"; readonly docs: "https://realtimeavatar.ai/docs"; readonly llms: "https://realtimeavatar.ai/llms.txt"; readonly llmsFull: "https://realtimeavatar.ai/llms-full.txt"; readonly openapi: "https://realtimeavatar.ai/openapi.json"; readonly apiBase: "https://realtimeavatar.ai/api/v1"; readonly pricing: "https://realtimeavatar.ai/pricing"; readonly signup: "https://realtimeavatar.ai/signup"; readonly dashboard: "https://realtimeavatar.ai/platform/dashboard"; readonly apiKeys: "https://realtimeavatar.ai/platform/settings#api-keys"; readonly examples: "https://realtimeavatar.ai/platform/examples"; readonly sdkNpm: "https://www.npmjs.com/package/realtime-avatar"; readonly sdkRepo: "https://github.com/theinfluencecompany/realtime-avatar-sdk"; }; /** The public env var name the docs use everywhere. */ export declare const ENV_VAR = "REALTIME_AVATAR_API_KEY"; /** Key formats: environment-tagged, shown once. The tag is organisational, not a sandbox. */ export declare const KEY_PREFIXES: readonly ["tic_live_", "tic_test_"]; /** A public example avatar any key can call without creating one. */ export declare const EXAMPLE_AVATAR_ID = "seed-rin-ashfall"; /** The public npm SDK. */ export declare const SDK_PACKAGE = "realtime-avatar"; /** Per-key throttle documented under API reference → Conventions. */ export declare const RATE_LIMIT: { readonly requests: 120; readonly perSeconds: 60; }; /** Billing unit. */ export declare const CREDIT_RULE = "1 credit = 1 second on air; live conversation lands around $5 per hour"; /** Scopes as documented on the Authentication page. */ export declare const SCOPES: readonly [{ readonly scope: "realtime:write"; readonly grants: "Start and end calls"; }, { readonly scope: "avatars:read"; readonly grants: "List and fetch avatars and assets"; }, { readonly scope: "avatars:write"; readonly grants: "Create and update avatars, upload assets, sync clips"; }, { readonly scope: "credits:read"; readonly grants: "Read the balance"; }, { readonly scope: "usage:read"; readonly grants: "Usage reporting (read)"; }, { readonly scope: "usage:write"; readonly grants: "Usage reporting (write)"; }, { readonly scope: "api_keys:write"; readonly grants: "Mint further keys — untick unless a back-office job needs it"; }, { readonly scope: "*"; readonly grants: "Everything, including scopes added later — avoid outside trusted back-office jobs"; }]; /** Public plans (pricing page). */ export declare const PLANS: readonly [{ readonly name: "Sandbox"; readonly usd: 0; readonly credits: 1020; readonly minutes: 17; readonly streams: 1; readonly avatars: 1; readonly note: "no card; enough for a first avatar plus a few minutes of calls"; }, { readonly name: "Starter"; readonly usd: 9; readonly credits: 7200; readonly minutes: 120; readonly streams: 2; readonly avatars: 5; readonly note: "overage $0.095/min"; }, { readonly name: "Developer"; readonly usd: 24; readonly credits: 36000; readonly minutes: 600; readonly streams: 5; readonly avatars: 25; readonly note: "overage $0.085/min"; }, { readonly name: "Studio"; readonly usd: 119; readonly credits: 180000; readonly minutes: 3000; readonly streams: 20; readonly avatars: 100; readonly note: "overage $0.08/min; experimental features"; }]; /** * The public copy-paste agent prompt that the dashboard hands over next to a * freshly minted key (also the landing page's step two). Reused verbatim. */ export declare const AGENT_PROMPT = "Build a one-button page that opens a live video call with the example avatar Rin (seed-rin-ashfall): she speaks first, two-way voice, her portrait while she connects, a hang-up button. Stop there for testing. Key in REALTIME_AVATAR_API_KEY. Follow https://realtimeavatar.ai/llms.txt.\n\nOptional \u2014 to use your own avatar instead: create Nova from nova.png with a warm mid-pitch voice, poll until ready, and repoint the same button at her without changing the page."; /** One public API operation. `exposedAs` names the rta_* tool, or null when deliberately not exposed. */ export interface Operation { method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'; path: string; operationId: string; scope: string; costsCredits: boolean; idempotencyKey?: boolean; deprecated?: boolean; exposedAs: string | null; summary: string; } /** The 18 operations of the public OpenAPI document (paths relative to /api/v1). */ export declare const OPERATIONS: readonly Operation[]; /** Error statuses as documented on the API reference page. */ export declare const ERROR_TABLE: readonly [{ readonly status: 401; readonly meaning: "Missing, malformed, revoked, or expired key"; readonly action: "Check the bearer and the environment tag"; }, { readonly status: 402; readonly meaning: "insufficient_credits or spend_limit_exceeded"; readonly action: "Top up (billingUrl) or raise the per-key spend limit; surface as a paywall"; }, { readonly status: 403; readonly meaning: "The key lacks the scope for this operation, or the workspace is not active (error reads \"Tenant is not active\"), or a per-workspace rollout gate (code clip_library_not_enabled)"; readonly action: "Read error first: mint a key with the scope (do not widen to *); an inactive workspace has to be reactivated (no self-serve switch); a rollout gate needs support"; }, { readonly status: 404; readonly meaning: "No such avatar, voice, or key for this tenant"; readonly action: "Check the id; soft-deleted avatars are gone from every read"; }, { readonly status: 409; readonly meaning: "Conflict: no workspace yet, idempotency conflict, or avatar state settling"; readonly action: "Read the error text; retry after it settles, or use a fresh Idempotency-Key"; }, { readonly status: 413; readonly meaning: "JSON body over the per-route cap"; readonly action: "Send media by URL, not inline"; }, { readonly status: 422; readonly meaning: "Schema rejection (unknown, mis-cased or invalid field) or a safety-screen refusal"; readonly action: "Check camelCase vs snake_case for the route"; }, { readonly status: 429; readonly meaning: "Plan concurrency ceiling (code concurrency_limit_reached), capacity queue (queue_size + recommended_retry_ms), or the per-key rate limit (no code, no queue fields)"; readonly action: "Close a session / upgrade; render the queue position and retry; or back off"; }, { readonly status: 502; readonly meaning: "An upstream generation or render failed"; readonly action: "Retry; if it persists it is theirs, not yours"; }, { readonly status: 503; readonly meaning: "A dependency the route needs is unavailable; nothing was written"; readonly action: "Retry with backoff"; }]; /** The 14 public documentation pages (slug → markdown URL). `overview` lives at /docs.md. */ export declare const DOC_PAGES: readonly [{ readonly slug: "overview"; readonly title: "Realtime Avatar API"; readonly path: "/docs.md"; readonly canonical: "/docs"; readonly blurb: "What the product is: a live character on a voice or video call, with your tools wired in."; }, { readonly slug: "quickstart"; readonly title: "Quickstart"; readonly path: "/docs/quickstart.md"; readonly canonical: "/docs/quickstart"; readonly blurb: "From an API key to a live call in three steps, on the public example avatar first."; }, { readonly slug: "authentication"; readonly title: "Authentication"; readonly path: "/docs/authentication.md"; readonly canonical: "/docs/authentication"; readonly blurb: "Get a key, keep it on your server, decide who may start a call."; }, { readonly slug: "nextjs"; readonly title: "Next.js"; readonly path: "/docs/nextjs.md"; readonly canonical: "/docs/nextjs"; readonly blurb: "App Router route file plus one browser component."; }, { readonly slug: "tanstack-start"; readonly title: "TanStack Start"; readonly path: "/docs/tanstack-start.md"; readonly canonical: "/docs/tanstack-start"; readonly blurb: "Splat server route plus one component."; }, { readonly slug: "express"; readonly title: "Express"; readonly path: "/docs/express.md"; readonly canonical: "/docs/express"; readonly blurb: "Express 4/5 middleware with the shared authorize/session policy."; }, { readonly slug: "hono"; readonly title: "Hono, Workers, Bun and Deno"; readonly path: "/docs/hono.md"; readonly canonical: "/docs/hono"; readonly blurb: "Any Fetch-handler runtime, including the apiKey factory Workers need."; }, { readonly slug: "react"; readonly title: "React and React Native"; readonly path: "/docs/react.md"; readonly canonical: "/docs/react"; readonly blurb: "AvatarCall, useAvatarCall, and what changes on React Native."; }, { readonly slug: "video"; readonly title: "Creating an avatar"; readonly path: "/docs/video.md"; readonly canonical: "/docs/video"; readonly blurb: "One image in, a moving character out; idle loop, motion clips, generation prices."; }, { readonly slug: "sessions"; readonly title: "Calls"; readonly path: "/docs/sessions.md"; readonly canonical: "/docs/sessions"; readonly blurb: "What the server decides, the five client states, ending a call gracefully."; }, { readonly slug: "editing"; readonly title: "Editing a character"; readonly path: "/docs/editing.md"; readonly canonical: "/docs/editing"; readonly blurb: "Changing clips and the resting loop after creation; how each change settles."; }, { readonly slug: "tool-calling"; readonly title: "Tool calling"; readonly path: "/docs/tool-calling.md"; readonly canonical: "/docs/tool-calling"; readonly blurb: "The platform never runs your tools: the client tool plane and the server loop."; }, { readonly slug: "api-reference"; readonly title: "API reference"; readonly path: "/docs/api-reference.md"; readonly canonical: "/docs/api-reference"; readonly blurb: "Every public /api/v1 endpoint, its scope, and how it fails."; }, { readonly slug: "experimental"; readonly title: "Experimental features"; readonly path: "/docs/experimental.md"; readonly canonical: "/docs/experimental"; readonly blurb: "What is experimental, what the word promises, how to turn each one on (Studio and above)."; }]; export type DocSlug = (typeof DOC_PAGES)[number]['slug']; /** Which skill carries which pages. */ export declare const SKILL_PAGES: { readonly 'realtimeavatar-quickstart': readonly ["overview", "quickstart", "authentication"]; readonly 'realtimeavatar-integrate': readonly ["nextjs", "tanstack-start", "express", "hono", "react"]; readonly 'realtimeavatar-avatars': readonly ["video", "editing"]; readonly 'realtimeavatar-calls': readonly ["sessions", "tool-calling", "experimental"]; readonly 'realtimeavatar-api': readonly ["api-reference"]; }; export type SkillName = keyof typeof SKILL_PAGES; export declare const SKILL_NAMES: SkillName[];