toolsOzoneInboxAppealActionedSubject top-level constant

Map<String, dynamic> const toolsOzoneInboxAppealActionedSubject

tools.ozone.inbox.appealActionedSubject

Implementation

const toolsOzoneInboxAppealActionedSubject = <String, dynamic>{
  "lexicon": 1,
  "id": "tools.ozone.inbox.appealActionedSubject",
  "defs": {
    "main": {
      "type": "procedure",
      "description":
          "Appeal a moderation action affecting the user's account or content.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["subject"],
          "properties": {
            "action": {
              "type": "union",
              "description": "Moderation action being appealed.",
              "refs": ["#actionRef", "#labelRef", "#takedownRef"],
              "closed": true,
            },
            "subject": {
              "type": "union",
              "description": "Subject being appealed.",
              "refs": [
                "com.atproto.admin.defs#repoRef",
                "com.atproto.repo.strongRef",
              ],
            },
            "reason": {
              "type": "string",
              "description": "Optional explanation supplied by the user.",
              "maxLength": 20000,
              "maxGraphemes": 2000,
            },
            "modTool": {
              "type": "ref",
              "ref": "com.atproto.moderation.createReport#modTool",
            },
          },
        },
      },
      "output": {
        "encoding": "application/json",
        "schema": {"type": "ref", "ref": "tools.ozone.inbox.defs#subjectView"},
      },
      "errors": [
        {
          "name": "InvalidAppealSubject",
          "description": "Invalid appeal subject input.",
        },
        {
          "name": "AlreadyAppealed",
          "description": "An active appeal already exists for this action.",
        },
        {
          "name": "NotAppealable",
          "description": "The subject cannot be appealed.",
        },
        {
          "name": "AppealWindowExpired",
          "description": "The appeal window for this action has closed.",
        },
      ],
    },
    "actionRef": {
      "type": "object",
      "required": ["id"],
      "properties": {
        "id": {
          "type": "integer",
          "description":
              "ID of the moderation action being appealed, available via actions in mod inbox.",
          "minimum": 1,
        },
      },
    },
    "labelRef": {
      "type": "object",
      "required": ["val"],
      "properties": {
        "val": {
          "type": "string",
          "description": "Label being appealed.",
          "minLength": 1,
        },
      },
    },
    "takedownRef": {"type": "object", "properties": {}},
  },
};