{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "An official status assigned to a discussion. Only honored when authored by the space owner or an appointed moderator. Latest createdAt wins. Lives in the moderator's repo.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "duplicateOf": {
            "description": "When state is 'duplicate', the canonical discussion this duplicates.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "note": {
            "maxGraphemes": 1500,
            "maxLength": 3000,
            "type": "string"
          },
          "state": {
            "enum": [
              "open",
              "under-review",
              "backlog",
              "planned",
              "in-progress",
              "implemented",
              "declined",
              "duplicate",
              "closed"
            ],
            "type": "string"
          },
          "subject": {
            "description": "The discussion this status applies to. Indexed by constellation at subject.uri.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          }
        },
        "required": [
          "subject",
          "state",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.userinput.status",
  "lexicon": 1
}
