{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cesium/json-schema/cesium-export-metadata-schema.json",
  "title": "Export Metadata",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cesium-exports-api-openapi.yml#/components/schemas/ExportMetadata",
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/$defs/ExportIdentifier"
    },
    "assetId": {
      "$ref": "#/$defs/AssetIdentifier"
    },
    "status": {
      "$ref": "#/$defs/ExportStatus"
    },
    "bytesExported": {
      "type": "integer",
      "description": "The total number of bytes that have been exported.",
      "minimum": 0,
      "readOnly": true
    },
    "dateAdded": {
      "description": "The date and time at which this export was added in [RFC 3339](https://tools.ietf.org/html/rfc3339) format.",
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "to": {
      "$ref": "#/$defs/AssetTo"
    }
  },
  "$defs": {
    "AssetIdentifier": {
      "type": "integer",
      "description": "The unique identifier for this asset."
    },
    "AssetTo": {
      "description": "Contains information about the type and destination of the export.",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "S3",
            "AZURE"
          ],
          "description": "Specifies the type of external service. Currently only Amazon S3 and Azure are supported."
        }
      },
      "required": [
        "type"
      ]
    },
    "ExportIdentifier": {
      "type": "integer",
      "description": "The unique identifier of this export.",
      "readOnly": true
    },
    "ExportStatus": {
      "type": "string",
      "enum": [
        "NOT_STARTED",
        "QUEUED",
        "IN_PROGRESS",
        "COMPLETE",
        "ERROR"
      ],
      "description": "Describes the state of the export process:\n\n| Value | Description |\n| - | - |\n| NOT_STARTED | The server received the export request but has not started the export process yet, usually because it is waiting for asset to complete tiling. |\n| QUEUED | The server has queued the asset for exporting. |\n| IN_PROGRESS | The asset is being exported, see `bytesExported` to monitor progress. |\n| COMPLETE | The asset was exported successfully. |\n| ERROR | An error occurred during the export process. |\n",
      "readOnly": true
    }
  }
}