{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://bosstox.com/schemas/CustomSiliconDeal.schema.json",
  "title": "CustomSiliconDeal",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "event_date",
    "supplier",
    "source_url",
    "deal_type",
    "design_win_status",
    "interfaces",
    "milestones"
  ],
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1
    },
    "event_date": {
      "type": "string",
      "format": "date"
    },
    "supplier": {
      "type": "string",
      "minLength": 1
    },
    "source_url": {
      "type": "string",
      "format": "uri",
      "pattern": "^https://"
    },
    "deal_type": {
      "enum": [
        "Spec_Handoff",
        "Turnkey",
        "IP_License",
        "Other"
      ]
    },
    "design_win_status": {
      "enum": [
        "announced",
        "contracted",
        "taped_out",
        "qualified",
        "mass_production"
      ]
    },
    "contract_usd_m": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0
    },
    "nre_recognized_usd_m": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0
    },
    "customer_tier": {
      "type": [
        "string",
        "null"
      ]
    },
    "process_node_nm": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1
    },
    "die_area_mm2": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0
    },
    "large_die_planned": {
      "type": "boolean"
    },
    "chiplets": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "interfaces": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "enum": [
          "LPDDR6",
          "PCIe Gen5",
          "PCIe Gen6",
          "CXL",
          "UCIe",
          "Other"
        ]
      }
    },
    "foundry_slot_status": {
      "enum": [
        "not disclosed",
        "requested",
        "booked",
        "wafer_started"
      ]
    },
    "hyperscaler_direct_customer_verified": {
      "type": "boolean"
    },
    "milestones": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "tapeout_target",
        "tapeout_actual",
        "production_target",
        "production_actual"
      ],
      "properties": {
        "tapeout_target": {
          "type": [
            "string",
            "null"
          ]
        },
        "tapeout_actual": {
          "type": [
            "string",
            "null"
          ]
        },
        "production_target": {
          "type": [
            "string",
            "null"
          ]
        },
        "production_actual": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "taxonomy": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "enum": [
          "Design_Services_Spec_Handoff",
          "Interconnect_And_IP",
          "Substrates_And_Packaging",
          "Verification_And_Test"
        ]
      }
    }
  }
}
