{
  "$id": "urn:mars:schema:v1:sync-request",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Pull-based sync request sent between federation peers.\nPer MARS Specification Section 11.3.",
  "properties": {
    "entryTypes": {
      "description": "Filter by entry types (empty = all).",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "fromSequence": {
      "description": "Start from this sequence number (exclusive).",
      "format": "uint64",
      "minimum": 0,
      "type": "integer"
    },
    "maxEntries": {
      "description": "Maximum entries to return in this batch.",
      "format": "uint32",
      "minimum": 1,
      "type": "integer"
    },
    "namespaces": {
      "description": "Filter by namespaces (empty = all).",
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "fromSequence",
    "maxEntries"
  ],
  "title": "SyncRequest",
  "type": "object"
}
