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 ChunksContextRequest { /** 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 whose chunks to return. Required unless chunk_ids is given. */ id?: string; /** Chunk IDs to return. Repeated (chunk_ids=a&chunk_ids=b) or comma-separated. Takes precedence over id. */ chunkIds?: string | 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.ChunksContextRequestType; /** Max chunks to return */ limit?: number; /** Principals to answer as (PRO-1684 document ACLs): only chunks whose source they may see are returned. Repeated (acl=a&acl=b) or comma-separated. Omit for no ACL scoping. */ acl?: string | string[]; }