Variable QuestionRecomputeResultSchemaConst
QuestionRecomputeResultSchema: ZodObject<
{
questionId: ZodString;
derivedScope: ZodString;
sourceScopes: ZodArray<ZodString>;
question: ZodString;
model: ZodPipe<
ZodOptional<ZodNullable<ZodString>>,
ZodTransform<string | null, string | null | undefined>,
>;
registeredBy: ZodUnion<
readonly [
ZodObject<{ kind: ZodLiteral<"owner"> }, $strip>,
ZodObject<
{
kind: ZodLiteral<"builder">;
builder: ZodString;
grantId: ZodString;
},
$strip,
>,
],
>;
status: ZodEnum<
{
pending: "pending";
failed: "failed";
ready: "ready";
stale: "stale";
},
>;
error: ZodPipe<
ZodOptional<ZodNullable<ZodString>>,
ZodTransform<string | null, string | null | undefined>,
>;
errorCode: ZodPipe<
ZodOptional<
ZodNullable<
ZodEnum<
{
internal: "internal";
inference_unavailable: "inference_unavailable";
source_missing: "source_missing";
grant_invalid: "grant_invalid";
},
>,
>,
>,
ZodTransform<
| "internal"
| "inference_unavailable"
| "source_missing"
| "grant_invalid"
| null,
| "internal"
| "inference_unavailable"
| "source_missing"
| "grant_invalid"
| null
| undefined,
>,
>;
createdAt: ZodString;
updatedAt: ZodPipe<
ZodOptional<ZodNullable<ZodString>>,
ZodTransform<string | null, string | null | undefined>,
>;
lastComputedAt: ZodPipe<
ZodOptional<ZodNullable<ZodString>>,
ZodTransform<string | null, string | null | undefined>,
>;
derivedVersion: ZodPipe<
ZodOptional<ZodNullable<ZodNumber>>,
ZodTransform<number | null, number | null | undefined>,
>;
derivedCollectedAt: ZodPipe<
ZodOptional<ZodNullable<ZodString>>,
ZodTransform<string | null, string | null | undefined>,
>;
},
$strip,
> = DerivativeQuestionSchema
The 202 answer of a recompute request: the same registration view every other question route answers, so a client needs one schema.