{
  "$id": "https://yo-ai.ai/schemas/complaint.publish.input.schema.json",
  "title": "Complaint.Publish.Input",
  "description": "Profile-aware input for the Complaint.Publish capability.",
  "type": "object",
  "properties": {
    "profile": {
      "$ref": "https://yo-ai.ai/schemas/profile.schema.json"
    },
    "profilePatch": {
      "$ref": "https://yo-ai.ai/schemas/profile.patch.schema.json"
    },
    "payload": {
      "type": "object",
      "description": "Capability-specific input fields for publishing a complaint.",
      "properties": {
        "complaint_id": {
          "type": "string",
          "description": "Identifier of the complaint to be published."
        },
        "audience": {
          "type": "array",
          "description": "List of audiences or stakeholder groups.",
          "items": { "type": "string" }
        }
      },
      "required": ["complaint_id"]
    }
  },
  "required": ["payload"]
}