{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Create or update setting option",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "description": {
              "maxLength": 2000,
              "type": "string"
            },
            "key": {
              "format": "nsid",
              "type": "string"
            },
            "managerRole": {
              "knownValues": [
                "tools.ozone.team.defs#roleModerator",
                "tools.ozone.team.defs#roleTriage",
                "tools.ozone.team.defs#roleVerifier",
                "tools.ozone.team.defs#roleAdmin"
              ],
              "type": "string"
            },
            "scope": {
              "knownValues": [
                "instance",
                "personal"
              ],
              "type": "string"
            },
            "value": {
              "type": "unknown"
            }
          },
          "required": [
            "key",
            "scope",
            "value"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "option": {
              "ref": "tools.ozone.setting.defs#option",
              "type": "ref"
            }
          },
          "required": [
            "option"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "tools.ozone.setting.upsertOption",
  "lexicon": 1
}
