{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Activity",
  "title": "Activity",
  "type": "object",
  "description": "An entry in the Helix Swarm activity stream recording an action performed by a user.",
  "properties": {
    "id": {
      "type": "integer",
      "description": "The unique activity entry identifier.",
      "example": "abc123"
    },
    "action": {
      "type": "string",
      "description": "A past-tense description of the action performed.",
      "example": "example_value"
    },
    "change": {
      "type": "integer",
      "description": "The related changelist ID, if applicable.",
      "example": 10
    },
    "date": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the activity occurred.",
      "example": "2026-01-15T10:30:00Z"
    },
    "description": {
      "type": "string",
      "description": "Contextual information about the activity.",
      "example": "A sample description."
    },
    "link": {
      "type": "string",
      "format": "uri",
      "description": "A URL linking to the activity target.",
      "example": "https://www.example.com"
    },
    "streams": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The activity streams this entry appears in.",
      "example": []
    },
    "target": {
      "type": "string",
      "description": "The object that received the action.",
      "example": "example_value"
    },
    "topic": {
      "type": "string",
      "description": "An associated comment thread topic.",
      "example": "example_value"
    },
    "type": {
      "type": "string",
      "description": "The activity type classification.",
      "example": "example_value"
    },
    "user": {
      "type": "string",
      "description": "The username of the user who performed the action.",
      "example": "example_value"
    }
  }
}