{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/confcall-app/json-schema/confcall-app-artifact-bundle-schema.json",
  "title": "ArtifactBundle",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/confcall-app-openapi.yml#/components/schemas/ArtifactBundle",
  "type": "object",
  "properties": {
    "conferenceSessionId": {
      "type": "string"
    },
    "roomId": {
      "type": "string"
    },
    "accountId": {
      "type": [
        "string",
        "null"
      ]
    },
    "source": {
      "type": "string"
    },
    "startedAt": {
      "type": "string",
      "format": "date-time"
    },
    "endedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "turns": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ArtifactTurn"
      }
    },
    "summaryText": {
      "type": [
        "string",
        "null"
      ]
    },
    "actionItems": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ArtifactActionItem"
      }
    },
    "outcome": {
      "type": [
        "string",
        "null"
      ]
    },
    "decisions": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "followUps": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "structuredOutput": {
      "nullable": true,
      "description": "Free-form structured output, when the session produced one"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "provenance": {
      "type": "object",
      "description": "Which parts of the bundle are AI-generated (EU AI Act Art. 50(2)); computed on read",
      "properties": {
        "aiGenerated": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "aiAssisted": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "generator": {
          "type": "string"
        },
        "notice": {
          "type": "string",
          "description": "Ready-to-embed attribution for exported text; empty when nothing is AI-generated"
        }
      }
    }
  },
  "$defs": {
    "ArtifactActionItem": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string"
        },
        "assignee": {
          "type": [
            "string",
            "null"
          ]
        },
        "dueDate": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    "ArtifactTurn": {
      "type": "object",
      "properties": {
        "role": {
          "type": "string",
          "enum": [
            "user",
            "agent"
          ]
        },
        "content": {
          "type": "string"
        },
        "language": {
          "type": [
            "string",
            "null"
          ]
        },
        "intent": {
          "type": [
            "string",
            "null"
          ]
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}