{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/flowra-dev/json-schema/flowra-dev-file-response-dto-paginated-response-schema.json",
  "title": "FileResponseDtoPaginatedResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/flowra-dev-file-api-openapi.yml#/components/schemas/FileResponseDtoPaginatedResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "description": "Success status"
    },
    "message": {
      "type": "string",
      "description": "Response message"
    },
    "data": {
      "description": "Array of items",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "File ID (UUID)"
          },
          "format": {
            "type": "string",
            "description": "File format/extension"
          },
          "mimeType": {
            "type": "string",
            "description": "MIME type"
          },
          "size": {
            "type": "number",
            "description": "File size in KB"
          },
          "encoding": {
            "type": "string",
            "description": "File encoding"
          },
          "alt": {
            "type": [
              "string",
              "null"
            ],
            "description": "Alternative text/description"
          },
          "originalName": {
            "type": [
              "string",
              "null"
            ],
            "description": "Original file name"
          },
          "projectId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Project ID"
          },
          "ownerEUID": {
            "type": [
              "string",
              "null"
            ],
            "description": "Owner external user id (eUID)"
          },
          "fileTypeName": {
            "type": "string",
            "description": "File type name"
          },
          "fileTypeId": {
            "type": "number",
            "description": "File type ID"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string",
            "description": "Created at timestamp"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string",
            "description": "Updated at timestamp"
          }
        },
        "required": [
          "id",
          "format",
          "mimeType",
          "size",
          "encoding",
          "alt",
          "originalName",
          "projectId",
          "ownerEUID",
          "fileTypeName",
          "fileTypeId",
          "createdAt",
          "updatedAt"
        ]
      }
    },
    "total": {
      "type": "number",
      "description": "Total number of items across all pages"
    },
    "totalTools": {
      "type": "number",
      "description": "Optional secondary total (e.g. nested tools across all matching toolkits)"
    },
    "page": {
      "type": "number",
      "description": "Current page number (1-based)"
    },
    "limit": {
      "type": "number",
      "description": "Number of items per page"
    },
    "totalPages": {
      "type": "number",
      "description": "Total number of pages"
    },
    "hasNextPage": {
      "type": "boolean",
      "description": "Whether there is a next page"
    },
    "hasPreviousPage": {
      "type": "boolean",
      "description": "Whether there is a previous page"
    }
  },
  "required": [
    "success",
    "message",
    "data",
    "total"
  ]
}