{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "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,
        "description": "Records in this bounded page."
      },
      "description": "Records in this bounded page."
    },
    "nextAfter": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ]
    },
    "link": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "watchId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "contactId": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                {
                  "type": "null"
                }
              ]
            },
            "revision": {
              "anyOf": [
                {
                  "type": "number",
                  "const": 0,
                  "description": "Current association revision from list_contacts; 0 creates the first association."
                },
                {
                  "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": "Current association revision from list_contacts; 0 creates the first association."
                }
              ],
              "description": "Current association revision from list_contacts; 0 creates the first association."
            }
          },
          "required": [
            "watchId",
            "contactId",
            "revision"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "terms": {
      "type": "object",
      "properties": {
        "version": {
          "type": "string"
        },
        "accepted": {
          "type": "boolean"
        },
        "canAcknowledge": {
          "type": "boolean"
        },
        "ready": {
          "type": "boolean"
        },
        "url": {
          "type": "string",
          "const": "https://agentlinkops.com/terms/#your-data"
        }
      },
      "required": [
        "version",
        "accepted",
        "canAcknowledge",
        "ready",
        "url"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "items",
    "nextAfter",
    "link"
  ],
  "additionalProperties": false
}
