org.cairnsproto.draft.mark

Typed pointers into a source. Marks point at the original source, never a rendering, and never contain the answer. Marks nest through refinedBy. Ranges include start and exclude end.

Repository @cairnsproto.org did:plc:np7ezqujtsry4bkogisaabul namespace authority
Details · defs
Kinddefs
Authoritydraft.cairnsproto.org
Indexed
cid bafyreifzxhkxyul5pv6u3b34amwwijahcy4lpynfiphs5xmdaacyldttgq

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "archiveMember": {
      "properties": {
        "path": {
          "maxLength": 4096,
          "type": "string"
        },
        "refinedBy": {
          "ref": "#refinement",
          "type": "ref"
        }
      },
      "required": [
        "path"
      ],
      "type": "object"
    },
    "box": {
      "properties": {
        "x0": {
          "type": "integer"
        },
        "x1": {
          "type": "integer"
        },
        "y0": {
          "type": "integer"
        },
        "y1": {
          "type": "integer"
        }
      },
      "required": [
        "x0",
        "y0",
        "x1",
        "y1"
      ],
      "type": "object"
    },
    "cssSelector": {
      "properties": {
        "refinedBy": {
          "ref": "#refinement",
          "type": "ref"
        },
        "value": {
          "maxLength": 2000,
          "type": "string"
        }
      },
      "required": [
        "value"
      ],
      "type": "object"
    },
    "gitPath": {
      "properties": {
        "commit": {
          "description": "Full commit hash.",
          "maxLength": 64,
          "minLength": 40,
          "type": "string"
        },
        "path": {
          "maxLength": 4096,
          "type": "string"
        },
        "refinedBy": {
          "ref": "#refinement",
          "type": "ref"
        }
      },
      "required": [
        "commit",
        "path"
      ],
      "type": "object"
    },
    "imageRegion": {
      "properties": {
        "bbox": {
          "description": "In pixels, origin at the top left.",
          "ref": "#box",
          "type": "ref"
        },
        "frame": {
          "minimum": 0,
          "type": "integer"
        },
        "refinedBy": {
          "ref": "#refinement",
          "type": "ref"
        }
      },
      "required": [
        "bbox"
      ],
      "type": "object"
    },
    "intRange": {
      "properties": {
        "end": {
          "minimum": 0,
          "type": "integer"
        },
        "start": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "start",
        "end"
      ],
      "type": "object"
    },
    "jsonPointer": {
      "properties": {
        "pointer": {
          "description": "RFC 6901 pointer.",
          "maxLength": 4096,
          "type": "string"
        },
        "refinedBy": {
          "ref": "#refinement",
          "type": "ref"
        }
      },
      "required": [
        "pointer"
      ],
      "type": "object"
    },
    "mediaTime": {
      "properties": {
        "endMs": {
          "minimum": 0,
          "type": "integer"
        },
        "refinedBy": {
          "ref": "#refinement",
          "type": "ref"
        },
        "startMs": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "startMs",
        "endMs"
      ],
      "type": "object"
    },
    "pdfRegion": {
      "properties": {
        "bbox": {
          "description": "In hundredths of a PDF point, origin at the page's lower left.",
          "ref": "#box",
          "type": "ref"
        },
        "page": {
          "description": "1-based page number.",
          "minimum": 1,
          "type": "integer"
        },
        "refinedBy": {
          "ref": "#refinement",
          "type": "ref"
        }
      },
      "required": [
        "page"
      ],
      "type": "object"
    },
    "refinement": {
      "description": "A finer mark inside the enclosing one, such as a page inside an archive member.",
      "properties": {
        "mark": {
          "refs": [
            "#pdfRegion",
            "#imageRegion",
            "#sheetRange",
            "#tableRange",
            "#textQuote",
            "#cssSelector",
            "#textPosition",
            "#gitPath",
            "#jsonPointer",
            "#archiveMember",
            "#mediaTime",
            "#spaceRange"
          ],
          "type": "union"
        }
      },
      "required": [
        "mark"
      ],
      "type": "object"
    },
    "sheetRange": {
      "properties": {
        "range": {
          "description": "A1 notation, such as B2:F40.",
          "maxLength": 64,
          "type": "string"
        },
        "refinedBy": {
          "ref": "#refinement",
          "type": "ref"
        },
        "sheet": {
          "maxLength": 256,
          "type": "string"
        }
      },
      "required": [
        "sheet",
        "range"
      ],
      "type": "object"
    },
    "spaceRange": {
      "description": "A region of a search space. Bounds are decimal integer strings so they are not limited to 64 bits.",
      "properties": {
        "coordinates": {
          "items": {
            "maxLength": 1024,
            "type": "string"
          },
          "maxLength": 64,
          "type": "array"
        },
        "end": {
          "maxLength": 1024,
          "type": "string"
        },
        "space": {
          "description": "Hash of the search-space definition source.",
          "ref": "org.cairnsproto.draft.defs#hash",
          "type": "ref"
        },
        "start": {
          "maxLength": 1024,
          "type": "string"
        }
      },
      "required": [
        "space"
      ],
      "type": "object"
    },
    "tableRange": {
      "properties": {
        "columns": {
          "items": {
            "maxLength": 256,
            "type": "string"
          },
          "maxLength": 1024,
          "type": "array"
        },
        "headerRows": {
          "minimum": 0,
          "type": "integer"
        },
        "refinedBy": {
          "ref": "#refinement",
          "type": "ref"
        },
        "rows": {
          "description": "0-based data rows, after the header rows.",
          "ref": "#intRange",
          "type": "ref"
        }
      },
      "required": [
        "headerRows",
        "rows"
      ],
      "type": "object"
    },
    "textPosition": {
      "description": "Set lines, chars, or both.",
      "properties": {
        "chars": {
          "description": "0-based Unicode scalar offsets.",
          "ref": "#intRange",
          "type": "ref"
        },
        "lines": {
          "description": "1-based line numbers.",
          "ref": "#intRange",
          "type": "ref"
        },
        "refinedBy": {
          "ref": "#refinement",
          "type": "ref"
        }
      },
      "type": "object"
    },
    "textQuote": {
      "properties": {
        "exact": {
          "maxLength": 10000,
          "type": "string"
        },
        "prefix": {
          "maxLength": 1000,
          "type": "string"
        },
        "refinedBy": {
          "ref": "#refinement",
          "type": "ref"
        },
        "suffix": {
          "maxLength": 1000,
          "type": "string"
        }
      },
      "required": [
        "exact"
      ],
      "type": "object"
    }
  },
  "description": "Typed pointers into a source. Marks point at the original source, never a rendering, and never contain the answer. Marks nest through refinedBy. Ranges include start and exclude end.",
  "id": "org.cairnsproto.draft.mark",
  "lexicon": 1
}