{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/everyn-ai/json-schema/everyn-ai-page-export-response-schema.json",
  "title": "Page[ExportResponse]",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/everyn-ai-exports-api-openapi.yml#/components/schemas/Page_ExportResponse_",
  "additionalProperties": false,
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/ExportResponse"
      },
      "title": "Data",
      "type": "array"
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Nextcursor"
    }
  },
  "required": [
    "data"
  ],
  "type": "object",
  "$defs": {
    "ExportResponse": {
      "additionalProperties": false,
      "properties": {
        "completedAt": {
          "anyOf": [
            {
              "description": "UTC RFC 3339 timestamp string.",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Completedat"
        },
        "createdAt": {
          "anyOf": [
            {
              "description": "UTC RFC 3339 timestamp string.",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Createdat"
        },
        "downloadReady": {
          "title": "Downloadready",
          "type": "boolean"
        },
        "downloadUrl": {
          "title": "Downloadurl",
          "type": "string"
        },
        "downloadUrlExpiresAt": {
          "anyOf": [
            {
              "description": "UTC RFC 3339 timestamp string.",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Downloadurlexpiresat"
        },
        "expiresAt": {
          "anyOf": [
            {
              "description": "UTC RFC 3339 timestamp string.",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Expiresat"
        },
        "failure": {
          "anyOf": [
            {},
            {
              "type": "null"
            }
          ],
          "title": "Failure"
        },
        "format": {
          "const": "csv",
          "title": "Format",
          "type": "string"
        },
        "id": {
          "minLength": 1,
          "title": "Id",
          "type": "string"
        },
        "mcpCreation": {
          "anyOf": [
            {
              "$ref": "#/$defs/McpCreationResponse"
            },
            {
              "type": "null"
            }
          ]
        },
        "runId": {
          "minLength": 1,
          "title": "Runid",
          "type": "string"
        },
        "status": {
          "enum": [
            "queued",
            "generating",
            "ready",
            "failed",
            "expired"
          ],
          "title": "Status",
          "type": "string"
        },
        "type": {
          "enum": [
            "all_rows",
            "successful_rows",
            "failed_rows",
            "flagged_rows",
            "generated_outputs",
            "resolved_lineage_results"
          ],
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "id",
        "runId",
        "type",
        "format",
        "status",
        "downloadReady",
        "downloadUrl",
        "downloadUrlExpiresAt",
        "failure",
        "completedAt",
        "expiresAt",
        "createdAt"
      ],
      "title": "ExportResponse",
      "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"
    }
  }
}