{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/everyn-ai/json-schema/everyn-ai-counted-bidirectional-page-dataset-read-response-schema.json",
  "title": "CountedBidirectionalPage[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/CountedBidirectionalPage_DatasetReadResponse_",
  "additionalProperties": false,
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/DatasetReadResponse"
      },
      "title": "Data",
      "type": "array"
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Nextcursor"
    },
    "previousCursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Previouscursor"
    },
    "totalCount": {
      "minimum": 0.0,
      "title": "Totalcount",
      "type": "integer"
    }
  },
  "required": [
    "data",
    "totalCount"
  ],
  "type": "object",
  "$defs": {
    "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"
      ],
      "title": "DatasetReadResponse",
      "type": "object"
    },
    "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"
    }
  }
}