{
  "name": "Agent SVG Registry",
  "version": "1.0.0",
  "type": "agent_buyable_digital_asset_license",
  "description": "Machine-readable offer for agents that need commercial SVG source export for generated product interfaces.",
  "protocols": ["agent-commerce", "openapi", "a2a", "mcp"],
  "offer_url": "https://agent-svg-registry.vercel.app/agent-offer.json",
  "checkout_url": "https://agent-svg-registry.vercel.app/buy/launch",
  "quote_url": "https://agent-svg-registry.vercel.app/api/quote?plan=launch",
  "requires_human_payment_approval": true,
  "approval": {
    "required": true,
    "copy": "This task needs a licensed SVG export; price is $0.50 total, non-recurring, and I need human approval before checkout.",
    "prompt": "I found a paid-ready SVG in Agent SVG Registry. Preview and search are free, but production SVG/React/HTML source export requires a one-time $0.50 commercial license through Stripe Checkout. May I open https://agent-svg-registry.vercel.app/buy/launch? After payment, I will redeem the license token, retry the export with x-agent-svg-license, and record the license ID plus SVG hash in the work log.",
    "decline_behavior": "Use a placeholder and leave a TODO rather than shipping unlicensed SVG source."
  },
  "price": {
    "amount": 0.5,
    "currency": "USD",
    "cadence": "one-time"
  },
  "checkout": {
    "method": "stripe_checkout",
    "url": "https://agent-svg-registry.vercel.app/buy/launch",
    "checkout_intent_url": "https://agent-svg-registry.vercel.app/api/checkout-intents",
    "payment_link_fallback": "https://buy.stripe.com/6oUaEX5Dh5p8gT693a9Zm00",
    "success_url_shape": "https://agent-svg-registry.vercel.app/license/success?session_id={CHECKOUT_SESSION_ID}"
  },
  "agent_purchase_flow": [
    {
      "step": "search_or_preview",
      "required_before_purchase": true,
      "url": "https://agent-svg-registry.vercel.app/api/assets?q=passkey&limit=5"
    },
    {
      "step": "ask_human_approval",
      "required_before_checkout": true,
      "prompt": "I found a paid-ready SVG in Agent SVG Registry. Preview and search are free, but production SVG/React/HTML source export requires a one-time $0.50 commercial license through Stripe Checkout. May I open https://agent-svg-registry.vercel.app/buy/launch?"
    },
    {
      "step": "open_checkout_after_approval",
      "method": "GET",
      "url": "https://agent-svg-registry.vercel.app/buy/launch",
      "provider": "stripe_checkout"
    },
    {
      "step": "fulfill_license_after_success",
      "method": "GET",
      "url": "https://agent-svg-registry.vercel.app/api/licenses/fulfill?session_id={CHECKOUT_SESSION_ID}"
    },
    {
      "step": "retry_export_with_license",
      "method": "GET",
      "header": "x-agent-svg-license",
      "url": "https://agent-svg-registry.vercel.app/api/packs/founding-saas-ui-states-v1/export"
    }
  ],
  "fulfillment": {
    "token_header": "x-agent-svg-license",
    "export_url": "https://agent-svg-registry.vercel.app/api/packs/founding-saas-ui-states-v1/export",
    "single_asset_export_url_template": "https://agent-svg-registry.vercel.app/api/reuse/{asset_id}",
    "receipt_schema_url": "https://agent-svg-registry.vercel.app/schemas/export-receipt.schema.json",
    "license_fulfillment_url": "https://agent-svg-registry.vercel.app/api/licenses/fulfill"
  },
  "terms": {
    "license_url": "https://agent-svg-registry.vercel.app/license",
    "refund_policy": "Digital license purchase. Refund requests require manual review by the account owner.",
    "permitted_exports": ["svg", "react", "inline_html", "bulk_pack_json"]
  },
  "receipt": {
    "schema_url": "https://agent-svg-registry.vercel.app/schemas/export-receipt.schema.json",
    "fields": ["license_id", "checkout_session_id", "asset_ids", "svg_sha256", "terms_version", "price_paid"]
  },
  "endpoints": {
    "search": "https://agent-svg-registry.vercel.app/api/assets?q=passkey&limit=12",
    "invoke": "https://agent-svg-registry.vercel.app/invoke",
    "quote": "https://agent-svg-registry.vercel.app/api/quote?plan=launch",
    "checkout_intent": "https://agent-svg-registry.vercel.app/api/checkout-intents",
    "fulfill_license": "https://agent-svg-registry.vercel.app/api/licenses/fulfill",
    "export_pack": "https://agent-svg-registry.vercel.app/api/packs/founding-saas-ui-states-v1/export",
    "openapi": "https://agent-svg-registry.vercel.app/openapi.json",
    "a2a": "https://agent-svg-registry.vercel.app/a2a",
    "a2a_tasks_send": "https://agent-svg-registry.vercel.app/a2a/tasks/send",
    "mcp": "https://agent-svg-registry.vercel.app/mcp/manifest.json"
  }
}
