{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "locales": {
            "description": "Locale scope. Omitted = all target locales.",
            "items": {
              "maxLength": 35,
              "minLength": 2,
              "type": "string"
            },
            "maxLength": 1000,
            "type": "array"
          },
          "member": {
            "description": "DID the role is granted to.",
            "format": "did",
            "type": "string"
          },
          "project": {
            "format": "at-uri",
            "type": "string"
          },
          "role": {
            "knownValues": [
              "admin",
              "reviewer",
              "translator",
              "viewer"
            ],
            "type": "string"
          }
        },
        "required": [
          "project",
          "member",
          "role",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A project role grant, optionally scoped to locales. Owner-authored.",
  "id": "at.locale.membership",
  "lexicon": 1
}
