{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fleetkeep-co-uk/json-schema/fleetkeep-co-uk-public-account-export-schema.json",
  "title": "PublicAccountExport",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fleetkeep-co-uk-openapi.json#/components/schemas/PublicAccountExport",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "exportedAt",
    "schemaVersion",
    "user",
    "vehicles",
    "compliance",
    "motHistory",
    "consents",
    "remindersSent",
    "driverGuidance",
    "vehicleDocuments",
    "maintenanceEventMedia",
    "vehicleConditionChecks",
    "vehicleConditionCheckMedia",
    "vehicleChargeAccounts",
    "vehicleCustomChecks",
    "vehicleChargeTransactions",
    "telematicsConnections",
    "vehicleTelematicsLinks",
    "vehicleTelematicsSnapshots"
  ],
  "properties": {
    "exportedAt": {
      "type": "string",
      "format": "date-time"
    },
    "schemaVersion": {
      "type": "string",
      "const": "v1-public"
    },
    "user": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "required": [
        "email",
        "name",
        "createdAt",
        "updatedAt"
      ],
      "properties": {
        "email": {
          "type": "string",
          "format": "email",
          "maxLength": 320
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "vehicles": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "compliance": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "motHistory": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "consents": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "remindersSent": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "driverGuidance": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "vehicleDocuments": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "maintenanceEventMedia": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "vehicleConditionChecks": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "vehicleConditionCheckMedia": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "vehicleChargeAccounts": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "vehicleCustomChecks": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "vehicleChargeTransactions": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "telematicsConnections": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "vehicleTelematicsLinks": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "vehicleTelematicsSnapshots": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}