import type { CliCredentials } from './config'; /** * DISCOVERING LOOKS AND OTHER SEALED PACKAGES — the Continuum Vault catalog. * * `helix assets search` (and MCP `search_assets`) hits the LEGACY * `/api/v1/vault/assets` table: raw creator resources with no Continuum * Package identity. It has no Looks (Universal Items pinned to a `build` * Continuum Package — see docs/architecture, and * run/open-alpha-audit/builds-explained.md §6 in the workspace root) and * never will, because a Look does not live in that table. The table that DOES * list Looks — `GET /api/v1/vault/catalog`, backing the website's Vault page * (`continuum-vault-catalog.controller.ts`) — had no CLI or MCP door onto it * at all, which is the gap this file closes. * * "Look" is the user-facing name; the API and this filter keep the identifier * `build` (Phase 1, backend PR #1375; Phase 2 product note * run/open-alpha-audit/builds-explained.md). `packageType: 'look'` is accepted * here as a pure client-side alias for `'build'` — the backend 400s on any * `packageType` it does not recognise as a `ContinuumPackageType`, and `look` * is not one, so the alias is resolved before the request ever leaves this * process. */ export declare const VAULT_CATALOG_PACKAGE_TYPES: readonly ["asset", "material", "character", "vehicle", "weapon", "device", "addon", "animation", "build", "scene", "gameplay", "runtime-module", "unreal-world"]; export type VaultCatalogPackageType = (typeof VAULT_CATALOG_PACKAGE_TYPES)[number]; /** Every accepted spelling of the filter, including the user-facing alias. */ export declare const VAULT_CATALOG_PACKAGE_TYPE_INPUTS: readonly ["asset", "material", "character", "vehicle", "weapon", "device", "addon", "animation", "build", "scene", "gameplay", "runtime-module", "unreal-world", "look"]; export type VaultCatalogPackageTypeInput = (typeof VAULT_CATALOG_PACKAGE_TYPE_INPUTS)[number]; /** * Resolve the alias. `look` -> `build`; every real `ContinuumPackageType` * passes through unchanged; anything else is returned as-is so the backend's * own 400 (with its own message) is what the caller sees, rather than this * layer inventing a second error for the same bad input. */ export declare function resolveVaultCatalogPackageType(value: string): string; export interface VaultCatalogSearchInput { q?: string; /** Accepts `look` as an alias for `build`; see resolveVaultCatalogPackageType. */ packageType?: string; sort?: 'recent' | 'name'; cursor?: string; limit?: number; } interface BackendPackageRef { packageId?: unknown; version?: unknown; manifestCid?: unknown; } interface BackendBuildSlot { slot?: unknown; package?: BackendPackageRef | null; } interface BackendCatalogRow { catalogId?: unknown; listingId?: unknown; title?: unknown; tags?: unknown; visibility?: unknown; packagePin?: BackendPackageRef | null; packageType?: unknown; packageName?: unknown; packageSlug?: unknown; manifest?: { build?: { base?: BackendPackageRef | null; slots?: BackendBuildSlot[] | null; parameters?: Record | null; } | null; } | null; previewImage?: { url?: unknown; } | null; creatorId?: unknown; createdAt?: unknown; updatedAt?: unknown; } /** One row, trimmed to what an agent needs to CHOOSE — full row for Looks with get_look. */ export interface VaultCatalogRow { catalogId: string; title: string; packageType: string; package: { packageId: string; version: string; manifestCid: string; } | null; packageSlug: string | null; tags: string[]; visibility: string | null; thumbnailUrl: string | null; creatorId: string | null; updatedAt: string | null; /** Present only for `packageType === 'build'` (a Look): its base and add-on slots. */ build: { base: { packageId: string; version: string; } | null; slots: Array<{ slot: string; packageId: string | null; version: string | null; }>; parameters: Record | null; } | null; } export interface VaultCatalogSearchResult { items: VaultCatalogRow[]; nextCursor: string | null; totalItems: number; counts: Record; /** Echoed so a caller can see exactly what reached the server (post-alias-resolution). */ query: Record; } export declare function projectVaultCatalogRow(row: BackendCatalogRow): VaultCatalogRow; /** * Search the Continuum Vault catalog — the table that actually lists Looks * (and every other sealed, listed Continuum Package: characters, vehicles, * weapons, devices, add-ons, materials...). Public: no bearer required. */ export declare function searchVaultCatalog(apiUrl: string, input?: VaultCatalogSearchInput, creds?: CliCredentials): Promise; export {};