{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/marketsdk/json-schema/marketsdk-moderation-action-list-schema.json",
  "title": "ModerationActionList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/marketsdk-moderation-api-openapi.yml#/components/schemas/ModerationActionList",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "list"
      ]
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ModerationActionObject"
      }
    },
    "has_more": {
      "type": "boolean",
      "description": "Whether another page follows."
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass as `starting_after` (or `cursor` for search) to get the next page."
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "$defs": {
    "ModerationActionObject": {
      "type": "object",
      "properties": {
        "object": {
          "type": "string",
          "enum": [
            "moderation_action"
          ]
        },
        "id": {
          "type": "string"
        },
        "target_type": {
          "type": "string",
          "enum": [
            "listing",
            "seller",
            "review"
          ]
        },
        "target": {
          "type": "string"
        },
        "action": {
          "type": "string",
          "enum": [
            "dismiss",
            "remove_content",
            "suspend_seller",
            "reinstate_seller"
          ]
        },
        "reason": {
          "type": "string"
        },
        "actor": {
          "type": "string"
        },
        "flags_resolved": {
          "type": "number",
          "description": "Open flags this action resolved."
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "object",
        "id",
        "target_type",
        "target",
        "action",
        "reason",
        "actor",
        "flags_resolved",
        "created_at"
      ]
    }
  }
}