Field Notes
    Preparing search index...

    Interface AuthorityClientOperation

    interface AuthorityClientOperation {
        attempts: number;
        clientOperationId: string;
        generation: string;
        localEditGeneration: number;
        localSequence: number;
        originalWire: string;
        proposal: {
            clientOperationId: string;
            expectedState?: string;
            generation: string;
            kind: "propose";
            mutation:
                | {
                    element: | {
                        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;
                    };
                    kind: "upsert";
                }
                | { editor?: string; id: string; kind: "remove"; version?: number }
                | {
                    kind: "clear";
                    tombstones?: readonly { editor: string; id: string; version: number }[];
                }
                | {
                    editor: string;
                    kind: "layer-upsert";
                    layer: {
                        id: string;
                        locked: boolean;
                        name: string;
                        opacity: number;
                        order: number;
                        visible: boolean;
                    };
                    version: number;
                }
                | { editor: string; id: string; kind: "layer-remove"; version: number }
                | {
                    kind: "fog-meta";
                    record: {
                        definition?: {
                            base: "covered" | "revealed";
                            bounds: { h: number; w: number; x: number; y: number };
                            cellSize: number;
                            generation: string;
                            tileCells: 128;
                            version: 1;
                        };
                        editor: string;
                        version: number;
                    };
                }
                | {
                    generation: string;
                    kind: "fog-patch";
                    tiles: readonly {
                        data?: string;
                        editor: string;
                        generation: string;
                        version: number;
                        x: number;
                        y: number;
                    }[];
                }
                | { extensionKind: string; kind: "extension"; payload: unknown };
            protocol: "authority:1";
        };
        receipt?: AuthorityReceipt;
        rejection?: AuthorityRejectionReason;
        status: "rejected"
        | "pending"
        | "draft"
        | "accepted"
        | "uncertain";
        wasUncertain: boolean;
    }
    Index
    attempts: number
    clientOperationId: string
    generation: string
    localEditGeneration: number
    localSequence: number
    originalWire: string
    proposal: {
        clientOperationId: string;
        expectedState?: string;
        generation: string;
        kind: "propose";
        mutation:
            | {
                element: | {
                    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;
                };
                kind: "upsert";
            }
            | { editor?: string; id: string; kind: "remove"; version?: number }
            | {
                kind: "clear";
                tombstones?: readonly { editor: string; id: string; version: number }[];
            }
            | {
                editor: string;
                kind: "layer-upsert";
                layer: {
                    id: string;
                    locked: boolean;
                    name: string;
                    opacity: number;
                    order: number;
                    visible: boolean;
                };
                version: number;
            }
            | { editor: string; id: string; kind: "layer-remove"; version: number }
            | {
                kind: "fog-meta";
                record: {
                    definition?: {
                        base: "covered" | "revealed";
                        bounds: { h: number; w: number; x: number; y: number };
                        cellSize: number;
                        generation: string;
                        tileCells: 128;
                        version: 1;
                    };
                    editor: string;
                    version: number;
                };
            }
            | {
                generation: string;
                kind: "fog-patch";
                tiles: readonly {
                    data?: string;
                    editor: string;
                    generation: string;
                    version: number;
                    x: number;
                    y: number;
                }[];
            }
            | { extensionKind: string; kind: "extension"; payload: unknown };
        protocol: "authority:1";
    }
    status: "rejected" | "pending" | "draft" | "accepted" | "uncertain"
    wasUncertain: boolean