{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tradestarinsider-com/json-schema/tradestarinsider-com-stake-envelope-schema.json",
  "title": "StakeEnvelope",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tradestarinsider-com-openapi.json#/components/schemas/StakeEnvelope",
  "type": "object",
  "required": [
    "api_version",
    "endpoint",
    "activist_guarantee",
    "count",
    "stakes"
  ],
  "properties": {
    "api_version": {
      "type": "string"
    },
    "endpoint": {
      "type": "string"
    },
    "activist_guarantee": {
      "type": "string"
    },
    "count": {
      "type": "integer"
    },
    "total_matched": {
      "type": "integer",
      "description": "Total rows matching the filter before limit/offset (Issue 2.6). count == len(this page)."
    },
    "params": {
      "type": "object",
      "additionalProperties": true
    },
    "stakes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Stake"
      }
    }
  },
  "$defs": {
    "Stake": {
      "type": "object",
      "description": "One SEC Schedule 13D/13D-A activist stake. `filing_url` is the Rule-2 source link.",
      "required": [
        "filing_url"
      ],
      "properties": {
        "filing_url": {
          "type": "string",
          "format": "uri",
          "description": "RULE 2 source link — sec.gov 13D filing"
        }
      },
      "additionalProperties": true
    }
  }
}