IFClite TypeScript API
    Preparing search index...

    Variable getHostProtocolSchemasConst

    getHostProtocolSchemas: () => {
        "v1-host-message": {
            $defs: {
                applyReport: {
                    additionalProperties: boolean;
                    properties: Record<string, unknown>;
                    required: string[];
                    title: "HostViewApplyReport";
                    type: string;
                };
                capabilities: { items: { type: "string" }; type: "array" };
                capability: {
                    enum: readonly (
                        | "view.apply"
                        | "view.capture"
                        | "view.saved"
                        | "clash.run"
                        | "clash.decisions"
                        | "connection.resume"
                    )[];
                };
                clashDecision: {
                    additionalProperties: boolean;
                    properties: Record<string, unknown>;
                    required: string[];
                    type: string;
                };
                clashDecisionInput: {
                    if: { required: readonly ["disposition"] };
                    properties: {
                        comment: { maxLength: 2000; type: "string" };
                        disposition: { const: "ignored" };
                        legacyKey: {
                            maxLength: 1024;
                            minLength: 1;
                            pattern: "\\S";
                            type: "string";
                        };
                        status: { enum: readonly ["open", "resolved", "accepted"] };
                    };
                    required: readonly ["legacyKey", "status"];
                    then: { properties: { status: { const: "accepted" } } };
                    type: "object";
                };
                clashReview: {
                    additionalProperties: boolean;
                    properties: Record<string, unknown>;
                    required: string[];
                    type: string;
                };
                clashRun: {
                    oneOf: readonly [
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                    ];
                };
                clashRunDelivery: { enum: readonly ["on-submit", "every-run"] };
                clashRunDocument: {
                    description: "A clash run document, version 1 or 2, as @ifc-lite/clash writes it; that package publishes the full schema.";
                    properties: {
                        createdAt: { type: "string" };
                        findings: { type: "array" };
                        manifest: { type: "object" };
                        runId: { type: readonly ["string", "null"] };
                        schema: { type: "string" };
                        version: { enum: readonly [1, 2] };
                    };
                    required: readonly [
                        "schema",
                        "version",
                        "runId",
                        "createdAt",
                        "manifest",
                        "findings",
                    ];
                    type: "object";
                };
                eventType: {
                    enum: readonly [
                        "start-view",
                        "view-saved",
                        "clash-run",
                        "clash-decision",
                    ];
                };
                protocolVersion: {
                    properties: {
                        major: { minimum: 1; type: "integer" };
                        minor: { minimum: 0; type: "integer" };
                    };
                    required: readonly ["major", "minor"];
                    type: "object";
                };
                reply: {
                    oneOf: readonly [
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                    ];
                };
                requestId: {
                    anyOf: readonly [
                        { maxLength: 128; minLength: 1; type: "string" },
                        { type: "number" },
                    ];
                };
                requestType: {
                    enum: readonly [
                        "apply-view",
                        "capture-view",
                        "apply-clash-decisions",
                    ];
                };
                savedView: {
                    properties: {
                        camera: {
                            if: { properties: { projection: { const: "orthographic" } } };
                            properties: {
                                direction: {
                                    items: { type: string };
                                    maxItems: number;
                                    minItems: number;
                                    not: { const: (...)[] };
                                    type: string;
                                };
                                fieldOfView: {
                                    exclusiveMaximum: 180;
                                    exclusiveMinimum: 0;
                                    type: "number";
                                };
                                position: {
                                    items: { type: string };
                                    maxItems: number;
                                    minItems: number;
                                    type: string;
                                };
                                projection: { enum: readonly [(...), (...)] };
                                up: {
                                    items: { type: string };
                                    maxItems: number;
                                    minItems: number;
                                    not: { const: (...)[] };
                                    type: string;
                                };
                                viewToWorldScale: { exclusiveMinimum: 0; type: "number" };
                            };
                            required: readonly ["projection", "position", "direction", "up"];
                            then: { required: readonly ["viewToWorldScale"] };
                            type: "object";
                        };
                        hidden: { $ref: string };
                        isolated: { $ref: string };
                        models: {
                            properties: {
                                hidden: { items: { $ref: string }; type: "array" };
                                visible: { items: { $ref: string }; type: "array" };
                            };
                            required: readonly ["visible"];
                            type: "object";
                        };
                        section: {
                            properties: {
                                planes: {
                                    items: {
                                        properties: { direction: ...; location: ... };
                                        required: readonly (...);
                                        type: "object";
                                    };
                                    maxItems: 64;
                                    type: "array";
                                };
                            };
                            required: readonly ["planes"];
                            type: "object";
                        };
                        version: { const: 1 };
                    };
                    required: readonly ["version", "camera"];
                    title: "HostSavedView";
                    type: "object";
                };
                startViewOutcome: {
                    oneOf: readonly [
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                    ];
                    title: "StartViewOutcome";
                };
                viewElement: {
                    properties: { globalId: { $ref: string }; model: { $ref: string } };
                    required: readonly ["globalId"];
                    type: "object";
                };
                viewElements: {
                    items: { $ref: string };
                    maxItems: 200000;
                    type: "array";
                };
                viewRef: {
                    maxLength: 128;
                    minLength: 1;
                    pattern: "^[^\\u0000-\\u001f\\u007f]*[^\\s\\u0000-\\u001f\\u007f][^\\u0000-\\u001f\\u007f]*$";
                    type: "string";
                };
                viewSaved: {
                    oneOf: readonly [
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                    ];
                };
            };
            $id: "https://ifclite.dev/schemas/host-protocol/v1/host-message.json";
            $schema: "https://json-schema.org/draft/2020-12/schema";
            oneOf: {
                properties: | {
                    id: { $ref: string };
                    payload: { $ref: string } | { items: { $ref: string }; type: "array" };
                    type: { const: "apply-view" | "capture-view" | "apply-clash-decisions" };
                }
                | {
                    id: { $ref: string };
                    payload: boolean;
                    type: { const: "apply-view" | "capture-view" | "apply-clash-decisions" };
                };
                required: string[];
                type: string;
            }[];
            title: "ifc-lite host protocol v1: host to viewer (window message)";
        };
        "v1-viewer-message": {
            $defs: {
                applyReport: {
                    additionalProperties: boolean;
                    properties: Record<string, unknown>;
                    required: string[];
                    title: "HostViewApplyReport";
                    type: string;
                };
                capabilities: { items: { type: "string" }; type: "array" };
                capability: {
                    enum: readonly (
                        | "view.apply"
                        | "view.capture"
                        | "view.saved"
                        | "clash.run"
                        | "clash.decisions"
                        | "connection.resume"
                    )[];
                };
                clashDecision: {
                    additionalProperties: boolean;
                    properties: Record<string, unknown>;
                    required: string[];
                    type: string;
                };
                clashDecisionInput: {
                    if: { required: readonly ["disposition"] };
                    properties: {
                        comment: { maxLength: 2000; type: "string" };
                        disposition: { const: "ignored" };
                        legacyKey: {
                            maxLength: 1024;
                            minLength: 1;
                            pattern: "\\S";
                            type: "string";
                        };
                        status: { enum: readonly ["open", "resolved", "accepted"] };
                    };
                    required: readonly ["legacyKey", "status"];
                    then: { properties: { status: { const: "accepted" } } };
                    type: "object";
                };
                clashReview: {
                    additionalProperties: boolean;
                    properties: Record<string, unknown>;
                    required: string[];
                    type: string;
                };
                clashRun: {
                    oneOf: readonly [
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                    ];
                };
                clashRunDelivery: { enum: readonly ["on-submit", "every-run"] };
                clashRunDocument: {
                    description: "A clash run document, version 1 or 2, as @ifc-lite/clash writes it; that package publishes the full schema.";
                    properties: {
                        createdAt: { type: "string" };
                        findings: { type: "array" };
                        manifest: { type: "object" };
                        runId: { type: readonly ["string", "null"] };
                        schema: { type: "string" };
                        version: { enum: readonly [1, 2] };
                    };
                    required: readonly [
                        "schema",
                        "version",
                        "runId",
                        "createdAt",
                        "manifest",
                        "findings",
                    ];
                    type: "object";
                };
                eventType: {
                    enum: readonly [
                        "start-view",
                        "view-saved",
                        "clash-run",
                        "clash-decision",
                    ];
                };
                protocolVersion: {
                    properties: {
                        major: { minimum: 1; type: "integer" };
                        minor: { minimum: 0; type: "integer" };
                    };
                    required: readonly ["major", "minor"];
                    type: "object";
                };
                reply: {
                    oneOf: readonly [
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                    ];
                };
                requestId: {
                    anyOf: readonly [
                        { maxLength: 128; minLength: 1; type: "string" },
                        { type: "number" },
                    ];
                };
                requestType: {
                    enum: readonly [
                        "apply-view",
                        "capture-view",
                        "apply-clash-decisions",
                    ];
                };
                savedView: {
                    properties: {
                        camera: {
                            if: { properties: { projection: { const: "orthographic" } } };
                            properties: {
                                direction: {
                                    items: { type: string };
                                    maxItems: number;
                                    minItems: number;
                                    not: { const: (...)[] };
                                    type: string;
                                };
                                fieldOfView: {
                                    exclusiveMaximum: 180;
                                    exclusiveMinimum: 0;
                                    type: "number";
                                };
                                position: {
                                    items: { type: string };
                                    maxItems: number;
                                    minItems: number;
                                    type: string;
                                };
                                projection: { enum: readonly [(...), (...)] };
                                up: {
                                    items: { type: string };
                                    maxItems: number;
                                    minItems: number;
                                    not: { const: (...)[] };
                                    type: string;
                                };
                                viewToWorldScale: { exclusiveMinimum: 0; type: "number" };
                            };
                            required: readonly ["projection", "position", "direction", "up"];
                            then: { required: readonly ["viewToWorldScale"] };
                            type: "object";
                        };
                        hidden: { $ref: string };
                        isolated: { $ref: string };
                        models: {
                            properties: {
                                hidden: { items: { $ref: string }; type: "array" };
                                visible: { items: { $ref: string }; type: "array" };
                            };
                            required: readonly ["visible"];
                            type: "object";
                        };
                        section: {
                            properties: {
                                planes: {
                                    items: {
                                        properties: { direction: ...; location: ... };
                                        required: readonly (...);
                                        type: "object";
                                    };
                                    maxItems: 64;
                                    type: "array";
                                };
                            };
                            required: readonly ["planes"];
                            type: "object";
                        };
                        version: { const: 1 };
                    };
                    required: readonly ["version", "camera"];
                    title: "HostSavedView";
                    type: "object";
                };
                startViewOutcome: {
                    oneOf: readonly [
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                    ];
                    title: "StartViewOutcome";
                };
                viewElement: {
                    properties: { globalId: { $ref: string }; model: { $ref: string } };
                    required: readonly ["globalId"];
                    type: "object";
                };
                viewElements: {
                    items: { $ref: string };
                    maxItems: 200000;
                    type: "array";
                };
                viewRef: {
                    maxLength: 128;
                    minLength: 1;
                    pattern: "^[^\\u0000-\\u001f\\u007f]*[^\\s\\u0000-\\u001f\\u007f][^\\u0000-\\u001f\\u007f]*$";
                    type: "string";
                };
                viewSaved: {
                    oneOf: readonly [
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                    ];
                };
            };
            $id: "https://ifclite.dev/schemas/host-protocol/v1/viewer-message.json";
            $schema: "https://json-schema.org/draft/2020-12/schema";
            oneOf: readonly [
                {
                    additionalProperties: boolean;
                    properties: Record<string, unknown>;
                    required: string[];
                    type: string;
                },
                ...{
                    additionalProperties: boolean;
                    properties: Record<string, unknown>;
                    required: string[];
                    type: string;
                }[],
                {
                    additionalProperties: boolean;
                    properties: Record<string, unknown>;
                    required: string[];
                    type: string;
                },
            ];
            title: "ifc-lite host protocol v1: viewer to host (window message)";
        };
        "v2-host-message": {
            $defs: {
                applyReport: {
                    additionalProperties: boolean;
                    properties: Record<string, unknown>;
                    required: string[];
                    title: "HostViewApplyReport";
                    type: string;
                };
                capabilities: { items: { type: "string" }; type: "array" };
                capability: {
                    enum: readonly (
                        | "view.apply"
                        | "view.capture"
                        | "view.saved"
                        | "clash.run"
                        | "clash.decisions"
                        | "connection.resume"
                    )[];
                };
                clashDecision: {
                    additionalProperties: boolean;
                    properties: Record<string, unknown>;
                    required: string[];
                    type: string;
                };
                clashDecisionInput: {
                    if: { required: readonly ["disposition"] };
                    properties: {
                        comment: { maxLength: 2000; type: "string" };
                        disposition: { const: "ignored" };
                        legacyKey: {
                            maxLength: 1024;
                            minLength: 1;
                            pattern: "\\S";
                            type: "string";
                        };
                        status: { enum: readonly ["open", "resolved", "accepted"] };
                    };
                    required: readonly ["legacyKey", "status"];
                    then: { properties: { status: { const: "accepted" } } };
                    type: "object";
                };
                clashReview: {
                    additionalProperties: boolean;
                    properties: Record<string, unknown>;
                    required: string[];
                    type: string;
                };
                clashRun: {
                    oneOf: readonly [
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                    ];
                };
                clashRunDelivery: { enum: readonly ["on-submit", "every-run"] };
                clashRunDocument: {
                    description: "A clash run document, version 1 or 2, as @ifc-lite/clash writes it; that package publishes the full schema.";
                    properties: {
                        createdAt: { type: "string" };
                        findings: { type: "array" };
                        manifest: { type: "object" };
                        runId: { type: readonly ["string", "null"] };
                        schema: { type: "string" };
                        version: { enum: readonly [1, 2] };
                    };
                    required: readonly [
                        "schema",
                        "version",
                        "runId",
                        "createdAt",
                        "manifest",
                        "findings",
                    ];
                    type: "object";
                };
                eventType: {
                    enum: readonly [
                        "start-view",
                        "view-saved",
                        "clash-run",
                        "clash-decision",
                    ];
                };
                protocolVersion: {
                    properties: {
                        major: { minimum: 1; type: "integer" };
                        minor: { minimum: 0; type: "integer" };
                    };
                    required: readonly ["major", "minor"];
                    type: "object";
                };
                reply: {
                    oneOf: readonly [
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                    ];
                };
                requestId: {
                    anyOf: readonly [
                        { maxLength: 128; minLength: 1; type: "string" },
                        { type: "number" },
                    ];
                };
                requestType: {
                    enum: readonly [
                        "apply-view",
                        "capture-view",
                        "apply-clash-decisions",
                    ];
                };
                savedView: {
                    properties: {
                        camera: {
                            if: { properties: { projection: { const: "orthographic" } } };
                            properties: {
                                direction: {
                                    items: { type: string };
                                    maxItems: number;
                                    minItems: number;
                                    not: { const: (...)[] };
                                    type: string;
                                };
                                fieldOfView: {
                                    exclusiveMaximum: 180;
                                    exclusiveMinimum: 0;
                                    type: "number";
                                };
                                position: {
                                    items: { type: string };
                                    maxItems: number;
                                    minItems: number;
                                    type: string;
                                };
                                projection: { enum: readonly [(...), (...)] };
                                up: {
                                    items: { type: string };
                                    maxItems: number;
                                    minItems: number;
                                    not: { const: (...)[] };
                                    type: string;
                                };
                                viewToWorldScale: { exclusiveMinimum: 0; type: "number" };
                            };
                            required: readonly ["projection", "position", "direction", "up"];
                            then: { required: readonly ["viewToWorldScale"] };
                            type: "object";
                        };
                        hidden: { $ref: string };
                        isolated: { $ref: string };
                        models: {
                            properties: {
                                hidden: { items: { $ref: string }; type: "array" };
                                visible: { items: { $ref: string }; type: "array" };
                            };
                            required: readonly ["visible"];
                            type: "object";
                        };
                        section: {
                            properties: {
                                planes: {
                                    items: {
                                        properties: { direction: ...; location: ... };
                                        required: readonly (...);
                                        type: "object";
                                    };
                                    maxItems: 64;
                                    type: "array";
                                };
                            };
                            required: readonly ["planes"];
                            type: "object";
                        };
                        version: { const: 1 };
                    };
                    required: readonly ["version", "camera"];
                    title: "HostSavedView";
                    type: "object";
                };
                startViewOutcome: {
                    oneOf: readonly [
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                    ];
                    title: "StartViewOutcome";
                };
                viewElement: {
                    properties: { globalId: { $ref: string }; model: { $ref: string } };
                    required: readonly ["globalId"];
                    type: "object";
                };
                viewElements: {
                    items: { $ref: string };
                    maxItems: 200000;
                    type: "array";
                };
                viewRef: {
                    maxLength: 128;
                    minLength: 1;
                    pattern: "^[^\\u0000-\\u001f\\u007f]*[^\\s\\u0000-\\u001f\\u007f][^\\u0000-\\u001f\\u007f]*$";
                    type: "string";
                };
                viewSaved: {
                    oneOf: readonly [
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                    ];
                };
            };
            $id: "https://ifclite.dev/schemas/host-protocol/v2/host-message.json";
            $schema: "https://json-schema.org/draft/2020-12/schema";
            description: "The hello is a window message to the viewer with a MessagePort transferred; everything else travels on that port.";
            oneOf: readonly [
                {
                    properties: {
                        connectionId: { maxLength: 128; minLength: 1; type: "string" };
                        protocol: { $ref: string };
                        resume: { anyOf: ((...) | (...))[] };
                        target: { const: "ifc-lite-viewer" };
                        type: { const: "hello" };
                        wants: { $ref: string };
                    };
                    required: readonly ["target", "type", "protocol"];
                    type: "object";
                },
                {
                    properties: {
                        protocol: { $ref: string };
                        target: false;
                        type: { const: "hello" };
                        wants: { $ref: string };
                    };
                    required: readonly ["type", "protocol"];
                    type: "object";
                },
                { properties: Record<string, unknown>; required: string[]; type: string },
                ...{
                    properties:
                        | {
                            id: { $ref: ... };
                            payload: (...) | (...);
                            type: { const: ... };
                        }
                        | { id: { $ref: ... }; payload: boolean; type: { const: ... } };
                    required: string[];
                    type: string;
                }[],
                {
                    additionalProperties: boolean;
                    properties: Record<string, unknown>;
                    required: string[];
                    type: string;
                },
            ];
            title: "ifc-lite host protocol v2: host or panel to viewer";
        };
        "v2-viewer-message": {
            $defs: {
                applyReport: {
                    additionalProperties: boolean;
                    properties: Record<string, unknown>;
                    required: string[];
                    title: "HostViewApplyReport";
                    type: string;
                };
                capabilities: { items: { type: "string" }; type: "array" };
                capability: {
                    enum: readonly (
                        | "view.apply"
                        | "view.capture"
                        | "view.saved"
                        | "clash.run"
                        | "clash.decisions"
                        | "connection.resume"
                    )[];
                };
                clashDecision: {
                    additionalProperties: boolean;
                    properties: Record<string, unknown>;
                    required: string[];
                    type: string;
                };
                clashDecisionInput: {
                    if: { required: readonly ["disposition"] };
                    properties: {
                        comment: { maxLength: 2000; type: "string" };
                        disposition: { const: "ignored" };
                        legacyKey: {
                            maxLength: 1024;
                            minLength: 1;
                            pattern: "\\S";
                            type: "string";
                        };
                        status: { enum: readonly ["open", "resolved", "accepted"] };
                    };
                    required: readonly ["legacyKey", "status"];
                    then: { properties: { status: { const: "accepted" } } };
                    type: "object";
                };
                clashReview: {
                    additionalProperties: boolean;
                    properties: Record<string, unknown>;
                    required: string[];
                    type: string;
                };
                clashRun: {
                    oneOf: readonly [
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                    ];
                };
                clashRunDelivery: { enum: readonly ["on-submit", "every-run"] };
                clashRunDocument: {
                    description: "A clash run document, version 1 or 2, as @ifc-lite/clash writes it; that package publishes the full schema.";
                    properties: {
                        createdAt: { type: "string" };
                        findings: { type: "array" };
                        manifest: { type: "object" };
                        runId: { type: readonly ["string", "null"] };
                        schema: { type: "string" };
                        version: { enum: readonly [1, 2] };
                    };
                    required: readonly [
                        "schema",
                        "version",
                        "runId",
                        "createdAt",
                        "manifest",
                        "findings",
                    ];
                    type: "object";
                };
                eventType: {
                    enum: readonly [
                        "start-view",
                        "view-saved",
                        "clash-run",
                        "clash-decision",
                    ];
                };
                protocolVersion: {
                    properties: {
                        major: { minimum: 1; type: "integer" };
                        minor: { minimum: 0; type: "integer" };
                    };
                    required: readonly ["major", "minor"];
                    type: "object";
                };
                reply: {
                    oneOf: readonly [
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                    ];
                };
                replyOnPort: {
                    oneOf: readonly [
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                    ];
                };
                requestId: {
                    anyOf: readonly [
                        { maxLength: 128; minLength: 1; type: "string" },
                        { type: "number" },
                    ];
                };
                requestType: {
                    enum: readonly [
                        "apply-view",
                        "capture-view",
                        "apply-clash-decisions",
                    ];
                };
                savedView: {
                    properties: {
                        camera: {
                            if: { properties: { projection: { const: "orthographic" } } };
                            properties: {
                                direction: {
                                    items: { type: string };
                                    maxItems: number;
                                    minItems: number;
                                    not: { const: (...)[] };
                                    type: string;
                                };
                                fieldOfView: {
                                    exclusiveMaximum: 180;
                                    exclusiveMinimum: 0;
                                    type: "number";
                                };
                                position: {
                                    items: { type: string };
                                    maxItems: number;
                                    minItems: number;
                                    type: string;
                                };
                                projection: { enum: readonly [(...), (...)] };
                                up: {
                                    items: { type: string };
                                    maxItems: number;
                                    minItems: number;
                                    not: { const: (...)[] };
                                    type: string;
                                };
                                viewToWorldScale: { exclusiveMinimum: 0; type: "number" };
                            };
                            required: readonly ["projection", "position", "direction", "up"];
                            then: { required: readonly ["viewToWorldScale"] };
                            type: "object";
                        };
                        hidden: { $ref: string };
                        isolated: { $ref: string };
                        models: {
                            properties: {
                                hidden: { items: { $ref: string }; type: "array" };
                                visible: { items: { $ref: string }; type: "array" };
                            };
                            required: readonly ["visible"];
                            type: "object";
                        };
                        section: {
                            properties: {
                                planes: {
                                    items: {
                                        properties: { direction: ...; location: ... };
                                        required: readonly (...);
                                        type: "object";
                                    };
                                    maxItems: 64;
                                    type: "array";
                                };
                            };
                            required: readonly ["planes"];
                            type: "object";
                        };
                        version: { const: 1 };
                    };
                    required: readonly ["version", "camera"];
                    title: "HostSavedView";
                    type: "object";
                };
                startViewOutcome: {
                    oneOf: readonly [
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                    ];
                    title: "StartViewOutcome";
                };
                viewElement: {
                    properties: { globalId: { $ref: string }; model: { $ref: string } };
                    required: readonly ["globalId"];
                    type: "object";
                };
                viewElements: {
                    items: { $ref: string };
                    maxItems: 200000;
                    type: "array";
                };
                viewRef: {
                    maxLength: 128;
                    minLength: 1;
                    pattern: "^[^\\u0000-\\u001f\\u007f]*[^\\s\\u0000-\\u001f\\u007f][^\\u0000-\\u001f\\u007f]*$";
                    type: "string";
                };
                viewSaved: {
                    oneOf: readonly [
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                        {
                            additionalProperties: boolean;
                            properties: Record<string, unknown>;
                            required: string[];
                            type: string;
                        },
                    ];
                };
            };
            $id: "https://ifclite.dev/schemas/host-protocol/v2/viewer-message.json";
            $schema: "https://json-schema.org/draft/2020-12/schema";
            description: "The offer is a window message to a panel frame, with a MessagePort transferred; everything else travels on that port.";
            oneOf: readonly [
                {
                    properties: Record<string, unknown>;
                    required: string[];
                    type: string;
                },
                { properties: Record<string, unknown>; required: string[]; type: string },
                { properties: Record<string, unknown>; required: string[]; type: string },
                { $ref: string },
                ...{
                    additionalProperties: boolean;
                    properties: Record<string, unknown>;
                    required: string[];
                    type: string;
                }[],
                {
                    additionalProperties: boolean;
                    properties: Record<string, unknown>;
                    required: string[];
                    type: string;
                },
            ];
            title: "ifc-lite host protocol v2: viewer to host or panel";
        };
    }

    Every schema, by the file name it is committed under in schemas/.

    Type Declaration

      • (): {
            "v1-host-message": {
                $defs: {
                    applyReport: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        title: "HostViewApplyReport";
                        type: string;
                    };
                    capabilities: { items: { type: "string" }; type: "array" };
                    capability: {
                        enum: readonly (
                            | "view.apply"
                            | "view.capture"
                            | "view.saved"
                            | "clash.run"
                            | "clash.decisions"
                            | "connection.resume"
                        )[];
                    };
                    clashDecision: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    };
                    clashDecisionInput: {
                        if: { required: readonly ["disposition"] };
                        properties: {
                            comment: { maxLength: 2000; type: "string" };
                            disposition: { const: "ignored" };
                            legacyKey: {
                                maxLength: 1024;
                                minLength: 1;
                                pattern: "\\S";
                                type: "string";
                            };
                            status: { enum: readonly ["open", "resolved", "accepted"] };
                        };
                        required: readonly ["legacyKey", "status"];
                        then: { properties: { status: { const: "accepted" } } };
                        type: "object";
                    };
                    clashReview: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    };
                    clashRun: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                    clashRunDelivery: { enum: readonly ["on-submit", "every-run"] };
                    clashRunDocument: {
                        description: "A clash run document, version 1 or 2, as @ifc-lite/clash writes it; that package publishes the full schema.";
                        properties: {
                            createdAt: { type: "string" };
                            findings: { type: "array" };
                            manifest: { type: "object" };
                            runId: { type: readonly ["string", "null"] };
                            schema: { type: "string" };
                            version: { enum: readonly [1, 2] };
                        };
                        required: readonly [
                            "schema",
                            "version",
                            "runId",
                            "createdAt",
                            "manifest",
                            "findings",
                        ];
                        type: "object";
                    };
                    eventType: {
                        enum: readonly [
                            "start-view",
                            "view-saved",
                            "clash-run",
                            "clash-decision",
                        ];
                    };
                    protocolVersion: {
                        properties: {
                            major: { minimum: 1; type: "integer" };
                            minor: { minimum: 0; type: "integer" };
                        };
                        required: readonly ["major", "minor"];
                        type: "object";
                    };
                    reply: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                    requestId: {
                        anyOf: readonly [
                            { maxLength: 128; minLength: 1; type: "string" },
                            { type: "number" },
                        ];
                    };
                    requestType: {
                        enum: readonly [
                            "apply-view",
                            "capture-view",
                            "apply-clash-decisions",
                        ];
                    };
                    savedView: {
                        properties: {
                            camera: {
                                if: { properties: { projection: { const: "orthographic" } } };
                                properties: {
                                    direction: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        not: { const: (...)[] };
                                        type: string;
                                    };
                                    fieldOfView: {
                                        exclusiveMaximum: 180;
                                        exclusiveMinimum: 0;
                                        type: "number";
                                    };
                                    position: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        type: string;
                                    };
                                    projection: { enum: readonly [(...), (...)] };
                                    up: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        not: { const: (...)[] };
                                        type: string;
                                    };
                                    viewToWorldScale: { exclusiveMinimum: 0; type: "number" };
                                };
                                required: readonly ["projection", "position", "direction", "up"];
                                then: { required: readonly ["viewToWorldScale"] };
                                type: "object";
                            };
                            hidden: { $ref: string };
                            isolated: { $ref: string };
                            models: {
                                properties: {
                                    hidden: { items: { $ref: string }; type: "array" };
                                    visible: { items: { $ref: string }; type: "array" };
                                };
                                required: readonly ["visible"];
                                type: "object";
                            };
                            section: {
                                properties: {
                                    planes: {
                                        items: {
                                            properties: { direction: ...; location: ... };
                                            required: readonly (...);
                                            type: "object";
                                        };
                                        maxItems: 64;
                                        type: "array";
                                    };
                                };
                                required: readonly ["planes"];
                                type: "object";
                            };
                            version: { const: 1 };
                        };
                        required: readonly ["version", "camera"];
                        title: "HostSavedView";
                        type: "object";
                    };
                    startViewOutcome: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                        title: "StartViewOutcome";
                    };
                    viewElement: {
                        properties: { globalId: { $ref: string }; model: { $ref: string } };
                        required: readonly ["globalId"];
                        type: "object";
                    };
                    viewElements: {
                        items: { $ref: string };
                        maxItems: 200000;
                        type: "array";
                    };
                    viewRef: {
                        maxLength: 128;
                        minLength: 1;
                        pattern: "^[^\\u0000-\\u001f\\u007f]*[^\\s\\u0000-\\u001f\\u007f][^\\u0000-\\u001f\\u007f]*$";
                        type: "string";
                    };
                    viewSaved: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                };
                $id: "https://ifclite.dev/schemas/host-protocol/v1/host-message.json";
                $schema: "https://json-schema.org/draft/2020-12/schema";
                oneOf: {
                    properties: | {
                        id: { $ref: string };
                        payload: { $ref: string } | { items: { $ref: string }; type: "array" };
                        type: { const: "apply-view" | "capture-view" | "apply-clash-decisions" };
                    }
                    | {
                        id: { $ref: string };
                        payload: boolean;
                        type: { const: "apply-view" | "capture-view" | "apply-clash-decisions" };
                    };
                    required: string[];
                    type: string;
                }[];
                title: "ifc-lite host protocol v1: host to viewer (window message)";
            };
            "v1-viewer-message": {
                $defs: {
                    applyReport: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        title: "HostViewApplyReport";
                        type: string;
                    };
                    capabilities: { items: { type: "string" }; type: "array" };
                    capability: {
                        enum: readonly (
                            | "view.apply"
                            | "view.capture"
                            | "view.saved"
                            | "clash.run"
                            | "clash.decisions"
                            | "connection.resume"
                        )[];
                    };
                    clashDecision: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    };
                    clashDecisionInput: {
                        if: { required: readonly ["disposition"] };
                        properties: {
                            comment: { maxLength: 2000; type: "string" };
                            disposition: { const: "ignored" };
                            legacyKey: {
                                maxLength: 1024;
                                minLength: 1;
                                pattern: "\\S";
                                type: "string";
                            };
                            status: { enum: readonly ["open", "resolved", "accepted"] };
                        };
                        required: readonly ["legacyKey", "status"];
                        then: { properties: { status: { const: "accepted" } } };
                        type: "object";
                    };
                    clashReview: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    };
                    clashRun: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                    clashRunDelivery: { enum: readonly ["on-submit", "every-run"] };
                    clashRunDocument: {
                        description: "A clash run document, version 1 or 2, as @ifc-lite/clash writes it; that package publishes the full schema.";
                        properties: {
                            createdAt: { type: "string" };
                            findings: { type: "array" };
                            manifest: { type: "object" };
                            runId: { type: readonly ["string", "null"] };
                            schema: { type: "string" };
                            version: { enum: readonly [1, 2] };
                        };
                        required: readonly [
                            "schema",
                            "version",
                            "runId",
                            "createdAt",
                            "manifest",
                            "findings",
                        ];
                        type: "object";
                    };
                    eventType: {
                        enum: readonly [
                            "start-view",
                            "view-saved",
                            "clash-run",
                            "clash-decision",
                        ];
                    };
                    protocolVersion: {
                        properties: {
                            major: { minimum: 1; type: "integer" };
                            minor: { minimum: 0; type: "integer" };
                        };
                        required: readonly ["major", "minor"];
                        type: "object";
                    };
                    reply: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                    requestId: {
                        anyOf: readonly [
                            { maxLength: 128; minLength: 1; type: "string" },
                            { type: "number" },
                        ];
                    };
                    requestType: {
                        enum: readonly [
                            "apply-view",
                            "capture-view",
                            "apply-clash-decisions",
                        ];
                    };
                    savedView: {
                        properties: {
                            camera: {
                                if: { properties: { projection: { const: "orthographic" } } };
                                properties: {
                                    direction: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        not: { const: (...)[] };
                                        type: string;
                                    };
                                    fieldOfView: {
                                        exclusiveMaximum: 180;
                                        exclusiveMinimum: 0;
                                        type: "number";
                                    };
                                    position: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        type: string;
                                    };
                                    projection: { enum: readonly [(...), (...)] };
                                    up: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        not: { const: (...)[] };
                                        type: string;
                                    };
                                    viewToWorldScale: { exclusiveMinimum: 0; type: "number" };
                                };
                                required: readonly ["projection", "position", "direction", "up"];
                                then: { required: readonly ["viewToWorldScale"] };
                                type: "object";
                            };
                            hidden: { $ref: string };
                            isolated: { $ref: string };
                            models: {
                                properties: {
                                    hidden: { items: { $ref: string }; type: "array" };
                                    visible: { items: { $ref: string }; type: "array" };
                                };
                                required: readonly ["visible"];
                                type: "object";
                            };
                            section: {
                                properties: {
                                    planes: {
                                        items: {
                                            properties: { direction: ...; location: ... };
                                            required: readonly (...);
                                            type: "object";
                                        };
                                        maxItems: 64;
                                        type: "array";
                                    };
                                };
                                required: readonly ["planes"];
                                type: "object";
                            };
                            version: { const: 1 };
                        };
                        required: readonly ["version", "camera"];
                        title: "HostSavedView";
                        type: "object";
                    };
                    startViewOutcome: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                        title: "StartViewOutcome";
                    };
                    viewElement: {
                        properties: { globalId: { $ref: string }; model: { $ref: string } };
                        required: readonly ["globalId"];
                        type: "object";
                    };
                    viewElements: {
                        items: { $ref: string };
                        maxItems: 200000;
                        type: "array";
                    };
                    viewRef: {
                        maxLength: 128;
                        minLength: 1;
                        pattern: "^[^\\u0000-\\u001f\\u007f]*[^\\s\\u0000-\\u001f\\u007f][^\\u0000-\\u001f\\u007f]*$";
                        type: "string";
                    };
                    viewSaved: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                };
                $id: "https://ifclite.dev/schemas/host-protocol/v1/viewer-message.json";
                $schema: "https://json-schema.org/draft/2020-12/schema";
                oneOf: readonly [
                    {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    },
                    ...{
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    }[],
                    {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    },
                ];
                title: "ifc-lite host protocol v1: viewer to host (window message)";
            };
            "v2-host-message": {
                $defs: {
                    applyReport: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        title: "HostViewApplyReport";
                        type: string;
                    };
                    capabilities: { items: { type: "string" }; type: "array" };
                    capability: {
                        enum: readonly (
                            | "view.apply"
                            | "view.capture"
                            | "view.saved"
                            | "clash.run"
                            | "clash.decisions"
                            | "connection.resume"
                        )[];
                    };
                    clashDecision: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    };
                    clashDecisionInput: {
                        if: { required: readonly ["disposition"] };
                        properties: {
                            comment: { maxLength: 2000; type: "string" };
                            disposition: { const: "ignored" };
                            legacyKey: {
                                maxLength: 1024;
                                minLength: 1;
                                pattern: "\\S";
                                type: "string";
                            };
                            status: { enum: readonly ["open", "resolved", "accepted"] };
                        };
                        required: readonly ["legacyKey", "status"];
                        then: { properties: { status: { const: "accepted" } } };
                        type: "object";
                    };
                    clashReview: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    };
                    clashRun: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                    clashRunDelivery: { enum: readonly ["on-submit", "every-run"] };
                    clashRunDocument: {
                        description: "A clash run document, version 1 or 2, as @ifc-lite/clash writes it; that package publishes the full schema.";
                        properties: {
                            createdAt: { type: "string" };
                            findings: { type: "array" };
                            manifest: { type: "object" };
                            runId: { type: readonly ["string", "null"] };
                            schema: { type: "string" };
                            version: { enum: readonly [1, 2] };
                        };
                        required: readonly [
                            "schema",
                            "version",
                            "runId",
                            "createdAt",
                            "manifest",
                            "findings",
                        ];
                        type: "object";
                    };
                    eventType: {
                        enum: readonly [
                            "start-view",
                            "view-saved",
                            "clash-run",
                            "clash-decision",
                        ];
                    };
                    protocolVersion: {
                        properties: {
                            major: { minimum: 1; type: "integer" };
                            minor: { minimum: 0; type: "integer" };
                        };
                        required: readonly ["major", "minor"];
                        type: "object";
                    };
                    reply: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                    requestId: {
                        anyOf: readonly [
                            { maxLength: 128; minLength: 1; type: "string" },
                            { type: "number" },
                        ];
                    };
                    requestType: {
                        enum: readonly [
                            "apply-view",
                            "capture-view",
                            "apply-clash-decisions",
                        ];
                    };
                    savedView: {
                        properties: {
                            camera: {
                                if: { properties: { projection: { const: "orthographic" } } };
                                properties: {
                                    direction: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        not: { const: (...)[] };
                                        type: string;
                                    };
                                    fieldOfView: {
                                        exclusiveMaximum: 180;
                                        exclusiveMinimum: 0;
                                        type: "number";
                                    };
                                    position: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        type: string;
                                    };
                                    projection: { enum: readonly [(...), (...)] };
                                    up: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        not: { const: (...)[] };
                                        type: string;
                                    };
                                    viewToWorldScale: { exclusiveMinimum: 0; type: "number" };
                                };
                                required: readonly ["projection", "position", "direction", "up"];
                                then: { required: readonly ["viewToWorldScale"] };
                                type: "object";
                            };
                            hidden: { $ref: string };
                            isolated: { $ref: string };
                            models: {
                                properties: {
                                    hidden: { items: { $ref: string }; type: "array" };
                                    visible: { items: { $ref: string }; type: "array" };
                                };
                                required: readonly ["visible"];
                                type: "object";
                            };
                            section: {
                                properties: {
                                    planes: {
                                        items: {
                                            properties: { direction: ...; location: ... };
                                            required: readonly (...);
                                            type: "object";
                                        };
                                        maxItems: 64;
                                        type: "array";
                                    };
                                };
                                required: readonly ["planes"];
                                type: "object";
                            };
                            version: { const: 1 };
                        };
                        required: readonly ["version", "camera"];
                        title: "HostSavedView";
                        type: "object";
                    };
                    startViewOutcome: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                        title: "StartViewOutcome";
                    };
                    viewElement: {
                        properties: { globalId: { $ref: string }; model: { $ref: string } };
                        required: readonly ["globalId"];
                        type: "object";
                    };
                    viewElements: {
                        items: { $ref: string };
                        maxItems: 200000;
                        type: "array";
                    };
                    viewRef: {
                        maxLength: 128;
                        minLength: 1;
                        pattern: "^[^\\u0000-\\u001f\\u007f]*[^\\s\\u0000-\\u001f\\u007f][^\\u0000-\\u001f\\u007f]*$";
                        type: "string";
                    };
                    viewSaved: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                };
                $id: "https://ifclite.dev/schemas/host-protocol/v2/host-message.json";
                $schema: "https://json-schema.org/draft/2020-12/schema";
                description: "The hello is a window message to the viewer with a MessagePort transferred; everything else travels on that port.";
                oneOf: readonly [
                    {
                        properties: {
                            connectionId: { maxLength: 128; minLength: 1; type: "string" };
                            protocol: { $ref: string };
                            resume: { anyOf: ((...) | (...))[] };
                            target: { const: "ifc-lite-viewer" };
                            type: { const: "hello" };
                            wants: { $ref: string };
                        };
                        required: readonly ["target", "type", "protocol"];
                        type: "object";
                    },
                    {
                        properties: {
                            protocol: { $ref: string };
                            target: false;
                            type: { const: "hello" };
                            wants: { $ref: string };
                        };
                        required: readonly ["type", "protocol"];
                        type: "object";
                    },
                    { properties: Record<string, unknown>; required: string[]; type: string },
                    ...{
                        properties:
                            | {
                                id: { $ref: ... };
                                payload: (...) | (...);
                                type: { const: ... };
                            }
                            | { id: { $ref: ... }; payload: boolean; type: { const: ... } };
                        required: string[];
                        type: string;
                    }[],
                    {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    },
                ];
                title: "ifc-lite host protocol v2: host or panel to viewer";
            };
            "v2-viewer-message": {
                $defs: {
                    applyReport: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        title: "HostViewApplyReport";
                        type: string;
                    };
                    capabilities: { items: { type: "string" }; type: "array" };
                    capability: {
                        enum: readonly (
                            | "view.apply"
                            | "view.capture"
                            | "view.saved"
                            | "clash.run"
                            | "clash.decisions"
                            | "connection.resume"
                        )[];
                    };
                    clashDecision: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    };
                    clashDecisionInput: {
                        if: { required: readonly ["disposition"] };
                        properties: {
                            comment: { maxLength: 2000; type: "string" };
                            disposition: { const: "ignored" };
                            legacyKey: {
                                maxLength: 1024;
                                minLength: 1;
                                pattern: "\\S";
                                type: "string";
                            };
                            status: { enum: readonly ["open", "resolved", "accepted"] };
                        };
                        required: readonly ["legacyKey", "status"];
                        then: { properties: { status: { const: "accepted" } } };
                        type: "object";
                    };
                    clashReview: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    };
                    clashRun: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                    clashRunDelivery: { enum: readonly ["on-submit", "every-run"] };
                    clashRunDocument: {
                        description: "A clash run document, version 1 or 2, as @ifc-lite/clash writes it; that package publishes the full schema.";
                        properties: {
                            createdAt: { type: "string" };
                            findings: { type: "array" };
                            manifest: { type: "object" };
                            runId: { type: readonly ["string", "null"] };
                            schema: { type: "string" };
                            version: { enum: readonly [1, 2] };
                        };
                        required: readonly [
                            "schema",
                            "version",
                            "runId",
                            "createdAt",
                            "manifest",
                            "findings",
                        ];
                        type: "object";
                    };
                    eventType: {
                        enum: readonly [
                            "start-view",
                            "view-saved",
                            "clash-run",
                            "clash-decision",
                        ];
                    };
                    protocolVersion: {
                        properties: {
                            major: { minimum: 1; type: "integer" };
                            minor: { minimum: 0; type: "integer" };
                        };
                        required: readonly ["major", "minor"];
                        type: "object";
                    };
                    reply: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                    replyOnPort: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                    requestId: {
                        anyOf: readonly [
                            { maxLength: 128; minLength: 1; type: "string" },
                            { type: "number" },
                        ];
                    };
                    requestType: {
                        enum: readonly [
                            "apply-view",
                            "capture-view",
                            "apply-clash-decisions",
                        ];
                    };
                    savedView: {
                        properties: {
                            camera: {
                                if: { properties: { projection: { const: "orthographic" } } };
                                properties: {
                                    direction: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        not: { const: (...)[] };
                                        type: string;
                                    };
                                    fieldOfView: {
                                        exclusiveMaximum: 180;
                                        exclusiveMinimum: 0;
                                        type: "number";
                                    };
                                    position: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        type: string;
                                    };
                                    projection: { enum: readonly [(...), (...)] };
                                    up: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        not: { const: (...)[] };
                                        type: string;
                                    };
                                    viewToWorldScale: { exclusiveMinimum: 0; type: "number" };
                                };
                                required: readonly ["projection", "position", "direction", "up"];
                                then: { required: readonly ["viewToWorldScale"] };
                                type: "object";
                            };
                            hidden: { $ref: string };
                            isolated: { $ref: string };
                            models: {
                                properties: {
                                    hidden: { items: { $ref: string }; type: "array" };
                                    visible: { items: { $ref: string }; type: "array" };
                                };
                                required: readonly ["visible"];
                                type: "object";
                            };
                            section: {
                                properties: {
                                    planes: {
                                        items: {
                                            properties: { direction: ...; location: ... };
                                            required: readonly (...);
                                            type: "object";
                                        };
                                        maxItems: 64;
                                        type: "array";
                                    };
                                };
                                required: readonly ["planes"];
                                type: "object";
                            };
                            version: { const: 1 };
                        };
                        required: readonly ["version", "camera"];
                        title: "HostSavedView";
                        type: "object";
                    };
                    startViewOutcome: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                        title: "StartViewOutcome";
                    };
                    viewElement: {
                        properties: { globalId: { $ref: string }; model: { $ref: string } };
                        required: readonly ["globalId"];
                        type: "object";
                    };
                    viewElements: {
                        items: { $ref: string };
                        maxItems: 200000;
                        type: "array";
                    };
                    viewRef: {
                        maxLength: 128;
                        minLength: 1;
                        pattern: "^[^\\u0000-\\u001f\\u007f]*[^\\s\\u0000-\\u001f\\u007f][^\\u0000-\\u001f\\u007f]*$";
                        type: "string";
                    };
                    viewSaved: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                };
                $id: "https://ifclite.dev/schemas/host-protocol/v2/viewer-message.json";
                $schema: "https://json-schema.org/draft/2020-12/schema";
                description: "The offer is a window message to a panel frame, with a MessagePort transferred; everything else travels on that port.";
                oneOf: readonly [
                    {
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    },
                    { properties: Record<string, unknown>; required: string[]; type: string },
                    { properties: Record<string, unknown>; required: string[]; type: string },
                    { $ref: string },
                    ...{
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    }[],
                    {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    },
                ];
                title: "ifc-lite host protocol v2: viewer to host or panel";
            };
        }
      • Returns {
            "v1-host-message": {
                $defs: {
                    applyReport: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        title: "HostViewApplyReport";
                        type: string;
                    };
                    capabilities: { items: { type: "string" }; type: "array" };
                    capability: {
                        enum: readonly (
                            | "view.apply"
                            | "view.capture"
                            | "view.saved"
                            | "clash.run"
                            | "clash.decisions"
                            | "connection.resume"
                        )[];
                    };
                    clashDecision: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    };
                    clashDecisionInput: {
                        if: { required: readonly ["disposition"] };
                        properties: {
                            comment: { maxLength: 2000; type: "string" };
                            disposition: { const: "ignored" };
                            legacyKey: {
                                maxLength: 1024;
                                minLength: 1;
                                pattern: "\\S";
                                type: "string";
                            };
                            status: { enum: readonly ["open", "resolved", "accepted"] };
                        };
                        required: readonly ["legacyKey", "status"];
                        then: { properties: { status: { const: "accepted" } } };
                        type: "object";
                    };
                    clashReview: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    };
                    clashRun: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                    clashRunDelivery: { enum: readonly ["on-submit", "every-run"] };
                    clashRunDocument: {
                        description: "A clash run document, version 1 or 2, as @ifc-lite/clash writes it; that package publishes the full schema.";
                        properties: {
                            createdAt: { type: "string" };
                            findings: { type: "array" };
                            manifest: { type: "object" };
                            runId: { type: readonly ["string", "null"] };
                            schema: { type: "string" };
                            version: { enum: readonly [1, 2] };
                        };
                        required: readonly [
                            "schema",
                            "version",
                            "runId",
                            "createdAt",
                            "manifest",
                            "findings",
                        ];
                        type: "object";
                    };
                    eventType: {
                        enum: readonly [
                            "start-view",
                            "view-saved",
                            "clash-run",
                            "clash-decision",
                        ];
                    };
                    protocolVersion: {
                        properties: {
                            major: { minimum: 1; type: "integer" };
                            minor: { minimum: 0; type: "integer" };
                        };
                        required: readonly ["major", "minor"];
                        type: "object";
                    };
                    reply: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                    requestId: {
                        anyOf: readonly [
                            { maxLength: 128; minLength: 1; type: "string" },
                            { type: "number" },
                        ];
                    };
                    requestType: {
                        enum: readonly [
                            "apply-view",
                            "capture-view",
                            "apply-clash-decisions",
                        ];
                    };
                    savedView: {
                        properties: {
                            camera: {
                                if: { properties: { projection: { const: "orthographic" } } };
                                properties: {
                                    direction: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        not: { const: (...)[] };
                                        type: string;
                                    };
                                    fieldOfView: {
                                        exclusiveMaximum: 180;
                                        exclusiveMinimum: 0;
                                        type: "number";
                                    };
                                    position: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        type: string;
                                    };
                                    projection: { enum: readonly [(...), (...)] };
                                    up: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        not: { const: (...)[] };
                                        type: string;
                                    };
                                    viewToWorldScale: { exclusiveMinimum: 0; type: "number" };
                                };
                                required: readonly ["projection", "position", "direction", "up"];
                                then: { required: readonly ["viewToWorldScale"] };
                                type: "object";
                            };
                            hidden: { $ref: string };
                            isolated: { $ref: string };
                            models: {
                                properties: {
                                    hidden: { items: { $ref: string }; type: "array" };
                                    visible: { items: { $ref: string }; type: "array" };
                                };
                                required: readonly ["visible"];
                                type: "object";
                            };
                            section: {
                                properties: {
                                    planes: {
                                        items: {
                                            properties: { direction: ...; location: ... };
                                            required: readonly (...);
                                            type: "object";
                                        };
                                        maxItems: 64;
                                        type: "array";
                                    };
                                };
                                required: readonly ["planes"];
                                type: "object";
                            };
                            version: { const: 1 };
                        };
                        required: readonly ["version", "camera"];
                        title: "HostSavedView";
                        type: "object";
                    };
                    startViewOutcome: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                        title: "StartViewOutcome";
                    };
                    viewElement: {
                        properties: { globalId: { $ref: string }; model: { $ref: string } };
                        required: readonly ["globalId"];
                        type: "object";
                    };
                    viewElements: {
                        items: { $ref: string };
                        maxItems: 200000;
                        type: "array";
                    };
                    viewRef: {
                        maxLength: 128;
                        minLength: 1;
                        pattern: "^[^\\u0000-\\u001f\\u007f]*[^\\s\\u0000-\\u001f\\u007f][^\\u0000-\\u001f\\u007f]*$";
                        type: "string";
                    };
                    viewSaved: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                };
                $id: "https://ifclite.dev/schemas/host-protocol/v1/host-message.json";
                $schema: "https://json-schema.org/draft/2020-12/schema";
                oneOf: {
                    properties: | {
                        id: { $ref: string };
                        payload: { $ref: string } | { items: { $ref: string }; type: "array" };
                        type: { const: "apply-view" | "capture-view" | "apply-clash-decisions" };
                    }
                    | {
                        id: { $ref: string };
                        payload: boolean;
                        type: { const: "apply-view" | "capture-view" | "apply-clash-decisions" };
                    };
                    required: string[];
                    type: string;
                }[];
                title: "ifc-lite host protocol v1: host to viewer (window message)";
            };
            "v1-viewer-message": {
                $defs: {
                    applyReport: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        title: "HostViewApplyReport";
                        type: string;
                    };
                    capabilities: { items: { type: "string" }; type: "array" };
                    capability: {
                        enum: readonly (
                            | "view.apply"
                            | "view.capture"
                            | "view.saved"
                            | "clash.run"
                            | "clash.decisions"
                            | "connection.resume"
                        )[];
                    };
                    clashDecision: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    };
                    clashDecisionInput: {
                        if: { required: readonly ["disposition"] };
                        properties: {
                            comment: { maxLength: 2000; type: "string" };
                            disposition: { const: "ignored" };
                            legacyKey: {
                                maxLength: 1024;
                                minLength: 1;
                                pattern: "\\S";
                                type: "string";
                            };
                            status: { enum: readonly ["open", "resolved", "accepted"] };
                        };
                        required: readonly ["legacyKey", "status"];
                        then: { properties: { status: { const: "accepted" } } };
                        type: "object";
                    };
                    clashReview: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    };
                    clashRun: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                    clashRunDelivery: { enum: readonly ["on-submit", "every-run"] };
                    clashRunDocument: {
                        description: "A clash run document, version 1 or 2, as @ifc-lite/clash writes it; that package publishes the full schema.";
                        properties: {
                            createdAt: { type: "string" };
                            findings: { type: "array" };
                            manifest: { type: "object" };
                            runId: { type: readonly ["string", "null"] };
                            schema: { type: "string" };
                            version: { enum: readonly [1, 2] };
                        };
                        required: readonly [
                            "schema",
                            "version",
                            "runId",
                            "createdAt",
                            "manifest",
                            "findings",
                        ];
                        type: "object";
                    };
                    eventType: {
                        enum: readonly [
                            "start-view",
                            "view-saved",
                            "clash-run",
                            "clash-decision",
                        ];
                    };
                    protocolVersion: {
                        properties: {
                            major: { minimum: 1; type: "integer" };
                            minor: { minimum: 0; type: "integer" };
                        };
                        required: readonly ["major", "minor"];
                        type: "object";
                    };
                    reply: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                    requestId: {
                        anyOf: readonly [
                            { maxLength: 128; minLength: 1; type: "string" },
                            { type: "number" },
                        ];
                    };
                    requestType: {
                        enum: readonly [
                            "apply-view",
                            "capture-view",
                            "apply-clash-decisions",
                        ];
                    };
                    savedView: {
                        properties: {
                            camera: {
                                if: { properties: { projection: { const: "orthographic" } } };
                                properties: {
                                    direction: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        not: { const: (...)[] };
                                        type: string;
                                    };
                                    fieldOfView: {
                                        exclusiveMaximum: 180;
                                        exclusiveMinimum: 0;
                                        type: "number";
                                    };
                                    position: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        type: string;
                                    };
                                    projection: { enum: readonly [(...), (...)] };
                                    up: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        not: { const: (...)[] };
                                        type: string;
                                    };
                                    viewToWorldScale: { exclusiveMinimum: 0; type: "number" };
                                };
                                required: readonly ["projection", "position", "direction", "up"];
                                then: { required: readonly ["viewToWorldScale"] };
                                type: "object";
                            };
                            hidden: { $ref: string };
                            isolated: { $ref: string };
                            models: {
                                properties: {
                                    hidden: { items: { $ref: string }; type: "array" };
                                    visible: { items: { $ref: string }; type: "array" };
                                };
                                required: readonly ["visible"];
                                type: "object";
                            };
                            section: {
                                properties: {
                                    planes: {
                                        items: {
                                            properties: { direction: ...; location: ... };
                                            required: readonly (...);
                                            type: "object";
                                        };
                                        maxItems: 64;
                                        type: "array";
                                    };
                                };
                                required: readonly ["planes"];
                                type: "object";
                            };
                            version: { const: 1 };
                        };
                        required: readonly ["version", "camera"];
                        title: "HostSavedView";
                        type: "object";
                    };
                    startViewOutcome: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                        title: "StartViewOutcome";
                    };
                    viewElement: {
                        properties: { globalId: { $ref: string }; model: { $ref: string } };
                        required: readonly ["globalId"];
                        type: "object";
                    };
                    viewElements: {
                        items: { $ref: string };
                        maxItems: 200000;
                        type: "array";
                    };
                    viewRef: {
                        maxLength: 128;
                        minLength: 1;
                        pattern: "^[^\\u0000-\\u001f\\u007f]*[^\\s\\u0000-\\u001f\\u007f][^\\u0000-\\u001f\\u007f]*$";
                        type: "string";
                    };
                    viewSaved: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                };
                $id: "https://ifclite.dev/schemas/host-protocol/v1/viewer-message.json";
                $schema: "https://json-schema.org/draft/2020-12/schema";
                oneOf: readonly [
                    {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    },
                    ...{
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    }[],
                    {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    },
                ];
                title: "ifc-lite host protocol v1: viewer to host (window message)";
            };
            "v2-host-message": {
                $defs: {
                    applyReport: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        title: "HostViewApplyReport";
                        type: string;
                    };
                    capabilities: { items: { type: "string" }; type: "array" };
                    capability: {
                        enum: readonly (
                            | "view.apply"
                            | "view.capture"
                            | "view.saved"
                            | "clash.run"
                            | "clash.decisions"
                            | "connection.resume"
                        )[];
                    };
                    clashDecision: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    };
                    clashDecisionInput: {
                        if: { required: readonly ["disposition"] };
                        properties: {
                            comment: { maxLength: 2000; type: "string" };
                            disposition: { const: "ignored" };
                            legacyKey: {
                                maxLength: 1024;
                                minLength: 1;
                                pattern: "\\S";
                                type: "string";
                            };
                            status: { enum: readonly ["open", "resolved", "accepted"] };
                        };
                        required: readonly ["legacyKey", "status"];
                        then: { properties: { status: { const: "accepted" } } };
                        type: "object";
                    };
                    clashReview: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    };
                    clashRun: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                    clashRunDelivery: { enum: readonly ["on-submit", "every-run"] };
                    clashRunDocument: {
                        description: "A clash run document, version 1 or 2, as @ifc-lite/clash writes it; that package publishes the full schema.";
                        properties: {
                            createdAt: { type: "string" };
                            findings: { type: "array" };
                            manifest: { type: "object" };
                            runId: { type: readonly ["string", "null"] };
                            schema: { type: "string" };
                            version: { enum: readonly [1, 2] };
                        };
                        required: readonly [
                            "schema",
                            "version",
                            "runId",
                            "createdAt",
                            "manifest",
                            "findings",
                        ];
                        type: "object";
                    };
                    eventType: {
                        enum: readonly [
                            "start-view",
                            "view-saved",
                            "clash-run",
                            "clash-decision",
                        ];
                    };
                    protocolVersion: {
                        properties: {
                            major: { minimum: 1; type: "integer" };
                            minor: { minimum: 0; type: "integer" };
                        };
                        required: readonly ["major", "minor"];
                        type: "object";
                    };
                    reply: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                    requestId: {
                        anyOf: readonly [
                            { maxLength: 128; minLength: 1; type: "string" },
                            { type: "number" },
                        ];
                    };
                    requestType: {
                        enum: readonly [
                            "apply-view",
                            "capture-view",
                            "apply-clash-decisions",
                        ];
                    };
                    savedView: {
                        properties: {
                            camera: {
                                if: { properties: { projection: { const: "orthographic" } } };
                                properties: {
                                    direction: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        not: { const: (...)[] };
                                        type: string;
                                    };
                                    fieldOfView: {
                                        exclusiveMaximum: 180;
                                        exclusiveMinimum: 0;
                                        type: "number";
                                    };
                                    position: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        type: string;
                                    };
                                    projection: { enum: readonly [(...), (...)] };
                                    up: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        not: { const: (...)[] };
                                        type: string;
                                    };
                                    viewToWorldScale: { exclusiveMinimum: 0; type: "number" };
                                };
                                required: readonly ["projection", "position", "direction", "up"];
                                then: { required: readonly ["viewToWorldScale"] };
                                type: "object";
                            };
                            hidden: { $ref: string };
                            isolated: { $ref: string };
                            models: {
                                properties: {
                                    hidden: { items: { $ref: string }; type: "array" };
                                    visible: { items: { $ref: string }; type: "array" };
                                };
                                required: readonly ["visible"];
                                type: "object";
                            };
                            section: {
                                properties: {
                                    planes: {
                                        items: {
                                            properties: { direction: ...; location: ... };
                                            required: readonly (...);
                                            type: "object";
                                        };
                                        maxItems: 64;
                                        type: "array";
                                    };
                                };
                                required: readonly ["planes"];
                                type: "object";
                            };
                            version: { const: 1 };
                        };
                        required: readonly ["version", "camera"];
                        title: "HostSavedView";
                        type: "object";
                    };
                    startViewOutcome: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                        title: "StartViewOutcome";
                    };
                    viewElement: {
                        properties: { globalId: { $ref: string }; model: { $ref: string } };
                        required: readonly ["globalId"];
                        type: "object";
                    };
                    viewElements: {
                        items: { $ref: string };
                        maxItems: 200000;
                        type: "array";
                    };
                    viewRef: {
                        maxLength: 128;
                        minLength: 1;
                        pattern: "^[^\\u0000-\\u001f\\u007f]*[^\\s\\u0000-\\u001f\\u007f][^\\u0000-\\u001f\\u007f]*$";
                        type: "string";
                    };
                    viewSaved: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                };
                $id: "https://ifclite.dev/schemas/host-protocol/v2/host-message.json";
                $schema: "https://json-schema.org/draft/2020-12/schema";
                description: "The hello is a window message to the viewer with a MessagePort transferred; everything else travels on that port.";
                oneOf: readonly [
                    {
                        properties: {
                            connectionId: { maxLength: 128; minLength: 1; type: "string" };
                            protocol: { $ref: string };
                            resume: { anyOf: ((...) | (...))[] };
                            target: { const: "ifc-lite-viewer" };
                            type: { const: "hello" };
                            wants: { $ref: string };
                        };
                        required: readonly ["target", "type", "protocol"];
                        type: "object";
                    },
                    {
                        properties: {
                            protocol: { $ref: string };
                            target: false;
                            type: { const: "hello" };
                            wants: { $ref: string };
                        };
                        required: readonly ["type", "protocol"];
                        type: "object";
                    },
                    { properties: Record<string, unknown>; required: string[]; type: string },
                    ...{
                        properties:
                            | {
                                id: { $ref: ... };
                                payload: (...) | (...);
                                type: { const: ... };
                            }
                            | { id: { $ref: ... }; payload: boolean; type: { const: ... } };
                        required: string[];
                        type: string;
                    }[],
                    {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    },
                ];
                title: "ifc-lite host protocol v2: host or panel to viewer";
            };
            "v2-viewer-message": {
                $defs: {
                    applyReport: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        title: "HostViewApplyReport";
                        type: string;
                    };
                    capabilities: { items: { type: "string" }; type: "array" };
                    capability: {
                        enum: readonly (
                            | "view.apply"
                            | "view.capture"
                            | "view.saved"
                            | "clash.run"
                            | "clash.decisions"
                            | "connection.resume"
                        )[];
                    };
                    clashDecision: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    };
                    clashDecisionInput: {
                        if: { required: readonly ["disposition"] };
                        properties: {
                            comment: { maxLength: 2000; type: "string" };
                            disposition: { const: "ignored" };
                            legacyKey: {
                                maxLength: 1024;
                                minLength: 1;
                                pattern: "\\S";
                                type: "string";
                            };
                            status: { enum: readonly ["open", "resolved", "accepted"] };
                        };
                        required: readonly ["legacyKey", "status"];
                        then: { properties: { status: { const: "accepted" } } };
                        type: "object";
                    };
                    clashReview: {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    };
                    clashRun: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                    clashRunDelivery: { enum: readonly ["on-submit", "every-run"] };
                    clashRunDocument: {
                        description: "A clash run document, version 1 or 2, as @ifc-lite/clash writes it; that package publishes the full schema.";
                        properties: {
                            createdAt: { type: "string" };
                            findings: { type: "array" };
                            manifest: { type: "object" };
                            runId: { type: readonly ["string", "null"] };
                            schema: { type: "string" };
                            version: { enum: readonly [1, 2] };
                        };
                        required: readonly [
                            "schema",
                            "version",
                            "runId",
                            "createdAt",
                            "manifest",
                            "findings",
                        ];
                        type: "object";
                    };
                    eventType: {
                        enum: readonly [
                            "start-view",
                            "view-saved",
                            "clash-run",
                            "clash-decision",
                        ];
                    };
                    protocolVersion: {
                        properties: {
                            major: { minimum: 1; type: "integer" };
                            minor: { minimum: 0; type: "integer" };
                        };
                        required: readonly ["major", "minor"];
                        type: "object";
                    };
                    reply: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                    replyOnPort: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                    requestId: {
                        anyOf: readonly [
                            { maxLength: 128; minLength: 1; type: "string" },
                            { type: "number" },
                        ];
                    };
                    requestType: {
                        enum: readonly [
                            "apply-view",
                            "capture-view",
                            "apply-clash-decisions",
                        ];
                    };
                    savedView: {
                        properties: {
                            camera: {
                                if: { properties: { projection: { const: "orthographic" } } };
                                properties: {
                                    direction: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        not: { const: (...)[] };
                                        type: string;
                                    };
                                    fieldOfView: {
                                        exclusiveMaximum: 180;
                                        exclusiveMinimum: 0;
                                        type: "number";
                                    };
                                    position: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        type: string;
                                    };
                                    projection: { enum: readonly [(...), (...)] };
                                    up: {
                                        items: { type: string };
                                        maxItems: number;
                                        minItems: number;
                                        not: { const: (...)[] };
                                        type: string;
                                    };
                                    viewToWorldScale: { exclusiveMinimum: 0; type: "number" };
                                };
                                required: readonly ["projection", "position", "direction", "up"];
                                then: { required: readonly ["viewToWorldScale"] };
                                type: "object";
                            };
                            hidden: { $ref: string };
                            isolated: { $ref: string };
                            models: {
                                properties: {
                                    hidden: { items: { $ref: string }; type: "array" };
                                    visible: { items: { $ref: string }; type: "array" };
                                };
                                required: readonly ["visible"];
                                type: "object";
                            };
                            section: {
                                properties: {
                                    planes: {
                                        items: {
                                            properties: { direction: ...; location: ... };
                                            required: readonly (...);
                                            type: "object";
                                        };
                                        maxItems: 64;
                                        type: "array";
                                    };
                                };
                                required: readonly ["planes"];
                                type: "object";
                            };
                            version: { const: 1 };
                        };
                        required: readonly ["version", "camera"];
                        title: "HostSavedView";
                        type: "object";
                    };
                    startViewOutcome: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                        title: "StartViewOutcome";
                    };
                    viewElement: {
                        properties: { globalId: { $ref: string }; model: { $ref: string } };
                        required: readonly ["globalId"];
                        type: "object";
                    };
                    viewElements: {
                        items: { $ref: string };
                        maxItems: 200000;
                        type: "array";
                    };
                    viewRef: {
                        maxLength: 128;
                        minLength: 1;
                        pattern: "^[^\\u0000-\\u001f\\u007f]*[^\\s\\u0000-\\u001f\\u007f][^\\u0000-\\u001f\\u007f]*$";
                        type: "string";
                    };
                    viewSaved: {
                        oneOf: readonly [
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                            {
                                additionalProperties: boolean;
                                properties: Record<string, unknown>;
                                required: string[];
                                type: string;
                            },
                        ];
                    };
                };
                $id: "https://ifclite.dev/schemas/host-protocol/v2/viewer-message.json";
                $schema: "https://json-schema.org/draft/2020-12/schema";
                description: "The offer is a window message to a panel frame, with a MessagePort transferred; everything else travels on that port.";
                oneOf: readonly [
                    {
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    },
                    { properties: Record<string, unknown>; required: string[]; type: string },
                    { properties: Record<string, unknown>; required: string[]; type: string },
                    { $ref: string },
                    ...{
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    }[],
                    {
                        additionalProperties: boolean;
                        properties: Record<string, unknown>;
                        required: string[];
                        type: string;
                    },
                ];
                title: "ifc-lite host protocol v2: viewer to host or panel";
            };
        }