{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sitegpt-ai/json-schema/sitegpt-ai-knowledge-source-schema.json",
  "title": "KnowledgeSource",
  "description": "A connected knowledge source (Notion, Google Drive, ...).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sitegpt-ai-knowledge-sources-api-openapi.yml#/components/schemas/KnowledgeSource",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "connector": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "statusReason": {
      "type": [
        "string",
        "null"
      ]
    },
    "authType": {
      "type": "string"
    },
    "hasCredentials": {
      "type": "boolean"
    },
    "externalId": {
      "type": [
        "string",
        "null"
      ]
    },
    "metadata": {
      "$ref": "#/$defs/GenericObject",
      "description": "Connector metadata."
    },
    "clientRedirectUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "tenantId": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "updatedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "$defs": {
    "GenericObject": {
      "type": "object",
      "additionalProperties": true
    }
  }
}