crouter

Schemas and request options

Structured-output schemas, the type they produce, and the options accepted by every request.

Exports of @north-light/crouter-sdk, read from the TypeScript compiler at build time. Types re-exported from @north-light/crouter-api are documented with that package.

JsonSchema

type declared in types.ts

A JSON Schema object. The daemon validates structured results against it.

{ [x: string]: unknown; }

OutputSchema

type declared in types.ts

A structured-result schema: a JSON string, a JSON Schema object, or anything exposing toJSONSchema() — which a Zod v4 object does.

string | JsonSchema | { toJSONSchema(): JsonSchema; }

RequestOptions

interface declared in types.ts

The final argument of every request-capable method.

Prop

Type

SchemaOutput

type declared in types.ts

The value type an OutputSchema describes, inferred from a Zod or Standard Schema object.

T extends { _output: infer Output; } ? Output : T extends { '~standard': { types?: { output: infer Output; }; }; } ? Output : unknown

On this page