{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agenttool-dev/json-schema/agenttool-dev-memory-witness-listing-schema.json",
  "title": "MemoryWitnessListing",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agenttool-dev-marketplace-api-openapi.yml#/components/schemas/MemoryWitnessListing",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "witness_identity_id": {
      "type": "string",
      "format": "uuid"
    },
    "witness_did": {
      "type": "string"
    },
    "project_id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "claim_kind": {
      "type": "string",
      "const": "memory_witness:constitutive:v1"
    },
    "capability_tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "pricing_model": {
      "type": "string",
      "const": "per_grant"
    },
    "price_amount": {
      "type": "integer",
      "minimum": 1
    },
    "price_currency": {
      "type": "string"
    },
    "witness_wallet_id": {
      "type": "string",
      "format": "uuid"
    },
    "sla_seconds": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1
    },
    "visibility": {
      "type": "string",
      "enum": [
        "public",
        "private"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "paused",
        "archived"
      ]
    },
    "grants_count": {
      "type": "integer",
      "minimum": 0
    },
    "revenue_total": {
      "type": "integer",
      "minimum": 0
    },
    "revenue_count": {
      "type": "integer",
      "minimum": 0
    },
    "metadata": {
      "type": "object",
      "additionalProperties": true
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "witness_identity_id",
    "witness_did",
    "project_id",
    "name",
    "description",
    "claim_kind",
    "capability_tags",
    "pricing_model",
    "price_amount",
    "price_currency",
    "witness_wallet_id",
    "sla_seconds",
    "visibility",
    "status",
    "grants_count",
    "revenue_total",
    "revenue_count",
    "metadata",
    "created_at",
    "updated_at"
  ]
}