import type * as HydraDB from "../../../../index.js"; /** * @example * { * id: "HydraDoc1234", * database: "acme_corp", * collection: "team_docs", * tenantId: "tenant_1234", * subTenantId: "sub_tenant_4567" * } */ export interface SubgraphContextRequest { /** Item ID: the ingested item whose connected subgraph to return. This form takes any id, including one that contains '/'. */ id: string; /** Database (canonical name for the tenant scope) */ database: string; /** Collection (canonical name for the sub-tenant scope) */ collection?: string; /** Deprecated alias for database */ tenantId?: string; /** Deprecated alias for collection */ subTenantId?: string; /** Corpus type. Split database: 'knowledge' (default), 'memory', or 'all'. Unified database: 'unified' (default); knowledge/memory are rejected. This read addresses one corpus, so 'all' answers from knowledge and meta.source_type reports which corpus answered. */ type?: HydraDB.SubgraphContextRequestType; /** Max traversal depth in hops */ depth?: number; /** Max members returned; `is_truncated` reports when this clipped the traversal */ maxSources?: number; /** Principals to answer as (document ACLs): the subgraph contains only items they may see, filtered at every hop. Repeated (acl=a&acl=b) or comma-separated. Omit for no ACL scoping. */ acl?: string | string[]; }