{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://heartcortex.ai/schemas/1.0/export.schema.json",
  "title": "export",
  "description": "What the system holds about one person, from POST /data/export (API Standard 13.2 rule 6).",
  "type": "object",
  "required": [
    "id",
    "privacy"
  ],
  "properties": {
    "id": {
      "$ref": "common.schema.json#/$defs/uuid",
      "x-heart-privacy": "public"
    },
    "createdAt": {
      "$ref": "common.schema.json#/$defs/timestamp",
      "x-heart-privacy": "public"
    },
    "privacy": {
      "description": "The highest level the package holds: the caller's clearance, at most private.",
      "$ref": "common.schema.json#/$defs/messageLevel",
      "x-heart-privacy": "public"
    },
    "subject": {
      "type": "string",
      "x-heart-privacy": "dynamic"
    },
    "sections": {
      "description": "memory, consents, actions, feedback, receipts, events and erasures, each a list.",
      "type": "object",
      "additionalProperties": {
        "type": "array"
      },
      "x-heart-privacy": "dynamic"
    },
    "bytes": {
      "type": "integer",
      "minimum": 0,
      "x-heart-privacy": "internal"
    },
    "maxBytes": {
      "type": "integer",
      "minimum": 0,
      "x-heart-privacy": "internal"
    },
    "truncated": {
      "type": "boolean",
      "x-heart-privacy": "internal"
    },
    "artifactId": {
      "description": "With the artifacts module: the stored package, of kind export.",
      "$ref": "common.schema.json#/$defs/uuid",
      "x-heart-privacy": "internal"
    },
    "ext": {
      "$ref": "common.schema.json#/$defs/ext",
      "x-heart-privacy": "private"
    }
  }
}
