page.corvus.core

corvus.page

Documentation

counter object

PN-counter materialization.

Properties

value integer Required

Sum of applied increment deltas. May be negative.

View raw schema
{
  "type": "object",
  "required": [
    "value"
  ],
  "properties": {
    "value": {
      "type": "integer",
      "description": "Sum of applied increment deltas. May be negative."
    }
  },
  "description": "PN-counter materialization."
}
register object

LWW scalar register materialization.

Properties

opId string Required

the op hash of the op that last wrote to the register

value unknown Required

Committed value (LWW winner).

View raw schema
{
  "type": "object",
  "required": [
    "value",
    "opId"
  ],
  "properties": {
    "opId": {
      "type": "string",
      "description": "the op hash of the op that last wrote to the register"
    },
    "value": {
      "type": "unknown",
      "description": "Committed value (LWW winner)."
    }
  },
  "description": "LWW scalar register materialization."
}
run object

A contiguous range of live atoms in a `#sq`

Properties

atomIdx integer Required

the index of the first atom in the run (inclusive)

opId string Required

the op hash of the op that minted the run

value unknown Required

The run's payload — a string for text sequences (one atom per character), an array for list sequences (one atom per element).

View raw schema
{
  "type": "object",
  "required": [
    "opId",
    "atomIdx",
    "value"
  ],
  "properties": {
    "opId": {
      "type": "string",
      "description": "the op hash of the op that minted the run"
    },
    "value": {
      "type": "unknown",
      "description": "The run's payload — a string for text sequences (one atom per character), an array for list sequences (one atom per element)."
    },
    "atomIdx": {
      "type": "integer",
      "description": "the index of the first atom in the run (inclusive)"
    }
  },
  "description": "A contiguous range of live atoms in a `#sq`"
}
sequence object

RGA sequence materialization (text or list).

Properties

items array of union Required

The sequence as runs and tombstones in document order.

Known types:
View raw schema
{
  "type": "object",
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "refs": [
          "#run",
          "#tombstone"
        ],
        "type": "union",
        "closed": true
      },
      "description": "The sequence as runs and tombstones in document order."
    }
  },
  "description": "RGA sequence materialization (text or list)."
}
set object

OR-set materialization.

Properties

items array of ref#setItem Required

The OR-set as items

View raw schema
{
  "type": "object",
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "ref": "#setItem",
        "type": "ref"
      },
      "description": "The OR-set as items"
    }
  },
  "description": "OR-set materialization."
}
setItem object

An OR-set item

Properties

opId string Required

the op id of the operation that last updated this item in the set

removed boolean Required

whether the item is removed

value unknown Required

The value of the OR-set item

View raw schema
{
  "type": "object",
  "required": [
    "value",
    "opId",
    "removed"
  ],
  "properties": {
    "opId": {
      "type": "string",
      "description": "the op id of the operation that last updated this item in the set"
    },
    "value": {
      "type": "unknown",
      "description": "The value of the OR-set item"
    },
    "removed": {
      "type": "boolean",
      "description": "whether the item is removed"
    }
  },
  "description": "An OR-set item"
}
tombstone object

A contiguous range of deleted atoms in a `#sq`

Properties

atomIdx integer Required

the index of the first atom in the tombstone

length integer Required

Number of consecutive tombstoned atoms in the range.

opId string Required

the op id of the operation that minted the tombstone

View raw schema
{
  "type": "object",
  "required": [
    "opId",
    "atomIdx",
    "length"
  ],
  "properties": {
    "opId": {
      "type": "string",
      "description": "the op id of the operation that minted the tombstone"
    },
    "length": {
      "type": "integer",
      "description": "Number of consecutive tombstoned atoms in the range."
    },
    "atomIdx": {
      "type": "integer",
      "description": "the index of the first atom in the tombstone"
    }
  },
  "description": "A contiguous range of deleted atoms in a `#sq`"
}

Lexicon Garden

@