{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fluree/json-schema/fluree-post-pack-ledger-request-schema.json",
  "title": "PostPackLedgerRequest",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/fluree-openapi-generated.yml#/components/schemas/PostPackLedgerRequest",
  "type": "object",
  "properties": {
    "protocol": {
      "type": "string",
      "description": "Must be \"fluree-pack-v1\""
    },
    "want": {
      "type": "array",
      "description": "CIDs the client wants (typically the remote head)."
    },
    "have": {
      "type": "array",
      "description": "CIDs the client already has."
    },
    "include_indexes": {
      "type": "boolean",
      "description": "Whether to include index artifacts."
    },
    "include_txns": {
      "type": "boolean",
      "description": "Whether to include original transaction blobs."
    },
    "want_index_root_id": {
      "type": "string",
      "description": "Index root CID the client wants (required if include_indexes=true)."
    },
    "have_index_root_id": {
      "type": "string",
      "description": "Index root CID the client already has."
    }
  },
  "required": [
    "protocol",
    "want",
    "include_indexes",
    "include_txns"
  ]
}