{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/disclosedlabs-com/json-schema/disclosedlabs-com-vendor-schema.json",
  "title": "Vendor",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/disclosedlabs-com-openapi.json#/components/schemas/Vendor",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "slug": {
      "type": [
        "string",
        "null"
      ]
    },
    "domain": {
      "type": "string"
    },
    "website": {
      "type": "string"
    },
    "foundedYear": {
      "type": [
        "number",
        "null"
      ]
    },
    "businessEntity": {
      "type": [
        "string",
        "null"
      ]
    },
    "notesPublic": {
      "type": [
        "string",
        "null"
      ]
    },
    "logoUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "country": {
      "type": [
        "string",
        "null"
      ]
    },
    "domainAgeDays": {
      "type": [
        "number",
        "null"
      ]
    },
    "social": {
      "type": "object",
      "properties": {
        "linkedin": {
          "type": [
            "string",
            "null"
          ]
        },
        "twitter": {
          "type": [
            "string",
            "null"
          ]
        },
        "facebook": {
          "type": [
            "string",
            "null"
          ]
        },
        "instagram": {
          "type": [
            "string",
            "null"
          ]
        },
        "reddit": {
          "type": [
            "string",
            "null"
          ]
        },
        "discord": {
          "type": [
            "string",
            "null"
          ]
        },
        "telegram": {
          "type": [
            "string",
            "null"
          ]
        },
        "youtube": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "linkedin",
        "twitter",
        "facebook",
        "instagram",
        "reddit",
        "discord",
        "telegram",
        "youtube"
      ],
      "additionalProperties": false
    },
    "createdAt": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    },
    "scores": {
      "type": "object",
      "properties": {
        "trustScore": {
          "type": [
            "number",
            "null"
          ]
        },
        "trustGrade": {
          "type": [
            "string",
            "null"
          ]
        },
        "graded": {
          "type": "boolean"
        },
        "provisionalGrade": {
          "type": "boolean"
        },
        "trending": {
          "type": "object",
          "properties": {
            "score": {
              "type": [
                "number",
                "null"
              ]
            },
            "grade": {
              "type": [
                "string",
                "null"
              ]
            },
            "delta": {
              "type": [
                "number",
                "null"
              ]
            },
            "direction": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "score",
            "grade",
            "delta",
            "direction"
          ],
          "additionalProperties": false
        },
        "transparencyScore": {
          "type": [
            "number",
            "null"
          ]
        },
        "corpus": {
          "type": "object",
          "properties": {
            "coaCount": {
              "type": "number"
            },
            "publicCoaCount": {
              "type": "number"
            },
            "avgPurity": {
              "type": [
                "number",
                "null"
              ]
            },
            "purityStdDev": {
              "type": [
                "number",
                "null"
              ]
            },
            "safetyPanelCoverage": {
              "type": [
                "number",
                "null"
              ]
            },
            "labCorroborationRate": {
              "type": [
                "number",
                "null"
              ]
            },
            "forgeryFlagCount": {
              "type": "number"
            }
          },
          "required": [
            "coaCount",
            "publicCoaCount",
            "avgPurity",
            "purityStdDev",
            "safetyPanelCoverage",
            "labCorroborationRate",
            "forgeryFlagCount"
          ],
          "additionalProperties": false
        },
        "components": {
          "type": "object",
          "properties": {
            "purityScore": {
              "type": [
                "number",
                "null"
              ]
            },
            "safetyScore": {
              "type": [
                "number",
                "null"
              ]
            }
          },
          "required": [
            "purityScore",
            "safetyScore"
          ],
          "additionalProperties": false
        },
        "lastComputedAt": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "trustScore",
        "trustGrade",
        "graded",
        "provisionalGrade",
        "trending",
        "transparencyScore",
        "corpus",
        "components",
        "lastComputedAt"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "id",
    "name",
    "slug",
    "domain",
    "website",
    "foundedYear",
    "businessEntity",
    "notesPublic",
    "logoUrl",
    "country",
    "domainAgeDays",
    "social",
    "createdAt",
    "updatedAt",
    "scores"
  ],
  "additionalProperties": false
}