/** * @fileoverview IntentIR Root Schema (SPEC Section 7) * * IntentIR is the root structure representing a complete semantic intent. */ import { z } from "zod"; /** * Intent IR version identifier. * Wire version uses "MAJOR.MINOR" format. */ export declare const IntentIRVersionSchema: z.ZodLiteral<"0.2">; export type IntentIRVersion = z.infer; /** * Args schema: each role maps to at most one Term (v0.2). * * Per FDR-INT-006, single Term per Role remains in v0.2. * Multiple terms per role MUST use ListTerm. */ export declare const ArgsSchema: z.ZodObject<{ TARGET: z.ZodOptional; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"list">; items: z.ZodArray; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; ordered: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; THEME: z.ZodOptional; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"list">; items: z.ZodArray; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; ordered: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; SOURCE: z.ZodOptional; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"list">; items: z.ZodArray; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; ordered: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; DEST: z.ZodOptional; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"list">; items: z.ZodArray; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; ordered: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; INSTRUMENT: z.ZodOptional; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"list">; items: z.ZodArray; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; ordered: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; BENEFICIARY: z.ZodOptional; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"list">; items: z.ZodArray; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; ordered: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; }, z.core.$strict>; export type Args = z.infer; /** * IntentIR root schema. * * Represents a complete semantic intent in Chomskyan LF form. * * @example * { * v: "0.2", * force: "DO", * event: { lemma: "CANCEL", class: "CONTROL" }, * args: { * TARGET: { kind: "entity", entityType: "Order", ref: { kind: "last" } } * }, * mod: "MUST", * time: { kind: "NOW" } * } */ export declare const IntentIRSchema: z.ZodObject<{ v: z.ZodLiteral<"0.2">; force: z.ZodEnum<{ ASK: "ASK"; DO: "DO"; VERIFY: "VERIFY"; CONFIRM: "CONFIRM"; CLARIFY: "CLARIFY"; }>; event: z.ZodObject<{ lemma: z.ZodString; class: z.ZodEnum<{ OBSERVE: "OBSERVE"; TRANSFORM: "TRANSFORM"; SOLVE: "SOLVE"; CREATE: "CREATE"; DECIDE: "DECIDE"; CONTROL: "CONTROL"; }>; }, z.core.$strict>; args: z.ZodObject<{ TARGET: z.ZodOptional; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"list">; items: z.ZodArray; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; ordered: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; THEME: z.ZodOptional; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"list">; items: z.ZodArray; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; ordered: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; SOURCE: z.ZodOptional; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"list">; items: z.ZodArray; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; ordered: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; DEST: z.ZodOptional; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"list">; items: z.ZodArray; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; ordered: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; INSTRUMENT: z.ZodOptional; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"list">; items: z.ZodArray; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; ordered: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; BENEFICIARY: z.ZodOptional; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"list">; items: z.ZodArray; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; ordered: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; }, z.core.$strict>; cond: z.ZodOptional": ">"; "<=": "<="; ">=": ">="; contains: "contains"; startsWith: "startsWith"; matches: "matches"; }>; rhs: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"entity">; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"list">; items: z.ZodArray; entityType: z.ZodString; ref: z.ZodOptional; id: z.ZodOptional; }, z.core.$strict>>; quant: z.ZodOptional; value: z.ZodNumber; comparator: z.ZodOptional>; unit: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>>; orderBy: z.ZodOptional; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strip>>; orderDir: z.ZodOptional>; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"path">; path: z.ZodString; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"artifact">; artifactType: z.ZodEnum<{ plan: "plan"; code: "code"; text: "text"; math: "math"; data: "data"; mixed: "mixed"; }>; ref: z.ZodObject<{ kind: z.ZodEnum<{ id: "id"; inline: "inline"; }>; id: z.ZodOptional; }, z.core.$strict>; content: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"value">; valueType: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; date: "date"; enum: "enum"; id: "id"; }>; shape: z.ZodRecord; raw: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"expr">; exprType: z.ZodEnum<{ code: "code"; latex: "latex"; ast: "ast"; }>; expr: z.ZodUnion]>; ext: z.ZodOptional>; }, z.core.$strict>], "kind">>; ordered: z.ZodOptional; ext: z.ZodOptional>; }, z.core.$strict>], "kind">; }, z.core.$strict>>>; mod: z.ZodOptional>; time: z.ZodOptional; value: z.ZodOptional; }, z.core.$strict>>; verify: z.ZodOptional; spec: z.ZodOptional>; }, z.core.$strict>>; out: z.ZodOptional; format: z.ZodOptional>; constraints: z.ZodOptional>; }, z.core.$strict>>; ext: z.ZodOptional>; }, z.core.$strict>; export type IntentIR = z.infer; /** * Parse and validate IntentIR. * @throws ZodError on validation failure */ export declare function parseIntentIR(data: unknown): IntentIR; /** * Safe parse IntentIR without throwing. */ export declare function safeParseIntentIR(data: unknown): z.ZodSafeParseResult<{ v: "0.2"; force: "ASK" | "DO" | "VERIFY" | "CONFIRM" | "CLARIFY"; event: { lemma: string; class: "OBSERVE" | "TRANSFORM" | "SOLVE" | "CREATE" | "DECIDE" | "CONTROL"; }; args: { TARGET?: { kind: "entity"; entityType: string; ref?: { kind: "this" | "that" | "last" | "id"; id?: string | undefined; } | undefined; quant?: { kind: "quantity"; value: number; comparator?: "eq" | "gte" | "lte" | undefined; unit?: string | undefined; ext?: Record | undefined; } | undefined; orderBy?: { kind: "path"; path: string; ext?: Record | undefined; } | undefined; orderDir?: "ASC" | "DESC" | undefined; ext?: Record | undefined; } | { kind: "path"; path: string; ext?: Record | undefined; } | { kind: "artifact"; artifactType: "plan" | "code" | "text" | "math" | "data" | "mixed"; ref: { kind: "id" | "inline"; id?: string | undefined; }; content?: string | undefined; ext?: Record | undefined; } | { kind: "value"; valueType: "string" | "number" | "boolean" | "date" | "enum" | "id"; shape: Record; raw?: unknown; ext?: Record | undefined; } | { kind: "expr"; exprType: "code" | "latex" | "ast"; expr: string | Record; ext?: Record | undefined; } | { kind: "list"; items: ({ kind: "entity"; entityType: string; ref?: { kind: "this" | "that" | "last" | "id"; id?: string | undefined; } | undefined; quant?: { kind: "quantity"; value: number; comparator?: "eq" | "gte" | "lte" | undefined; unit?: string | undefined; ext?: Record | undefined; } | undefined; orderBy?: { kind: "path"; path: string; ext?: Record | undefined; } | undefined; orderDir?: "ASC" | "DESC" | undefined; ext?: Record | undefined; } | { kind: "path"; path: string; ext?: Record | undefined; } | { kind: "artifact"; artifactType: "plan" | "code" | "text" | "math" | "data" | "mixed"; ref: { kind: "id" | "inline"; id?: string | undefined; }; content?: string | undefined; ext?: Record | undefined; } | { kind: "value"; valueType: "string" | "number" | "boolean" | "date" | "enum" | "id"; shape: Record; raw?: unknown; ext?: Record | undefined; } | { kind: "expr"; exprType: "code" | "latex" | "ast"; expr: string | Record; ext?: Record | undefined; })[]; ordered?: boolean | undefined; ext?: Record | undefined; } | undefined; THEME?: { kind: "entity"; entityType: string; ref?: { kind: "this" | "that" | "last" | "id"; id?: string | undefined; } | undefined; quant?: { kind: "quantity"; value: number; comparator?: "eq" | "gte" | "lte" | undefined; unit?: string | undefined; ext?: Record | undefined; } | undefined; orderBy?: { kind: "path"; path: string; ext?: Record | undefined; } | undefined; orderDir?: "ASC" | "DESC" | undefined; ext?: Record | undefined; } | { kind: "path"; path: string; ext?: Record | undefined; } | { kind: "artifact"; artifactType: "plan" | "code" | "text" | "math" | "data" | "mixed"; ref: { kind: "id" | "inline"; id?: string | undefined; }; content?: string | undefined; ext?: Record | undefined; } | { kind: "value"; valueType: "string" | "number" | "boolean" | "date" | "enum" | "id"; shape: Record; raw?: unknown; ext?: Record | undefined; } | { kind: "expr"; exprType: "code" | "latex" | "ast"; expr: string | Record; ext?: Record | undefined; } | { kind: "list"; items: ({ kind: "entity"; entityType: string; ref?: { kind: "this" | "that" | "last" | "id"; id?: string | undefined; } | undefined; quant?: { kind: "quantity"; value: number; comparator?: "eq" | "gte" | "lte" | undefined; unit?: string | undefined; ext?: Record | undefined; } | undefined; orderBy?: { kind: "path"; path: string; ext?: Record | undefined; } | undefined; orderDir?: "ASC" | "DESC" | undefined; ext?: Record | undefined; } | { kind: "path"; path: string; ext?: Record | undefined; } | { kind: "artifact"; artifactType: "plan" | "code" | "text" | "math" | "data" | "mixed"; ref: { kind: "id" | "inline"; id?: string | undefined; }; content?: string | undefined; ext?: Record | undefined; } | { kind: "value"; valueType: "string" | "number" | "boolean" | "date" | "enum" | "id"; shape: Record; raw?: unknown; ext?: Record | undefined; } | { kind: "expr"; exprType: "code" | "latex" | "ast"; expr: string | Record; ext?: Record | undefined; })[]; ordered?: boolean | undefined; ext?: Record | undefined; } | undefined; SOURCE?: { kind: "entity"; entityType: string; ref?: { kind: "this" | "that" | "last" | "id"; id?: string | undefined; } | undefined; quant?: { kind: "quantity"; value: number; comparator?: "eq" | "gte" | "lte" | undefined; unit?: string | undefined; ext?: Record | undefined; } | undefined; orderBy?: { kind: "path"; path: string; ext?: Record | undefined; } | undefined; orderDir?: "ASC" | "DESC" | undefined; ext?: Record | undefined; } | { kind: "path"; path: string; ext?: Record | undefined; } | { kind: "artifact"; artifactType: "plan" | "code" | "text" | "math" | "data" | "mixed"; ref: { kind: "id" | "inline"; id?: string | undefined; }; content?: string | undefined; ext?: Record | undefined; } | { kind: "value"; valueType: "string" | "number" | "boolean" | "date" | "enum" | "id"; shape: Record; raw?: unknown; ext?: Record | undefined; } | { kind: "expr"; exprType: "code" | "latex" | "ast"; expr: string | Record; ext?: Record | undefined; } | { kind: "list"; items: ({ kind: "entity"; entityType: string; ref?: { kind: "this" | "that" | "last" | "id"; id?: string | undefined; } | undefined; quant?: { kind: "quantity"; value: number; comparator?: "eq" | "gte" | "lte" | undefined; unit?: string | undefined; ext?: Record | undefined; } | undefined; orderBy?: { kind: "path"; path: string; ext?: Record | undefined; } | undefined; orderDir?: "ASC" | "DESC" | undefined; ext?: Record | undefined; } | { kind: "path"; path: string; ext?: Record | undefined; } | { kind: "artifact"; artifactType: "plan" | "code" | "text" | "math" | "data" | "mixed"; ref: { kind: "id" | "inline"; id?: string | undefined; }; content?: string | undefined; ext?: Record | undefined; } | { kind: "value"; valueType: "string" | "number" | "boolean" | "date" | "enum" | "id"; shape: Record; raw?: unknown; ext?: Record | undefined; } | { kind: "expr"; exprType: "code" | "latex" | "ast"; expr: string | Record; ext?: Record | undefined; })[]; ordered?: boolean | undefined; ext?: Record | undefined; } | undefined; DEST?: { kind: "entity"; entityType: string; ref?: { kind: "this" | "that" | "last" | "id"; id?: string | undefined; } | undefined; quant?: { kind: "quantity"; value: number; comparator?: "eq" | "gte" | "lte" | undefined; unit?: string | undefined; ext?: Record | undefined; } | undefined; orderBy?: { kind: "path"; path: string; ext?: Record | undefined; } | undefined; orderDir?: "ASC" | "DESC" | undefined; ext?: Record | undefined; } | { kind: "path"; path: string; ext?: Record | undefined; } | { kind: "artifact"; artifactType: "plan" | "code" | "text" | "math" | "data" | "mixed"; ref: { kind: "id" | "inline"; id?: string | undefined; }; content?: string | undefined; ext?: Record | undefined; } | { kind: "value"; valueType: "string" | "number" | "boolean" | "date" | "enum" | "id"; shape: Record; raw?: unknown; ext?: Record | undefined; } | { kind: "expr"; exprType: "code" | "latex" | "ast"; expr: string | Record; ext?: Record | undefined; } | { kind: "list"; items: ({ kind: "entity"; entityType: string; ref?: { kind: "this" | "that" | "last" | "id"; id?: string | undefined; } | undefined; quant?: { kind: "quantity"; value: number; comparator?: "eq" | "gte" | "lte" | undefined; unit?: string | undefined; ext?: Record | undefined; } | undefined; orderBy?: { kind: "path"; path: string; ext?: Record | undefined; } | undefined; orderDir?: "ASC" | "DESC" | undefined; ext?: Record | undefined; } | { kind: "path"; path: string; ext?: Record | undefined; } | { kind: "artifact"; artifactType: "plan" | "code" | "text" | "math" | "data" | "mixed"; ref: { kind: "id" | "inline"; id?: string | undefined; }; content?: string | undefined; ext?: Record | undefined; } | { kind: "value"; valueType: "string" | "number" | "boolean" | "date" | "enum" | "id"; shape: Record; raw?: unknown; ext?: Record | undefined; } | { kind: "expr"; exprType: "code" | "latex" | "ast"; expr: string | Record; ext?: Record | undefined; })[]; ordered?: boolean | undefined; ext?: Record | undefined; } | undefined; INSTRUMENT?: { kind: "entity"; entityType: string; ref?: { kind: "this" | "that" | "last" | "id"; id?: string | undefined; } | undefined; quant?: { kind: "quantity"; value: number; comparator?: "eq" | "gte" | "lte" | undefined; unit?: string | undefined; ext?: Record | undefined; } | undefined; orderBy?: { kind: "path"; path: string; ext?: Record | undefined; } | undefined; orderDir?: "ASC" | "DESC" | undefined; ext?: Record | undefined; } | { kind: "path"; path: string; ext?: Record | undefined; } | { kind: "artifact"; artifactType: "plan" | "code" | "text" | "math" | "data" | "mixed"; ref: { kind: "id" | "inline"; id?: string | undefined; }; content?: string | undefined; ext?: Record | undefined; } | { kind: "value"; valueType: "string" | "number" | "boolean" | "date" | "enum" | "id"; shape: Record; raw?: unknown; ext?: Record | undefined; } | { kind: "expr"; exprType: "code" | "latex" | "ast"; expr: string | Record; ext?: Record | undefined; } | { kind: "list"; items: ({ kind: "entity"; entityType: string; ref?: { kind: "this" | "that" | "last" | "id"; id?: string | undefined; } | undefined; quant?: { kind: "quantity"; value: number; comparator?: "eq" | "gte" | "lte" | undefined; unit?: string | undefined; ext?: Record | undefined; } | undefined; orderBy?: { kind: "path"; path: string; ext?: Record | undefined; } | undefined; orderDir?: "ASC" | "DESC" | undefined; ext?: Record | undefined; } | { kind: "path"; path: string; ext?: Record | undefined; } | { kind: "artifact"; artifactType: "plan" | "code" | "text" | "math" | "data" | "mixed"; ref: { kind: "id" | "inline"; id?: string | undefined; }; content?: string | undefined; ext?: Record | undefined; } | { kind: "value"; valueType: "string" | "number" | "boolean" | "date" | "enum" | "id"; shape: Record; raw?: unknown; ext?: Record | undefined; } | { kind: "expr"; exprType: "code" | "latex" | "ast"; expr: string | Record; ext?: Record | undefined; })[]; ordered?: boolean | undefined; ext?: Record | undefined; } | undefined; BENEFICIARY?: { kind: "entity"; entityType: string; ref?: { kind: "this" | "that" | "last" | "id"; id?: string | undefined; } | undefined; quant?: { kind: "quantity"; value: number; comparator?: "eq" | "gte" | "lte" | undefined; unit?: string | undefined; ext?: Record | undefined; } | undefined; orderBy?: { kind: "path"; path: string; ext?: Record | undefined; } | undefined; orderDir?: "ASC" | "DESC" | undefined; ext?: Record | undefined; } | { kind: "path"; path: string; ext?: Record | undefined; } | { kind: "artifact"; artifactType: "plan" | "code" | "text" | "math" | "data" | "mixed"; ref: { kind: "id" | "inline"; id?: string | undefined; }; content?: string | undefined; ext?: Record | undefined; } | { kind: "value"; valueType: "string" | "number" | "boolean" | "date" | "enum" | "id"; shape: Record; raw?: unknown; ext?: Record | undefined; } | { kind: "expr"; exprType: "code" | "latex" | "ast"; expr: string | Record; ext?: Record | undefined; } | { kind: "list"; items: ({ kind: "entity"; entityType: string; ref?: { kind: "this" | "that" | "last" | "id"; id?: string | undefined; } | undefined; quant?: { kind: "quantity"; value: number; comparator?: "eq" | "gte" | "lte" | undefined; unit?: string | undefined; ext?: Record | undefined; } | undefined; orderBy?: { kind: "path"; path: string; ext?: Record | undefined; } | undefined; orderDir?: "ASC" | "DESC" | undefined; ext?: Record | undefined; } | { kind: "path"; path: string; ext?: Record | undefined; } | { kind: "artifact"; artifactType: "plan" | "code" | "text" | "math" | "data" | "mixed"; ref: { kind: "id" | "inline"; id?: string | undefined; }; content?: string | undefined; ext?: Record | undefined; } | { kind: "value"; valueType: "string" | "number" | "boolean" | "date" | "enum" | "id"; shape: Record; raw?: unknown; ext?: Record | undefined; } | { kind: "expr"; exprType: "code" | "latex" | "ast"; expr: string | Record; ext?: Record | undefined; })[]; ordered?: boolean | undefined; ext?: Record | undefined; } | undefined; }; cond?: { lhs: string; op: "in" | "=" | "!=" | "<" | ">" | "<=" | ">=" | "contains" | "startsWith" | "matches"; rhs: { kind: "entity"; entityType: string; ref?: { kind: "this" | "that" | "last" | "id"; id?: string | undefined; } | undefined; quant?: { kind: "quantity"; value: number; comparator?: "eq" | "gte" | "lte" | undefined; unit?: string | undefined; ext?: Record | undefined; } | undefined; orderBy?: { kind: "path"; path: string; ext?: Record | undefined; } | undefined; orderDir?: "ASC" | "DESC" | undefined; ext?: Record | undefined; } | { kind: "path"; path: string; ext?: Record | undefined; } | { kind: "artifact"; artifactType: "plan" | "code" | "text" | "math" | "data" | "mixed"; ref: { kind: "id" | "inline"; id?: string | undefined; }; content?: string | undefined; ext?: Record | undefined; } | { kind: "value"; valueType: "string" | "number" | "boolean" | "date" | "enum" | "id"; shape: Record; raw?: unknown; ext?: Record | undefined; } | { kind: "expr"; exprType: "code" | "latex" | "ast"; expr: string | Record; ext?: Record | undefined; } | { kind: "list"; items: ({ kind: "entity"; entityType: string; ref?: { kind: "this" | "that" | "last" | "id"; id?: string | undefined; } | undefined; quant?: { kind: "quantity"; value: number; comparator?: "eq" | "gte" | "lte" | undefined; unit?: string | undefined; ext?: Record | undefined; } | undefined; orderBy?: { kind: "path"; path: string; ext?: Record | undefined; } | undefined; orderDir?: "ASC" | "DESC" | undefined; ext?: Record | undefined; } | { kind: "path"; path: string; ext?: Record | undefined; } | { kind: "artifact"; artifactType: "plan" | "code" | "text" | "math" | "data" | "mixed"; ref: { kind: "id" | "inline"; id?: string | undefined; }; content?: string | undefined; ext?: Record | undefined; } | { kind: "value"; valueType: "string" | "number" | "boolean" | "date" | "enum" | "id"; shape: Record; raw?: unknown; ext?: Record | undefined; } | { kind: "expr"; exprType: "code" | "latex" | "ast"; expr: string | Record; ext?: Record | undefined; })[]; ordered?: boolean | undefined; ext?: Record | undefined; }; }[] | undefined; mod?: "MUST" | "SHOULD" | "MAY" | "FORBID" | undefined; time?: { kind: "NOW" | "AT" | "BEFORE" | "AFTER" | "WITHIN"; value?: unknown; } | undefined; verify?: { mode: "NONE" | "TEST" | "PROOF" | "CITATION" | "RUBRIC" | "POLICY"; spec?: Record | undefined; } | undefined; out?: { type: "number" | "expression" | "proof" | "explanation" | "summary" | "plan" | "code" | "text" | "artifactRef"; format?: "text" | "markdown" | "json" | "latex" | undefined; constraints?: Record | undefined; } | undefined; ext?: Record | undefined; }>; /** * Validation result type. */ export type ValidationResult = { valid: true; data: IntentIR; errors: []; } | { valid: false; data: null; errors: ValidationError[]; }; export type ValidationError = { path: string; message: string; code: string; }; /** * Validate IntentIR and return diagnostics. */ export declare function validateIntentIR(data: unknown): ValidationResult; //# sourceMappingURL=intent-ir.d.ts.map