On this page
DocumentationReference

Schema reference

Use this page when you need the canonical schema names for SDK, HTTP and test fixtures.

CalculatorRunRequest

CalculatorRunRequest is the public request body schema for a calculator run. It is owned by @taxkit/calculators.

The native request union keeps identity and facts correlated. Strict payload parsing rejects unknown keys, including ignored inputs from a different pack. The path and body identity must agree.

CalculatorRunResponse

The response union correlates calculatorId with its checked report, and includes calculator catalogue metadata and engine diagnostics. A report's own Schema checks periods and accounting relationships during restoration.

CalculatorServiceError

CalculatorServiceError is the expected calculator service failure union.

Runtime graph

TypeScript
Production: schema ownership

SDK or HTTP caller
  -> CalculatorRunRequest
    -> selected owning scenario codec
      -> rule-owned scenario input schema
    -> PublicCalculatorService.calculate
      -> CalculatorRunResponse
      -> CalculatorServiceError for expected failures

Owning sources

Used by