Variable RelationshipConst
Relationship: ZodObject<
{
description: ZodOptional<
ZodUnion<readonly [ZodString, ZodArray<ZodString>]> & {
is(value: unknown): value is string | string[];
},
>;
from: ZodString;
polarity: ZodOptional<
ZodEnum<
{
negative: "negative";
neutral: "neutral";
positive: "positive";
uncertain: "uncertain";
},
> & {
is(
value: unknown,
): value is "positive" | "negative" | "neutral" | "uncertain";
},
>;
strength: ZodOptional<ZodNumber>;
to: ZodString;
type: ZodEnum<
{
affects: "affects";
constrained_by: "constrained_by";
depends_on: "depends_on";
governed_by: "governed_by";
implements: "implements";
modifies: "modifies";
must_follow: "must_follow";
must_preserve: "must_preserve";
part_of: "part_of";
precedes: "precedes";
produces: "produces";
realises: "realises";
refines: "refines";
supersedes: "supersedes";
},
> & {
is(
value: unknown,
): value is
| "refines"
| "realises"
| "implements"
| "depends_on"
| "constrained_by"
| "affects"
| "supersedes"
| "must_preserve"
| "part_of"
| "precedes"
| "must_follow"
| "governed_by"
| "modifies"
| "produces";
};
},
$loose,
> & {
is(
value: unknown,
): value is {
description?: string | string[];
from: string;
polarity?: "positive" | "negative" | "neutral" | "uncertain";
strength?: number;
to: string;
type:
| "refines"
| "realises"
| "implements"
| "depends_on"
| "constrained_by"
| "affects"
| "supersedes"
| "must_preserve"
| "part_of"
| "precedes"
| "must_follow"
| "governed_by"
| "modifies"
| "produces";
[key: string]: unknown;
};
} = ...
Zod schema for a typed, directed relationship between two nodes.