{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://weverlabs.com/schemas/developer-fee-path.schema.json",
  "title": "Developer Fee Path",
  "type": "object",
  "required": [
    "schema_version",
    "mode"
  ],
  "properties": {
    "schema_version": {
      "type": "string"
    },
    "mode": {
      "type": "string",
      "enum": [
        "read_developer_fee_path",
        "create_developer_account",
        "quote_developer_usage",
        "record_developer_fee_event",
        "read_developer_fee_events"
      ]
    },
    "developer_account_id": {
      "type": "string"
    },
    "developer_usage_id": {
      "type": "string"
    },
    "developer_name": {
      "type": "string"
    },
    "developer_surface": {
      "type": "string",
      "enum": [
        "mcp_server",
        "agent_builder",
        "api_tool",
        "data_tool",
        "payment_enabled_service"
      ]
    },
    "usage_route": {
      "type": "string"
    },
    "usage_quantity": {
      "type": "integer",
      "minimum": 1
    },
    "unit_fee_units": {
      "type": "number",
      "minimum": 0
    },
    "fee_units": {
      "type": "number",
      "minimum": 0
    },
    "currency": {
      "type": "string"
    },
    "fee_quote_id": {
      "type": "string"
    },
    "fee_event_id": {
      "type": "string"
    },
    "receipt_id": {
      "type": "string"
    },
    "wallet_id": {
      "type": "string"
    },
    "payment_intent_id": {
      "type": "string"
    },
    "wallet_bound_run_id": {
      "type": "string"
    },
    "fee_bound_run_id": {
      "type": "string"
    },
    "commercial_state": {
      "type": "string"
    }
  },
  "additionalProperties": true
}