{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The rkey is the area's key (the root derives it from the area), or `{area-key}-{millis}` for a later period after one has ended, so each period keeps its own record and a re-publish of a period updates the same record.",
      "key": "any",
      "record": {
        "properties": {
          "area": {
            "description": "The area: a `pub.techne.draft.placeV2` with `kind: area`, pinned to one version. A redrawn boundary is a new area version, so it needs a new region version naming it.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "operator": {
            "description": "The operator that holds the region: the DID of the account that runs its AppView. Its endpoint is a fact about the operator and is not stored here.",
            "format": "did",
            "type": "string"
          },
          "validFrom": {
            "description": "When the period starts. Absent: from always.",
            "format": "datetime",
            "type": "string"
          },
          "validUntil": {
            "description": "When the period ends (exclusive). Absent: it has not ended.",
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "area",
          "operator",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "The commons root's statement that one area is an operator's region for a period: the root asserts that the operator indexes and serves the public records placed in it. The root asserts that regions do not overlap, that an operator may hold any number of them, and that land in no region is remembered and not served. No reader reads regions yet: coverage today is the platform's fixed list of supported areas (regenos_read::areas::SUPPORTED_AREAS). Separate from `pub.techne.draft.operator`, which grants commons admin powers: holding a region grants none. Only the root's own region records count (a `provenancePolicy` gap, like `operator`). A region is ended by setting `validUntil`, never by deleting the record, and a handoff writes a new record for the new period, so each period keeps its own record. PUBLIC. Written in the commons root's repo only.",
  "id": "pub.techne.draft.region",
  "lexicon": 1
}
