{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/beam-ai/json-schema/beam-ai-view-response-dto-schema.json",
  "title": "ViewResponseDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/beam-ai-agent-views-api-openapi.yml#/components/schemas/ViewResponseDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "agentId": {
      "type": "string"
    },
    "agent": {
      "$ref": "#/$defs/AgentInfoDto"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "isActive": {
      "type": "boolean"
    },
    "columns": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ColumnResponseDto"
      }
    },
    "createdAt": {
      "format": "date-time",
      "type": "string"
    },
    "updatedAt": {
      "format": "date-time",
      "type": "string"
    }
  },
  "required": [
    "id",
    "agentId",
    "name",
    "isActive",
    "createdAt",
    "updatedAt"
  ],
  "$defs": {
    "AgentInfoDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "iconUrl": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ]
    },
    "ColumnResponseDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "dataType": {
          "enum": [
            "string",
            "text",
            "number",
            "decimal",
            "boolean",
            "date",
            "datetime",
            "enum",
            "multi_enum",
            "object",
            "array",
            "url",
            "email",
            "link",
            "LinkToAnotherRecord"
          ],
          "type": "string"
        },
        "agentGraphNodeId": {
          "type": "string"
        },
        "paramType": {
          "enum": [
            "input",
            "output"
          ],
          "type": "string"
        },
        "paramName": {
          "type": "string"
        },
        "position": {
          "type": "number"
        },
        "linkedAgentViewId": {
          "type": "string"
        },
        "linkedView": {
          "$ref": "#/$defs/LinkedViewInfoDto"
        },
        "linkType": {
          "type": "string"
        },
        "linkMatchSourceColumn": {
          "$ref": "#/$defs/LinkedColumnInfoDto"
        },
        "linkMatchTargetColumn": {
          "$ref": "#/$defs/LinkedColumnInfoDto"
        },
        "reverseColumnId": {
          "type": "string"
        },
        "createdAt": {
          "format": "date-time",
          "type": "string"
        },
        "updatedAt": {
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "dataType",
        "agentGraphNodeId",
        "paramType",
        "paramName",
        "position",
        "createdAt",
        "updatedAt"
      ]
    },
    "LinkedColumnInfoDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "paramType": {
          "enum": [
            "input",
            "output"
          ],
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ]
    },
    "LinkedViewInfoDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ]
    }
  }
}