{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "delivery_id": {
      "type": "string"
    },
    "events": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/WebhookEvent"
      }
    }
  },
  "required": [
    "delivery_id",
    "events"
  ],
  "definitions": {
    "BotMembership": {
      "type": "object",
      "properties": {
        "bot_id": {
          "type": "integer"
        },
        "chat_id": {
          "type": "integer"
        }
      },
      "required": [
        "bot_id",
        "chat_id"
      ]
    },
    "PublicTask": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "external_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "version": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "slug": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "datasource": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "type": {},
        "status": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicStatus"
            },
            {
              "type": "null"
            }
          ]
        },
        "stage": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicStage"
            },
            {
              "type": "null"
            }
          ]
        },
        "group": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicGroup"
            },
            {
              "type": "null"
            }
          ]
        },
        "parent": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "order": {
          "type": "number"
        },
        "priority": {
          "enum": [
            "critical",
            "high",
            "medium",
            "low"
          ]
        },
        "progress": {
          "type": "integer"
        },
        "archived": {
          "type": "boolean"
        },
        "completed": {
          "type": "boolean"
        },
        "date_created": {
          "type": "string"
        },
        "date_updated": {
          "type": "string"
        },
        "date_completed": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "date_archived": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "date_start": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "date_start_time": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "deadline": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "deadline_time": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "planned_time_minutes": {
          "type": "integer"
        },
        "planned_time_type": {
          "enum": [
            "minute",
            "hour",
            "day",
            "week",
            "month"
          ]
        },
        "tracked_seconds": {},
        "executors": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/PublicTaskExecutor"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "responsibles": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/PublicTaskResponsible"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "task_labels": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/PublicLabel"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "custom_fields": {},
        "created_by_id": {},
        "updated_by": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicUser"
            },
            {
              "type": "null"
            }
          ]
        },
        "subtasks_count": {
          "type": "integer"
        },
        "comments_count": {
          "type": "integer"
        },
        "files_count": {
          "type": "integer"
        }
      },
      "required": [
        "id"
      ]
    },
    "PublicStatus": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "title": {
          "type": "string"
        },
        "color": {
          "type": "string"
        },
        "icon": {},
        "segment": {
          "enum": [
            "todo",
            "in_progress",
            "done",
            "cancelled"
          ]
        },
        "order": {
          "type": "number"
        },
        "is_default": {
          "type": "boolean"
        }
      },
      "required": [
        "id"
      ]
    },
    "PublicStage": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "color": {
          "type": "string"
        },
        "order": {
          "type": "number"
        }
      },
      "required": [
        "id"
      ]
    },
    "PublicGroup": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "order": {
          "type": "number"
        }
      },
      "required": [
        "id"
      ]
    },
    "PublicTaskExecutor": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "member_type": {},
        "member": {},
        "finished": {
          "type": "boolean"
        }
      },
      "required": [
        "id"
      ]
    },
    "PublicTaskResponsible": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "member_type": {},
        "member": {},
        "is_confirmed_closing": {
          "type": "boolean"
        }
      },
      "required": [
        "id"
      ]
    },
    "PublicLabel": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "color": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "PublicUser": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "first_name": {
          "type": "string"
        },
        "last_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "full_name": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "PublicTaskComment": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "external_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "task": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "object_id": {
          "type": "integer"
        },
        "comment": {
          "type": "string"
        },
        "author": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicUser"
            },
            {
              "type": "null"
            }
          ]
        },
        "answer_to": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicTaskCommentAnswer"
            },
            {
              "type": "null"
            }
          ]
        },
        "thread_root_id": {},
        "datetime_created": {
          "type": "string"
        },
        "datetime_updated": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "deleted_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "is_deleted": {
          "type": "boolean"
        },
        "pinned": {
          "type": "boolean"
        },
        "resolved": {
          "type": "boolean"
        },
        "quote_text": {
          "type": "string"
        },
        "files": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/PublicCommentFile"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id"
      ]
    },
    "PublicTaskCommentAnswer": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "comment": {
          "type": "string"
        },
        "author": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicUser"
            },
            {
              "type": "null"
            }
          ]
        },
        "datetime_created": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "PublicCommentFile": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "extension": {
          "type": "string"
        },
        "size": {
          "type": "integer"
        },
        "size_kb": {},
        "url": {
          "type": "string"
        },
        "created_at": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "PublicDataSource": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "external_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "archived": {
          "type": "boolean"
        },
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "comment": {
          "type": "string"
        },
        "responsible": {},
        "status": {
          "enum": [
            "on_schedule",
            "waiting",
            "at_risk",
            "deviated",
            "completed",
            "partially_completed",
            "not_completed",
            "cancelled"
          ]
        },
        "priority": {
          "enum": [
            "critical",
            "high",
            "medium",
            "low"
          ]
        },
        "progress": {
          "type": "integer"
        },
        "date_start": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "date_start_time": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "deadline": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "deadline_time": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string"
        },
        "updated_at": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "PublicGoal": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "icon": {
          "type": "string"
        },
        "emoji": {
          "type": "string"
        },
        "status": {
          "enum": [
            "on_schedule",
            "waiting",
            "at_risk",
            "deviated",
            "completed",
            "partially_completed",
            "not_completed",
            "cancelled"
          ]
        },
        "parent_id": {},
        "date_start": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "date_start_time": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "deadline": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "deadline_time": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "date_period": {
          "anyOf": [
            {
              "enum": [
                "full_year",
                "first_half",
                "second_half",
                "first_quarter",
                "second_quarter",
                "third_quarter",
                "fourth_quarter"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "date_year": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "progress": {
          "type": "integer"
        },
        "weights_type": {
          "enum": [
            "equal",
            "manually"
          ]
        },
        "weight": {},
        "created_by": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicUser"
            },
            {
              "type": "null"
            }
          ]
        },
        "responsible": {},
        "created_at": {
          "type": "string"
        },
        "updated_at": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "PublicGoalComment": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "goal_id": {},
        "comment": {
          "type": "string"
        },
        "author": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicUser"
            },
            {
              "type": "null"
            }
          ]
        },
        "answer_to_id": {},
        "thread_root_id": {},
        "pinned": {
          "type": "boolean"
        },
        "quote_text": {
          "type": "string"
        },
        "is_deleted": {
          "type": "boolean"
        },
        "datetime_created": {
          "type": "string"
        },
        "datetime_updated": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "files": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/PublicGoalCommentFile"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id"
      ]
    },
    "PublicGoalCommentFile": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "file": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "PublicPage": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "view_id": {},
        "name": {
          "type": "string"
        },
        "status": {
          "enum": [
            "draft",
            "current",
            "request_changes",
            "outdated",
            "in_revision",
            "done"
          ]
        },
        "cover": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "responsible": {},
        "labels": {},
        "created_by": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicUser"
            },
            {
              "type": "null"
            }
          ]
        },
        "updated_by": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicUser"
            },
            {
              "type": "null"
            }
          ]
        },
        "updated_at": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "PublicPageComment": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "page_id": {},
        "comment": {
          "type": "string"
        },
        "author": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicUser"
            },
            {
              "type": "null"
            }
          ]
        },
        "answer_to_id": {},
        "thread_root_id": {},
        "pinned": {
          "type": "boolean"
        },
        "quote_text": {
          "type": "string"
        },
        "is_deleted": {
          "type": "boolean"
        },
        "datetime_created": {
          "type": "string"
        },
        "datetime_updated": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "files": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/PublicPageCommentFile"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id"
      ]
    },
    "PublicPageCommentFile": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "file": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "PublicPortfolio": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "view_id": {},
        "name": {
          "type": "string"
        },
        "status": {
          "enum": [
            "on_schedule",
            "waiting",
            "at_risk",
            "deviated",
            "completed",
            "partially_completed",
            "not_completed",
            "cancelled"
          ]
        },
        "priority": {
          "enum": [
            "critical",
            "high",
            "medium",
            "low"
          ]
        },
        "parent_id": {},
        "date_start": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "date_start_time": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "deadline": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "deadline_time": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "weights_type": {
          "enum": [
            "equal",
            "manually"
          ]
        },
        "weight": {},
        "created_by": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicUser"
            },
            {
              "type": "null"
            }
          ]
        },
        "responsible": {},
        "created_at": {
          "type": "string"
        },
        "updated_at": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "PublicPortfolioComment": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "portfolio_id": {},
        "comment": {
          "type": "string"
        },
        "author": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicUser"
            },
            {
              "type": "null"
            }
          ]
        },
        "answer_to_id": {},
        "thread_root_id": {},
        "pinned": {
          "type": "boolean"
        },
        "quote_text": {
          "type": "string"
        },
        "is_deleted": {
          "type": "boolean"
        },
        "datetime_created": {
          "type": "string"
        },
        "datetime_updated": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "files": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/PublicPortfolioCommentFile"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id"
      ]
    },
    "PublicPortfolioCommentFile": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "file": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "BotMessage": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "chat_id": {
          "type": "integer"
        },
        "sender_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "kind": {
          "enum": [
            "text",
            "system",
            "file",
            "voice",
            "video_note",
            "sticker",
            "gif",
            "poll",
            "assistant",
            "meeting_summary"
          ]
        },
        "text": {
          "type": "string"
        },
        "thread_root_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "reply_to_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string"
        },
        "edited_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "chat_id",
        "sender_id",
        "kind",
        "text",
        "thread_root_id",
        "reply_to_id",
        "created_at",
        "edited_at"
      ]
    },
    "CommentCreated": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "comment.created"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "comment"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicTaskComment"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "CommentDeletedTombstone": {
      "type": "object",
      "properties": {
        "external_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "type": "integer"
        },
        "task_id": {
          "type": "integer"
        }
      },
      "required": [
        "external_id",
        "id",
        "task_id"
      ]
    },
    "CommentDeleted": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "comment.deleted"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "comment"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "type": "null"
        },
        "tombstone": {
          "$ref": "#/definitions/CommentDeletedTombstone"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "CommentRestored": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "comment.restored"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "comment"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicTaskComment"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "CommentUpdated": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "comment.updated"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "comment"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicTaskComment"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "GoalCreated": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "goal.created"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "goal"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicGoal"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "GoalDeletedTombstone": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "parent_id": {
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "name",
        "parent_id"
      ]
    },
    "GoalDeleted": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "goal.deleted"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "goal"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "type": "null"
        },
        "tombstone": {
          "$ref": "#/definitions/GoalDeletedTombstone"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "GoalUpdated": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "goal.updated"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "goal"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicGoal"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "GoalCommentCreated": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "goal_comment.created"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "goal_comment"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicGoalComment"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "GoalCommentDeletedTombstone": {
      "type": "object",
      "properties": {
        "goal_id": {
          "type": "integer"
        },
        "id": {
          "type": "integer"
        }
      },
      "required": [
        "goal_id",
        "id"
      ]
    },
    "GoalCommentDeleted": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "goal_comment.deleted"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "goal_comment"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "type": "null"
        },
        "tombstone": {
          "$ref": "#/definitions/GoalCommentDeletedTombstone"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "GoalCommentUpdated": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "goal_comment.updated"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "goal_comment"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicGoalComment"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "MessengerBotAdded": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "messenger.bot.added"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "messenger_bot"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/BotMembership"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "MessengerBotRemovedTombstone": {
      "type": "object",
      "properties": {
        "bot_id": {
          "type": "integer"
        },
        "chat_id": {
          "type": "integer"
        }
      },
      "required": [
        "bot_id",
        "chat_id"
      ]
    },
    "MessengerBotRemoved": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "messenger.bot.removed"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "messenger_bot"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "type": "null"
        },
        "tombstone": {
          "$ref": "#/definitions/MessengerBotRemovedTombstone"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "MessengerMessageCreated": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "messenger.message.created"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "messenger_message"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/BotMessage"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "MessengerMessageDeletedTombstone": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "chat_id": {
          "type": "integer"
        },
        "sender_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "thread_root_id": {
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "chat_id",
        "sender_id",
        "thread_root_id"
      ]
    },
    "MessengerMessageDeleted": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "messenger.message.deleted"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "messenger_message"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "type": "null"
        },
        "tombstone": {
          "$ref": "#/definitions/MessengerMessageDeletedTombstone"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "MessengerMessageUpdated": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "messenger.message.updated"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "messenger_message"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/BotMessage"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "PageCreated": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "page.created"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "page"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicPage"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "PageDeletedTombstone": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "view_id": {
          "type": "integer"
        }
      },
      "required": [
        "id",
        "name",
        "view_id"
      ]
    },
    "PageDeleted": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "page.deleted"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "page"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "type": "null"
        },
        "tombstone": {
          "$ref": "#/definitions/PageDeletedTombstone"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "PageUpdated": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "page.updated"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "page"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicPage"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "PageCommentCreated": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "page_comment.created"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "page_comment"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicPageComment"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "PageCommentDeletedTombstone": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "page_id": {
          "type": "integer"
        }
      },
      "required": [
        "id",
        "page_id"
      ]
    },
    "PageCommentDeleted": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "page_comment.deleted"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "page_comment"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "type": "null"
        },
        "tombstone": {
          "$ref": "#/definitions/PageCommentDeletedTombstone"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "PageCommentRestored": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "page_comment.restored"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "page_comment"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicPageComment"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "PageCommentUpdated": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "page_comment.updated"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "page_comment"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicPageComment"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "PortfolioCreated": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "portfolio.created"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "portfolio"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicPortfolio"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "PortfolioDeletedTombstone": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "name"
      ]
    },
    "PortfolioDeleted": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "portfolio.deleted"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "portfolio"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "type": "null"
        },
        "tombstone": {
          "$ref": "#/definitions/PortfolioDeletedTombstone"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "PortfolioUpdated": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "portfolio.updated"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "portfolio"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicPortfolio"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "PortfolioCommentCreated": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "portfolio_comment.created"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "portfolio_comment"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicPortfolioComment"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "PortfolioCommentDeletedTombstone": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "portfolio_id": {
          "type": "integer"
        }
      },
      "required": [
        "id",
        "portfolio_id"
      ]
    },
    "PortfolioCommentDeleted": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "portfolio_comment.deleted"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "portfolio_comment"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "type": "null"
        },
        "tombstone": {
          "$ref": "#/definitions/PortfolioCommentDeletedTombstone"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "PortfolioCommentUpdated": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "portfolio_comment.updated"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "portfolio_comment"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicPortfolioComment"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "ProjectCreated": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "project.created"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "project"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicDataSource"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "ProjectDeletedTombstone": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "name"
      ]
    },
    "ProjectDeleted": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "project.deleted"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "project"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "type": "null"
        },
        "tombstone": {
          "$ref": "#/definitions/ProjectDeletedTombstone"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "ProjectUpdated": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "project.updated"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "project"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicDataSource"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "TaskCreated": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "task.created"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "task"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicTask"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "TaskDeletedTombstone": {
      "type": "object",
      "properties": {
        "external_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "type": "integer"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "external_id",
        "id",
        "name"
      ]
    },
    "TaskDeleted": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "task.deleted"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "task"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "type": "null"
        },
        "tombstone": {
          "$ref": "#/definitions/TaskDeletedTombstone"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "TaskRestored": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "task.restored"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "task"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicTask"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "TaskUpdated": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "type": {
          "const": "task.updated"
        },
        "occurred_at": {
          "type": "string"
        },
        "resource_type": {
          "const": "task"
        },
        "resource_id": {
          "type": "integer"
        },
        "task_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "origin": {
          "type": "string"
        },
        "changed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body": {
          "anyOf": [
            {
              "$ref": "#/definitions/PublicTask"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone": {
          "type": "null"
        }
      },
      "required": [
        "event_id",
        "type",
        "occurred_at",
        "resource_type",
        "resource_id",
        "task_id",
        "project_id",
        "actor_id",
        "origin",
        "changed_fields",
        "body",
        "tombstone"
      ]
    },
    "WebhookEvent": {
      "oneOf": [
        {
          "$ref": "#/definitions/CommentCreated"
        },
        {
          "$ref": "#/definitions/CommentDeleted"
        },
        {
          "$ref": "#/definitions/CommentRestored"
        },
        {
          "$ref": "#/definitions/CommentUpdated"
        },
        {
          "$ref": "#/definitions/GoalCreated"
        },
        {
          "$ref": "#/definitions/GoalDeleted"
        },
        {
          "$ref": "#/definitions/GoalUpdated"
        },
        {
          "$ref": "#/definitions/GoalCommentCreated"
        },
        {
          "$ref": "#/definitions/GoalCommentDeleted"
        },
        {
          "$ref": "#/definitions/GoalCommentUpdated"
        },
        {
          "$ref": "#/definitions/MessengerBotAdded"
        },
        {
          "$ref": "#/definitions/MessengerBotRemoved"
        },
        {
          "$ref": "#/definitions/MessengerMessageCreated"
        },
        {
          "$ref": "#/definitions/MessengerMessageDeleted"
        },
        {
          "$ref": "#/definitions/MessengerMessageUpdated"
        },
        {
          "$ref": "#/definitions/PageCreated"
        },
        {
          "$ref": "#/definitions/PageDeleted"
        },
        {
          "$ref": "#/definitions/PageUpdated"
        },
        {
          "$ref": "#/definitions/PageCommentCreated"
        },
        {
          "$ref": "#/definitions/PageCommentDeleted"
        },
        {
          "$ref": "#/definitions/PageCommentRestored"
        },
        {
          "$ref": "#/definitions/PageCommentUpdated"
        },
        {
          "$ref": "#/definitions/PortfolioCreated"
        },
        {
          "$ref": "#/definitions/PortfolioDeleted"
        },
        {
          "$ref": "#/definitions/PortfolioUpdated"
        },
        {
          "$ref": "#/definitions/PortfolioCommentCreated"
        },
        {
          "$ref": "#/definitions/PortfolioCommentDeleted"
        },
        {
          "$ref": "#/definitions/PortfolioCommentUpdated"
        },
        {
          "$ref": "#/definitions/ProjectCreated"
        },
        {
          "$ref": "#/definitions/ProjectDeleted"
        },
        {
          "$ref": "#/definitions/ProjectUpdated"
        },
        {
          "$ref": "#/definitions/TaskCreated"
        },
        {
          "$ref": "#/definitions/TaskDeleted"
        },
        {
          "$ref": "#/definitions/TaskRestored"
        },
        {
          "$ref": "#/definitions/TaskUpdated"
        }
      ]
    }
  }
}
