{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/everyn-ai/json-schema/everyn-ai-dataset-upload-response-schema.json",
  "title": "DatasetUploadResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/everyn-ai-dataset-uploads-api-openapi.yml#/components/schemas/DatasetUploadResponse",
  "additionalProperties": false,
  "properties": {
    "bytesReceived": {
      "minimum": 0.0,
      "title": "Bytesreceived",
      "type": "integer"
    },
    "completedAt": {
      "anyOf": [
        {
          "description": "UTC RFC 3339 timestamp string.",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Completedat"
    },
    "contentType": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Contenttype"
    },
    "createdAt": {
      "description": "UTC RFC 3339 timestamp string.",
      "title": "Createdat",
      "type": "string"
    },
    "datasetId": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Datasetid"
    },
    "expiredAt": {
      "anyOf": [
        {
          "description": "UTC RFC 3339 timestamp string.",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expiredat"
    },
    "failedAt": {
      "anyOf": [
        {
          "description": "UTC RFC 3339 timestamp string.",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Failedat"
    },
    "failure": {
      "anyOf": [
        {
          "$ref": "#/$defs/DatasetUploadFailureResponse"
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "minLength": 1,
      "title": "Id",
      "type": "string"
    },
    "sizeBytes": {
      "minimum": 0.0,
      "title": "Sizebytes",
      "type": "integer"
    },
    "sourceName": {
      "maxLength": 512,
      "title": "Sourcename",
      "type": "string"
    },
    "sourceType": {
      "title": "Sourcetype",
      "type": "string"
    },
    "status": {
      "enum": [
        "processing",
        "completed",
        "failed",
        "expired"
      ],
      "title": "Status",
      "type": "string"
    }
  },
  "required": [
    "id",
    "status",
    "sourceType",
    "sourceName",
    "contentType",
    "sizeBytes",
    "bytesReceived",
    "datasetId",
    "failure",
    "createdAt",
    "completedAt",
    "failedAt",
    "expiredAt"
  ],
  "type": "object",
  "$defs": {
    "DatasetUploadFailureResponse": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "title": "Code",
          "type": "string"
        },
        "docsUrl": {
          "title": "Docsurl",
          "type": "string"
        },
        "fieldErrors": {
          "items": {},
          "title": "Fielderrors",
          "type": "array"
        },
        "message": {
          "title": "Message",
          "type": "string"
        },
        "retryable": {
          "title": "Retryable",
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable",
        "docsUrl",
        "fieldErrors"
      ],
      "title": "DatasetUploadFailureResponse",
      "type": "object"
    }
  }
}