{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/voltplan-app/json-schema/voltplan-app-admin-catalog-extracted-component-schema.json",
  "title": "AdminCatalogExtractedComponent",
  "description": "The LLM's JSON output, not validated server-side (fields may be missing, `null`, or additional), enriched by the server with `icon` and `affiliate_links`. Send it, optionally edited, to `save-component`.",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/voltplan-app-openapi.json#/components/schemas/AdminCatalogExtractedComponent",
  "type": "object",
  "required": [
    "affiliate_links"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "description": "Expected one of battery, charger, inverter, transformer, power, load, fuse, shunt, switch, disconnect, tool; not enforced."
    },
    "brand": {
      "type": [
        "string",
        "null"
      ]
    },
    "voltage_in": {
      "type": [
        "number",
        "null"
      ]
    },
    "voltage_in_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "`ac` or `dc`."
    },
    "voltage_out": {
      "type": [
        "number",
        "null"
      ]
    },
    "voltage_out_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "`ac` or `dc`."
    },
    "watt": {
      "type": [
        "number",
        "null"
      ]
    },
    "estd_price_euro": {
      "type": [
        "number",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "image": {
      "type": [
        "string",
        "null"
      ]
    },
    "icon": {
      "type": [
        "string",
        "null"
      ],
      "description": "`data:image/png;base64,…` after background removal, else an http(s) image URL, else a generic `symbols/*.svg` path for battery, charger, inverter, transformer, power and load; absent or null otherwise."
    },
    "duty_cycle": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "maximum": 100
    },
    "default_utilization_factor": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "maximum": 100
    },
    "usage_hours_per_day": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "maximum": 24
    },
    "amperage": {
      "type": [
        "number",
        "null"
      ]
    },
    "cutoff_voltage": {
      "type": [
        "number",
        "null"
      ]
    },
    "fuse_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "wire_gauge": {
      "type": [
        "string",
        "null"
      ]
    },
    "affiliate_links": {
      "type": "array",
      "minItems": 1,
      "maxItems": 1,
      "items": {
        "$ref": "#/$defs/AdminCatalogExtractedAffiliateLink"
      }
    }
  },
  "$defs": {
    "AdminCatalogExtractedAffiliateLink": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "url",
        "country",
        "isExact",
        "title"
      ],
      "properties": {
        "url": {
          "type": "string",
          "description": "amazon.de product URL with the affiliate `tag`, or an amazon.de search-results URL as fallback."
        },
        "country": {
          "const": "universal"
        },
        "isExact": {
          "type": "boolean"
        },
        "title": {
          "type": "string",
          "description": "`Search results page` for the fallback link."
        }
      }
    }
  }
}