Field Notes
    Preparing search index...

    Interface AuthorityClientState

    interface AuthorityClientState {
        document:
            | {
                casToken?: string;
                cursor: { generation: string; revision: number; streamId: string };
                elements: readonly (
                    | {
                        audience?: string;
                        blendMode?: "multiply";
                        color: string;
                        editor?: string;
                        groupId?: string;
                        id: string;
                        index: string;
                        layerId: string;
                        link?: string;
                        locked: boolean;
                        opacity: number;
                        ownerId?: string;
                        parentId?: string;
                        points: readonly { pressure: number; x: number; y: number }[];
                        position: { x: number; y: number };
                        rotation?: number;
                        type: "stroke";
                        version: number;
                        width: number;
                    }
                    | {
                        audience?: string;
                        backgroundColor: string;
                        editor?: string;
                        fontSize?: number;
                        groupId?: string;
                        id: string;
                        index: string;
                        layerId: string;
                        link?: string;
                        locked: boolean;
                        ownerId?: string;
                        parentId?: string;
                        position: { x: number; y: number };
                        rotation?: number;
                        size: { h: number; w: number };
                        text: string;
                        textColor: string;
                        type: "note";
                        version: number;
                    }
                    | {
                        audience?: string;
                        bend: number;
                        cachedControlPoint?: { x: number; y: number };
                        color: string;
                        editor?: string;
                        fixedSegments?: readonly { axis: "x" | "y"; value: number }[];
                        from: { x: number; y: number };
                        fromBinding?: { elementId: string };
                        groupId?: string;
                        id: string;
                        index: string;
                        label?: string;
                        layerId: string;
                        link?: string;
                        locked: boolean;
                        ownerId?: string;
                        parentId?: string;
                        position: { x: number; y: number };
                        rotation?: number;
                        routing?: "bezier" | "elbow";
                        strokeStyle?: ArrowStrokeStyle;
                        to: { x: number; y: number };
                        toBinding?: { elementId: string };
                        type: "arrow";
                        version: number;
                        width: number;
                    }
                    | {
                        audience?: string;
                        editor?: string;
                        groupId?: string;
                        id: string;
                        index: string;
                        layerId: string;
                        link?: string;
                        locked: boolean;
                        ownerId?: string;
                        parentId?: string;
                        position: { x: number; y: number };
                        rotation?: number;
                        size: { h: number; w: number };
                        src: string;
                        type: "image";
                        version: number;
                    }
                    | {
                        audience?: string;
                        data?: { readonly [key: string]: unknown };
                        domId?: string;
                        editor?: string;
                        groupId?: string;
                        htmlType?: string;
                        id: string;
                        index: string;
                        interactive?: boolean;
                        layerId: string;
                        link?: string;
                        locked: boolean;
                        ownerId?: string;
                        parentId?: string;
                        position: { x: number; y: number };
                        rotation?: number;
                        size: { h: number; w: number };
                        transient?: boolean;
                        type: "html";
                        version: number;
                    }
                    | {
                        audience?: string;
                        autoResize?: boolean;
                        color: string;
                        containerId?: string;
                        editor?: string;
                        fontSize: number;
                        groupId?: string;
                        id: string;
                        index: string;
                        layerId: string;
                        link?: string;
                        locked: boolean;
                        ownerId?: string;
                        parentId?: string;
                        position: { x: number; y: number };
                        rotation?: number;
                        size: { h: number; w: number };
                        text: string;
                        textAlign: "left" | "center" | "right";
                        type: "text";
                        version: number;
                        wrap?: boolean;
                    }
                    | {
                        audience?: string;
                        editor?: string;
                        fillColor: string;
                        flip?: boolean;
                        groupId?: string;
                        id: string;
                        index: string;
                        layerId: string;
                        link?: string;
                        locked: boolean;
                        ownerId?: string;
                        parentId?: string;
                        position: { x: number; y: number };
                        rotation?: number;
                        shape: ShapeKind;
                        size: { h: number; w: number };
                        strokeColor: string;
                        strokeWidth: number;
                        type: "shape";
                        version: number;
                    }
                    | {
                        audience?: string;
                        data: { readonly [key: string]: unknown };
                        dataVersion?: number;
                        editor?: string;
                        extensionType: string;
                        groupId?: string;
                        id: string;
                        index: string;
                        layerId: string;
                        link?: string;
                        locked: boolean;
                        ownerId?: string;
                        parentId?: string;
                        position: { x: number; y: number };
                        rotation?: number;
                        size?: { h: number; w: number };
                        type: "extension";
                        version: number;
                    }
                )[];
                extensions: {
                    readonly [key: string]: {
                        data: unknown;
                        pluginName: string;
                        version: number;
                    };
                };
                layers: readonly {
                    definition?: {
                        id: string;
                        locked: boolean;
                        name: string;
                        opacity: number;
                        order: number;
                        visible: boolean;
                    };
                    editor: string;
                    id: string;
                    version: number;
                }[];
            }
            | null;
        error: string
        | null;
        generation: string | null;
        localEditGeneration: number;
        localSequence: number;
        operations: readonly AuthorityClientOperation[];
        scopeId: string;
        status: AuthorityClientStatus;
    }
    Index
    document:
        | {
            casToken?: string;
            cursor: { generation: string; revision: number; streamId: string };
            elements: readonly (
                | {
                    audience?: string;
                    blendMode?: "multiply";
                    color: string;
                    editor?: string;
                    groupId?: string;
                    id: string;
                    index: string;
                    layerId: string;
                    link?: string;
                    locked: boolean;
                    opacity: number;
                    ownerId?: string;
                    parentId?: string;
                    points: readonly { pressure: number; x: number; y: number }[];
                    position: { x: number; y: number };
                    rotation?: number;
                    type: "stroke";
                    version: number;
                    width: number;
                }
                | {
                    audience?: string;
                    backgroundColor: string;
                    editor?: string;
                    fontSize?: number;
                    groupId?: string;
                    id: string;
                    index: string;
                    layerId: string;
                    link?: string;
                    locked: boolean;
                    ownerId?: string;
                    parentId?: string;
                    position: { x: number; y: number };
                    rotation?: number;
                    size: { h: number; w: number };
                    text: string;
                    textColor: string;
                    type: "note";
                    version: number;
                }
                | {
                    audience?: string;
                    bend: number;
                    cachedControlPoint?: { x: number; y: number };
                    color: string;
                    editor?: string;
                    fixedSegments?: readonly { axis: "x" | "y"; value: number }[];
                    from: { x: number; y: number };
                    fromBinding?: { elementId: string };
                    groupId?: string;
                    id: string;
                    index: string;
                    label?: string;
                    layerId: string;
                    link?: string;
                    locked: boolean;
                    ownerId?: string;
                    parentId?: string;
                    position: { x: number; y: number };
                    rotation?: number;
                    routing?: "bezier" | "elbow";
                    strokeStyle?: ArrowStrokeStyle;
                    to: { x: number; y: number };
                    toBinding?: { elementId: string };
                    type: "arrow";
                    version: number;
                    width: number;
                }
                | {
                    audience?: string;
                    editor?: string;
                    groupId?: string;
                    id: string;
                    index: string;
                    layerId: string;
                    link?: string;
                    locked: boolean;
                    ownerId?: string;
                    parentId?: string;
                    position: { x: number; y: number };
                    rotation?: number;
                    size: { h: number; w: number };
                    src: string;
                    type: "image";
                    version: number;
                }
                | {
                    audience?: string;
                    data?: { readonly [key: string]: unknown };
                    domId?: string;
                    editor?: string;
                    groupId?: string;
                    htmlType?: string;
                    id: string;
                    index: string;
                    interactive?: boolean;
                    layerId: string;
                    link?: string;
                    locked: boolean;
                    ownerId?: string;
                    parentId?: string;
                    position: { x: number; y: number };
                    rotation?: number;
                    size: { h: number; w: number };
                    transient?: boolean;
                    type: "html";
                    version: number;
                }
                | {
                    audience?: string;
                    autoResize?: boolean;
                    color: string;
                    containerId?: string;
                    editor?: string;
                    fontSize: number;
                    groupId?: string;
                    id: string;
                    index: string;
                    layerId: string;
                    link?: string;
                    locked: boolean;
                    ownerId?: string;
                    parentId?: string;
                    position: { x: number; y: number };
                    rotation?: number;
                    size: { h: number; w: number };
                    text: string;
                    textAlign: "left" | "center" | "right";
                    type: "text";
                    version: number;
                    wrap?: boolean;
                }
                | {
                    audience?: string;
                    editor?: string;
                    fillColor: string;
                    flip?: boolean;
                    groupId?: string;
                    id: string;
                    index: string;
                    layerId: string;
                    link?: string;
                    locked: boolean;
                    ownerId?: string;
                    parentId?: string;
                    position: { x: number; y: number };
                    rotation?: number;
                    shape: ShapeKind;
                    size: { h: number; w: number };
                    strokeColor: string;
                    strokeWidth: number;
                    type: "shape";
                    version: number;
                }
                | {
                    audience?: string;
                    data: { readonly [key: string]: unknown };
                    dataVersion?: number;
                    editor?: string;
                    extensionType: string;
                    groupId?: string;
                    id: string;
                    index: string;
                    layerId: string;
                    link?: string;
                    locked: boolean;
                    ownerId?: string;
                    parentId?: string;
                    position: { x: number; y: number };
                    rotation?: number;
                    size?: { h: number; w: number };
                    type: "extension";
                    version: number;
                }
            )[];
            extensions: {
                readonly [key: string]: {
                    data: unknown;
                    pluginName: string;
                    version: number;
                };
            };
            layers: readonly {
                definition?: {
                    id: string;
                    locked: boolean;
                    name: string;
                    opacity: number;
                    order: number;
                    visible: boolean;
                };
                editor: string;
                id: string;
                version: number;
            }[];
        }
        | null
    error: string | null
    generation: string | null
    localEditGeneration: number
    localSequence: number
    operations: readonly AuthorityClientOperation[]
    scopeId: string