{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/feedback1-ai/json-schema/feedback1-ai-public-feedback-response-schema.json",
  "title": "PublicFeedbackResponse",
  "description": "Feedback response for Public API",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/feedback1-ai-openapi.json#/components/schemas/PublicFeedbackResponse",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "pub_id": {
      "type": "integer",
      "title": "Pub Id"
    },
    "content": {
      "type": "string",
      "title": "Content"
    },
    "type": {
      "type": "string",
      "title": "Type"
    },
    "state": {
      "anyOf": [
        {
          "$ref": "#/$defs/FeedbackStateInfo"
        },
        {
          "type": "null"
        }
      ]
    },
    "source_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Url"
    },
    "sent_via": {
      "type": "string",
      "title": "Sent Via"
    },
    "score": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Score"
    },
    "score_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Score Type"
    },
    "contact": {
      "anyOf": [
        {
          "$ref": "#/$defs/FeedbackContactInfo"
        },
        {
          "type": "null"
        }
      ]
    },
    "account": {
      "anyOf": [
        {
          "$ref": "#/$defs/FeedbackAccountInfo"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    },
    "sentiment": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sentiment"
    },
    "sentiment_source": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sentiment Source"
    },
    "sentiment_confidence": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sentiment Confidence"
    },
    "sentiment_reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sentiment Reason"
    },
    "sentiment_analyzed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sentiment Analyzed At"
    },
    "sentiment_analysis_status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sentiment Analysis Status"
    }
  },
  "type": "object",
  "required": [
    "id",
    "pub_id",
    "content",
    "type",
    "sent_via",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "FeedbackAccountInfo": {
      "properties": {
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Name"
        }
      },
      "type": "object",
      "title": "FeedbackAccountInfo",
      "description": "Account info in feedback response"
    },
    "FeedbackContactInfo": {
      "properties": {
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        },
        "email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Email"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Name"
        }
      },
      "type": "object",
      "title": "FeedbackContactInfo",
      "description": "Contact info in feedback response"
    },
    "FeedbackStateInfo": {
      "properties": {
        "id": {
          "type": "integer",
          "title": "Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Color"
        }
      },
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "title": "FeedbackStateInfo",
      "description": "State info in feedback response"
    }
  }
}