{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "contact": {
      "type": "object",
      "properties": {
        "externalRef": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120
        },
        "email": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 254,
              "format": "email",
              "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "contactUrl": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 2000,
              "format": "uri"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200,
          "description": "Resource identifier returned by the operation."
        },
        "projectId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "revision": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
          "description": "Revision of this saved contact. Supply it as revision when updating or deleting the contact."
        },
        "createdAt": {
          "type": "string"
        },
        "updatedAt": {
          "type": "string"
        },
        "attention": {
          "anyOf": [
            {},
            {
              "type": "null"
            }
          ]
        },
        "relatedRecords": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "watchId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "sourceUrl": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "publisherUrl": {
                "type": "string"
              },
              "targetUrl": {
                "type": "string"
              },
              "progress": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "monitoring": {
                "type": "boolean"
              },
              "participationId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "campaign": {
                "type": "string"
              },
              "lastContactedAt": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "watchId",
              "sourceUrl",
              "publisherUrl",
              "targetUrl",
              "progress",
              "monitoring"
            ],
            "additionalProperties": false
          }
        },
        "hasMoreRelatedRecords": {
          "type": "boolean"
        }
      },
      "required": [
        "externalRef",
        "name",
        "email",
        "contactUrl",
        "id",
        "projectId",
        "revision",
        "createdAt",
        "updatedAt"
      ],
      "additionalProperties": false
    },
    "replayed": {
      "type": "boolean",
      "description": "True when the response reuses an earlier request with the same idempotency value."
    }
  },
  "required": [
    "contact",
    "replayed"
  ],
  "additionalProperties": false
}
