{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/marketsdk/json-schema/marketsdk-reputation-event-list-schema.json",
  "title": "ReputationEventList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/marketsdk-reputation-api-openapi.yml#/components/schemas/ReputationEventList",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "list"
      ]
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ReputationEventObject"
      }
    },
    "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": {
    "ReputationEventObject": {
      "type": "object",
      "properties": {
        "object": {
          "type": "string",
          "enum": [
            "reputation_event"
          ]
        },
        "id": {
          "type": "string"
        },
        "party": {
          "type": "string",
          "description": "The buyer or seller the event belongs to."
        },
        "party_role": {
          "type": "string",
          "enum": [
            "buyer",
            "seller"
          ]
        },
        "kind": {
          "type": "string",
          "enum": [
            "order_completed",
            "backed_out",
            "dispute_lost",
            "dispute_won",
            "lapsed",
            "review_received",
            "voided"
          ]
        },
        "order": {
          "type": [
            "string",
            "null"
          ]
        },
        "review": {
          "type": [
            "string",
            "null"
          ]
        },
        "rating": {
          "type": [
            "number",
            "null"
          ],
          "description": "For review_received."
        },
        "voids": {
          "type": [
            "string",
            "null"
          ],
          "description": "For voided: the event this one voids."
        },
        "reason": {
          "type": [
            "string",
            "null"
          ],
          "description": "For voided: the written reason."
        },
        "occurred_at": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "object",
        "id",
        "party",
        "party_role",
        "kind",
        "order",
        "review",
        "rating",
        "voids",
        "reason",
        "occurred_at"
      ]
    }
  }
}