{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/alchemy/refs/heads/main/json-schema/alchemy-gas-manager-api-policy-schema.json",
  "title": "Gas Manager Policy",
  "description": "A gas sponsorship policy defining rules for covering user operation gas fees.",
  "type": "object",
  "properties": {
    "policyId": {
      "type": "string",
      "description": "Unique identifier for the policy.",
      "example": "pol-abc123"
    },
    "name": {
      "type": "string",
      "description": "Display name for the policy.",
      "example": "Default Sponsorship Policy"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "inactive",
        "expired"
      ],
      "description": "Current status of the policy.",
      "example": "active"
    },
    "network": {
      "type": "string",
      "description": "Blockchain network the policy applies to.",
      "example": "eth-mainnet"
    },
    "maxSpendPerUser": {
      "type": "number",
      "format": "double",
      "description": "Maximum ETH spend per user address covered by this policy.",
      "example": 1.0
    },
    "maxSpendTotal": {
      "type": "number",
      "format": "double",
      "description": "Maximum total ETH spend across all users for this policy.",
      "example": 1000.0
    }
  }
}