{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://vibe-manufacturing.com/schema/manufacturer-v1.json",
  "title": "Manufacturer Profile v1",
  "description": "Publish this document at https://your-domain/.well-known/manufacturer.json so buyers' AI agents can read what your factory makes. Free, no account needed. Check it at https://vibe-manufacturing.com/suppliers/agent-ready",
  "type": "object",
  "required": [
    "name",
    "processes"
  ],
  "properties": {
    "$schema": {
      "type": "string"
    },
    "version": {
      "type": "integer",
      "const": 1
    },
    "name": {
      "type": "string",
      "maxLength": 160
    },
    "description": {
      "type": "string",
      "maxLength": 500,
      "description": "One or two plain sentences: what you make and for whom."
    },
    "type": {
      "type": "string",
      "enum": [
        "contract",
        "own-product",
        "reseller"
      ],
      "default": "contract",
      "description": "contract = you make parts for other businesses; own-product = you make your own products; reseller = you distribute others' goods."
    },
    "location": {
      "type": "object",
      "properties": {
        "country": {
          "type": "string",
          "pattern": "^[A-Z]{2}$",
          "description": "ISO 3166-1 alpha-2, e.g. MX, US"
        },
        "city": {
          "type": "string",
          "maxLength": 80
        },
        "address": {
          "type": "string",
          "maxLength": 200
        }
      }
    },
    "processes": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "laser-cutting",
          "cnc-machining",
          "sheet-metal",
          "3d-printing",
          "injection-molding",
          "pcb-assembly",
          "die-casting",
          "welding",
          "waterjet-cutting",
          "metal-stamping",
          "forging",
          "heat-treatment",
          "grinding-polishing",
          "casting",
          "wire-forming",
          "steel-construction",
          "surface-finishing"
        ]
      },
      "uniqueItems": true,
      "minItems": 1,
      "description": "What you offer as a service or make: laser-cutting (Laser cutting), cnc-machining (CNC machining), sheet-metal (Sheet metal fabrication), 3d-printing (3D printing), injection-molding (Injection molding), pcb-assembly (PCB and electronics assembly), die-casting (Die casting), welding (Welding and fabrication), waterjet-cutting (Waterjet cutting), metal-stamping (Metal stamping), forging (Forging), heat-treatment (Heat treatment), grinding-polishing (Grinding and polishing), casting (Casting and foundry), wire-forming (Wire forming and springs), steel-construction (Steel construction and metal fabrication), surface-finishing (Surface finishing)"
    },
    "materials": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "aluminium",
          "steel",
          "stainless-steel",
          "titanium",
          "brass",
          "copper",
          "plastic"
        ]
      },
      "uniqueItems": true
    },
    "certifications": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "iso-9001",
          "iso-14001",
          "iatf-16949",
          "iso-13485",
          "as9100",
          "en-1090",
          "iso-45001",
          "itar",
          "nadcap",
          "ul-listed",
          "rohs",
          "fda-registered",
          "cmmc"
        ]
      },
      "uniqueItems": true
    },
    "file_formats": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "step",
          "dxf",
          "dwg",
          "stl",
          "iges",
          "3mf",
          "gerber"
        ]
      },
      "uniqueItems": true
    },
    "industries": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "automotive",
          "aerospace",
          "medical",
          "energy",
          "railway",
          "marine",
          "electronics",
          "food",
          "construction",
          "packaging",
          "defense",
          "consumer"
        ]
      },
      "uniqueItems": true
    },
    "machines": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 60
      },
      "maxItems": 30,
      "description": "Machine types or models, e.g. \"5-axis Haas UMC-750\"."
    },
    "capabilities": {
      "type": "object",
      "properties": {
        "tolerance_min_mm": {
          "type": "number",
          "exclusiveMinimum": 0,
          "description": "Tightest tolerance you hold, in millimetres."
        }
      }
    },
    "order": {
      "type": "object",
      "properties": {
        "prototype": {
          "type": "boolean"
        },
        "small_batch": {
          "type": "boolean"
        },
        "series": {
          "type": "boolean"
        },
        "express": {
          "type": "boolean"
        },
        "instant_quote": {
          "type": "boolean"
        },
        "min_quantity": {
          "type": "integer",
          "minimum": 1
        },
        "lead_time_days": {
          "type": "integer",
          "minimum": 1,
          "description": "Typical lead time in days."
        }
      }
    },
    "ships_to": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^([A-Z]{2}|WORLDWIDE)$"
      },
      "description": "Countries you ship to (ISO codes), or WORLDWIDE."
    },
    "contact": {
      "type": "object",
      "properties": {
        "email": {
          "type": "string",
          "format": "email"
        },
        "phone": {
          "type": "string"
        },
        "contact_url": {
          "type": "string",
          "format": "uri"
        },
        "quote_url": {
          "type": "string",
          "format": "uri"
        }
      },
      "description": "URLs must be https on your own domain. Everything here is public: it is what you want buyers to use."
    },
    "rfq_endpoint": {
      "type": "string",
      "format": "uri",
      "description": "Optional https URL on your domain that accepts structured quote requests (planned: webhook delivery)."
    },
    "updated": {
      "type": "string",
      "format": "date"
    }
  }
}
