{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/veilpoint-ca/json-schema/veilpoint-ca-public-envelope-schema.json",
  "title": "PublicEnvelope",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/veilpoint-ca-openapi.json#/components/schemas/PublicEnvelope",
  "type": "object",
  "required": [
    "meta",
    "data"
  ],
  "properties": {
    "meta": {
      "type": "object",
      "required": [
        "platform",
        "canonical",
        "retrievedAt",
        "dataStatus",
        "evidence",
        "citeAs"
      ],
      "properties": {
        "platform": {
          "type": "string",
          "const": "VeilPoint Opportunity Exchange"
        },
        "canonical": {
          "type": "string",
          "format": "uri"
        },
        "retrievedAt": {
          "type": "string",
          "format": "date-time"
        },
        "dataStatus": {
          "type": "string"
        },
        "evidence": {
          "$ref": "#/$defs/EvidenceSummary"
        },
        "provenance": {
          "type": "object"
        },
        "citeAs": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object"
    }
  },
  "$defs": {
    "EvidenceSummary": {
      "type": "object",
      "required": [
        "status",
        "truthState",
        "scenarioType",
        "recordType",
        "isActionable",
        "synthetic",
        "confidence",
        "sourceKinds",
        "asOf",
        "qualification",
        "assumptions"
      ],
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "published",
            "derived",
            "mixed",
            "placeholder"
          ]
        },
        "truthState": {
          "type": "string",
          "enum": [
            "preview",
            "snapshot",
            "measured_aggregate",
            "mixed",
            "live",
            "metadata"
          ]
        },
        "scenarioType": {
          "type": "string",
          "enum": [
            "preview_scenario",
            "published_snapshot",
            "measured_aggregate",
            "mixed_evidence",
            "actionable_record",
            "observed_hiring_signal",
            "platform_metadata"
          ]
        },
        "recordType": {
          "type": "string"
        },
        "isActionable": {
          "type": "boolean"
        },
        "synthetic": {
          "type": "boolean"
        },
        "confidence": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "A",
                "B",
                "C",
                "D"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "sourceKinds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "asOf": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "qualification": {
          "type": "string"
        },
        "assumptions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    }
  }
}