{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/everyn-ai/json-schema/everyn-ai-dataset-read-response-schema.json",
  "title": "DatasetReadResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/everyn-ai-datasets-api-openapi.yml#/components/schemas/DatasetReadResponse",
  "additionalProperties": false,
  "properties": {
    "columns": {
      "additionalProperties": true,
      "title": "Columns",
      "type": "object"
    },
    "createdAt": {
      "description": "UTC RFC 3339 timestamp string.",
      "title": "Createdat",
      "type": "string"
    },
    "id": {
      "minLength": 1,
      "title": "Id",
      "type": "string"
    },
    "mcpCreation": {
      "anyOf": [
        {
          "$ref": "#/$defs/McpCreationResponse"
        },
        {
          "type": "null"
        }
      ]
    },
    "orgId": {
      "minLength": 1,
      "title": "Orgid",
      "type": "string"
    },
    "profile": {
      "additionalProperties": true,
      "title": "Profile",
      "type": "object"
    },
    "rowCount": {
      "minimum": 0.0,
      "title": "Rowcount",
      "type": "integer"
    },
    "sampleRows": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "title": "Samplerows",
      "type": "array"
    },
    "sourceName": {
      "maxLength": 512,
      "title": "Sourcename",
      "type": "string"
    },
    "sourceType": {
      "title": "Sourcetype",
      "type": "string"
    }
  },
  "required": [
    "id",
    "orgId",
    "sourceName",
    "sourceType",
    "rowCount",
    "columns",
    "sampleRows",
    "profile",
    "createdAt"
  ],
  "type": "object",
  "$defs": {
    "McpCreationResponse": {
      "additionalProperties": false,
      "description": "Smallest safe MCP attribution for product reads.\n\nServer-derived only. Omits grant id, actor id, organization id, role,\nscopes, tokens, and raw OAuth identifiers.",
      "properties": {
        "channel": {
          "const": "mcp",
          "title": "Channel",
          "type": "string"
        },
        "clientId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Clientid"
        },
        "principalType": {
          "enum": [
            "workos_jwt",
            "api_key"
          ],
          "title": "Principaltype",
          "type": "string"
        }
      },
      "required": [
        "channel",
        "principalType"
      ],
      "title": "McpCreationResponse",
      "type": "object"
    }
  }
}