{
  "oneOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "recordId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "outcome": {
          "type": "string",
          "enum": [
            "success"
          ]
        },
        "etag": {
          "type": "string",
          "pattern": "^\"[^\"\\s]+:v[1-9][0-9]*\"$"
        }
      },
      "required": [
        "recordId",
        "outcome",
        "etag"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "recordId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "outcome": {
          "type": "string",
          "enum": [
            "failed"
          ]
        },
        "error": {
          "$ref": "#/components/schemas/ProjectAgentError"
        }
      },
      "required": [
        "recordId",
        "outcome",
        "error"
      ]
    }
  ]
}