{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dbt-se/json-schema/dbt-se-list-summaries-response-schema.json",
  "title": "ListSummariesResponse",
  "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/ListSummariesResponse",
  "type": "object",
  "properties": {
    "summaries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Summary"
      }
    },
    "next": {
      "type": "object",
      "properties": {
        "threadId": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "completed",
            "failed",
            "in-progress"
          ]
        },
        "type": {
          "type": "string",
          "enum": [
            "risk-report",
            "company-summary"
          ]
        },
        "orgId": {
          "type": "string"
        },
        "cursor": {
          "type": [
            "number",
            "null"
          ],
          "default": 0
        },
        "limit": {
          "type": [
            "number",
            "null"
          ],
          "default": 20
        }
      }
    }
  },
  "required": [
    "summaries",
    "next"
  ],
  "$defs": {
    "Summary": {
      "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"
      ]
    },
    "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"
      ]
    }
  }
}