{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/worldcastr-com/json-schema/worldcastr-com-data-asset-record-schema.json",
  "title": "DataAssetRecord",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/worldcastr-com-openapi.json#/components/schemas/DataAssetRecord",
  "type": "object",
  "required": [
    "asset_id",
    "title",
    "description",
    "data_family",
    "raw_source_or_access",
    "support_level",
    "targets_or_fields",
    "pipeline_state",
    "public_status",
    "sensitivity",
    "visibility",
    "license_status",
    "recommended_public_surface",
    "current_surfaces",
    "canonical_profile",
    "delivery_targets",
    "related_artifact_ids",
    "related_provenance_ids",
    "gap_or_blocker",
    "next_step",
    "provenance",
    "access",
    "_links"
  ],
  "properties": {
    "asset_id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "data_family": {
      "type": "string"
    },
    "raw_source_or_access": {
      "type": "string"
    },
    "example_internal_artifacts": {
      "type": "string"
    },
    "support_level": {
      "type": "string"
    },
    "targets_or_fields": {
      "type": "string"
    },
    "pipeline_state": {
      "type": "string"
    },
    "public_status": {
      "type": "string"
    },
    "sensitivity": {
      "type": "string"
    },
    "visibility": {
      "type": "string",
      "enum": [
        "public",
        "metadata_only",
        "restricted",
        "unavailable"
      ]
    },
    "license_status": {
      "type": "string"
    },
    "recommended_public_surface": {
      "type": "string"
    },
    "public_data_inventory_asset": {
      "type": [
        "string",
        "null"
      ]
    },
    "payload_availability": {
      "$ref": "#/$defs/DataPayloadAvailability"
    },
    "current_surfaces": {
      "type": "object",
      "required": [
        "rest",
        "mcp",
        "openapi",
        "docs",
        "sdk"
      ],
      "properties": {
        "rest": {
          "type": [
            "string",
            "null"
          ]
        },
        "mcp": {
          "type": [
            "string",
            "null"
          ]
        },
        "openapi": {
          "type": "string"
        },
        "docs": {
          "type": "string"
        },
        "sdk": {
          "type": "string"
        }
      }
    },
    "canonical_profile": {
      "type": "object",
      "required": [
        "source_contract",
        "canonical_contracts",
        "raw_retention",
        "normalization",
        "engineering",
        "synthesis_policy"
      ],
      "properties": {
        "source_contract": {
          "type": "string"
        },
        "canonical_contracts": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "raw_retention": {
          "type": "string"
        },
        "normalization": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "engineering": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "synthesis_policy": {
          "type": "string"
        },
        "delivery": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "delivery_targets": {
      "type": "object",
      "required": [
        "rest",
        "mcp",
        "openapi",
        "docs",
        "sdk",
        "export_formats"
      ],
      "properties": {
        "rest": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "mcp": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "openapi": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "docs": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "sdk": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "export_formats": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "inventory_asset": {
      "anyOf": [
        {
          "$ref": "#/$defs/DataInventoryAssetSummary"
        },
        {
          "type": "null"
        }
      ]
    },
    "related_artifact_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "related_provenance_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "gap_or_blocker": {
      "type": "string"
    },
    "next_step": {
      "type": "string"
    },
    "provenance": {
      "$ref": "#/$defs/DataProvenanceSummary"
    },
    "access": {
      "$ref": "#/$defs/DataAccessSummary"
    },
    "_links": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "DataAccessSummary": {
      "type": "object",
      "required": [
        "visibility",
        "support_level",
        "sensitivity",
        "training_eligibility",
        "license_status"
      ],
      "properties": {
        "visibility": {
          "type": "string",
          "enum": [
            "public",
            "metadata_only",
            "restricted",
            "unavailable"
          ]
        },
        "support_level": {
          "type": "string"
        },
        "sensitivity": {
          "type": "string"
        },
        "training_eligibility": {
          "type": "string",
          "enum": [
            "benchmark_only",
            "consumer_feed",
            "training_candidate",
            "holdback"
          ]
        },
        "license_status": {
          "type": "string"
        }
      }
    },
    "DataInventoryAssetSummary": {
      "type": "object",
      "required": [
        "asset_id",
        "title",
        "phase",
        "public_readiness",
        "benchmark_role",
        "training_eligibility"
      ],
      "properties": {
        "asset_id": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "phase": {
          "type": "string"
        },
        "public_readiness": {
          "type": "string"
        },
        "benchmark_role": {
          "type": "string"
        },
        "model_version": {
          "type": [
            "string",
            "null"
          ]
        },
        "training_eligibility": {
          "type": "string",
          "enum": [
            "benchmark_only",
            "consumer_feed",
            "training_candidate",
            "holdback"
          ]
        },
        "example_path": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "DataPayloadAvailability": {
      "type": "object",
      "required": [
        "level",
        "metadata_available",
        "sample_rows",
        "queryable_rows",
        "bulk_download",
        "runtime_verification",
        "reason"
      ],
      "properties": {
        "level": {
          "type": "string",
          "enum": [
            "metadata_only",
            "sample_rows",
            "queryable_rows",
            "bulk_download",
            "restricted",
            "unavailable"
          ]
        },
        "metadata_available": {
          "type": "boolean"
        },
        "sample_rows": {
          "type": "boolean"
        },
        "queryable_rows": {
          "type": "boolean"
        },
        "bulk_download": {
          "type": "boolean"
        },
        "runtime_verification": {
          "type": "string",
          "enum": [
            "contract_declared"
          ]
        },
        "reason": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "DataProvenanceSummary": {
      "type": "object",
      "required": [
        "provenance_id",
        "data_snapshot_id",
        "license_note"
      ],
      "properties": {
        "provenance_id": {
          "type": "string"
        },
        "data_snapshot_id": {
          "type": "string"
        },
        "publication_date": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "retrieval_date": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "model_version": {
          "type": [
            "string",
            "null"
          ]
        },
        "license_note": {
          "type": "string"
        }
      }
    }
  }
}