NodeBase: ZodObject<
{
context: ZodOptional<
ZodUnion<readonly [ZodString, ZodArray<ZodString>]> & {
is(value: unknown): value is string | string[];
},
>;
description: ZodOptional<
ZodUnion<readonly [ZodString, ZodArray<ZodString>]> & {
is(value: unknown): value is string | string[];
},
>;
external_references: ZodOptional<
ZodArray<
ZodObject<
{
description: ZodOptional<
ZodUnion<readonly [(...), (...)]> & {
is(value: unknown): value is (...) | (...);
},
>;
identifier: ZodString;
internalised: ZodOptional<
ZodUnion<readonly [(...), (...)]> & {
is(value: unknown): value is (...) | (...);
},
>;
node_id: ZodOptional<ZodString>;
role: ZodEnum<
{
context: "context";
evidence: "evidence";
input: "input";
output: "output";
prior_art: "prior_art";
source: "source";
standard: "standard";
},
> & {
is(
value: unknown,
): value is
| "output"
| "input"
| "context"
| "evidence"
| "source"
| "standard"
| "prior_art";
};
},
$strip,
> & {
is(
value: unknown,
): value is {
description?: string | string[];
identifier: string;
internalised?: string | string[];
node_id?: string;
role:
| "output"
| "input"
| "context"
| "evidence"
| "source"
| "standard"
| "prior_art";
};
},
>,
>;
id: ZodString;
includes: ZodOptional<ZodArray<ZodString>>;
input: ZodOptional<ZodString>;
lifecycle: ZodOptional<
ZodRecord<ZodString, ZodUnion<readonly [ZodBoolean, ZodString]>>,
>;
name: ZodString;
operations: ZodOptional<
ZodArray<
ZodObject<
{
description: ZodOptional<
ZodUnion<readonly [(...), (...)]> & {
is(value: unknown): value is (...) | (...);
},
>;
target: ZodOptional<ZodString>;
type: ZodEnum<
{ add: "add"; link: "link"; remove: "remove"; update: "update" },
>;
},
$loose,
> & {
is(
value: unknown,
): value is {
description?: string | string[];
target?: string;
type: "link" | "add" | "update" | "remove";
[key: string]: unknown;
};
},
>,
>;
options: ZodOptional<
ZodArray<
ZodObject<
{
description: ZodUnion<readonly [ZodString, ZodArray<(...)>]> & {
is(value: unknown): value is string | (...)[];
};
id: ZodString;
},
$loose,
> & {
is(
value: unknown,
): value is {
description: string | string[];
id: string;
[key: string]: unknown;
};
},
>,
>;
output: ZodOptional<ZodString>;
plan: ZodOptional<
ZodArray<
ZodObject<
{
description: ZodUnion<readonly [ZodString, ZodArray<(...)>]> & {
is(value: unknown): value is string | (...)[];
};
done: ZodOptional<ZodDefault<ZodBoolean>>;
},
$loose,
> & {
is(
value: unknown,
): value is {
description: string | string[];
done?: boolean;
[key: string]: unknown;
};
},
>,
>;
propagation: ZodOptional<ZodRecord<ZodString, ZodBoolean>>;
rationale: ZodOptional<
ZodUnion<readonly [ZodString, ZodArray<ZodString>]> & {
is(value: unknown): value is string | string[];
},
>;
scope: ZodOptional<ZodArray<ZodString>>;
selected: ZodOptional<ZodString>;
status: ZodOptional<
ZodEnum<
{
abandoned: "abandoned";
accepted: "accepted";
active: "active";
adopted: "adopted";
complete: "complete";
consolidated: "consolidated";
deferred: "deferred";
defined: "defined";
deprecated: "deprecated";
experimental: "experimental";
implemented: "implemented";
in_progress: "in_progress";
introduced: "introduced";
proposed: "proposed";
retired: "retired";
superseded: "superseded";
},
> & {
is(
value: unknown,
): value is
| "deprecated"
| "proposed"
| "accepted"
| "active"
| "implemented"
| "adopted"
| "defined"
| "introduced"
| "in_progress"
| "complete"
| "consolidated"
| "experimental"
| "retired"
| "superseded"
| "abandoned"
| "deferred";
},
>;
type: ZodEnum<
{
artefact: "artefact";
artefact_flow: "artefact_flow";
capability: "capability";
change: "change";
concept: "concept";
decision: "decision";
element: "element";
gate: "gate";
intent: "intent";
invariant: "invariant";
milestone: "milestone";
mode: "mode";
policy: "policy";
principle: "principle";
protocol: "protocol";
realisation: "realisation";
role: "role";
stage: "stage";
version: "version";
view: "view";
},
> & {
is(
value: unknown,
): value is
| "intent"
| "concept"
| "capability"
| "element"
| "realisation"
| "invariant"
| "principle"
| "policy"
| "protocol"
| "stage"
| "role"
| "gate"
| "mode"
| "artefact"
| "artefact_flow"
| "decision"
| "change"
| "view"
| "milestone"
| "version";
};
get subsystem(): ZodOptional<
ZodObject<
{
$schema: ZodOptional<ZodString>;
external_references: ZodOptional<
ZodArray<
ZodObject<
{
description: ZodOptional<(...)>;
identifier: ZodString;
internalised: ZodOptional<(...)>;
node_id: ZodOptional<(...)>;
role: (...) & (...);
},
$strip,
> & {
is(
value: unknown,
): value is {
description?: (...) | (...) | (...);
identifier: string;
internalised?: (...) | (...) | (...);
node_id?: (...) | (...);
role: (...) | (...) | (...) | (...) | (...) | (...) | (...);
};
},
>,
>;
metadata: ZodOptional<
ZodObject<
{
doc_type: ZodOptional<ZodString>;
scope: ZodOptional<ZodString>;
status: ZodOptional<ZodString>;
title: ZodOptional<ZodString>;
version: ZodOptional<ZodUnion<(...)>>;
},
$loose,
> & {
is(
value: unknown,
): value is {
doc_type?: string;
scope?: string;
status?: string;
title?: string;
version?: string | number;
[key: string]: unknown;
};
},
>;
nodes: ZodArray<
(
ZodObject<{ id: ZodString; type: ZodEnum<{ intent: "intent"; concept: "concept"; capability: "capability"; element: "element"; realisation: "realisation"; invariant: "invariant"; principle: "principle"; ... 12 more ...; version: "version"; }> & { ...; }; ... 16 more ...; readonly subsystem: ZodOptional<...>; }, $loo...
),
>;
relationships: ZodOptional<
ZodArray<
ZodObject<
{
description: ZodOptional<(...)>;
from: ZodString;
polarity: ZodOptional<(...)>;
strength: ZodOptional<(...)>;
to: ZodString;
type: (...) & (...);
},
$loose,
> & {
is(
value: unknown,
): value is {
description?: (...) | (...) | (...);
from: string;
polarity?: (...) | (...) | (...) | (...) | (...);
strength?: (...) | (...);
to: string;
type:
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...);
[key: string]: unknown;
};
},
>,
>;
},
$strip,
>,
>;
},
$loose,
> = ...
Base node object schema without ID-prefix refinement. Supports .partial().