{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://heartcortex.ai/schemas/1.0/artifact.schema.json",
  "title": "artifact",
  "type": "object",
  "required": [
    "id",
    "kind",
    "privacy"
  ],
  "properties": {
    "id": {
      "$ref": "common.schema.json#/$defs/uuid",
      "x-heart-privacy": "public"
    },
    "kind": {
      "enum": [
        "firmware",
        "log-bundle",
        "recording",
        "export",
        "model",
        "config",
        "report",
        "other"
      ],
      "x-heart-privacy": "public"
    },
    "privacy": {
      "$ref": "common.schema.json#/$defs/messageLevel",
      "x-heart-privacy": "public"
    },
    "createdAt": {
      "$ref": "common.schema.json#/$defs/timestamp",
      "x-heart-privacy": "public"
    },
    "expiresAt": {
      "$ref": "common.schema.json#/$defs/timestamp",
      "x-heart-privacy": "public"
    },
    "mediaType": {
      "type": "string",
      "x-heart-privacy": "internal"
    },
    "sizeBytes": {
      "type": "integer",
      "minimum": 0,
      "x-heart-privacy": "internal"
    },
    "sha256": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "x-heart-privacy": "internal"
    },
    "ext": {
      "$ref": "common.schema.json#/$defs/ext",
      "x-heart-privacy": "private"
    }
  }
}
