{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-vault/json-schema/google-vault-export-schema.json",
  "title": "Export",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-vault-exports-api-openapi.yml#/components/schemas/Export",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "matterId": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "requester": {
      "type": "object",
      "properties": {
        "displayName": {
          "type": "string"
        },
        "email": {
          "type": "string"
        }
      }
    },
    "query": {
      "$ref": "#/$defs/Query"
    },
    "exportOptions": {
      "type": "object"
    },
    "status": {
      "type": "string",
      "enum": [
        "EXPORT_STATUS_UNSPECIFIED",
        "COMPLETED",
        "FAILED",
        "IN_PROGRESS"
      ]
    },
    "createTime": {
      "type": "string",
      "format": "date-time"
    },
    "cloudStorageSink": {
      "type": "object"
    },
    "stats": {
      "type": "object",
      "properties": {
        "exportedArtifactCount": {
          "type": "string"
        },
        "totalArtifactCount": {
          "type": "string"
        },
        "sizeInBytes": {
          "type": "string"
        }
      }
    }
  },
  "$defs": {
    "Query": {
      "type": "object",
      "properties": {
        "corpus": {
          "type": "string",
          "enum": [
            "CORPUS_TYPE_UNSPECIFIED",
            "DRIVE",
            "MAIL",
            "GROUPS",
            "HANGOUTS_CHAT",
            "VOICE",
            "CALENDAR"
          ]
        },
        "dataScope": {
          "type": "string",
          "enum": [
            "DATA_SCOPE_UNSPECIFIED",
            "ALL_DATA",
            "HELD_DATA",
            "UNPROCESSED_DATA"
          ]
        },
        "searchMethod": {
          "type": "string",
          "enum": [
            "SEARCH_METHOD_UNSPECIFIED",
            "ACCOUNT",
            "ORG_UNIT",
            "TEAM_DRIVE",
            "ENTIRE_ORG",
            "ROOM",
            "SITES_URL",
            "SHARED_DRIVE"
          ]
        },
        "terms": {
          "type": "string"
        },
        "startTime": {
          "type": "string",
          "format": "date-time"
        },
        "endTime": {
          "type": "string",
          "format": "date-time"
        },
        "timeZone": {
          "type": "string"
        }
      }
    }
  }
}