TypeScript SDK
Query with generated types and the @catdb/client entityQuery method.
developer interfaces / one contract
Use CatDB through the TypeScript SDK, REST API, or MCP. Every interface follows the same versioned schemas, mappings, policy checks, and provenance records.
These query examples are reads. Source records remain unchanged; the separate catdb.apply operation changes CatDB-managed workspace state only.
developer workflow / one query contract
Start with the TypeScript SDK, or choose REST API or MCP for the same EntityQueryRequest and EntityQueryResponse contract.
Query with generated types and the @catdb/client entityQuery method.
Send the same EntityQueryRequest through the authenticated OpenAPI endpoint.
Call the registered catdb.entity_query tool with the shared EntityQueryRequest DTO.