{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/annsa-ai/json-schema/annsa-ai-feedback-item-schema.json",
  "title": "FeedbackItem",
  "description": "One piece of customer feedback.",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/annsa-ai-openapi.json#/components/schemas/FeedbackItem",
  "type": "object",
  "required": [
    "text"
  ],
  "properties": {
    "text": {
      "type": "string",
      "minLength": 1,
      "description": "The feedback content. The only required field."
    },
    "customer_name": {
      "type": "string",
      "description": "Appears in Customer Voice quotes."
    },
    "customer_email": {
      "type": "string",
      "format": "email",
      "description": "Enables close-the-loop notifications when the request ships."
    },
    "revenue_band": {
      "type": [
        "number",
        "string"
      ],
      "description": "What this customer pays you, e.g. 199. An amount is kept as an amount and never collapsed into a band. Legacy band strings (enterprise / paid / free) are still accepted."
    },
    "sku": {
      "type": "string",
      "description": "Product tier or plan identifier."
    },
    "external_id": {
      "type": "string",
      "description": "Your own identifier. A second submission carrying the same external_id is skipped, whatever the text says."
    },
    "source": {
      "type": "string",
      "description": "Where this came from. Defaults to `api`. Setting it is what makes Activity Log filtering useful.",
      "default": "api"
    },
    "project_id": {
      "type": "string",
      "description": "Home this feedback to a specific project."
    }
  },
  "additionalProperties": true
}