{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "schema_version": {
      "type": "number",
      "const": 1
    },
    "workspace_id": {
      "type": "string",
      "description": "Workspace that owns this record."
    },
    "project_id": {
      "type": "string",
      "description": "Project that owns this record."
    },
    "coverage_scope": {
      "type": "string",
      "const": "retained_event_feed"
    },
    "from": {
      "type": "string"
    },
    "as_of": {
      "type": "string"
    },
    "through_sequence": {
      "type": "number"
    },
    "count": {
      "type": "number"
    },
    "limit": {
      "type": "number",
      "const": 500
    },
    "truncated": {
      "type": "boolean"
    },
    "complete": {
      "type": "boolean"
    },
    "retention_limited": {
      "type": "boolean"
    },
    "scan_limit": {
      "type": "number",
      "const": 10000
    },
    "scan_limited": {
      "type": "boolean"
    },
    "events": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Resource identifier returned by the operation."
          },
          "workspace_id": {
            "type": "string",
            "description": "Workspace that owns this record."
          },
          "project_id": {
            "type": "string",
            "description": "Project that owns this record."
          },
          "type": {
            "type": "string",
            "enum": [
              "placement_acquired",
              "placement_recovered",
              "placement_lost"
            ]
          },
          "created_at": {
            "type": "string",
            "description": "UTC timestamp when the record was created."
          }
        },
        "required": [
          "id",
          "workspace_id",
          "project_id",
          "type",
          "created_at"
        ],
        "additionalProperties": {}
      }
    }
  },
  "required": [
    "schema_version",
    "workspace_id",
    "project_id",
    "coverage_scope",
    "from",
    "as_of",
    "through_sequence",
    "count",
    "limit",
    "truncated",
    "complete",
    "retention_limited",
    "scan_limit",
    "scan_limited",
    "events"
  ],
  "additionalProperties": {}
}
