{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "interactionId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "pattern": "^[^\\s]+$"
    },
    "interactionRevisionId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "pattern": "^[^\\s]+$"
    },
    "actionId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "pattern": "^[^\\s]+$"
    },
    "actionFingerprint": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "target": {
      "$ref": "#/components/schemas/ProjectAgentReviewAcceptanceTarget"
    },
    "currency": {
      "type": "string",
      "enum": [
        "current",
        "stale"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "accepted",
        "rejected",
        "requested_changes",
        "stale",
        "expired",
        "revoked",
        "unsatisfiable"
      ]
    },
    "approval": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "actionId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512,
              "pattern": "^[^\\s]+$"
            },
            "state": {
              "type": "string",
              "enum": [
                "pending",
                "approved",
                "rejected",
                "expired",
                "unsatisfiable"
              ]
            },
            "approvals": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "required": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "completedSteps": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "totalSteps": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "actionId",
            "state",
            "approvals",
            "required",
            "completedSteps",
            "totalSteps"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "receipts": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512,
            "pattern": "^[^\\s]+$"
          },
          "outcome": {
            "type": "string",
            "maxLength": 40
          },
          "proposalFingerprint": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "decidedAt": {
            "type": "string",
            "maxLength": 40
          },
          "contentPurged": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "outcome",
          "proposalFingerprint",
          "decidedAt",
          "contentPurged"
        ]
      },
      "maxItems": 100,
      "minItems": 0
    }
  },
  "required": [
    "interactionId",
    "interactionRevisionId",
    "actionId",
    "actionFingerprint",
    "target",
    "currency",
    "status",
    "approval",
    "receipts"
  ]
}