{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hg-insights/json-schema/hg-insights-intent-estimate-response-schema.json",
  "title": "IntentEstimateResponse",
  "description": "Estimated credit cost for an intent enrich request.",
  "x-generated": "2026-12-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hg-insights-openapi.yaml#/components/schemas/IntentEstimateResponse",
  "properties": {
    "available_credits": {
      "description": "Credits currently available to the organization",
      "type": "integer",
      "x-struct": null,
      "x-validate": null
    },
    "credits_estimate": {
      "description": "Estimated credits required to fulfill the request",
      "format": "double",
      "type": "number",
      "x-struct": null,
      "x-validate": null
    },
    "details": {
      "description": "Per-section credit breakdown",
      "properties": {
        "activities": {
          "properties": {
            "credits": {
              "format": "double",
              "type": "number",
              "x-struct": null,
              "x-validate": null
            }
          },
          "type": "object",
          "x-struct": null,
          "x-validate": null
        },
        "topics": {
          "properties": {
            "credits": {
              "format": "double",
              "type": "number",
              "x-struct": null,
              "x-validate": null
            }
          },
          "type": "object",
          "x-struct": null,
          "x-validate": null
        }
      },
      "type": [
        "object",
        "null"
      ],
      "x-struct": null,
      "x-validate": null
    },
    "sufficient_credits": {
      "description": "Whether available credits cover the estimate",
      "type": "boolean",
      "x-struct": null,
      "x-validate": null
    }
  },
  "required": [
    "credits_estimate",
    "available_credits",
    "sufficient_credits"
  ],
  "type": "object",
  "x-struct": "Elixir.TalariaWeb.Schemas.V2.Intent.Enrich.EstimateResponse",
  "x-validate": null
}