{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A staff member's role at the publication, stored in the publication's private staff space. The record key is the staff member's DID, so each person has at most one role.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "role": {
            "knownValues": [
              "admin",
              "editor",
              "reporter",
              "contributor"
            ],
            "maxLength": 64,
            "type": "string"
          },
          "subject": {
            "description": "The staff member's DID. Must match the record key.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "subject",
          "role",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "net.wireservice.staffRole",
  "lexicon": 1
}
