{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/linkbreakers-com/json-schema/linkbreakers-com-get-widget-summary-response-schema.json",
  "title": "GetWidgetSummaryResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/linkbreakers-com-analytics-dashboard-api-openapi.yml#/components/schemas/GetWidgetSummaryResponse",
  "properties": {
    "result": {
      "$ref": "#/$defs/AnalyticsWidgetResult",
      "title": "Absent when nothing has been generated yet"
    }
  },
  "type": "object",
  "$defs": {
    "AnalyticsWidgetResult": {
      "description": "AnalyticsWidgetResult is a generated result for an on-demand widget tab.",
      "properties": {
        "currentCount": {
          "format": "int32",
          "title": "How many values exist now, for \"N new answers since this ran\"",
          "type": "integer"
        },
        "generatedAt": {
          "format": "date-time",
          "title": "When it was produced",
          "type": "string"
        },
        "sourceCount": {
          "format": "int32",
          "title": "How many values it was generated from",
          "type": "integer"
        },
        "stale": {
          "description": "True when the underlying values have changed since it was generated, so\nthe UI can offer a re-run rather than presenting stale prose as current.",
          "type": "boolean"
        },
        "text": {
          "title": "The generated analysis",
          "type": "string"
        },
        "widgetId": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}