{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zeblink-io/json-schema/zeblink-io-qr-export-response-schema.json",
  "title": "QrExportResponse",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/zeblink-io-v1-openapi.json#/components/schemas/QrExportResponse",
  "type": "object",
  "properties": {
    "export": {
      "type": "object",
      "properties": {
        "imageUrls": {
          "allOf": [
            {
              "$ref": "#/$defs/QrImageUrls"
            },
            {
              "description": "Stable public image URLs for the design — key-free, CDN-served, safe to embed in an <img> tag or hand to third parties. Saving the design rewrites the same files in place, so each URL always serves the latest saved look (CDN propagation: usually under a minute, up to a few minutes). For a copy frozen in time, download the file instead."
            }
          ]
        },
        "variantId": {
          "type": "string",
          "pattern": "^qrv_[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$",
          "description": "The design behind the URLs. Always present: a link with no live variant mints its Default before the design resolves, so every export carries identity."
        },
        "variantName": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "imageUrls",
        "variantId",
        "variantName"
      ]
    }
  },
  "required": [
    "export"
  ],
  "$defs": {
    "QrImageUrls": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "png": {
          "type": "string",
          "format": "uri"
        },
        "svg": {
          "type": "string",
          "format": "uri"
        }
      },
      "required": [
        "png",
        "svg"
      ],
      "description": "The design's stable public image URLs; null until first materialization (e.g. no file storage configured). POST the link's `/qr/export` endpoint to materialize on demand."
    }
  }
}