SysProM
    Preparing search index...

    Variable queryNodesOpConst

    queryNodesOp: DefinedOperation<
        ZodObject<
            {
                doc: ZodObject<
                    {
                        $schema: ZodOptional<ZodString>;
                        external_references: ZodOptional<
                            ZodArray<
                                ZodObject<
                                    {
                                        description: ...;
                                        identifier: ...;
                                        internalised: ...;
                                        node_id: ...;
                                        role: ...;
                                    },
                                    $strip,
                                > & {
                                    is(
                                        value: unknown,
                                    ): value is {
                                        description?: ...;
                                        identifier: ...;
                                        internalised?: ...;
                                        node_id?: ...;
                                        role: ...;
                                    };
                                },
                            >,
                        >;
                        metadata: ZodOptional<
                            ZodObject<
                                {
                                    doc_type: ZodOptional<(...)>;
                                    scope: ZodOptional<(...)>;
                                    status: ZodOptional<(...)>;
                                    title: ZodOptional<(...)>;
                                    version: ZodOptional<(...)>;
                                },
                                $loose,
                            > & {
                                is(
                                    value: unknown,
                                ): value is {
                                    doc_type?: (...) | (...);
                                    scope?: (...) | (...);
                                    status?: (...) | (...);
                                    title?: (...) | (...);
                                    version?: (...) | (...) | (...);
                                    [key: string]: unknown;
                                };
                            },
                        >;
                        nodes: ZodArray<
                            ZodObject<
                                {
                                    context: ZodOptional<(...) & (...)>;
                                    description: ZodOptional<(...) & (...)>;
                                    external_references: ZodOptional<ZodArray<(...)>>;
                                    id: ZodString;
                                    includes: ZodOptional<ZodArray<(...)>>;
                                    lifecycle: ZodOptional<ZodRecord<(...), (...)>>;
                                    name: ZodString;
                                    operations: ZodOptional<ZodArray<(...)>>;
                                    options: ZodOptional<ZodArray<(...)>>;
                                    propagation: ZodOptional<ZodRecord<(...), (...)>>;
                                    rationale: ZodOptional<(...) & (...)>;
                                    scope: ZodOptional<ZodArray<(...)>>;
                                    selected: ZodOptional<ZodString>;
                                    status: ZodOptional<ZodNever>;
                                    type: ZodEnum<(...)> & { is(value: ...): value is (...) };
                                    get subsystem(): ZodOptional<
                                        (
                                            ZodObject<{ $schema: ZodOptional<ZodString>; metadata: ZodOptional<ZodObject<{ title: ZodOptional<ZodString>; doc_type: ZodOptional<ZodString>; scope: ZodOptional<...>; status: ZodOptional<...>; version: ZodOptional<...>; }, $loose> & { ...; }>; nodes: ZodArray<...>; relationships: ZodOptional<...>; external_referen...
                                        ),
                                    >;
                                },
                                $loose,
                            >,
                        >;
                        relationships: ZodOptional<
                            ZodArray<
                                ZodObject<
                                    {
                                        description: ...;
                                        from: ...;
                                        polarity: ...;
                                        strength: ...;
                                        to: ...;
                                        type: ...;
                                    },
                                    $loose,
                                > & {
                                    is(
                                        value: unknown,
                                    ): value is {
                                        description?: ...;
                                        from: ...;
                                        polarity?: ...;
                                        strength?: ...;
                                        to: ...;
                                        type: ...;
                                        [key: ...]: ...;
                                    };
                                },
                            >,
                        >;
                    },
                    $strip,
                > & {
                    is(
                        value: unknown,
                    ): value is {
                        $schema?: string;
                        external_references?: {
                            description?: string | (...)[];
                            identifier: string;
                            internalised?: string | (...)[];
                            node_id?: string;
                            role:
                                | "output"
                                | "input"
                                | "context"
                                | "evidence"
                                | "source"
                                | "standard"
                                | "prior_art";
                        }[];
                        metadata?: {
                            doc_type?: string;
                            scope?: string;
                            status?: string;
                            title?: string;
                            version?: string
                            | number;
                            [key: string]: unknown;
                        };
                        nodes: {
                            context?: string
                            | string[];
                            description?: string | string[];
                            external_references?: {
                                description?: ...;
                                identifier: ...;
                                internalised?: ...;
                                node_id?: ...;
                                role: ...;
                            }[];
                            id: string;
                            includes?: string[];
                            lifecycle?: Record<string, (...) | (...) | (...)>;
                            name: string;
                            operations?: {
                                description?: ...;
                                target?: ...;
                                type: ...;
                                [key: ...]: ...;
                            }[];
                            options?: { description: ...; id: ...; [key: ...]: ... }[];
                            propagation?: Record<string, boolean>;
                            rationale?: string | string[];
                            scope?: string[];
                            selected?: string;
                            status?: undefined;
                            subsystem?: { nodes: { [x: string]: unknown; id: string; type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | ... 5 more ... | "milestone"; ... 13 more ...; subsystem?: ... | undefined; }[]; $schema?: string | undefined; metadata?...;
                            type:
                                | "intent"
                                | "concept"
                                | "capability"
                                | "element"
                                | "realisation"
                                | "invariant"
                                | "principle"
                                | "policy"
                                | "protocol"
                                | "stage"
                                | "role"
                                | "gate"
                                | "mode"
                                | "artefact"
                                | "decision"
                                | "change"
                                | "view"
                                | "milestone";
                            [key: string]: unknown;
                        }[];
                        relationships?: {
                            description?: 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;
                        }[];
                    };
                };
                status: ZodOptional<ZodString>;
                type: ZodOptional<ZodString>;
            },
            $strip,
        >,
        ZodArray<
            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<(...)>;
                                    identifier: ZodString;
                                    internalised: ZodOptional<(...)>;
                                    node_id: ZodOptional<(...)>;
                                    role: (...) & (...);
                                },
                                $strip,
                            > & {
                                is(
                                    value: unknown,
                                ): value is {
                                    description?: (...) | (...) | (...);
                                    identifier: string;
                                    internalised?: (...) | (...) | (...);
                                    node_id?: (...) | (...);
                                    role: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                                };
                            },
                        >,
                    >;
                    id: ZodString;
                    includes: ZodOptional<ZodArray<ZodString>>;
                    lifecycle: ZodOptional<
                        ZodRecord<ZodString, ZodUnion<readonly [ZodBoolean, ZodString]>>,
                    >;
                    name: ZodString;
                    operations: ZodOptional<
                        ZodArray<
                            ZodObject<
                                {
                                    description: ZodOptional<(...)>;
                                    target: ZodOptional<(...)>;
                                    type: ZodEnum<(...)>;
                                },
                                $loose,
                            > & {
                                is(
                                    value: unknown,
                                ): value is {
                                    description?: (...) | (...) | (...);
                                    target?: (...) | (...);
                                    type: (...) | (...) | (...) | (...);
                                    [key: string]: unknown;
                                };
                            },
                        >,
                    >;
                    options: ZodOptional<
                        ZodArray<
                            ZodObject<{ description: (...) & (...); id: ZodString }, $loose> & {
                                is(
                                    value: unknown,
                                ): value is {
                                    description: (...) | (...);
                                    id: string;
                                    [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<ZodNever>;
                    type: ZodEnum<
                        {
                            artefact: "artefact";
                            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";
                            view: "view";
                        },
                    > & {
                        is(
                            value: unknown,
                        ): value is
                            | "intent"
                            | "concept"
                            | "capability"
                            | "element"
                            | "realisation"
                            | "invariant"
                            | "principle"
                            | "policy"
                            | "protocol"
                            | "stage"
                            | "role"
                            | "gate"
                            | "mode"
                            | "artefact"
                            | "decision"
                            | "change"
                            | "view"
                            | "milestone";
                    };
                    get subsystem(): ZodOptional<
                        ZodObject<
                            {
                                $schema: ZodOptional<ZodString>;
                                external_references: ZodOptional<ZodArray<(...) & (...)>>;
                                metadata: ZodOptional<
                                    ZodObject<(...), (...)> & { is(value: ...): value is (...) },
                                >;
                                nodes: ZodArray<
                                    (
                                        ZodObject<{ id: ZodString; type: ZodEnum<{ intent: "intent"; concept: "concept"; capability: "capability"; element: "element"; realisation: "realisation"; invariant: "invariant"; principle: "principle"; ... 10 more ...; milestone: "milestone"; }> & { ...; }; ... 13 more ...; readonly subsystem: ZodOptional<...>; }, ...
                                    ),
                                >;
                                relationships: ZodOptional<ZodArray<(...) & (...)>>;
                            },
                            $strip,
                        >,
                    >;
                },
                $loose,
            > & {
                is(
                    value: unknown,
                ): value is {
                    context?: string | string[];
                    description?: string | string[];
                    external_references?: {
                        description?: string | string[];
                        identifier: string;
                        internalised?: string | string[];
                        node_id?: string;
                        role:
                            | "output"
                            | "input"
                            | "context"
                            | "evidence"
                            | "source"
                            | "standard"
                            | "prior_art";
                    }[];
                    id: string;
                    includes?: string[];
                    lifecycle?: Record<string, string | boolean>;
                    name: string;
                    operations?: {
                        description?: string | string[];
                        target?: string;
                        type: "link" | "add" | "update" | "remove";
                        [key: string]: unknown;
                    }[];
                    options?: {
                        description: string
                        | string[];
                        id: string;
                        [key: string]: unknown;
                    }[];
                    propagation?: Record<string, boolean>;
                    rationale?: string | string[];
                    scope?: string[];
                    selected?: string;
                    status?: undefined;
                    subsystem?: {
                        $schema?: string;
                        external_references?: {
                            description?: (...) | (...) | (...);
                            identifier: string;
                            internalised?: (...) | (...) | (...);
                            node_id?: (...) | (...);
                            role: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                        }[];
                        metadata?: {
                            doc_type?: string;
                            scope?: string;
                            status?: string;
                            title?: string;
                            version?: string
                            | number;
                            [key: string]: unknown;
                        };
                        nodes: (
                            { [x: string]: unknown; id: string; type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | ... 4 more ... | "milestone"; ... 13 more ...; subsystem?: { ...; } | undefined; }
                        )[];
                        relationships?: {
                            description?: (...)
                            | (...)
                            | (...);
                            from: string;
                            polarity?: (...) | (...) | (...) | (...) | (...);
                            strength?: (...) | (...);
                            to: string;
                            type:
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                            [key: string]: unknown;
                        }[];
                    };
                    type: | "intent"
                    | "concept"
                    | "capability"
                    | "element"
                    | "realisation"
                    | "invariant"
                    | "principle"
                    | "policy"
                    | "protocol"
                    | "stage"
                    | "role"
                    | "gate"
                    | "mode"
                    | "artefact"
                    | "decision"
                    | "change"
                    | "view"
                    | "milestone";
                    [key: string]: unknown;
                };
            },
        >,
    > = ...

    Query nodes from a SysProM document with optional filters for type and lifecycle state.