IFClite TypeScript API
    Preparing search index...

    Variable getV2ViewerSchemaConst

    getV2ViewerSchema: () => {
        $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: number[] };
                                type: string;
                            };
                            fieldOfView: {
                                exclusiveMaximum: 180;
                                exclusiveMinimum: 0;
                                type: "number";
                            };
                            position: {
                                items: { type: string };
                                maxItems: number;
                                minItems: number;
                                type: string;
                            };
                            projection: { enum: readonly ["perspective", "orthographic"] };
                            up: {
                                items: { type: string };
                                maxItems: number;
                                minItems: number;
                                not: { const: number[] };
                                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: {
                                            items: ...;
                                            maxItems: ...;
                                            minItems: ...;
                                            not: ...;
                                            type: ...;
                                        };
                                        location: { items: ...; maxItems: ...; minItems: ...; type: ... };
                                    };
                                    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";
    }

    Version 2, viewer to host or panel.

    Type Declaration

      • (): {
            $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: number[] };
                                    type: string;
                                };
                                fieldOfView: {
                                    exclusiveMaximum: 180;
                                    exclusiveMinimum: 0;
                                    type: "number";
                                };
                                position: {
                                    items: { type: string };
                                    maxItems: number;
                                    minItems: number;
                                    type: string;
                                };
                                projection: { enum: readonly ["perspective", "orthographic"] };
                                up: {
                                    items: { type: string };
                                    maxItems: number;
                                    minItems: number;
                                    not: { const: number[] };
                                    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: {
                                                items: ...;
                                                maxItems: ...;
                                                minItems: ...;
                                                not: ...;
                                                type: ...;
                                            };
                                            location: { items: ...; maxItems: ...; minItems: ...; type: ... };
                                        };
                                        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 {
            $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: number[] };
                                    type: string;
                                };
                                fieldOfView: {
                                    exclusiveMaximum: 180;
                                    exclusiveMinimum: 0;
                                    type: "number";
                                };
                                position: {
                                    items: { type: string };
                                    maxItems: number;
                                    minItems: number;
                                    type: string;
                                };
                                projection: { enum: readonly ["perspective", "orthographic"] };
                                up: {
                                    items: { type: string };
                                    maxItems: number;
                                    minItems: number;
                                    not: { const: number[] };
                                    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: {
                                                items: ...;
                                                maxItems: ...;
                                                minItems: ...;
                                                not: ...;
                                                type: ...;
                                            };
                                            location: { items: ...; maxItems: ...; minItems: ...; type: ... };
                                        };
                                        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";
        }