{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Audience",
  "title": "Audience",
  "type": "object",
  "description": "An audience segment for targeting",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64",
      "description": "Unique identifier for the audience"
    },
    "project_id": {
      "type": "integer",
      "format": "int64",
      "description": "The project this audience belongs to"
    },
    "name": {
      "type": "string",
      "description": "Human-readable name of the audience"
    },
    "description": {
      "type": "string",
      "description": "Description of the audience criteria"
    },
    "conditions": {
      "type": "string",
      "description": "JSON-encoded audience conditions"
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the audience was created"
    },
    "last_modified": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the audience was last modified"
    }
  }
}