us.off-the-clock.admin.defs

off-the-clock.us

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "blob": {
      "description": "A blob records in the space reference.",
      "properties": {
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "did": {
          "format": "did",
          "type": "string"
        },
        "labels": {
          "items": {
            "ref": "us.off-the-clock.admin.defs#label",
            "type": "ref"
          },
          "type": "array"
        },
        "mime": {
          "type": "string"
        },
        "records": {
          "type": "integer"
        }
      },
      "required": [
        "did",
        "cid",
        "records",
        "labels"
      ],
      "type": "object"
    },
    "collectionCount": {
      "properties": {
        "collection": {
          "format": "nsid",
          "type": "string"
        },
        "count": {
          "type": "integer"
        }
      },
      "required": [
        "collection",
        "count"
      ],
      "type": "object"
    },
    "feed": {
      "description": "The effective feed of a pair's record key (D13, D36).",
      "properties": {
        "author": {
          "format": "did",
          "type": "string"
        },
        "configuration": {
          "type": "unknown"
        },
        "default": {
          "description": "The feed the pair's space record names.",
          "type": "boolean"
        },
        "displayName": {
          "type": "string"
        },
        "rkey": {
          "format": "record-key",
          "type": "string"
        },
        "sort": {
          "knownValues": [
            "newest",
            "startsAt"
          ],
          "type": "string"
        },
        "text": {
          "type": "string"
        }
      },
      "required": [
        "rkey",
        "author",
        "displayName",
        "text",
        "configuration",
        "sort",
        "default"
      ],
      "type": "object"
    },
    "grant": {
      "description": "One us.off-the-clock.community.membership record.",
      "properties": {
        "author": {
          "format": "did",
          "type": "string"
        },
        "counts": {
          "description": "Its author is an effective admin, so it grants what it names.",
          "type": "boolean"
        },
        "indexedAt": {
          "format": "datetime",
          "type": "string"
        },
        "note": {
          "maxLength": 1000,
          "type": "string"
        },
        "rkey": {
          "format": "record-key",
          "type": "string"
        },
        "space": {
          "description": "The management space it was written in, as <space-type>/<space-id>.",
          "maxLength": 512,
          "type": "string"
        },
        "spaces": {
          "items": {
            "description": "<space-type>/<space-id>: a pair's content space",
            "maxLength": 512,
            "type": "string"
          },
          "type": "array"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "space",
        "author",
        "rkey",
        "spaces",
        "indexedAt",
        "counts"
      ],
      "type": "object"
    },
    "label": {
      "description": "A label that counts.",
      "properties": {
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "cts": {
          "format": "datetime",
          "type": "string"
        },
        "record": {
          "description": "The label record, in the management space.",
          "format": "at-uri",
          "type": "string"
        },
        "src": {
          "format": "did",
          "type": "string"
        },
        "target": {
          "description": "The record URI, blob CID or DID labelled.",
          "type": "string"
        },
        "val": {
          "type": "string"
        }
      },
      "required": [
        "record",
        "src",
        "val",
        "target",
        "cts"
      ],
      "type": "object"
    },
    "member": {
      "description": "A DID some membership record names, with every record behind it.",
      "properties": {
        "admin": {
          "type": "boolean"
        },
        "adminOf": {
          "description": "The TIDs of the pairs the DID administers.",
          "items": {
            "format": "tid",
            "type": "string"
          },
          "type": "array"
        },
        "did": {
          "format": "did",
          "type": "string"
        },
        "grants": {
          "items": {
            "ref": "#grant",
            "type": "ref"
          },
          "type": "array"
        },
        "handle": {
          "format": "handle",
          "type": "string"
        },
        "invited": {
          "description": "A counting grant names the DID but it has not joined yet (D60).",
          "type": "boolean"
        },
        "joinedAt": {
          "description": "When the DID joined: its acceptance's createdAt.",
          "format": "datetime",
          "type": "string"
        },
        "member": {
          "type": "boolean"
        },
        "spaces": {
          "description": "Effective spaces; for an invited DID, what its grants will give it.",
          "items": {
            "description": "<space-type>/<space-id>: a pair's content space",
            "maxLength": 512,
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "did",
        "member",
        "admin",
        "adminOf",
        "spaces",
        "grants"
      ],
      "type": "object"
    },
    "pair": {
      "description": "A registered pair (D33, D34): its space record, its team and both halves.",
      "properties": {
        "admins": {
          "description": "The pair's own team: the members of team grants (D35).",
          "items": {
            "format": "did",
            "type": "string"
          },
          "type": "array"
        },
        "content": {
          "ref": "#space",
          "type": "ref"
        },
        "default": {
          "type": "boolean"
        },
        "defaultFeed": {
          "format": "record-key",
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "management": {
          "ref": "#space",
          "type": "ref"
        },
        "tid": {
          "format": "tid",
          "type": "string"
        }
      },
      "required": [
        "tid",
        "displayName",
        "defaultFeed",
        "default",
        "admins",
        "management",
        "content"
      ],
      "type": "object"
    },
    "record": {
      "description": "Any indexed record, hidden or not.",
      "properties": {
        "author": {
          "format": "did",
          "type": "string"
        },
        "authorMember": {
          "description": "The author may still use the record's space; if not, the record is hidden.",
          "type": "boolean"
        },
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "collection": {
          "format": "nsid",
          "type": "string"
        },
        "handle": {
          "format": "handle",
          "type": "string"
        },
        "indexedAt": {
          "format": "datetime",
          "type": "string"
        },
        "labels": {
          "items": {
            "ref": "us.off-the-clock.admin.defs#label",
            "type": "ref"
          },
          "type": "array"
        },
        "rkey": {
          "format": "record-key",
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        },
        "value": {
          "type": "unknown"
        }
      },
      "required": [
        "uri",
        "cid",
        "author",
        "collection",
        "rkey",
        "value",
        "indexedAt",
        "authorMember",
        "labels"
      ],
      "type": "object"
    },
    "space": {
      "description": "A space the community names (D34), and how the AppView follows it.",
      "properties": {
        "blobs": {
          "type": "integer"
        },
        "caughtUp": {
          "type": "boolean"
        },
        "credential": {
          "description": "The AppView's credential state in the space.",
          "type": "unknown"
        },
        "followed": {
          "type": "boolean"
        },
        "key": {
          "description": "The pair's TID, for a pair's half.",
          "maxLength": 512,
          "type": "string"
        },
        "records": {
          "type": "integer"
        },
        "space": {
          "description": "<space-type>/<space-id>",
          "maxLength": 512,
          "type": "string"
        },
        "uri": {
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "space",
        "uri",
        "followed",
        "caughtUp",
        "records",
        "blobs"
      ],
      "type": "object"
    }
  },
  "id": "us.off-the-clock.admin.defs",
  "lexicon": 1
}

Validate Record

Validate a record against us.off-the-clock.admin.defs

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:tevv7zpavtjtsvqrrwwipobt
CID
bafyreicx43bzo7rmddbnzruzcqvgct5fqz5y7wsyx2p2dzdpzfws6ealhu
Indexed At
2026-10-26 23:37 UTC
AT-URI
at://did:plc:tevv7zpavtjtsvqrrwwipobt/com.atproto.lexicon.schema/us.off-the-clock.admin.defs

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • A space pair's name, default feed and whether it is the default pair. Its record key is the pair's TID; effective admins write it, in the self management space (D34).

  • A space's public face in the space directory (D50): the community identity's record in the default pair's content space, keyed by the space's own key (its pair's TID), so a space has at most one. A space is listed exact…

  • Grants a member access to spaces. Grants are additive: a member's access is the union over every record naming them that counts: in the self management space by an effective admin, or in a pair's management space, for t…

  • A reference to a record in the same space. Record keys are unique per repo rather than per space, so a bare key cannot address a record in a space that aggregates many authors.

  • The community's management space: membership, feed, label, space and pin records that admins write. Only the community identity, its admins and the community's services can read it.

Lexicon Garden

@