{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://weverlabs.com/schemas/trust-listing-path.schema.json",
  "title": "Trust Listing Path",
  "type": "object",
  "required": [
    "schema_version",
    "mode"
  ],
  "properties": {
    "schema_version": {
      "type": "string"
    },
    "mode": {
      "type": "string",
      "enum": [
        "read_trust_listing_path",
        "create_trust_listing",
        "quote_trust_badge_fee",
        "create_trust_badge_plan",
        "record_trust_badge_fee_event",
        "read_trust_listings"
      ]
    },
    "trust_listing_id": {
      "type": "string"
    },
    "trust_listing_fee_event_id": {
      "type": "string"
    },
    "listing_name": {
      "type": "string"
    },
    "listing_type": {
      "type": "string",
      "enum": [
        "agent_service",
        "mcp_server",
        "api_tool",
        "data_tool",
        "rail_provider",
        "payment_enabled_service"
      ]
    },
    "listing_url": {
      "type": "string"
    },
    "listing_route": {
      "type": "string"
    },
    "service_reference": {
      "type": "string"
    },
    "commercial_plan_id": {
      "type": "string"
    },
    "fee_quote_id": {
      "type": "string"
    },
    "fee_event_id": {
      "type": "string"
    },
    "fee_type": {
      "type": "string"
    },
    "monthly_units": {
      "type": "number",
      "minimum": 0
    },
    "fee_units": {
      "type": "number",
      "minimum": 0
    },
    "currency": {
      "type": "string"
    },
    "trust_badge_state": {
      "type": "string"
    },
    "commercial_state": {
      "type": "string"
    },
    "listing_metadata": {
      "type": "object"
    }
  },
  "additionalProperties": true
}