import type * as HydraDB from "../../../../index.js"; /** * @example * { * database: "acme_corp", * collection: "team_docs", * tenantId: "tenant_1234", * subTenantId: "sub_tenant_4567", * id: "HydraDoc1234" * } */ export interface RelationsContextRequest { /** 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; /** Source ID (omit for database-wide relations) */ id?: 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.RelationsContextRequestType; /** Max relations to return */ limit?: number; /** Pagination cursor */ cursor?: number; /** Principals to answer as (PRO-1684 document ACLs): only relations attributable to sources they may see are returned. Repeated (acl=a&acl=b) or comma-separated. Omit for no ACL scoping. */ acl?: string | string[]; }