{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xpay-sh/json-schema/xpay-sh-rda-summary-schema.json",
  "title": "RdaSummary",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xpay-sh-openapi.json#/components/schemas/RdaSummary",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "prompt",
        "agent",
        "tool"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "published",
        "archived"
      ]
    },
    "verified": {
      "type": "boolean"
    },
    "featured": {
      "type": "boolean"
    },
    "trending": {
      "type": "boolean"
    },
    "coverImage": {
      "type": "string"
    },
    "pricing": {
      "$ref": "#/$defs/Pricing"
    },
    "stats": {
      "$ref": "#/$defs/Stats"
    },
    "ownerId": {
      "type": "string"
    },
    "ownerName": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "Pricing": {
      "type": "object",
      "properties": {
        "model": {
          "type": "string",
          "enum": [
            "per-run",
            "per-token"
          ]
        },
        "amount": {
          "type": "number"
        },
        "currency": {
          "type": "string",
          "enum": [
            "USDC"
          ]
        },
        "estimatedCost": {
          "type": "string"
        }
      }
    },
    "Stats": {
      "type": "object",
      "properties": {
        "totalRuns": {
          "type": "integer"
        },
        "totalRevenue": {
          "type": "number"
        },
        "averageRating": {
          "type": "number"
        },
        "totalRatings": {
          "type": "integer"
        },
        "successRate": {
          "type": "number"
        },
        "averageLatency": {
          "type": "integer",
          "description": "Average execution time in ms"
        }
      }
    }
  }
}