{
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "enum": [
        "read",
        "submit",
        "reply",
        "delete",
        "report"
      ],
      "description": "read, submit, reply, delete or report"
    },
    "listing": {
      "type": "string",
      "minLength": 3,
      "maxLength": 300,
      "description": "Listing id as kind:id, e.g. api:x402-14342d806afbda09"
    },
    "include_text": {
      "description": "read: include review text and replies (untrusted, screened)",
      "type": "boolean"
    },
    "worked": {
      "description": "submit: did the paid call do what you needed?",
      "type": "boolean"
    },
    "stars": {
      "description": "submit: 1-5",
      "type": "integer",
      "minimum": 1,
      "maximum": 5
    },
    "fast": {
      "description": "submit: was it fast enough?",
      "type": "boolean"
    },
    "matched_description": {
      "description": "submit: did it match its description?",
      "type": "boolean"
    },
    "text": {
      "description": "submit or reply: one line, at most 280 characters, no links, mentions or markup",
      "type": "string",
      "maxLength": 400
    },
    "review": {
      "description": "reply or report: a review id from a read",
      "type": "string",
      "maxLength": 17
    },
    "reason": {
      "description": "report: why (one line)",
      "type": "string",
      "maxLength": 400
    },
    "wallet": {
      "description": "With a wallet: the 0x address",
      "type": "string",
      "maxLength": 42
    },
    "signature": {
      "description": "With a wallet: personal_sign of the text above (plain or smart wallets, ERC-1271/6492, on Base)",
      "type": "string",
      "maxLength": 16400
    },
    "signed_at": {
      "description": "With a wallet: the unix time (seconds) in the signed text",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "action",
    "listing"
  ],
  "additionalProperties": false
}