{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sharpapi/json-schema/sharpapi-paginated-envelope-schema.json",
  "title": "PaginatedEnvelope",
  "description": "Standard shape for paginated list responses. No `success` flag — HTTP status codes indicate success/failure.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sharpapi-futures-api-openapi.yml#/components/schemas/PaginatedEnvelope",
  "type": "object",
  "required": [
    "data",
    "pagination",
    "updated_at"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {}
    },
    "pagination": {
      "$ref": "#/$defs/Pagination"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Server emit time (RFC 3339)."
    }
  },
  "$defs": {
    "Pagination": {
      "type": "object",
      "required": [
        "limit",
        "offset",
        "has_more",
        "next_offset"
      ],
      "properties": {
        "limit": {
          "type": "integer"
        },
        "offset": {
          "type": "integer"
        },
        "count": {
          "type": "integer",
          "description": "Length of the current `data` page."
        },
        "total": {
          "type": "integer",
          "description": "Size of the full matching set. Emitted where the endpoint computes it (`/events` does); `/odds` omits it."
        },
        "has_more": {
          "type": "boolean"
        },
        "next_offset": {
          "type": [
            "integer",
            "null"
          ]
        }
      }
    }
  }
}