{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cite42-dev/json-schema/cite42-dev-post-api-v1-sentiment-response-schema.json",
  "title": "PostApiV1SentimentResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/cite42-dev-openapi-generated.yml#/components/schemas/PostApiV1SentimentResponse",
  "type": "object",
  "properties": {
    "query": {
      "type": "string"
    },
    "brand": {
      "type": "string"
    },
    "perModel": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string"
          },
          "classificationStatus": {
            "type": "string"
          },
          "positive": {
            "type": "number"
          },
          "neutral": {
            "type": "number"
          },
          "negative": {
            "type": "number"
          },
          "phrases": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "aggregate": {
      "type": "object",
      "properties": {
        "positive": {
          "type": "number"
        },
        "neutral": {
          "type": "number"
        },
        "negative": {
          "type": "number"
        },
        "phrases": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "measurement": {
      "type": "object",
      "properties": {
        "methodologyVersion": {
          "type": "string"
        },
        "surfaces": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "model": {
                "type": "string"
              },
              "provider": {
                "type": "string"
              },
              "access": {
                "type": "string"
              },
              "webSearch": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "metrics": {
      "type": "object",
      "properties": {
        "definitionVersion": {
          "type": "string"
        },
        "checkedAnswers": {
          "type": "integer"
        },
        "requestedAnswers": {
          "type": "integer"
        },
        "excludedAnswers": {
          "type": "integer"
        },
        "note": {
          "type": "string"
        },
        "sentiment": {
          "type": "object",
          "properties": {
            "positivePercentage": {
              "type": "integer"
            },
            "neutralPercentage": {
              "type": "integer"
            },
            "negativePercentage": {
              "type": "integer"
            },
            "scoredAnswers": {
              "type": "integer"
            },
            "label": {
              "type": "string"
            }
          }
        }
      }
    },
    "requestId": {
      "type": "string"
    },
    "billing": {
      "type": "object",
      "properties": {
        "cost": {
          "type": "object",
          "properties": {
            "microCredits": {
              "type": "integer"
            },
            "usd": {
              "type": "string"
            }
          }
        },
        "balance": {
          "type": "object",
          "properties": {
            "microCredits": {
              "type": "integer"
            },
            "usd": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}