| { | |
| "$schema": "https://json-schema.org/draft/2020-12/schema", | |
| "$id": "https://abteex.com/schemas/sovereigncode/data-capsule.schema.json", | |
| "title": "AbteeX SovereignCode Data Capsule", | |
| "type": "object", | |
| "required": ["capsule_id", "subject_id", "jurisdiction", "sensitivity"], | |
| "additionalProperties": true, | |
| "properties": { | |
| "capsule_id": { | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "subject_id": { | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "jurisdiction": { | |
| "type": "string", | |
| "default": "NZ" | |
| }, | |
| "sensitivity": { | |
| "type": "string", | |
| "enum": ["public", "internal", "restricted", "personal", "health", "iwi", "taonga"] | |
| }, | |
| "allowed_purposes": { | |
| "type": "array", | |
| "items": { "type": "string" }, | |
| "default": ["inference", "coding_assistance"] | |
| }, | |
| "denied_purposes": { | |
| "type": "array", | |
| "items": { "type": "string" }, | |
| "default": [] | |
| }, | |
| "resident_regions": { | |
| "type": "array", | |
| "items": { "type": "string" }, | |
| "default": ["NZ"] | |
| }, | |
| "data_classes": { | |
| "type": "array", | |
| "items": { "type": "string" }, | |
| "default": ["source_code"] | |
| }, | |
| "retention_days": { | |
| "type": "integer", | |
| "minimum": 0, | |
| "default": 30 | |
| }, | |
| "export_allowed": { | |
| "type": "boolean", | |
| "default": false | |
| }, | |
| "training_allowed": { | |
| "type": "boolean", | |
| "default": false | |
| }, | |
| "personal_detail_level": { | |
| "type": "string", | |
| "enum": ["none", "anonymous", "pseudonymous", "identifiable", "sensitive_identifiable"], | |
| "default": "none" | |
| }, | |
| "consent_scopes": { | |
| "type": "array", | |
| "items": { "type": "string" }, | |
| "default": [] | |
| }, | |
| "data_subject_rights": { | |
| "type": "array", | |
| "items": { "type": "string" }, | |
| "default": ["access", "correction", "deletion_request", "processing_objection"] | |
| }, | |
| "revoked": { | |
| "type": "boolean", | |
| "default": false | |
| }, | |
| "schema_context": { | |
| "type": "string", | |
| "default": "https://schema.org" | |
| }, | |
| "consent_record": { | |
| "type": "string" | |
| }, | |
| "metadata": { | |
| "type": "object" | |
| } | |
| } | |
| } | |