{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://s2artslab.org/schemas/content-package/v1",
  "title": "S² Content Package",
  "description": "Cross-app handoff for digital media / comm work — sources, assets, activity tags, approvals.",
  "type": "object",
  "required": ["schema", "version", "title"],
  "properties": {
    "schema": { "type": "string", "const": "https://s2artslab.org/schemas/content-package/v1" },
    "version": { "type": "integer", "minimum": 1 },
    "title": { "type": "string" },
    "summary": { "type": "string" },
    "activity_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": ["create", "produce", "organize", "practice", "evidence"]
      }
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "label": { "type": "string" },
          "url": { "type": "string", "format": "uri" },
          "retrieved_at": { "type": "string", "format": "date-time" }
        }
      }
    },
    "assets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "role": { "type": "string" },
          "path_or_url": { "type": "string" },
          "license_note": { "type": "string" }
        }
      }
    },
    "approvals": {
      "type": "object",
      "properties": {
        "editor": { "type": "string" },
        "client": { "type": "string" },
        "published_at": { "type": "string" }
      }
    },
    "rights_notes": { "type": "string" },
    "audit": {
      "type": "object",
      "properties": {
        "created_by": { "type": "string" },
        "prompt_or_preset_ids": { "type": "array", "items": { "type": "string" } }
      }
    },
    "bundle_snapshot": { "type": "object", "additionalProperties": true }
  },
  "additionalProperties": true
}
