{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blacksky/json-schema/blacksky-eula-document-response-schema.json",
  "title": "EulaDocumentResponse",
  "description": "A single EULA document.\n",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blacksky-eulas-api-openapi.yml#/components/schemas/EulaDocumentResponse",
  "required": [
    "filename",
    "id",
    "isAccepted",
    "isCurrent",
    "size",
    "url",
    "version"
  ],
  "properties": {
    "id": {
      "$ref": "#/$defs/EulaDocumentId"
    },
    "url": {
      "$ref": "#/$defs/EulaDocumentUrl"
    },
    "filename": {
      "$ref": "#/$defs/EulaDocumentFilename"
    },
    "size": {
      "$ref": "#/$defs/EulaDocumentSize"
    },
    "version": {
      "$ref": "#/$defs/EulaDocumentVersion"
    },
    "isCurrent": {
      "$ref": "#/$defs/EulaDocumentIsCurrent"
    },
    "validFrom": {
      "$ref": "#/$defs/EulaDocumentValidFrom"
    },
    "isAccepted": {
      "$ref": "#/$defs/EulaDocumentisAccepted"
    },
    "acceptedAt": {
      "$ref": "#/$defs/EulaAcceptanceAcceptedAt"
    },
    "acceptedById": {
      "$ref": "#/$defs/EulaAcceptanceAcceptedById"
    }
  },
  "$defs": {
    "EulaAcceptanceAcceptedAt": {
      "type": [
        "string",
        "null"
      ],
      "description": "The timestamp indicating the date the EULA document was accepted.\n",
      "format": "date-time"
    },
    "EulaAcceptanceAcceptedById": {
      "type": [
        "string",
        "null"
      ],
      "description": "The ID of the user who accepted the EULA document.\n",
      "format": "uuid"
    },
    "EulaDocumentFilename": {
      "type": [
        "string",
        "null"
      ],
      "description": "The name of the EULA document. It is generated based on the title and version of the EULA.\n"
    },
    "EulaDocumentId": {
      "type": "string",
      "description": "The EULA document ID.\n",
      "format": "uuid"
    },
    "EulaDocumentIsCurrent": {
      "type": "boolean",
      "description": "Whether this document is the active document currently associated with the EULA.\n"
    },
    "EulaDocumentSize": {
      "type": "number",
      "description": "The size of the EULA document, in bytes.\n",
      "format": "int64"
    },
    "EulaDocumentUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "The URL of the EULA document.\n",
      "format": "uri"
    },
    "EulaDocumentValidFrom": {
      "type": [
        "string",
        "null"
      ],
      "description": "The timestamp indicating the start date of the EULA document's validity.\n",
      "format": "date-time"
    },
    "EulaDocumentVersion": {
      "type": "number",
      "description": "The version of the EULA document. It is automatically generated based on the count of documents associated with the EULA.\n"
    },
    "EulaDocumentisAccepted": {
      "type": "boolean",
      "description": "Whether the EULA document is accepted.\n"
    }
  }
}