{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/repowise-dev/json-schema/repowise-dev-chat-session-response-schema.json",
  "title": "ChatSessionResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/repowise-dev-chat-api-openapi.yml#/components/schemas/ChatSessionResponse",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "repository_id": {
      "type": "string",
      "title": "Repository Id"
    },
    "title": {
      "type": "string",
      "title": "Title"
    },
    "scope": {
      "type": "string",
      "enum": [
        "repo",
        "workspace"
      ],
      "title": "Scope"
    },
    "namespace": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Namespace"
    },
    "external_ref": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "External Ref"
    },
    "created": {
      "type": "boolean",
      "title": "Created",
      "default": false
    },
    "policy": {
      "additionalProperties": true,
      "type": "object",
      "title": "Policy",
      "default": {}
    },
    "turns": {
      "type": "integer",
      "title": "Turns",
      "default": 0
    },
    "input_tokens": {
      "type": "integer",
      "title": "Input Tokens",
      "default": 0
    },
    "output_tokens": {
      "type": "integer",
      "title": "Output Tokens",
      "default": 0
    }
  },
  "type": "object",
  "required": [
    "id",
    "repository_id",
    "title",
    "scope"
  ]
}