{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dbt-se/json-schema/dbt-se-get-summary-response-schema.json",
  "title": "GetSummaryResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dbt-se-llm-api-openapi.yml#/components/schemas/GetSummaryResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "threadId": {
      "type": [
        "string",
        "null"
      ]
    },
    "summary": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "completed",
        "failed",
        "in-progress"
      ]
    },
    "type": {
      "type": "string",
      "enum": [
        "risk-report",
        "company-summary",
        "fast-company-summary",
        "meeting-prep"
      ]
    },
    "errorText": {
      "type": [
        "string",
        "null"
      ]
    },
    "relations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SummaryRelation"
      }
    },
    "createdAt": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string",
          "format": "date-time"
        },
        "type": {
          "type": "string",
          "enum": [
            "datetime"
          ]
        }
      },
      "required": [
        "date",
        "type"
      ]
    },
    "updatedAt": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string",
          "format": "date-time"
        },
        "type": {
          "type": "string",
          "enum": [
            "datetime"
          ]
        }
      },
      "required": [
        "date",
        "type"
      ]
    }
  },
  "required": [
    "id",
    "threadId",
    "summary",
    "status",
    "type",
    "errorText",
    "relations",
    "createdAt",
    "updatedAt"
  ],
  "$defs": {
    "SummaryRelation": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "organization"
          ]
        },
        "value": {
          "type": "string"
        },
        "summaryId": {
          "type": "string"
        },
        "createdAt": {
          "type": "object",
          "properties": {
            "date": {
              "type": "string",
              "format": "date-time"
            },
            "type": {
              "type": "string",
              "enum": [
                "datetime"
              ]
            }
          },
          "required": [
            "date",
            "type"
          ]
        },
        "updatedAt": {
          "type": "object",
          "properties": {
            "date": {
              "type": "string",
              "format": "date-time"
            },
            "type": {
              "type": "string",
              "enum": [
                "datetime"
              ]
            }
          },
          "required": [
            "date",
            "type"
          ]
        }
      },
      "required": [
        "id",
        "type",
        "value",
        "summaryId",
        "createdAt",
        "updatedAt"
      ]
    }
  }
}