import type * as HydraDB from "../index.js"; export interface HandlerResponseMeta { /** * APIVersion echoes the version of the API that served the request (PRO-1209), * sourced from reqmeta.APIVersion — the same value carried by OpenAPI * info.version and /health — so a client always knows which API version * produced a response. Always present (no omitempty). */ apiVersion?: string; /** Collection scope. Defaults to the default collection when omitted. Formerly `sub_tenant_id`; the `sub_tenant_id` alias is still accepted (deprecated). */ collection?: string; /** Owning database. Formerly `tenant_id`; the `tenant_id` alias is still accepted (deprecated). */ database?: string; /** * Deprecation lists any migration nudges that apply to this request — the * caller used a legacy /tenants route, a legacy tenant_id/sub_tenant_id field, * or the deprecated sub_tenant_ids selector. It is a non-breaking signal (the * status code is unchanged); omitempty keeps it absent for fully-migrated * requests. A list so independent deprecations coexist without clobbering. */ deprecation?: HydraDB.HandlerDeprecationNotice[]; /** Server-side processing time in milliseconds. */ latencyMs?: number; /** Unique identifier for this request, useful for support and tracing. */ requestId?: string; /** Type of the parent source (e.g. `file`, `slack`, `notion`). */ sourceType?: string; subTenantId?: string; tenantId?: string; }